/* ==========================================================================
   Design B — small public pages: /about, /privacy, /watchlist, /regions,
   /analysis (index), /news/archive, /person|/organization, /search.
   Linked by layout(page_css=["misc"]); the news family links it too for the
   shared page head. B tokens only (no hard-coded surfaces): the dark theme
   and every Tick inherit it.
   ========================================================================== */

/* ---------- page head ---------- */
.phead { padding: var(--s4) 0 var(--s5); border-bottom: 1px solid var(--line); }
.breadcrumb + .phead { padding-top: var(--s2); }
.phead .kicker { margin-bottom: var(--s2); }
.phead h1 { font-size: var(--fs-6); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; max-width: 40ch; }
.phead .dek { margin-top: var(--s2); font-size: var(--fs-4); line-height: 1.55; color: var(--ink-2); max-width: 70ch; }
.phead .acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.phead .evidence { margin-top: var(--s3); }
.mini-h { margin: var(--s5) 0 var(--s2); font-size: var(--fs-2); font-weight: 600; color: var(--ink-2); }

/* a quiet boxed notice (the only box: it is a message, not a card) */
.notice { margin-top: var(--s5); padding: var(--s4) var(--s4) var(--s4) var(--s4); border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; max-width: 80ch; }
.notice p { font-size: var(--fs-3); line-height: 1.6; color: var(--ink); }
.notice p + p, .notice p + .btn, .notice .btn { margin-top: var(--s3); }

/* main + rail */
.mp-cols { margin-top: var(--s2); }
.mp-rail { padding-top: var(--s5); }
.mp-rail > section > .sec-h, .mp-rail > section .sec-h { margin-bottom: var(--s2); }
.mp-rail .note { margin-top: var(--s4); }
.mp-rail .note a, .wl .note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- /about ---------- */
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
/* no rule under each item: a line under text that is not itself a link read
   as an underline (review loop 1); the arrow marks the title as the link */
.feat > li { min-width: 0; }
.feat a { display: block; padding: var(--s3) 0; }
.feat b { display: inline-flex; align-items: baseline; gap: 6px; font-size: var(--fs-3); font-weight: 600; color: var(--accent-text); }
.feat b > span { display: inline; margin: 0; font-size: var(--fs-2); color: inherit; }
.feat a > span { display: block; margin-top: 2px; font-size: var(--fs-2); line-height: 1.5; color: var(--ink-2); }
.feat a:hover b { text-decoration: underline; text-underline-offset: 3px; }
/* the register: three columns of two, value beside its explanation (review
   loop 2: six squeezed columns read as a spreadsheet) */
.facts.tracked { --cols: 3; }
.facts.tracked { column-gap: var(--gutter); }
.facts.tracked > div { padding: var(--s3) 0; }
.facts.tracked > div + div { border-left: 0; }
.facts.tracked > div:nth-child(n+4) { border-top: 1px solid var(--line); }
.facts.tracked dt { font-size: var(--fs-2); font-weight: 600; color: var(--ink); }
.facts.tracked dd.num { font-size: var(--fs-5); }
.facts.tracked dd.def { margin-top: 2px; font-size: var(--fs-2); line-height: 1.55; color: var(--ink-2); }
.mp-asof { margin-top: var(--s2); font-size: var(--fs-2); color: var(--ink-2); }
/* one grid for the whole about page: a 700–800px reading column + the rail */
.mp-about { align-items: stretch; }      /* the rail runs the full height: its page nav stays in view */
.mp-about .mp-main { max-width: 800px; }
.mp-about .mp-main .prose { max-width: 760px; }
.mp-sec { scroll-margin-top: 96px; }
.mp-meth .mini-h:first-child { margin-top: 0; }
.mp-meth .mini-h { color: var(--ink); font-size: var(--fs-3); }
.mp-meth p { font-size: var(--fs-3); line-height: 1.75; color: var(--ink); }
.mp-meth p + p { margin-top: var(--s3); }
/* prose here carries no decorative underline: only real links are underlined */
.mp-about .prose p, .mp-about .prose h3 { text-decoration: none; }
.mp-about .prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.mp-rail .mp-def { margin-top: var(--s2); font-size: var(--fs-2); line-height: 1.6; color: var(--ink-2); }
.mp-rail .mp-def a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.mp-toc { position: sticky; top: 88px; margin-top: var(--s6); }
.mp-toc ol { display: flex; flex-direction: column; }
.mp-toc li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-2); color: var(--ink-2); }
.mp-toc li a:hover { color: var(--accent-text); }
@media (max-width: 900px) {
  .facts.tracked { --cols: 2; }
  .facts.tracked > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mp-toc { position: static; }
}

