/* Athene — tokens follow the dataviz reference palette (light + selected dark steps). */
:root {
  color-scheme: light;
  --page: #f9f9f7; --surface: #fcfcfb; --surface-2: #f0efec;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #737069;
  --grid: #e1e0d9; --axis: #c3c2b7; --ring: rgba(11,11,11,.10);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;
  --other: #b9b7af; --nodata: #e9e8e3; --neutral-bar: #5598e7;
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --seq1: #cde2fb; --seq2: #9ec5f4; --seq3: #6da7ec; --seq4: #3987e5; --seq5: #256abf; --seq6: #184f95;
  --accent: #2a78d6; --sim: #fff3c4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #242422;
    --ink: #ffffff; --ink-2: #c3c2b7; --muted: #9a988f;
    --grid: #2c2c2a; --axis: #383835; --ring: rgba(255,255,255,.10);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --other: #5c5b56; --nodata: #2a2a28; --neutral-bar: #3987e5;
    --seq1: #104281; --seq2: #184f95; --seq3: #1c5cab; --seq4: #256abf; --seq5: #3987e5; --seq6: #6da7ec;
    --accent: #3987e5; --sim: #4a3b00;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #242422;
  --ink: #ffffff; --ink-2: #c3c2b7; --muted: #9a988f;
  --grid: #2c2c2a; --axis: #383835; --ring: rgba(255,255,255,.10);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --other: #5c5b56; --nodata: #2a2a28; --neutral-bar: #3987e5;
  --seq1: #104281; --seq2: #184f95; --seq3: #1c5cab; --seq4: #256abf; --seq5: #3987e5; --seq6: #6da7ec;
  --accent: #3987e5; --sim: #4a3b00;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--page); color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h2 { font-size: 18px; margin: 0; font-weight: 650; }
h3 { font-size: 15px; margin: 0; font-weight: 600; }
.muted { color: var(--muted); font-weight: 400; }
/* runoff (turno 2): sections that show the frozen 1st-round result say so */
.t1only { display: none; }
[data-turno="2"] .t1only { display: inline; }
.num, .tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px;
  padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--grid); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.owl { width: 32px; height: 32px; fill: var(--s1); }
.owl .eye { fill: var(--surface); } .owl .beak { fill: var(--s4); }
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.brand__sub { font-size: 12px; color: var(--ink-2); }
.tabs { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.tabs a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.tabs a:hover { background: var(--surface-2); color: var(--ink); }
.fresh { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.fresh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.fresh[data-s="good"]::before { background: var(--good); }
.fresh[data-s="warning"]::before { background: var(--warning); }
.fresh[data-s="critical"]::before { background: var(--critical); }
.theme { border: 1px solid var(--grid); background: var(--surface); color: var(--ink); border-radius: 6px;
  width: 32px; height: 32px; cursor: pointer; }

.banner { margin: 16px 24px 0; padding: 10px 14px; border-radius: 8px; background: var(--surface);
  border: 1px solid var(--grid); color: var(--ink-2); }
.banner--sim { background: var(--sim); color: var(--ink); font-weight: 600; }

main { display: grid; gap: 16px; padding: 16px 24px 8px; grid-template-columns: repeat(12, 1fr); }
.panel { grid-column: span 12; background: var(--surface); border: 1px solid var(--grid); border-radius: 10px;
  padding: 18px 20px; min-width: 0; }
@media (min-width: 1200px) {
  main { grid-auto-flow: row dense; }              /* Eventos fills the space beside the map */
  #mapa { grid-column: span 7; } #eventos { grid-column: span 5; }
  #eventos .events { max-height: 520px; }
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px; }

/* status chips — color + text, never color alone */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--muted); }
.chip--critical::before { background: var(--critical); } .chip--serious::before { background: var(--serious); }
.chip--good::before { background: var(--good); } .chip--warning::before { background: var(--warning); }

