:root {
  --ce-obsidian: #0B0B0D;
  --ce-parchment: #E6DFD3;
  --ce-deep-teal: #2D5154;
  --ce-echo-teal: #5E7F82;
  --ce-mist: #8EB6B8;
  --ce-candlelight: #C8B28A;
  --paper: #FAF8F4;
  --panel: #F3EFE7;
  --text: #202829;
  --muted: #596161;
  --line: #D8D2C7;
  --pill-bg: #E5EBE5;
  /* data marks */
  --ink: #0B0B0D;
  --surface: #FAF8F4;
  --water: #2D5154;
  --water-soft: #8EB6B8;
  --limit: #9A6B2F;
  --flag: #8A6A35;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --editorial: "EB Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --max: 1240px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--text); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ce-deep-teal); text-underline-offset: 4px; }
a:hover { color: #183A3D; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ce-deep-teal); outline-offset: 3px; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline-color: var(--ce-candlelight); }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; line-height: 1.13; margin: 0; text-wrap: balance; }
.eyebrow { font-size: .63rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--ce-deep-teal); line-height: 1.65; margin: 0; }
.mono { font-variant-numeric: tabular-nums; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: var(--max); margin: 0 auto; }

/* Header */
.site-header { background: var(--ce-obsidian); color: var(--ce-parchment); }
.topline { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px 11px; border-bottom: 1px solid #292E2C; color: #A2ADA9; font-size: .59rem; letter-spacing: .17em; text-transform: uppercase; }
.topline a { font: italic .76rem var(--serif); letter-spacing: .025em; color: #BFB7A8; text-decoration: none; text-transform: none; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px 22px; }
.brand img { width: 322px; max-width: 54vw; height: auto; display: block; }
.header-search { color: var(--ce-parchment); text-decoration: none; font-size: .8rem; display: inline-flex; gap: 10px; align-items: center; }
.header-search svg { width: 18px; height: 18px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 30px; border-top: 1px solid #303634; }
.main-nav a { font-size: .73rem; letter-spacing: .025em; color: #D7D3C9; padding: 15px 0 14px; text-decoration: none; position: relative; }
.main-nav a:hover { color: var(--ce-mist); }
.main-nav a[aria-current="page"] { color: var(--ce-mist); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ce-mist); }
@media (max-width: 640px) {
  .topline { justify-content: center; font-size: .5rem; }
  .topline a, .header-search span { display: none; }
  .main-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 17px; }
  .main-nav a { border-bottom: 1px solid #26372F; padding: 11px 4px; }
}

/* Intro */
main { padding-block: 0 72px; }
.breadcrumb { display: flex; justify-content: space-between; gap: 12px; font-size: .69rem; margin: 26px 0 40px; color: #586C67; }
.breadcrumb a { text-decoration: none; }
.record-intro { border-bottom: 1px solid var(--ce-echo-teal); padding-bottom: 28px; }
.record-intro h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); max-width: 980px; margin: 14px 0 17px; letter-spacing: -.04em; }
.lede { font-size: .95rem; max-width: 850px; line-height: 1.9; color: #596662; margin: 0 0 14px; }
.small { font-size: .77rem; color: var(--muted); line-height: 1.75; margin: 0; }

.content-section { padding: 44px 0 8px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { font-size: 1.95rem; }
.section-heading > span { color: var(--muted); font-size: .73rem; font-variant-numeric: tabular-nums; }

/* Buttons, as on the site */
.button { display: inline-flex; align-items: center; gap: 8px; background: var(--ce-deep-teal); border: 1px solid var(--ce-deep-teal); border-radius: 2px; color: var(--paper); font: 500 .78rem/1.45 var(--sans); min-height: 44px; padding: 11px 16px; text-decoration: none; cursor: pointer; }
.button:hover { background: #1D3F41; border-color: #1D3F41; color: #fff; }
.button.secondary { background: transparent; color: var(--ce-deep-teal); border-color: #9DA89E; }
.button.secondary:hover { background: #E8ECE4; border-color: var(--ce-deep-teal); color: var(--ce-deep-teal); }

/* Shelf */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { font: 500 .74rem/1 var(--sans); min-height: 36px; padding: 9px 13px; border-radius: 2px; border: 1px solid #9DA89E; background: transparent; color: var(--ce-deep-teal); cursor: pointer; }
.tabs button:hover { background: #E8ECE4; }
.tabs button[aria-pressed="true"] { background: var(--ce-deep-teal); color: var(--paper); border-color: var(--ce-deep-teal); }
.metric-note { margin: 0; color: var(--muted); max-width: 850px; font-size: .91rem; line-height: 1.85; }
.metric-note b { color: var(--text); font-weight: 600; }
.shelf { margin-top: 28px; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
@media (max-width: 720px) { .shelf { grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 18px; } }
.glass { appearance: none; border: 0; background: none; padding: 6px 0 4px; color: var(--ink); cursor: pointer; display: grid; justify-items: center; gap: 4px; border-radius: 2px; }
.glass svg { width: 100%; max-width: 64px; height: auto; display: block; overflow: visible; }
.glass .v { font: 500 .7rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); min-height: 1em; }
.glass .y { font: 500 1.05rem/1 var(--serif); }
.glass:hover { background: #F0EBE2; }
.glass[aria-current="true"] { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.glass[aria-current="true"] .y { color: var(--ce-deep-teal); font-weight: 500; }
.legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .7rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 1px; display: inline-block; }
.sw.new { background: var(--water); }
.sw.rep { background: repeating-linear-gradient(135deg, var(--water-soft) 0 3px, transparent 3px 6px); border: 1px solid var(--ce-echo-teal); }
.sw.lim { height: 0; border-top: 2px dashed var(--limit); border-radius: 0; }

/* Ledger: styled like the site's "Read this source here" panel */
.ledger { margin-top: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 24px; }
.ledger-top { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: flex-end; }
.ledger-top h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-top: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.ledger-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 760px) { .ledger-body { grid-template-columns: minmax(0, 1fr); } }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ce-deep-teal); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; background: var(--pill-bg); color: #294C47; border: 1px solid #C9D5CC; font-size: .56rem; letter-spacing: .07em; padding: 3px 7px; font-weight: 600; text-transform: uppercase; white-space: nowrap; border-radius: 2px; }
.pill.rep { background: transparent; border-style: dashed; color: var(--muted); border-color: #A9B0AA; }
.pill.none { background: #F1E8D8; border-color: #D9C6A0; color: #6E5226; }
.notes { display: grid; gap: 12px; align-content: start; }
.notes h3 { font-size: 1.35rem; }
.note { border-left: 2px solid var(--ce-candlelight); padding: 2px 0 2px 14px; margin: 0; font: 1.02rem/1.6 var(--editorial); }
.note.ok { border-left-color: var(--line); color: var(--muted); }

/* Log */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.log li:last-child { border-bottom: 1px solid var(--line); }
.log li b { font: 400 1.5rem/1.1 var(--serif); color: var(--ink); }
.log li p { margin: 0; max-width: 68ch; font: 1.05rem/1.65 var(--editorial); }
.log li button { font: 600 .67rem/1 var(--sans); color: var(--ce-deep-teal); background: none; border: 0; padding: 0 0 0 6px; cursor: pointer; white-space: nowrap; }
.log li button:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Source trail: the site's record cards */
.record-card { display: flex; gap: 22px; padding: 25px 0; border-top: 1px solid var(--line); }
.record-card:last-child { border-bottom: 1px solid var(--line); }
.record-icon { width: 50px; height: 61px; flex: 0 0 50px; background: #E9E6DA; color: var(--ce-deep-teal); border: 1px solid #D4CDBF; border-radius: 2px; display: grid; place-items: center; }
.record-icon svg { width: 23px; height: 23px; }
.record-card-body { min-width: 0; flex: 1; }
.record-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; font-size: .64rem; margin-bottom: 10px; color: #586664; }
.record-card h3 { font: 400 1.51rem/1.25 var(--serif); letter-spacing: -.025em; }
.record-card h3 a { color: var(--ink); text-decoration: none; }
.record-card h3 a:hover { color: var(--ce-deep-teal); }
.record-card p { font-size: .79rem; line-height: 1.8; margin: 9px 0 0; color: var(--muted); }
.record-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px 20px; font-size: .65rem; margin-top: 14px; color: var(--muted); }
.record-bottom div { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.record-bottom a { font-size: .67rem; font-weight: 600; text-decoration: none; }
@media (max-width: 520px) { .record-icon { display: none; } .record-card h3 { font-size: 1.37rem; } }

/* Method + footer */
.method { margin-top: 44px; max-width: 850px; display: grid; gap: 10px; }
.method p { margin: 0; font-size: .77rem; color: var(--muted); line-height: 1.75; }
.site-footer { background: var(--ce-obsidian); color: #AAB5B1; padding-block: 52px 22px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 820px) { .footer-main { grid-template-columns: minmax(0, 1fr); } }
.footer-main img { width: 240px; max-width: 100%; height: auto; display: block; }
.footer-motto { font: 400 1.3rem/1.3 var(--serif); color: var(--ce-parchment); margin: 14px 0 0; }
.footer-motto em { color: var(--ce-mist); }
.footer-main .eyebrow { color: var(--ce-candlelight); font-size: .54rem; letter-spacing: .12em; margin: 14px 0 17px; }
.footer-main p { font-size: .8rem; }
.footer-note { color: #8A958F; font-size: .72rem !important; }
.footer-links a { color: #C3CCC5; display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid #2F3631; text-decoration: none; font-size: .72rem; }
.footer-links a:hover { color: var(--ce-mist); }
.footer-links a span { color: var(--ce-candlelight); }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid #2F3631; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .6rem; letter-spacing: .12em; }
.footer-bottom a { color: var(--ce-parchment); text-decoration: none; letter-spacing: 0; font-size: .64rem; }
@media (prefers-reduced-motion: no-preference) { .fill { transition: y 500ms ease, height 500ms ease; } }

.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; }
.glance div { padding: 16px 18px 14px 0; display: grid; gap: 2px; }
.glance div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.glance b { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--serif); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.glance span { font-size: .72rem; color: var(--muted); }
@media (max-width: 720px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } .glance div:nth-child(3) { border-left: 0; padding-left: 0; } .glance div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.chart-wrap { overflow-x: auto; margin-top: 18px; }
.chart-wrap svg { display: block; width: 100%; min-width: 640px; height: auto; }
.axis text, .lbl { font: 400 11px var(--sans); fill: var(--muted); }
.lbl-strong { font: 500 12px var(--sans); fill: var(--ink); }
.yr { font: 500 13px var(--serif); fill: var(--ink); }
.grid line { stroke: var(--line); stroke-width: 1; }
.col { cursor: pointer; }
.col:hover .seg { opacity: .88; }
.col:focus-visible { outline: none; }
.col:focus-visible .hit, .col.on .hit { stroke: var(--ink); stroke-width: 1.5; }
.hit { fill: transparent; stroke: transparent; }
.fund-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: .72rem; color: var(--muted); }
.fund-legend span { display: inline-flex; gap: 7px; align-items: center; }
.fund-legend i { width: 12px; height: 12px; border-radius: 1px; display: inline-block; }

.ledger-body.funds { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.fundrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.fundrow .bar { grid-column: 1 / -1; height: 6px; background: #E9E4DA; border-radius: 1px; overflow: hidden; }
.fundrow .bar i { display: block; height: 100%; }
.fundrow b { font-weight: 500; font-variant-numeric: tabular-nums; }
.facts { display: grid; gap: 0; align-content: start; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.facts div span { color: var(--muted); }
.facts div b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.facts .note { margin-top: 12px; }

@media (max-width: 760px) { .ledger-body.funds { grid-template-columns: minmax(0, 1fr); } }

/* Voter Atlas additions. Layout: site record page; a precinct map beside a ledger panel, a ranked strip,
   precinct-against-precinct dumbbells, 2018→2022 arrows, amendment dot strips, small multiples, a century timeline. */
.atlas {
  --rep: #A3573A;
  --dem: #3F6E8C;
  --third: #8C6B3E;
  --npa: #C8B28A;
  --yes: #2D5154;
  --no: #C8B28A;
  --map-line: #FAF8F4;
  --no-race: #ECE7DD;
}
.controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 22px; }
.ctl-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: end; }
.ctl { display: grid; gap: 6px; min-width: 0; max-width: 100%; }
.ctl-row > .ctl, .cmp-controls > .ctl { flex: 0 1 auto; }
@media (max-width: 640px) { .ctl, .ctl select { width: 100%; } }
.ctl > span { font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ce-deep-teal); display: inline-flex; gap: 6px; align-items: center; }
.ctl select { font: 500 .84rem/1.3 var(--sans); color: var(--text); background: #FFFDF8; border: 1px solid #9DA89E; border-radius: 2px; min-height: 40px; padding: 8px 34px 8px 12px; max-width: 100%; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ce-deep-teal) 50%), linear-gradient(135deg, var(--ce-deep-teal) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ctl select:focus-visible { outline: 2px solid var(--ce-deep-teal); outline-offset: 2px; }
.chips button { min-height: 32px; padding: 7px 11px; font-size: .7rem; }
.key { width: 12px; height: 12px; }
.dot-a { fill: var(--ink); }
.dot-b { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }

.atlas-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; margin-top: 22px; align-items: start; }
@media (max-width: 900px) { .atlas-grid { grid-template-columns: minmax(0, 1fr); } }
.map-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.map-wrap { background: #F3EFE7; border: 1px solid var(--line); border-radius: 2px; }
#map { display: block; width: 100%; height: auto; max-height: 78vh; }
.pct { stroke: var(--map-line); stroke-width: .8; stroke-linejoin: round; cursor: pointer; transition: fill .3s ease; }
.pct:hover { stroke: var(--ink); stroke-width: 1.4; }
.pct.on { stroke: var(--ink); stroke-width: 2.2; }
.pct.none { fill: var(--no-race); cursor: default; }
.pct-g:focus-visible { outline: none; }
.pct-g:focus-visible .pct { stroke: var(--ce-candlelight); stroke-width: 2.6; }
.pct-num { font: 600 9px var(--sans); fill: var(--ink); pointer-events: none; paint-order: stroke; stroke: rgba(250, 248, 244, .75); stroke-width: 2.4px; }
.coast .pct-num { font-size: 4px; stroke-width: 1.1px; }
.coast .pct { stroke-width: .45; }
.coast .pct.on { stroke-width: 1.2; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: .7rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend svg { width: 74px; height: 12px; flex: none; }
.map-legend svg.sq { width: 12px; }

.atlas .ledger { margin-top: 0; }
.ledger-top .pnum { font: 400 1.05rem var(--serif); color: var(--muted); }
.cand { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 3px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .84rem; align-items: baseline; }
.cand .party { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.cand b { font-weight: 500; font-variant-numeric: tabular-nums; }
.cand .cty { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 6.4em; text-align: right; }
.cand svg { grid-column: 1 / -1; width: 100%; height: 8px; display: block; }
.cand.win { font-weight: 600; }
.ledger .tiny { font-size: .7rem; color: var(--muted); margin: 0; line-height: 1.6; }
.chipline { display: flex; flex-wrap: wrap; gap: 6px; }

.strip-block { margin-top: 34px; }
.strip-block h3 { font-size: 1.35rem; }
.strip-block .small { margin-top: 4px; }
.sdot { cursor: pointer; stroke: var(--paper); stroke-width: 1; }
.sdot:hover, .sdot.on { stroke: var(--ink); stroke-width: 1.8; }
.sdot-g:focus-visible { outline: none; }
.sdot-g:focus-visible .sdot { stroke: var(--ce-candlelight); stroke-width: 2.4; }
.strip-lab { font: 500 11px var(--sans); fill: var(--ink); }
.table-details { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-details summary { cursor: pointer; padding: 12px 0; font-size: .78rem; font-weight: 600; color: var(--ce-deep-teal); }
.table-details table { margin-bottom: 14px; }
.table-details td button { font: inherit; color: var(--ce-deep-teal); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.table-details td button:hover { text-decoration: underline; text-underline-offset: 3px; }

.cmp-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; }
.cmp-controls select { min-width: min(260px, 100%); }
.cmp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 20px; }
@media (max-width: 640px) { .cmp-facts { grid-template-columns: minmax(0, 1fr); } }
.cmp-card { border-top: 2px solid var(--ink); padding-top: 10px; }
.cmp-card.b { border-top-style: dashed; }
.cmp-card h3 { font-size: 1.45rem; }
.cmp-card .facts div { padding: 7px 0; }
.cmp-row-lab { font: 400 12px var(--sans); fill: var(--text); }
.cmp-row-sub { font: 400 10.5px var(--sans); fill: var(--muted); }
.cmp-link { stroke: #A9B0AA; stroke-width: 2; }
.cty-tick { stroke: var(--ce-deep-teal); stroke-width: 2; }

.arrow { stroke-width: 1.6; fill: none; }
.arrow.up { stroke: var(--rep); }
.arrow.down { stroke: var(--dem); }
.arrow-head.up { fill: var(--rep); }
.arrow-head.down { fill: var(--dem); }
.shift-row { cursor: pointer; }
.shift-row:hover .shift-bg, .shift-row.on .shift-bg { fill: #EEE9DF; }
.shift-bg { fill: transparent; }
.shift-row:focus-visible { outline: none; }
.shift-row:focus-visible .shift-bg { fill: #E5EBE5; }

.amend-row { cursor: pointer; }
.amend-row:hover .amend-bg, .amend-row.on .amend-bg { fill: #EEE9DF; }
.amend-row:focus-visible { outline: none; }
.amend-row:focus-visible .amend-bg { fill: #E5EBE5; }
.amend-bg { fill: transparent; }
.amend-dot { fill: var(--yes); fill-opacity: .42; }
.amend-dot.below { fill: var(--no); fill-opacity: .8; }
.amend-cty { stroke: var(--ink); stroke-width: 3; }
.thresh { stroke: var(--limit); stroke-width: 1.4; stroke-dasharray: 4 3; }
.pass { font: 600 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pass.yes { fill: var(--ce-deep-teal); }
.pass.no { fill: var(--limit); }

.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 22px; margin-top: 20px; }
.mini { appearance: none; background: #FFFDF8; border: 1px solid var(--line); border-radius: 2px; padding: 14px 14px 12px; text-align: left; cursor: pointer; display: grid; gap: 8px; align-content: start; color: var(--text); font: inherit; }
.mini:hover { border-color: var(--ce-echo-teal); }
.mini h3 { font-size: 1.15rem; }
.mini .when { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ce-deep-teal); font-weight: 600; }
.mini svg.mmap { width: 100%; height: 190px; display: block; }
.mini .pct { stroke-width: .5; cursor: inherit; }
.mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .74rem; }
.mini li { display: flex; gap: 7px; align-items: center; }
.mini li svg { width: 10px; height: 10px; flex: none; }
.mini li b { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.mini .margin { font: italic .9rem/1.4 var(--editorial); color: var(--muted); }

.cent-dot { fill: var(--ce-deep-teal); }
.cent-dot.sovc { fill: var(--ce-candlelight); }
.cent-a:hover .cent-dot, .cent-a:focus-visible .cent-dot { fill: var(--ink); }
.cent-a:focus-visible { outline: none; }
.cent-tip { font: 500 11px var(--sans); fill: var(--ink); }

.atlas .record-card .pill { margin-right: 4px; }
@media (max-width: 520px) { .cand { grid-template-columns: minmax(0, 1fr) auto; } .cand .cty { grid-column: 2; grid-row: 2; } .cand svg { grid-row: 3; } }
.seg-lab { font: 500 10.5px var(--sans); fill: #FAF8F4; pointer-events: none; }
.val-lab { font: 500 10.5px var(--sans); fill: var(--ink); font-variant-numeric: tabular-nums; }
.tdot.linked { cursor: pointer; }
.tdot.linked:hover circle, .tdot.linked:focus-visible circle { stroke: var(--ink); stroke-width: 1.6; }
.tdot:focus-visible { outline: none; }
.fund-legend svg { width: 12px; height: 12px; flex: none; }
.cent-a { cursor: pointer; }
.cent-dot.minor { fill: #8EB6B8; }
.cent-a.on .cent-dot, .cent-a:hover .cent-dot { fill: var(--limit); }
.hist-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 18px 0 18px; align-items: end; }
.hist-controls select { min-width: min(340px, 100%); }
.ctl input[type=search] { font: 500 .84rem/1.3 var(--sans); color: var(--text); background: #FFFDF8; border: 1px solid #9DA89E; border-radius: 2px; min-height: 40px; padding: 8px 12px; width: min(280px, 100%); }
.ctl input[type=search]:focus-visible { outline: 2px solid var(--ce-deep-teal); outline-offset: 2px; }
.atlas .ledger.hist { margin-top: 0; }
.hist-races { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px 28px; }
.hrace { border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.hrace h3 { font-size: 1.12rem; margin-bottom: 6px; }
.hwhen { font: 600 .6rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ce-deep-teal); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.hwhen:hover { text-decoration: underline; text-underline-offset: 3px; }
.hc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: .78rem; padding: 4px 0; }
.hc b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc.win span { font-weight: 600; }
.hc small { color: var(--muted); font-size: .62rem; letter-spacing: .06em; }
.hc svg { grid-column: 1 / -1; width: 100%; height: 5px; display: block; }
.trail-links { font-size: .74rem !important; line-height: 2 !important; }
.trail-links a { white-space: nowrap; }
