/*
 * Michigan Money Trail · neo-brutalist design prototype
 * Producer: hand-authored for designs/michiganmoneytrail (responsive build of
 * the approved Michigan artboard). Structure is left showing on purpose:
 * 3px ink borders, hard offset shadows, monospace labels, all-caps grotesque.
 */

:root {
  --lake: #144D73;
  --pine: #235747;
  --lime: #F4F1E8;
  --ink: #111111;
  --white: #FFFFFF;
  --rule: #EDEAE0;
  --plum: #6B2D5C;
  --amber: #8A4300;
  --hatch: #F1D9C4;
  --ph-bg: #DDE8EF;
  --b: 3px solid var(--ink);
  --sh: 6px 6px 0 var(--ink);
  --sh-sm: 4px 4px 0 var(--ink);
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gut: clamp(16px, 3vw, 32px);
  --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(--lime);
  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(--lake); }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  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(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .plain :focus-visible { outline-color: var(--lime); }

.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;
}

/* ---------- Skip link + preview bar ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-weight: 700; font-size: 0.875rem;
  padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; color: var(--lime); }

.preview-bar {
  background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5;
  padding: 9px var(--gut);
}
.preview-bar strong { text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Placeholder ---------- */
.ph {
  background: var(--ph-bg);
  color: var(--ink);
  text-decoration: underline dashed var(--lake) 2px;
  text-underline-offset: 0.18em;
  padding: 0 0.18em;
  -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(--lake);
  padding: 0.55em 0.75em;
}
a.ph:hover { color: var(--lake); }

/* ---------- Frame ---------- */
.frame {
  width: calc(100% - 48px);
  max-width: 1376px;
  margin: 24px auto 40px;
  border: var(--b);
  background: var(--lime);
  box-shadow: 8px 8px 0 var(--ink);
}
@media (max-width: 767px) {
  .frame { width: 100%; margin: 0; border-width: 0; box-shadow: none; }
}

/* ---------- Header ---------- */
.masthead {
  display: flex; flex-wrap: wrap; align-items: stretch;
  background: var(--white);
  border-bottom: var(--b);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  flex: 1 1 auto; min-width: 0;
  padding: 12px var(--gut) 12px 16px;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); background: var(--lime); }
.brand svg { width: 46px; height: 46px; }
.brand__name { display: block; font-family: var(--display); text-transform: uppercase; line-height: 1; }
.brand__state { display: block; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); letter-spacing: -0.01em; }
.brand__box {
  display: inline-block; margin-top: 3px;
  background: var(--ink); color: var(--lime);
  font-size: clamp(0.8rem, 0.7rem + 0.4vw, 1rem);
  padding: 3px 7px 2px;
}

.menu-button {
  min-height: 56px; min-width: 88px;
  padding: 0 20px;
  border: 0; border-left: var(--b);
  background: var(--lake); color: var(--white);
  font-family: var(--display); font-size: 1rem; text-transform: uppercase;
  cursor: pointer;
}
.menu-button[aria-expanded="true"] { background: var(--ink); color: var(--lime); }
.menu-button:focus-visible { outline-offset: -7px; outline-color: var(--lime); }

#site-nav { flex: 1 1 100%; border-top: var(--b); }
.nav { list-style: none; padding: 0; display: flex; flex-direction: column; }
.nav a {
  display: flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 10px var(--gut);
  border-bottom: var(--b);
  font-family: var(--display); font-size: 1rem; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav li:last-child a { border-bottom: 0; }
.nav a:hover { background: var(--lime); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--lake); color: var(--white); }
.nav__cta a { background: var(--pine); color: var(--white); }
.nav__cta a:hover { background: var(--ink); color: var(--lime); }
.nav a:focus-visible { outline-offset: -7px; }
.nav a[aria-current="page"]:focus-visible, .nav__cta a:focus-visible { outline-color: var(--lime); }

@media (min-width: 768px) {
  .nav { flex-direction: row; }
  .nav a { border-bottom: 0; border-right: var(--b); padding: 0 16px; min-height: 58px; white-space: nowrap; }
  .nav__cta { margin-left: auto; }
  .nav__cta a { border-right: 0; border-left: var(--b); }
}
@media (min-width: 1180px) {
  .brand { flex: 0 0 auto; border-right: var(--b); padding-right: 24px; }
  .nav a { padding: 0 22px; }
  #site-nav { flex: 1 1 auto; border-top: 0; }
  .nav { height: 100%; }
  .nav a { height: 100%; }
}