/* president */
.pres { display: grid; gap: 24px; grid-template-columns: minmax(220px, 300px) 1fr; }
@media (max-width: 760px) { .pres { grid-template-columns: 1fr; } }
.hero__label { font-size: 13px; color: var(--ink-2); }
.hero__value { font-size: 52px; font-weight: 650; line-height: 1.05; margin: 2px 0 8px; }
.hero__foot { font-size: 12.5px; margin-top: 6px; line-height: 1.5; }
.hero__foot span { display: block; }
.meter { height: 8px; background: var(--seq1); border-radius: 4px; overflow: hidden; }
.meter__fill { height: 100%; width: 0; background: var(--accent); border-radius: 0 4px 4px 0; transition: width .6s; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.tile { background: var(--surface-2); border-radius: 8px; padding: 9px 11px; }
.tile__label { font-size: 12px; color: var(--ink-2); }
.tile__value { font-size: 20px; font-weight: 600; }
.tile__sub { font-size: 11.5px; color: var(--muted); }

.bars { display: grid; gap: 7px; container-type: inline-size; }
.bar { display: grid; grid-template-columns: minmax(150px, 260px) 1fr 64px; gap: 12px; align-items: center;
  padding: 3px 4px; border-radius: 6px; }
.bar:hover { background: var(--surface-2); }
.bar__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--other); }
.bar__id { display: flex; align-items: center; gap: 8px; min-width: 0; }   /* TV: name and party in one line, as before */
main .bar__id { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }   /* board: party under the name */
.bar__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; max-width: 100%; }
.bar__party { color: var(--muted); font-size: 12px; white-space: nowrap; }
.bar__track { position: relative; height: 22px; }
.bar__fill { position: absolute; left: 0; top: 3px; height: 16px; border-radius: 0 4px 4px 0; background: var(--other);
  transition: width .6s; min-width: 2px; }
