/* booth2 — the two-election booth page (Dharapuram first, UAT, 9 Oct 2026).
   One page, two elections: a lamp mosaic (one dot per booth) that morphs between the by-election, April and "what changed",
   a paired-bar seat scoreboard, and a village list that opens a compare sheet. Mobile first (390 / 320 / 430), then a
   two-column desktop. Every selector starts with .tw so it cannot touch the rest of the page. Party colours: the site's own
   (bars) and lightened copies for the dark panel (lamps). Subject cue: the indelible-ink violet marks what changed. */
.tw {
  --T: #af6004; --D: #dc2626; --A: #0f766e; --N: #7c3aed; --O: #8b93a0;
  --lT: #f5a63c; --lD: #f2655e; --lA: #36c1b0; --lN: #a98ff5; --lO: #93a7b8; --lX: #eef1f4;
  --nv: #0d2c43; --nv2: #14405f; --nvl: rgba(255, 255, 255, .13); --nvt: #f3f8fb; --nvm: #a9c1d2;
  --iv: #4b2fb3;            /* indelible-ink violet: what changed, focus, the active sort */
  --ghost: rgba(255, 255, 255, .24);
  --cols: 12; --gap: 3px; --nf: 10.5px;
  --tw-ink: #1a1410; --tw-soft: #4a3e2f; --tw-line: #d9c39a;
  margin: 14px 0 6px; color: var(--tw-ink);
}
.tw *, .tw *::before, .tw *::after { box-sizing: border-box; }
.tw button { font: inherit; color: inherit; }
.tw :focus-visible { outline: 3px solid var(--iv); outline-offset: 2px; }
.tw-panel :focus-visible { outline-color: #fff; }
.tw .num { font-variant-numeric: tabular-nums; }
/* the seat card (section.hx) stays first, as on every booth page; the explorer sits right under it */
.bw-wrap > .tw { order: 2; }
.bw-wrap > .hx { order: 1; margin-top: 6px; }

/* ---- the sample ribbon: only while the by-election booth numbers are invented ---- */
.tw-sample { margin: 0 0 12px; padding: 10px 14px 10px 44px; position: relative; background: #fff1bf; border: 1.5px dashed #a15c07; border-radius: 14px;
  font-size: 13.5px; line-height: 1.45; color: #4a2e05; }
.tw-sample::before { content: "!"; position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: #a15c07; color: #fff; font-weight: 800;
  font-size: 14px; display: grid; place-items: center; }
.tw-sample b { font-weight: 800; }

/* ---- the dark panel ---- */
.tw-panel { background: var(--nv); color: var(--nvt); border-radius: 22px; padding: 16px 16px 14px; border: 1px solid #0a2132; }
.tw-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--nvm); display: flex; align-items: center; gap: 8px; }
.tw-eyebrow .mk { width: 5px; height: 15px; border-radius: 3px; background: #9d85ff; flex: none; }
.tw-seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, .09); border-radius: 14px; padding: 3px; }
.tw-seg button { position: relative; z-index: 1; background: none; border: 0; border-radius: 11px; padding: 7px 4px 6px; min-height: 48px; cursor: pointer; text-align: center;
  display: grid; align-content: center; justify-items: center; line-height: 1.15; color: var(--nvm); transition: color .25s; }
.tw-seg button b { font-size: 13.5px; font-weight: 800; letter-spacing: -.005em; }
.tw-seg button small { font-size: 11px; font-weight: 600; opacity: .85; margin-top: 2px; }
.tw-seg button[aria-selected="true"] { color: var(--nv); }
.tw-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 11px; background: #fff;
  transform: translateX(calc(var(--k, 0) * 100%)); transition: transform .38s cubic-bezier(.3, .8, .2, 1); }
.tw[data-mode="oct"] { --k: 0; } .tw[data-mode="apr"] { --k: 1; } .tw[data-mode="chg"] { --k: 2; }

.tw-sum { display: none; }
.tw[data-mode="oct"] .tw-sum[data-m="oct"], .tw[data-mode="apr"] .tw-sum[data-m="apr"], .tw[data-mode="chg"] .tw-sum[data-m="chg"] { display: block; }
.tw-big { margin: 16px 0 3px; font-size: 25px; line-height: 1.12; font-weight: 800; letter-spacing: -.012em; text-wrap: balance; }
.tw-big .n { font-variant-numeric: tabular-nums; }
.tw-big .nb { white-space: nowrap; }
.tw-sub { margin: 0 0 14px; font-size: 13.5px; color: var(--nvm); line-height: 1.4; }

