/* booth2 design-review variants (10 Oct 2026). Review pages only: elections/uat/review/booths/. A = one list, two lanes; B = one switch for the page; C = full screen. */

/* ---- shared: tabs, lane labels, in-place village ---- */
.tw-tabs { display: flex; gap: 6px; margin: 8px 0 2px; }
.tw-tabs button { flex: 1; min-height: 44px; border: 1.5px solid #cdbb98; border-radius: 12px; background: #fffaf0; font-weight: 800; font-size: 14px; cursor: pointer; color: #1a1410; }
.tw-tabs button small { font-weight: 700; color: #6b5b45; margin-left: 4px; }
.tw-tabs button[aria-selected="true"] { background: #0d2c43; border-color: #0d2c43; color: #fff; }
.tw-tabs button[aria-selected="true"] small { color: #a9c1d2; }
.vbars { grid-template-columns: 5.4em minmax(0, 1fr); align-items: center; column-gap: 8px; }
.vbars .vl { font-size: 11px; font-weight: 800; letter-spacing: .01em; color: #4a3e2f; white-space: nowrap; }
.vbars .vl.o { color: #4b2fb3; }
.vbars .vl.o::before { content: ""; display: inline-block; width: 4px; height: 10px; border-radius: 2px; background: #4b2fb3; margin-right: 5px; vertical-align: -1px; }
.tw-vl > li.open { background: #fffaf0; border-radius: 12px; box-shadow: inset 0 0 0 1.5px #4b2fb3; margin: 4px 0; }
.tw-vl > li .tw-in { display: none; padding: 2px 12px 14px; }
.tw-vl > li.open .tw-in { display: block; }
.tw-vb[aria-expanded="true"] .vn::after { content: " ▴"; color: #4b2fb3; font-size: .8em; }
.tw-vb[aria-expanded="false"] .vn::after { content: " ▾"; color: #8a7d6a; font-size: .8em; }
.tw-in .tws-h4 { margin-top: 14px; }
.tw-bl { list-style: none; margin: 0; padding: 0; border-top: 1px solid #efe3cc; }
.tw-bl[hidden], .tw-vl[hidden] { display: none; }
.tw-bl .bv { font-weight: 800; color: #1a1410; margin-right: 4px; }
.tw-bl .bb .ad { white-space: normal; }
@media (min-width: 1000px) { .tw-bl { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; } }
.tw-find .tw-bhit { margin-top: 6px; }

/* ---- B: a sticky switch for the whole page ---- */
.tw-bar { position: sticky; top: 58px; z-index: 30; order: 2; margin: 0 -2px 10px; padding: 8px 2px; background: linear-gradient(#f5e8d0 70%, rgba(245, 232, 208, 0)); }
.tw-bar-in { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #1a1410; border-radius: 16px; padding: 6px 8px 6px 14px; box-shadow: 0 6px 18px -8px rgba(26, 20, 16, .35); }
.tw-bar-l { font-size: 12.5px; font-weight: 800; color: #4a3e2f; white-space: nowrap; }
.tw-bar-s { flex: 1; min-width: 0; }
.tw-bar .tw-seg { background: #efe6d3; }
.tw-bar .tw-seg button { color: #4a3e2f; min-height: 44px; }
.tw-bar .tw-seg button[aria-selected="true"] { color: #fff; }
.tw-bar .tw-thumb { background: #0d2c43; transform: translateX(calc(var(--k, 0) * 100%)); }
.bw-wrap[data-booth2] > .tw-bar { order: 2; }
.bw-wrap[data-booth2] > .tw { order: 3; }
/* page order (owner, 11 Oct 2026): hero, map + search, then "more about this seat" and the quick answers, the booth text fold, and last the
   next-links, source note, related links and intro text. .more keeps its DOM place (right after the search); the intro texts go to the end. */
.bw-wrap[data-booth2] > .seo-int-ptr, .bw-wrap[data-booth2] > .seo-bw-intro { order: 7; }
@media (min-width: 900px) { .tw-bar-s { max-width: 560px; } .tw-bar { top: 66px; } }
/* what the switch does */
[data-view="oct"] .vbars .vb.a, [data-view="oct"] .vbars .vl.a, [data-view="apr"] .vbars .vb.o, [data-view="apr"] .vbars .vl.o { display: none; }
[data-view="oct"] .vbars, [data-view="apr"] .vbars { grid-template-columns: 1fr; }
[data-view="oct"] .vbars .vl, [data-view="apr"] .vbars .vl { display: none; }
[data-view="oct"] .pr .bar.a, [data-view="oct"] .pr .pc.a, [data-view="oct"] .pr .sw { display: none; }
[data-view="apr"] .pr .bar.o, [data-view="apr"] .pr .pc.o, [data-view="apr"] .pr .sw { display: none; }
[data-view="oct"] .pr { grid-template-areas: "pn bo po"; grid-template-columns: minmax(0, 7.2em) minmax(0, 1fr) 3.1em; }
[data-view="apr"] .pr { grid-template-areas: "pn ba pa"; grid-template-columns: minmax(0, 7.2em) minmax(0, 1fr) 3.1em; }
[data-view="apr"] .pr .pc.a { color: var(--tw-ink); font-weight: 800; font-size: 13px; }
[data-view="apr"] .pr .bar.a { height: 7px; }
[data-view="oct"] .tw-win .tw-w:nth-child(2), [data-view="oct"] .tw-win .same-person, [data-view="oct"] .tw-key { display: none; }
[data-view="apr"] .tw-win .tw-w:nth-child(1), [data-view="apr"] .tw-win .same-person, [data-view="apr"] .tw-key { display: none; }
[data-view="oct"] .cmp th:nth-child(3), [data-view="oct"] .cmp td:nth-child(3), [data-view="oct"] .cmp th:nth-child(4), [data-view="oct"] .cmp td:nth-child(4) { display: none; }
[data-view="apr"] .cmp th:nth-child(2), [data-view="apr"] .cmp td:nth-child(2), [data-view="apr"] .cmp th:nth-child(4), [data-view="apr"] .cmp td:nth-child(4) { display: none; }
[data-view="oct"] .bb .lv > span:nth-child(2), [data-view="apr"] .bb .lv > span:nth-child(1), [data-view="oct"] .bb .fp, [data-view="apr"] .bb .fp, [data-view="oct"] .tws-h4 small, [data-view="apr"] .tws-h4 small { display: none; }
[data-view="oct"] .b2a, [data-view="oct"] .tw-sort button[data-sort="sw"], [data-view="apr"] .tw-sort button[data-sort="sw"] { display: none; }
[data-view="apr"] .b2o { display: none; }
[data-view="apr"] .tw-vl .vc.chg, [data-view="oct"] .tw-vl .vc.chg { display: none; }

/* ---- C: one full screen, three panes ---- */
.tw-detail { display: none; }
.tw-side[data-sel] .tw-detail { display: block; }
.tw-side[data-sel] .tw-card { display: none; }
.tw-back { min-height: 44px; border: 1.5px solid var(--tw-ink); border-radius: 999px; background: #fff; padding: 0 16px; font-weight: 800; font-size: 14px; cursor: pointer; }
.tw-dh { margin: 12px 0 2px; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.tw-ds { margin: 0 0 12px; font-size: 13px; color: var(--tw-soft); }
.tw-tabbar { display: none; }
[data-variant="c"] .tw { --cols: 12; }
@media (max-width: 999px) {
  [data-variant="c"] .tw { display: flex; flex-direction: column; height: calc(100dvh - 140px); min-height: 520px; }
  [data-variant="c"] .tw > .tw-sample { flex: none; margin-bottom: 8px; }
  [data-variant="c"] .tw > .tw-panel, [data-variant="c"] .tw > .tw-find, [data-variant="c"] .tw > .tw-side { display: none; flex: 1 1 0; min-height: 0; overflow-y: auto; margin: 0; }
  [data-variant="c"] .tw[data-pane="panel"] > .tw-panel, [data-variant="c"] .tw[data-pane="find"] > .tw-find, [data-variant="c"] .tw[data-pane="side"] > .tw-side { display: block; }
  [data-variant="c"] .tw[data-pane="find"] > .tw-find { display: flex; }
  [data-variant="c"] .tw > .tw-links { display: none; }
  [data-variant="c"] .tw-tabbar { display: grid; grid-template-columns: repeat(3, 1fr); flex: none; gap: 6px; padding: 8px 0 0; }
  [data-variant="c"] .tw-tabbar button { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--tw-ink); background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
  [data-variant="c"] .tw[data-pane="panel"] .tw-tabbar button[data-p="panel"], [data-variant="c"] .tw[data-pane="find"] .tw-tabbar button[data-p="find"], [data-variant="c"] .tw[data-pane="side"] .tw-tabbar button[data-p="side"] { background: #0d2c43; color: #fff; border-color: #0d2c43; }
  [data-variant="c"] .tw-vl { overflow: visible; flex: none; }
  [data-variant="c"] .tw-find { padding-bottom: 14px; }
}
@media (min-width: 1000px) {
  [data-variant="c"] .tw { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); grid-template-rows: auto minmax(0, 1fr); height: calc(100dvh - 92px); min-height: 640px; max-height: 1000px; --cols: 16; --nf: 10px; }
  [data-variant="c"] .tw > .tw-sample { grid-column: 1 / -1; }
  [data-variant="c"] .tw > .tw-panel { grid-column: 1; grid-row: 2; min-height: 0; overflow-y: auto; }
  [data-variant="c"] .tw > .tw-find { grid-column: 2; grid-row: 2; margin: 0; min-height: 0; }
  [data-variant="c"] .tw > .tw-side { grid-column: 3; grid-row: 2; display: block; contain: none; overflow-y: auto; min-height: 0; }
  [data-variant="c"] .tw > .tw-links { display: none; }
  [data-variant="c"] .tw-pin { position: static; }
  [data-variant="c"] .tw-side > .tw-card { margin: 0; }
}

.tw-bar-n { display: none; margin-left: auto; padding: 0 8px; font-size: 13px; color: #4a3e2f; }
@media (min-width: 900px) { .tw-bar-n { display: block; } }

/* ================= D: one screen for the map, the find box under it, the old-style village detail ================= */
[data-variant="d"] .tw-links { display: none; }
[data-variant="d"] .tw-pl, [data-variant="d"] .tw-pr { display: contents; }
[data-variant="d"] .tw-panel { min-height: calc(100dvh - 72px); display: flex; padding: 14px 14px 12px; }
[data-variant="d"] .tw-pin { display: flex; flex-direction: column; width: 100%; position: static; }
[data-variant="d"] .tw-eyebrow { order: 0; margin-bottom: 8px; }
[data-variant="d"] .tw-seg { order: 1; }
[data-variant="d"] .tw-sum.hd { order: 2; }
[data-variant="d"] .tw-mo { order: 3; margin: 4px 0 6px; flex: none; }
[data-variant="d"] .tw-hint { order: 4; margin: 0 0 8px; font-size: 12px; }
[data-variant="d"] .tw-sum.rs { order: 5; margin-top: 10px; }
[data-variant="d"] .tw-big { margin: 10px 0 6px; font-size: 21px; }
[data-variant="d"] .tw-sub { display: none; }
[data-variant="d"] .tw-seg small { display: block; font-size: 11px; margin-top: 1px; } [data-variant="d"] .tw-seg button { min-height: 48px; }
[data-variant="d"] .tw-lr { display: flex; flex-wrap: wrap; gap: 6px; }
[data-variant="d"] .tw-lr li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: 13px; }
[data-variant="d"] .tw-lr li:first-child { border: 0; }
[data-variant="d"] .tw-lr .bar, [data-variant="d"] .tw-lr .dl { display: none; }
[data-variant="d"] .tw-lr .pn { display: inline-flex; gap: 6px; }
[data-variant="d"] .tw-lr .bn { font-size: 14px; } [data-variant="d"] .tw-lr .bn small { display: none; }
[data-variant="d"] .tw-lr li.same .pn { font-weight: 600; color: var(--nvm); }
[data-variant="d"] .tw-find { margin: 14px 0 0; display: block; padding: 14px 14px 12px; scroll-margin-top: 72px; }
[data-variant="d"] .tf-detail { display: none; }
[data-variant="d"] .tw-vl > li .tw-in { display: none; padding: 4px 4px 14px; }
[data-variant="d"] .tw-vl > li.open .tw-in { display: block; }
[data-variant="d"] .tw-side { display: block; contain: none; }
/* the village detail (the old April tool's format) */
.dt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.dt-h { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.dt-m { font-size: 13px; color: var(--tw-soft); }
.dt-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #efe6d3; border-radius: 14px; padding: 3px; margin: 0 0 12px; }
.dt-seg button { min-height: 44px; border: 0; border-radius: 11px; background: none; font-weight: 800; font-size: 13.5px; color: #4a3e2f; cursor: pointer; }
.dt-seg button[aria-pressed="true"] { background: #0d2c43; color: #fff; }
.dt-pl { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.dt-pl .mk { width: 5px; height: 14px; border-radius: 3px; background: #4b2fb3; } .dt-pl .mk.a { background: #8a7d6a; }
.dt-same { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #ece6ff; border-left: 4px solid #4b2fb3; font-size: 13px; }
.tw-find[data-dv="oct"] .dt-pane:not([data-p="oct"]), .tw-find[data-dv="apr"] .dt-pane:not([data-p="apr"]), .tw-find[data-dv="cmp"] .dt-pane:not([data-p="cmp"]) { display: none; }
.dt-res { margin: 0 0 8px; }
.dt .v-share { width: 100%; }
.dt .v-link { margin: 0 0 6px; text-align: center; font-size: 13px; }
.tw-in .bd .b-share, .tf-detail .bd .b-share { display: inline-flex; align-items: center; margin: 10px 0 0; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--tw-ink); background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.tf-empty { display: grid; gap: 6px; align-content: center; justify-items: center; text-align: center; min-height: 260px; padding: 20px; color: var(--tw-soft); border: 2px dashed #d9c39a; border-radius: 16px; }
.tf-empty b { font-size: 17px; color: var(--tw-ink); }
@media (min-width: 1000px) {
  [data-variant="d"] .tw { display: block; }
  [data-variant="d"] .tw-panel { min-height: 0; padding: 24px 28px 22px; }
  [data-variant="d"] .tw-pin { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 7fr); gap: 30px; align-items: start; }
  [data-variant="d"] .tw-pl, [data-variant="d"] .tw-pr { display: block; }
  [data-variant="d"] .tw-pr { align-self: center; }
  [data-variant="d"] .tw-mo { --cols: 22; --nf: 10.5px; margin: 0 0 8px; }
  [data-variant="d"] .tw-lr { display: grid; gap: 2px; }
  [data-variant="d"] .tw-lr li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; padding: 9px 2px; border-radius: 0; background: none; border-top: 1px solid var(--nvl); font-size: 14px; }
  [data-variant="d"] .tw-lr .bar { display: block; } [data-variant="d"] .tw-lr .dl { display: inline; }
  [data-variant="d"] .tw-big { font-size: 30px; }
  [data-variant="d"] .tw-sum.rs { margin-top: 14px; }
  [data-variant="d"] .tw-find { display: grid; grid-template-columns: minmax(320px, 4fr) minmax(0, 7fr); gap: 0 26px; padding: 18px 22px; }
  [data-variant="d"] .tf-left { min-width: 0; display: flex; flex-direction: column; max-height: min(760px, calc(100dvh - 110px)); }
  [data-variant="d"] .tw-vl { flex: 1 1 auto; max-height: none; }
  /* the detail flows with the PAGE (no inner scroll box: a box that is as tall as the screen has no room to stay put, and its sticky switch hid under the site header);
     the search/village list on the left is what stays in view, and the election switch sticks under the site header */
  [data-variant="d"] .tf-detail { display: block; min-width: 0; position: static; align-self: start; max-height: none; overflow: visible; padding: 0; }
  [data-variant="d"] .tf-left { position: sticky; top: 76px; align-self: start; }
  [data-variant="d"] .tw-vl > li .tw-in { display: none !important; }
  [data-variant="d"] .tw-vl > li.open { box-shadow: inset 0 0 0 2px #4b2fb3; }
}

.tw .v-share { color: #fff; }
.dt .vs2-bar-row, .dt .vs2-nota-row { grid-template-columns: 74px minmax(0, 1fr) auto auto; }
@media (max-width: 999px) { .tw-in .dt-top .dt-h { display: none; } .tw-in .dt-top { margin: 0 0 6px; } }
[data-variant="d"] .tw-sub-s { display: none; }

/* ===== D: friendliness pass (10 Oct). Everything below is D only. ===== */
[data-variant="d"] .tw-vlegend { display: none; }
.tap-hint { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; font-size: 13.5px; font-weight: 600; color: #4a3e2f; }
.tap-hint .hand { font-size: 20px; line-height: 1; }
[data-variant="d"] .tw-find .tap-hint { padding: 8px 12px; border-radius: 12px; background: #f1edff; color: #2f1b84; }
.tapc { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #cdbb98; position: relative;
  background: #fffaf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1410' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
[aria-expanded="true"] > .tapc { transform: rotate(180deg); background-color: #ece6ff; border-color: #4b2fb3; }
[data-variant="d"] .tw-vb { position: relative; padding-right: 52px; }
[data-variant="d"] .tw-vb .tapc { position: absolute; right: 8px; top: 12px; }
[data-variant="d"] .tw-vb:hover .tapc, [data-variant="d"] .bbd:hover .tapc { background-color: #fff; border-color: #1a1410; }   /* background-color only: the shorthand wiped the chevron image (empty circle after a tap on phones, 15 Oct 2026) */
[data-variant="d"] .tw-vb[aria-expanded="true"] .vn::after, [data-variant="d"] .tw-vb[aria-expanded="false"] .vn::after { content: none; }
[data-variant="d"] .tw-vl > li { transition: background .15s; }
[data-variant="d"] .tw-vb:active { background: #f6ecd6; }
.tw-search { position: relative; }
.tw-clear { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: #efe6d3; color: #1a1410; font-size: 15px; cursor: pointer; }
[data-variant="d"] .tw-search input { padding-right: 48px; }
/* the booth rows: cards with a chevron, the village on its own line, readable labels */
[data-variant="d"] .bl2 { display: grid; gap: 8px; border: 0; }
[data-variant="d"] .bl2 > li { border: 1.5px solid #e6d6b6; border-radius: 14px; background: #fff; overflow: hidden; }
[data-variant="d"] .bl2 > li.is-open { border-color: #4b2fb3; background: #fffdf8; }
[data-variant="d"] .bbd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: start; padding: 12px; width: 100%; min-height: 66px; border: 0; background: none; text-align: left; cursor: pointer; }
[data-variant="d"] .bbd:hover { background: #fffaf0; }
[data-variant="d"] .bbd .no { font-size: 19px; font-weight: 800; min-width: 2.3em; text-align: center; padding: 5px 6px; border-radius: 10px; background: #f3e6c8; grid-column: auto; }
[data-variant="d"] .bbd .bx { display: grid; gap: 3px; min-width: 0; grid-column: auto; }
[data-variant="d"] .bbd .bv { font-size: 15.5px; font-weight: 800; }
[data-variant="d"] .bbd .ad { grid-column: auto; font-size: 13px; line-height: 1.35; color: #4a3e2f; white-space: normal; overflow: visible; text-overflow: clip; }
[data-variant="d"] .bbd .lv { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 4px; }
[data-variant="d"] .bbd .lv > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
[data-variant="d"] .bbd .lv small { font-size: 10.5px; line-height: 1.25; font-weight: 700; color: #6b5b45; }
[data-variant="d"] .bbd .lv .lc { white-space: nowrap; }
[data-variant="d"] .bbd .lc { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
[data-variant="d"] .bbd .lc small { font-size: 12px; font-weight: 600; color: #4a3e2f; }
[data-variant="d"] .bbd .fp { grid-column: auto; grid-row: auto; align-self: start; justify-self: auto; white-space: nowrap; }
[data-variant="d"] .bbd .tapc { grid-column: auto; grid-row: auto; align-self: center; }
[data-variant="d"] .bbd::after { content: none; }
[data-variant="d"] .bl2 .bd { padding: 2px 12px 14px; }
@media (max-width: 420px) { [data-variant="d"] .bbd { grid-template-columns: auto minmax(0, 1fr) auto; } [data-variant="d"] .bbd .fp { grid-column: 2; grid-row: 2; justify-self: start; } [data-variant="d"] .bbd .tapc { grid-column: 3; grid-row: 1; } }
.tf-empty .hand { font-size: 34px; }
.dt-x { margin-left: auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #cdbb98; background: #fff; font-weight: 800; font-size: 13px; cursor: pointer; }
.dt-top { align-items: center; }
.dt-m { flex-basis: 100%; }
/* compare table */
.cmpd th:first-child { font-size: 11.5px; line-height: 1.25; max-width: 7.5em; }
.cmpd th small { font-weight: 600; font-size: 10.5px; }
.cmpd .rk { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; background: #efe6d3; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.cmpd .rk:empty { background: none; }
.cmpd td:first-child { white-space: nowrap; }
.cmp-key { margin: 4px 0 0; font-size: 12px; color: var(--tw-soft); }
.cmp-key i { display: inline-block; width: 16px; height: 10px; border-radius: 3px; background: #f4ddd9; border: 1px solid #d9c39a; margin-right: 6px; vertical-align: -1px; }
/* a dot tapped on a phone */
[data-variant="d"] .tw-panel { position: relative; }
.tw-pick { position: absolute; left: 10px; right: 10px; z-index: 6; background: #fff; color: #1a1410; border-radius: 18px; padding: 12px 14px; box-shadow: 0 16px 44px rgba(0, 0, 0, .5); border: 2px solid #4b2fb3; animation: tw-pop .2s ease-out; }
.tw-pick[hidden] { display: none; }
.tw-pick.at-bottom { bottom: 10px; } .tw-pick.at-top { top: 56px; }
@keyframes tw-pop { from { transform: translateY(10px); opacity: 0; } }
.pk-t { display: flex; align-items: center; gap: 10px; font-size: 17px; padding-right: 44px; }
.pk-t .no { font-size: 22px; font-weight: 800; background: #f3e6c8; border-radius: 10px; padding: 2px 10px; }
.pk-ad { margin: 6px 0 8px; font-size: 13px; line-height: 1.35; color: #4a3e2f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-lv { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; align-items: center; }
.pk-lv > span { display: inline-flex; align-items: center; gap: 6px; }
.pk-lv small { font-size: 11px; font-weight: 700; color: #6b5b45; }
.pk-lv .lc { display: inline-flex; align-items: center; gap: 5px; }
.pk-lv .fp { display: inline-flex; gap: 5px; align-items: center; padding: 3px 9px; border-radius: 999px; background: #ece6ff; color: #2f1b84; font-size: 12px; font-weight: 800; }
.pk-lv .fp .mk { width: 4px; height: 12px; border-radius: 2px; background: #4b2fb3; }
.tw .pk-go { color: #fff; }
.pk-go { margin-top: 10px; width: 100%; min-height: 46px; border-radius: 12px; border: 0; background: #0d2c43; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.pk-x { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #cdbb98; background: #fff; font-size: 17px; cursor: pointer; }
@media (min-width: 1000px) { .tw-pick { display: none; } }

.dt .vs2-bar-row > :nth-child(2), .dt .vs2-nota-row > :nth-child(2) { white-space: normal; overflow: visible; text-overflow: clip; }
.cmp-key { color: var(--tw-soft); }
@media (max-width: 999px) { .tw-in .dt-top { display: none; } }
.tw-pick.at-bottom { right: 68px; }   /* leave the floating buttons (language, share, top) uncovered */

/* ---- D: short page — rows are paged, never one endless list ---- */
.pg-x { display: none !important; }
[data-variant="d"] .tw-more { display: none !important; }
[data-variant="d"] .tw-vl[data-collapsed] > li:nth-child(n+7):not(.off) { display: list-item; }
.pgbar { display: flex; gap: 8px; margin: 10px 0 0; }
.pgbar[hidden], .pgbar button[hidden] { display: none; }
.pgbar button { flex: 1 1 auto; min-height: 48px; border: 1.5px solid var(--tw-ink); border-radius: 14px; background: #fffaf0; color: var(--tw-ink); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; }
.pgbar button small { font-weight: 600; font-size: 12px; opacity: .7; }
.pgbar .pg-less { flex: 0 0 auto; background: #fff; }
.pgbar .pg-more:hover, .pgbar .pg-less:hover { background: #fff1cf; }
.nx-seats + .pgbar { margin-top: 8px; }
/* narrow phones (320, Tamil labels): the two pager buttons wrap onto two rows instead of pushing the page wider than the screen */
.pgbar { flex-wrap: wrap; }
.pgbar button { min-width: 0; max-width: 100%; padding-top: 6px; padding-bottom: 6px; text-align: center; flex-wrap: wrap; }
.pgbar .pg-more { flex: 1 1 200px; }
.pgbar .pg-less { flex: 1 1 100%; }
@media (min-width: 480px) { .pgbar .pg-less { flex: 0 0 auto; } }
[data-variant="d"] .bl2[hidden], [data-variant="d"] .tw-vl[hidden] { display: none; }
/* phone: shorter "See also" cards and a one-line sample ribbon, so the page stays short */
@media (max-width: 999px) {
  [data-variant="d"] .nx-card { padding-top: 9px; padding-bottom: 9px; gap: 1px; }
  [data-variant="d"] .nx-card .nx-s { display: none; }
  [data-variant="d"] .tw-sample { font-size: 12.5px; line-height: 1.35; }
}

/* ===== D: the first screen (11 Oct). Seat card + the dot map are in ONE view, no scrolling to see the map and the first result line.
   The sizes are set by fit() in variants.js from the visible height; everything here only makes the top compact. ===== */
[data-variant="d"] .bw-wrap > .bw-crumbs { margin: 4px 0 0; font-size: 12.5px; line-height: 1.3; padding: 2px 0; }
[data-variant="d"] .bw-head { margin: 0 0 6px; padding: 0; }
/* the line above the H1 (the SEO layer writes "By-election booth-wise results updated · AC 101 · ..."): a quiet "updated" chip, one line, never wider than the screen */
[data-variant="d"] .bw-head .bw-eyebrow { display: block; width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 0 4px; padding: 2px 10px 2px 9px; border: 1px solid #b9d6bd; border-radius: 999px; background: #eaf5ec; color: #1b5e2f; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-variant="d"] .bw-head .bw-eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: #2f9e55; }
[data-variant="d"] .bw-head h1 { font-size: clamp(18px, 5vw, 22px); line-height: 1.2; margin: 2px 0 0; }
[data-variant="d"] .bw-wrap[data-booth2] > .hx { margin: 4px 0 8px; padding: 9px 10px; }
[data-variant="d"] .hx-tiles { display: none; }
[data-variant="d"] .hx-line { margin: 5px 0 0; font-size: 12.5px; color: var(--tw-soft); line-height: 1.3; }
[data-variant="d"] .hx-line b { color: var(--tw-ink); font-weight: 800; }
[data-variant="d"] .tw-note { display: none; }
[data-variant="d"] .tw-after { margin: 12px 0 0; }
[data-variant="d"] .tw-after .tw-note { display: block; margin: 8px 2px 0; font-size: 12.5px; color: var(--tw-soft); }
[data-variant="d"] .tw-after .vs-n { margin: 6px 2px 0; font-size: 12.5px; color: var(--tw-soft); }
[data-variant="d"] .tw-mo[data-nn] i::after { content: none; }
[data-variant="d"] .tw-mo { margin-left: auto; margin-right: auto; width: 100%; }
@media (max-width: 999px) {
  [data-variant="d"] .tw-panel { min-height: 0; padding: 10px 12px 12px; }
  [data-variant="d"] .tw-eyebrow { margin-bottom: 6px; font-size: 12.5px; }
  [data-variant="d"] .tw-seg button { min-height: 44px; }
  [data-variant="d"] .tw-big { margin: 8px 0 4px; font-size: 20px; line-height: 1.15; }
  [data-variant="d"] .bw-wrap[data-booth2] .hx-top { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; }
  [data-variant="d"] .bw-wrap[data-booth2] .hx-map, [data-variant="d"] .bw-wrap[data-booth2] .hx-map svg.shape { width: 56px; height: 56px; }
  [data-variant="d"] .bw-wrap[data-booth2] .hx-map svg.loc { display: none; }
  [data-variant="d"] .bw-wrap[data-booth2] .hx-t { font-size: 18px; margin: 0 0 3px; }
  [data-variant="d"] .hx-k { font-size: 11.5px; }
}
@media (max-width: 999px) and (max-height: 700px) {
  [data-variant="d"] .bw-wrap > .bw-crumbs { display: none; }
  [data-variant="d"] .bw-head h1 { font-size: 16px; margin-top: 8px; letter-spacing: -.01em; }
  [data-variant="d"] .hx-k { display: none; }
  [data-variant="d"] .bw-wrap[data-booth2] > .hx { margin-bottom: 6px; padding: 7px 10px; }
  [data-variant="d"] .bw-wrap[data-booth2] .hx-top { grid-template-columns: minmax(0, 1fr); }
  [data-variant="d"] .bw-wrap[data-booth2] .hx-map { display: none; }
  [data-variant="d"] .hx-line { display: none; }
  [data-variant="d"] .tw-eyebrow { display: none; }
  [data-variant="d"] .tw-big { font-size: 17px; margin: 6px 0 2px; }
  [data-variant="d"] .tw-panel { padding: 8px 10px 10px; }
}
@media (min-width: 1000px) {
  [data-variant="d"] .bw-wrap > .bw-crumbs { margin: 6px 0 0; }
  [data-variant="d"] .bw-head h1 { font-size: 26px; margin: 0; }
  [data-variant="d"] .bw-head { margin-bottom: 4px; }
  [data-variant="d"] .bw-wrap[data-booth2] > .hx { padding: 10px 16px; margin: 6px 0 10px; }
  [data-variant="d"] .bw-wrap[data-booth2] .hx .vs { padding: 6px 12px 5px; }
  [data-variant="d"] .bw-wrap[data-booth2] .hx .vs2-list { gap: 1px; }
  [data-variant="d"] .tw-panel { padding: 16px 22px 14px; }
  [data-variant="d"] .tw-pin { gap: 24px; align-items: start; }
  [data-variant="d"] .tw-pr { align-self: start; }
  [data-variant="d"] .tw-big { font-size: 26px; margin: 8px 0 4px; }
  [data-variant="d"] .tw-lr li { padding: 5px 2px; }
  [data-variant="d"] .tw-sum.rs { margin-top: 8px; }
  [data-variant="d"] .tw-mo { margin: 0 auto; }
}
/* tap targets: 44px everywhere in D */
[data-variant="d"] .tw-sort button { min-height: 44px; }
[data-variant="d"] .tw-seg button { min-height: 44px; }
/* long village names wrap by word, never mid-word: the chip drops to the next line instead */
[data-variant="d"] .tw-vb .vn { flex: 1 1 9.5em; min-width: 9.5em; overflow-wrap: normal; word-break: normal; }

/* the booth text: every village and booth as plain text in the page's own HTML (crawlable; a closed fold, so it never lengthens the page) */
.bw-text { margin: 14px 0 0; }
.bw-text .fold-body { padding: 4px 4px 10px; }
.bw-text .bt-note, .bw-text .bt-c, .bw-text .bt-s { font-size: 13.5px; line-height: 1.55; margin: 6px 0; color: #3a3025; }
.bw-text .bt-v { font-size: 16px; margin: 18px 0 2px; }
.bw-text .bt-l { margin: 6px 0 0; padding: 0 0 0 18px; font-size: 12.5px; line-height: 1.5; color: #4a3e2f; }
.bw-text .bt-l li { margin: 0 0 5px; overflow-wrap: anywhere; }
/* Tamil: wider words, so the comparison table gets fixed columns and the search placeholder fits */
.cmpd { table-layout: fixed; width: 100%; }
.cmpd th:nth-child(1), .cmpd td:nth-child(1) { width: 35%; }
.cmpd th:nth-child(n+2), .cmpd td:nth-child(n+2) { width: 21.6%; padding-left: 4px; padding-right: 8px; }
.cmpd td:nth-child(n+2) b { font-size: 14px; }
[lang="ta"] .tw-search input { font-size: 15px; }
/* desktop: the chip sits on the breadcrumb row (right), so the card and the whole map still fit the first view */
@media (min-width: 1000px) {
  [data-variant="d"] .bw-head { position: relative; }
  [data-variant="d"] .bw-head .bw-eyebrow { position: absolute; right: 0; top: -28px; margin: 0; max-width: 58%; }
}

/* Tamil on the narrowest phones: the long party word "மற்றவர்கள்" must not be cut in the seat-card table */
@media (max-width: 380px) { [lang="ta"] .bw-wrap[data-booth2] .hx .vs2-h, [lang="ta"] .bw-wrap[data-booth2] .hx .vs2-row { grid-template-columns: minmax(0, 7.6em) minmax(0, 1fr) minmax(0, 1fr); column-gap: 4px; } }
@media (max-width: 380px) { [lang="ta"] .hx .vs2-hc b { font-size: 10.5px; letter-spacing: -.01em; } [lang="ta"] .hx .vs2-hc small { font-size: 10px; } [lang="ta"] .bw-wrap[data-booth2] .hx .vs2-h, [lang="ta"] .bw-wrap[data-booth2] .hx .vs2-row { grid-template-columns: minmax(0, 6.9em) minmax(0, 1fr) minmax(0, 1fr); } [lang="ta"] .hx .vs2-row .vs-p { font-size: 12px; } }
/* hero winner pills: when they wrap, split evenly (no lone "won") */
[data-variant="d"] .hx-wins .hx-win { text-wrap: balance; }

/* tie chip: each tied party and its votes stay together; a tapped booth lands below the sticky site header */
.tie2 { display: block; }
.tie2 .tp { white-space: nowrap; display: inline-block; margin-right: 4px; }
.bl2 > li[data-no], .tw-vl > li { scroll-margin-top: 124px; }

/* the all-booths text fold keeps the page short when opened: it scrolls inside its own box (owner rule: the whole page stays within ~5 screens) */
.bw-text details[open] > .fold-body { max-height: min(70vh, 600px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-top: 1px dashed #e0c98f; margin-top: 4px; }
/* "See also" cards: two across on phones (the third spans), sub-line only where there is room: keeps the page short */
@media (max-width: 699px) {
  .bw-next .nx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-next .nx-card { min-height: 0; padding: 8px 12px; }
  .bw-next .nx-card:nth-child(3) { grid-column: 1 / -1; }
  .bw-next .nx-s { display: none; }
}
/* the all-booths text: one closed row per village (name + booth count); a village opens to its booths, so the fold is ~64 short rows, not 320 paragraphs */
.bw-text .bt-vd { border-top: 1px solid #eadbb8; }
.bw-text .bt-vd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 2px 2px; }
.bw-text .bt-vd > summary::-webkit-details-marker { display: none; }
.bw-text .bt-vd > summary h3.bt-v { margin: 0; font-size: 15px; line-height: 1.35; }
.bw-text .bt-vd > summary .bt-sm { flex: none; font-size: 12.5px; color: #6b5b3d; padding-right: 22px; position: relative; white-space: nowrap; }
.bw-text .bt-vd > summary .bt-sm::after { content: "▾"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 13px; }
.bw-text .bt-vd[open] > summary .bt-sm::after { content: "▴"; }
.bw-text .bt-vd[open] { background: #fffdf6; }
/* the tail (sources, related links, intro) is tighter on phones so the footer stays within five screens, even at 320 */
@media (max-width: 480px) {
  .bw-wrap[data-booth2] > .seo-links { margin: 10px 0 6px !important; padding: 10px 12px !important; line-height: 1.55 !important; }
  .bw-wrap[data-booth2] > .bw-foot-note { margin-top: 10px; padding: 10px 12px; }
  .bw-wrap[data-booth2] > .bw-next { margin-top: 8px; }
  .bw-wrap[data-booth2] > .seo-int-ptr { margin: 4px 0 8px !important; }
  .bw-wrap[data-booth2] > .more { margin-top: 10px; }
}

/* the By-election / General election / Compare switch stays in view while a village's booths scroll (owner, 11 Oct) */
.dt-seg { position: sticky; top: 56px; z-index: 6; box-shadow: 0 6px 10px -8px rgba(26, 20, 16, .45); }
@media (min-width: 700px) { .dt-seg { top: 68px; } }

/* postal votes: one comparison table, last election beside this one */
.pt-wrap { margin: 2px 0 4px; }
.pt-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
.pt-table caption { text-align: left; font-size: 12.5px; color: #5b4a2e; padding: 0 0 8px; line-height: 1.45; caption-side: top; }
.pt-table thead th { padding: 8px 8px; font-size: 12.5px; line-height: 1.35; text-align: left; background: #efe6d3; color: #241d10; vertical-align: bottom; }
.pt-table thead th:first-child { width: 27%; border-radius: 10px 0 0 0; }
.pt-table thead th:last-child { border-radius: 0 10px 0 0; }
.pt-table thead th .mk { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #4338a0; margin-right: 5px; }
.pt-table thead th .mk.a { background: #7a7a52; }
.pt-table tbody th, .pt-table tbody td, .pt-table tfoot th, .pt-table tfoot td { padding: 9px 8px; border-bottom: 1px solid #eadbb8; vertical-align: top; text-align: left; background: #fffdf6; }
.pt-table tbody th { font-weight: 400; }
.pt-table .pv-pill { white-space: nowrap; }
.pt-v { font-size: 17px; font-weight: 800; }
.pt-p { font-size: 12px; color: #5b4a2e; margin-left: 3px; }
.pt-n { display: block; font-size: 12.5px; color: #4a3e2f; margin-top: 2px; overflow-wrap: anywhere; }
.pt-lead { background: #fff1cf !important; box-shadow: inset 3px 0 0 #d97706; }
.pt-oth th, .pt-oth td { background: #fbf6ea !important; font-size: 13px; }
.pt-oth .pt-v { font-size: 14px; font-weight: 700; }
.pt-tot th, .pt-tot td { font-weight: 800; background: #efe6d3 !important; border-bottom: 0 !important; }
.pt-tot th { border-radius: 0 0 0 10px; } .pt-tot td:last-child { border-radius: 0 0 10px 0; }
.pt-notes { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.55; }
.pt-notes li { padding-left: 12px; border-left: 3px solid #e6cf9a; }
.pt-notes .pv-pill { margin: 0 2px; }
@media (max-width: 380px) { .pt-table { font-size: 13px; } .pt-v { font-size: 15px; } .pt-table thead th:first-child { width: 29%; } }
.pt-table th, .pt-table td { overflow-wrap: anywhere; }

/* ===== owner's six picks, 11 Oct 2026 ===== */
/* 1. floating buttons: one short row at the bottom edge instead of a column up the right edge, so no vote number or "open" button hides behind them */
.b2-page .tn-fab-stack { flex-direction: row; align-items: center; gap: 8px; }
.b2-page .tn-fab { width: 42px; height: 42px; }
.b2-page .tn-share-pop { bottom: 54px; }
.tw-pick.at-bottom { right: 10px; }

/* 2. village list as a compact table: name, flip badge, the two leaders with their margin, thin bars; legend row above */
.vt-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin: 6px 0 0; padding: 8px 4px 8px; border-bottom: 2px solid #eadbb8; font-size: 11.5px; line-height: 1.3; color: #4a3e2f; }
.vt-head[hidden] { display: none; }
.vt-head .vt-t { grid-column: 1 / -1; font-weight: 800; color: #241d10; }
.vt-head .vt-k { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.vt-head .kb { flex: none; width: 22px; height: 7px; border-radius: 3px; background: #4b2fb3; }
.vt-head .kb.a { background: repeating-linear-gradient(135deg, #8a7d6a 0 3px, #d9ceb4 3px 6px); }
[data-variant="d"] .tw-vl > li > .tw-vb { gap: 3px 8px; padding: 9px 4px 8px; align-items: center; }
[data-variant="d"] .tw-vb .vc { display: none; }
[data-variant="d"] .tw-vb .vm { display: block; order: 2; flex: 1 0 100%; font-size: 12px; margin-top: -1px; }
[data-variant="d"] .tw-vb .vf { order: 1; flex: none; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #ece6ff; color: #2f1b84; }
[data-variant="d"] .tw-vb .vlr { order: 3; flex: 1 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 2px; }
[data-variant="d"] .tw-vb .vlc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 5px; min-width: 0; font-size: 13px; line-height: 1.3; padding-left: 7px; border-left: 4px solid #4b2fb3; }
[data-variant="d"] .tw-vb .vlc.a { border-left: 4px dashed #9a8f77; }
[data-variant="d"] .tw-vb .vlc .vld { flex: 1 0 100%; font-size: 10.5px; font-weight: 700; color: #6b5b3d; letter-spacing: .01em; }
[data-variant="d"] .tw-vb .vlc b { font-weight: 800; }
[data-variant="d"] .tw-vb .vlc .dt { width: 9px; height: 9px; border-radius: 50%; align-self: center; flex: none; }
[data-variant="d"] .tw-vb .vlc small.num { font-size: 12px; color: #4a3e2f; }
[data-variant="d"] .tw-vb .vbars { order: 4; grid-template-columns: 1fr; gap: 2px; margin-top: 3px; }
[data-variant="d"] .tw-vb .vbars .vl { display: none; }
[data-variant="d"] .tw-vb .vbars .vb { height: 5px; }
[data-variant="d"] .tw-vb .vbars .vb.a { height: 5px; }

/* 3. map: bottom sheet on phones with neighbour buttons; hover preview on desktop; step to the next booth from an opened booth */
@media (max-width: 999px) {
  .tw-pick, .tw-pick.at-bottom, .tw-pick.at-top { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); top: auto; z-index: 95; max-height: 70vh; overflow: auto; }
}
.pk-nav { display: flex; gap: 8px; margin-top: 8px; }
.pk-nav button { flex: 1; min-height: 44px; border: 1.5px solid #1a1410; border-radius: 12px; background: #fffaf0; font-weight: 800; font-size: 15px; color: #1a1410; cursor: pointer; }
.pk-nav button:disabled { opacity: .35; cursor: default; }
.bnav { display: flex; gap: 8px; margin: 12px 0 0; }
.bnav button { flex: 1; min-height: 44px; border: 1.5px solid #1a1410; border-radius: 12px; background: #fff; font-weight: 800; font-size: 14px; color: #1a1410; cursor: pointer; }
.bnav .bn-map { flex: 1.3; background: #0d2c43; color: #fff; border-color: #0d2c43; }
.bnav button:disabled { opacity: .35; cursor: default; }
.tw-tip { position: fixed; z-index: 120; pointer-events: none; max-width: 300px; background: #1a1410; color: #fff; border-radius: 10px; padding: 8px 11px; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.tw-tip[hidden] { display: none; }
.tw-tip small { color: #d9ceb4; font-weight: 700; }

/* 5. "what changed": a ring in the colour of the party that led in April marks each flipped booth */
[data-mode="chg"] .tw-mo i.rg { box-shadow: 0 0 0 2px var(--ring), 0 0 0 3px rgba(255, 255, 255, .35); }

/* 6. the switch carries its dates */
.dt-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.15; padding: 4px 2px; }
.dt-seg button b { font-size: 13.5px; font-weight: 800; }
.dt-seg button small { font-size: 10.5px; font-weight: 700; opacity: .8; }

/* 4. the three "more about this seat" boxes as side-by-side tables */
.ct-table th[scope="row"] { text-align: left; }
.ct-table .ct-ch { font-size: 12.5px; color: #4a3e2f; white-space: nowrap; }
.ct-table th[scope="col"]:last-child { border-radius: 0 10px 0 0; }
.ct-table .ct-chg { display: block; margin-top: 4px; }
.ct-table .ct-chg .b2o-chg, .ct-table .ct-chg .b2o-same { font-size: 11.5px; }
.ct-table td .pv-pill, .ct-table td .tp-pill { margin-right: 4px; }
.ct-table .ct-vn { display: block; font-size: 13.5px; margin-top: 2px; }
.ct-facts { margin-top: 12px; }
.ct-facts .bw-facts { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }

/* refinements after the first look */
.pt-table thead th .th-d { display: block; font-weight: 600; font-size: 11px; color: #4a3e2f; margin-top: 1px; }
.ct-table th[scope="row"] { width: 31%; }
.ct-table thead th:first-child { width: 31%; }
.ct-table.ct-wide th[scope="row"] { width: 34%; }
[data-variant="d"] .tw-vb .vlc .vld { flex: 0 0 auto; margin-right: 1px; }
[data-variant="d"] .tw-vb .vlr { gap: 4px 8px; }
[data-variant="d"] .tw-vb .vf { order: 3; }
[data-variant="d"] .tw-vb .vlr { order: 4; }
[data-variant="d"] .tw-vb .vbars { order: 5; }
[data-variant="d"] .tw-vb .vm { flex: 0 1 auto; }

.ct-table .pt-v { font-size: 15px; white-space: nowrap; }
.ct-table th[scope="row"], .ct-table thead th:first-child { width: 27%; }
.ct-table.ct-wide th[scope="row"], .ct-table.ct-wide thead th:first-child { width: 34%; }
.ct-table thead th:last-child:not(:nth-child(3)) { width: 17%; }
.ct-table td, .ct-table th { padding-left: 6px; padding-right: 6px; }
[data-variant="d"] .tw-vl > li > .tw-vb .vn { flex: 1 0 100%; padding-right: 44px; }
[data-variant="d"] .bbd .lv .lc { white-space: normal; flex-wrap: wrap; row-gap: 0; }
[data-variant="d"] .bbd .lv .lc small { font-size: 11.5px; }

/* ===== engagement phase 1 (12 Oct 2026) =====
   1. "அடுத்து / Next": a short row of places to go after the answer: under the village list (compact) and inside an opened village (full, with the WhatsApp bar).
      All chips are >= 44px tall; they wrap, never scroll sideways. */
.eg { margin: 12px 0 4px; padding: 10px 12px 12px; border: 1.5px solid #e3c88c; border-radius: 16px; background: #fff8e8; color: var(--tw-ink, #1a1410); min-width: 0; }
.eg-h { margin: 0 0 8px; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: #7a3e00; line-height: 1.3; }
.eg-h::before { content: ""; flex: none; width: 9px; height: 9px; border-top: 2.5px solid #d97706; border-right: 2.5px solid #d97706; transform: rotate(45deg); margin: 0 3px 0 1px; }
.eg-k { margin: 10px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--tw-soft, #4a3e2f); line-height: 1.35; }
.eg-r { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-c { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; max-width: 100%; padding: 6px 14px; border: 1.5px solid var(--tw-ink, #1a1410); border-radius: 999px; background: #fff; color: var(--tw-ink, #1a1410); font-weight: 800; font-size: 14px; line-height: 1.25; text-align: center; text-decoration: none; -webkit-tap-highlight-color: transparent; overflow-wrap: anywhere; }
.eg-c:hover, .eg-c:active { background: #fff1cf; color: var(--tw-ink, #1a1410); text-decoration: none; }
.eg-c:focus-visible { outline: 3px solid #e8841a; outline-offset: 2px; }
.eg-mla { background: #0d2c43; border-color: #0d2c43; color: #fff; }
.eg-mla:hover, .eg-mla:active { background: #14405e; color: #fff; }
.eg-more { border-style: dashed; font-weight: 700; }
/* the three main links share the width: two on a line, the third across (a village card is only ~300px wide on a phone) */
.eg-p { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eg-p .eg-c { padding: 4px 10px; font-size: 13.5px; }
.eg-p .eg-c:nth-child(3) { grid-column: 1 / -1; }
.eg-top { margin-top: 10px; padding: 7px 10px 9px; }
.eg-top .eg-h { margin-bottom: 5px; }
.eg-top .eg-p { gap: 6px 8px; }
/* 2. the bar's look: the results page's own pill (scripts/design_rel74.py, css = src/design/rel74/rel74.css), scoped to .n74 */
.n74 { display: flex; flex-direction: column; gap: 8px; }
.n74 .r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "d t g" "d m g"; gap: 2px 12px; align-items: center; min-height: 58px; padding: 7px 8px 7px 16px; border-radius: 29px; background: #2b2e31; color: #ece9dc; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), 0 1px 0 #fff, 0 2px 0 rgba(0, 0, 0, .13); }
.n74 .d { grid-area: d; display: block; width: auto; height: auto; font: 400 22px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif; font-style: normal; }
.n74 .t { grid-area: t; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font: 800 15px/1.25 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Tamil", "Mukta Malar", sans-serif; letter-spacing: .01em; overflow-wrap: anywhere; color: #ece9dc; }
.n74 .l { grid-area: g; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.n74 .l a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 22px; background: #c5d0a0; color: #1b2511; font: 800 13.5px/1.2 system-ui, "Noto Sans Tamil", sans-serif; text-decoration: none; text-align: center; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .35); -webkit-tap-highlight-color: transparent; }
.n74 .l a:hover, .n74 .l a:active { color: #1b2511; text-decoration: none; filter: brightness(.96); }
.n74 .l a:focus-visible { outline: 3px solid #e8782a; outline-offset: 2px; }

/* the follow bar ("be first to know the next results"; one button per channel): one slim row, text left, buttons right; a 320px phone stacks it */
.n74.eg-follow { margin: 12px 0 0; }
.n74.eg-follow .r { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "d t g"; min-height: 56px; padding: 6px 8px 6px 14px; border-radius: 28px; gap: 2px 10px; }
.n74.eg-follow .t { font-size: 14.5px; }
.n74.eg-follow .l { justify-content: flex-end; }
.n74.eg-follow .l a { flex: none; padding: 0 14px; }
.n74.eg-follow-end { margin: 12px 0 12px; }
/* inside an opened village on a phone the card is only ~300px wide: title on top, buttons under it */
.tw-in .eg .n74.eg-follow .r { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "d t" "g g"; border-radius: 22px; padding: 8px 10px 10px 14px; row-gap: 6px; }
.tw-in .eg .n74.eg-follow .l { justify-content: stretch; }
.tw-in .eg .n74.eg-follow .l a { flex: 1 1 120px; }
@media (max-width: 360px) { .n74.eg-follow .r { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "d t" "g g"; border-radius: 22px; } .n74.eg-follow .l { justify-content: stretch; } .n74.eg-follow .l a { flex: 1 1 120px; } }

/* 3. floating buttons (issue 10): the language switch lives in the breadcrumb row under the header (a real tap-size pill), the back-to-top button is dropped
      (the footer keeps its own "back to top" link), and the one that is left (share this page) hides while a village or booth is open */
.b2-page .tn-fab--top { display: none !important; }
html.has-fab-top .foot-top, body:has(.tn-fab--top) .foot-top { display: inline-flex !important; }
.b2-open .tn-fab-stack { display: none !important; }
.bw-crumbs a.eg-lang { margin-left: auto; flex: none; min-height: 44px; padding: 0 14px; border: 1.5px solid #cdbb98; border-radius: 999px; background: #fff; color: var(--tw-ink, #1a1410); font-weight: 800; font-size: 14px; text-decoration: none; }
.bw-crumbs a.eg-lang:hover { background: #fff1cf; text-decoration: none; }
@media (min-width: 1000px) { .bw-crumbs a.eg-lang { margin-left: 6px; } }   /* on a desktop the "updated" chip sits at the right end of this row */
@media (max-width: 999px) and (max-height: 700px) {
  [data-variant="d"] .bw-wrap > .bw-crumbs { display: flex; justify-content: flex-end; margin: 2px 0 0; }
  [data-variant="d"] .bw-wrap > .bw-crumbs > :not(.eg-lang) { display: none; }
}