.bar__ref { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--axis); }
.bar__ref span { position: absolute; top: -15px; left: 3px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.bar__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar__votes { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.bars--first .bar:first-child .bar__track { margin-top: 12px; }
/* narrow lists (UF detail, phones): name + value on one line, full-width bar below */
@container (max-width: 560px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .bar__track { grid-column: 1 / -1; grid-row: 2; height: 14px; }
  .bars--first .bar:first-child .bar__track { margin-top: 0; }
  .bar__fill { top: 2px; height: 10px; }
  .bar__ref span { display: none; }
  .bar__val { display: flex; gap: 8px; align-items: baseline; }
  .bar__votes { display: inline; }
}
.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.roster li { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 4px 0; border-bottom: 1px solid var(--grid); }
.roster__n { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; min-width: 22px; }
.note { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; }
.estimate { margin-top: 12px; border-top: 1px solid var(--grid); padding-top: 10px; }
.estimate summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.estimate .bars { margin-top: 10px; }
.why ul { margin: 10px 0 2px; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.why li { margin-bottom: 8px; } .why li:last-child { margin-bottom: 0; }

.curve { margin-top: 22px; border-top: 1px solid var(--grid); padding-top: 16px; }
.curve__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 4px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend--col { flex-direction: column; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .ref { stroke: var(--axis); stroke-width: 1; }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .xhair { stroke: var(--axis); stroke-width: 1; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .endlabel { fill: var(--ink-2); font-size: 12px; font-weight: 600; }
.empty { color: var(--muted); font-size: 14px; padding: 24px 0; text-align: center; }

/* tile map */
.seg { display: inline-flex; border: 1px solid var(--grid); border-radius: 7px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); color: var(--ink-2); padding: 6px 11px; font: inherit;
  font-size: 13px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--grid); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.mapwrap { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 20px; }
@media (max-width: 760px) { .mapwrap { grid-template-columns: 1fr; } }
.tilemap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.uf { aspect-ratio: 1; border-radius: 7px; border: 0; padding: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: var(--nodata); color: var(--ink); cursor: pointer;
  font: inherit; line-height: 1.1; }
.uf b { font-size: 14px; } .uf small { font-size: 11px; font-variant-numeric: tabular-nums; }
.uf[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.uf--zz { font-size: 11px; }
.ufdetail { margin-top: 16px; }
.ufdetail > p.muted { font-size: 13px; }
.ufdetail h3 { margin-bottom: 8px; }

/* cards */
.tally { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 14px; font-size: 13px; color: var(--ink-2); }
.tally .pill { background: var(--surface-2); border-radius: 6px; padding: 4px 9px; }
.tally .pill b { color: var(--ink); }
.tally__parties { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; width: 100%; }
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { border: 1px solid var(--grid); border-radius: 8px; padding: 11px 12px; background: var(--surface); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card__uf { font-weight: 700; }
.card__pct { font-size: 12px; color: var(--muted); }
.card .row { display: grid; grid-template-columns: 1fr 52px; gap: 8px; align-items: center; font-size: 13.5px; margin: 5px 0; }
.card .row__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .row__name small { color: var(--muted); }
.card .row__bar { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 3px; margin-top: -2px; }
.card .row__bar i { display: block; height: 100%; border-radius: 0 3px 3px 0; background: var(--other); }
.card .row--win .row__bar i { background: var(--neutral-bar); }
.card .row--win .row__name { font-weight: 600; }
.card .row__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.card .chip { margin-top: 6px; }

/* table */
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--axis);
  padding: 7px 8px; cursor: pointer; white-space: nowrap; user-select: none; }
.tbl th.num { text-align: right; }
.tbl th[aria-sort]::after { content: " ↓"; color: var(--muted); }
.tbl th[aria-sort="ascending"]::after { content: " ↑"; }
.tbl td { padding: 6px 8px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
.tbl tbody tr:hover { background: var(--surface-2); }

/* events */
.events { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; }
.events li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--grid);
  font-size: 13.5px; }
.events time { color: var(--muted); font-variant-numeric: tabular-nums; }
.events .chip { margin-right: 6px; font-size: 11px; padding: 1px 7px; }

.foot { padding: 8px 24px 32px; font-size: 13px; color: var(--ink-2); max-width: 980px; }

.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--ink);
  border: 1px solid var(--grid); box-shadow: 0 6px 24px rgba(0,0,0,.14); border-radius: 8px; padding: 8px 10px;
  font-size: 12.5px; min-width: 160px; max-width: 280px; }
.tip b { display: block; margin-bottom: 4px; }
.tip .r { display: flex; justify-content: space-between; gap: 12px; }
.tip .r span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.tip .r span:last-child { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .top { padding: 10px 16px; } main { padding: 12px 16px; } .banner { margin: 12px 16px 0; }
  .panel { padding: 14px; } .foot { padding: 8px 16px 28px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .hero__value { font-size: 44px; }
}
@media (forced-colors: active) { .bar__fill, .card .row__bar i, .sw { forced-color-adjust: none; } }

/* horizontal ranked bars (Senate 81, Câmara 513) — stacked segments split by a 2px surface gap */
.hbars { display: grid; gap: 4px; margin: 10px 0 4px; container-type: inline-size; }
.hrow { display: grid; grid-template-columns: 170px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13.5px;
  padding: 2px 4px; border-radius: 5px; }
.hrow:hover { background: var(--surface-2); }
.hrow__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.hrow__track { display: flex; gap: 2px; height: 14px; }
.hrow__track i { display: block; height: 100%; min-width: 2px; }
.hrow__track i:last-child { border-radius: 0 4px 4px 0; }
.hrow__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
@container (max-width: 420px) { .hrow { grid-template-columns: 96px 1fr 36px; gap: 6px; } }
.chamber { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.chamber > div { min-width: 0; }
@media (max-width: 900px) { .chamber { grid-template-columns: minmax(0, 1fr); } }
.pullers { margin: 0; padding-left: 22px; font-size: 13.5px; }
.sub-h { margin-top: 22px; }
.drillpick { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--grid); }
.pullers li { padding: 4px 0; border-bottom: 1px solid var(--grid); }
.pullers .muted { font-size: 12.5px; }
.sel { font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.sel select { font: inherit; padding: 4px 8px; border: 1px solid var(--grid); border-radius: 6px; background: var(--surface); color: var(--ink); }
.dual { display: grid; gap: 3px; min-width: 140px; }
.dual i { display: block; height: 6px; border-radius: 0 3px 3px 0; min-width: 2px; }
.card__meta { font-size: 12px; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }
.align { display: block; margin-top: 4px; color: var(--muted); }
.align::before { content: "○ "; }
.align--yes::before { content: "● "; color: var(--ink-2); }
.elected { columns: 2 220px; font-size: 13px; margin: 8px 0 0; padding-left: 18px; }
.elected li { break-inside: avoid; padding: 1px 0; }

/* ===================== Phone layout (≤640px) — desktop rules above stay untouched ===================== */
.card--m > summary { list-style: none; cursor: pointer; display: grid; gap: 4px; }
.card--m > summary::-webkit-details-marker { display: none; }
.mdetails > summary { cursor: pointer; font-weight: 600; margin-top: 12px; }

@media (max-width: 640px) {
  html { scroll-padding-top: 96px; }                  /* refined at runtime from the real header height */
  .top { gap: 2px 10px; padding: 8px 12px 0; }
  .owl { width: 26px; height: 26px; }
  .brand__name { font-size: 16px; }
  .brand__sub { display: none; }
  .fresh { flex: 1; justify-content: flex-end; font-size: 12px; min-width: 0; }
  .theme { width: 36px; height: 36px; }
  .tabs { order: 3; flex: 0 0 calc(100% + 24px); margin: 0 -12px; padding: 0 12px 4px; overflow-x: auto;
    flex-wrap: nowrap; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; padding: 9px 10px; }
  .banner { margin: 10px 12px 0; font-size: 14px; }
  main { padding: 10px 12px 4px; gap: 12px; }
  .panel { padding: 14px 12px; border-radius: 9px; }
  .panel__head { margin-bottom: 10px; }
  h2 { font-size: 17px; }
  .panel__head > .muted, #skew { font-size: 13px; }
  .foot { padding: 4px 12px 28px; }

  /* segmented filters: one line, scroll sideways if needed */
  .filters, .seg { max-width: 100%; }
  .seg { overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { white-space: nowrap; flex: 1 0 auto; }

  /* party tallies: one swipeable line instead of a 250px block */
  .tally { gap: 8px; }
  .tally > .pill { white-space: normal; line-height: 1.35; }
  .tally__parties { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; overflow-x: auto; width: 100%;
    padding-bottom: 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent); }
  .tally__parties::-webkit-scrollbar { display: none; }
  .tally__parties > * { flex: none; white-space: nowrap; }

  /* tap-to-expand cards (Governadores, Senado) */
  .cards { grid-template-columns: 1fr; gap: 8px; }
  .card--m { padding: 10px 12px; }
  .card--m .card__head { margin-bottom: 2px; }
  .card__lead { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; min-width: 0; }
  .card__lead .row__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card__lead .row__name small { color: var(--muted); }
  .card__lead b { font-variant-numeric: tabular-nums; }
  .card__sum { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
  .card__sum .chip { margin-top: 0; }
  .card__toggle::after { content: "detalhes ▾"; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
  .card--m[open] .card__toggle::after { content: "fechar ▴"; }
  html[lang="en"] .card__toggle::after { content: "details ▾"; }
  html[lang="en"] .card--m[open] .card__toggle::after { content: "close ▴"; }
  .card__body { margin-top: 8px; border-top: 1px solid var(--grid); padding-top: 6px; }

  /* small tables → stacked rows */
  .tbl--stack thead { display: none; }
  .tbl--stack, .tbl--stack tbody { display: block; }
  .tbl--stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 9px 0;
    border-bottom: 1px solid var(--grid); }
  .tbl--stack td { display: block; padding: 0; border: 0; white-space: normal; text-align: left; }
  .tbl--stack td.num { text-align: left; }
  .tbl--stack td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); }
  .tbl--stack td:first-child { font-weight: 600; }
  #repTable td:nth-child(1) { grid-column: 1 / 2; }
  #repTable td:nth-child(6) { grid-column: 2 / -1; grid-row: 1; text-align: right; }
  #repTable td.rep__bars { grid-column: 1 / -1; grid-row: 2; }
  #repTable .dual { min-width: 0; }
  #clauseTable td:nth-child(1) { grid-column: 1 / 3; }
  #clauseTable td:nth-child(5) { grid-column: 3 / -1; grid-row: 1; text-align: right; }
  .tbl--stack tbody tr:hover { background: none; }

  /* wide tables: keep the first column, show a shadow where more columns are */
  .tablewrap { background:
      linear-gradient(to right, var(--surface) 30%, transparent) left / 32px 100% no-repeat local,
      linear-gradient(to left, var(--surface) 30%, transparent) right / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .16), transparent) right / 12px 100% no-repeat scroll; }
  .tablewrap .tbl:not(.tbl--stack) th:first-child,
  .tablewrap .tbl:not(.tbl--stack) td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
  .tablewrap .tbl:not(.tbl--stack) th, .tablewrap .tbl:not(.tbl--stack) td { padding: 7px 7px; }

  .chart svg #hit { touch-action: pan-y; }
  .events { max-height: 70vh; }
  .events li { grid-template-columns: 44px 1fr; gap: 8px; }
  .elected { columns: 1; }
  .ufdetail { margin-top: 10px; }
  .chamber { gap: 18px; }
  .hrow { grid-template-columns: minmax(84px, 34%) minmax(0, 1fr) 34px; gap: 8px; }
  .tip { max-width: calc(100vw - 24px); }
}

