:root {
  --ink: #1f2527;
  --muted: #596467;
  --paper: #ffffff;
  --soft: #f3f6f4;
  --line: #cbd4d1;
  --signal: #dceee9;
  --teal: #0d665d;
  --teal-dark: #073f3a;
  --coral: #b54837;
  --mustard: #d6a528;
  --night: #232c31;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.62; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--coral); }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; margin: 0 0 0.65rem; letter-spacing: 0; }
h1 { font-size: clamp(2.15rem, 4.4rem, 4.4rem); max-width: 15ch; }
h2 { font-size: 2rem; }
h3 { font-size: 1.24rem; }
p, ul, ol { margin-top: 0; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 800px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 30; background: var(--paper); color: var(--ink); padding: 10px 14px; border: 2px solid var(--ink); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead, .footer-row { min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 700; text-decoration: none; }
.masthead span { color: var(--muted); font-size: 0.9rem; }
.section-nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; min-height: 48px; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: thin; }
.nav-row a { flex: 0 0 auto; color: var(--ink); font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.first-screen { padding: 34px 0 44px; border-bottom: 1px solid var(--line); }
.first-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 42px; align-items: start; }
.first-copy { min-width: 0; }
.eyebrow, .kicker, .lane { color: var(--coral); font: 800 0.76rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; }
.lede { font-size: 1.16rem; color: #354045; max-width: 73ch; }
.bottom-line { margin: 22px 0; padding: 18px 0 18px 20px; border-left: 5px solid var(--mustard); }
.bottom-line h2 { font-size: 1.25rem; }
.bottom-line p { margin: 0; }
.start-list { padding-left: 1.2rem; }
.start-list li { margin-bottom: 0.45rem; }
.warning { padding: 12px 14px; border: 1px solid #dfb5ad; background: #fff4f1; }
.primary-link { display: inline-block; padding: 10px 14px; color: var(--paper); background: var(--teal); text-decoration: none; font-weight: 800; border-radius: 4px; }
.primary-link:hover { color: var(--paper); background: var(--coral); }
.hero { margin: 0; border-bottom: 5px solid var(--mustard); }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero figcaption { padding: 8px 2px; color: var(--muted); font-size: 0.8rem; }
.section { padding: 68px 0; scroll-margin-top: 82px; }
.band-light { background: var(--soft); }
.band-signal { background: var(--signal); border-block: 1px solid #bfd7d0; }
.band-dark { background: var(--night); color: #f8faf9; }
.band-dark .kicker { color: #f3c85e; }
.band-dark p { color: #e2e7e5; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 0.92rem; }
caption { padding: 12px 14px; text-align: left; color: var(--muted); font-weight: 700; }
th, td { padding: 13px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { color: var(--paper); background: var(--teal-dark); border-top: 0; }
tbody th { width: 180px; }
tbody th span { color: var(--muted); font-size: 0.78rem; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.source-note { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.definitions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.definition, .recommendation { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.definition { padding: 20px; }
.definition h3 { padding-bottom: 10px; border-bottom: 3px solid var(--mustard); }
.definition p { margin-bottom: 0.65rem; }
.definition p:last-child { margin-bottom: 0; color: var(--coral); }
.recommendation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.recommendation { padding: 26px; border-top: 5px solid var(--teal); }
.recommendation:nth-child(2) { border-top-color: var(--coral); }
.recommendation:nth-child(3) { border-top-color: var(--mustard); }
.recommendation:nth-child(4) { border-top-color: #47759c; }
.recommendation li { margin-bottom: 0.4rem; }
.passport-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #9fc4ba; border: 1px solid #9fc4ba; }
.passport-grid > div { background: #f9fffd; padding: 22px; }
.passport-grid p { margin: 0; }
.utility-result { margin: 20px 0 0; padding: 14px 16px; background: var(--teal-dark); color: var(--paper); }
.rehearsal { display: grid; grid-template-columns: 1.45fr .55fr; gap: 34px; align-items: start; }
.rehearsal li { margin-bottom: 0.8rem; }
.callout { padding: 22px; border: 1px solid #e4c165; border-top: 6px solid var(--mustard); background: #fffaf0; }
.test-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.test-steps > div { position: relative; background: var(--paper); padding: 24px 20px 20px; }
.test-steps span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--coral); color: var(--paper); font-weight: 800; }
.noscript-landmark { margin: 18px 0 0; padding: 14px; border: 2px solid var(--teal); background: var(--paper); }
.return-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.return-grid article { padding-top: 16px; border-top: 5px solid var(--coral); }
.return-grid article:nth-child(2) { border-top-color: var(--teal); }
.details-scroll table { min-width: 1120px; }
.source-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 42px; }
.source-columns > div { border-top: 3px solid var(--teal); padding-top: 14px; }
.source-columns li { margin-bottom: 0.45rem; overflow-wrap: anywhere; }
.correction { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.site-footer { color: #dce3e0; background: var(--night); }
.footer-row { min-height: 84px; }
.footer-row p { margin: 0; font-size: 0.85rem; }

@media (max-width: 900px) {
  .first-grid { grid-template-columns: 1fr; }
  .hero { grid-row: 1; }
  .definitions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .masthead { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0; padding-block: 8px; }
  .masthead span { display: none; }
  .nav-row { gap: 18px; }
  .first-screen { padding-top: 18px; }
  .first-grid { gap: 18px; }
  .hero img { height: 190px; aspect-ratio: auto; }
  h1 { font-size: 2.25rem; max-width: none; }
  h2 { font-size: 1.72rem; }
  .lede { font-size: 1.04rem; }
  .section { padding: 50px 0; }
  .definitions, .recommendation-grid, .passport-grid, .rehearsal, .test-steps, .return-grid, .source-columns { grid-template-columns: 1fr; }
  .recommendation { padding: 21px; }
  .details-scroll { overflow-x: visible; border: 0; }
  .details-scroll table, .details-scroll tbody, .details-scroll tr, .details-scroll th, .details-scroll td { display: block; min-width: 0; width: 100%; }
  .details-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .details-scroll caption { display: block; padding-inline: 0; }
  .details-scroll tr { margin-bottom: 18px; border: 1px solid var(--line); background: var(--paper); }
  .details-scroll th { background: var(--teal-dark); color: var(--paper); }
  .details-scroll td { position: relative; padding: 40px 14px 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
  .details-scroll td::before { content: attr(data-label); position: absolute; top: 10px; left: 14px; right: 14px; color: var(--coral); font-size: 0.72rem; line-height: 1.2; font-weight: 800; text-transform: uppercase; }
  .footer-row { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

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