/* ---------- Shared bits ---------- */
.tag {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.45;
}
.mono-note { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6; }
.band { padding: var(--pad) var(--gut); border-bottom: var(--b); }
.band--white { background: var(--white); }
.section-title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem); margin: 10px 0 18px; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 0.9em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 18px;
  border: var(--b); box-shadow: var(--sh-sm);
  background: var(--white); color: var(--ink);
  font-family: var(--display); font-size: 0.95rem; text-transform: uppercase; text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); background: var(--lime); }
.btn--lake { background: var(--lake); color: var(--white); }
.btn--lake:hover { background: var(--ink); color: var(--lime); }

/* ---------- Homepage intro ---------- */
.intro { display: grid; border-bottom: var(--b); }
.intro__main { padding: clamp(28px, 5vw, 52px) var(--gut); min-width: 0; }
.intro h1 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 1.05rem + 5.3vw, 5.25rem);
  line-height: 0.9;
  max-width: 15ch;
}
.intro__dek { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); line-height: 1.55; max-width: 62ch; }
.intro__dek + .intro__dek { margin-top: 12px; }
.intro__aside {
  display: grid; gap: 18px; align-content: start;
  padding: 24px var(--gut) 30px;
  background: var(--white);
  border-top: var(--b);
  min-width: 0;
}
.stat { border: var(--b); box-shadow: var(--sh-sm); background: var(--white); padding: 16px 18px; }
.stat__value { display: block; margin: 6px 0; font-family: var(--display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.05; }
.stat .mono-note { font-size: 0.75rem; }
.stat--lake { background: var(--lake); color: var(--white); }
@media (min-width: 960px) {
  .intro { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .intro__main { border-right: var(--b); }
  .intro__aside { border-top: 0; padding-top: 32px; }
}

/* Square-wave shoreline (decorative) */
.shoreline {
  height: 46px;
  border-bottom: var(--b);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 46'%3E%3Crect width='92' height='46' fill='%23144D73'/%3E%3Crect y='33' width='92' height='13' fill='%23235747'/%3E%3Cpath d='M0 26H23V11H69V26H92' fill='none' stroke='%23F4F1E8' stroke-width='5'/%3E%3C/svg%3E") repeat-x left top / 92px 46px,
    var(--lake);
}
.shoreline--thin { height: 30px; background-size: 60px 30px, auto; }

/* ---------- Race navigator ---------- */
.navigator { display: grid; gap: 26px; }
.navigator__lead { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.navigator__lead .section-title { margin: 0; }
.senate-block {
  display: block;
  border: var(--b); box-shadow: var(--sh);
  background: var(--lake); color: var(--white);
  padding: 20px 22px;
  font-family: var(--display); text-transform: uppercase; text-decoration: none;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 0.95;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.senate-block small { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.senate-block:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); color: var(--white); background: var(--ink); }
.senate-block[aria-current="page"] { background: var(--pine); }
.senate-block[aria-current="page"]::after { content: "You are here"; display: block; margin-top: 10px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.tiles-head { margin-bottom: 12px; }
.tiles {
  list-style: none; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
}
.tiles a, .tiles__key { min-height: 60px; }
.tiles a {
  display: flex; align-items: center; justify-content: center;
  border: var(--b); box-shadow: var(--sh-sm);
  background: var(--white); color: var(--ink);
  font-family: var(--display); font-size: 1.375rem; text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.tiles a:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); background: var(--lime); color: var(--ink); }
.tiles a[aria-current="page"] { background: var(--pine); color: var(--white); }
.tiles__key {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 3px dashed var(--ink);
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; line-height: 1.3;
  padding: 4px;
}
.navigator .mono-note { margin-top: 14px; max-width: 70ch; }
@media (min-width: 900px) {
  .navigator { grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 36px; }
  .tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tiles a, .tiles__key { min-height: 66px; }
}

/* ---------- Spotlight ---------- */
.spotlight { display: grid; border-bottom: var(--b); }
.spotlight__text { display: flex; flex-direction: column; gap: 16px; padding: var(--pad) var(--gut); min-width: 0; }
.spotlight__text h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); }
.spotlight__card { padding: var(--pad) var(--gut); background: var(--white); border-top: var(--b); min-width: 0; }
.readkey { border-top: var(--b); padding-top: 14px; }
.readkey ul { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 10px; }
.readkey li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.9375rem; line-height: 1.45; }
@media (min-width: 1024px) {
  .spotlight { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .spotlight__text { border-right: var(--b); }
  .spotlight__card { border-top: 0; }
  .spotlight__sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
}

/* ---------- Evidence cards ---------- */
.evidence { border: var(--b); background: var(--white); box-shadow: var(--sh); min-width: 0; }
.evidence__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 10px 14px;
  background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.45;
}
.evidence__lede { padding: 14px; border-bottom: var(--b); 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-family: var(--mono); font-size: 0.8125rem; line-height: 1.55; }
.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(0deg, #FFFFFF 0 22px, var(--rule) 22px 23px);
}
.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;
  background: var(--white); border: var(--b); padding: 10px 12px;
}
.js .evidence[data-state="slow"] .evidence__status { border-style: dashed; }
.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(--lime) 0 10px, var(--white) 10px 20px);
}
.evidence[data-state="pending"] .evidence__status {
  max-width: 46ch; padding: 14px 16px;
  background: var(--white); border: 3px dashed var(--ink);
}
.evidence__fallback {
  padding: 11px 14px; border-top: var(--b);
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 700; line-height: 1.5;
}
.evidence__expand {
  display: block; width: 100%; min-height: 50px;
  border: 0; border-top: var(--b);
  background: var(--lime); color: var(--ink);
  font-family: var(--display); font-size: 0.95rem; text-transform: uppercase;
  cursor: pointer;
}
.evidence__expand:hover { background: var(--lake); color: var(--white); }
.evidence__expand:focus-visible { outline-offset: -7px; }