/* touch: comfortable targets (≥40px) without changing mouse layouts */
@media (pointer: coarse) {
  .seg button { min-height: 40px; }
  .sel select { min-height: 40px; }
  .estimate summary, .mdetails > summary { padding: 9px 0; }
  .theme { min-width: 40px; min-height: 40px; }
}
@media (max-width: 640px) {
  .card--m { min-width: 0; }
  .card__sum { flex-wrap: wrap; row-gap: 4px; }
  .card__sum .chip { white-space: normal; }
  #clauseTable tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .tablewrap .tbl:not(.tbl--stack) th:first-child,
  .tablewrap .tbl:not(.tbl--stack) td:first-child { box-shadow: 1px 0 0 var(--grid); }
}
@media (max-width: 640px) {
  .card--m[open] > summary .card__lead { display: none; }      /* the body repeats them with bars */
  .tabs a[aria-current="true"] { color: var(--ink); background: var(--surface-2); font-weight: 600; }
}

/* header never wraps: the 8 section tabs scroll sideways when they don't fit (tablets, narrow windows) */
@media (min-width: 641px) {
  .tabs { flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; }
  .fresh { white-space: nowrap; }
}
.tabs.tabs--more { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
@media (min-width: 641px) and (max-width: 860px) { .brand__sub { display: none; } }

/* ===================== TV carousel (html.tv) — nothing below applies to the normal board ===================== */
.tv-stage[hidden] { display: none !important; }
html.tv:root {
  color-scheme: dark;
  --page: #0b0b0b; --surface: #161615; --surface-2: #232321;
  --ink: #ffffff; --ink-2: #cfcec5; --muted: #a3a198;
  --grid: #2c2c2a; --axis: #45453f; --ring: rgba(255,255,255,.10);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --other: #5c5b56; --nodata: #2a2a28; --neutral-bar: #3987e5;
  --seq1: #104281; --seq2: #184f95; --seq3: #1c5cab; --seq4: #256abf; --seq5: #3987e5; --seq6: #6da7ec;
  --accent: #3987e5; --sim: #4a3b00;
  font-size: 2.3vh;                                   /* 1rem ≈ 25px on a 1080-line screen */
}
html.tv body { overflow: hidden; background: var(--page); }
html.tv body > *:not(#tv):not(#tip):not(script) { display: none !important; }
html.tv.tv-nocursor, html.tv.tv-nocursor * { cursor: none !important; }
#tv { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 3.5vh 4vw 3vh;                             /* title-safe area: TVs overscan the edges */
  color: var(--ink); font-size: 1rem; line-height: 1.3; }
.tv-top { display: flex; align-items: center; padding-bottom: 1.6vh; border-bottom: 1px solid var(--grid); }
.tv-top > * + * { margin-left: 2vw; }
.tv-brand { display: flex; align-items: center; font-weight: 700; font-size: 1.15rem; }
.tv-brand .owl { width: 1.8rem; height: 1.8rem; margin-right: .5rem; fill: var(--s1); }
.tv-brand .owl .eye { fill: var(--page); } .tv-brand .owl .beak { fill: var(--s4); }
.tv-heading { flex: 1; font-size: 1.5rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-fresh, .tv-clock { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tv-clock { font-weight: 600; color: var(--ink); }
.tv-sim { margin-top: 1.2vh; padding: .5vh 1vw; background: var(--sim); font-weight: 700; border-radius: 6px; text-align: center; }
.tv-slide { min-height: 0; padding-top: 2.6vh; overflow: hidden; }
.tv-slide--in { animation: tv-fade .45s ease-out; }
@keyframes tv-fade { from { opacity: 0; transform: translateY(1.2vh); } to { opacity: 1; transform: none; } }
.tv-bottom { padding-top: 1.4vh; }
.tv-dots { display: flex; justify-content: center; margin-bottom: 1vh; }
.tv-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--axis); margin: 0 .3rem; }
.tv-dots i.on { background: var(--ink); }
.tv-prog { height: .25rem; background: var(--grid); border-radius: 2px; overflow: hidden; }
.tv-prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.tv--paused .tv-prog i { background: var(--warning); }
@keyframes tv-prog { from { width: 0; } to { width: 100%; } }
.tv-ticker { margin-top: 1.2vh; overflow: hidden; white-space: nowrap; color: var(--ink-2); font-size: .95rem; }
.tv-ticker span { display: inline-block; padding-left: 100%; }
@keyframes tv-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.tv-hint { position: fixed; right: 4vw; bottom: 10vh; padding: .6vh 1vw; border-radius: 6px; background: var(--surface-2);
  color: var(--ink-2); font-size: .85rem; opacity: 0; transition: opacity .3s; pointer-events: none; }
.tv-hint.on { opacity: 1; }
.tv-note { color: var(--ink-2); font-size: 1rem; margin: 1.6vh 0 0; }
.tv-legend { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 1.2vh; padding: 0; color: var(--ink-2); }
.tv-legend li, .tv-legend > span { display: inline-flex; align-items: center; margin-right: 2vw; }
#tv .sw { width: .8rem; height: .8rem; border-radius: 3px; margin-right: .45rem; display: inline-block; vertical-align: middle; }
#tv .chip { font-size: .85rem; padding: .25vh .7vw; }
#tv .chip::before { width: .55rem; height: .55rem; margin-right: .35rem; }
/* Presidente */
.tv-pres { display: grid; grid-template-columns: 30% minmax(0, 1fr); grid-gap: 4vw; gap: 4vw; height: 100%; }
.tv-hero__label { color: var(--ink-2); font-size: 1.05rem; }
.tv-hero__value { font-size: 5.2rem; font-weight: 700; line-height: 1.05; margin: .8vh 0 1.4vh; }
#tv .meter { height: .55rem; border-radius: 4px; }
.tv-hero__foot { color: var(--ink-2); margin-top: 1vh; }
.tv-hero__chip { margin-top: 2vh; }
.tv-kpis { margin-top: 3vh; display: grid; grid-gap: 1vh; gap: 1vh; color: var(--ink-2); }
.tv-kpis b { color: var(--ink); margin-left: .4rem; }
.tv-bars .bars { display: grid; grid-gap: 1.6vh; gap: 1.6vh; }
#tv .bar { grid-template-columns: 34% minmax(0, 1fr) 7.5rem; grid-gap: 1.4vw; gap: 1.4vw; font-size: 1.35rem; padding: 0; }
#tv .bar:hover { background: none; }
#tv .bar__party { font-size: .85rem; margin-left: .5rem; }
#tv .bar__who .sw { margin-right: .7rem; }
#tv .bar__track { height: 2.2rem; }
#tv .bar__fill { top: .35rem; height: 1.5rem; border-radius: 0 6px 6px 0; }
#tv .bar__ref span { top: -1.2rem; font-size: .75rem; }
#tv .bar__val { font-size: 1.45rem; }
#tv .bar__votes { font-size: .8rem; }
#tv .bars--first .bar:first-child .bar__track { margin-top: 0; }
/* curve */
.tv-curve svg { width: 100%; height: auto; max-height: 60vh; }
#tv .chart text { fill: var(--ink-2); }
#tv .chart .endlabel { fill: var(--ink); }
/* map */
.tv-map { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 5vw; gap: 5vw; align-items: center; height: 100%; }
.tv-tiles { display: grid; grid-template-columns: repeat(7, 8.2vh); grid-template-rows: repeat(8, 8.2vh); grid-gap: .6vh; gap: .6vh; }
.tv-uf { border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.tv-uf b { font-size: 1.05rem; } .tv-uf small { font-size: .8rem; font-variant-numeric: tabular-nums; }
.tv-maplegend { list-style: none; margin: 0; padding: 0; font-size: 1.25rem; }
.tv-maplegend li { padding: 1vh 0; }
.tv-maplegend b { margin-left: .4rem; }
.tv-maplegend .muted { font-size: .9rem; }
/* Composição */
.tv-rep { display: grid; grid-gap: 2.2vh; gap: 2.2vh; margin-top: 2vh; }
.tv-rep__row { display: grid; grid-template-columns: 16% minmax(0, 1fr) 16% 26%; grid-gap: 2vw; gap: 2vw; align-items: center; font-size: 1.2rem; }
.tv-rep__name { font-weight: 650; }
.tv-rep__bars i { display: block; height: .7rem; border-radius: 0 4px 4px 0; margin: .25rem 0; min-width: 2px; }
.tv-rep__num { color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* Governadores */
.tv-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-gap: 1.6vh 1.2vw; gap: 1.6vh 1.2vw; }
.tv-cell { background: var(--surface); border: 1px solid var(--grid); border-radius: 10px; padding: 1.4vh .8vw; min-width: 0; }
.tv-cell__head { display: flex; justify-content: space-between; color: var(--ink-2); }
.tv-cell__head b { color: var(--ink); font-size: 1.25rem; }
.tv-cell__lead, .tv-cell__sub { display: flex; justify-content: space-between; min-width: 0; }
.tv-cell__lead { margin-top: .8vh; font-size: 1rem; font-weight: 600; }
.tv-cell__sub { color: var(--ink-2); font-size: .85rem; margin: .3vh 0 .9vh; }
.tv-cell__lead span, .tv-cell__sub span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: .4rem; }
.tv-cell .chip { font-size: .72rem; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Senado / Câmara */
.tv-hbars { margin-top: 1vh; }
#tv .hrow { grid-template-columns: 22% minmax(0, 1fr) 4rem; grid-gap: 1.4vw; gap: 1.4vw; font-size: 1.15rem; padding: .35vh 0; }
#tv .hrow:hover { background: none; }
#tv .hrow__track { height: 1.3rem; }
#tv .hrow__track i + i { margin-left: 2px; }
/* pre-count */
.tv-countdown { text-align: center; padding-top: 8vh; }
.tv-countdown__label { font-size: 1.6rem; color: var(--ink-2); }
.tv-countdown__value { font-size: 6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2vh 0; }
.tv-countdown__when { font-size: 1.5rem; }
.tv-roster { list-style: none; margin: 1vh 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 2vh 3vw; gap: 2vh 3vw; font-size: 1.35rem; }
.tv-roster li { display: flex; align-items: baseline; border-bottom: 1px solid var(--grid); padding-bottom: 1vh; min-width: 0; }
.tv-roster b { color: var(--ink-2); min-width: 2.6rem; font-variant-numeric: tabular-nums; }
.tv-roster span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: .6rem; }
.tv-roster small { color: var(--muted); font-size: .8rem; white-space: nowrap; }
/* a grid track sizes to its widest unbreakable content (the ticker line) unless told not to */
#tv { grid-template-columns: minmax(0, 1fr); }
#tv > * { min-width: 0; }
.tv-ticker, .tv-top, .tv-slide { min-width: 0; max-width: 100%; }
/* TV readability pass */
.tv-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-gap: 1.8vh 1.4vw; gap: 1.8vh 1.4vw; }
.tv-cell { padding: 1.6vh 1vw; }
.tv-cell__head b { font-size: 1.4rem; }
.tv-cell__lead { font-size: 1.2rem; }
.tv-cell__sub { font-size: 1rem; }
.tv-cell .chip { font-size: .85rem; }
#tv .bar { grid-template-columns: 40% minmax(0, 1fr) 7.5rem; font-size: 1.45rem; }
.tv-bars .bars { grid-gap: 2.2vh; gap: 2.2vh; }
/* explicit rows: a hidden SIMULAÇÃO bar must not shift the slide/footer rows */
.tv-top { grid-row: 1; } .tv-sim { grid-row: 2; } .tv-slide { grid-row: 3; } .tv-bottom { grid-row: 4; }
.tv-roster { font-size: 1.75rem; grid-gap: 4vh 3vw; gap: 4vh 3vw; margin-top: 4vh; }

