/*
 * Ohio Money Trail · constructivist poster design prototype
 * Producer: hand-authored for designs/ohiomoneytrail (responsive build of the
 * approved Ohio artboard). One red diagonal band, one navy disc, heavy
 * condensed caps, a rotated side label, slanted tabs and circular district
 * buttons. The geometry carries the energy; reading text stays calm.
 */

:root {
  --scarlet: #A32C32;
  --navy: #182D4F;
  --ink: #1A1A1A;
  --ivory: #F7F3EB;
  --white: #FFFFFF;
  --rose: #E0585E;
  --green: #1E6B48;
  --amber: #8A4B00;
  --hatch: #F3DCC6;
  --ph-bg: #F6E7B0;
  --rule: 4px solid var(--ink);
  --rule3: 3px solid var(--ink);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 3vw, 36px);
  --pad: clamp(28px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--scarlet); }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.88;
  overflow-wrap: break-word;
}
p, ul, ol, dl, dd, figure { margin: 0; }
svg { flex: none; }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.on-navy :focus-visible, .site-footer :focus-visible, .house-panel :focus-visible { outline-color: var(--ivory); }

.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.label {
  font-family: var(--body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.45;
}
.label--red { color: var(--scarlet); }

/* ---------- Skip link + preview bar ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--ivory);
  font-weight: 700; padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; color: var(--ivory); }
.preview-bar {
  background: var(--ink); color: var(--ivory);
  font-size: 0.875rem; line-height: 1.5; letter-spacing: 0.02em;
  padding: 9px var(--gut);
}
.preview-bar strong { text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- Placeholder ---------- */
.ph {
  background: var(--ph-bg);
  color: var(--ink);
  text-decoration: underline dashed var(--ink) 1.5px;
  text-underline-offset: 0.18em;
  padding: 0 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  overflow-wrap: anywhere;
}
p.ph, div.ph { display: block; text-decoration: none; border: 2px dashed var(--ink); padding: 0.55em 0.75em; }
a.ph:hover { color: var(--scarlet); }

/* ---------- Sheet ---------- */
.sheet {
  position: relative;
  width: calc(100% - 56px);
  max-width: 1360px;
  margin: 28px auto 40px;
  border: var(--rule);
  background: var(--ivory);
}
@media (max-width: 767px) { .sheet { width: 100%; margin: 0; border-width: 0; } }

/* ---------- Header ---------- */
.masthead { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: var(--rule); background: var(--ivory); }
.brand {
  display: flex; align-items: center; gap: 12px;
  flex: 1 1 0; min-width: 0;
  padding: 10px var(--gut) 10px 14px;
  background: var(--white); color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 48px; height: 48px; }
.brand__name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.4rem); line-height: 0.9; }
.brand__name em { font-style: normal; color: var(--scarlet); }

.menu-button {
  min-height: 60px; min-width: 80px; padding: 0 16px;
  border: 0; border-left: var(--rule);
  background: var(--scarlet); color: var(--white);
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase;
  cursor: pointer;
}
.menu-button[aria-expanded="true"] { background: var(--navy); }
.menu-button:focus-visible { outline-color: var(--ivory); outline-offset: -8px; }

#site-nav { flex: 1 1 100%; border-top: var(--rule); background: var(--ivory); }
.tabs { list-style: none; padding: 0; display: flex; flex-direction: column; }
.tabs a, .tabs button {
  position: relative; z-index: 0;
  display: flex; align-items: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 8px var(--gut);
  border: 0; border-bottom: 2px solid var(--ink); background: none;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; text-align: left;
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.tabs a::before, .tabs button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: transparent; }
.tabs a:hover::before, .tabs button:hover::before { background: var(--ink); }
.tabs a:hover, .tabs button:hover { color: var(--ivory); }
.tabs a[aria-current="page"]::before { background: var(--scarlet); }
.tabs a[aria-current="page"] { color: var(--white); }
.tabs button[aria-expanded="true"]::before { background: var(--navy); }
.tabs button[aria-expanded="true"] { color: var(--ivory); }
.tabs button[aria-expanded="true"] .caret { transform: rotate(180deg); }
.caret { display: inline-block; font-size: 0.8em; }
.tabs a:focus-visible, .tabs button:focus-visible { outline-offset: -6px; }
.tabs a[aria-current="page"]:focus-visible, .tabs button[aria-expanded="true"]:focus-visible { outline-color: var(--ivory); }