/* ---- the mosaic: one lamp per booth, in booth-number order ---- */
.tw-mo { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); margin: 0 0 8px; outline-offset: 4px; border-radius: 10px; }
.tw-mo i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--ghost); cursor: pointer;
  font-style: normal; font-size: var(--nf); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #0a2133; overflow: hidden;
  transition: background-color .5s, box-shadow .5s, opacity .25s, transform .2s, color .4s; transition-delay: calc(var(--i, 0) * 1.3ms), calc(var(--i, 0) * 1.3ms), 0s, 0s; }
.tw-mo i.oT { --o: var(--lT); } .tw-mo i.oD { --o: var(--lD); } .tw-mo i.oA { --o: var(--lA); } .tw-mo i.oN { --o: var(--lN); } .tw-mo i.oO { --o: var(--lO); } .tw-mo i.oX { --o: var(--lX); }
.tw-mo i.aT { --a: var(--lT); } .tw-mo i.aD { --a: var(--lD); } .tw-mo i.aA { --a: var(--lA); } .tw-mo i.aN { --a: var(--lN); } .tw-mo i.aO { --a: var(--lO); } .tw-mo i.aX { --a: var(--lX); }
.tw[data-mode="oct"] .tw-mo i { background: var(--o); box-shadow: 0 0 6px -3px var(--o); }
.tw[data-mode="apr"] .tw-mo i { background: var(--a); box-shadow: 0 0 6px -3px var(--a); }
.tw[data-mode="chg"] .tw-mo i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ghost); }
.tw[data-mode="chg"] .tw-mo i.f { background: var(--o); box-shadow: 0 0 0 1.5px var(--nv), 0 0 0 3px rgba(255,255,255,.9); }
.tw-mo.has-sel i { opacity: .22; } .tw-mo.has-sel i.sel { opacity: 1; transform: scale(1.18); }
.tw-mo i.cur { outline: 2px solid #fff; outline-offset: 1px; }
.tw-hint { margin: 0 0 12px; font-size: 12.5px; color: var(--nvm); line-height: 1.4; }

/* ---- under the mosaic: who led how many booths ---- */
.tw-lr { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tw-lr li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 9px 2px; border-top: 1px solid var(--nvl); font-size: 14px; }
.tw-lr li:first-child { border-top: 0; }
.tw-lr .dt { width: 12px; height: 12px; border-radius: 50%; }
.tw-lr .pn { font-weight: 700; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.tw-lr .bn { font-size: 18px; font-weight: 800; text-align: right; }
.tw-lr .bn small { font-size: 12px; font-weight: 600; color: var(--nvm); margin-left: 4px; }
.tw-lr .dl { font-size: 12.5px; font-weight: 600; color: var(--nvm); }
.tw-lr .dl.up::before { content: "▲ "; font-size: .8em; } .tw-lr .dl.dn::before { content: "▼ "; font-size: .8em; }
.tw-lr .bar { grid-column: 2 / 4; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 6px; }
.tw-lr .bar b { display: block; height: 100%; border-radius: 3px; }
.tw-lr li.tr { cursor: pointer; border-radius: 10px; }
.tw-lr li.tr button { all: unset; display: contents; cursor: pointer; }
.tw-lr li.tr[aria-pressed="true"] { background: rgba(255, 255, 255, .1); }
.tw-lr .fl { display: inline-flex; align-items: center; gap: 6px; }
.tw-lr .fl .ar { opacity: .7; }
.tw-lr .same { color: var(--nvm); }
.dT { background: var(--lT); } .dD { background: var(--lD); } .dA { background: var(--lA); } .dN { background: var(--lN); } .dO { background: var(--lO); } .dX { background: var(--lX); }

/* ---- the whole seat, two elections side by side ---- */
.tw-card { background: #fff; border: 1.5px solid var(--tw-ink); border-radius: 18px; padding: 13px 14px 8px; margin: 12px 0 0; }
.tw-h { margin: 0 0 2px; font-size: 18px; line-height: 1.2; font-weight: 800; letter-spacing: -.005em; }
.tw-note { margin: 0 0 8px; font-size: 12.5px; color: var(--tw-soft); line-height: 1.4; }
.tw-win { display: grid; gap: 5px; margin: 0 0 8px; }
.tw-w { margin: 0; border-radius: 10px; padding: 6px 10px; background: #f3efe6; font-size: 12.5px; line-height: 1.35; border-left: 5px solid var(--c, #8b93a0); }
.tw-w small { display: block; font-size: 12px; font-weight: 600; color: var(--tw-soft); }
.tw-w b { font-weight: 800; }
.tw-w.same-person { background: #ece6ff; border-left-color: var(--iv); }
.tw-key { display: flex; gap: 14px; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--tw-soft); }
.tw-key span { display: inline-flex; align-items: center; gap: 6px; }
.tw-key i { width: 22px; height: 7px; border-radius: 4px; background: var(--tw-ink); }
.tw-key i.a { background: repeating-linear-gradient(135deg, #8a7d6a 0 3px, #cfc4b0 3px 6px); }
.pr { display: grid; grid-template-columns: minmax(0, 7.2em) minmax(0, 1fr) 3.1em auto; grid-template-areas: "pn bo po sw" "pn ba pa sw"; column-gap: 8px; row-gap: 2px;
  align-items: center; padding: 5px 0; border-top: 1px solid #efe3cc; font-size: 13px; }
.pr:first-of-type { border-top: 0; }
.pnm { grid-area: pn; display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; min-width: 0; }
.pnm .dt { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
.pr .bar { height: 7px; border-radius: 4px; background: #efe8d8; overflow: hidden; }
.pr .bar b { display: block; height: 100%; border-radius: 4px; background: var(--c); }
.pr .bar.o { grid-area: bo; } .pr .bar.a { grid-area: ba; height: 6px; }
.pr .bar.a b { background: repeating-linear-gradient(135deg, var(--c) 0 3px, color-mix(in srgb, var(--c) 45%, #fff) 3px 6px); opacity: .85; }
.pr .pc { text-align: right; font-weight: 800; line-height: 1; } .pr .pc.o { grid-area: po; } .pr .pc.a { grid-area: pa; font-weight: 600; color: var(--tw-soft); font-size: 12.5px; }
.pr .sw { grid-area: sw; font-size: 12.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #eee9dd; white-space: nowrap; }
.pr .sw.up::before { content: "▲ "; font-size: .8em; } .pr .sw.dn::before { content: "▼ "; font-size: .8em; }
.tw-sT { --c: var(--T); } .tw-sD { --c: var(--D); } .tw-sA { --c: var(--A); } .tw-sN { --c: var(--N); } .tw-sO { --c: var(--O); } .tw-sX { --c: #7c8794; }

/* ---- find your village ---- */
.tw-find { background: #fff; border: 1.5px solid var(--tw-ink); border-radius: 18px; padding: 13px 14px 12px; margin: 12px 0 0; display: flex; flex-direction: column; min-height: 0; }
.tw-search { position: relative; margin: 10px 0 10px; }
.tw-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--tw-soft); pointer-events: none; }
.tw-search input { width: 100%; height: 50px; border: 1.5px solid var(--tw-ink); border-radius: 14px; padding: 0 14px 0 42px; font: inherit; font-size: 16px; background: #fffaf0; color: inherit; }
.tw-search input::placeholder { color: #7a6a55; }
.tw-sort { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.tw-sort button { min-height: 36px; padding: 0 12px; border: 1.5px solid #cdbb98; border-radius: 999px; background: #fffaf0; font-size: 13px; font-weight: 700; cursor: pointer; }
.tw-sort button[aria-pressed="true"] { background: var(--iv); border-color: var(--iv); color: #fff; }
.tw-vlegend { margin: 2px 0 6px; font-size: 12.5px; color: var(--tw-soft); display: flex; gap: 14px; flex-wrap: wrap; }
.tw-vlegend i { display: inline-block; width: 22px; height: 6px; border-radius: 3px; background: var(--tw-ink); vertical-align: middle; margin-right: 6px; }
.tw-vlegend i.a { background: repeating-linear-gradient(135deg, #8a7d6a 0 3px, #cfc4b0 3px 6px); }
.tw-bhit { display: none; margin: 0 0 8px; }
.tw-bhit.on { display: block; }
.tw-bhit button { width: 100%; text-align: left; border: 1.5px solid var(--iv); background: #f1edff; border-radius: 12px; padding: 10px 12px; font-weight: 700; cursor: pointer; }
.tw-vl { list-style: none; margin: 0; padding: 0; border-top: 1px solid #efe3cc; }
.tw-vl[data-collapsed] > li:nth-child(n+7) { display: none; }
.tw-vl > li.off { display: none; }
.tw-vl > li { border-bottom: 1px solid #efe3cc; }
.tw-vb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; padding: 13px 4px 12px; background: none; border: 0; text-align: left; cursor: pointer; text-decoration: none; color: inherit; }
.tw-vb:hover { background: #fffaf0; text-decoration: none; color: inherit; }
.tw-vb .vn { flex: 1 0 100%; font-size: 17px; font-weight: 800; line-height: 1.25; overflow-wrap: break-word; }
.tw-vb .vm { order: 2; font-size: 13px; color: var(--tw-soft); }
.tw-vb .vc { order: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #eef1f3; white-space: nowrap; }
.tw-vb .vc.chg { background: #ece6ff; color: #2f1b84; }
.tw-vb .vc .mk { width: 4px; height: 13px; border-radius: 2px; background: var(--iv); }
.tw-vb .vc .dt { width: 9px; height: 9px; border-radius: 50%; }
.tw-vb .vc .ar { opacity: .6; }
.tw-vb .dT, .cmp .dT, .bb .dT { background: var(--T); } .tw-vb .dD { background: var(--D); } .tw-vb .dA { background: var(--A); } .tw-vb .dN { background: var(--N); } .tw-vb .dO { background: var(--O); } .tw-vb .dX, .cmp .dX, .bb .dX, .lc .dX { background: #7c8794; }
.vbars { order: 3; flex: 1 0 100%; display: grid; gap: 3px; margin-top: 4px; }
.vbars .vb { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: #efe8d8; }
.vbars .vb i { display: block; height: 100%; }
.vbars .vb.a { height: 6px; }
.vbars .vb.a i { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.0) 0 3px, rgba(255,255,255,.45) 3px 6px); opacity: .8; }
.vbars i.bT { background-color: var(--T); } .vbars i.bD { background-color: var(--D); } .vbars i.bA { background-color: var(--A); } .vbars i.bN { background-color: var(--N); } .vbars i.bO { background-color: var(--O); }
.tw-more[hidden] { display: none !important; }
.tw-more { display: block; width: 100%; margin: 10px 0 0; min-height: 48px; border: 1.5px solid var(--tw-ink); border-radius: 14px; background: #fffaf0; font-weight: 800; font-size: 15px; cursor: pointer; }
.tw-none { display: none; margin: 10px 0 0; font-size: 14px; color: var(--tw-soft); }
.tw-dym { display: none; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 4px; }
.tw-dym.on { display: flex; }
.tw-dym > b { flex: 1 1 100%; font-size: 14px; font-weight: 700; color: var(--tw-soft); }
.tw-dym button { min-height: 44px; padding: 6px 16px; border: 1.5px solid #cdbb98; border-radius: 999px; background: #fffaf0; color: inherit; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.tw-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.tw-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--tw-ink); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; color: var(--tw-ink); text-decoration: none; }
.tw-links a:hover { background: #fffaf0; text-decoration: none; }

/* ---- the compare sheet (a bottom sheet on phones, a right-hand drawer on desktop) ---- */
dialog.tw-sheet { color: var(--tw-ink); border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 90dvh; background: #fff; border-radius: 22px 22px 0 0; overflow: hidden;
  box-shadow: 0 -10px 40px rgba(7, 22, 33, .35); font-size: 15px; }
dialog.tw-sheet::backdrop { background: rgba(7, 22, 33, .58); }
dialog.tw-sheet[open] { display: flex; flex-direction: column; animation: tw-up .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes tw-up { from { transform: translateY(36px); opacity: 0; } }
@keyframes tw-in { from { transform: translateX(40px); opacity: 0; } }
html.tw-lock { overflow: hidden; }
.tws-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; border-bottom: 1.5px solid #efe3cc; background: #fff; flex: none; }
.tws-head h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.tws-head p { margin: 3px 0 0; font-size: 13px; color: var(--tw-soft); }
.tws-x { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--tw-ink); background: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.tws-body { overflow: auto; padding: 14px 16px 28px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.tws-sample { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: #fff1bf; border: 1.5px dashed #a15c07; font-size: 12px; font-weight: 800; color: #4a2e05; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 6px; }
.cmp th { font-size: 12px; font-weight: 700; color: var(--tw-soft); text-align: right; padding: 0 0 6px; }
.cmp th:first-child { text-align: left; }
.cmp td { padding: 7px 0; border-top: 1px solid #efe3cc; text-align: right; vertical-align: middle; }
.cmp td:first-child { text-align: left; font-weight: 800; }
.cmp td:first-child .dt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; background: var(--c); }
.cmp td b { display: block; font-weight: 800; }
.cmp td small { display: block; font-size: 12px; color: var(--tw-soft); }
.cmp td.lead { background: color-mix(in srgb, var(--c) 13%, #fff); }
.cmp td.sw { font-weight: 800; white-space: nowrap; }
.cmp td.sw.up::before { content: "▲"; font-size: .75em; margin-right: 2px; } .cmp td.sw.dn::before { content: "▼"; font-size: .75em; margin-right: 2px; }
.cmp tr.tot td { font-size: 12.5px; color: var(--tw-soft); }
.tws-h4 { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 6px; font-size: 16px; font-weight: 800; }
.tws-h4 small { font-size: 12.5px; font-weight: 600; color: var(--tw-soft); }
.bl2 { list-style: none; margin: 0; padding: 0; }
.bl2 > li { border-top: 1px solid #efe3cc; }
.bl2 > li.flash { animation: tw-flash 1.6s ease-out; }
@keyframes tw-flash { from { background: #ece6ff; } }
.bb { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; width: 100%; padding: 11px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.bb .no { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bb .ad { font-size: 13px; color: var(--tw-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb .lv { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; font-weight: 700; margin-top: 2px; }
.bb .lv span { display: inline-flex; align-items: center; gap: 5px; }
.bb .lv small { font-weight: 600; color: var(--tw-soft); }
.bb .lv .dt { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.bb .fp { grid-column: 3; grid-row: 1 / span 2; justify-self: end; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #ece6ff; color: #2f1b84; display: inline-flex; gap: 5px; align-items: center; }
.bb .fp .mk { width: 4px; height: 12px; border-radius: 2px; background: var(--iv); }
.bb::after { content: ""; grid-column: 3; grid-row: 1 / span 2; }
.bd { padding: 2px 0 14px 0; }
@media (min-width: 700px) { .bd { padding-left: 56px; } }
.bd[hidden] { display: none; }
.bd-act { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.bd-act button, .bd-act a { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--tw-ink); background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; color: var(--tw-ink); }
.bd-act .wa { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.tws-err { padding: 24px 4px; font-size: 15px; }
@media (max-width: 359px) { .tw { --cols: 10; --nf: 10px; } }
@media (min-width: 460px) { .tw { --cols: 16; --nf: 10.5px; } }
@media (min-width: 700px) {
  .tw { --cols: 20; --gap: 4px; --nf: 11px; }
  .tw-panel { padding: 20px 22px 16px; } .tw-big { font-size: 30px; }
  .tw-card { padding: 14px 18px 8px; } .tw-find { padding: 14px 18px 14px; }
}
@media (min-width: 1000px) {
  /* two columns of the SAME height, both inside the first screen: the dark panel sets the height, the right column fills it
     (the scoreboard as short rows, the village list scrolls inside its own card) */
  .tw { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px; align-items: stretch; }
  .tw-sample, .tw-links { grid-column: 1 / -1; }
  .tw-panel { min-height: 660px; }
  .tw-pin { position: sticky; top: 76px; }
  .tw-side { display: flex; flex-direction: column; gap: 16px; min-height: 0; contain: size; }
  .tw-side > .tw-card { flex: none; margin: 0; }
  .tw-side > .tw-find { flex: 1 1 0; margin: 0; }
  .tw-vl { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .tw-vl[data-collapsed] > li:nth-child(n+7) { display: list-item; }
  .tw-more { display: none !important; }
  .tw-vb { padding: 9px 4px 8px; gap: 3px 10px; flex-wrap: wrap; }
  .tw-vb .vn { flex: 1 1 0; min-width: 0; font-size: 16px; }
  .tw-vb .vm { display: none; }
  .tw-search { margin: 8px 0; } .tw-search input { height: 44px; }
  .tw-sort { margin: 0 0 6px; } .tw-vlegend { margin: 0 0 4px; }
  .tw { --cols: 20; --gap: 4px; --nf: 11px; }
}
@media (min-width: 900px) {
  dialog.tw-sheet { margin: 0 0 0 auto; width: min(580px, 94vw); max-height: 100dvh; height: 100dvh; border-radius: 0; box-shadow: -14px 0 50px rgba(7, 22, 33, .3); }
  dialog.tw-sheet[open] { animation-name: tw-in; }
}
@media (max-width: 359px) { .tw-seg button b { font-size: 12.5px; } .tw-big { font-size: 22px; } .tw-vb .vc { padding: 4px 8px; } }
@media (prefers-reduced-motion: reduce) {
  .tw-mo i, .tw-thumb { transition: none !important; }
  dialog.tw-sheet[open] { animation: none; } .bl2 > li.flash { animation: none; }
}

.bw-head h1 { text-wrap: balance; }

/* ---- the seat card (section.hx): April 2026 and the by-election side by side, short ---- */
.hx-wins { display: flex; flex-wrap: wrap; gap: 5px 6px; }
.hx-wins .hx-win { margin: 0; border-radius: 14px; line-height: 1.35; padding: 2px 10px; }
@media (max-width: 480px) { .hx-wins .hx-win { font-size: 12.5px; padding: 2px 9px; } }
.vs2 .vs-p { font-size: 13px; }
.vs2-h, .vs2-row { display: grid; grid-template-columns: minmax(0, 6.8em) minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; align-items: center; }
.vs2-hc { min-width: 0; } .vs2-hc small { overflow-wrap: anywhere; }
.vs2-h { margin: 0 0 5px; align-items: end; }
.vs2-hc { display: grid; line-height: 1.25; font-size: 13px; }
.vs2-hc b { font-weight: 800; color: var(--ink-strong, #1a1410); }
.vs2-hc small { font-size: 11.5px; font-weight: 600; color: var(--muted, #6b5b45); }
.vs2-hc.o b { color: #4b2fb3; }
.vs2-h.ta .vs2-hc b { font-family: var(--tamil); }
.vs2-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vs2-row { font-size: 13px; }
.vs2-c { display: grid; grid-template-columns: minmax(0, 1fr) 3.1em; align-items: center; column-gap: 6px; }
.vs2-c .vs-bar { height: 8px; }
.vs2-c.o .vs-bar { background-image: none; }
.vs2-p { font-weight: 800; text-align: right; font-feature-settings: "tnum"; color: var(--ink-strong, #1a1410); }
.vs2-v { display: none; }
.vs2 .vs-n { margin-top: 6px; }
@media (min-width: 700px) {
  .vs2-h, .vs2-row { grid-template-columns: minmax(0, 8em) minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .vs2-c { grid-template-columns: minmax(0, 1fr) 3.2em 4.6em; }
  .vs2-v { display: block; text-align: right; color: var(--muted, #6b5b45); font-size: 12.5px; font-feature-settings: "tnum"; }
  .vs2-row { font-size: 14px; }
}
@media (max-width: 380px) {
  .vs2-h, .vs2-row { grid-template-columns: minmax(0, 6.1em) minmax(0, 1fr) minmax(0, 1fr); column-gap: 6px; }
  .vs2 .vs-p { font-size: 12.5px; } .vs2-hc b { font-size: 12px; } .vs2-hc small { font-size: 11px; }
  .vs2-c { grid-template-columns: minmax(0, 1fr) 2.9em; column-gap: 4px; } .vs2-row { font-size: 12.5px; }
}

/* ---- first screen: the seat card, then the explorer (the SEO sentence and the rest follow); the card is kept short ---- */
.bw-wrap[data-booth2] { display: flex; flex-direction: column; }
.bw-wrap[data-booth2] > * { order: 3; }
.bw-wrap[data-booth2] > .bw-crumbs, .bw-wrap[data-booth2] > .bw-head { order: 0; }
.bw-wrap[data-booth2] > .hx { order: 1; margin: 6px 0 12px; }
.bw-wrap[data-booth2] > .tw { order: 2; margin-top: 0; }
.bw-wrap[data-booth2] .hx { padding: 10px 10px 8px; }
.bw-wrap[data-booth2] .hx-top { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
.bw-wrap[data-booth2] .hx-map, .bw-wrap[data-booth2] .hx-map svg.shape { width: 84px; height: 84px; }
.bw-wrap[data-booth2] .hx-map svg.loc { width: 24px; height: 27px; }
.bw-wrap[data-booth2] .hx-t { font-size: 19px; margin: 1px 0 4px; }
.bw-wrap[data-booth2] .hx-tiles { margin-top: 8px; gap: 5px; }
.bw-wrap[data-booth2] .hx-tile { padding: 5px 3px 4px; }
.bw-wrap[data-booth2] .hx-tile svg { display: none; }
.bw-wrap[data-booth2] .hx-b { font-size: 16px; }
.bw-wrap[data-booth2] .hx-s { font-size: 11.5px; }
.bw-wrap[data-booth2] .hx .vs { margin: 8px 0 0; padding: 7px 8px 6px; }
.bw-wrap[data-booth2] .hx .vs2-list { gap: 3px; }
.bw-wrap[data-booth2] .hx .vs2 .vs-n { display: none; }
@media (min-width: 900px) {
  .bw-wrap[data-booth2] .hx { grid-template-columns: minmax(300px, 34%) minmax(0, 1fr); gap: 8px 22px; align-items: start; padding: 12px 16px; }
  .bw-wrap[data-booth2] .hx-tiles { grid-column: 1; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; margin: 0; }
  .bw-wrap[data-booth2] .hx .vs { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 8px 12px 6px; align-self: stretch; }
  .bw-wrap[data-booth2] .hx .vs2 .vs-n { display: block; margin-top: 4px; }
  .bw-wrap[data-booth2] .hx-b { font-size: 17px; } .bw-wrap[data-booth2] .hx-s { font-size: 12px; }
}
.bw-wrap[data-booth2] .bw-head { margin-bottom: 4px; }
.bw-wrap[data-booth2] .bw-head h1 { font-size: clamp(22px, 5.6vw, 27px); line-height: 1.2; margin: 0; }
@media (min-width: 900px) { .bw-wrap[data-booth2] .bw-head h1 { font-size: 28px; } }
.tw-sample { margin-bottom: 10px; padding-top: 7px; padding-bottom: 7px; }
.tw-card > .tw-note { display: none; }

/* ---- the "more" folds: by-election first, April below ---- */
.b2o { margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1.5px dashed #d9c39a; }
.b2o-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 10px; font-size: 15px; line-height: 1.3; font-weight: 800; color: #1a1410; }
.b2o-h .mk { width: 5px; height: 15px; border-radius: 3px; background: #4b2fb3; flex: none; } .b2o-h .mk.a { background: #8a7d6a; }
.b2o-a { margin: 0 0 4px; }
.b2o-s { font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: #fff1bf; border: 1.5px dashed #a15c07; color: #4a2e05; }
.b2o a { color: inherit; text-decoration: none; } .b2o a:hover strong { text-decoration: underline; }
.b2o-chg { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #ece6ff; color: #2f1b84; white-space: nowrap; }
.b2o-same { font-size: 12px; color: #6b5b45; }
.b2o .tp-table { width: 100%; }
.b2o .tp-table th, .b2o .tp-table td { padding: 7px 6px; font-size: 13px; }
@media (max-width: 560px) {
  .b2o .tp-table th:nth-child(2), .b2o .tp-table td:nth-child(2), .b2o .tp-table th:nth-child(3), .b2o .tp-table td:nth-child(3) { display: none; }
  .b2o .tp-table th, .b2o .tp-table td { padding: 7px 4px; font-size: 12.5px; }
  .b2o-chg { font-size: 11.5px; padding: 2px 6px; white-space: normal; }
}
.bw-wrap[data-booth2] .pnm { font-size: 13.5px; }

/* the booth number sits inside each lamp: dark ink on the lit colour; in "what changed" the unchanged lamps keep a quiet number */
.tw-mo i::after { content: attr(data-n); }
.tw[data-mode="chg"] .tw-mo i { color: rgba(255, 255, 255, .5); }
.tw[data-mode="chg"] .tw-mo i.f { color: #0a2133; }

#booth2-april .fold-body > .tool { border: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; }
