:root {
  --ink: #12212c;
  --navy: #0b2a3d;
  --teal: #087e78;
  --teal-dark: #05645f;
  --aqua: #d9f3ee;
  --gold: #e1ab45;
  --cream: #f7f3e8;
  --paper: #fffdf8;
  --muted: #5c6b73;
  --line: #d9e0df;
  --shadow: 0 18px 50px rgba(11, 42, 61, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; line-height: 1.65; }
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: -70px; padding: 10px 14px; background: white; color: var(--navy); z-index: 1000; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,248,.95); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(11,42,61,.10); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50% 50% 50% 12px; background: var(--teal); color: white; font-family: "Libre Franklin", sans-serif; font-weight: 800; font-size: 20px; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 18px/1.1 "Libre Franklin", sans-serif; color: var(--navy); }
.brand small { margin-top: 4px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { text-decoration: none; font-size: 14px; font-weight: 700; color: var(--navy); }
nav a:hover, nav a:focus { color: var(--teal); }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 7px; padding: 8px 12px; color: var(--navy); }

.hero { position: relative; overflow: hidden; padding: 84px 0 0; background: linear-gradient(135deg, #f7f3e8 0%, #fffdf8 52%, #e8f7f2 100%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -180px; border: 82px solid rgba(8,126,120,.08); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
h1, h2, h3, h4 { margin-top: 0; color: var(--navy); }
h1 { margin-bottom: 24px; font: 800 clamp(44px, 6vw, 76px)/1.03 "Libre Franklin", sans-serif; letter-spacing: -.045em; }
h1 span { color: var(--teal); }
h2 { margin-bottom: 18px; font: 800 clamp(30px, 4vw, 46px)/1.13 "Libre Franklin", sans-serif; letter-spacing: -.03em; }
h3 { font: 750 24px/1.25 "Libre Franklin", sans-serif; }
h4 { margin-bottom: 16px; font: 800 25px/1.2 "Libre Franklin", sans-serif; letter-spacing: -.02em; }
.hero-copy { max-width: 720px; font-size: 19px; color: #334851; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border-radius: 7px; text-decoration: none; border: 1px solid transparent; font-weight: 800; cursor: pointer; }
.button.primary { color: white; background: var(--teal); box-shadow: 0 8px 18px rgba(8,126,120,.18); }
.button.primary:hover, .button.primary:focus { background: var(--teal-dark); }
.button.secondary { color: var(--navy); background: transparent; border-color: #9fb2b5; }
.button.secondary:hover, .button.secondary:focus { border-color: var(--teal); color: var(--teal-dark); background: white; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; color: #42555c; font-size: 14px; font-weight: 600; }
.hero-checks li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 8px; }
.hero-panel { padding: 30px; background: var(--navy); color: white; border-radius: 28px 6px 28px 6px; box-shadow: var(--shadow); }
.panel-kicker { margin: 0 0 18px; color: #95ddd4; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.hero-panel ol { list-style: none; padding: 0; margin: 0; }
.hero-panel li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.15); }
.hero-panel li span { color: var(--gold); font-weight: 800; }
.hero-panel strong, .hero-panel small { display: block; }
.hero-panel strong { color: white; font-size: 16px; }
.hero-panel small { color: #c8d7db; margin-top: 3px; line-height: 1.45; }
.stat-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; background: white; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 30px rgba(11,42,61,.05); }
.stat-row div { padding: 24px 30px; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--line); }
.stat-row div:last-child { border-right: 0; }
.stat-row strong { color: var(--teal); font: 800 34px/1 "Libre Franklin", sans-serif; }
.stat-row span { color: var(--muted); font-size: 14px; }

.band { background: var(--cream); }
.purpose { padding: 92px 0; }
.purpose-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 86px; align-items: start; }
.purpose p { color: #3f5058; }
.purpose p:first-child { margin-top: 0; }

.library { padding: 100px 0 50px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-heading.compact { align-items: center; }
.section-heading.compact > p { max-width: 520px; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter { border: 1px solid var(--line); background: white; color: var(--navy); border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 700; cursor: pointer; }
.filter:hover, .filter:focus, .filter.active { background: var(--navy); border-color: var(--navy); color: white; }
.resource-group { padding: 56px 0 68px; border-top: 1px solid var(--line); }
.resource-group[hidden] { display: none; }
.group-intro { display: grid; grid-template-columns: 72px minmax(0, 760px); gap: 24px; margin-bottom: 32px; }
.number { color: var(--gold); font: 800 22px/1 "Libre Franklin", sans-serif; padding-top: 8px; }
.category-label { margin: 0 0 7px; color: var(--teal-dark); text-transform: uppercase; font-size: 12px; letter-spacing: .15em; font-weight: 800; }
.group-intro h3 { margin-bottom: 9px; font-size: 31px; }
.group-intro p:last-child { margin: 0; color: var(--muted); }
.resource-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.resource-card { display: flex; flex-direction: column; padding: 32px; background: white; border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 6px 6px 18px 6px; box-shadow: 0 12px 30px rgba(11,42,61,.055); }
.resource-card[hidden] { display: none; }
.resource-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.resource-type { color: var(--teal-dark); text-transform: uppercase; letter-spacing: .09em; font-size: 11px; font-weight: 800; }
.access { flex: 0 0 auto; padding: 5px 8px; border-radius: 4px; background: var(--aqua); color: #075a55; font-size: 11px; font-weight: 800; }
.resource-card p { color: #405159; }
.resource-card strong { color: var(--navy); }
.rationale { padding-top: 18px; margin-top: 6px; border-top: 1px dashed #c7d2d0; }
.resource-link { margin-top: auto; padding-top: 22px; color: var(--teal-dark); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.resource-link:hover, .resource-link:focus { color: var(--navy); }

.ai-framework { padding: 100px 0; }
.traffic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.traffic { position: relative; overflow: hidden; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 8px 8px 22px 8px; }
.traffic::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.traffic.green::before { background: #21895d; }
.traffic.yellow::before { background: #c78c12; }
.traffic.red::before { background: #b84d4d; }
.traffic-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: white; font-weight: 800; }
.traffic-label { margin: 18px 0 7px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; color: var(--muted); }
.traffic h3 { margin-bottom: 12px; font-size: 21px; }
.traffic p:last-child { margin-bottom: 0; color: #43545b; }
.ai-questions { margin-top: 24px; padding: 30px 34px; background: var(--navy); color: white; border-radius: 18px 6px 18px 6px; }
.ai-questions h3 { color: white; margin-bottom: 17px; }
.ai-questions ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 58px; }
.ai-questions li { break-inside: avoid; margin-bottom: 12px; color: #d7e5e7; }

.plan-builder { padding: 100px 0; background: var(--navy); color: white; }
.builder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 76px; align-items: start; }
.plan-builder h2 { color: white; }
.plan-builder .eyebrow { color: #92ddd3; }
.plan-builder p { color: #c8d7db; }
.builder-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 30px; background: white; color: var(--ink); border-radius: 22px 6px 22px 6px; }
.builder-form label { color: var(--navy); font-size: 13px; font-weight: 800; }
.builder-form label:first-of-type, .builder-form select { grid-column: 1 / -1; }
.builder-form input, .builder-form select { width: 100%; min-height: 46px; border: 1px solid #bac7c9; border-radius: 6px; padding: 10px 12px; background: white; color: var(--ink); }
.builder-form input:focus, .builder-form select:focus { outline: 3px solid rgba(8,126,120,.2); border-color: var(--teal); }
.builder-form .button, .plan-output, .copy-button { grid-column: 1 / -1; }
.builder-form .button { margin-top: 8px; }
.plan-output { min-height: 86px; margin-top: 6px; padding: 17px; border-radius: 6px; background: var(--cream); color: var(--navy); border-left: 4px solid var(--gold); }
.copy-button { justify-self: start; border: 0; background: transparent; color: var(--teal-dark); font-weight: 800; text-decoration: underline; cursor: pointer; }

.evidence { padding: 100px 0; }
.evidence-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: center; }
.evidence-grid p { color: #45575e; }
.evidence-table { overflow-x: auto; background: white; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 17px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: white; font-size: 13px; }
td:first-child { color: var(--teal-dark); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

.references { padding: 100px 0; background: white; }
.reference-columns { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.reference-columns h3 { padding-bottom: 12px; border-bottom: 2px solid var(--gold); font-size: 20px; }
.reference { padding-left: 28px; text-indent: -28px; font-size: 14px; color: #374b53; overflow-wrap: anywhere; }
.reference a { color: var(--teal-dark); }

footer { padding: 48px 0; background: #071f2e; color: white; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; }
footer strong { font: 800 19px/1.2 "Libre Franklin", sans-serif; }
footer p { margin: 8px 0 0; color: #aabfc4; }
.footer-meta { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 26px; color: #d5e2e4; font-size: 13px; text-align: right; }

@media (max-width: 900px) {
  .hero-grid, .purpose-grid, .builder-grid, .evidence-grid, .reference-columns { grid-template-columns: 1fr; gap: 42px; }
  .resource-list, .traffic-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .filter-bar { justify-content: flex-start; }
  .hero { padding-top: 58px; }
  .hero-panel { max-width: 650px; }
  .ai-questions ol { columns: 1; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1180px); }
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; left: 14px; right: 14px; top: 70px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { padding: 11px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-row div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-row div:last-child { border-bottom: 0; }
  .group-intro { grid-template-columns: 1fr; gap: 10px; }
  .builder-form { grid-template-columns: 1fr; }
  .builder-form label, .builder-form input { grid-column: 1 / -1; }
  .footer-grid { flex-direction: column; }
  .footer-meta { grid-template-columns: 1fr; text-align: left; }
  h1 { font-size: 43px; }
  .resource-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero-actions, .filter-bar, .plan-builder, .print-button, .copy-button { display: none !important; }
  .hero, .band, .references, footer { background: white !important; color: black !important; }
  .hero { padding-top: 24px; }
  .hero-panel { background: white; color: black; border: 1px solid #999; box-shadow: none; }
  .hero-panel strong, .hero-panel small, .hero-panel li span { color: black; }
  .resource-list, .traffic-grid { grid-template-columns: 1fr; }
  .resource-card, .traffic { box-shadow: none; break-inside: avoid; }
  a { color: black !important; }
}
