/* TeacherPayGuide design system ------------------------------------------- */
:root {
  --ink: #121a2b;
  --ink-2: #1b2640;
  --ink-3: #27344f;
  --paper: #faf7f2;
  --paper-2: #f2ede4;
  --paper-3: #e8e1d4;
  --thread: #e4553b;
  --thread-soft: #f6c9bf;
  --amber: #f0a35a;
  --teal: #1f8a8a;
  --teal-soft: #d6ecec;

  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: var(--paper-3);
  --fg: #1a2233;
  --fg-2: #4b5567;
  --fg-3: #7b8597;
  --line: rgba(26, 34, 51, .12);
  --line-strong: rgba(26, 34, 51, .24);
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(18,26,43,.05), 0 12px 32px -16px rgba(18,26,43,.25);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1522; --bg-2: #141c2e; --bg-3: #1b2439;
    --fg: #eef0f4; --fg-2: #b6bdcb; --fg-3: #7f889b;
    --line: rgba(238,240,244,.1); --line-strong: rgba(238,240,244,.22);
    --card: #161f33; --thread-soft: #4a2a25; --teal-soft: #163a3a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -20px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1522; --bg-2: #141c2e; --bg-3: #1b2439;
  --fg: #eef0f4; --fg-2: #b6bdcb; --fg-3: #7f889b;
  --line: rgba(238,240,244,.1); --line-strong: rgba(238,240,244,.22);
  --card: #161f33; --thread-soft: #4a2a25; --teal-soft: #163a3a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -20px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a, td a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover, li a:hover { color: var(--thread); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; font-variation-settings: "opsz" 120; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4, .h-label { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); font-weight: 600; margin-bottom: .9em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--thread); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--thread); margin-bottom: 1rem; }
.eyebrow--light { color: #ffd9cf; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--fg-2); max-width: 60ch; line-height: 1.55; }
.muted { color: var(--fg-2); }
.small { font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.35em; border-radius: 999px;
  background: var(--thread); color: #fff; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 8px 24px -12px rgba(228,85,59,.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(228,85,59,.8); }
.btn--small { padding: .6em 1.05em; font-size: .85rem; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn--light { background: #fff; color: var(--ink); box-shadow: none; }
.btn--light:hover { box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); }
.link-arrow { font-weight: 600; color: var(--thread); display: inline-flex; align-items: center; gap: .35em; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.brand__mark { flex: none; }
.brand__word { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.02em; font-weight: 400; font-variation-settings: "opsz" 40; }
.brand__word b { font-weight: 600; position: relative; }
.brand__word b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: repeating-linear-gradient(90deg, var(--thread) 0 6px, transparent 6px 10px); }
.brand__word--lg { font-size: 1.8rem; display: inline-block; margin-bottom: 14px; }
.nav { display: flex; gap: 6px; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--fg-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--fg); background: var(--bg-2); }
body[data-section="states"] .nav a[data-nav="states"], body[data-section="articles"] .nav a[data-nav="articles"], body[data-section="compare"] .nav a[data-nav="compare"], body[data-section="resources"] .nav a[data-nav="resources"], body[data-section="about"] .nav a[data-nav="about"] { color: var(--fg); position: relative; }
body[data-section] .nav a[data-nav]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--thread); transform: scaleX(0); transition: transform .3s var(--ease); transform-origin: left; }
body[data-section="states"] .nav a[data-nav="states"]::after, body[data-section="articles"] .nav a[data-nav="articles"]::after, body[data-section="compare"] .nav a[data-nav="compare"]::after, body[data-section="resources"] .nav a[data-nav="resources"]::after, body[data-section="about"] .nav a[data-nav="about"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--fg-2); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { color: var(--fg); border-color: var(--line-strong); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); transition: transform .3s var(--ease); }
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header__actions .btn { display: none; }
}

/* Hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 50% at 70% 60%, rgba(228,85,59,.22), transparent 70%), radial-gradient(40% 40% at 20% 20%, rgba(31,138,138,.18), transparent 70%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; padding: clamp(72px, 11vw, 150px) 0 clamp(80px, 10vw, 130px); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: #ffb3a3; font-weight: 400; }
.hero .lede { color: rgba(255,255,255,.78); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero__cta .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.hero__cta .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__proof div { font-size: .85rem; color: rgba(255,255,255,.6); }
.hero__proof strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: #fff; font-weight: 500; line-height: 1.1; }
.hero--short .hero__inner { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }

/* State finder in hero */
.finder { display: flex; gap: 8px; max-width: 520px; margin-top: 28px; position: relative; }
.finder input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 1rem; outline: none; }
.finder input::placeholder { color: rgba(255,255,255,.5); }
.finder input:focus { border-color: #fff; background: rgba(255,255,255,.12); }
.finder__list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); color: var(--fg); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 5; max-height: 280px; overflow: auto; }
.finder__list.is-open { display: block; }
.finder__list a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
.finder__list a:hover, .finder__list a:focus { background: var(--bg-2); }
.finder__list a span { color: var(--fg-3); font-size: .8rem; }