.house-panel { background: var(--navy); color: var(--ivory); padding: 18px var(--gut) 22px; }
.house-panel .label { margin-bottom: 12px; }
.house-panel .label a { color: var(--ivory); }

@media (min-width: 768px) {
  .tabs { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; padding: 0 10px; }
  .tabs a, .tabs button { width: auto; min-height: 64px; padding: 0 26px; border-bottom: 0; font-size: 1.55rem; }
  .tabs a::before, .tabs button::before { clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
  .js .house-panel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    border-top: var(--rule); border-bottom: var(--rule);
    box-shadow: 0 12px 0 rgba(26, 26, 26, 0.18);
  }
}
@media (min-width: 1024px) {
  .brand { flex: 0 0 auto; border-right: var(--rule); padding-right: 26px; }
  #site-nav { flex: 1 1 auto; border-top: 0; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- District dots ---------- */
.dots { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 10px; justify-items: center; }
.dots a {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--ivory); color: var(--ink);
  font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1; text-decoration: none;
}
.dots a:hover { background: var(--ink); color: var(--ivory); }
.dots a[aria-current="page"] { background: var(--scarlet); border-color: var(--scarlet); color: var(--white); }
.house-panel .dots a { border-color: var(--ivory); }
.house-panel .dots a:hover { background: var(--scarlet); border-color: var(--scarlet); color: var(--white); }
@media (min-width: 1200px) { .house-panel .dots { grid-template-columns: repeat(15, minmax(0, 1fr)); } }
.dots--big a { width: 60px; height: 60px; font-size: 1.75rem; background: var(--white); }
@media (min-width: 900px) { .dots--big { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; } .dots--big a { width: 62px; height: 62px; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; z-index: 0; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 6px 30px;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase;
  color: var(--white); text-decoration: none;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scarlet); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.btn:hover { color: var(--white); }
.btn:hover::before { background: var(--ink); }

/* ---------- Homepage lead ---------- */
.lead { display: grid; border-bottom: var(--rule); }
.side-label {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 14px var(--gut) 10px;
  background: var(--navy); color: var(--ivory);
  overflow: hidden;
}
.side-label span {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.85;
  font-size: clamp(2.75rem, 2rem + 4vw, 4rem); white-space: nowrap;
}
.lead__body { position: relative; display: flex; flex-direction: column; gap: 18px; padding: var(--pad) var(--gut); min-width: 0; }
.lead h1 { font-size: clamp(3.1rem, 1.9rem + 5.6vw, 6.6rem); line-height: 0.84; max-width: 9.5ch; }
.lead__dek { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); max-width: 60ch; }
.lead__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 6px; }
.roundel {
  flex: none; width: 148px; height: 148px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--navy); color: var(--ivory);
  box-shadow: 0 0 0 10px var(--ivory), 0 0 0 22px var(--scarlet);
  margin: 22px;
}
.roundel b { display: block; font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 0.85; text-transform: uppercase; }
.roundel span { display: block; margin-top: 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3; }
.facts-list { list-style: none; padding: 0; display: grid; gap: 0; min-width: 0; flex: 1 1 260px; border-top: var(--rule3); }
.facts-list li { padding: 9px 0; border-bottom: 1px solid var(--ink); font-size: 1rem; line-height: 1.45; }
.facts-list b { display: block; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; }
.lead__card { min-width: 0; background: var(--white); border-top: var(--rule); }
.lead__card .evidence { border: 0; }
@media (min-width: 1100px) {
  .lead { grid-template-columns: 112px minmax(0, 1fr) minmax(400px, 0.82fr); }
  .side-label { justify-content: center; padding: 24px 0; }
  .side-label span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 5.5rem; }
  .lead__card { border-top: 0; border-left: var(--rule); }
}

