
:root {
  --bg: #eef8f6;
  --paper: #fbfffe;
  --paper-2: #e2f3ef;
  --ink: #16322f;
  --muted: #5b716d;
  --teal: #087f73;
  --teal-dark: #06564f;
  --raspberry: #c9345d;
  --line: #c7ddda;
  --soft: #f4fbfa;
  --shadow: 0 24px 70px rgba(9, 58, 52, 0.14);
  --font-display: 'Literata', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(8,127,115,.06) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #f7fffd 0%, var(--bg) 38%, #eaf6f4 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 48px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(8,127,115,.25);
}
.brand strong { display: block; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.1; margin-top: 2px; }
.desktop-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.nav-group { position: relative; }
.nav-trigger {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 .9rem var(--font-body);
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
}
.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  width: 280px;
  z-index: 20;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(251,255,254,.97);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  border-bottom: 1px solid rgba(199,221,218,.65);
  color: var(--teal-dark);
  font-weight: 700;
  line-height: 1.25;
}
.nav-menu a:last-child { border-bottom: 0; }
.menu-toggle {
  display: none;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0 16px;
  font-weight: 700;
}
.mobile-menu {
  max-width: 1480px;
  margin: 0 auto 12px;
  padding: 0 16px 16px;
}
.mobile-menu details {
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 8px 0;
}
.mobile-menu summary {
  min-height: 48px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}
.mobile-menu a {
  display: block;
  padding: 11px 16px;
  text-decoration: none;
  color: var(--teal-dark);
}

.hero {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .82fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 44px 24px auto;
  height: 220px;
  background: linear-gradient(90deg, rgba(8,127,115,.12), rgba(201,52,93,.08));
  clip-path: polygon(0 0, 92% 0, 100% 72%, 8% 100%);
  z-index: -1;
}
.eyebrow,
.section-label {
  color: var(--raspberry);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero h1 {
  max-width: 780px;
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 6vw, 6.2rem);
  line-height: .96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.lede {
  max-width: 760px;
  margin: 0;
  color: #38534f;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 700;
}
.primary-action { background: var(--teal); color: #fff; }
.secondary-action { border: 1px solid var(--line); background: rgba(255,255,255,.72); color: var(--teal-dark); }
.hero-media {
  margin: 0;
  background: var(--paper);
  padding: 12px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 1.15 / .85;
  object-fit: cover;
}
.hero-media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  color: var(--muted);
  font-size: .86rem;
}
.hero-media figcaption span { color: var(--raspberry); font-weight: 700; }
.hero-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hero-panel div {
  background: rgba(251,255,254,.9);
  padding: 18px;
}
.hero-panel span {
  display: block;
  color: var(--raspberry);
  font-weight: 700;
  margin-bottom: 6px;
}
.hero-panel strong { display: block; line-height: 1.25; }

.route-board {
  max-width: 1380px;
  margin: 18px auto 0;
  padding: clamp(20px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: 28px;
  background: var(--teal-dark);
  color: #eafffb;
}
.route-board h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}
.route-list { display: grid; border-top: 1px solid rgba(255,255,255,.2); }
.route-row {
  display: grid;
  grid-template-columns: 58px minmax(160px, .48fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  text-decoration: none;
}
.route-num { color: #ffb3c5; font-weight: 700; }
.route-title { font: 700 1.08rem var(--font-display); }
.route-desc { color: #bfe4de; font-size: .94rem; }

.content-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px) clamp(16px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(280px, 360px);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.article-body {
  min-width: 0;
  background: rgba(251,255,254,.82);
  padding: clamp(22px, 4vw, 52px);
  border: 1px solid rgba(199,221,218,.85);
}
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  letter-spacing: 0;
  scroll-margin-top: 24px;
}
.article-body h2 {
  margin: 2.2em 0 .7em;
  font-size: clamp(1.8rem, 3vw, 3rem);
  border-top: 3px solid var(--teal);
  padding-top: .55em;
}
.article-body h3 { margin: 1.7em 0 .55em; font-size: clamp(1.35rem, 2vw, 1.9rem); }
.article-body h4 { margin: 1.4em 0 .45em; font-size: 1.2rem; }
.article-body p { margin: 0 0 1.05em; max-width: 72ch; }
.article-body ul,
.article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li + li { margin-top: .35em; }
.article-body a { color: var(--teal-dark); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 22px 0 30px;
  border: 1px solid var(--line);
  background: #fff;
}
table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .94rem;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid #d9e8e5;
  text-align: left;
  vertical-align: top;
}
th { background: var(--paper-2); color: var(--teal-dark); }

.right-rail {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.rail-box {
  background: rgba(251,255,254,.88);
  border: 1px solid var(--line);
  padding: 18px;
}
.rail-title {
  color: var(--raspberry);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.toc-box a,
.rail-link {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid rgba(199,221,218,.72);
  text-decoration: none;
  color: var(--teal-dark);
  font-weight: 700;
  line-height: 1.25;
}
.rail-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
}
.rail-link span { color: var(--muted); }
.metric-box p { margin: .35em 0; color: var(--muted); }

.faq-section {
  max-width: 1180px;
  margin: 0 auto clamp(40px, 7vw, 90px);
  padding: clamp(24px, 4vw, 48px);
  background: #dff2ee;
  border-top: 5px solid var(--raspberry);
}
.faq-section h2 {
  margin: 8px 0 22px;
  font: 700 clamp(2rem, 4vw, 4rem)/1 var(--font-display);
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.faq-list details {
  background: #fbfffe;
  padding: 0;
}
.faq-list summary {
  cursor: pointer;
  min-height: 64px;
  padding: 18px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  font-weight: 700;
  line-height: 1.25;
}
.faq-list summary span { color: var(--raspberry); }
.faq-list p { margin: 0; padding: 0 18px 20px 72px; color: #38534f; }

.site-footer {
  background: #102a27;
  color: #d8ece8;
  padding: clamp(28px, 5vw, 58px) clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: start;
}
.site-footer strong { font-family: var(--font-display); font-size: 1.3rem; }
.site-footer p { max-width: 620px; margin: 8px 0 0; color: #abcac4; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #eafffb; text-decoration: none; font-weight: 700; }
.copyright { white-space: nowrap; }

:focus-visible {
  outline: 3px solid rgba(201,52,93,.75);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 760px; transform: none; }
  .content-shell { grid-template-columns: 1fr; }
  .right-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-box { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { grid-template-columns: 1fr auto; gap: 12px; }
  .brand small { display: none; }
  .hero { padding: 18px 16px 28px; }
  .hero::before { inset: 30px 0 auto; }
  .hero h1 { font-size: clamp(2.2rem, 14vw, 4rem); }
  .hero-panel,
  .route-board,
  .route-row,
  .right-rail,
  .faq-list,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .route-board { margin-top: 0; }
  .route-row { gap: 6px; }
  .article-body { padding: 22px 16px; }
  .article-body h2 { font-size: clamp(1.6rem, 9vw, 2.45rem); }
  .faq-section { margin-inline: 12px; padding: 22px 14px; }
  .faq-list summary { grid-template-columns: 34px 1fr; padding: 16px 12px; }
  .faq-list p { padding: 0 12px 18px 58px; }
  .site-footer { padding: 28px 16px; }
}

@media (max-width: 520px) {
  table, thead, tbody, th, td, tr { display: block; min-width: 0; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  td {
    display: grid;
    grid-template-columns: minmax(110px, .42fr) 1fr;
    gap: 10px;
    border-bottom: 0;
    padding: 8px 12px;
  }
  td::before {
    content: attr(data-label);
    color: var(--teal-dark);
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
