/* Shared desktop page and section navigation. Mobile keeps the site's main menu. */
:root {
  --site-explorer-ink: var(--ink, #17212b);
  --site-explorer-muted: var(--muted, #52616c);
  --site-explorer-accent: var(--green, #1f684f);
  --site-explorer-border: rgba(35, 56, 67, 0.16);
  --site-explorer-surface: var(--white, #fffdf8);
  --site-explorer-focus: #8a5700;
}

body.site-explorer-body {
  display: grid;
  grid-template-columns: minmax(260px, 285px) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(1.25rem, 2.6vw, 2.25rem);
  min-width: 0;
}

body.site-explorer-body > :not(.site-explorer-aside):not(main):not(script) {
  grid-column: 1 / -1;
}

body.site-explorer-body > main {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.layout.site-explorer-layout {
  display: grid;
  grid-template-columns: minmax(260px, 285px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
  min-width: 0;
}

.site-explorer-aside {
  grid-column: 1;
  align-self: start;
  position: sticky;
  top: 5.25rem;
  min-width: 0;
  z-index: 3;
}

.layout.site-explorer-layout > .site-explorer-aside {
  grid-row: auto;
}

.layout.site-explorer-layout > div {
  grid-column: 2;
  min-width: 0;
}

.site-explorer {
  max-height: calc(100vh - 6.25rem);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 1rem;
  border: 1px solid var(--site-explorer-border);
  border-radius: 1rem;
  background: var(--site-explorer-surface);
  color: var(--site-explorer-ink);
  box-shadow: 0 12px 30px rgba(20, 32, 40, 0.07);
  font: 0.91rem/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

.site-explorer__title {
  margin: 0 0 0.85rem;
  color: var(--site-explorer-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.site-explorer__groups,
.site-explorer__group-list,
.site-explorer__page-sections,
.site-explorer__subsections {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-explorer__group + .site-explorer__group {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--site-explorer-border);
}

.site-explorer__group-heading,
.site-explorer__page-topline,
.site-explorer__section-row,
.site-explorer__page-sections-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.site-explorer__group-heading {
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}

.site-explorer__group-list {
  margin-top: 0.3rem;
  padding-left: 0.25rem;
}

.site-explorer__page + .site-explorer__page {
  margin-top: 0.55rem;
}

.site-explorer__page-topline {
  align-items: center;
}

.site-explorer__page-link,
.site-explorer__section-row > a,
.site-explorer__subsections a {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.site-explorer__page-link {
  flex: 1 1 auto;
  font-weight: 700;
}

.site-explorer__page-link:hover,
.site-explorer__section-row > a:hover,
.site-explorer__subsections a:hover {
  color: var(--site-explorer-accent);
  text-decoration: underline;
}

.site-explorer__page-link[aria-current="page"] {
  color: var(--site-explorer-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.site-explorer__page-sections {
  margin: 0.35rem 0 0.25rem 0.25rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--site-explorer-border);
}

.site-explorer__section + .site-explorer__section {
  margin-top: 0.26rem;
}

.site-explorer__section-row > a {
  flex: 1 1 auto;
  font-size: 0.88rem;
}

.site-explorer__subsections {
  margin: 0.25rem 0 0.45rem 0.25rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--site-explorer-border);
}

.site-explorer__subsections li + li {
  margin-top: 0.2rem;
}

.site-explorer__subsections a {
  display: block;
  font-size: 0.83rem;
  color: var(--site-explorer-muted);
}

.site-explorer a[aria-current="location"] {
  color: var(--site-explorer-accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.site-explorer__toggle {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--site-explorer-border);
  border-radius: 0.55rem;
  background: transparent;
  color: var(--site-explorer-ink);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
}

.site-explorer__toggle[hidden] {
  display: none !important;
}

.site-explorer__toggle:hover {
  border-color: var(--site-explorer-accent);
  color: var(--site-explorer-accent);
}

.site-explorer :focus-visible,
.editorial-page a:focus-visible,
.editorial-page button:focus-visible {
  outline: 3px solid var(--site-explorer-focus);
  outline-offset: 3px;
}

.site-explorer [hidden] {
  display: none !important;
}

body.site-explorer-body main h2[id],
body.site-explorer-body main h3[id],
.layout.site-explorer-layout h2[id],
.layout.site-explorer-layout h3[id] {
  scroll-margin-top: 6rem;
}

/* The article uses the same column system as the rest of the site. */
.editorial-page {
  margin: 0;
  background: #f5f1e8;
  color: #17212b;
  font: 17px/1.72 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.editorial-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 33, 43, 0.15);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
}

.editorial-site-header__inner {
  display: flex;
  width: min(1500px, calc(100% - 2rem));
  min-height: 4.25rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.editorial-brand,
.editorial-main-nav a {
  color: #17212b;
  text-decoration: none;
}

.editorial-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.editorial-brand__mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.75rem;
  background: #0e1a22;
  color: #f9e7b7;
  font-size: 0.85rem;
}

.editorial-main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.94rem;
  font-weight: 700;
}

.editorial-main-nav a:hover {
  color: #1f684f;
  text-decoration: underline;
}

.editorial-skip-link {
  position: absolute;
  z-index: 100;
  top: 0.5rem;
  left: -10000px;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  background: #fffdf8;
  color: #111;
}

.editorial-skip-link:focus {
  left: 0.75rem;
}

.editorial-layout {
  width: min(1500px, calc(100% - 2rem));
  margin: 1.75rem auto 3rem;
}

.travel-editorial {
  box-sizing: border-box;
  width: min(100%, 88ch);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid rgba(23, 33, 43, 0.13);
  border-radius: 1.25rem;
  background: #fffdf8;
  box-shadow: 0 20px 55px rgba(23, 33, 43, 0.08);
  overflow-wrap: anywhere;
}

.travel-editorial h1,
.travel-editorial h2,
.travel-editorial h3 {
  color: #17212b;
  line-height: 1.25;
  text-wrap: balance;
}

.travel-editorial h1 {
  margin: 0.4rem 0 1.25rem;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
}

.travel-editorial h2 {
  margin: 2.8rem 0 0.85rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(23, 33, 43, 0.14);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.travel-editorial h3 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.18rem;
}

.travel-editorial p {
  margin: 0.75rem 0 1rem;
}

.travel-editorial a {
  color: #155a46;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.travel-editorial a:hover {
  text-decoration-thickness: 2px;
}

.travel-editorial__intro {
  padding-bottom: 1rem;
}

.travel-editorial__eyebrow {
  margin: 0 0 0.4rem !important;
  color: #1f684f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.travel-editorial__lead {
  font-size: 1.24rem;
  font-weight: 650;
}

.travel-editorial__commercial-context {
  margin-top: 2.5rem;
  padding: 0.25rem 1.25rem 0.75rem;
  border-left: 4px solid #98722e;
  background: #f5f1e8;
}

.travel-editorial__sources ul {
  padding-left: 1.25rem;
}

.travel-editorial__sources li + li {
  margin-top: 0.55rem;
}

.editorial-site-footer {
  display: flex;
  width: min(1500px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 2.25rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  border-top: 1px solid rgba(23, 33, 43, 0.15);
  color: #52616c;
  font-size: 0.9rem;
}

.editorial-site-footer p {
  margin: 0;
}

.editorial-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.editorial-site-footer a {
  color: #155a46;
}

@media (max-width: 900px) {
  body.site-explorer-body {
    display: block;
  }

  body.site-explorer-body > main {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .layout.site-explorer-layout {
    display: block;
  }

  .site-explorer-aside {
    display: none !important;
  }

  .layout.site-explorer-layout > div {
    grid-column: auto;
  }

  .editorial-layout {
    width: min(100% - 1.25rem, 88ch);
    margin-top: 1rem;
  }
}

@media (max-width: 520px) {
  .editorial-site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.7rem 0;
  }

  .editorial-main-nav {
    gap: 1rem;
  }

  .travel-editorial {
    padding: 1.15rem;
  }

  .editorial-site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-page {
    scroll-behavior: auto;
  }
}