/* Red diagonal band (decorative) */
.slash {
  position: relative; overflow: hidden;
  height: clamp(104px, 13vw, 176px);
  border-bottom: var(--rule);
  background: var(--ivory);
}
.slash__disc {
  position: absolute; top: 50%; right: 7%;
  width: clamp(118px, 17vw, 250px); aspect-ratio: 1; border-radius: 50%;
  background: var(--navy);
  transform: translateY(-50%);
}
.slash__band {
  position: absolute; left: -10%; right: -10%; top: 50%; z-index: 1;
  height: clamp(54px, 6.4vw, 92px);
  display: flex; align-items: center;
  padding-left: calc(10% + var(--gut));
  background: var(--scarlet);
  transform: translateY(-50%) rotate(-4deg);
}
.slash__band span {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(1.2rem, 0.6rem + 3vw, 3.4rem); letter-spacing: 0.05em; line-height: 1;
  color: var(--ivory);
}

/* ---------- Sections ---------- */
.band { padding: var(--pad) var(--gut); border-bottom: var(--rule); }
.band--white { background: var(--white); }
.h-poster { font-size: clamp(2.75rem, 1.8rem + 3.6vw, 4.5rem); }
.h-mid { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 20px; }
.prose { max-width: 66ch; }
.prose + .prose { margin-top: 0.85em; }

.ledger-wrap { display: grid; border-bottom: var(--rule); }
.ledger-main { padding: var(--pad) var(--gut); min-width: 0; }
.bulletin { padding: var(--pad) var(--gut); background: var(--white); border-top: var(--rule); min-width: 0; }
@media (min-width: 1100px) {
  .ledger-wrap { grid-template-columns: minmax(0, 1fr) 330px; }
  .ledger-main { border-right: var(--rule); }
  .bulletin { border-top: 0; }
}
.bulletin__title { display: inline-block; color: var(--scarlet); font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); transform: rotate(-3deg); transform-origin: left bottom; margin: 6px 0 18px; }

