/* ==========================================================================
   Front page ("/") — design B page family. Linked by home.render_home via
   layout(page_css=["home"]). B tokens only (no hard-coded surfaces): the page
   must read correctly in light and [data-theme=dark].
   ========================================================================== */

/* ---------- page head ---------- */
.home .hm-head { padding-bottom: 4px; }
/* one display step below the index pages' 28px H1 (review loop 1: the 20px
   home H1 was the weakest on the site) */
.home .hm-head h1 { font-size: 24px; line-height: 1.3; letter-spacing: -.01em; }
.home .hm-head h1 em { font-style: normal; }
.home .hm-sum { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.home .hm-lede { font-size: 15px; color: var(--ink-3); line-height: 1.55; margin: 0 0 var(--s4); max-width: 110ch; }

/* ---------- KPI tiles ---------- */
.home .hm-tiles { margin-bottom: var(--s4); }
.home .hm-tiles.n1 { --cols: 1; } .home .hm-tiles.n2 { --cols: 2; } .home .hm-tiles.n3 { --cols: 3; }
.home .hm-tiles.n4 { --cols: 4; } .home .hm-tiles.n5 { --cols: 5; }
.home .hm-tiles .tile { padding-top: var(--s2); padding-bottom: var(--s2); }
.home .hm-tiles .tile .v { font-size: 24px; line-height: 1.25; }
/* labels and subs wrap (2 lines) — never an ellipsis that eats the meaning.
   Every label holds exactly two lines, so the numerals share one baseline. */
.home .hm-tiles .tile dt { white-space: normal; overflow: hidden; text-overflow: clip; line-height: 1.35;
  min-height: calc(2 * 1.35em); max-height: calc(2 * 1.35em); -webkit-line-clamp: 2; }
.home .hm-tiles .tile dt:is(:lang(ta), :lang(te), :lang(kn)), .home:is(:lang(ta), :lang(te), :lang(kn)) .hm-tiles .tile dt {
  line-height: 1.5; min-height: 3em; max-height: 3em; }
.home .hm-tiles .tile .sub { white-space: normal; overflow: hidden; text-overflow: clip; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home .hm-tiles .v { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.home .hm-tiles .tile > * { min-width: 0; }
.home .hm-tiles .v a:hover { color: var(--accent-text); }
.home .hm-tiles .v small { font-size: var(--fs-2); font-weight: 500; color: var(--ink-3); margin: 0; letter-spacing: 0; }
.home .hm-tiles .t-who .v { font-size: var(--fs-5); line-height: 1.4; }
.home .hm-tiles .t-who .who { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; max-width: 100%; }
/* a name wraps to a second line rather than lose its end ("ಡಿ ಕೆ ಶಿವಕು…") */
.home .hm-tiles .t-who .who span[lang] { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal; min-width: 0; line-height: 1.3; }
.home .hm-tiles .t-who .who:hover span[lang] { text-decoration: underline; text-underline-offset: 3px; }
.home .hm-tiles .t-who .av { width: 28px; height: 28px; }
.home .hm-tiles .t-rise .sub { color: var(--change); }
.home .hm-tiles .sub .mv { font-size: inherit; }
.home .hm-tiles .t-dev dt { text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; cursor: help; }
/* ONE notice bar: the window switch, or last-good figures */
.home .hm-notice { display: flex; align-items: baseline; gap: var(--s2); margin: calc(var(--s2) * -1) 0 var(--s3);
  padding: 0; border: 0; background: none; color: var(--ink-3); font-size: var(--fs-1); line-height: 1.5; max-width: 110ch; }
.home .hm-notice::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn, #b45309); transform: translateY(-1px); }
/* section index */
.home .hm-idx { margin: 0 0 var(--s4); font-size: var(--fs-1); }
@media (min-width: 768px) { .home .hm-idx { display: none; } }
.home .hm-tiles + .hm-idx { margin-top: calc(var(--s5) * -1 + var(--s2)); }
/* one line of chips with gaps (review loop 2: nine links wrapped to two lines) */
.home .hm-idx ol { display: flex; flex-wrap: nowrap; gap: var(--s2); margin: 0; padding: 0 0 2px; list-style: none;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.home .hm-idx ol::-webkit-scrollbar { display: none; }
.home .hm-idx li { margin: 0; padding: 0; flex: 0 0 auto; }
.home .hm-idx a { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: var(--fs-1); }
.home .hm-idx a:hover, .home .hm-idx a:focus-visible { color: var(--accent-text); border-color: var(--accent); }
.home .hm-notice + .hm-idx { margin-top: 0; }
/* "+0 articles (24h)" says nothing: a card with no new article in 24h shows no delta (critique 2026-10-02) */
.home .d24.zero { display: none; }
/* each module says how it ranks */
.home .hm-rule { margin: 0 0 var(--s2); font-size: var(--fs-1); color: var(--ink-3); }
.home .hm-src { color: var(--ink-3); margin-top: var(--s2); }
.home .hm-tiles .spark-dd { margin: auto 0 0; padding-top: 6px; }
.home .hm-tiles .spark { display: block; height: 24px; --pc: var(--accent); }
.home .hm-tiles .spark-cap { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
/* the tile sparkline stretches to the tile: plain (scaling) strokes so the
   pathLength draw-in isn't distorted by non-scaling-stroke */
.home .hm-tiles .spark .ln, .home .hm-tiles .spark .gap { vector-effect: none; stroke-width: 1.6; }
.home .hm-tiles .spark .gap { stroke-width: 1; }

/* ---------- front: main · wire · rail ---------- */
.home .hm-front { row-gap: var(--s6); }
/* The row is NOT sized by its tallest column (review loop 1: ~500px of
   blank under the lead column): the wire and the rail span two rows, and the
   next module — more stories, or the videos — starts right under the lead
   column. Extra height goes to the flexible second row, below it. */
.home .hm-front.has-cont { grid-template-rows: auto 1fr; align-items: start; }
.home .hm-front.has-cont > :is(.col-main, .hm-maincol) { grid-row: 1; }
.home .hm-front.has-cont > :is(.hm-wirecol, .rail) { grid-row: 1 / span 2; }
.home .hm-front.has-cont > .hm-cont { grid-row: 2; grid-column: 1 / span 6; }
.home .hm-front.has-cont > .hm-cont.span-9 { grid-column: 1 / span 9; }
.home .hm-cont .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home .hm-cont.span-9 .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home .hm-cont { min-width: 0; }
.home .hm-cont > section + section { margin-top: var(--s6); }
.home .hm-cont .vids { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s4); }
.home .hm-cont.span-9 .vids { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home .hm-cont.span-9 .vids.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home .hm-cont .chan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* half-width channel rows: the count goes under the name, never "T…" */
.home .hm-cont .chan li a { grid-template-columns: 32px minmax(0, 1fr); row-gap: 0; }
.home .hm-cont .chan .cv { grid-column: 2; font-size: var(--fs-1); }
.home .hm-cont .chan .ini { grid-row: span 2; }
/* the rest of "more stories", behind a show-more control (still real links) */
.home .hm-showmore { margin-top: var(--s2); }
.home .hm-showmore > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-2); font-weight: 600; color: var(--ink-2); }
.home .hm-showmore > summary::-webkit-details-marker { display: none; }
.home .hm-showmore > summary::after { content: "▾"; font-size: 11px; }
.home .hm-showmore[open] > summary::after { content: "▴"; }
.home .hm-showmore > summary:hover { color: var(--accent-text); border-color: var(--accent); }
.home .hm-showmore > .cards3 { margin-top: var(--s2); }
.home .col-main, .home .hm-maincol { min-width: 0; }
.home .lead .run { color: var(--ink-3); }
.home .lead .en { line-height: 1.5; }
.home .lead-ev .faces .av.sm { width: 30px; height: 30px; }
.home .stories .story h3 { margin-bottom: 2px; }
/* The 40px lead slot is always drawn: face, party dot, or — when the
   headline names neither — a neutral glyph, so the text edge stays straight. */
.home .pmark.empty::after { content: ""; position: absolute; left: 14px; top: 9px; width: 12px; height: 12px; border-radius: 50%;
  background: none; box-shadow: none; border: 1.5px solid var(--ink-4, var(--rest)); box-sizing: border-box; }
.home .wire a.t:not(:lang(en)) { -webkit-line-clamp: 3; }   /* Tamil words run long: 3 lines, English 2 (critique 2026-10-02) */
.home .hm-board .v { align-self: center; }
.home .hm-board li a { grid-template-columns: 32px minmax(0, 1fr) 52px; }
.home .hm-board .rl > span[aria-hidden] { color: var(--ink-3); }
.home .hm-board .rkm { line-height: 1.4; }
.home .hm-board .rl.src { color: var(--ink-3); font-size: 12px; }
.home .ev .d24.zero { color: var(--ink-3); font-weight: 400; }
.home .hm-st { margin-right: 6px; font-size: 12px; padding: 0 6px; vertical-align: 1px; }
.home .hm-meta .hm-st { margin: 0; }
.home .hm-meta > .hm-st::before { content: none; }
.home .hm-meta > .hm-st { margin-left: 8px; }
.home .rail .hm-corpus { margin: 0 0 var(--s4); padding: var(--s2) var(--s3); border-left: 3px solid var(--accent);
  background: var(--bg-2); color: var(--ink-2); font-size: var(--fs-1); line-height: 1.55; }
.home .hm-corpus-s { color: var(--ink-3); }
.home .hm-more-m { display: none; }
.home .hm-move { font-size: var(--fs-1); }
.home .hm-move::before { content: none; }
.home .hm-move.new { color: var(--accent-text); }
.home .rail .note { margin-top: var(--s2); }
.home .rail .sec-h .sub, .home .section .sec-h .sub { margin-left: var(--s2); }
/* Trends links: a row stays ONE link to the entity's page; its Trends page is
   a separate small target at the row's end (never an <a> inside an <a>). */
/* the shared `.lb li + li a` / `.share li a` row rules must not style it */
.home .tr { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3);
  padding: 0; border: 0; gap: 0;
  border-radius: var(--radius); transition: color var(--t-fast, .15s) var(--ease), background var(--t-fast, .15s) var(--ease); }
.home .tr:hover, .home .tr:focus-visible { color: var(--accent-text); background: var(--bg-2); }
@media (pointer: coarse) {
  .home .share.has-tr .tr, .home .hm-dt td.dn .tr { position: relative; }
  .home .tr::after { content: ""; position: absolute; inset: -11px -9px; }
}
/* leaderboard: the icon sits under the count, so the row keeps its width */
.home .hm-board.has-tr li { position: relative; }
.home .hm-board.has-tr li > a:first-child { padding-bottom: 14px; }
.home .hm-board.has-tr .tr { position: absolute; right: -4px; bottom: 6px; width: 26px; height: 22px; }
.home .share.has-tr li { display: flex; align-items: center; }
.home .share.has-tr li > a:first-child, .home .share.has-tr li > .row { flex: 1 1 auto; min-width: 0; }
.home .share.has-tr .tr { flex: 0 0 24px; height: 24px; margin-left: 4px; }
.home .share.has-tr li.rest { padding-right: 28px; }
.home .hm-cov { color: var(--ink-3); }
.home > .hm-cov { margin: calc(var(--s5) * -1 + var(--s2)) 0 var(--s5); }
.home .rail .hm-key { margin-top: var(--s1); color: var(--ink-3); }
.home .share li a, .home .share li .row { grid-template-columns: 96px minmax(0, 1fr) 52px; }
.home .share .pn { min-width: max-content; overflow: visible; text-overflow: clip; }
/* No front column and no wire (a region whose headlines come from fewer than
   3 outlets): the leaderboard and party share sit side by side. */
.home .hm-rail-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.home .hm-rail-wide > section:first-child { grid-row: 1 / span 2; }
.home .hm-empty { margin: var(--s3) 0; padding: var(--s4) 0; color: var(--ink-3); font-size: var(--fs-2); border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); }

/* headlines grouped by leader (regions without live stories) */
.home .hm-group { grid-template-columns: 40px minmax(0, 1fr); }
.home .hm-group h3 { font-size: var(--fs-4); font-weight: 700; margin-bottom: 2px; }
.home .hm-group h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home .hm-heads li { padding: 6px 0; }
.home .hm-heads li + li { border-top: 1px solid var(--line); }
.home .hm-heads a { font-size: var(--fs-3); line-height: 1.5; font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home .hm-heads a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home .hm-meta { font-size: var(--fs-1); color: var(--ink-3); margin-top: 1px; }
.home .hm-meta > * + *::before { content: "·"; margin: 0 6px; }

/* ---------- district map ---------- */
.home .rail .sec-h .sub, .home .hm-geo .sec-h .sub, .home .section .sec-h .sub, .home .hm-cont .sec-h .sub, .home .hm-wirecol .sec-h .sub { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); vertical-align: 2px; white-space: nowrap; }
.home .hm-geo .grid { row-gap: var(--s4); align-items: start; }
.home .hm-mapcol { display: flex; justify-content: center; }
.home .hm-map { width: 100%; max-width: 440px; }
.home .hm-map svg { max-height: 600px; }
.home .hm-map a, .home .hm-map g[data-n] { cursor: pointer; }
.home .hm-map g[data-n] { cursor: default; }
.home .hm-map .b-tip { min-width: 190px; }
.home .hm-map .b-tip b { margin-bottom: 2px; }
/* no tagged coverage = a hatch, never a flat fill that reads as the lowest bin */
.home .hm-map path.b0 { fill: url(#hm-nd); }
.home .hm-map .nd-bg { fill: var(--bg); }
.home .hm-map .nd-ln { stroke: var(--ink-4, var(--rest)); stroke-width: 1.4; }
/* legend: one labelled swatch per class, from the values that fill the map */
.home .hm-legend { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.home .hm-legend .lab { color: var(--ink-2); font-size: var(--fs-1); text-align: center; }
.home .hm-legend .lab small { display: block; color: var(--ink-3); font-size: 12px; }
.home .hm-legend .steps { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.home .hm-legend .steps li { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 66px; margin: 0; padding: 0; }
.home .hm-legend .steps i { display: block; width: 100%; height: 9px; border-radius: 1px; }
.home .hm-legend .steps span { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.home .hm-legend i.sw1 { background: var(--heat-1); } .home .hm-legend i.sw2 { background: var(--heat-2); }
.home .hm-legend i.sw3 { background: var(--heat-3); } .home .hm-legend i.sw4 { background: var(--heat-4); }
.home .hm-legend i.sw5 { background: var(--heat-5); }
.home .hm-legend .nil { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-1); color: var(--ink-3); }
.home .hm-legend .nil i { display: block; width: 12px; height: 12px; border-radius: 1px; border: 1px solid var(--line-strong);
  background: repeating-linear-gradient(45deg, var(--bg) 0 2px, var(--ink-4, var(--rest)) 2px 3.2px); }
/* One steel scale (colorize 2026-10-02: the orange ramp was BJP's colour).
   Dark is composed, not inverted: lightness rises from a dim but visible step
   (≥1.6:1 on --bg) to near-white, so the most-covered districts are brightest. */
/* wider steps between classes (review loop 2): each bin reads as its own tone */
.home .hm-geo { --heat-1: #dde6f0; --heat-2: #b9cbe0; --heat-3: #84a3c6; --heat-4: #4f76a3; --heat-5: #23426a; }
:root[data-theme="dark"] .home .hm-geo {
  --heat-1: #2b3d56; --heat-2: #2f4b70; --heat-3: #4a6e9e; --heat-4: #7fa2cd; --heat-5: #c4d6ee;
}
.home .hm-h3 { font-size: var(--fs-2); font-weight: 600; color: var(--ink-2); margin: 0 0 var(--s1); }
.home .hm-dt { table-layout: fixed; }
/* headers wrap at spaces only — never mid-word ("குறிப்புக|ள்") */
.home .hm-dt th { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: normal; word-break: keep-all; hyphens: none; line-height: 1.3; vertical-align: bottom; }
.home .hm-dt th.rk, .home .hm-dt td.rk { width: 28px; color: var(--ink-3); }
/* mentions (the sort key) carries the bar, under its own number */
.home .hm-dt th.cm, .home .hm-dt td.cm { width: 25%; }
.home .hm-dt th.st, .home .hm-dt td.st { width: 88px; }
.home .hm-dt th.ps, .home .hm-dt td.ps { width: 140px; }
.home .hm-dt td.cm .cmv { display: grid; grid-template-columns: minmax(0, 1fr) 52px; align-items: center; gap: var(--s2); }
.home .hm-dt td.cm .cmv .num { order: 2; text-align: right; }
.home .hm-dt td.cm .b-bar > i { --pc: var(--accent); }
.home .hm-dt tr[hidden] { display: none; }
/* sortable headers: the active key carries the arrow */
.home .hm-dt th button { all: unset; cursor: pointer; display: inline; color: inherit; font: inherit; text-align: right;
  white-space: normal; text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }
.home .hm-dt th button .sa { margin-left: 3px; }
.home .hm-dt th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home .hm-dt th button .sa { display: none; font-size: 9px; color: var(--accent-text); }
.home .hm-dt th button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: none; }
.home .hm-dt th button[aria-pressed="true"] .sa { display: inline; }
.home .hm-dt .bnd { display: inline-flex; margin-left: 5px; color: var(--ink-3); vertical-align: -1px; cursor: help; }
.home .hm-bnd { display: flex; gap: 6px; align-items: flex-start; }
.home .hm-bnd .bnd-i { flex: 0 0 auto; margin-top: 3px; color: var(--ink-3); }
.home .hm-dt td.dn .bs { display: block; font-size: var(--fs-1); font-weight: 400; color: var(--ink-3); line-height: 1.4; }
.home .hm-dt td { vertical-align: middle; padding-top: 7px; padding-bottom: 7px; }
.home .hm-dt td.dn { font-size: var(--fs-3); font-weight: 600; line-height: 1.45; }
.home .hm-dt td.dn a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home .hm-dt td.dn .plus { color: var(--ink-3); font-weight: 400; }
.home .hm-dt td.dn .mm { display: none; font-size: var(--fs-1); font-weight: 400; color: var(--ink-3); }
.home .hm-dt td.dn .pm { margin-left: 5px; font-size: var(--fs-1); font-weight: 500; color: var(--ink-3); }
.home .hm-dt td.dn .tr { width: 22px; height: 22px; margin-left: 4px; vertical-align: -5px; }
.home .hm-map .b-tip a.tt { margin-left: var(--s3); }
.home .hm-legend .nv { font-size: var(--fs-1); color: var(--ink-3); }
/* a two-state map names each state */
.home .hm-map .st-lab { font-size: 17px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--bg);
  stroke-width: 4px; stroke-linejoin: round; pointer-events: none; letter-spacing: .02em; }
.home .hm-dt tbody tr .b-bar > i { animation: none; }   /* table cells: Chrome drops transformed fills in some captures; the map carries the motion here */
.home .hm-listcol .evidence { margin-top: var(--s3); }

/* ---------- videos ---------- */
.home .vids { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
.home .vids.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home .vid { min-width: 0; }
.home .vid .th { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.home .vid .th .mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: var(--fs-5); font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
/* calmer thumbnails (review loop 2): one 16:9 box for every card, a centred
   crop that trims the caption bands, and toned-down saturation until hover */
.home .vid .th img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform: scale(1.06); filter: saturate(.8) contrast(.96); transition: filter var(--t-med) var(--ease); }
.home .vid:hover .th img { filter: none; }
.home .vid .th .play { position: absolute; left: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(17, 24, 39, .8); display: flex; align-items: center; justify-content: center; }
.home .vid .th .play svg { width: 9px; height: 9px; color: #fff; margin-left: 2px; }
.home .vid .vb { min-width: 0; }
.home .vid h3 { margin-top: var(--s2); font-size: var(--fs-3); font-weight: 600; line-height: 1.5; }
.home .vid h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home .vid .vc, .home .vid .vm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-1); color: var(--ink-3); line-height: 1.5; }
.home .vid .vc { margin-top: 2px; color: var(--ink-2); font-weight: 500; }

/* ---------- more stories / explainers / channels ---------- */
.home .hm-more .story { padding: var(--s3) 0; }
.home .hm-exs.c1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.home .hm-exs.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home .hm-exs .hm-ex { display: flex; flex-direction: column; gap: 4px; padding: var(--s3) 0; }
.home .hm-exs .kline { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.home .hm-exs .hm-ex b { font-size: var(--fs-3); font-weight: 600; line-height: 1.5; }
.home .hm-exs .ttl .tag { margin-right: 6px; vertical-align: 2px; }
.home .hm-exs .hm-ex small { font-size: var(--fs-2); color: var(--ink-2); line-height: 1.5; }
.home .hm-exs .hm-ex:hover b { text-decoration: underline; text-underline-offset: 3px; }
.home .chan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.home .chan li a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.home .chan .ini { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.home .chan .cn { font-size: var(--fs-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .chan .cv { font-size: var(--fs-2); color: var(--ink-2); white-space: nowrap; }
.home .chan li a:hover .cn { text-decoration: underline; text-underline-offset: 3px; }
.home .hm-how .prose { color: var(--ink-2); font-size: var(--fs-2); }
.home .hm-how .prose + .prose { margin-top: var(--s2); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .home .front > .span-6, .home .front > .span-9 { grid-column: 1 / -1; }
  .home .front > .span-3 { grid-column: span 6; }
  .home .front > .span-3.col-rule:nth-child(2)::before { display: none; }
  .home .front > .span-3.col-rule:nth-child(3)::before { display: block; }
  .home .hm-geo .span-5, .home .hm-geo .span-7 { grid-column: 1 / -1; }
  .home .hm-map svg { max-height: 520px; }
  .home .vids, .home .vids.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home .vids.n5 .vid:nth-child(5) { display: none; }
  .home .chan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* tiles stay one row (--cols from .nN above): the shared 3-column wrap
     would orphan a tile */
  .home .hm-tiles .tile[class] { border-top: 0; padding-left: var(--s3); border-left: 1px solid var(--line); }
  .home .hm-tiles .tile:first-child { padding-left: 0; border-left: 0; }
  .home .hm-tiles .tile .v { font-size: var(--fs-5); }
  .home .hm-front.has-cont { grid-template-rows: none; }
  .home .hm-front.has-cont > * { grid-row: auto; }
  .home .hm-front.has-cont > .hm-cont, .home .hm-front.has-cont > .hm-cont.span-9 { grid-column: 1 / -1; }
  .home .hm-cont .vids, .home .hm-cont.span-9 .vids, .home .hm-cont.span-9 .vids.n5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home .hm-cont .vids.n5 .vid:nth-child(5) { display: none; }
  .home .hm-cont .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones (review loop 2): H1 → a compact KPI strip → the lead story → the
   first story rows and "more" → the section chips → the rest. The front grid and the
   main column dissolve (display: contents) so their children can be ordered
   around the tiles; nothing is duplicated in the markup. */
@media (max-width: 767px) {
  .home { display: flex; flex-direction: column; }
  .home > * { order: 9; }
  .home > .hm-head { order: 1; }
  .home > .hm-lede { display: none; }
  .home .hm-front, .home .hm-front > .col-main { display: contents; }
  .home .hm-front > .col-main > * { order: 4; }
  .home .hm-front > * { order: 9; }
  .home .hm-front > .col-main > .lead { order: 3; }
  .home > .hm-tiles { order: 2; }
  .home > .hm-cov { order: 2; margin: calc(var(--s4) * -1 + var(--s1)) 0 var(--s4); }
  .home .hm-front > .col-main > .stories { order: 4; }
  .home .hm-front > .col-main > h2 { order: 4; }
  .home .hm-front > .hm-maincol, .home .hm-front > .span-6, .home .hm-front > .span-9 { order: 4; }
  .home .hm-front > .hm-wirecol { order: 6; margin-top: var(--s6); }
  .home .hm-front > .rail { order: 7; margin-top: var(--s6); }
  /* the story list is capped: four rows, then "more" (the rest are on /stories) */
  .home .hm-front > .col-main > .stories > li:nth-child(n + 5) { display: none; }
  .home .hm-front > .col-main > .hm-more-m { order: 4; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    margin: var(--s2) 0 var(--s4); padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
    font-size: var(--fs-2); font-weight: 600; color: var(--ink-2); }
  .home .hm-front > .col-main > .hm-more-m svg { width: 12px; height: 12px; }
  .home section[aria-labelledby="h-more"] { display: none; }
  .home .hm-front > .col-rule::before { display: none; }

  /* the KPI strip: a 2-column grid (review loop 1: the sideways strip
     clipped its third tile with no scroll cue); an odd last tile spans both */
  .home .hm-tiles[class] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--s4) 0 var(--s4); }
  .home .hm-tiles .tile[class] { min-width: 0; padding: var(--s3) var(--s3) var(--s3) var(--s3); border-top: 0; border-left: 0; }
  .home .hm-tiles .tile[class]:nth-child(odd) { padding-left: 0; }
  .home .hm-tiles .tile[class]:nth-child(even) { border-left: 1px solid var(--line); }
  .home .hm-tiles .tile[class]:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .home .hm-tiles .tile[class]:nth-child(n + 5) { display: none; }
  .home .hm-tiles .tile .v, .home .hm-tiles .tile .v * { white-space: nowrap; }
  .home .hm-tiles .t-who .v, .home .hm-tiles .t-who .v * { white-space: normal; }
  .home .hm-notice { margin: 0 0 var(--s3); order: 2; }
  .home > .hm-notice { order: 2; }
  /* the jump links (leaders, parties, districts, videos) right after the stories */
  .home > .hm-idx { order: 5; margin: var(--s2) 0 var(--s2); }
  .home .hm-front > .hm-cont { order: 8; margin-top: var(--s6); }
  .home .hm-front > .col-main > .hm-rule { order: 4; }
  .home .hm-front > .col-main > .hm-rule:has(+ .lead) { order: 3; }
  /* the section index: one line, scrolled sideways, fading at its end */
  .home .hm-idx ol { flex-wrap: wrap; overflow: visible; white-space: normal; row-gap: var(--s2); }
  .home .hm-idx a { height: auto; min-height: 36px; }
  .home .hm-idx ol::-webkit-scrollbar { display: none; }
  /* compact: the strip sits above the lead, so it stays short */
  .home .hm-tiles .tile[class] { padding-top: var(--s2); padding-bottom: var(--s2); }
  .home .hm-tiles .tile dt { font-size: 12px; min-height: 0; max-height: none; -webkit-line-clamp: unset; }
  .home:is(:lang(ta), :lang(te), :lang(kn)) .hm-tiles .tile dt { min-height: 0; max-height: none; }
  .home .hm-tiles .tile .v { font-size: var(--fs-4); line-height: 1.25; }
  .home .hm-tiles .tile .sub { font-size: 12px; line-height: 1.35; }
  .home .hm-tiles .t-who .v { font-size: var(--fs-3); }
  .home .hm-tiles .t-who .av { width: 22px; height: 22px; }

  /* a section badge wraps on a phone rather than run past the screen edge */
  .home :is(.rail, .hm-geo, .section, .hm-cont, .hm-wirecol) .sec-h .sub, .home .sec-h .sub {
    white-space: normal; height: auto; min-height: 20px; line-height: 1.35; padding-top: 2px; padding-bottom: 2px; max-width: 100%; }
  /* meta lines wrap instead of hiding the delta behind an ellipsis */
  .home .ev p { white-space: normal; overflow: visible; text-overflow: clip; }

  .home .hm-rail-wide { grid-template-columns: minmax(0, 1fr); }
  .home .hm-rail-wide > section:first-child { grid-row: auto; }
  .home .hm-head { flex-direction: column; align-items: flex-start; }
  .home .hm-sum { justify-content: flex-start; }
  .home .front > .span-3 { grid-column: 1 / -1; }
  .home .vids, .home .vids.n4, .home .hm-cont .vids, .home .hm-cont.span-9 .vids, .home .hm-cont.span-9 .vids.n5 { grid-template-columns: 1fr; gap: 0; }
  .home .hm-cont .vids.n5 .vid:nth-child(5) { display: grid; }
  .home .hm-cont .cards3, .home .hm-cont.span-9 .cards3, .home .hm-cont .chan { grid-template-columns: 1fr; }
  .home .vids.n5 .vid:nth-child(5) { display: grid; }
  .home .vid { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .home .vid h3 { margin-top: 0; }
  .home .chan { grid-template-columns: 1fr; }
  .home .hm-exs.c2 { grid-template-columns: 1fr; }
  .home .lead .dev li span { -webkit-line-clamp: 2; }

  /* district table: district (per seat and seats beneath) · mentions with its bar */
  .home .hm-dt th.rk, .home .hm-dt td.rk, .home .hm-dt th.ps, .home .hm-dt td.ps,
  .home .hm-dt th.st, .home .hm-dt td.st { display: none; }
  .home .hm-dt td.dn .mm { display: block; }
  .home .hm-dt th.cm, .home .hm-dt td.cm { width: 46%; }
  .home .hm-dt td.dn .mm { text-align: left; font-variant-numeric: tabular-nums; }
}
@media (max-width: 479px) {
  /* the 24h rise gets its own line: "+57 in 24h" is the story's heat */
  .home .ev .ev1 .d24 { display: block; }
  .home .ev .ev1 .d24::before { content: none; }
}
