.sidebar nav {
  align-content: start;
  grid-auto-rows: max-content;
}

.sidebar-editor-links, .sidebar-tools-links {
  display: grid;
  align-content: start;
  gap: 4px;
}

.sidebar-editor-links .sidebar-label {
  margin: 4px 8px 6px;
}

.sidebar-tools {
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sidebar-tools summary {
  min-height: 38px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.sidebar-tools-links {
  margin-top: 6px;
}

.sidebar-tools summary, .website-menu-group summary {
  cursor: pointer;
  list-style: none;
}

.sidebar-tools summary::-webkit-details-marker,
.website-menu-group summary::-webkit-details-marker {
  display: none;
}

.sidebar-tools summary:focus-visible,
.website-menu-group summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.editor-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: -3px 3px 0 5px;
}

details[open] > summary .editor-chevron {
  transform: rotate(225deg);
  margin-top: 3px;
}

.website-editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.website-language, .website-other-pages label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}

.website-language span, .website-other-pages label span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.website-language select, .website-other-pages select {
  min-height: 38px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.website-menu {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.website-menu-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
  gap: 9px;
}

.website-menu button, .website-menu-group summary {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-weight: 600;
  text-align: left;
}

.website-menu-group > summary {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
}

.website-menu button:hover, .website-menu-group > summary:hover,
.website-menu button[aria-current="page"], .website-menu-group.contains-current > summary,
.website-menu-group[open] > summary {
  background: var(--green-soft);
  color: var(--green);
}

.website-menu button.website-menu-cta {
  color: #fff;
  background: var(--green);
}

.website-menu button.website-menu-cta:hover {
  background: #12472e;
}

.website-menu-dropdown {
  position: absolute;
  z-index: 15;
  inset: calc(100% + 10px) auto auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: min(100%, 320px);
  max-height: min(66vh, 560px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 15px 36px #182d2530;
}

.website-menu-columns {
  width: min(100%, 940px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.website-menu-column h2 {
  margin: 2px 8px 8px;
  font-size: 13px;
  color: var(--green);
}

.website-menu-links {
  display: grid;
  gap: 2px;
}

.website-menu-links button {
  min-height: 34px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.website-other-pages {
  margin-top: 14px;
}

.website-other-pages label {
  max-width: 640px;
}

.website-other-pages select {
  flex: 1 1 auto;
  min-width: 0;
}

.website-page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 10px 18px;
}

.website-page-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.website-page-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.website-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.website-loading {
  margin: 16px 0;
  padding: 22px;
  background: var(--surface);
  border: 1px dashed #cbd7c7;
  border-radius: 12px;
  color: #465d50;
}

.website-field-subheading {
  grid-column: 1 / -1;
  margin: 10px 0 2px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.website-field-subheading:first-child {
  margin-top: 0;
}

.website-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #e0e7dd;
  border-radius: 9px;
  background: #fbfcfa;
}

.website-field.changed {
  border-color: #87a991;
  box-shadow: inset 3px 0 0 #4f8d62;
}

.website-field-label {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.website-field input, .website-field textarea {
  width: 100%;
  min-height: 41px;
  padding: 8px 10px;
  border: 1px solid #cbd7c7;
  border-radius: 6px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.5;
}

.website-field textarea {
  resize: vertical;
}

.website-media-preview {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 126px;
  max-height: 200px;
  overflow: hidden;
  border-radius: 7px;
  background: #eaf0e7;
}

.website-media-preview img, .website-media-preview video {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.website-media-file {
  margin: 0;
  color: #5a6b5d;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.website-field-media .button {
  justify-self: start;
}

.media-video-type {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  color: var(--green);
  background: var(--green-soft);
}

@media (max-width: 780px) {
  .website-nav-bar {
    align-items: stretch;
  }

  .website-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 6px;
    flex-basis: 100%;
  }

  .website-menu-dropdown, .website-menu-columns {
    position: static;
    width: 100%;
    max-height: 330px;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 4px;
    padding: 9px;
    box-shadow: none;
  }

  .website-menu-group[open] {
    grid-column: 1 / -1;
  }

  .website-menu-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin: 4px 0 0;
  }
}

@media (max-width: 560px) {
  .website-editor-bar {
    padding: 12px;
  }

  .website-page-actions .button {
    white-space: normal;
  }
}