/* ---------- /privacy ---------- */
.pv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--gutter); margin-top: var(--s5); }
.pv p { font-size: var(--fs-3); line-height: 1.65; color: var(--ink); max-width: 64ch; }
.pv .note { font-size: var(--fs-2); }
.ticks > li { position: relative; padding: 8px 0 8px 22px; font-size: var(--fs-3); line-height: 1.55; color: var(--ink); }
.ticks > li + li { border-top: 1px solid var(--line); }
.ticks > li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 5px;
  border-left: 2px solid var(--pos); border-bottom: 2px solid var(--pos); transform: rotate(-45deg); }
.ticks.no > li::before { width: 10px; height: 2px; top: 18px; border: 0; background: var(--neg); transform: none; }
.ticks code { font-size: var(--fs-2); padding: 1px 4px; border-radius: 3px; background: var(--bg-2); }
.pv-btns { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 var(--s2); }
.pv-btns .btn[data-act="clear"]:hover { border-color: var(--neg); color: var(--neg); }

/* ---------- /watchlist (filled by the personalisation script) ---------- */
.ttw { display: flex; flex-direction: column; }
.ttw .tt-pe { padding: var(--s3) 0; font-size: var(--fs-2); color: var(--ink-3); }
.ttw .tt-pi, .ttw .tt-tr { display: flex; align-items: baseline; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ttw .tt-pi-t { flex: 1; min-width: 0; font-size: var(--fs-3); font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttw a:hover .tt-pi-t { text-decoration: underline; text-underline-offset: 3px; }
.ttw .tt-pi-k { font-size: var(--fs-1); color: var(--ink-3); }
.ttw .tt-tr-n { width: 18px; font-size: var(--fs-1); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ttw .tt-tr-v { font-size: var(--fs-1); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- /regions ---------- */
.rg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--gutter); margin-top: var(--s5); }
.rg { border-top: 2px solid var(--ink); padding-top: var(--s3); min-width: 0; }
.rg h2 { font-size: var(--fs-4); font-weight: 700; line-height: 1.45; }
.rg h2 a:hover { color: var(--accent-text); }
.rg h2 small { display: block; font-size: var(--fs-2); font-weight: 500; color: var(--ink-3); }
.rg .m { margin-top: 2px; font-size: var(--fs-2); color: var(--ink-2); }
.rg .ds { display: flex; flex-wrap: wrap; gap: 2px var(--s3); margin-top: var(--s3); font-size: var(--fs-2); line-height: 1.8; }
.rg .ds a { color: var(--ink-2); }
.rg .ds a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rg-all { margin-top: var(--s6); }

/* ---------- /analysis index ---------- */
.ax-list { margin-top: var(--s2); max-width: 880px; }
.ax-list > li { border-bottom: 1px solid var(--line); }
.ax-item { padding: var(--s5) 0; }
.ax-item h2 { margin-top: var(--s1); font-size: var(--fs-5); font-weight: 700; line-height: 1.35; }
.ax-item h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ax-item .sf { margin-top: var(--s2); font-size: var(--fs-3); line-height: 1.6; color: var(--ink-2); max-width: 72ch; }
.ax-item .evidence { margin-top: var(--s3); }

/* ---------- /news/archive ---------- */
.months { margin-top: var(--s4); max-width: 720px; }
.months > li > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 240px) auto; align-items: center; gap: var(--s4); }
.months .b-bar { height: 6px; }

