/* Shared chrome for the per-state requirement pages (/why/<state>).
   Tokens, nav, buttons and footer are lifted verbatim from why.html so the
   generated pages sit inside the same brand system; everything below the
   "state page" divider is specific to these pages. */

:root {
  --green: #58cc02;
  --green-dark: #46a302;
  --green-deep: #3a8a00;
  --green-tint: #e8fad4;
  --gold: #ffc800;
  --gold-dark: #e6a700;
  --gold-tint: #fff3cc;
  --ocean: #1aa3e8;
  --ocean-dark: #1184c6;
  --ocean-deep: #0d6699;
  --ocean-tint: #e1f3fd;
  --red: #ff4b4b;
  --red-tint: #ffe3e3;
  --map-green: #46a302;
  --map-green-deep: #37820a;
  --map-red: #e0483f;
  --map-red-deep: #bb352d;
  --ink: #17435c;
  --text: #3c3c3c;
  --text-dim: #6b7c85;
  --line: #d9ecf5;
  --paper: #ffffff;
  --water-1: #f2fbff;
  --water-2: #dff3fd;
  --radius: 16px;
  --radius-lg: 22px;
  --font-display: "Nunito", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Baloo 2", var(--font-display);
  --shadow-card: 0 2px 4px rgba(13,102,153,0.06), 0 10px 26px rgba(13,102,153,0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--water-1); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, .btn, .navlinks a { font-family: var(--font-display); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--ocean-dark); }
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 40px); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01s !important; transition: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 15px; border: 0;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-dark); }
.btn-green:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-green:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-dark); }
.btn-ghost { background: #fff; color: var(--ocean-deep); border: 2px solid var(--line); border-bottom-width: 4px; }
.btn-ghost:hover { border-color: var(--ocean); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(2px); border-bottom-width: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brandline { display: flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-weight: 800; font-size: 25px; color: var(--green); letter-spacing: -0.5px; text-decoration: none; }
.brandline svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.14)); }
.navlinks { display: flex; align-items: center; gap: 16px; }
.navlinks a:not(.btn) { font-weight: 700; font-size: 15px; color: var(--text-dim); text-decoration: none; transition: transform 0.12s ease; display: inline-block; }
.navlinks a:not(.btn):hover { color: var(--ocean-dark); transform: translateY(-1px); }
.navlinks a[aria-current="page"] { color: var(--green-dark); }
.navlinks a:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 6px; }
.nav .btn { padding: 10px 20px; font-size: 14.5px; }
#navAuthBtn { min-width: 104px; }
#navPrimaryBtn { min-width: 188px; }
@media (max-width: 1100px) { .navlinks a:not(.btn) { display: none; } #navAuthBtn { display: none; } #navPrimaryBtn { min-width: 0; } }

/* ================= state page ================= */

/* breadcrumb */
.crumbs { padding: 18px 0 0; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--ocean-dark); text-decoration: underline; }
.crumbs span { margin: 0 7px; opacity: 0.6; }

/* hero */
.s-hero { background: var(--water-2); border-bottom: 2px solid var(--line); }
.s-hero .wrap { max-width: 900px; padding: 26px 0 54px; }
.s-eyebrow {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin: 22px 0 14px;
}
.s-hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 20px; }
.s-answer {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 2px solid var(--line); border-bottom-width: 5px;
  border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-card);
}
.s-answer .verdict {
  flex: none; font-family: var(--font-display); font-weight: 900; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.s-answer.yes .verdict { background: var(--map-green); box-shadow: 0 3px 0 var(--map-green-deep); }
.s-answer.no .verdict { background: var(--map-red); box-shadow: 0 3px 0 var(--map-red-deep); }
.s-answer p { margin: 0; font-size: 16px; line-height: 1.7; font-weight: 600; color: var(--text); }
.s-answer p b { color: var(--ink); }
@media (max-width: 640px) { .s-answer { flex-direction: column; gap: 12px; } }

/* generic section */
.s-sec { padding: 54px 0; }
.s-sec h2 { font-size: clamp(23px, 2.8vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 10px; }
.s-sec .lede { font-size: 16px; line-height: 1.72; color: var(--text-dim); font-weight: 600; max-width: 66ch; margin: 0 0 26px; }

/* what it means list */
.tlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 74ch; }
.tlist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; font-size: 15.5px; color: var(--text); line-height: 1.6; }
.tlist .tick { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 900; margin-top: 2px; box-shadow: 0 2px 0 var(--green-dark); }
.tlist.warn .tick { background: var(--map-red); box-shadow: 0 2px 0 var(--map-red-deep); }

/* neighbours grid */
.nbrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.nbr {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
  background: var(--paper); border: 2px solid var(--line); border-bottom-width: 4px;
  border-radius: 14px; padding: 13px 15px; transition: transform 0.12s ease, border-color 0.12s ease;
}
.nbr:hover { transform: translateY(-2px); border-color: var(--ocean); }
.nbr:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; }
.nbr i { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.nbr.yes i { background: var(--map-green); box-shadow: 0 2px 0 var(--map-green-deep); }
.nbr.no i { background: var(--map-red); box-shadow: 0 2px 0 var(--map-red-deep); }
.nbr b { font-family: var(--font-display); font-size: 15px; color: var(--ink); font-weight: 800; }
.nbr small { display: block; font-size: 12px; color: var(--text-dim); font-weight: 700; margin-top: 1px; }

/* national stat strip */
.natstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.natstat { background: var(--paper); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: var(--radius); padding: 20px 22px; }
.natstat .n { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.natstat p { margin: 9px 0 0; font-size: 13.5px; font-weight: 700; line-height: 1.55; color: var(--text-dim); }
@media (max-width: 760px) { .natstrip { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 12px; max-width: 80ch; }
.faq details { background: var(--paper); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; flex: none; border-right: 2.4px solid var(--text-dim); border-bottom: 2.4px solid var(--text-dim); transform: rotate(45deg); margin-top: -4px; transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq summary:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 8px; }
.faq p { margin: 0 0 16px; font-size: 15px; line-height: 1.72; font-weight: 600; color: var(--text); }

/* cta */
.s-cta { background: var(--water-2); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); text-align: center; }
.s-cta .wrap { max-width: 720px; padding: 56px 0; }
.s-cta h2 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.025em; margin: 0 0 12px; }
.s-cta p { font-size: 16.5px; line-height: 1.7; color: var(--text-dim); font-weight: 600; margin: 0 0 26px; }
.s-cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.s-src { margin: 30px 0 0; font-size: 13px; font-weight: 700; color: var(--text-dim); max-width: 72ch; line-height: 1.65; }
.s-src a { font-weight: 800; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #bcd8e6; padding: 52px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.foot-brand .brandline { color: #8ee14f; font-size: 22px; }
.foot-brand p { margin: 12px 0 0; font-weight: 600; font-size: 13.5px; line-height: 1.7; max-width: 34ch; }
.foot-col { display: grid; gap: 9px; justify-items: start; }
.foot-col h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 800; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #7fb4cd; }
.foot-col a { color: #d3ecf8; font-weight: 700; font-size: 14px; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.footer a:focus-visible { outline: 3px solid #9fd6f2; outline-offset: 3px; border-radius: 4px; }
.foot-fine { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12.5px; font-weight: 600; color: #7fa8bd; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }
