/* ==========================================================================
   Saansad Tracker - public pages (S3). Loaded only on /saansad routes.
   Mobile-first (375px baseline). Tokens mirror redesign.css (CLAUDE.md §11
   rev 13) and are re-declared on .sn so the pages look right whether or not
   html.rd is active.
   ========================================================================== */
.sn {
  --rd-primary-900: #0b2545; --rd-primary-800: #133e87; --rd-primary-700: #1d4ed8; --rd-primary-50: #eff6ff;
  --rd-crimson: #dc2626; --rd-amber: #d97706; --rd-emerald: #059669; --rd-pending: #94a3b8;
  --rd-base: #f8fafc; --rd-card: #ffffff; --rd-border: #e2e8f0; --rd-muted: #64748b; --rd-text: #0f172a; --rd-text-2: #334155;
  --rd-font: 'Public Sans', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rd-radius: 10px; --rd-radius-lg: 14px; --rd-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  --sn-warn-bg: #fffbeb; --sn-warn-fg: #92400e; --sn-bad-bg: #fef2f2; --sn-ok-bg: #ecfdf5;
  font-family: var(--rd-font); color: var(--rd-text); background: var(--rd-base); line-height: 1.55;
  padding-bottom: 48px; overflow-x: clip;
}
.sn *, .sn *::before, .sn *::after { box-sizing: border-box; }
.sn a { color: var(--rd-primary-800); }
.sn h1, .sn h2, .sn h3, .sn h4 { color: var(--rd-primary-900); margin: 0; line-height: 1.2; letter-spacing: 0; }
/* Sitewide polish CSS forces h2/h3 sizes with !important; restate ours so headings stay at the Stitch scale. */
.sn h2 { font-size: 22px !important; font-weight: 800; }
.sn h3 { font-size: 18px !important; font-weight: 700; }
.sn .sn-qa h2 { font-size: 22px !important; }
.sn p { margin: 0 0 12px; }
.sn :focus-visible { outline: 2px solid var(--rd-primary-700); outline-offset: 2px; }
.sn-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sn-muted { color: var(--rd-muted); }
.sn-small { font-size: 14px; }
.sn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sub-navigation: underline tabs, scrolls inside itself on narrow screens */
.sn-subnav { background: var(--rd-card); border-bottom: 1px solid var(--rd-border); }
.sn-subnav .sn-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sn-subnav .sn-wrap::-webkit-scrollbar { display: none; }
.sn-tab { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--rd-text-2) !important; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.sn-tab:hover { color: var(--rd-text) !important; border-bottom-color: var(--rd-border); }
.sn-tab.is-on { color: var(--rd-primary-800) !important; border-bottom-color: var(--rd-primary-800); }

/* Preview banner (noindex) */
.sn-preview { background: var(--sn-warn-bg); color: var(--sn-warn-fg); font-size: 14px; padding: 8px 0; border-bottom: 1px solid #fde68a; }

/* Hero */
.sn-hero { background: var(--rd-card); border-bottom: 1px solid var(--rd-border); padding: 28px 0 32px; }
.sn-hero-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.sn-eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rd-crimson); margin-bottom: 8px; }
.sn-h1 { font-size: clamp(28px, 6vw, 46px) !important; font-weight: 800; color: var(--rd-primary-900); }
.sn-sub { font-size: 17px; color: var(--rd-text-2); max-width: 60ch; margin-top: 12px; }
.sn-pagehead { background: var(--rd-card); border-bottom: 1px solid var(--rd-border); padding: 24px 0 20px; }
.sn-pagehead .sn-h1 { font-size: clamp(26px, 5vw, 38px) !important; }
.sn-crumbs { font-size: 14px; color: var(--rd-muted); margin-bottom: 8px; }
.sn-crumbs a { color: var(--rd-muted); }
.sn-answer { font-size: 17px; color: var(--rd-text); max-width: 75ch; margin-top: 16px; }

/* Buttons */
.sn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--rd-radius); font: 700 15px var(--rd-font); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.sn-btn--primary { background: var(--rd-primary-800); color: #fff !important; }
.sn-btn--primary:hover { background: var(--rd-primary-900); }
.sn-btn--ghost { background: #fff; color: var(--rd-primary-800) !important; border-color: var(--rd-primary-800); }
.sn-btn--ghost:hover { background: var(--rd-primary-50); }
.sn-btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Cards, sections */
.sn-section { padding-top: 32px; }
.sn-sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sn-sechead h2 { font-size: 22px; font-weight: 800; }
.sn-sechead a { font-weight: 600; font-size: 15px; }
.sn-card { background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg); padding: 16px; box-shadow: var(--rd-shadow); }
.sn-card + .sn-card { margin-top: 12px; }
.sn-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.sn-cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }

/* Finder */
.sn-finder { background: var(--rd-base); border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg); padding: 18px; }
.sn-finder h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.sn-fields { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.sn-field label { display: block; font-size: 14px; font-weight: 600; color: var(--rd-text-2); margin-bottom: 4px; }
.sn-select, .sn-input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--rd-text); font: 500 16px var(--rd-font); }
.sn-select:disabled { background: #f1f5f9; color: var(--rd-muted); }
.sn-finder-out { margin-top: 14px; min-height: 24px; }

/* Metric strip */
.sn-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); background: var(--rd-card); overflow: hidden; }
.sn-metric { padding: 14px 16px; border-left: 1px solid var(--rd-border); border-top: 1px solid var(--rd-border); color: inherit !important; text-decoration: none; display: block; }
.sn-metric:nth-child(-n+2) { border-top: 0; }
.sn-metric:nth-child(odd) { border-left: 0; }
.sn-metric:hover { background: var(--rd-primary-50); }
.sn-metric-n { display: block; font-size: 28px; font-weight: 800; color: var(--rd-primary-800); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sn-metric-l { display: block; font-size: 14px; color: var(--rd-muted); margin-top: 2px; }

/* Seat card */
.sn-seatcard { background: var(--rd-base); border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg); padding: 18px; }
.sn-seatcard-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; color: var(--rd-primary-900); }
.sn .rd-seats { position: relative; margin-top: 8px; }
.sn .rd-bar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; background: #f1f5f9; gap: 1px; }
.sn .rd-bar > span { display: block; height: 100%; min-width: 2px; }
.sn .rd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 14px; color: var(--rd-text-2); }
.sn .rd-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.sn .rd-majority { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--rd-primary-900); }

/* MP cards: fixed-size photo box, no layout shift */
.sn-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.sn-mpcard { display: flex; gap: 12px; align-items: flex-start; background: var(--rd-card); border: 1px solid var(--rd-border); border-left: 4px solid var(--party, var(--rd-pending)); border-radius: var(--rd-radius); padding: 12px; text-decoration: none; color: inherit !important; }
.sn-mpcard:hover { border-color: var(--rd-primary-800); border-left-color: var(--party, var(--rd-pending)); }
.sn-photo { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #e2e8f0; display: flex; align-items: center; justify-content: center; }
.sn-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sn-photo--lg { width: 120px; height: 120px; }
.sn-photo--framed { border-radius: 0; background: transparent; }   /* the HamroNeta.Online frame is part of the image */
.sn-photo-credit { display: block; flex-basis: 100%; font-size: 12px; color: #64748b; margin-top: 4px; }
.sn-initials { font-weight: 800; font-size: 22px; color: var(--rd-primary-800); background: var(--rd-primary-50); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.sn-photo--lg .sn-initials { font-size: 38px; }
.sn-mp-name { font-size: 17px; font-weight: 700; color: var(--rd-primary-900); display: block; line-height: 1.25; }
.sn-mp-alt { display: block; font-size: 14px; color: var(--rd-muted); }
.sn-mp-meta { display: block; font-size: 14px; color: var(--rd-text-2); margin-top: 4px; }
.sn-party { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--rd-text-2); }
.sn-party i { width: 10px; height: 10px; border-radius: 2px; background: var(--party, var(--rd-pending)); flex: 0 0 auto; }
.sn-party img { width: 18px; height: 18px; object-fit: contain; }

/* Badges */
.sn-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #f1f5f9; color: #475569; line-height: 1.5; }
.sn-badge--ok { background: var(--sn-ok-bg); color: #047857; }
.sn-badge--warn { background: var(--sn-warn-bg); color: var(--sn-warn-fg); }
.sn-badge--muted { background: #f1f5f9; color: #475569; }
.sn-badge--info { background: var(--rd-primary-50); color: var(--rd-primary-800); }
.sn-badge--bad { background: var(--sn-bad-bg); color: #b91c1c; }

/* Rows / lists */
.sn-rows { background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg); overflow: hidden; }
.sn-row { display: block; padding: 12px 16px; border-top: 1px solid var(--rd-border); color: inherit !important; text-decoration: none; }
.sn-row:first-child { border-top: 0; }
a.sn-row:hover { background: var(--rd-primary-50); }
.sn-row-t { display: block; font-weight: 700; color: var(--rd-primary-900); }
.sn-row-m { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--rd-muted); margin-top: 4px; align-items: center; }
.sn-empty { background: var(--rd-card); border: 1px dashed #cbd5e1; border-radius: var(--rd-radius); padding: 18px; color: var(--rd-muted); font-size: 15px; }
.sn-src { font-size: 14px; font-weight: 600; word-break: break-word; }
.sn-src--none { color: var(--rd-muted); font-weight: 500; }
.sn-excerpt { border-left: 3px solid var(--rd-border); padding: 2px 0 2px 12px; margin: 8px 0; color: var(--rd-text-2); white-space: pre-line; }
.sn-pre { white-space: pre-line; }

/* Key/value and timelines */
.sn-kv { display: grid; gap: 4px 16px; grid-template-columns: minmax(0, 1fr); margin: 0; }
.sn-kv dt { font-size: 14px; color: var(--rd-muted); font-weight: 600; }
.sn-kv dd { margin: 0 0 8px; font-weight: 600; }
.sn-tl { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--rd-border); }
.sn-tl li { position: relative; padding: 0 0 16px 12px; }
.sn-tl li::before { content: ''; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--rd-primary-800); border: 2px solid var(--rd-card); }
.sn-tl-t { font-weight: 700; display: block; }

/* Tables: stacked cards on mobile, real table from 640px */
.sn-table { width: 100%; border-collapse: collapse; background: var(--rd-card); }
.sn-table thead { display: none; }
.sn-table tr { display: block; padding: 10px 14px; border-top: 1px solid var(--rd-border); }
.sn-table tr:first-child { border-top: 0; }
.sn-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 15px; }
.sn-table .sn-cl { color: var(--rd-muted); font-weight: 600; font-size: 14px; }
.sn-tablewrap { border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg); overflow: hidden; }
.sn-fig { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Filters */
.sn-filters { background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg); padding: 14px; margin-bottom: 16px; }
.sn-filters-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.sn-filters .sn-btnrow { margin-top: 12px; }
.sn-count { font-size: 15px; color: var(--rd-muted); margin: 0 0 10px; }

/* Pager */
.sn-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.sn-pager a, .sn-pager span.sn-pg { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 16px; border: 1px solid var(--rd-border); border-radius: 8px; background: #fff; font-weight: 600; text-decoration: none; }
.sn-pager .is-off { color: #94a3b8; background: #f8fafc; }

/* Status strip */
.sn-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sn-strip-i { background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: 12px; }
.sn-strip-n { display: block; font-size: 24px; font-weight: 800; color: var(--rd-primary-800); font-variant-numeric: tabular-nums; }
.sn-strip-l { display: block; font-size: 14px; color: var(--rd-text-2); }

/* QA panel + flags */
.sn-qa { margin-top: 48px; border: 2px solid var(--rd-primary-800); border-radius: var(--rd-radius-lg); background: var(--rd-card); padding: 20px; }
.sn-qa h2 { font-size: 22px; font-weight: 800; }
.sn-qa ul { padding-left: 20px; margin: 8px 0 14px; }
.sn-qa li { margin-bottom: 4px; }
.sn-flag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--sn-bad-bg); color: #b91c1c; }
.sn-flag--warn { background: var(--sn-warn-bg); color: var(--sn-warn-fg); }
.sn-chip-dot { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; border: 1px solid rgba(15, 23, 42, .15); }
.sn-qagrid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sn-qacard { background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: 10px; text-align: center; }
.sn-qacard.has-flag { border-color: #fca5a5; }
.sn-qacard .sn-photo { width: 84px; height: 84px; margin: 0 auto 8px; }
.sn-qacard b { display: block; font-size: 14px; line-height: 1.3; }

.sn-source-foot { margin-top: 32px; padding: 14px 16px; border-top: 2px solid var(--rd-border); font-size: 14px; color: var(--rd-text-2); }
.sn-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border: 1px solid var(--rd-border); border-radius: 999px; font-size: 13px; text-decoration: none; background: #fff; }
.sn-inline-sub { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.sn details > summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.sn-tabs-local { display: flex; gap: 4px; border-bottom: 1px solid var(--rd-border); overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }

@media (min-width: 640px) {
  .sn-wrap { padding: 12px 24px; }
  .sn-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-qagrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sn-kv { grid-template-columns: 180px minmax(0, 1fr); }
  .sn-kv dd { margin: 0; }
  .sn-table thead { display: table-header-group; }
  .sn-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--rd-muted); padding: 10px 14px; border-bottom: 1px solid var(--rd-border); background: #f8fafc; }
  .sn-table tr { display: table-row; padding: 0; }
  .sn-table td { display: table-cell; padding: 10px 14px; border-top: 1px solid var(--rd-border); }
  .sn-table tr:first-child td { border-top: 0; }
  .sn-table .sn-cl { display: none; }
  .sn-metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .sn-metric, .sn-metric:nth-child(-n+2), .sn-metric:nth-child(odd) { border-top: 0; border-left: 1px solid var(--rd-border); }
  .sn-metric:first-child { border-left: 0; }
}
@media (min-width: 960px) {
  .sn-hero-grid { grid-template-columns: 6fr 5fr; gap: 40px; }
  .sn-cols--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sn-cols--main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .sn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sn-filters-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sn-qagrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .sn * { transition: none !important; } }
/* Finder results live in a narrow card: fit as many 260px cards as the width allows. */
.sn-finder .sn-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* The sitewide reset removes list bullets; restore them where the lists are real lists. */
.sn-qa ul, .sn-source-foot ul, .sn-card > ul:not(.sn-tl) { list-style: disc; }

/* ==========================================================================
   S4 - citizen forms, correction notes, policy pages, footer links
   ========================================================================== */
/* Strict EN/ne switch for rich (HTML) policy blocks: html[data-lang] is set by applyLanguage(). */
.sn-l-en { display: none; }
html[data-lang="en"] .sn-l-en { display: block; }
html[data-lang="en"] .sn-l-ne { display: none; }
html[data-lang="en"] ul.sn-l-en, html[data-lang="en"] ol.sn-l-en { display: block; }

.sn-notice { background: var(--sn-warn-bg); border: 1px solid #fde68a; border-radius: var(--rd-radius-lg); padding: 14px 16px; margin-bottom: 16px; color: var(--sn-warn-fg); }
.sn-notice h2 { font-size: 17px !important; color: var(--sn-warn-fg); margin-bottom: 6px; }
.sn-notice p { margin: 0 0 8px; }
.sn-notice a { color: var(--sn-warn-fg); font-weight: 600; }

.sn-form { padding: 18px; }
.sn-form .sn-fields { margin-top: 0; }
.sn-form .sn-field { margin-bottom: 14px; min-width: 0; }
.sn-form .sn-field--wide { grid-column: 1 / -1; }
.sn-textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.sn-fieldset { border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: 12px 14px 4px; margin: 4px 0 16px; min-width: 0; }
.sn-fieldset legend { font-weight: 700; font-size: 15px; color: var(--rd-primary-900); padding: 0 6px; }
.sn-hint { font-size: 14px; color: var(--rd-muted); margin: 4px 0 8px; }
.sn-err { font-size: 14px; color: #b91c1c; margin: 4px 0 0; }
.sn-req { color: var(--rd-crimson); }
.sn-formerr { background: var(--sn-bad-bg); border: 1px solid #fecaca; color: #991b1b; border-radius: var(--rd-radius); padding: 10px 14px; margin-bottom: 14px; }
.sn-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; min-height: 44px; padding: 6px 0; cursor: pointer; }
.sn-check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: var(--rd-primary-800); }
.sn-radios { display: grid; gap: 2px; margin-bottom: 8px; }
.sn-form .sn-field > label.sn-check, .sn-form label.sn-check { display: flex; font-weight: 500; color: var(--rd-text); margin-bottom: 0; }
/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.sn-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Public correction note on a corrected or annotated record */
.sn-correction { background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid var(--rd-primary-800); border-radius: var(--rd-radius); padding: 12px 16px; margin-bottom: 12px; }
.sn-correction-h { margin: 0 0 6px !important; color: var(--rd-primary-900); font-size: 15px; }

/* Policy pages */
.sn-policy .sn-prose, .sn-policy .sn-toc { max-width: 860px; }
.sn-prose p, .sn-prose li { font-size: 16px; line-height: 1.65; }
.sn-prose ul.sn-bullets, .sn-prose ol.sn-bullets { list-style: disc; padding-left: 22px; margin: 0 0 12px; }
.sn-prose ul.sn-bullets li { margin-bottom: 8px; padding-left: 2px; }
.sn-prose code { font-size: 13px; background: #f1f5f9; border-radius: 4px; padding: 1px 6px; color: var(--rd-text-2); }
.sn-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 24px; padding: 12px 16px; background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); font-size: 15px; }
.sn-toc b { flex: 0 0 100%; color: var(--rd-primary-900); }
.sn-toc a { display: inline-flex; align-items: center; min-height: 36px; }
.sn-prose { scroll-margin-top: 64px; }

/* Footer links and acknowledgement */
.sn-footlinks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.sn-footlinks a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.sn-ack { margin: 8px 0 0; font-size: 14px; color: var(--rd-muted); }
.sn-notice, .sn-form { max-width: 860px; }

/* ==========================================================================
   Wireframe build (18 Nov 2026): coded speeches, topics, count bars, chips.
   ========================================================================== */
.sn-tab--icon { margin-left: auto; padding: 0 10px; }
.sn-fab-search { display: none; }
@media (max-width: 700px) {
  .sn-fab-search { display: flex; position: fixed; right: 14px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 9989; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; background: var(--rd-primary-800); color: #fff !important; box-shadow: 0 6px 18px -8px rgba(11, 37, 69, .6); }
}
.sn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 14px 0 0; }
.sn-tile { background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: 14px 16px; }
.sn-tile b { display: block; font-size: 26px; font-weight: 800; color: var(--rd-primary-900); line-height: 1.15; font-variant-numeric: tabular-nums; }
.sn-tile span { font-size: 14px; color: var(--rd-muted); }
.sn-two { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .sn-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sn-two--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.sn-bars { display: grid; gap: 10px; }
.sn-bar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 15px; }
.sn-bar-l { overflow-wrap: anywhere; }
.sn-bar-t { height: 10px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.sn-bar-t i { display: block; height: 100%; background: var(--rd-primary-800); border-radius: 6px; }
.sn-bar-n { font-size: 14px; min-width: 28px; text-align: right; }
.sn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.sn-chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--rd-border); background: var(--rd-card); border-radius: 22px; font: 600 14px/1 var(--rd-font); color: var(--rd-text-2); cursor: pointer; }
.sn-chip.is-on { background: var(--rd-primary-50); border-color: var(--rd-primary-800); color: var(--rd-primary-800); }
.sn-spctl { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-bottom: 4px; }
@media (min-width: 700px) { .sn-spctl { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.sn-speech { background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: 14px 16px; margin: 10px 0; }
.sn-speech[hidden] { display: none; }
.sn-speech.is-flash { border-color: var(--rd-primary-800); box-shadow: 0 0 0 3px var(--rd-primary-50); }
.sn-speech-h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 8px; }
.sn-speech-who a, .sn-speech-who span { font-size: 16px; font-weight: 700; text-decoration: none; }
.sn-ts { display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; border-radius: 6px; background: var(--rd-primary-50); color: var(--rd-primary-800) !important; font: 700 14px/1 var(--rd-font); font-variant-numeric: tabular-nums; text-decoration: none; }
.sn-speech .sn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sn-badge--topic { background: #f1f5f9; color: var(--rd-text-2) !important; text-decoration: none; }
a.sn-badge--topic:hover { background: var(--rd-primary-50); color: var(--rd-primary-800) !important; }
.sn-badge--hour { background: color-mix(in srgb, var(--hc, #64748b) 14%, #fff); color: var(--hc, #64748b); }
.sn-badge--party { background: color-mix(in srgb, var(--pc, #64748b) 14%, #fff); color: var(--pc, #64748b); }
.sn-speech-sum { font-size: 16px; margin: 0 0 6px; }
.sn-speech-sumlabel { color: #dc2626; font-weight: 800; }
.sn-speech-sumtxt { display: block; margin-top: 2px; }
.sn-speech-sumtxt.sn-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sn-more4 { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 700; color: var(--rd-primary-800); cursor: pointer; margin-top: 4px; display: inline-block; }
.sn-speech-txt summary { cursor: pointer; color: var(--rd-primary-800); font-size: 14px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.sn-speech-txt .sn-pre { margin-top: 6px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sn-speech-min { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.sn-speech-foot { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--rd-border); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }

/* Avatar in the speech header, initials-fallback same pattern as the photo wall. */
.sn-speech-ph { position: relative; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 999px; overflow: hidden; background: var(--rd-primary-50); display: inline-flex; align-items: center; justify-content: center; }
.sn-speech-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sn-speech-ini { font-size: 13px; font-weight: 800; color: var(--rd-primary-800); }
.sn-speech-meta { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; flex: 1 1 auto; min-width: 0; }
.sn-speech-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.sn-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 44px; border-radius: 999px; border: 1px solid var(--rd-border); background: #fff; color: var(--rd-text-2); cursor: pointer; text-decoration: none; }
.sn-iconbtn:hover { border-color: var(--rd-primary-800); color: var(--rd-primary-800); }
.sn-iconbtn.is-on, .sn-iconbtn[aria-pressed="true"] { background: var(--rd-primary-50); border-color: var(--rd-primary-800); color: var(--rd-primary-800); }
.sn-iconbtn.is-done { background: var(--sn-ok-bg); border-color: transparent; color: #047857; }
.sn-iconbtn.is-disabled { opacity: .4; cursor: not-allowed; }
.sn-iconbtn.is-disabled:hover { border-color: var(--rd-border); color: var(--rd-text-2); }

/* Footer status dot: ok (answered) / warn (no response yet). */
.sn-dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; }
.sn-dot--ok { background: #059669; }
.sn-dot--warn { background: #d97706; }
.sn-topicgrid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .sn-topicgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .sn-topicgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sn-topic { display: flex; gap: 12px; align-items: center; background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: 14px; text-decoration: none; min-height: 72px; }
.sn-topic:hover { border-color: var(--rd-primary-800); }
.sn-topic-i { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
.sn-topic b { display: block; color: var(--rd-primary-900); font-size: 16px; line-height: 1.25; }
.sn-topic small { color: var(--rd-muted); font-size: 14px; }
.sn-segs { display: inline-flex; border: 1px solid var(--rd-border); border-radius: 10px; overflow: hidden; margin-bottom: 12px; max-width: 100%; }
.sn-segs button { min-height: 44px; padding: 0 12px; border: 0; background: var(--rd-card); font: 600 14px/1 var(--rd-font); color: var(--rd-text-2); cursor: pointer; }
.sn-segs button.is-on { background: var(--rd-primary-800); color: #fff; }
.sn-latest { background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg); padding: 18px; }
.sn-latest dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 12px 0; font-size: 15px; }
.sn-latest dt { color: var(--rd-muted); }
.sn-latest dd { margin: 0; font-weight: 700; }
.sn-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.sn-pill--ok { background: var(--sn-ok-bg); color: #047857; }
.sn-pill--wait { background: #f1f5f9; color: var(--rd-muted); }
.sn-tabs3 { display: flex; gap: 4px; border-bottom: 1px solid var(--rd-border); margin-bottom: 14px; overflow-x: auto; }
.sn-tabs3 button { flex: 0 0 auto; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; font: 600 15px/1 var(--rd-font); color: var(--rd-text-2); cursor: pointer; }
.sn-tabs3 button.is-on { color: var(--rd-primary-800); border-bottom-color: var(--rd-primary-800); }
.sn-homegrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .sn-homegrid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

/* ==========================================================================
   Wireframe extras (19 Nov 2026): accessibility, pop-up search, video box,
   follow / share / embed, timeline, citizen voice.
   ========================================================================== */
.sn-a11y-btn { position: fixed; right: 14px; bottom: 150px; z-index: 9988; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #0f766e; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(11, 37, 69, .6); }
@media (max-width: 700px) { .sn-a11y-btn { bottom: calc(206px + env(safe-area-inset-bottom)); } }
.sn-pop { position: fixed; right: 14px; bottom: 206px; z-index: 9993; width: min(340px, calc(100vw - 28px)); max-height: calc(100vh - 230px); overflow: auto; background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg); padding: 16px; box-shadow: 0 20px 50px -20px rgba(11, 37, 69, .5); }
.sn-pop[hidden], .sn-modal[hidden], .sn-toast[hidden] { display: none; }
.sn-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 15px; border-top: 1px solid var(--rd-border); margin: 0; }
.sn-pop-row:first-of-type { border-top: 0; margin-top: 8px; }
.sn-pop-row input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 22px; }
.sn-modal { position: fixed; inset: 0; z-index: 9995; background: rgba(11, 37, 69, .55); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 14px 14px; overflow: auto; }
.sn-modal-box { width: min(640px, 100%); background: var(--rd-card); border-radius: var(--rd-radius-lg); padding: 18px; box-shadow: 0 30px 60px -30px rgba(11, 37, 69, .7); }
.sn-hit-h { font-size: 14px !important; color: var(--rd-muted) !important; margin: 14px 0 4px !important; font-weight: 700; }
a.sn-hit { display: block; padding: 10px 8px; border-radius: 8px; text-decoration: none; min-height: 44px; }
a.sn-hit:hover, a.sn-hit:focus { background: var(--rd-primary-50); }
a.sn-hit b { display: block; color: var(--rd-primary-900); font-size: 15px; }
a.sn-hit small { display: block; color: var(--rd-muted); font-size: 14px; }
.sn-video-frame { position: relative; aspect-ratio: 16 / 9; background: #0b2545; border-radius: 10px; overflow: hidden; }
.sn-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sn-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 9996; max-width: calc(100vw - 28px); background: var(--rd-primary-900); color: #fff; padding: 10px 16px; border-radius: 22px; font-size: 14px; font-weight: 600; }
.sn .sn-btn[data-follow].is-on { background: var(--rd-primary-50); border-color: var(--rd-primary-800); }
.sn-timeline { display: flex; gap: 2px; height: 22px; border-radius: 8px; overflow: hidden; margin: 6px 0; }
.sn-timeline button { border: 0; min-width: 6px; padding: 0; cursor: pointer; }
.sn-timeline button:hover, .sn-timeline button:focus-visible { filter: brightness(1.25); }
.sn-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--rd-text-2); margin: 0; }
.sn-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.sn-speakers { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.sn-speakers .sn-chip { flex: 0 0 auto; }
.sn-myarea { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; padding: 10px 12px; background: var(--rd-primary-50); border-radius: var(--rd-radius); }
.sn-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.sn-steps li { flex: 1 1 140px; padding: 8px 10px; border-radius: 8px; background: #f1f5f9; color: var(--rd-muted); font-size: 14px; font-weight: 600; }
.sn-steps li b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: #cbd5e1; color: #fff; margin-right: 6px; font-size: 14px; }
.sn-steps li.is-on { background: var(--rd-primary-50); color: var(--rd-primary-800); }
.sn-steps li.is-on b { background: var(--rd-primary-800); }
.sn-steps li.is-done b { background: var(--rd-emerald); }
.sn-track { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.sn-track li { display: flex; align-items: center; gap: 10px; color: var(--rd-muted); font-size: 15px; }
.sn-track li b { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: #e2e8f0; color: var(--rd-text-2); font-size: 14px; flex: 0 0 26px; }
.sn-track li.is-done { color: var(--rd-text); font-weight: 600; }
.sn-track li.is-done b { background: var(--rd-emerald); color: #fff; }
.sn-answer-box { margin-top: 10px; padding: 12px 14px; border-left: 4px solid var(--rd-emerald); background: var(--sn-ok-bg); border-radius: 0 8px 8px 0; }
.sn-demo-note { background: var(--sn-warn-bg); color: var(--sn-warn-fg); border: 1px solid #fde68a; border-radius: var(--rd-radius); padding: 10px 14px; font-size: 14px; margin: 0 0 12px; }

/* Accessibility settings (set from the button; stored in the visitor's browser) */
.sn.sn-a11y-hc { --rd-base: #fff; --rd-card: #fff; --rd-text: #000; --rd-text-2: #000; --rd-muted: #1f2937; --rd-border: #000; --rd-primary-800: #0b2545; }
.sn.sn-a11y-hc .sn-muted, .sn.sn-a11y-hc .sn-small { color: #111 !important; }
.sn.sn-a11y-ul a:not(.sn-btn):not(.sn-tab):not(.sn-app-i) { text-decoration: underline !important; }
.sn.sn-a11y-sp { letter-spacing: .04em; line-height: 1.9; word-spacing: .12em; }
.sn.sn-a11y-sp p, .sn.sn-a11y-sp li { margin-bottom: 1em; }
.sn.sn-a11y-still *, .sn.sn-a11y-still *::before, .sn.sn-a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.sn.sn-a11y-low img, .sn.sn-a11y-low video, .sn.sn-a11y-low .ap-shot { display: none !important; }

/* Up/down vote on the MP profile, and the MP's own answers (19 Nov 2026). */
.sn-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rd-border, #e2e8f0); }
.sn-rate-l { font-weight: 700; color: var(--rd-primary-900, #0b2545); margin-right: 4px; }
.sn-rate-b { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: var(--rd-text, #0f172a); font: 600 15px var(--rd-font); cursor: pointer; }
.sn-rate-b svg { width: 18px; height: 18px; fill: currentColor; }
.sn-rate-b b { font-weight: 800; }
.sn-rate-b--up:hover, .sn-rate-b--up.is-on { border-color: #059669; color: #047857; background: #ecfdf5; }
.sn-rate-b--down:hover, .sn-rate-b--down.is-on { border-color: #dc2626; color: #b91c1c; background: #fef2f2; }
.sn-rate.is-busy .sn-rate-b { opacity: .6; pointer-events: none; }
.sn-rate-note, .sn-rate .sn-err { flex: 1 0 100%; margin: 0; }
.sn-ow { display: grid; gap: 14px; }
.sn-ow-i { background: #fff; border: 1px solid var(--rd-border, #e2e8f0); border-left: 4px solid var(--rd-primary-800, #133e87); border-radius: 0 12px 12px 0; padding: 14px 16px; }
.sn-ow-q { font-size: 16px !important; line-height: 1.4; margin: 0 0 6px; color: var(--rd-primary-900, #0b2545); }
.sn-ow-a { margin: 0; font-size: 17px; line-height: 1.6; }
.sn-ow-wait { padding: 14px 16px; }
.sn-ow-list { margin-top: 10px; }
.sn-ow-list summary { cursor: pointer; font-weight: 600; color: var(--rd-primary-800, #133e87); min-height: 44px; display: flex; align-items: center; }
.sn-ow-list ol { margin: 6px 0 0; padding-left: 22px; }
.sn-ow-list li { margin-bottom: 6px; }
.sn-mf-q label { font-size: 17px; line-height: 1.45; }
.sn-mf-n { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; margin-right: 6px; border-radius: 999px; background: var(--rd-primary-50, #eff6ff); color: var(--rd-primary-800, #133e87); font-weight: 800; font-size: 15px; }
.sn-mf-q textarea.sn-input { min-height: 120px; line-height: 1.5; }
.sn-notice--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.sn-notice--ok a { color: #065f46; }