/* Sections ----------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head p { margin: 0; color: var(--fg-2); max-width: 46ch; }
.band { background: var(--bg-2); }
.band--ink { background: var(--ink); color: #fff; }
.band--ink h2, .band--ink h3 { color: #fff; }
.band--ink p { color: rgba(255,255,255,.75); }
.band--thread { background: linear-gradient(120deg, #c8452e, var(--thread) 45%, #f07a4a); color: #fff; }
.band--thread h2 { color: #fff; }
.band--thread p { color: rgba(255,255,255,.85); }
.hairline { height: 1px; background: var(--line); }

/* How it works: numbered dots on one hairline */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 28px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--line-strong); }
.step { position: relative; }
.step__n { position: absolute; top: -28px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--thread); color: #fff; font-size: .75rem; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bg); }
.band .step__n { box-shadow: 0 0 0 6px var(--bg-2); }
.step h3 { margin-top: 8px; }
.step p { color: var(--fg-2); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps::before { display: none; } .step__n { position: static; margin-bottom: 10px; box-shadow: none; } }

/* State tiles */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.state-tile { position: relative; display: block; padding: 14px 14px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.state-tile.is-live:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--thread); }
.state-tile:not(.is-live) { opacity: .55; cursor: default; }
.state-tile__abbr { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; display: block; line-height: 1; }
.state-tile__name { display: block; font-weight: 600; font-size: .9rem; margin-top: 6px; }
.state-tile__meta { display: block; font-size: .74rem; color: var(--fg-3); margin-top: 2px; line-height: 1.3; }
.state-tile__tag { position: absolute; top: 10px; right: 10px; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--thread); background: var(--thread-soft); padding: 3px 7px; border-radius: 999px; }
.state-tile__tag--soon { color: var(--fg-3); background: var(--bg-2); }
.state-grid--home { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.state-grid--home .state-tile { padding: 12px 12px 10px; }
.state-grid--home .state-tile__meta { display: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-2); font-size: .97rem; flex: 1; }
.card__meta { font-size: .8rem; color: var(--fg-3); margin-top: 8px; }
.card--feature { grid-column: span 2; grid-row: span 2; justify-content: end; background: var(--ink); color: #fff; border: 0; min-height: 380px; position: relative; overflow: hidden; }
.card--feature h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.card--feature p { color: rgba(255,255,255,.75); flex: 0; }
.card--feature .card__kicker { color: #ffb3a3; }
.card--feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, rgba(228,85,59,.35), transparent 70%); }
.card--feature > * { position: relative; }
@media (max-width: 900px) { .card--feature { grid-column: span 2; grid-row: auto; min-height: 280px; } }
@media (max-width: 600px) { .card--feature { grid-column: auto; } }

/* Thread strip (home: why) */
.strip { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--fg-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--thread-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23e4553b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks strong { color: var(--fg); }

/* Fact panel ("The path") */
.thread-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.thread-panel::before { content: ""; position: absolute; left: 28px; top: 70px; bottom: 36px; width: 2px; background: repeating-linear-gradient(180deg, var(--thread) 0 8px, transparent 8px 14px); }
.thread-panel .h-label { margin-bottom: 18px; }
.thread-panel ol { list-style: none; margin: 0; padding: 0 0 0 36px; display: grid; gap: 18px; }
.thread-panel li { position: relative; font-size: .95rem; color: var(--fg-2); }
.thread-panel li::before { content: ""; position: absolute; left: -41px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--thread); box-shadow: 0 0 0 4px var(--card); }
.thread-panel li strong { display: block; color: var(--fg); font-weight: 600; }
.thread-panel .src { font-size: .78rem; color: var(--fg-3); }

/* Provider CTA */
.provider-cta { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: var(--bg-2); border-radius: 20px; padding: clamp(24px, 4vw, 44px); margin: clamp(40px, 6vw, 72px) 0; border: 1px solid var(--line); }
@media (max-width: 860px) { .provider-cta { grid-template-columns: 1fr; } }
.provider-cta__text p { color: var(--fg-2); margin: 0; }
.provider-cta__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .provider-cta__cards { grid-template-columns: 1fr; } }
.provider-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.provider-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--thread); }
.provider-card__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.provider-card__line { color: var(--fg-2); font-size: .9rem; flex: 1; }
.provider-card__go { color: var(--thread); font-weight: 600; font-size: .85rem; margin-top: 8px; }