/* header "Modo TV" button (opens the carousel) */
.tvbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--grid);
  background: var(--surface); color: var(--ink); border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tvbtn:hover { background: var(--surface-2); }
.tvbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tvbtn svg .play { fill: var(--accent); stroke: none; }
@media (max-width: 860px) { .tvbtn span { display: none; } .tvbtn { padding: 0 8px; } }
@media (max-width: 640px) { .tvbtn { width: 36px; height: 36px; justify-content: center; padding: 0; } }
@media (pointer: coarse) { .tvbtn { min-width: 40px; min-height: 40px; justify-content: center; } }
/* TV: visible exit for mouse users (appears with the hint) */
.tv-exit { position: fixed; top: 3.5vh; right: 4vw; padding: .6vh 1vw; border-radius: 6px; border: 1px solid var(--axis);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; opacity: 0; transition: opacity .3s;
  pointer-events: none; z-index: 3; }
.tv-exit.on { opacity: 1; pointer-events: auto; }
.tv-exit { top: auto; right: auto; bottom: 10vh; left: 4vw; }
.tv-hero__value { font-size: 5.2rem; font-size: min(5.2rem, 6vw); }   /* min() is ignored by very old engines → 5.2rem */

/* TSE latency sparkline (header, right of the freshness text) */
.lat { display: inline-flex; align-items: center; width: 60px; height: 22px; padding: 2px 0; cursor: default; border-radius: 4px; }
.lat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lat svg { width: 60px; height: 18px; overflow: visible; }
.lat polyline { fill: none; stroke: var(--good); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lat circle { fill: var(--good); }
.lat .lat__warn { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.lat[data-s="warning"] polyline { stroke: var(--warning); } .lat[data-s="warning"] circle { fill: var(--warning); }
.lat[data-s="critical"] polyline { stroke: var(--critical); } .lat[data-s="critical"] circle { fill: var(--critical); }
.lat[hidden] { display: none; }

/* Câmara drill-down by state */
.ufchips { display: flex; flex-wrap: wrap; gap: 6px; }
.ufchip { border: 1px solid var(--grid); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 5px 8px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-width: 52px; text-align: left; }
.ufchip span { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.ufchip:hover { background: var(--surface-2); }
.ufchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ufchip[aria-pressed="true"] span { color: inherit; opacity: .85; }
.drill { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--grid); }
.drill__head { margin-bottom: 4px; }
.drill__meta { margin: 0 0 12px; }
.drill .chamber h3 { margin-bottom: 6px; }
.mv__rank { display: inline-block; min-width: 1.6em; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.mvtbl td:first-child { white-space: normal; }
.linkbtn { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13.5px; padding: 8px 0; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .lat { width: 40px; } .lat svg { width: 40px; }
  .ufchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .ufchips::-webkit-scrollbar { display: none; }
  .ufchip { flex: 0 0 auto; min-height: 40px; }
  .mvtbl td:nth-child(1) { grid-column: 1 / 3; }
  .mvtbl td:nth-child(5) { grid-column: 3 / -1; grid-row: 1; text-align: right; }
}
@media (max-width: 640px) {
  /* drill-down rows: name + status chip on line 1, numbers on line 2 */
  .tbl--stack.mvtbl tr { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .mvtbl td:nth-child(1) { grid-column: 1 / 4; grid-row: 1; }
  .mvtbl td:nth-child(5) { grid-column: 4; grid-row: 1; text-align: right; }
  .mvtbl td:nth-child(5)::before { display: none; }
  .mvtbl td:nth-child(2), .mvtbl td:nth-child(3), .mvtbl td:nth-child(4) { grid-row: 2; }
}

/* TV live-stream variant (?stream=1): QR + address share the footer row with dots/progress/ticker */
#tv.tv--stream { padding-bottom: 2.4vh; }
.tv--stream .tv-exit, .tv--stream .tv-hint { display: none !important; }
.tv--stream .tv-bottom { display: flex; align-items: flex-end; }
.tv-qr { flex: 0 0 auto; width: 12vh; height: 12vh; margin-right: 1.4vw; }
.tv-qr svg { display: block; width: 100%; height: 100%; border-radius: .5vh; }
.tv-bottom__main { flex: 1; min-width: 0; }
.tv-strip { display: flex; align-items: baseline; margin-bottom: 1vh; min-width: 0; }
.tv-strip b { font-size: 2.1rem; font-weight: 750; letter-spacing: .02em; color: var(--ink); white-space: nowrap; margin-right: 1.4vw; }
.tv-strip span { color: var(--ink-2); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tv--stream .tv-dots { justify-content: flex-start; }

/* language: EN/PT button + English-only notes and guide (web/i18n.js) */
html:not([lang="en"]) .en-only { display: none !important; }
.langbtn { font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; font-size: 14px; line-height: 1.5; }
.guide h3 { margin: 6px 0 6px; }
.guide ul { margin: 0 0 8px; padding-left: 18px; }
.guide li { margin-bottom: 6px; }
.guide p { margin: 0 0 8px; }
.guide__wide { grid-column: 1 / -1; }
.gloss { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.gloss dt { font-weight: 600; }
.gloss dd { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .gloss { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gloss dd { margin-bottom: 8px; }
}

/* Senado: projected 81 seats beside the party tally + caveat (a full-width bar chart ran 1,100px long) */
.senwrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: start; margin-bottom: 16px; }
.senside { padding-top: 30px; }
.senside .note { margin-top: 10px; }
@media (max-width: 900px) { .senwrap { grid-template-columns: minmax(0, 1fr); gap: 8px; } .senside { padding-top: 0; } }

/* phones: the EN/PT button squeezed the freshness text onto two lines ("há 6 / min").
   The TV button leaves the phone header (the footer "Modo TV" link still opens it) */
@media (max-width: 640px) {
  .top { column-gap: 8px; }
  .tvbtn { display: none; }
  .fresh { white-space: nowrap; }
}

/* ---- 2026-10-04 UX pass: header room, phone order, reading measure, gap figure, card details ---- */
/* 1. laptops (641–1699 px): the section tabs need ~700 px — the TV label, the latency sparkline
      (≤1439) and the subtitle (≤1339) give way, in that order; the freshness text is shortened in app.js */
@media (min-width: 641px) and (max-width: 1699px) { .tvbtn span { display: none; } .tvbtn { padding: 0 8px; } }
@media (min-width: 641px) and (max-width: 1439px) { .lat { display: none; } }
@media (min-width: 861px) and (max-width: 1339px) { .brand__sub { display: none; } }
/* 2. phones: who leads comes right after "% counted"; the four context tiles after the candidates */
@media (max-width: 760px) {
  .pres__kpis { display: contents; }
  .pres .hero { order: 1; } .pres__bars { order: 2; } .pres .tiles { order: 3; margin-top: 0; }
}
/* 4. reading measure: notes stop at ~88 characters instead of running 1,000+ px wide */
.note, .why ul { max-width: 88ch; }
/* 5. President: the 1st–2nd gap as a figure; method caveats as fine print */
.gapline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; color: var(--ink); font-size: 14px; }
.gapline b { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.gapline span { color: var(--ink-2); }
.fine { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
/* 6. desktop race cards: the "needs X%" / alignment lines behind a one-line toggle */
.card__more { margin-top: 6px; }
.card__more > summary { cursor: pointer; font-size: 12px; color: var(--ink-2); list-style: none; display: inline-flex; gap: 4px; padding: 2px 0; }
.card__more > summary::-webkit-details-marker { display: none; }
.card__more > summary::after { content: "▾"; }
.card__more[open] > summary::after { content: "▴"; }
.card__more .card__meta { margin-top: 4px; }
/* 3. events: key events by default */
.linkbtn { font: inherit; font-size: 13px; color: var(--accent); background: none; border: 0; padding: 2px 0 8px; cursor: pointer; text-align: left; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn[hidden] { display: none; }
@media (pointer: coarse) { .linkbtn { min-height: 40px; } .card__more > summary { min-height: 32px; align-items: center; } }
/* status chips wrap inside narrow race cards instead of running past the border */
.card .chip { max-width: 100%; white-space: normal; }