/* ---------- Supports / opposes ---------- */
.pos {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 5px 10px 4px;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em;
  white-space: nowrap;
}
.pos--support { background: var(--green); color: var(--white); }
.pos--oppose {
  padding: 2px 8px 1px;
  border: 3px solid var(--amber); color: var(--amber);
  background: repeating-linear-gradient(-45deg, #FFFFFF 0 5px, var(--hatch) 5px 9px);
}
.pos--none { padding: 2px 8px 1px; border: 3px dashed var(--ink); color: var(--ink); background: var(--white); }

/* ---------- The Ledger (spender table) ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; border-top: 6px solid var(--ink); }
.ledger caption { caption-side: top; text-align: left; padding: 0 0 12px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ledger th, .ledger td { padding: 13px 12px 13px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ink); }
.ledger thead th { padding-top: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ledger tbody th { font-weight: 700; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger .ph { overflow-wrap: break-word; }
.norecord { display: inline-block; padding: 2px 8px; border: 2px dashed var(--ink); font-weight: 700; font-size: 0.9375rem; line-height: 1.35; background: var(--white); }
@media (max-width: 640px) {
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td, .ledger caption { display: block; }
  .ledger { border-top: 0; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .ledger tbody tr { border-top: 6px solid var(--ink); margin-bottom: 22px; background: var(--white); }
  .ledger tbody th, .ledger td {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px;
    padding: 10px 12px; border-bottom: 1px solid var(--ink);
  }
  .ledger tbody th { background: var(--navy); color: var(--ivory); }
  .ledger tbody th::before, .ledger td::before {
    content: attr(data-label);
    padding-top: 2px;
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.35;
  }
  .ledger td > *, .ledger th > * { justify-self: start; }
}
.ledger-more { display: grid; gap: 26px; margin-top: 34px; }
@media (min-width: 900px) { .ledger-more { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.note { border-top: 6px solid var(--ink); padding-top: 12px; }
.note h3 { font-size: 1.9rem; margin-bottom: 10px; }
.note p { font-size: 1rem; }
.note p + p { margin-top: 10px; }

/* ---------- Evidence cards ---------- */
.evidence { border: var(--rule); background: var(--white); min-width: 0; }
.evidence__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px;
  padding: 11px 14px; border-bottom: var(--rule3);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4;
}
.evidence__kind::before {
  content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.55em;
  border-radius: 50%; background: var(--scarlet); vertical-align: -0.08em;
}
.evidence__lede { padding: 12px 14px; border-bottom: var(--rule3); font-size: 1rem; line-height: 1.5; }
.evidence__frame { position: relative; background: var(--white); }
.evidence__frame iframe { display: block; width: 100%; border: 0; }
.evidence__frame.is-clamped { max-height: var(--clamp); overflow: hidden; }
.evidence__frame.is-clamped::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 96px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), #FFFFFF);
}
.evidence__status { display: none; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; }
.evidence[data-state="pending"] .evidence__status,
.js .evidence[data-state="loading"] .evidence__status,
.js .evidence[data-state="slow"] .evidence__status { display: block; }
.js .evidence[data-state="loading"] .evidence__frame {
  min-height: 320px;
  background: repeating-linear-gradient(-45deg, var(--ivory) 0 10px, #FFFFFF 10px 20px);
}
.js .evidence[data-state="loading"] .evidence__status,
.js .evidence[data-state="slow"] .evidence__status {
  position: absolute; top: 16px; left: 16px; right: 16px; z-index: 1;
  padding: 10px 12px; background: var(--white); border-left: 8px solid var(--navy);
}
.js .evidence[data-state="slow"] .evidence__status { border-left-color: var(--amber); }
.evidence[data-state="pending"] .evidence__frame {
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: repeating-linear-gradient(-45deg, var(--ivory) 0 10px, #FFFFFF 10px 20px);
}
.evidence[data-state="pending"] .evidence__status { max-width: 46ch; padding: 14px 16px; background: var(--white); border: 2px dashed var(--ink); }
.evidence__fallback { padding: 11px 14px; border-top: var(--rule3); font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }
.evidence__expand {
  display: block; width: 100%; min-height: 52px;
  border: 0; border-top: var(--rule3);
  background: var(--ink); color: var(--ivory);
  font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1; text-transform: uppercase;
  cursor: pointer;
}
.evidence__expand:hover { background: var(--scarlet); color: var(--white); }
.evidence__expand:focus-visible { outline-color: var(--ivory); outline-offset: -7px; }

/* ---------- Bulletin (news) ---------- */
.news-item { padding: 12px 0 16px; border-top: var(--rule3); }
.news-item__flag { margin-bottom: 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--scarlet); }
.news-item h3 { font-weight: 800; font-size: clamp(1.45rem, 1.25rem + 0.6vw, 1.7rem); line-height: 0.98; margin-bottom: 8px; }
.news-item__meta { font-size: 0.875rem; line-height: 1.5; margin-bottom: 8px; }
.news-item > p.ph { font-size: 0.9375rem; }
.news-note { padding-top: 10px; border-top: var(--rule3); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; }
.news-grid { display: grid; gap: 0 32px; }
@media (min-width: 900px) { .news-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- House districts ---------- */
.house { display: grid; gap: 22px; }
.house .label { margin-top: 10px; }
@media (min-width: 900px) { .house { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); align-items: center; gap: 36px; } }
.senate-tab {
  position: relative; z-index: 0; display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 8px 34px;
  font-family: var(--display); font-weight: 900; font-size: 2rem; text-transform: uppercase; line-height: 1;
  color: var(--white); text-decoration: none;
}
.senate-tab::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
.senate-tab:hover { color: var(--white); }
.senate-tab:hover::before { background: var(--ink); }
.senate-tab[aria-current="page"]::before { background: var(--scarlet); }

/* ---------- Plain language + sources ---------- */
.duo { display: grid; border-bottom: var(--rule); }
.duo > * { padding: var(--pad) var(--gut); min-width: 0; }
.duo > * + * { border-top: var(--rule); }
@media (min-width: 960px) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo > * + * { border-top: 0; border-left: var(--rule); }
}
.neq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 16px 0 18px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1; }
.neq i { font-style: normal; color: var(--scarlet); }
.defs { display: grid; gap: 0; margin-top: 16px; border-top: var(--rule3); }
.defs > div { padding: 12px 0; border-bottom: 1px solid var(--ink); }
.defs dt { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 3px; }
.defs dd { font-size: 1rem; line-height: 1.5; max-width: 62ch; }
.lines { list-style: none; padding: 0; border-top: var(--rule3); margin-top: 16px; }
.lines li { border-bottom: 1px solid var(--ink); }
.lines a { display: grid; grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); gap: 4px 14px; padding: 11px 0; min-height: 48px; text-decoration: none; color: var(--ink); }
.lines a:hover { background: var(--ivory); }
.lines b { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.lines span { font-size: 1rem; line-height: 1.45; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 400px) { .lines a { grid-template-columns: 1fr; } }

/* ---------- Data-state key ---------- */
.key-title { margin-top: 26px; }
.state-key { display: grid; gap: 0; margin-top: 10px; border-top: var(--rule3); }
.state-key > div { padding: 11px 0; border-bottom: 1px solid var(--ink); }
.state-key dt { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.35; }
.state-key dd { margin: 5px 0 0 42px; font-size: 0.9375rem; line-height: 1.45; }
.key-sw { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--ink); background: var(--white); }
.key-sw--loading { background: repeating-linear-gradient(-45deg, var(--ivory) 0 4px, #8C8A84 4px 6px); }
.key-sw--unavailable { background: linear-gradient(-45deg, var(--white) 0 44%, var(--ink) 44% 56%, var(--white) 56%); }
.key-sw--none { border-style: dashed; }
.key-sw--ph { border-radius: 0; border: 2px dashed var(--ink); background: var(--ph-bg); }
@media (min-width: 1024px) {
  .state-key--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 26px; border-top: 0; }
  .state-key--row > div { border-top: var(--rule3); border-bottom: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--ivory); padding: var(--pad) var(--gut) 26px; font-size: 0.9375rem; line-height: 1.6; }
.site-footer a { color: var(--ivory); }
.site-footer a:hover { color: var(--white); text-decoration-color: var(--rose); }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand svg { width: 44px; height: 44px; }
.footer-brand span { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 0.9; text-transform: uppercase; }
.footer-brand em { font-style: normal; color: var(--rose); }
.footer-attrib { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8125rem; }
.site-footer p + p { margin-top: 10px; }
.site-footer h2 { font-family: var(--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; }
.footer-dates { margin-top: 26px; padding-top: 14px; border-top: 3px solid var(--ivory); font-weight: 600; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Race page ---------- */
.race-lead { display: grid; border-bottom: var(--rule); }
.race-lead__body { padding: var(--pad) var(--gut); min-width: 0; }
.crumbs { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; }
.crumbs li + li::before { content: "▶"; margin: 0 10px; font-size: 0.7em; color: var(--scarlet); }
.crumbs a, .crumbs li > span { display: inline-block; padding: 4px 0; }
.race-lead h1 { margin-top: 14px; font-size: clamp(2.7rem, 1.6rem + 4.8vw, 6rem); line-height: 0.85; max-width: 14ch; }
.notice { margin-top: 18px; max-width: 66ch; padding: 12px 14px; border-left: 10px solid var(--scarlet); background: var(--white); font-weight: 600; }
.facts { list-style: none; padding: 0; margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 6px solid var(--ink); }
.facts li { padding: 11px 16px 12px 0; border-bottom: 1px solid var(--ink); min-width: 0; }
.facts b { display: block; margin-bottom: 3px; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; }
.facts span, .facts a { font-weight: 700; }
.race-summary { margin-top: 22px; display: grid; gap: 12px; max-width: 66ch; }
.special { padding: 12px 16px; background: var(--white); border-left: 10px solid var(--navy); }
@media (min-width: 1000px) {
  .race-lead { grid-template-columns: 132px minmax(0, 1fr); }
  .race-lead .side-label { justify-content: center; padding: 24px 0; }
  .race-lead .side-label span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 5rem; }
}
.race-card { display: grid; gap: 28px; }
.race-card > * { min-width: 0; }
.rail { display: flex; flex-direction: column; gap: 16px; }
.rail ul { list-style: none; padding: 0; border-top: var(--rule3); }
.rail li { padding: 10px 0; border-bottom: 1px solid var(--ink); font-size: 1rem; line-height: 1.45; }
.rail li .pos { margin: 0 6px 6px 0; }
@media (min-width: 1100px) {
  .race-card { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
  .rail { position: sticky; top: 24px; }
}
.pair { display: grid; gap: 22px; margin-top: 22px; }
@media (min-width: 1024px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.drawer { border: var(--rule); background: var(--white); }
.drawer summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 10px 16px;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); line-height: 1.12; text-transform: uppercase;
  cursor: pointer; list-style: none;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--ivory); font-family: var(--body); font-size: 1.4rem; font-weight: 700;
}
.drawer[open] summary { border-bottom: var(--rule3); }
.drawer[open] summary::after { content: "−"; background: var(--scarlet); }
.drawer summary:focus-visible { outline-offset: -7px; }
.drawer__body { padding: 16px; }
.drawer__body .evidence { border-width: 3px; }
.dates { display: grid; border-top: 6px solid var(--ink); margin-top: 14px; }
.dates > div { display: grid; gap: 2px 16px; padding: 11px 0; border-bottom: 1px solid var(--ink); }
.dates dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
@media (min-width: 640px) { .dates > div { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); } }
.after { margin-top: 14px; }
.others { display: grid; gap: 22px; }
@media (min-width: 900px) { .others { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); align-items: center; gap: 36px; } }