/* ---------- Supports / opposes ---------- */
.pos {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  border: 3px solid var(--ink);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.3;
  white-space: nowrap;
}
.pos--support { background: var(--plum); color: var(--white); }
.pos--oppose {
  color: var(--amber); border-color: var(--amber);
  background: repeating-linear-gradient(45deg, #FFFFFF 0 5px, var(--hatch) 5px 8px);
}
.pos--none { border-style: dashed; background: var(--white); }

/* ---------- Plain language ---------- */
.plain { background: var(--lake); color: var(--white); }
.plain .tag { color: var(--lime); }
.plain h2 { color: var(--lime); font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3.25rem); max-width: 24ch; margin-top: 10px; }
.plain__grid { display: grid; gap: 22px; margin-top: 28px; }
.plain__cell { background: var(--white); color: var(--ink); border: var(--b); box-shadow: var(--sh); padding: 18px 20px; min-width: 0; }
.plain__cell .tag { color: var(--ink); }
.plain__cell h3 { font-size: 1.375rem; margin: 6px 0 10px; }
.plain__cell p { font-size: 1rem; line-height: 1.55; }
.plain__roles { margin-top: 26px; font-family: var(--mono); font-size: 0.875rem; line-height: 1.7; color: var(--lime); }
.plain__roles a { color: var(--lime); }
@media (min-width: 900px) { .plain__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Spender table ---------- */
.table-block { min-width: 0; }
.ledger { width: 100%; border-collapse: collapse; background: var(--white); border: var(--b); font-size: 1rem; line-height: 1.45; }
.ledger caption {
  caption-side: top; text-align: left;
  padding: 0 0 12px;
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.ledger th, .ledger td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ink); }
.ledger thead th {
  background: var(--lime); border-bottom: var(--b);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.ledger tbody th { font-weight: 700; }
.ledger tbody tr:last-child > * { border-bottom: 0; }
.amount { font-family: var(--mono); font-weight: 700; }
.norecord {
  display: inline-block; padding: 3px 7px;
  border: 3px dashed var(--ink);
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 700; line-height: 1.4;
}
@media (max-width: 640px) {
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; }
  .ledger { border: 0; background: none; }
  .ledger caption { display: block; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .ledger tbody tr { border: var(--b); background: var(--white); box-shadow: var(--sh-sm); margin-bottom: 18px; }
  .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 tr:last-child > * { border-bottom: 1px solid var(--ink); }
  .ledger tbody tr > :last-child { border-bottom: 0; }
  .ledger tbody th { background: var(--ink); color: var(--lime); }
  .ledger tbody th .ph { color: var(--ink); }
  .ledger tbody th::before, .ledger td::before {
    content: attr(data-label);
    padding-top: 3px;
    font-family: var(--mono); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.35;
  }
  .ledger td > *, .ledger th > * { justify-self: start; }
}

.spenders__more { display: grid; gap: 28px; margin-top: 34px; }
@media (min-width: 1024px) { .spenders__more { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.note-box { border: var(--b); background: var(--white); box-shadow: var(--sh-sm); padding: 18px 20px; }
.note-box h3 { font-size: 1.25rem; margin-bottom: 10px; }
.note-box p { font-size: 1rem; }
.note-box p + p { margin-top: 10px; }

/* ---------- News + how we know ---------- */
.split { display: grid; }
.split > * { min-width: 0; padding: var(--pad) var(--gut); }
.split__side { background: var(--white); border-top: var(--b); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .split > :first-child { border-right: var(--b); }
  .split__side { border-top: 0; }
}
.news-list { display: grid; gap: 0; border-top: var(--b); }
.news-item { padding: 16px 0 18px; border-bottom: var(--b); }
.news-item__flag {
  display: inline-block; margin-bottom: 9px; padding: 3px 7px;
  background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.news-item h3 { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.12; margin-bottom: 8px; }
.news-item h3 a { text-decoration-thickness: 2px; }
.news-item__meta { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6; margin-bottom: 8px; }
.news-item > p.ph { font-size: 1rem; }
.news-note { margin-top: 18px; padding: 10px 12px; border: 3px dashed var(--ink); font-family: var(--mono); font-size: 0.8125rem; line-height: 1.55; }

.howlist { list-style: none; padding: 0; border-top: var(--b); }
.howlist li { border-bottom: var(--b); }
.howlist a {
  display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 4px 12px;
  padding: 12px 0; min-height: 48px;
  text-decoration: none; color: var(--ink);
}
.howlist a:hover { background: var(--lime); }
.howlist b { font-family: var(--mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.03em; padding-top: 2px; }
.howlist span { font-size: 1rem; line-height: 1.45; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 400px) { .howlist a { grid-template-columns: 1fr; } }

/* ---------- Data-state key ---------- */
.key-title { margin-top: 28px; }
.state-key { display: grid; gap: 12px; margin-top: 12px; }
.state-key > div { border: var(--b); background: var(--white); padding: 10px 12px; }
.state-key dt { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.35; }
.state-key dd { margin: 6px 0 0 40px; font-size: 0.9375rem; line-height: 1.45; }
@media (min-width: 1024px) { .state-key--row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.after-list { margin-top: 14px; }
.key-sw { flex: none; width: 30px; height: 30px; border: 3px solid var(--ink); }
.key-sw--loading { background: repeating-linear-gradient(0deg, #FFFFFF 0 5px, #B9B4A6 5px 7px); }
.key-sw--unavailable { background: repeating-linear-gradient(-45deg, #FFFFFF 0 4px, var(--ink) 4px 6px); }
.key-sw--none { border-style: dashed; background: var(--white); }
.key-sw--ph { border: 2px dashed var(--lake); background: var(--ph-bg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--lime); padding: var(--pad) var(--gut) 28px; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.65; }
.site-footer a { color: var(--lime); }
.site-footer a:hover { color: var(--white); background: var(--lake); }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand svg { width: 40px; height: 40px; }
.footer-brand span { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; line-height: 1; }
.footer-attrib { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer p + p { margin-top: 10px; }
.site-footer h2 { font-family: var(--mono); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; margin-bottom: 10px; }
.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(--lime); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Race page ---------- */
.crumbs { font-family: var(--mono); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; }
.crumbs a, .crumbs li > span { display: inline-block; padding: 4px 0; }
.race-head h1 { margin-top: 18px; font-size: clamp(2rem, 1.1rem + 4.2vw, 4.5rem); line-height: 0.92; max-width: 20ch; }
.notice {
  margin-top: 18px; padding: 12px 14px; max-width: 70ch;
  border: var(--b); box-shadow: var(--sh-sm);
  background: repeating-linear-gradient(45deg, #FFFFFF 0 8px, var(--lime) 8px 16px);
  font-weight: 700;
}
.facts {
  list-style: none; padding: 0; margin-top: 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border: var(--b); background: var(--white); box-shadow: var(--sh-sm);
}
.facts li { padding: 12px 14px; border-bottom: var(--b); min-width: 0; }
.facts li:last-child { border-bottom: 0; }
.facts b { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.04em; }
.facts span, .facts a { font-weight: 700; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li { border-bottom: 0; border-right: var(--b); }
  .facts li:last-child { border-right: 0; }
}
.race-summary { margin-top: 22px; display: grid; gap: 12px; max-width: 70ch; }
.race-card { display: grid; gap: 28px; }
.race-card__aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.race-card__main { min-width: 0; }
@media (min-width: 1024px) {
  .race-card { grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 36px; align-items: start; }
  .race-card__aside { position: sticky; top: 24px; }
}
.cards-pair { display: grid; gap: 22px; margin-top: 8px; }
@media (min-width: 1024px) { .cards-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.disclose { border: var(--b); background: var(--white); box-shadow: var(--sh-sm); }
.disclose summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 16px;
  font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; line-height: 1.15;
  cursor: pointer; list-style: none;
}
.disclose summary::-webkit-details-marker { display: none; }
.disclose summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: var(--b); font-size: 1.2rem; }
.disclose[open] summary { border-bottom: var(--b); background: var(--lime); }
.disclose[open] summary::after { content: "−"; }
.disclose summary:focus-visible { outline-offset: -7px; }
.disclose__body { padding: 16px; }
.disclose__body .evidence { box-shadow: none; }
.dates-list { display: grid; gap: 0; border: var(--b); background: var(--white); margin-top: 6px; }
.dates-list > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 14px; border-bottom: var(--b); }
.dates-list > div:last-child { border-bottom: 0; }
.dates-list dt { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
@media (min-width: 640px) { .dates-list > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 14px; } }

/* ---------- About page ---------- */
.page-head h1 { margin-top: 14px; font-size: clamp(2.1rem, 1.1rem + 4.6vw, 4.75rem); line-height: 0.9; max-width: 16ch; }
.page-head .intro__dek { max-width: 64ch; }
.about { display: grid; gap: 28px; }
.toc { border: var(--b); background: var(--white); box-shadow: var(--sh-sm); align-self: start; min-width: 0; }
.toc h2 { padding: 10px 14px; background: var(--ink); color: var(--lime); font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; }
.toc ol { list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--ink); }
.toc li:first-child { border-top: 0; }
.toc a { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 14px; text-decoration: none; font-weight: 700; font-size: 0.9375rem; line-height: 1.3; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 0.75rem; }
.toc a:hover { background: var(--lime); }
.toc a:focus-visible { outline-offset: -5px; }
.doc { display: grid; gap: 28px; min-width: 0; }
.doc-box { border: var(--b); background: var(--white); box-shadow: var(--sh); padding: clamp(18px, 3vw, 30px); scroll-margin-top: 16px; min-width: 0; }
.doc-box h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); margin: 8px 0 16px; }
.doc-box p, .doc-box li { max-width: 68ch; }
.doc-box p + p, .doc-box p + ul, .doc-box ul + p { margin-top: 0.85em; }
.doc-box ul { padding-left: 1.2em; }
.doc-box li + li { margin-top: 6px; }
.trio { display: grid; gap: 14px; margin-top: 18px; }
.trio > div { border: var(--b); padding: 14px 16px; background: var(--lime); min-width: 0; }
.trio h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.05; }
.trio p { font-size: 1rem; line-height: 1.5; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.roles { list-style: none; padding: 0 !important; display: grid; gap: 10px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.roles li { margin: 0 !important; border: var(--b); padding: 10px 12px; font-size: 1rem; line-height: 1.4; }
.roles b { display: block; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.glossary { display: grid; gap: 0; border: var(--b); margin-top: 10px; }
.glossary > div { display: grid; gap: 4px 18px; padding: 12px 14px; border-bottom: 1px solid var(--ink); }
.glossary > div:last-child { border-bottom: 0; }
.glossary dt { font-family: var(--display); text-transform: uppercase; font-size: 1rem; line-height: 1.15; }
.glossary dd { font-size: 1rem; line-height: 1.55; max-width: 68ch; }
@media (min-width: 760px) { .glossary > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); } }
@media (min-width: 1024px) {
  .about { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 36px; align-items: start; }
  .toc { position: sticky; top: 24px; }
}

/* ---------- Privacy + cookie policies ----------
 * Same boxes, ink borders and hard shadows as the How-we-know page. Selectors
 * are scoped one level deeper than launch.css baselines so the site look wins. */
.policy-head .intro__dek { max-width: 60ch; }
.policy-effective {
  display: inline-block; margin-top: 22px; padding: 8px 12px;
  border: var(--b); box-shadow: var(--sh-sm); background: var(--white);
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.4;
}
.policy-effective time { display: inline-block; margin-left: 6px; padding: 1px 6px; background: var(--ink); color: var(--lime); }

.policy-page .policy-toc { border: var(--b); background: var(--white); box-shadow: var(--sh-sm); align-self: start; min-width: 0; }
.policy-toc__label {
  padding: 10px 14px; background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.policy-page .policy-toc ul { display: block; margin: 0; padding: 0; list-style: none; counter-reset: policy-toc; }
.policy-page .policy-toc li { counter-increment: policy-toc; border-top: 1px solid var(--ink); }
.policy-page .policy-toc li:first-child { border-top: 0; }
.policy-page .policy-toc a {
  display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 14px;
  font-weight: 700; font-size: 0.9375rem; line-height: 1.3; text-decoration: none;
}
.policy-page .policy-toc a::before { content: counter(policy-toc, decimal-leading-zero); flex: none; font-family: var(--mono); font-size: 0.75rem; }
.policy-page .policy-toc a:hover { background: var(--lime); color: var(--ink); }
.policy-page .policy-toc a:focus-visible { outline: 3px solid var(--ink); outline-offset: -5px; }

.policy-doc { counter-reset: policy-section; max-width: calc(68ch + 64px); }
.policy-doc .policy-section {
  counter-increment: policy-section;
  border: var(--b); background: var(--white); box-shadow: var(--sh);
  padding: clamp(18px, 3vw, 30px); scroll-margin-top: 16px; min-width: 0;
}
.policy-doc .policy-section::before {
  content: counter(policy-section, decimal-leading-zero) " / Section";
  display: inline-block; padding: 3px 7px;
  background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.45;
}
.policy-doc .policy-section h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); margin: 12px 0 16px; }
.policy-doc .policy-section p, .policy-doc .policy-section li, .policy-doc .policy-list dd { max-width: 68ch; 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; }
.policy-doc .policy-section li { position: relative; padding-left: 26px; }
.policy-doc .policy-section li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 11px; height: 11px; background: var(--lake); border: 2px solid var(--ink); }
.policy-doc .policy-section li + li { margin-top: 12px; }
.policy-doc code {
  padding: 1px 5px; border: 2px solid var(--ink); background: var(--lime);
  font-family: var(--mono); font-size: 0.85em; overflow-wrap: anywhere;
}
.policy-doc .policy-list { display: grid; gap: 0; margin-top: 4px; border: var(--b); }
.policy-doc .policy-list > div { display: grid; gap: 6px 18px; padding: 12px 14px; border-bottom: 1px solid var(--ink); min-width: 0; }
.policy-doc .policy-list > div:last-child { border-bottom: 0; }
.policy-doc .policy-list dt code { font-weight: 700; }
.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 {
  display: flex; align-items: center; width: fit-content; min-height: 48px; margin-bottom: 14px; padding: 10px 18px;
  border: var(--b); box-shadow: var(--sh-sm); background: var(--lake); color: var(--white);
  font-family: var(--display); font-size: 0.95rem; text-transform: uppercase; text-decoration: none;
}
.policy-doc probo-settings-link.policy-settings:defined:hover { background: var(--ink); color: var(--lime); }
.policy-doc .policy-settings-fallback { font-style: normal; font-weight: 700; }
@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: mono caps on the ink footer, a square tick per link. */
.site-footer .legal-links { gap: 0 22px; margin-top: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer .legal-links > a, .site-footer .legal-links > probo-settings-link:defined { gap: 8px; padding: 0 2px; color: var(--lime); }
.site-footer .legal-links > a::before, .site-footer .legal-links > probo-settings-link:defined::before {
  content: ""; flex: none; width: 9px; height: 9px; border: 2px solid var(--lime);
}
.site-footer .legal-links > probo-settings-link:defined:hover { color: var(--white); background: var(--lake); }

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