/* Layout: a civic reference work. A navy masthead with a red rule over one
   reading column (~72rem) that opens into two columns for record vs. writings.
   Palette: one light look on purpose. Cream and eggshell paper, with the flag's
   official Old Glory Red (#B22234) and Old Glory Blue (#3C3B6E) for everything else. */
:root {
  --paper: #f4efe1;       /* cream */
  --surface: #fbf8f0;     /* eggshell white */
  --ink: #1f2140;
  --muted: #5b5a68;
  --rule: #ddd5c3;
  --blue: #3c3b6e;        /* Old Glory Blue */
  --blue-soft: #e8e5e6;
  --red: #b22234;         /* Old Glory Red */
  --band: #3c3b6e;
  --on-band: #fbf8f0;
  --on-band-muted: #d3d1e3;
  /* Ratings stay off the party colors: teal for advances/strong, burnt orange for
     undermines/under strain, warm gray between. Every rating also carries its word. */
  --strong: #1d6b5f;
  --mixed: #6b6475;
  --strain: #9a4b0f;
  --dem: #3c3b6e;
  --rep: #b22234;
  --ind: #5b5a68;
  --tossup: #8a6d1f;
  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --col: 72rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--band);
}
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Masthead + section bar */
.masthead { background: var(--band); border-bottom: 4px solid var(--red); }
.masthead .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px 10px; }
.wordmark { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; color: var(--on-band); text-decoration: none; letter-spacing: 0.01em; }
.wordmark em { font-style: italic; color: var(--on-band); text-decoration: underline 2px var(--red); text-underline-offset: 5px; }
.tagline { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-band-muted); }
.navbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--rule); }
.navbar .wrap { display: flex; flex-wrap: wrap; column-gap: 4px; }
.navbar a {
  flex: none; padding: 12px 12px 10px; font-size: 0.9rem; font-weight: 600; color: var(--muted);
  text-decoration: none; border-bottom: 3px solid transparent;
}
.navbar a:hover { color: var(--ink); }
.navbar a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.nav-group { position: relative; flex: none; }
.nav-btn { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 12px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nav-btn:hover, .nav-btn[aria-expanded="true"] { color: var(--ink); }
.nav-group.current .nav-btn { color: var(--ink); border-bottom-color: var(--red); }
.nav-btn .chev { width: 12px; height: 12px; transition: transform 0.15s; }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 290px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 10px 28px rgba(20, 20, 40, 0.14); padding: 6px; display: grid; }
.nav-menu[hidden] { display: none; }
.navbar .nav-menu a { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-left: 3px solid transparent; font-weight: 400; }
.navbar .nav-menu a b { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.navbar .nav-menu a span { font-size: 0.82rem; color: var(--muted); }
.navbar .nav-menu a:hover, .navbar .nav-menu a:focus-visible { background: var(--paper); }
.navbar .nav-menu a[aria-current="page"] { border-left-color: var(--red); background: var(--paper); }
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: -24px; }
.subnav a { padding: 8px 14px 7px; font-weight: 600; font-size: 0.95rem; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue, #3c3b6e); }

main { padding-block: 32px 64px; }
.view { display: grid; gap: 48px; }

/* Type */
.eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); }
.display { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; }
.h2 { font-family: var(--font-serif); font-weight: 700; font-size: 1.6rem; line-height: 1.2; }
.h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.prose { max-width: 40em; }
.small { font-size: 0.85rem; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.section-head { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.section-head .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero-copy { display: grid; gap: 16px; }
.farewell {
  border-left: 3px solid var(--red); padding: 4px 0 4px 20px; display: grid; gap: 10px;
}
.farewell blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; line-height: 1.55; }
.cite { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Draft banner */
.draft {
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted);
  background: var(--blue-soft); padding: 10px 14px; border-radius: 6px;
}
.draft strong { color: var(--ink); }

/* Value cards */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.value-card {
  background: var(--surface); padding: 22px 22px 18px; display: grid; gap: 10px; align-content: start;
  text-decoration: none; color: inherit; transition: background 0.15s;
}
.value-card:hover { background: var(--blue-soft); }
.value-card .name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.value-card .short { color: var(--muted); font-size: 0.95rem; }
.value-card .src { font-family: var(--font-serif); font-style: italic; font-size: 0.85rem; color: var(--red); }

/* Status chips: promise vs. practice */
.status { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; }
.status span { display: inline-flex; align-items: center; gap: 6px; }
.status b { font-weight: 600; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 0.78rem; }
.pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pill.strong { color: var(--strong); }
.pill.mixed { color: var(--mixed); }
.pill.strain { color: var(--strain); }

/* Value page */
.crumbs { font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.value-head { display: grid; gap: 14px; }
.promise {
  margin: 0; font-family: var(--font-serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.5;
  max-width: 44em; padding: 20px 0; border-block: 1px solid var(--rule);
}
.promise footer { margin-top: 10px; font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.two > * { min-width: 0; display: grid; gap: 16px; align-content: start; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 3.4rem 18px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; position: relative; }
.timeline .yr { font-family: var(--font-serif); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--rule); }
.timeline li::before { content: ""; position: absolute; left: calc(3.4rem + 15px); top: 20px; bottom: -6px; width: 1px; background: var(--rule); }
.timeline li:last-child::before { display: none; }
.dot.advance { background: var(--strong); }
.dot.setback { background: var(--strain); }
.dot.contested { background: var(--mixed); }
.dot.neutral { background: var(--blue); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.quotes { display: grid; gap: 22px; }
.quote { margin: 0; display: grid; gap: 6px; }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.55; }
.quote blockquote::before { content: "\201C"; color: var(--red); font-size: 1.6em; line-height: 0; vertical-align: -0.35em; margin-right: 2px; }
.quote .who { font-weight: 700; font-size: 0.9rem; }
.quote .when { font-size: 0.85rem; color: var(--muted); }
.quote .ctx { font-size: 0.82rem; color: var(--muted); font-style: italic; }

.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1px solid var(--rule); background: var(--surface); }
.ledger > div { padding: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.ledger > div + div { border-left: 1px solid var(--rule); }
.ledger ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.ledger .h3.ok { color: var(--strong); }
.ledger .h3.no { color: var(--strain); }

.readings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.reading { background: var(--surface); border: 1px solid var(--rule); padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.reading .label { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; }
.common { grid-column: 1 / -1; background: var(--blue-soft); padding: 16px 20px; display: grid; gap: 4px; }
.common .eyebrow { color: var(--blue); }

.indicator { display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--rule); }
.indicator .big { font-family: var(--font-serif); font-weight: 700; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--blue); }

.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 16px; }

/* Law & measure cards */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: 600 0.8rem/1 var(--font-sans); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--surface); }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); text-decoration: none; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--rule); padding: 18px 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.card .title { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.sides { display: grid; gap: 8px; font-size: 0.9rem; }
.sides div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 8px; }
.sides span, .card .small { overflow-wrap: anywhere; }
.sides b { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 2px; }
.tally { display: grid; gap: 6px; font-size: 0.8rem; }
.tally .row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.bar { height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--blue); }
.status-tag { font-weight: 700; color: var(--red); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; background: var(--paper); }
tr:last-child td { border-bottom: 0; }
.party { font-weight: 700; font-size: 0.75rem; }
.party.D { color: var(--dem); } .party.R { color: var(--rep); } .party.I, .party.O { color: var(--ind); }
.rating { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; border: 1px solid currentColor; }
.rating.d3, .rating.d2, .rating.d1 { color: var(--dem); }
.rating.r3, .rating.r2, .rating.r1 { color: var(--rep); }
.rating.t { color: var(--tossup); }
.rating.d3, .rating.r3 { opacity: 0.75; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; padding: 1px; }
.stat { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; outline: 1px solid var(--rule); }
.stat .big { font-family: var(--font-serif); font-weight: 700; font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* State tile map */
.statemap-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.tile {
  aspect-ratio: 1; max-width: 100%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  font: 700 clamp(0.55rem, 1.4vw, 0.8rem)/1 var(--font-sans); display: grid; place-items: center; cursor: pointer; padding: 0; border-radius: 3px;
}
.tile:hover { border-color: var(--ink); }
.tile[aria-pressed="true"] { outline: 2px solid var(--red); outline-offset: 1px; }
.tile.has { border-width: 2px; }
.tile.d1, .tile.d2, .tile.d3 { border-color: var(--dem); color: var(--dem); }
.tile.r1, .tile.r2, .tile.r3 { border-color: var(--rep); color: var(--rep); }
.tile.t { border-color: var(--tossup); color: var(--tossup); background: var(--blue-soft); }
.state-panel { background: var(--surface); border: 1px solid var(--rule); padding: 20px; display: grid; gap: 14px; min-width: 0; }

/* Leaders */
.lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.lens { display: grid; gap: 6px; align-content: start; padding-top: 12px; border-top: 3px solid var(--blue); }
.leader-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.leader { background: var(--surface); border: 1px solid var(--rule); padding: 14px 16px; display: grid; gap: 2px; }
.leader .nm { font-weight: 700; }
a.leader { transition: border-color 0.15s, background 0.15s; }
a.leader:hover { border-color: var(--blue); background: var(--blue-soft); }
.example { border: 1px dashed var(--red); background: var(--surface); padding: 22px; display: grid; gap: 20px; }
.example-flag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); }
.wd { display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.wd > div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; min-width: 0; }
.wd .hd { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.match { font-weight: 700; font-size: 0.78rem; }
.match.yes { color: var(--strong); } .match.no { color: var(--strain); } .match.part { color: var(--mixed); }

.candidates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }

footer.site { border-top: 1px solid var(--rule); background: var(--surface); }
footer.site .wrap { padding-block: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero, .two, .statemap-layout { grid-template-columns: minmax(0, 1fr); }
  .readings, .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .wd { grid-template-columns: minmax(0, 1fr); }
  .wd .hd:not(:first-child) { display: none; }
  .wd > div { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* American Dream charts: thin marks, hairline grid, text in ink tokens (never the series color). */
.charts { display: grid; gap: 24px; }
@media (min-width: 760px) { .charts.two-up { grid-template-columns: 1fr 1fr; } }
.chart { margin: 0; display: grid; gap: 8px; min-width: 0; }
.chart figcaption { display: grid; gap: 2px; }
.chart svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .tick { font: 11px var(--font-sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .end, .chart .val { font: 600 11px var(--font-sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.chart .lab { font: 12px var(--font-sans); fill: var(--ink); }
.chart .xh { stroke: var(--muted); stroke-width: 1; }
.chart line.ref { stroke: var(--ink); stroke-width: 2; }
.chart .bar:hover path, .chart .bar:focus path { opacity: 0.8; }
.chart .bar:focus { outline: none; }
.chart .bar:focus .lab { text-decoration: underline; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend i.ref { width: 2px; height: 12px; background: var(--ink); }
.tip { position: absolute; z-index: 20; pointer-events: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px; font-size: 0.85rem; box-shadow: 0 4px 14px rgba(31,33,64,0.12); display: grid; gap: 2px; max-width: 280px; }
.tip i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
table.hours td.num, table.hours th.num { white-space: nowrap; }

/* Phone: the section nav wraps instead of hiding half its links off-screen. */
@media (max-width: 640px) {
  .navbar .wrap { flex-wrap: wrap; overflow-x: visible; column-gap: 2px; }
  .navbar a, .nav-btn { padding: 10px 7px 8px; }
  .nav-group { position: static; }
  .nav-menu { left: 8px; right: 8px; min-width: 0; }
}
.tally-note { margin: 0; padding: 10px 14px; border-left: 3px solid var(--rule); background: var(--surface); }

/* American Voices */
.jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.jumps button { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink, inherit); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.jumps button:hover { border-color: var(--red); }
.feature, .theme, #v-misquoted { scroll-margin-top: 110px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; padding: 28px 0; border-top: 3px double var(--rule); }
.feature-intro { display: grid; gap: 12px; align-content: start; align-self: start; position: sticky; top: 110px; }
.feature-intro h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.1; }
.quotes.voices { gap: 26px; }
.voices blockquote, .voice-grid blockquote { white-space: pre-line; }
.quote .work { font-size: 0.85rem; font-style: italic; }
.voice-grid { columns: 2 22rem; column-gap: 40px; }
.voice-grid .quote { break-inside: avoid; margin-bottom: 26px; }
.reading .mis { font-family: var(--font-serif); font-style: italic; margin: 0; }
@media (max-width: 760px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .feature-intro { position: static; }
}
.feature.long .feature-intro { position: static; }
.feature-intro .sub { font-family: var(--font-serif); font-size: 1.2rem; margin: 8px 0 0; }
.gave { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; line-height: 1.55; }
.aside { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--red); padding: 16px 18px; display: grid; gap: 8px; }
.aside p { margin: 0; line-height: 1.55; }
.hero-quote { margin: 4px 0; padding: 18px 20px; background: var(--blue-soft); border-left: 3px solid var(--blue); display: grid; gap: 8px; }
.hero-quote blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.5; }
.hero-quote figcaption { font-size: 0.85rem; color: var(--muted); }
.feature:focus, .theme:focus, #v-misquoted:focus { outline: none; }
.songs-wrap { grid-column: 1 / -1; display: grid; gap: 12px; }
.songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.song { background: var(--surface); border: 1px solid var(--rule); padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.song .label { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; }
.song p { margin: 0; line-height: 1.5; font-size: 0.95rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shape { margin: 0; display: grid; gap: 4px; }
.shape dt { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted, #5b6270); margin-top: 8px; }
.shape dt:first-child { margin-top: 0; }
.shape dd { margin: 0; }
.then-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 640px) { .then-now { grid-template-columns: minmax(0, 1fr); } }

.ledger .h3.mixed { color: var(--mixed); }
svg.lc:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.split { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.split li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.match.same { color: var(--ink); }