/* ---------- About ---------- */
.about-head h1 { font-size: clamp(3rem, 1.8rem + 5.4vw, 6.5rem); line-height: 0.84; max-width: 11ch; margin-top: 12px; }
.about-layout { display: grid; gap: 30px; padding: var(--pad) var(--gut); }
.toc { align-self: start; border-top: 6px solid var(--ink); min-width: 0; }
.toc h2 { font-family: var(--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; padding: 10px 0; }
.toc ol { list-style: none; padding: 0; counter-reset: toc; border-top: var(--rule3); }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--ink); }
.toc a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 0; text-decoration: none; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.toc a::before {
  content: counter(toc); flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 900; font-size: 1rem;
}
.toc a:hover::before { background: var(--scarlet); border-color: var(--scarlet); color: var(--white); }
.doc { display: grid; gap: 0; min-width: 0; }
.doc-sec { display: grid; gap: 14px 24px; padding: 26px 0 30px; border-top: 6px solid var(--ink); scroll-margin-top: 16px; }
.doc-sec__num {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 8px solid var(--scarlet); font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1;
}
.doc-sec h2 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.2rem); margin-bottom: 14px; }
.doc-sec p, .doc-sec li { max-width: 66ch; }
.doc-sec p + p, .doc-sec p + ul, .doc-sec ul + p { margin-top: 0.85em; }
.doc-sec ul { padding-left: 1.2em; }
.doc-sec li + li { margin-top: 6px; }
@media (min-width: 760px) { .doc-sec { grid-template-columns: 64px minmax(0, 1fr); } }
.three { display: grid; gap: 0; margin-top: 16px; border-top: var(--rule3); }
.three > div { padding: 12px 0 14px; border-bottom: 1px solid var(--ink); min-width: 0; }
.three h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.three p { font-size: 1rem; line-height: 1.5; }
@media (min-width: 900px) {
  .three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; border-top: 0; }
  .three > div { border-top: var(--rule3); border-bottom: 0; }
}
.roles { list-style: none; padding: 0 !important; display: grid; gap: 10px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.roles li { margin: 0 !important; padding: 10px 12px; border: 2px solid var(--ink); background: var(--white); font-size: 1rem; line-height: 1.4; }
.roles b { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.glossary { display: grid; border-top: var(--rule3); margin-top: 6px; }
.glossary > div { display: grid; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.glossary dt { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1; text-transform: uppercase; }
.glossary dd { font-size: 1rem; line-height: 1.55; max-width: 66ch; }
@media (min-width: 760px) { .glossary > div { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); } }
@media (min-width: 1024px) {
  .about-layout { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); gap: 44px; align-items: start; }
  .toc { position: sticky; top: 24px; }
}

/* ---------- Privacy + cookie policies ----------
 * Poster rules from the Sources page: 6px ink bars, scarlet-ringed section
 * discs, a slanted navy tab for the date. Scoped one level deeper than the
 * launch.css baselines so the bulletin look wins. */
.policy-head h1 { max-width: 9ch; }
.policy-head .lead__dek { max-width: 60ch; }
.policy-effective {
  position: relative; z-index: 0;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 0.5em;
  margin-top: 20px; min-height: 44px; padding: 8px 28px;
  color: var(--ivory);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3;
}
.policy-effective::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.policy-effective time { color: var(--white); }

.policy-page .policy-toc { align-self: start; border-top: 6px solid var(--ink); min-width: 0; }
.policy-toc__label { padding: 10px 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.policy-page .policy-toc ul { display: block; margin: 0; padding: 0; list-style: none; counter-reset: policy-toc; border-top: var(--rule3); }
.policy-page .policy-toc li { counter-increment: policy-toc; border-bottom: 1px solid var(--ink); }
.policy-page .policy-toc a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 0;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.3; text-decoration: none;
}
.policy-page .policy-toc a::before {
  content: counter(policy-toc); flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 900; font-size: 1rem;
}
.policy-page .policy-toc a:hover::before { background: var(--scarlet); border-color: var(--scarlet); color: var(--white); }
.policy-page .policy-toc a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.policy-doc { counter-reset: policy-section; max-width: calc(66ch + 88px); }
.policy-doc .policy-section {
  position: relative; counter-increment: policy-section;
  padding: 26px 0 30px; border-top: 6px solid var(--ink); scroll-margin-top: 16px; min-width: 0;
}
.policy-doc .policy-section::before {
  content: counter(policy-section);
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%;
  border: 8px solid var(--scarlet);
  font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1;
}
@media (min-width: 760px) {
  .policy-doc .policy-section { padding-left: 88px; }
  .policy-doc .policy-section::before { position: absolute; left: 0; top: 26px; margin: 0; }
}
.policy-doc .policy-section h2 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.2rem); margin-bottom: 14px; }
.policy-doc .policy-section p, .policy-doc .policy-section li, .policy-doc .policy-list dd { max-width: 66ch; line-height: 1.6; }
.policy-doc .policy-section > * + * { margin-top: 0.85em; }
.policy-doc .policy-section > h2 + * { margin-top: 0; }
.policy-doc .policy-section ul { padding-left: 0; list-style: none; border-top: var(--rule3); }
.policy-doc .policy-section li { position: relative; margin: 0; padding: 11px 0 12px 30px; border-bottom: 1px solid var(--ink); }
.policy-doc .policy-section li::before {
  content: ""; position: absolute; left: 2px; top: calc(11px + 0.42em);
  width: 12px; height: 12px; border-radius: 50%; background: var(--scarlet);
}
.policy-doc code {
  padding: 1px 6px; background: var(--white); border-bottom: 2px solid var(--scarlet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere;
}
.policy-doc .policy-list { display: grid; gap: 0; margin-top: 4px; border-top: var(--rule3); }
.policy-doc .policy-list > div { display: grid; gap: 6px 20px; padding: 12px 0; border-bottom: 1px solid var(--ink); min-width: 0; }
.policy-doc .policy-list dt code { font-weight: 700; font-size: 0.95em; }
.policy-doc .policy-list dd { margin: 0; font-size: 1rem; }
@media (min-width: 760px) { .policy-doc .policy-list > div { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); } }
.policy-doc probo-settings-link.policy-settings:defined {
  position: relative; z-index: 0;
  display: flex; align-items: center; width: fit-content; min-height: 52px; margin-bottom: 14px; padding: 6px 30px;
  color: var(--white); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase;
}
.policy-doc probo-settings-link.policy-settings:defined::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scarlet);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.policy-doc probo-settings-link.policy-settings:defined:hover::before { background: var(--ink); }
.policy-doc .policy-settings-fallback { font-style: normal; font-weight: 600; }
@media (min-width: 1024px) { .policy-page .policy-toc { position: sticky; top: 24px; } }

/* launch.css `.legal-links probo-settings-link` outranks its own :not(:defined) hiding rule;
 * keep the control hidden until the banner script defines it. */
.site-footer .legal-links > probo-settings-link:not(:defined) { display: none; }
/* Footer legal links: bulletin caps on the navy footer, a rose disc per link. */
.site-footer .legal-links { gap: 0 24px; margin-top: 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer .legal-links > a, .site-footer .legal-links > probo-settings-link:defined { gap: 9px; color: var(--ivory); }
.site-footer .legal-links > a::before, .site-footer .legal-links > probo-settings-link:defined::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--rose);
}
.site-footer .legal-links > probo-settings-link:defined:hover { color: var(--white); text-decoration-color: var(--rose); }

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