/* ---------- /person, /organization ----------
   Rendered in the profile family's band (profiles.css .pr-band): the
   foundation avatar with the party ring, two counted tiles, then a main
   column (lead, headlines naming them, facts) and the standard rail. */
.qe-band { grid-template-columns: auto minmax(0, 1fr) auto; }
.qe-band .pr-stats .stats { grid-template-columns: repeat(2, minmax(112px, auto)); }
.qe-band .evidence > .ev-i { white-space: normal; }
.qe-lead { margin: var(--s5) 0 0; max-width: 68ch; font-size: var(--fs-4); line-height: 1.6; color: var(--ink-2); }
.qe .pr-main > .qe-lead + .section { margin-top: var(--s5); }
.qe-solo { max-width: 880px; }
.qe-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.qe-facts > div { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.qe-facts dt { font-size: var(--fs-2); color: var(--ink-2); }
.qe-facts dd { margin-top: 2px; font-size: var(--fs-3); font-weight: 600; overflow-wrap: anywhere; }
.qe-aliases { display: flex; flex-wrap: wrap; gap: var(--s2); }
.qe-aliases .tag { height: 26px; padding: 0 var(--s2); font-size: var(--fs-2); font-weight: 500; }
.qe-source { margin-top: var(--s5); font-size: var(--fs-2); }
.qe-source a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.qe-source svg { width: 12px; height: 12px; }
.qe-outlets > li { display: grid; grid-template-columns: minmax(0, 1fr) 72px 32px; gap: var(--s3); align-items: center; padding: 7px 0; }
.qe-outlets > li + li { border-top: 1px solid var(--line); }
.qe-outlets .on { font-size: var(--fs-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qe-outlets .track { height: 6px; background: var(--track); border-radius: 2px; overflow: hidden; }
.qe-outlets .track i { display: block; height: 100%; border-radius: 2px; background: var(--ink-3);
  transform-origin: 0 50%; animation: b-grow .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.qe-outlets .num { text-align: right; font-size: var(--fs-1); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .qe-outlets .track i { animation: none; } }

/* ---------- /search ---------- */
.sr-head h1 { font-size: var(--fs-6); }
.sr-form { margin-top: var(--s4); max-width: 720px; }
.sr-in { position: relative; flex: 1; display: flex; }
.sr-in svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--ink-3); pointer-events: none; }
.sr-in .input { padding-left: 38px; min-height: 44px; font-size: var(--fs-4); }
.sr-form .btn { height: 44px; padding: 0 var(--s5); }
/* result-type tabs: real links, the active one filled (aria-current) */
.sr-bar { margin-top: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.sr-tabs { position: relative; display: flex; flex-wrap: wrap; gap: var(--s2); }   /* offsetLeft is the row's: the scroll-row script keeps the active tab in view */
.sr-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 var(--s3); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: var(--fs-2); font-weight: 500; color: var(--ink); background: var(--bg); }
.sr-tab:hover { border-color: var(--ink-3); text-decoration: none; }
.sr-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-tab .n { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sr-tabs .sr-tab.on, .sr-tabs .sr-tab.on:hover, .sr-tabs.scrollrow > .sr-tab.on { background: var(--ink); border-color: var(--ink); color: var(--bg); box-shadow: none; }
.sr-tab.on .n { color: var(--bg); opacity: .8; }
.sr-sum { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); font-size: var(--fs-2); color: var(--ink-2); }
.sr-sort { display: inline-flex; align-items: center; gap: var(--s2); }
.sr-sort .lbl { color: var(--ink-3); }
.sr-sort a { padding: 2px 8px; border-radius: 999px; color: var(--ink-2); }
.sr-sort a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sr-sort a.on { background: var(--bg-2); color: var(--ink); font-weight: 600; }
.sr-more { margin-top: var(--s2); font-size: var(--fs-2); }
.sr-more a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); }
.sr-more svg { width: 12px; height: 12px; }
.sr-group { scroll-margin-top: 96px; }
.sr-groups .sr-group:first-child { margin-top: var(--s5); }
.sec-h h2 .sub { font-variant-numeric: tabular-nums; }
.sr-list > li + li { border-top: 1px solid var(--line); }
.sr-list > li > a { display: flex; align-items: center; gap: var(--s3); padding: 10px 0; min-width: 0; }
.sr-list .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sr-list .t { font-size: var(--fs-3); font-weight: 600; color: var(--ink); line-height: 1.45; }
/* the other-script name (English under a Tamil name) on its own muted line */
.sr-list .alt { display: block; font-size: var(--fs-2); font-weight: 400; color: var(--ink-3); line-height: 1.4; }
.sr-list .s { font-size: var(--fs-2); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.sr-list .s svg { width: 11px; height: 11px; }
.sr-list .tag { flex: none; }
.sr-list a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.sr-list mark, .sr-top mark { background: none; color: var(--ink); font-weight: 700; padding: 0; }
/* every meta item carries a leading "·" in a 14px slot; the row is shifted
   14px left and that strip clipped, so a wrapped line never starts with "·" */
.sr-list .s.sr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-left: -14px; clip-path: inset(-4px -4px -4px 14px); }
.sr-meta > span:not(.tag)::before { content: "·"; display: inline-block; width: 14px; text-align: center; color: var(--ink-3); }
.sr-meta > .tag { margin-left: 6px; }
.sr-meta > svg { margin-left: 4px; }
.sr-meta .sr-src { color: var(--ink-2); }
.tag.sr-lb { height: 18px; padding: 0 5px; font-size: var(--fs-1); font-weight: 500; color: var(--ink-2); }
/* results: entities in a right rail beside the news on a desktop; a phone
   reads the rail (best-match card first) before the news */
