:root {
  --porcelain: #eef4f1;
  --porcelain-2: #f8fbf7;
  --ink: #172320;
  --muted: #66736d;
  --emerald: #06483f;
  --green: #0c6b57;
  --cherry: #c91f2c;
  --gold: #c5a45d;
  --mist: #d9e7df;
  --line: rgba(23, 35, 32, .16);
  --shadow: 0 28px 80px rgba(9, 31, 27, .14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 70% -12%, rgba(201,31,44,.14), transparent 58%),
    radial-gradient(900px 460px at 6% 18%, rgba(12,107,87,.13), transparent 62%),
    linear-gradient(180deg, var(--porcelain-2), var(--porcelain) 48%, #e6f0ea);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px clamp(16px, 4vw, 52px);
  background: rgba(248, 251, 247, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--emerald);
}
.brand span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--porcelain-2);
  background:
    conic-gradient(from 0deg, var(--cherry) 0 10deg, #f6f1e5 10deg 20deg, var(--emerald) 20deg 30deg, #f6f1e5 30deg 40deg, var(--cherry) 40deg 50deg, #f6f1e5 50deg 60deg, var(--emerald) 60deg 70deg, #f6f1e5 70deg 80deg, var(--cherry) 80deg 90deg, #f6f1e5 90deg 100deg, var(--emerald) 100deg 110deg, #f6f1e5 110deg 120deg, var(--cherry) 120deg 130deg, #f6f1e5 130deg 140deg, var(--emerald) 140deg 150deg, #f6f1e5 150deg 160deg, var(--cherry) 160deg 170deg, #f6f1e5 170deg 180deg, var(--emerald) 180deg 190deg, #f6f1e5 190deg 200deg, var(--cherry) 200deg 210deg, #f6f1e5 210deg 220deg, var(--emerald) 220deg 230deg, #f6f1e5 230deg 240deg, var(--cherry) 240deg 250deg, #f6f1e5 250deg 260deg, var(--emerald) 260deg 270deg, #f6f1e5 270deg 280deg, var(--cherry) 280deg 290deg, #f6f1e5 290deg 300deg, var(--emerald) 300deg 310deg, #f6f1e5 310deg 320deg, var(--cherry) 320deg 330deg, #f6f1e5 330deg 340deg, var(--emerald) 340deg 360deg);
  box-shadow: inset 0 0 0 12px var(--emerald), 0 10px 24px rgba(6,72,63,.2);
  font: 800 1rem/1 var(--sans);
}
.brand strong {
  font: 700 1.08rem/1 var(--serif);
  letter-spacing: .02em;
}
.desktop-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.nav-group { position: relative; padding: 8px 0; }
.nav-trigger,
.menu-toggle {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--emerald);
  padding: 10px 15px;
  font: 750 .82rem/1 var(--sans);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-trigger:hover,
.nav-group.is-open .nav-trigger,
.menu-toggle:hover {
  background: var(--emerald);
  color: #fff;
}
.nav-panel {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  min-width: 280px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(248,251,247,.98);
  box-shadow: var(--shadow);
  border: 1px solid rgba(6,72,63,.12);
}
.nav-group:hover .nav-panel,
.nav-group.is-open .nav-panel { display: grid; }
.nav-panel a,
.mobile-nav a {
  padding: 11px 12px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 720;
}
.nav-panel a:hover,
.mobile-nav a:hover {
  background: rgba(197,164,93,.18);
  color: var(--cherry);
}
.menu-toggle { display: none; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, .98fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 6vw, 90px) clamp(16px, 5vw, 70px) clamp(24px, 5vw, 64px);
}
.hero::before {
  content: "";
  position: absolute;
  width: min(62vw, 760px);
  aspect-ratio: 1;
  right: -18vw;
  top: -20vw;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -18deg, rgba(201,31,44,.18) 0 10deg, rgba(248,251,247,.4) 10deg 20deg, rgba(6,72,63,.18) 20deg 30deg, rgba(248,251,247,.4) 30deg 40deg);
  mask: radial-gradient(circle, transparent 0 42%, #000 43% 64%, transparent 65%);
  pointer-events: none;
}
.hero-copy { position: relative; min-width: 0; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cherry);
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .75rem;
}
.eyebrow::before {
  content: "";
  width: 46px;
  height: 2px;
  background: var(--gold);
}
h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8.4vw, 8.2rem);
  line-height: .88;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--emerald);
  overflow-wrap: break-word;
}
.dek {
  max-width: 66ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
}
.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.signal-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--emerald);
  font-size: .84rem;
  font-weight: 780;
}
.signal-row span:nth-child(2) { color: var(--cherry); }
.signal-row span:nth-child(3) { color: #80631f; }
.hero-media {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 48% 52% 42% 58% / 56% 42% 58% 44%;
  overflow: hidden;
  background: var(--emerald);
  box-shadow: var(--shadow);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.55);
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}
.hero-media figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: calc(100% - 48px);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(248,251,247,.82);
  color: var(--emerald);
  font-size: .78rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.page-index {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin: 0 clamp(16px, 5vw, 70px) clamp(22px, 4vw, 48px);
}
.index-row {
  grid-column: span 4;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 45%),
    var(--emerald);
  box-shadow: 0 18px 42px rgba(9,31,27,.13);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}