/* Page header (inner pages) */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 18ch; }
.crumbs { display: flex; gap: 8px; font-size: .82rem; color: var(--fg-3); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { color: var(--fg-2); }
.crumbs span::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs span:first-child::before { display: none; }

/* State guide layout */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .guide { grid-template-columns: 1fr; } .guide__aside { order: -1; } }
.guide__aside { position: sticky; top: 90px; display: grid; gap: 18px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h2:first-of-type { margin-top: 0; border: 0; padding-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--fg-2); }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 1em 1.4em; border-left: 3px solid var(--thread); background: var(--bg-2); border-radius: 0 12px 12px 0; font-family: var(--serif); font-size: 1.15rem; color: var(--fg); }
.prose blockquote cite { display: block; font-family: var(--sans); font-size: .8rem; color: var(--fg-3); margin-top: .6em; font-style: normal; }
.cite { font-size: .8rem; color: var(--fg-3); }
table td:first-child { min-width: 150px; }
.notes { margin: 24px 0 0; display: grid; gap: 14px; }
.notes dt { font-weight: 600; margin-top: 8px; }
.notes dd { margin: 4px 0 0; color: var(--fg-2); max-width: 72ch; }
.cite a { color: var(--fg-3); }
.callout { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--card); margin: 1.6em 0; display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.callout__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.callout--warn .callout__icon { background: var(--thread-soft); color: var(--thread); }
.callout p { margin: 0; font-size: .95rem; }
.callout strong { display: block; margin-bottom: 2px; }

.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.facts .h-label { margin-bottom: 14px; }
.facts dl { margin: 0; display: grid; gap: 12px; }
.facts dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 500; font-size: .95rem; }
.facts dd small { display: block; font-weight: 400; color: var(--fg-3); font-size: .78rem; }
.toc { background: var(--bg-2); border-radius: var(--radius); padding: 20px 22px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .9rem; }
.toc a { color: var(--fg-2); }
.toc a:hover { color: var(--thread); }
.updated { font-size: .8rem; color: var(--fg-3); display: flex; gap: 6px; align-items: center; }
.updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 1.5em 0; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.is-ours td { background: color-mix(in srgb, var(--thread-soft) 45%, transparent); }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.pill--ours { background: var(--thread-soft); color: var(--thread); }

/* Districts list */
.districts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.5em 0; }
@media (max-width: 640px) { .districts { grid-template-columns: 1fr; } }
.district { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.district h3 { font-size: 1.1rem; margin: 0 0 6px; }
.district p { font-size: .9rem; margin: 0 0 8px; }
.district .cite { display: block; }

/* Articles */
.article-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; }
.article-row:hover h3 { color: var(--thread); }
.article-row h3 { margin: 0 0 6px; transition: color .2s; }
.article-row p { margin: 0; color: var(--fg-2); font-size: .95rem; }
.article-row time { font-size: .82rem; color: var(--fg-3); }
.article-row .pill { justify-self: end; }
@media (max-width: 640px) { .article-row { grid-template-columns: 1fr; gap: 8px; } .article-row .pill { justify-self: start; } }
.article-head { max-width: 760px; padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.byline { display: flex; align-items: center; gap: 12px; color: var(--fg-3); font-size: .88rem; margin-top: 18px; }
.byline__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; }
.article-body { max-width: 720px; }
.article-body .prose p { font-size: 1.05rem; line-height: 1.7; }
.article-body .prose h2 { border: 0; padding-top: 0; margin-top: 1.8em; }

/* Resources */
.res-group { margin-bottom: clamp(32px, 5vw, 56px); }
.res-group h2 { margin-bottom: 8px; }
.res-group > p { color: var(--fg-2); margin-bottom: 20px; }
.res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.res { display: grid; grid-template-columns: 1fr auto; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .2s, transform .25s var(--ease); }
.res:hover { border-color: var(--thread); transform: translateY(-2px); }
.res strong { display: block; font-weight: 600; }
.res span { display: block; color: var(--fg-3); font-size: .84rem; margin-top: 2px; }
.res small { color: var(--teal); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* Newsletter band */
.newsletter { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: clamp(48px, 7vw, 80px) var(--gutter); }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter h2 { margin-bottom: .4em; }
.newsletter p { margin: 0; }
.newsletter__form { display: flex; gap: 10px; position: relative; flex-wrap: wrap; }
.newsletter__form input { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px; border: 0; font: inherit; }
.newsletter__done { display: none; width: 100%; margin: 8px 0 0; color: #fff; font-weight: 600; }
.newsletter__form.is-done input, .newsletter__form.is-done .btn { display: none; }
.newsletter__form.is-done .newsletter__done { display: block; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(48px, 6vw, 80px) 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer .brand__word { color: #fff; }
.site-footer p { font-size: .92rem; max-width: 44ch; }
.site-footer .disclosure { font-size: .82rem; color: rgba(255,255,255,.5); }
.site-footer .disclosure a { color: rgba(255,255,255,.75); }
.site-footer .h-label { color: rgba(255,255,255,.5); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: rgba(255,255,255,.8); font-size: .92rem; text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer ul a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: rgba(255,255,255,.45); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Stitched divider */
.stitch { height: 2px; background: repeating-linear-gradient(90deg, var(--thread) 0 10px, transparent 10px 18px); opacity: .7; }