.sr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: calc(var(--gutter) * 2); align-items: start; margin-top: var(--s5); }
/* the headlines run the full width under stories + entities, in two columns */
.sr-layout .sr-wide { grid-column: 1 / -1; grid-row: 2; min-width: 0; margin-top: var(--s6); }
.sr-wide .sr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--gutter) * 2); }
.sr-wide .sr-list > li { border-top: 1px solid var(--line); }
.sr-wide .sr-list > li:nth-child(-n+2) { border-top: 0; }
.sr-layout .sr-main { grid-column: 1; grid-row: 1; min-width: 0; }
.sr-layout .sr-rail { grid-column: 2; grid-row: 1; min-width: 0; }
.sr-layout .sr-group:first-child { margin-top: 0; }
.sr-rail .sr-group + .sr-group { margin-top: var(--s6); }
.sr-top { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); margin-bottom: var(--s3); }
.sr-top .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sr-top-links { flex-basis: 100%; }
.sr-top .t { font-size: var(--fs-5); font-weight: 700; line-height: 1.3; color: var(--ink); }
.sr-top .t a { color: inherit; }
.sr-top .alt { display: block; margin-top: 2px; font-size: var(--fs-2); font-weight: 400; color: var(--ink-3); }
.sr-top .s { font-size: var(--fs-2); color: var(--ink-2); }
.sr-top-links { display: flex; flex-wrap: wrap; gap: var(--s2); }
.sr-top .pmark.lg { flex: none; width: 64px; height: 64px; }
.sr-top .pmark.lg::after { left: 20px; top: 20px; width: 24px; height: 24px; }
.sr-list .pmark { flex: none; width: 32px; height: 32px; }
.sr-list .pmark::after { left: 10px; top: 10px; }
.sr-rich .t { font-weight: 500; font-size: var(--fs-4); }
.sr-rich .en { font-size: var(--fs-2); color: var(--ink-2); }
.sr-start { margin-top: var(--s5); }
.sr-start .evidence { margin-top: var(--s3); }
.sr-start .rail > section + section { margin-top: var(--s6); }
.span-6 { grid-column: span 6; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .rg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .phead h1, .sr-head h1 { font-size: var(--fs-5); }
  .phead .dek { font-size: var(--fs-3); }
  .qe-lead { font-size: var(--fs-3); }
  .feat, .pv-grid, .rg-cards, .qe-facts { grid-template-columns: 1fr; }
  .span-6 { grid-column: 1 / -1; }
  .mp-rail { padding-top: 0; }
  .months > li > a { grid-template-columns: minmax(0, 1fr) auto; }
  .months .b-bar { display: none; }
  .sr-form .btn { padding: 0 var(--s4); }
  .sr-list .tag { height: 20px; padding: 0 6px; font-size: 11px; }
  .sr-tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
             margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px;
             scroll-padding-inline: var(--gutter) var(--s6); }   /* snap to the padded start: "All" is never cut */
  .sr-tabs::-webkit-scrollbar { display: none; }
  .sr-tab { flex: none; }
  .sr-top { padding: var(--s3); gap: var(--s3); }
  .sr-top .t { font-size: var(--fs-4); }
}
@media (max-width: 1080px) {
  .sr-layout { grid-template-columns: minmax(0, 1fr); }
  .sr-layout .sr-main, .sr-layout .sr-rail { grid-column: 1; grid-row: auto; }
  .sr-layout .sr-main { margin-top: var(--s6); }
  .sr-layout .sr-wide { grid-row: auto; }
  .sr-wide .sr-list { grid-template-columns: minmax(0, 1fr); }
  .sr-wide .sr-list > li:nth-child(2) { border-top: 1px solid var(--line); }
}
.pv-btns .btn { white-space: normal; height: auto; min-height: 36px; padding: 8px var(--s3); text-align: left; line-height: 1.4; }
.sr-groups { max-width: 1000px; }
.mp-rail .mp-def b { font-weight: 600; color: var(--ink-2); }