.index-row:nth-child(5n+2) { background-color: var(--cherry); }
.index-row:nth-child(5n+3) { background-color: #244b8f; }
.index-row:nth-child(5n+4) { background-color: #73561e; }
.index-row:nth-child(7n+1) { grid-column: span 5; }
.index-row:nth-child(9n+3) { grid-column: span 7; }
.index-row::after {
  content: "";
  position: absolute;
  width: 180px;
  aspect-ratio: 1;
  right: -54px;
  bottom: -64px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.22) 0 12deg, transparent 12deg 24deg);
}
.index-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(9,31,27,.19);
}
.index-row span {
  font-size: .8rem;
  font-weight: 850;
  opacity: .72;
}
.index-row strong {
  position: relative;
  z-index: 1;
  font: 700 clamp(1.4rem, 2.6vw, 2.5rem)/.98 var(--serif);
  max-width: 11ch;
}
.index-row em {
  position: relative;
  z-index: 1;
  font-style: normal;
  color: rgba(255,255,255,.78);
  max-width: 48ch;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(150px, .22fr) minmax(0, 780px) minmax(220px, .3fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  padding: clamp(34px, 5vw, 76px) clamp(16px, 5vw, 70px);
}
.toc-panel,
.related-panel {
  border-radius: 28px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(9,31,27,.08);
  padding: 16px;
}
.toc-panel {
  display: grid;
  gap: 2px;
  font-size: .83rem;
}
.toc-panel a {
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 720;
}
.toc-panel a:hover {
  background: rgba(12,107,87,.1);
  color: var(--emerald);
}
.article-body {
  min-width: 0;
  border-radius: 34px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(23,35,32,.12);
  padding: clamp(20px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.article-body h2 {
  margin: 2.1em 0 .7em;
  font: 700 clamp(1.65rem, 3.3vw, 3rem)/1 var(--serif);
  color: var(--emerald);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  margin: 1.7em 0 .55em;
  font: 800 1.18rem/1.25 var(--sans);
  color: var(--cherry);
}
.article-body p,
.article-body li { font-size: 1.04rem; }
.article-body a {
  color: var(--cherry);
  text-decoration-color: rgba(201,31,44,.35);
  text-underline-offset: 3px;
}
.article-body code {
  background: rgba(197,164,93,.16);
  padding: .1em .35em;
  border-radius: 8px;
  font-family: Consolas, "Courier New", monospace;
}
.article-body ul { padding-left: 1.25rem; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 26px 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
th, td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(23,35,32,.1);
  text-align: left;
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
th {
  background: var(--emerald);
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.related-panel h2 {
  margin: 0 0 14px;
  font: 700 1.25rem/1 var(--serif);
  color: var(--emerald);
}
.route-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  text-decoration: none;
}
.route-card img {
  width: 78px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(9,31,27,.16);
}
.route-card span {
  font-weight: 800;
  line-height: 1.2;
  color: var(--emerald);
}
.route-card:hover span { color: var(--cherry); }
.faq-block {
  margin-top: 44px;
  padding-top: 8px;
}
.faq-item {
  border-radius: 22px;
  margin: 12px 0;
  background: rgba(238,244,241,.8);
  border: 1px solid rgba(23,35,32,.12);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 850;
  color: var(--emerald);
}
.faq-item[open] summary {
  background: rgba(197,164,93,.2);
  color: var(--cherry);
}
.faq-item p { padding: 0 18px 16px; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(16px, 5vw, 70px);
  background: var(--emerald);
  color: rgba(255,255,255,.86);
}

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-block; justify-self: end; }
  .mobile-nav {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 24px;
    background: rgba(248,251,247,.96);
    border: 1px solid var(--line);
    padding: 8px;
  }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav summary {
    padding: 12px;
    font-weight: 850;
    color: var(--emerald);
    cursor: pointer;
  }
  .mobile-nav a { display: block; }
  .hero,
  .content-shell { grid-template-columns: 1fr; }
  .toc-panel,
  .related-panel { display: none; }
  .page-index { grid-template-columns: repeat(6, 1fr); }
  .index-row,
  .index-row:nth-child(7n+1),
  .index-row:nth-child(9n+3) { grid-column: span 3; }
}

@media (max-width: 680px) {
  .site-header { grid-template-columns: 1fr auto; gap: 10px; }
  .brand strong { font-size: .95rem; }
  .hero { padding-top: 24px; }
  h1 { font-size: clamp(2.8rem, 18vw, 5rem); }
  .hero-media { border-radius: 28px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .page-index { grid-template-columns: 1fr; }
  .index-row,
  .index-row:nth-child(7n+1),
  .index-row:nth-child(9n+3) {
    grid-column: 1;
    min-height: 210px;
  }
  .article-body { border-radius: 24px; padding: 18px; }
  table { min-width: 520px; }
}

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