/* ---------- branded 404 (critique 2026-10-02) ---------- */
.nf { max-width: 680px; padding: var(--s7, 48px) 0 var(--s8, 64px); }
.nf h1 { font-size: var(--fs-6); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 var(--s3); text-wrap: balance; }
.nf-body { font-size: var(--fs-3); color: var(--ink-2); line-height: 1.6; margin: 0 0 var(--s3); max-width: 62ch; }
.nf-path { margin: 0 0 var(--s5); }
.nf-path code { font-size: var(--fs-1); color: var(--ink-3); background: var(--bg-2); padding: 2px 6px; border-radius: 4px;
  overflow-wrap: anywhere; }
.nf-search label { display: block; font-size: var(--fs-2); font-weight: 600; color: var(--ink); margin-bottom: var(--s2); }
.nf-row { display: flex; gap: var(--s2); }
.nf-row input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 var(--s3); font: inherit; font-size: var(--fs-3);
  color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px; }
.nf-row input:focus-visible { outline: 2px solid var(--focus, #2563eb); outline-offset: 1px; }
.nf-row button { height: 44px; padding: 0 var(--s4); font: inherit; font-size: var(--fs-3); font-weight: 600; color: var(--bg);
  background: var(--ink); border: 0; border-radius: 6px; cursor: pointer; }
.nf-row button:hover { opacity: .9; }
.nf-cont { margin: var(--s6, 32px) 0 var(--s2); font-size: var(--fs-2); color: var(--ink-3); }
.nf-links { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.nf-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s3); border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--ink-2); font-size: var(--fs-2); }
.nf-links a:hover, .nf-links a:focus-visible { color: var(--accent-text); border-color: var(--accent); }
