/* ==========================================================================
   Tingboka — "Nordic Civic Editorial" Design System
   Zero external fonts, zero dependencies, Light & Dark adaptive via
   color-scheme + light-dark() with explicit fallbacks.
   ========================================================================== */

:root {
  --font-editorial: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Raw Light / Dark Palette Pairs */
  --bg-light: #f6f5f0;
  --bg-dark: #09131d;
  --surface-light: #ffffff;
  --surface-dark: #101e2b;
  --surface-subtle-light: #efede6;
  --surface-subtle-dark: #162738;
  --surface-tint-light: #e9f2f5;
  --surface-tint-dark: #122c3a;
  --surface-sage-light: #e8f3ee;
  --surface-sage-dark: #132c28;
  --header-bg-light: rgba(246, 245, 240, 0.9);
  --header-bg-dark: rgba(9, 19, 29, 0.9);

  --border-light: #dfe3e6;
  --border-dark: #213447;
  --border-strong-light: #bfc9d1;
  --border-strong-dark: #334e67;

  --ink-light: #0d1f2f;
  --ink-dark: #f0f5f9;
  --muted-light: #4e5f70;
  --muted-dark: #97acc1;

  --teal-light: #135c74;
  --teal-dark: #63c5e0;
  --teal-hover-light: #0c4457;
  --teal-hover-dark: #88d6ec;

  --for-bg-light: #e5f4eb;
  --for-bg-dark: #143627;
  --for-ink-light: #155c38;
  --for-ink-dark: #7de2a9;

  --against-bg-light: #fdebe9;
  --against-bg-dark: #3f1b1c;
  --against-ink-light: #9b2a26;
  --against-ink-dark: #f79e9a;

  --vara-bg-light: #eceffa;
  --vara-bg-dark: #1e2748;
  --vara-ink-light: #3c4884;
  --vara-ink-dark: #b4c0ff;

  --heat-rgb-light: 19, 92, 116;
  --heat-rgb-dark: 99, 197, 224;

  --scroll-thumb-light: #98a7b4;
  --scroll-thumb-dark: #3d566e;
  --scroll-track-light: #efede6;
  --scroll-track-dark: #101e2b;

  /* Fixed Brand Anchors */
  --fjord: #0d1f2f;
  --lime: #c8f461;
  --lime-ink: #17300e;

  /* Default Fallback Tokens (Light) */
  --bg: var(--bg-light);
  --surface: var(--surface-light);
  --surface-subtle: var(--surface-subtle-light);
  --surface-tint: var(--surface-tint-light);
  --surface-sage: var(--surface-sage-light);
  --header-bg: var(--header-bg-light);
  --line: var(--border-light);
  --line-strong: var(--border-strong-light);
  --ink: var(--ink-light);
  --muted: var(--muted-light);
  --blue: var(--teal-light);
  --blue-hover: var(--teal-hover-light);
  --for-bg: var(--for-bg-light);
  --for-ink: var(--for-ink-light);
  --against-bg: var(--against-bg-light);
  --against-ink: var(--against-ink-light);
  --vara-bg: var(--vara-bg-light);
  --vara-ink: var(--vara-ink-light);
  --heat-rgb: var(--heat-rgb-light);
  --scroll-thumb: var(--scroll-thumb-light);
  --scroll-track: var(--scroll-track-light);
  --shadow-sm: 0 1px 2px rgba(13, 31, 47, 0.05);
  --shadow-lg: 0 22px 60px rgba(8, 20, 32, 0.22);

  /* Fallback for browsers without light-dark() */
  @media (prefers-color-scheme: dark) {
    --bg: var(--bg-dark);
    --surface: var(--surface-dark);
    --surface-subtle: var(--surface-subtle-dark);
    --surface-tint: var(--surface-tint-dark);
    --surface-sage: var(--surface-sage-dark);
    --header-bg: var(--header-bg-dark);
    --line: var(--border-dark);
    --line-strong: var(--border-strong-dark);
    --ink: var(--ink-dark);
    --muted: var(--muted-dark);
    --blue: var(--teal-dark);
    --blue-hover: var(--teal-hover-dark);
    --for-bg: var(--for-bg-dark);
    --for-ink: var(--for-ink-dark);
    --against-bg: var(--against-bg-dark);
    --against-ink: var(--against-ink-dark);
    --vara-bg: var(--vara-bg-dark);
    --vara-ink: var(--vara-ink-dark);
    --heat-rgb: var(--heat-rgb-dark);
    --scroll-thumb: var(--scroll-thumb-dark);
    --scroll-track: var(--scroll-track-dark);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.52);
  }

  /* Progressive enhancement with CSS light-dark() */
  @supports (color: light-dark(white, black)) {
    --bg: light-dark(var(--bg-light), var(--bg-dark));
    --surface: light-dark(var(--surface-light), var(--surface-dark));
    --surface-subtle: light-dark(var(--surface-subtle-light), var(--surface-subtle-dark));
    --surface-tint: light-dark(var(--surface-tint-light), var(--surface-tint-dark));
    --surface-sage: light-dark(var(--surface-sage-light), var(--surface-sage-dark));
    --header-bg: light-dark(var(--header-bg-light), var(--header-bg-dark));
    --line: light-dark(var(--border-light), var(--border-dark));
    --line-strong: light-dark(var(--border-strong-light), var(--border-strong-dark));
    --ink: light-dark(var(--ink-light), var(--ink-dark));
    --muted: light-dark(var(--muted-light), var(--muted-dark));
    --blue: light-dark(var(--teal-light), var(--teal-dark));
    --blue-hover: light-dark(var(--teal-hover-light), var(--teal-hover-dark));
    --for-bg: light-dark(var(--for-bg-light), var(--for-bg-dark));
    --for-ink: light-dark(var(--for-ink-light), var(--for-ink-dark));
    --against-bg: light-dark(var(--against-bg-light), var(--against-bg-dark));
    --against-ink: light-dark(var(--against-ink-light), var(--against-ink-dark));
    --vara-bg: light-dark(var(--vara-bg-light), var(--vara-bg-dark));
    --vara-ink: light-dark(var(--vara-ink-light), var(--vara-ink-dark));
    --scroll-thumb: light-dark(var(--scroll-thumb-light), var(--scroll-thumb-dark));
    --scroll-track: light-dark(var(--scroll-track-light), var(--scroll-track-dark));
  }

  color-scheme: light dark;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-synthesis: none;
  accent-color: var(--blue);
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

@supports not (scrollbar-color: auto) {
  :root { scrollbar-width: auto; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 6px; }
  ::-webkit-scrollbar-track { background: var(--scroll-track); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

a { color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); }

button, input, select { font: inherit; }
button, select { cursor: pointer; }
button {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
button:hover:not(:disabled) {
  background: var(--surface-subtle);
  border-color: var(--blue);
}
button:disabled { opacity: 0.42; cursor: default; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 36px);
}

.skip {
  position: fixed;
  inset-inline-start: 14px;
  inset-block-start: -100px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--blue);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { inset-block-start: 14px; }

/* ==========================================================================
   MASTHEAD & ADAPTIVE NAVIGATION (modern-web-guidance: navbar)
   ========================================================================== */
.civic-stripe {
  height: 3px;
  background: linear-gradient(90deg, #0d1f2f 0%, #135c74 62%, #c8f461 100%);
}

.masthead {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead.is-measuring * { transition: none !important; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding-block: 10px;
}

.header-inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--fjord);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand-name span { font-weight: 450; color: var(--muted); }
.brand-tag {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-button {
  anchor-name: --menu-button;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  min-height: 38px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.site-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  position: fixed;
  inset: auto;
  inset-block-start: 4.6rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(82dvw, 19rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  margin-block-start: 0.4rem;
  overflow: auto;
}

.site-menu[popover]:not(:is(:popover-open, .\:popover-open)) { display: none; }
.site-menu[popover]:is(:popover-open, .\:popover-open) { display: grid; gap: 2px; }

.site-menu a {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.site-menu a:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}
.site-menu a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  background: var(--surface-tint);
  box-shadow: inset 3px 0 0 var(--blue);
}

/* Wide inline navigation state */
.masthead.is-wide .menu-button { display: none; }
.masthead.is-wide .site-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 2px;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.masthead.is-wide .site-menu::backdrop { display: none; }
.masthead.is-wide .site-menu a {
  padding: 7px 11px;
  border-radius: 8px;
}
.masthead.is-wide .site-menu a[aria-current="page"] {
  background: var(--surface-subtle);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  min-height: 38px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 550;
}
.cmd-trigger:hover { color: var(--ink); border-color: var(--blue); }
.cmd-trigger kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ==========================================================================
   ⌘K GLOBAL QUICK-FIND POPOVER PALETTE
   ========================================================================== */
.cmd-palette {
  width: min(640px, calc(100dvw - 24px));
  max-height: min(76dvh, 560px);
  margin: min(11dvh, 96px) auto auto;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cmd-palette[popover]:not(:is(:popover-open, .\:popover-open)) { display: none; }
.cmd-palette[popover]:is(:popover-open, .\:popover-open) {
  display: flex;
  flex-direction: column;
}
.cmd-palette::backdrop {
  background: rgba(9, 19, 29, 0.52);
  backdrop-filter: blur(4px);
}

@media (prefers-reduced-motion: no-preference) {
  .cmd-palette[popover],
  .site-menu[popover] {
    transition: opacity 150ms ease, translate 150ms ease, display 150ms ease, overlay 150ms ease;
    transition-behavior: allow-discrete;
    opacity: 0;
    translate: 0 -6px;
  }
  .cmd-palette[popover]:is(:popover-open, .\:popover-open),
  .site-menu[popover]:is(:popover-open, .\:popover-open) {
    opacity: 1;
    translate: 0 0;
  }
  @starting-style {
    .cmd-palette[popover]:is(:popover-open, .\:popover-open),
    .site-menu[popover]:is(:popover-open, .\:popover-open) {
      opacity: 0;
      translate: 0 -6px;
    }
  }
}

.cmd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
}
.cmd-head input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
}
.cmd-head input::placeholder { color: var(--muted); }
.cmd-close {
  padding: 4px 9px;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-subtle);
  border-color: var(--line);
}

.cmd-results {
  overflow-y: auto;
  padding: 8px;
  display: grid;
  gap: 2px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.cmd-item:hover,
.cmd-item.is-active {
  background: var(--surface-tint);
  color: var(--ink);
}
.cmd-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cmd-item-main strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-item-main span {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--muted);
}
.cmd-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.cmd-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ==========================================================================
   EDITORIAL TYPOGRAPHY, INTRO & CONTEXT
   ========================================================================== */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 10px;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding-block: 42px 24px;
}

.intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill-lime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pill-subtle {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.intro h1,
.view-heading h1,
.profile-page #profile-name,
#metode h1,
.seo-summary h1 {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

h2 {
  font-family: var(--font-editorial);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

.lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

.edition {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 245px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
  box-shadow: var(--shadow-sm);
}
.edition-label {
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
}
.edition strong {
  color: var(--ink);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.context {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--blue);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 24px;
}
.context p { margin: 0; font-size: 0.875rem; line-height: 1.65; color: var(--ink); }
.info-icon {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ==========================================================================
   KPI STATS STRIP
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stats > div {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats > div + div { border-inline-start: 1px solid var(--line); }
.stats span { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.stats strong {
  font-size: 2.15rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stats > div:last-child strong { font-size: 1.65rem; margin-top: 4px; }
.stats small { font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }

/* ==========================================================================
   169-SEAT COMPOSITION BAR & CIVIC PULSE BENTO GRID
   ========================================================================== */
.civic-pulse {
  display: grid;
  gap: 20px;
  margin-bottom: 34px;
}

.seat-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.seat-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.seat-panel-head .eyebrow { margin-bottom: 4px; }
.seat-majority {
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.seat-bar-wrap { position: relative; padding-block: 4px; }
.seat-bar {
  display: flex;
  height: 18px;
  border-radius: 8px;
  overflow: hidden;
  gap: 2px;
  background: var(--surface-subtle);
}
.seat-seg {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: var(--party);
  height: 100%;
  transition: opacity 140ms ease;
}
.seat-seg:hover { opacity: 0.82; background: var(--party); }
.seat-midline {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50%;
  width: 2px;
  background: var(--ink);
  opacity: 0.45;
  pointer-events: none;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 550;
}
.seat-chip span { color: var(--muted); font-variant-numeric: tabular-nums; }
.seat-chip:hover { border-color: var(--blue); background: var(--surface-tint); }

.pulse-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.pulse-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.pulse-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pulse-top .eyebrow { margin: 0; }
.pulse-badge-warn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--against-bg);
  color: var(--against-ink);
  font-variant-numeric: tabular-nums;
}
.pulse-badge-soft {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.pulse-card h3 {
  font-family: var(--font-editorial);
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.pulse-card h3 a { color: inherit; text-decoration: none; }
.pulse-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.pulse-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.pulse-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pulse-more {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
}
.pulse-more:hover { text-decoration: underline; }

.pulse-list {
  display: grid;
  gap: 8px;
}
.pulse-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  transition: border-color 140ms ease, background 140ms ease;
}
.pulse-mini:hover {
  border-color: var(--blue);
  background: var(--surface-tint);
  color: var(--ink);
}
.pulse-mini-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--muted);
}
.pulse-mini-meta strong { color: var(--blue); white-space: nowrap; }
.pulse-mini-title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pulse-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pulse-chips a {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}
.pulse-chips a:hover { border-color: var(--blue); background: var(--surface-tint); }
.pulse-chips .pulse-chip-all {
  background: var(--fjord);
  border-color: var(--fjord);
  color: #ffffff;
}
.pulse-chips .pulse-chip-all:hover { opacity: 0.9; background: var(--fjord); color: #ffffff; }

/* ==========================================================================
   PARTY QUICK-FILTER PILLS & FILTER PANELS
   ========================================================================== */
.section-title,
.panel-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-title .eyebrow,
.panel-title .eyebrow { margin-bottom: 5px; }
#result-count {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.party-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.party-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}
.party-pill span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.party-pill.is-active {
  background: var(--pill-color, var(--fjord));
  border-color: var(--pill-color, var(--fjord));
  color: #ffffff;
}
.party-pill.is-active span { color: rgba(255, 255, 255, 0.82); }
.party-pill.is-active .party-dot { background: #ffffff; }
.party-pill.is-active:hover {
  background: var(--pill-color, var(--fjord));
  border-color: var(--pill-color, var(--fjord));
  opacity: 0.92;
}

.filters,
.bank-filters,
.roll-filters,
.hearing-filters,
.analysis-controls {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.filters {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.25fr;
  gap: 12px;
}

.filters label,
.bank-filters label,
.roll-filters label,
.hearing-filters label,
.local-filters label,
.local-case-controls label,
.analysis-controls > label:not(.check-control),
.profile-toolbar label,
.pair-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted);
}

.filters input,
.filters select,
.bank-filters input,
.bank-filters select,
.roll-filters input,
.roll-filters select,
.hearing-filters input,
.hearing-filters select,
.local-start select,
.local-filters input,
.local-filters select,
.local-case-controls select,
.analysis-controls select,
.profile-toolbar select,
.pair-filter select,
.hearing-input-search input,
#sender-search,
#sender-sort,
.history-heading select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  background-color: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--ink);
}
.filters input::placeholder,
.bank-filters input::placeholder,
.hearing-filters input::placeholder,
.local-filters input::placeholder { color: var(--muted); }

/* Uniform custom chevron spacing on all <select> dropdowns (light & dark) */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline: 12px 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234e5f70' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}
@media (prefers-color-scheme: dark) {
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2397acc1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}
@media (forced-colors: active) {
  select {
    appearance: auto;
    -webkit-appearance: auto;
    padding-inline: 12px !important;
    background-image: none !important;
  }
}

.table-note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 16px;
}

/* ==========================================================================
   CONTAINER-RESPONSIVE TABLES (modern-web-guidance: responsive-table)
   ========================================================================== */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.rep-table-wrap {
  container-type: inline-size;
  max-block-size: min(760px, 82dvh);
  overflow: auto;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  text-align: left;
}

.rep-table {
  min-width: 980px;
  --label-2: "Parti / distrikt";
  --label-3: "Egen deltakelse";
  --label-4: "Stemmer / egne reg.";
  --label-5: "Med partiflertallet";
  --label-6: "Mot partiflertallet";
  --label-7: "Vara oppført";
  --label-8: "Uten egen reg.";
}

.rep-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

th {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 650;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
}

td,
tbody th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.45;
  vertical-align: middle;
}

.rep-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink);
}

tbody tr:last-child td,
tbody tr:last-child th { border-bottom: 0; }

tbody tr[data-row-person] { cursor: pointer; }
tbody tr:hover td,
tbody tr:hover th { background: var(--surface-tint); }
tbody tr[data-row-person]:hover .person-link { color: var(--blue); }

.sort-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: inherit;
  width: 100%;
  border: 0;
  padding: 0;
  min-height: 32px;
  background: transparent;
  font-size: inherit;
  font-weight: 650;
  color: inherit;
  line-height: 1.4;
}
.numeric .sort-heading { justify-content: flex-end; }
.sort-heading:hover:not(:disabled) {
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sort-arrow { flex-shrink: 0; color: var(--muted); }
th[aria-sort="ascending"],
th[aria-sort="descending"] {
  color: var(--blue);
  background: var(--surface-tint);
}
th[aria-sort="ascending"] .sort-arrow,
th[aria-sort="descending"] .sort-arrow { color: var(--blue); }

.person-link {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  font-weight: 650;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.45;
}
.person-link:hover:not(:disabled) {
  background: none;
  text-decoration: underline;
  color: var(--blue);
}

.party-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  color: var(--ink);
}
.party-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--party);
}
.district {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 450;
  display: block;
  margin-top: 2px;
}

.rate-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 145px;
}
.rate-number {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 52px;
  color: var(--ink);
}
.rate-track {
  height: 6px;
  background: var(--surface-subtle);
  width: 84px;
  border-radius: 999px;
  overflow: hidden;
}
.rate-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
}

.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.sub-count { color: var(--muted); }

.stat-drill {
  border: 0;
  background: transparent;
  padding: 4px 8px;
  min-width: 34px;
  min-height: 34px;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: 6px;
}
.stat-drill:hover:not(:disabled) {
  background: var(--against-bg);
  color: var(--against-ink);
}
.party-against { color: var(--against-ink); }
.party-with { color: var(--for-ink); }

/* Container-query stacked mobile cards for representative table */
@container (width < 760px) {
  .rep-table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
    max-block-size: none;
    overflow: visible;
  }
  .rep-table { min-width: 0; }
  .rep-table,
  .rep-table thead,
  .rep-table tbody,
  .rep-table tr,
  .rep-table th,
  .rep-table td { display: block; }
  .rep-table thead { display: none; }
  .rep-table tbody { display: grid; gap: 12px; }
  .rep-table tbody tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .rep-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--surface-subtle);
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }
  .rep-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    text-align: right;
  }
  .rep-table tbody td::before {
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
  }
  .rep-table td:nth-child(2)::before { content: var(--label-2); }
  .rep-table td:nth-child(3)::before { content: var(--label-3); }
  .rep-table td:nth-child(4)::before { content: var(--label-4); }
  .rep-table td:nth-child(5)::before { content: var(--label-5); }
  .rep-table td:nth-child(6)::before { content: var(--label-6); }
  .rep-table td:nth-child(7)::before { content: var(--label-7); }
  .rep-table td:nth-child(8)::before { content: var(--label-8); }
  .rep-table .rate-cell { justify-content: flex-end; min-width: 0; }
  .rep-table .district { margin-top: 0; }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 42px;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pagination > div { display: flex; gap: 8px; }

/* ==========================================================================
   CHARTS
   ========================================================================== */
.chart-panel {
  padding: 24px 26px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.chart-key {
  font-size: 0.8125rem;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.chart-key i { width: 10px; height: 10px; background: var(--blue); border-radius: 3px; }

.monthly-chart {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.month {
  flex: 1;
  min-width: 54px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.month-value {
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 650;
  height: 22px;
  font-variant-numeric: tabular-nums;
}
.month-track {
  height: 100px;
  position: relative;
  background: linear-gradient(to top, var(--line) 1px, transparent 1px) 0 0 / 100% 25%;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.month-bar {
  background: var(--blue);
  width: 60%;
  max-width: 40px;
  border-radius: 5px 5px 0 0;
}
.month:last-child .month-bar { background: var(--lime); }
.month-label { margin-top: 9px; white-space: nowrap; }
.chart-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.6;
}

/* ==========================================================================
   EXPLORER VIEWS, VOTE BANK, VOTE DETAIL & PARTY MATRIX
   ========================================================================== */
.explorer-view {
  padding: 34px 0 52px;
  min-height: 65vh;
}
.explorer-view :is(h1, h2, h3)[tabindex]:focus { outline: none; }
.explorer-view :is(h1, h2, h3)[tabindex]:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 6px; }

.view-heading { margin: 0 0 24px; }
.view-heading .lead { max-width: 820px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.subheading { margin: 32px 0 16px; }

.bank-filters {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 14px;
}
.bank-filters .wide { grid-column: span 2; }
.bank-filters button { align-self: end; min-height: 42px; }

.roll-filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
}

.vote-list { display: grid; gap: 14px; }
.vote-card {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: start;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.vote-card-date {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vote-card-date span { display: block; font-size: 0.78rem; margin-top: 4px; }
.vote-card h3 {
  font-family: var(--font-editorial);
  font-size: 1.12rem;
  line-height: 1.38;
  margin: 0 0 8px;
}
.vote-card h3 a, .case-title { color: var(--ink); text-decoration: none; }
.vote-card h3 a:hover, .case-title:hover { text-decoration: underline; color: var(--blue); }
.vote-card p { font-size: 0.875rem; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.detail-link { font-size: 0.875rem; font-weight: 650; white-space: nowrap; }

.vote-bar {
  display: flex;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  gap: 1px;
  background: var(--surface-subtle);
  margin: 14px 0 9px;
}
.bar-for { background: #22784d; }
.bar-against { background: #b83d39; }
.bar-absent { background: var(--line-strong); }

.vote-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.for-text { color: var(--for-ink); font-weight: 650; }
.against-text { color: var(--against-ink); font-weight: 650; }

.vote-choice {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.4;
  background: var(--surface-subtle);
  color: var(--muted);
}
.vote-choice.vote-f { background: var(--for-bg); color: var(--for-ink); }
.vote-choice.vote-m { background: var(--against-bg); color: var(--against-ink); }
.vote-choice.vote-n { background: var(--surface-subtle); color: var(--muted); }
.vote-choice.vote-v { background: var(--vara-bg); color: var(--vara-ink); }

.share-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
}
.share-line input {
  min-width: 0;
  flex: 1 1 260px;
  font-size: 0.875rem;
  border: 1px solid var(--line-strong);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--muted);
}
.copy-status { font-size: 0.875rem; color: var(--blue); font-weight: 600; }

.vote-party-table table { min-width: 620px; }
.roll-table table { min-width: 520px; }

/* Party Matrix */
.analysis-controls {
  display: flex;
  align-items: flex-end;
  gap: 24px 28px;
  flex-wrap: wrap;
}
.analysis-controls > label:first-child { min-width: 210px; }
.check-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.check-control input { width: 18px; height: 18px; }

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 12px;
  font-size: 0.8125rem;
}
.matrix-legend-title {
  font-weight: 650;
  color: var(--muted);
  margin-inline-end: 4px;
}
.matrix-swatch {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 7px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}

.matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0 0 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.party-matrix {
  border-collapse: separate;
  border-spacing: 6px;
  min-width: 780px;
  padding: 10px;
}
.party-matrix caption {
  caption-side: bottom;
  text-align: left;
  padding: 10px 10px 6px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}
.party-matrix th {
  padding: 10px 8px;
  border: 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink);
}
.party-matrix th[scope="row"] {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--surface);
  text-align: left;
  padding-inline: 10px;
}
.matrix-party-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.party-matrix abbr { text-decoration: none; }
.party-matrix td { padding: 0; border: 0; text-align: center; font-size: 0.875rem; }
.matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--ink);
  text-decoration: none;
  padding: 8px 6px;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.matrix-cell:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 2px var(--ink);
  z-index: 2;
  position: relative;
}
.matrix-cell.is-selected {
  box-shadow: 0 0 0 2.5px var(--lime), 0 0 0 4.5px var(--fjord);
  z-index: 2;
  position: relative;
}
.matrix-self {
  background: var(--surface-subtle);
  color: var(--muted);
  border-radius: 8px;
}

/* Diverging 5-band heatmap (Light mode) */
.matrix-cell[data-heat="1"], .matrix-swatch[data-heat="1"] { background: #f8d4ce; color: #7a1c17; border-color: #e6a399; }
.matrix-cell[data-heat="2"], .matrix-swatch[data-heat="2"] { background: #f6e7d4; color: #6b4111; border-color: #e2c5a3; }
.matrix-cell[data-heat="3"], .matrix-swatch[data-heat="3"] { background: #eaeff3; color: #26394a; border-color: #cfd9e1; }
.matrix-cell[data-heat="4"], .matrix-swatch[data-heat="4"] { background: #b4dce6; color: #093a4a; border-color: #82bfd0; }
.matrix-cell[data-heat="5"], .matrix-swatch[data-heat="5"] { background: #135c74; color: #ffffff; border-color: #0d4558; }
.matrix-cell[data-heat="1"]:hover { color: #7a1c17; }
.matrix-cell[data-heat="2"]:hover { color: #6b4111; }
.matrix-cell[data-heat="3"]:hover { color: #26394a; }
.matrix-cell[data-heat="4"]:hover { color: #093a4a; }
.matrix-cell[data-heat="5"]:hover { color: #ffffff; }

/* Diverging 5-band heatmap (Dark mode) */
@media (prefers-color-scheme: dark) {
  .matrix-cell[data-heat="1"], .matrix-swatch[data-heat="1"] { background: #592023; color: #ffc0ba; border-color: #8a383c; }
  .matrix-cell[data-heat="2"], .matrix-swatch[data-heat="2"] { background: #46321b; color: #f6cfa0; border-color: #70512d; }
  .matrix-cell[data-heat="3"], .matrix-swatch[data-heat="3"] { background: #1b2c3b; color: #cfe0ee; border-color: #30475c; }
  .matrix-cell[data-heat="4"], .matrix-swatch[data-heat="4"] { background: #134d61; color: #aef0ff; border-color: #217693; }
  .matrix-cell[data-heat="5"], .matrix-swatch[data-heat="5"] { background: #1f8295; color: #ffffff; border-color: #54cbe0; }
  .matrix-cell[data-heat="1"]:hover { color: #ffc0ba; }
  .matrix-cell[data-heat="2"]:hover { color: #f6cfa0; }
  .matrix-cell[data-heat="3"]:hover { color: #cfe0ee; }
  .matrix-cell[data-heat="4"]:hover { color: #aef0ff; }
  .matrix-cell[data-heat="5"]:hover { color: #ffffff; }
  .matrix-cell:hover { box-shadow: 0 0 0 2px #ffffff; }
}

.pair-detail {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 28px;
}
.pair-rate {
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.pair-filter { max-width: 300px; margin-bottom: 18px; }
.pair-detail .vote-card { margin-bottom: 14px; }
.pair-vote-basis {
  background: var(--surface-tint);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: var(--ink);
}

/* ==========================================================================
   REPRESENTATIVE PROFILE PAGE
   ========================================================================== */
.profile-page .profile-toolbar {
  display: flex;
  gap: 14px 16px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.profile-toolbar a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.profile-toolbar a:hover { text-decoration: underline; }
.profile-toolbar label { margin-inline-start: auto; min-width: 185px; }
.profile-toolbar > button {
  min-height: 42px;
  padding: 9px 16px;
}

.profile-meta {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.profile-ext-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.profile-official-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease;
}
.profile-official-link:hover {
  background: var(--surface-tint);
  border-color: var(--blue);
  text-decoration: none;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  gap: 16px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.profile-stats strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.profile-stats span { font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
.profile-stats .stat-drill {
  display: block;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  margin: -4px -8px 2px;
  font-variant-numeric: tabular-nums;
}
.vote-totals { grid-template-columns: repeat(3, 1fr); }

.profile-basis { font-size: 0.84rem; color: var(--muted); line-height: 1.65; }
.profile-note { font-size: 0.875rem; line-height: 1.7; color: var(--muted); }
.profile-chart { margin: 28px 0; }
.profile-chart h3, .party-profile h3 { font-size: 1.05rem; margin: 0 0 14px; }

.party-profile {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin: 28px 0;
}
.party-profile h2 { margin-bottom: 20px; }
.party-profile-stats { margin-bottom: 18px; }

.party-fractions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 18px;
}
.party-fractions p {
  margin: 0;
  padding: 16px 20px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.party-fractions strong { font-size: 1.2rem; display: block; font-variant-numeric: tabular-nums; }
.party-fractions span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.875rem; }

.party-basis-details {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
  line-height: 1.75;
}
.party-basis-details summary { font-weight: 700; cursor: pointer; }
.party-basis-details li { margin: 8px 0; }
.party-basis-details h3 { font-size: 1rem; margin-top: 20px; }
.party-basis-rows { margin: 14px 0; }
.party-basis-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.party-basis-rows > div:last-child { font-weight: 700; border-bottom: 0; }
.party-basis-rows dd { font-weight: 700; margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }

.party-basis-example {
  border-inline-start: 3px solid var(--blue);
  background: var(--surface-tint);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.party-basis-example h4 { margin: 0 0 8px; font-size: 0.95rem; }
.party-basis-example p { margin: 6px 0; font-size: 0.875rem; }
.party-basis-example a { font-weight: 650; }

.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 14px;
  scroll-margin-top: 84px;
}
.history-heading select { max-width: 280px; }
#history-title { scroll-margin-top: 84px; margin: 0; }
#history-summary { margin-top: 0; }

.history-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 105px 1fr 215px;
  gap: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.history-item > div { min-width: 0; overflow-wrap: anywhere; }
.history-item time { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.history-item p { margin: 4px 0 0; font-size: 0.8125rem; color: var(--muted); }
.history-links { display: flex; gap: 14px; margin-top: 8px; font-size: 0.8125rem; }
.vote-status { font-size: 0.8125rem; font-weight: 600; text-align: right; color: var(--blue); }

.party-badge {
  display: block;
  margin: 8px 0 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-tint);
  color: var(--blue);
  line-height: 1.4;
}
.party-badge.against { background: var(--against-bg); color: var(--against-ink); }
.party-badge.unknown { background: var(--surface-subtle); color: var(--muted); }
.party-detail { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 400; line-height: 1.45; }
.show-more { width: 100%; margin-top: 14px; }

/* ==========================================================================
   LOCAL DISTRICTS & CASES
   ========================================================================== */
.local-start {
  padding: 26px 28px;
  background: var(--fjord);
  border-radius: 16px;
  color: #f0f5f9;
  margin: 0 0 34px;
  max-width: 760px;
}
.local-start label { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: #ffffff; }
.local-start select {
  width: 100%;
  max-width: 480px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-color: var(--surface);
  background-position: right 12px center;
  background-repeat: no-repeat;
  color: var(--ink);
  border-color: var(--line-strong);
}
.local-start p { color: #b9cad8; line-height: 1.6; font-size: 0.875rem; margin: 12px 0 0; }

.district-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.district-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms ease, background 140ms ease;
}
.district-card strong { font-size: 1.05rem; color: var(--ink); }
.district-card span { font-size: 0.84rem; color: var(--muted); line-height: 1.45; }
.district-card:hover { border-color: var(--blue); background: var(--surface-tint); }

.local-selection { margin-top: 42px; }
.local-filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.local-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.local-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.local-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
}
.local-tag {
  background: var(--surface-tint);
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.local-card h3 {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 16px 0 8px;
}
.local-card h3 a { text-decoration: none; color: var(--ink); }
.local-card h3 a:hover { text-decoration: underline; color: var(--blue); }
.local-card p { font-size: 0.9375rem; line-height: 1.65; color: var(--muted); margin: 0 0 20px; }
.local-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  font-size: 0.84rem;
}
.local-card-bottom > span { color: var(--muted); }
.local-card-bottom a { font-weight: 650; }

.local-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 24px;
  margin: 0 0 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.local-stat-strip > div { display: flex; flex-direction: column; gap: 6px; }
.local-stat-strip strong { font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.local-stat-strip span { font-size: 0.84rem; color: var(--muted); }

.local-empty {
  grid-column: 1 / -1;
  padding: 24px;
  background: var(--surface-subtle);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  line-height: 1.7;
}
.local-empty h3 { margin-top: 0; }

.district-people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.district-person {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.district-person:hover { border-color: var(--blue); background: var(--surface-tint); }
.district-person strong { color: var(--ink); }
.district-person span { font-size: 0.84rem; color: var(--muted); }
.district-person .local-person-action { color: var(--blue); font-weight: 650; margin-top: 6px; }

.local-method {
  margin: 34px 0 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 1.75;
  font-size: 0.9rem;
}
.local-method summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.local-method p { max-width: 900px; color: var(--muted); }
.local-method a { overflow-wrap: anywhere; }

.local-relevance {
  padding: 22px 24px;
  border-inline-start: 4px solid var(--blue);
  background: var(--surface-tint);
  border-radius: 0 14px 14px 0;
  line-height: 1.7;
  margin-bottom: 26px;
}
.local-relevance h2 { font-size: 1.15rem; margin: 0 0 8px; }
.local-relevance p { margin: 0 0 12px; }
.local-relevance .local-related { font-size: 0.875rem; color: var(--muted); }

.local-case-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.local-proposal {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin: 0 0 34px;
  box-shadow: var(--shadow-sm);
}
.local-proposal h2 { font-size: 1.4rem; line-height: 1.4; }
.local-proposal h3 { font-size: 1rem; line-height: 1.55; }
.proposal-text { white-space: pre-wrap; line-height: 1.8; overflow-wrap: anywhere; max-width: 880px; }
.local-roll { margin: 20px 0; }
.local-roll table { min-width: 600px; }

/* ==========================================================================
   HEARINGS RADAR, SENDERS & TRIPS
   ========================================================================== */
.hearing-stamp { color: var(--muted); font-size: 0.875rem; line-height: 1.65; max-width: 880px; }
.hearing-toolbar { margin: 20px 0; font-weight: 650; }

.hearing-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.hearing-filters .hearing-search { grid-column: span 2; }
.hearing-filters button { align-self: end; min-height: 42px; }

.hearing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hearing-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.hearing-status {
  display: inline-block;
  background: var(--surface-subtle);
  color: var(--ink);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
}
.hearing-open { background: var(--lime); color: var(--lime-ink); }
.hearing-committee { color: var(--blue); font-size: 0.84rem; font-weight: 650; margin: 14px 0 8px; }
.hearing-card h3 {
  font-family: var(--font-editorial);
  font-size: 1.18rem;
  line-height: 1.38;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.hearing-card h3 a { display: block; color: var(--ink); text-decoration: none; }
.hearing-card h3 a:hover { text-decoration: underline; color: var(--blue); }

.hearing-card-facts { margin: auto 0 18px; font-size: 0.84rem; line-height: 1.6; }
.hearing-card-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.hearing-card-facts dt { color: var(--muted); }
.hearing-card-facts dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.hearing-card-link { font-weight: 650; font-size: 0.875rem; }

.hearing-detail-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875rem;
  margin: 0 0 20px;
  color: var(--muted);
}
.hearing-date-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 22px 0;
  line-height: 1.7;
}
.hearing-date-panel h2 { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.hearing-date-panel p { margin: 0; font-size: 0.95rem; font-weight: 600; }

.hearing-input-section { margin: 36px 0; }
.hearing-input-section > p { line-height: 1.7; color: var(--muted); }
.hearing-input-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 650;
  max-width: 640px;
  margin: 20px 0;
  color: var(--muted);
}
.hearing-input-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.hearing-input-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.hearing-input-top h3 { font-size: 1.05rem; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.hearing-input-top time { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.input-excerpt { font-size: 0.95rem; line-height: 1.8; overflow-wrap: anywhere; max-width: 920px; }
.hearing-input-card h4 { font-size: 0.95rem; line-height: 1.55; }
.hearing-input-card .profile-basis { margin-bottom: 0; }

.hearing-case-section { margin-top: 34px; }
.hearing-case-section article { padding: 18px 0; border-top: 1px solid var(--line); line-height: 1.65; }
.hearing-case-section h3 { font-size: 1.05rem; margin: 0; }

.sender-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sender-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  line-height: 1.55;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-sm);
}
.sender-card:hover { border-color: var(--blue); background: var(--surface-tint); }
.sender-card strong { font-size: 0.98rem; color: var(--ink); }
.sender-card span { font-size: 0.84rem; color: var(--muted); }
.sender-card span:last-child { color: var(--blue); font-weight: 650; }
.hearing-sender-filter {
  padding: 14px 18px;
  background: var(--surface-tint);
  border-inline-start: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
}

/* Travel Records */
.trip-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trip-filters .hearing-search { grid-column: span 3; }
.trip-filters label { min-width: 0; }
.trip-card { min-width: 0; }
.trip-card .local-card-top { align-items: start; flex-wrap: wrap; }
.trip-card .trip-purpose {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 16px;
}
.trip-accounting { font-weight: 650; overflow-wrap: anywhere; }
.trip-disclaimer {
  padding: 13px 18px;
  background: var(--surface-tint);
  border-inline-start: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 12px 0 22px;
}
.trip-enrichment-intro {
  padding: 20px 24px;
  background: var(--surface-sage);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 22px 0;
}
.trip-enrichment-intro > strong { font-size: 1.05rem; }
.trip-enrichment-intro p { margin: 8px 0 12px; line-height: 1.65; color: var(--muted); }
.trip-enrichment-intro a { display: inline-block; margin-inline-end: 22px; margin-bottom: 4px; font-weight: 650; }

.trip-detail-badge {
  background: var(--surface-sage);
  color: var(--for-ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  margin: 0 0 12px;
}
.trip-detail-facts {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.trip-detail-facts span { display: block; color: var(--muted); font-size: 0.8125rem; margin-bottom: 6px; }
.trip-detail-facts strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }

.trip-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.trip-jump button { min-height: 42px; color: var(--blue); }
#trip-program-title, #trip-people-title, #trip-accounting-title { scroll-margin-top: 84px; }

.trip-supplement {
  max-width: 940px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  margin: 24px 0 34px;
  line-height: 1.75;
  box-shadow: var(--shadow-sm);
}
.trip-supplement > h2 { margin: 0 0 12px; }
.trip-supplement > h2:not(:first-child) { margin-top: 26px; }
.trip-evidence-label { font-size: 0.84rem; font-weight: 650; color: var(--blue); }
.trip-program-list { list-style: none; padding: 0; margin: 22px 0; }
.trip-program-list li { border-inline-start: 3px solid var(--blue); padding: 0 0 10px 18px; margin: 16px 0; }
.trip-program-list h3 { font-size: 1.02rem; margin: 0 0 4px; }
.trip-program-list p { margin: 0; color: var(--muted); }
.trip-source-note { background: var(--surface-subtle); padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; }

.trip-person-list { list-style: none; margin: 18px 0; padding: 0; }
.trip-person-list li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.trip-person-list li div > span { display: block; color: var(--muted); font-size: 0.875rem; margin-top: 3px; }
.trip-person-list a { font-weight: 700; }
.trip-person-party {
  display: inline-block !important;
  margin: 0 0 0 8px !important;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-tint);
  color: var(--blue) !important;
  font-size: 0.8125rem !important;
  font-weight: 700;
  vertical-align: baseline;
}

.trip-citation {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 22px;
  display: grid;
  gap: 6px;
}
.trip-citation span { font-size: 0.84rem; color: var(--muted); }
.trip-citation a { overflow-wrap: anywhere; }

.trip-detail-copy { max-width: 860px; line-height: 1.8; }
.trip-detail-copy h2 { margin: 26px 0 10px; }
.trip-source-text { white-space: pre-line; color: var(--muted); }
.trip-accounting-source {
  margin: 14px 0;
  padding: 18px 22px;
  background: var(--surface-tint);
  border-inline-start: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  font-size: 1.15rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.trip-accounting-tag { font-weight: 700; }
.trip-detail-copy + .source-links { margin: 22px 0; }

.trip-source-facts { margin: 24px 0; }
.trip-source-facts > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.trip-source-facts dt { color: var(--muted); }
.trip-source-facts dd { margin: 0; font-weight: 600; }

.trip-related { max-width: 940px; margin: 36px 0; line-height: 1.75; }
.trip-related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.trip-related-list > a {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  background: var(--surface);
  color: var(--ink);
}
.trip-related-list > a:hover { border-color: var(--blue); background: var(--surface-tint); }
.trip-related-list span { font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }

/* ==========================================================================
   METHOD, CONTACT, PRIVACY, CONSENT & FOOTER
   ========================================================================== */
.method { border-top: 1px solid var(--line); padding: 36px 0 56px; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
  margin-top: 26px;
}
.method h3 { font-size: 1.05rem; margin: 0 0 10px; color: var(--ink); }
.method p:not(.eyebrow) { font-size: 0.9375rem; line-height: 1.75; color: var(--muted); margin: 0 0 12px; }
.method details { font-size: 0.875rem; line-height: 1.7; color: var(--muted); margin: 12px 0; }
.method summary { cursor: pointer; color: var(--ink); font-weight: 650; }
.method details ul { padding-left: 20px; }

.source-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.875rem; line-height: 1.7; font-weight: 600; }

.contact-email-panel {
  background: var(--fjord);
  color: #ffffff;
  border-radius: 16px;
  padding: 30px 32px;
  margin-bottom: 26px;
}
.contact-email-panel h2 { color: #ffffff; font-size: 1.1rem; font-family: var(--font-sans); margin: 0 0 12px; }
.contact-email {
  display: inline-block;
  color: #ffffff;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.contact-email:hover { color: var(--lime); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.contact-write {
  display: inline-block;
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  font-weight: 700;
  padding: 11px 18px;
  border: 1px solid var(--lime);
  border-radius: 8px;
  font-size: 0.9375rem;
}
.contact-write:hover { color: var(--lime-ink); opacity: 0.92; }
.contact-actions button { min-height: 44px; font-size: 0.9rem; }
.contact-email-panel [role="status"] { margin: 14px 0 0; min-height: 1.4em; font-size: 0.875rem; color: #c7d7e4; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  line-height: 1.75;
  box-shadow: var(--shadow-sm);
}
.contact-grid h2, .contact-about h2 { font-size: 1.2rem; margin-top: 0; margin-bottom: 10px; }
.contact-grid p, .contact-about p { color: var(--muted); line-height: 1.75; }
.contact-about { max-width: 840px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }

.privacy-copy { max-width: 780px; font-size: 1rem; line-height: 1.8; color: var(--muted); }
.privacy-copy h2 { margin: 28px 0 12px; }
.privacy-copy button { margin: 8px 0 12px; }

.loading,
.empty {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  margin-bottom: 28px;
  border-radius: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.seo-summary { padding: 30px 0; }
.seo-summary ul { columns: 3; line-height: 1.8; padding-left: 20px; }

.consent-panel {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-end: 18px;
  width: min(440px, calc(100% - 36px));
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  z-index: 40;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--blue);
  border-radius: 14px;
  padding: 22px;
}
.consent-panel h2 { font-family: var(--font-sans); font-size: 1.05rem; margin-bottom: 8px; }
.consent-panel p { font-size: 0.875rem; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.consent-panel > a { font-size: 0.875rem; }
.consent-panel > div { display: flex; gap: 10px; margin-top: 18px; }
.consent-panel button { flex: 1; }
#consent-accept { background: var(--blue); border-color: var(--blue); color: #ffffff; }
#consent-accept:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 30px 0;
  margin-top: 32px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.footer-brand .brand { font-size: 1.15rem; font-weight: 750; letter-spacing: -0.04em; color: var(--ink); }
.footer-brand .brand span { font-weight: 450; color: var(--muted); }
.footer-brand p { font-size: 0.8125rem; line-height: 1.65; margin: 0; }
.footer-privacy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8125rem;
}
.footer-privacy a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-privacy a:hover { color: var(--blue); text-decoration: underline; }
.footer-privacy button {
  font-size: 0.8125rem;
  padding: 6px 11px;
  border-radius: 7px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS, REDUCED MOTION & FORCED COLORS
   ========================================================================== */
@media (max-width: 1040px) {
  .pulse-grid { grid-template-columns: 1fr 1fr; }
  .pulse-vote { grid-column: span 2; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .search-label { grid-column: span 2; }
  .intro { align-items: flex-start; }
  .bank-filters { grid-template-columns: 1fr 1fr; }
  .bank-filters .wide { grid-column: span 2; }
  .hearing-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hearing-filters .hearing-search { grid-column: span 2; }
  .sender-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vote-card { grid-template-columns: 112px 1fr; }
  .detail-link { grid-column: 2; }
}

@media (max-width: 760px) {
  .brand-tag, .cmd-trigger kbd { display: none; }
  .intro { flex-direction: column; padding-block: 28px 18px; }
  .edition { width: 100%; min-width: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 18px 16px; }
  .stats > div:last-child {
    grid-column: span 2;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .stats > div:last-child span { flex-basis: 100%; }
  .stats strong { font-size: 1.75rem; }
  .stats > div:last-child strong { font-size: 1.45rem; margin: 0; }

  .pulse-grid { grid-template-columns: 1fr; }
  .pulse-vote { grid-column: auto; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-label, .filters label:last-child { grid-column: span 2; }

  .district-grid, .district-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-grid, .local-case-controls, .hearing-grid, .hearing-date-panel, .contact-grid, .method-grid, .trip-detail-facts, .trip-related-list {
    grid-template-columns: 1fr;
  }
  .trip-filters { grid-template-columns: minmax(0, 1fr); }
  .trip-filters .hearing-search { grid-column: auto; }
  .profile-stats { grid-template-columns: 1fr 1fr; padding: 16px; }
  .party-fractions { grid-template-columns: 1fr; }
  .vote-card { grid-template-columns: 1fr; padding: 18px; gap: 12px; }
  .vote-card-date { display: flex; justify-content: space-between; gap: 10px; }
  .vote-card-date span { margin: 0; }
  .detail-link { grid-column: 1; }
  .profile-page .history-item, .history-item { grid-template-columns: 1fr 135px; }
  .history-item time { grid-column: span 2; }
  .profile-toolbar label { margin-inline-start: 0; flex: 1; }
  .profile-toolbar > a, .profile-toolbar > button { flex-basis: 100%; }
  .trip-person-list li { display: block; }
  .trip-person-list li > .trip-evidence-label { display: block; margin-top: 6px; }
  .trip-source-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .seo-summary ul { columns: 1; }
  .consent-panel > div { flex-direction: column; }
}

@media (max-width: 480px) {
  .district-grid, .district-people, .local-filters, .sender-grid, .hearing-filters, .bank-filters, .roll-filters {
    grid-template-columns: 1fr;
  }
  .bank-filters .wide, .hearing-filters .hearing-search { grid-column: auto; }
  .local-stat-strip { grid-template-columns: 1fr; gap: 14px; }
  .hearing-card-facts > div { flex-direction: column; gap: 2px; }
  .hearing-card-facts dd { text-align: left; }
  .hearing-input-top { flex-direction: column; gap: 4px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-write { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .site-menu a[aria-current="page"] { outline: 2px solid Highlight; }
  .civic-stripe { background: Highlight; }
  .party-dot, .seat-seg, .rate-fill, .month-bar { forced-color-adjust: none; }
}

/* Mandates grouped by political bloc */
.seat-block-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.seat-block-total{display:grid;gap:4px}.seat-block-total>span{font-size:1rem;font-weight:650;color:var(--muted)}.seat-block-total>strong{font-size:1.6rem;line-height:1.3;font-variant-numeric:tabular-nums}.seat-block-total small{font-size:.9rem;font-weight:500;color:var(--muted)}.seat-block-total:last-child{text-align:right}.seat-block-bar{gap:5px;height:22px}.seat-block-segments{display:flex;gap:2px;min-width:0;height:100%}.seat-block-segments .seat-seg{min-width:0;cursor:pointer}.seat-block-legends{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.seat-block-legend{min-width:0}.seat-block-legend h3{font-size:.95rem;margin:0 0 10px;color:var(--muted);font-weight:650}.seat-block-legend .seat-chip{font-size:.9rem;min-height:40px}.seat-block-note{font-size:.875rem;color:var(--muted);line-height:1.65;margin:0}@media(max-width:540px){.seat-block-legends{grid-template-columns:1fr;gap:18px}.seat-block-total strong{font-size:1.4rem}.seat-block-total small{display:block}.seat-block-totals{gap:12px}}


/* ==========================================================================
   BRØNNØYSUNDREGISTRENE (ENHETSREGISTERET) × HØRINGSRADAREN
   ========================================================================== */
:root {
  --sec-frivillig: #237a57;
  --sec-interesse: #2a5f9e;
  --sec-naering: #b5681d;
  --sec-offentlig: #6b4c9a;
  --sec-annet: #5e7282;
  --sec-unmatched: #98a6b3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sec-frivillig: #58c996;
    --sec-interesse: #6aa9f0;
    --sec-naering: #e89e4e;
    --sec-offentlig: #b492e8;
    --sec-annet: #8ca0b0;
    --sec-unmatched: #566a7c;
  }
}

.tabular-nums { font-variant-numeric: tabular-nums; }

.brreg-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 20px 0 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.brreg-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.brreg-panel-head .eyebrow { margin-bottom: 4px; }
.brreg-panel-head h3 {
  font-family: var(--font-editorial);
  font-size: 1.18rem;
  margin: 0;
  color: var(--ink);
}
.brreg-panel-head .profile-basis { margin: 0; }

.brreg-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  background: var(--surface-subtle);
}
.brreg-bar span { display: block; height: 100%; }

.brreg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.brreg-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}
.brreg-chip span { color: var(--muted); font-variant-numeric: tabular-nums; }
.brreg-chip:hover { border-color: var(--blue); background: var(--surface-tint); }
.brreg-chip.is-active {
  background: var(--sec-color, var(--fjord));
  border-color: var(--sec-color, var(--fjord));
  color: #ffffff;
}
.brreg-chip.is-active span { color: rgba(255, 255, 255, 0.85); }
.brreg-chip.is-active .brreg-dot { background: #ffffff; }

.brreg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sec-color, var(--blue));
  flex-shrink: 0;
}

.brreg-panel-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.brreg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.4;
}

.input-brreg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.input-brreg-link {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-decoration: none;
}
.input-brreg-link:hover { color: var(--blue); text-decoration: underline; }

.sender-filters {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1fr;
  gap: 14px;
  margin: 20px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.sender-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted);
}
.sender-filters input,
.sender-filters select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  background-color: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--ink);
}

.brreg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 22px 0 26px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}
.brreg-card-unmatched {
  background: var(--surface-subtle);
  border-style: dashed;
}
.brreg-card-unmatched h2 { font-family: var(--font-sans); font-size: 0.98rem; margin: 0; }
.brreg-card-unmatched p { margin: 0; font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

.brreg-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.brreg-card-head .eyebrow { margin-bottom: 4px; }
.brreg-card-head h2 { font-size: 1.35rem; margin: 0; }

.brreg-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.brreg-facts > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brreg-facts dt { font-size: 0.76rem; font-weight: 650; color: var(--muted); }
.brreg-facts dd { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

.brreg-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.brreg-card-foot a { font-weight: 650; text-decoration: none; }
.brreg-card-foot a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .sender-filters { grid-template-columns: 1fr 1fr; }
  .sender-filters label:first-child { grid-column: span 2; }
  .brreg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .sender-filters { grid-template-columns: 1fr; }
  .sender-filters label:first-child { grid-column: auto; }
  .brreg-facts { grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  .brreg-dot, .brreg-bar span { forced-color-adjust: none; }
}


/* ==========================================================================
   169-SEAT CHAMBER HEMICYCLE (/votering/ID) & REPRESENTATIVE COMPARE (/sammenlign)
   ========================================================================== */
.section-title-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
}
.compare-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease;
}
.compare-cta:hover {
  background: var(--surface-tint);
  border-color: var(--blue);
  text-decoration: none;
}

/* 169-Seat Hemicycle */
.chamber-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  margin: 26px 0 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}
.chamber-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.chamber-head .eyebrow { margin-bottom: 4px; }

.chamber-modes {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  gap: 4px;
}
.chamber-modes button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 650;
}
.chamber-modes button:hover { color: var(--ink); background: transparent; }
.chamber-modes button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.chamber-stage {
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}
.chamber-svg {
  width: 100%;
  max-width: 680px;
  height: auto;
  overflow: visible;
}
.chamber-podium {
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}
.chamber-center-num {
  fill: var(--ink);
  font-size: 24px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.chamber-center-sub {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.chamber-seat { cursor: pointer; outline: none; }
.chamber-seat circle {
  stroke-width: 2.2;
  transition: transform 120ms ease, opacity 120ms ease, stroke-width 120ms ease;
  transform-box: fill-box;
  transform-origin: center;
}
.chamber-seat.seat-f circle { fill: #22784d; stroke: var(--party); }
.chamber-seat.seat-m circle { fill: #b83d39; stroke: var(--party); }
.chamber-seat.seat-n circle { fill: #cdd6de; stroke: var(--party); stroke-opacity: 0.55; }

.chamber-seat.mode-party circle { fill: var(--party); stroke: var(--surface); stroke-width: 1.5; }
.chamber-seat.mode-party.seat-n circle { opacity: 0.25; }

.chamber-seat:hover circle,
.chamber-seat:focus-visible circle {
  transform: scale(1.32);
  stroke: var(--ink);
  stroke-width: 2.5;
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .chamber-seat.seat-f circle { fill: #3bb978; }
  .chamber-seat.seat-m circle { fill: #e35d59; }
  .chamber-seat.seat-n circle { fill: #36495c; }
  .chamber-seat:hover circle,
  .chamber-seat:focus-visible circle { stroke: #ffffff; }
}

.chamber-readout {
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chamber-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.chamber-legend > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.chamber-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.dot-for { background: #22784d; }
.dot-against { background: #b83d39; }
.dot-absent { background: #cdd6de; }
@media (prefers-color-scheme: dark) {
  .dot-for { background: #3bb978; }
  .dot-against { background: #e35d59; }
  .dot-absent { background: #36495c; }
}
.chamber-legend-hint { font-weight: 450 !important; opacity: 0.85; }

/* Representative Comparison (/sammenlign) */
.compare-picker {
  display: grid;
  grid-template-columns: 1.4fr auto 1.4fr 1fr;
  gap: 12px;
  align-items: end;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.compare-picker label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted);
  min-width: 0;
}
.compare-picker select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  background-color: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--ink);
}
.compare-swap {
  min-height: 42px;
  min-width: 44px;
  padding: 0 12px;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compare-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 24px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.compare-presets span { font-weight: 650; }
.compare-presets a {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}
.compare-presets a:hover { border-color: var(--blue); background: var(--surface-tint); color: var(--blue); }

.compare-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.compare-mp-card,
.compare-score-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-mp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.compare-mp-card h2 { font-size: 1.35rem; margin: 0; }
.compare-mp-card h2 a { color: var(--ink); text-decoration: none; }
.compare-mp-card h2 a:hover { color: var(--blue); text-decoration: underline; }
.compare-mp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.compare-mp-metrics dt { font-size: 0.75rem; color: var(--muted); margin-bottom: 3px; }
.compare-mp-metrics dd { margin: 0; font-size: 0.98rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.compare-score-card {
  background: var(--surface-tint);
  border-color: var(--line-strong);
  text-align: center;
  justify-content: center;
}
.compare-score-card .eyebrow { margin-bottom: 0; }
.compare-rate {
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.compare-score-sub { margin: 0; font-size: 0.875rem; color: var(--ink); font-weight: 550; }
.compare-split-nums {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.compare-votes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 12px;
}
.compare-votes-head .pair-filter { margin-bottom: 0; min-width: 240px; }

.compare-vote-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  font-size: 0.84rem;
}
.compare-match-tag {
  margin-inline-start: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.compare-match-tag.is-same { background: var(--for-bg); color: var(--for-ink); }
.compare-match-tag.is-diff { background: var(--against-bg); color: var(--against-ink); }

@media (max-width: 960px) {
  .compare-picker { grid-template-columns: 1fr auto 1fr; }
  .compare-picker label:last-child { grid-column: span 3; }
  .compare-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chamber-panel { padding: 18px 16px; }
  .compare-picker { grid-template-columns: 1fr; }
  .compare-picker label:last-child { grid-column: auto; }
  .compare-swap { width: 100%; }
  .compare-match-tag { margin-inline-start: 0; }
}
@media (forced-colors: active) {
  .chamber-seat circle, .chamber-dot { forced-color-adjust: none; }
}

/* ==========================================================================
   SPØRSMÅLSRADAREN (WRITTEN QUESTIONS & MINISTRY RESPONSE TIMES)
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.q-kpis small {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 450;
}

.q-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 20px 0 24px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid light-dark(#e5b3a8, #7c3a2d);
  background: light-dark(#fdf3f0, #2c1916);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}
.q-alert > div { flex: 1 1 280px; }
.q-alert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: light-dark(#c2412c, #f28b79);
  flex-shrink: 0;
}
.q-alert-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid light-dark(#c2412c, #f28b79);
  background: transparent;
  color: light-dark(#9a2d1b, #f7b0a3);
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.q-alert-btn:hover {
  background: light-dark(#c2412c, #f28b79);
  color: light-dark(#ffffff, #1b0e0c);
}

/* Accessible single-row scrollable tabs (modern-web-guidance: tabs) */
.q-tabs {
  margin-top: 24px;
}
.q-tablist {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: inline proximity;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.q-tablist::-webkit-scrollbar { display: none; }

.q-tablist [role="tab"] {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  padding: 12px 18px 14px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.q-tablist [role="tab"]:hover {
  color: var(--ink);
  background: var(--surface-subtle);
}
.q-tablist [role="tab"][aria-selected="true"] {
  color: var(--blue);
}
.q-tablist [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-block-end: 3px solid var(--blue);
}
.q-tablist [role="tab"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

/* Keep spacing on inner wrapper so hidden="until-found" leaves zero empty strips */
.q-panel-inner {
  padding-top: 22px;
}

/* Sortable ministry response-time table (modern-web-guidance: sortable-table) */
.q-table-wrap {
  margin-top: 12px;
}
.q-ministries-table {
  min-inline-size: 780px;
}
.q-ministries-table thead th:has(> button) {
  padding: 0;
}
.q-ministries-table thead th > button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-block-size: 44px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.q-ministries-table thead th.numeric > button {
  justify-content: flex-end;
  text-align: right;
}
.q-ministries-table thead th > button:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.q-ministries-table thead th > button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.q-sort-icon {
  flex-shrink: 0;
  display: inline-block;
  width: 1em;
  text-align: center;
  color: currentColor;
  opacity: 0.45;
}
.q-sort-icon::before { content: "↕"; }
.q-ministries-table th[aria-sort="ascending"] .q-sort-icon { opacity: 1; }
.q-ministries-table th[aria-sort="ascending"] .q-sort-icon::before { content: "↑"; }
.q-ministries-table th[aria-sort="descending"] .q-sort-icon { opacity: 1; }
.q-ministries-table th[aria-sort="descending"] .q-sort-icon::before { content: "↓"; }

.q-ministries-table tbody tr {
  view-transition-name: match-element;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none;
  }
}

.q-ministry-row-btn {
  font-weight: 650;
  text-align: left;
}
.q-rate-cell {
  display: grid;
  grid-template-columns: 52px minmax(64px, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.q-rate-num { font-weight: 700; }
.q-rate-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-subtle);
  overflow: hidden;
}
.q-rate-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}
.q-rate-fill.is-high {
  background: light-dark(#c2412c, #f07b66);
}
.q-rate-sub {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Pending toolbar & segmented toggles */
.q-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 18px;
  margin-bottom: 14px;
}
.q-seg-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}
.q-seg {
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.q-seg[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.q-inline-select {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 240px;
}

/* Full question bank filter grid */
.q-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}
.q-filters .search-label {
  grid-column: span 2;
}
.q-reset-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  align-self: end;
}
.q-reset-btn:hover {
  background: var(--surface-subtle);
}

/* Question cards */
.q-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.q-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.q-card.is-overdue {
  border-color: light-dark(#e2a396, #873e30);
  background: light-dark(#fffaf9, #241816);
}
.q-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.q-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.q-kind {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.q-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.q-badge-answered {
  background: var(--for-bg);
  color: var(--for-ink);
}
.q-badge-slow {
  background: light-dark(#fef3c7, #3d2e0b);
  color: light-dark(#92400e, #fcd34d);
}
.q-badge-overdue {
  background: light-dark(#fee2e2, #451a1a);
  color: light-dark(#b91c1c, #fca5a5);
}
.q-badge-pending {
  background: light-dark(#e0f2fe, #112a3d);
  color: light-dark(#075985, #7dd3fc);
}
.q-badge-other {
  background: var(--surface-subtle);
  color: var(--muted);
}
.q-date {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.q-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 650;
}
.q-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.q-card h3 a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.q-ext {
  font-size: 0.85em;
  color: var(--muted);
}
.q-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.86rem;
  color: var(--ink);
}
.q-meta-label {
  color: var(--muted);
  margin-right: 4px;
}
.q-party-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 4px;
}
.q-ministry-jump {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.q-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.q-topics span {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 0.75rem;
}

.q-method {
  margin-top: 28px;
}

/* Representative profile questions summary card */
.profile-questions-card {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.profile-q-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 18px;
}
.profile-questions-card h3 {
  margin: 2px 0 6px;
  font-size: 1.08rem;
}
.profile-q-stats {
  margin-top: 14px;
  margin-bottom: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .q-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-filters .search-label { grid-column: span 2; }
}
@media (max-width: 600px) {
  .q-filters { grid-template-columns: 1fr; }
  .q-filters .search-label { grid-column: auto; }
  .profile-q-stats { grid-template-columns: 1fr; }
}

/* Reviewed career background pilot */
.bg-intro,.bg-method p{max-width:85ch;line-height:1.75}.bg-key{display:flex;flex-wrap:wrap;gap:14px 22px;margin:24px 0;font-size:.95rem}.bg-key>span{display:flex;align-items:center;gap:8px}.bg-swatch{width:16px;height:16px;background:var(--bg-sector);border-radius:3px;display:inline-block}.bg-politics{--bg-sector:#9bbaed}.bg-public{--bg-sector:#d6af61}.bg-outside{--bg-sector:#66b6a2}.bg-unknown{--bg-sector:#ab9eb8}.bg-uncertain-key{background:transparent;border:2px dashed var(--muted)}.bg-method-note{margin:24px 0}.bg-filters{display:grid;grid-template-columns:2fr 1fr auto;gap:18px;align-items:end;margin:30px 0}.bg-filters label{display:grid;gap:8px}.bg-filters button{min-height:46px}.bg-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:26px;margin:22px 0}.bg-card header{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.bg-card header h2{font-family:inherit;font-size:1.25rem;margin:0 0 5px}.bg-card header p{margin:0;color:var(--muted)}.bg-monogram{display:grid;place-items:center;width:50px;height:58px;border-radius:12px;background:var(--bg);color:var(--ink);font-weight:750;font-size:1.15rem}.bg-reviewed{margin-left:auto;color:var(--muted);font-size:.875rem}.bg-axis{height:28px;position:relative;margin:24px 82px 0 225px;color:var(--muted);font-size:.875rem}.bg-axis span{position:absolute;transform:translateX(-50%)}.bg-axis span:first-child{transform:none}.bg-axis span:last-child{transform:translateX(-100%)}.bg-tracks{display:grid;gap:8px}.bg-track{display:grid;grid-template-columns:205px minmax(0,1fr) 70px;gap:20px;align-items:center;padding:8px 0;border:0;background:transparent;text-align:left;width:100%;min-height:44px;color:var(--ink);border-radius:8px}.bg-track:hover,.bg-track:focus-visible{background:var(--bg);outline:2px solid var(--bg-sector);outline-offset:3px}.bg-track-name{font-size:.875rem;line-height:1.45}.bg-rail{position:relative;height:14px;border-radius:5px;background:color-mix(in srgb,var(--muted) 13%,transparent);display:block}.bg-range,.bg-uncertain{position:absolute;height:100%;top:0;border-radius:3px}.bg-range{background:var(--bg-sector)}.bg-uncertain{border:2px dashed var(--ink);background:repeating-linear-gradient(45deg,var(--bg-sector),var(--bg-sector) 2px,var(--surface) 2px,var(--surface) 4px);min-width:6px}.bg-track-total{text-align:right;font-variant-numeric:tabular-nums;font-size:1rem;font-weight:650}.bg-track-total small{display:block;color:var(--muted);font-size:.875rem;font-weight:400}.bg-gap{padding:14px 18px;border-left:3px solid var(--muted);background:var(--bg);line-height:1.65}.bg-records{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.bg-records summary{cursor:pointer;line-height:1.6}.bg-source-list{list-style:none;padding:0;display:grid;gap:14px}.bg-source-record{background:var(--bg);border:1px solid var(--line);padding:20px;border-radius:12px}.bg-source-record h4{font-size:1.05rem;margin:12px 0 8px}.bg-source-record p{line-height:1.65;margin:8px 0}.bg-source-record small{display:block;margin-top:10px;color:var(--muted);font-size:.875rem;overflow-wrap:anywhere}.bg-category{color:var(--bg-sector);font-size:.875rem;font-weight:650}.bg-exclusions li{line-height:1.7;margin:10px 0}.bg-method{margin-top:48px;border-top:1px solid var(--line);padding-top:28px;scroll-margin-top:90px}.bg-method h3{margin-top:28px}.bg-profile{margin:36px 0}.bg-profile>.bg-card header h2{font-size:1.15rem}
@media(prefers-color-scheme:light){.bg-politics{--bg-sector:#274675}.bg-public{--bg-sector:#8d681a}.bg-outside{--bg-sector:#246b59}.bg-unknown{--bg-sector:#6b547c}}
@media(max-width:700px){.bg-filters{grid-template-columns:1fr 1fr}.bg-filters label:first-child{grid-column:1/-1}.bg-card{padding:20px}.bg-track{grid-template-columns:minmax(0,1fr) 66px;gap:6px 12px;padding:8px 0}.bg-track-name{grid-column:1;grid-row:1;font-size:.95rem}.bg-track-total{grid-column:2;grid-row:1/3}.bg-rail{grid-column:1;grid-row:2}.bg-axis{margin:24px 78px 0 0}.bg-reviewed{margin-left:0;flex-basis:100%}.bg-monogram{width:40px;height:48px}.bg-card header h2{font-size:1.1rem}.bg-source-record{padding:16px}}

.bg-method-note{display:block;line-height:1.75}.bg-method-note>strong{display:block;margin-bottom:5px}.bg-filters label{font-size:1rem}
@media(max-width:700px){.bg-axis span:nth-child(2),.bg-axis span:nth-last-child(2){display:none}}

/* Grouped desktop navigation; mobile retains its compact menu. */
.nav-group{position:relative;list-style:none}.nav-group>details>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 10px;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;list-style:none;color:var(--ink)}.nav-group>details>summary::-webkit-details-marker{display:none}.nav-group>details>summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px}.nav-group>details[open]>summary::after{transform:rotate(225deg);margin-top:3px}.nav-group>details>summary:hover,.nav-group>details[open]>summary{background:var(--surface-subtle)}.nav-group>details>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.nav-group-panel{display:grid;gap:3px;padding:7px}.masthead.is-wide .site-menu{gap:4px}.masthead.is-wide .nav-group-panel{position:absolute;top:calc(100% + 10px);left:0;min-width:265px;background:var(--surface);border:1px solid var(--line-strong);box-shadow:var(--shadow-lg);border-radius:12px;white-space:normal}.masthead.is-wide .nav-group:last-child .nav-group-panel{left:auto;right:0}.masthead.is-wide .site-menu a{padding:12px;font-size:.95rem}.masthead.is-wide .nav-group:has(a[aria-current="page"])>details>summary{box-shadow:inset 0 -2px var(--blue)}.site-menu[popover]{inset:auto;top:var(--menu-top,76px);left:var(--menu-left,16px);right:auto;width:min(320px,calc(100vw - 32px));max-width:calc(100vw - 32px);margin:0;max-height:calc(100dvh - var(--menu-top,76px) - 16px)}
@media(max-width:799px){.nav-group>details>summary{font-size:.875rem;color:var(--muted);padding:12px 10px 5px;min-height:36px}.nav-group-panel{padding:0 0 10px}.site-menu .nav-group+.nav-group{border-top:1px solid var(--line)}.site-menu a{font-size:1rem;white-space:normal}.header-inner{gap:12px}}
@media(min-width:800px) and (max-width:1050px){.brand-tag{display:none}.brand-icon{width:28px;height:28px}.brand{gap:7px}.brand-name{font-size:1.05rem}.header-inner{gap:10px}.nav-group>details>summary{padding-inline:8px;font-size:.875rem}.cmd-trigger kbd{display:none}}
.bg-education{--bg-sector:#c1a3ea}
@media(prefers-color-scheme:light){.bg-education{--bg-sector:#72529b}}
@media(max-width:700px){.bg-axis span:not(:first-child):not(:last-child):not(:nth-child(4)){display:none}.bg-axis span:nth-child(4){display:block}}
.person-age{font-weight:450;color:var(--muted);white-space:nowrap}.person-link .person-age{font-size:.9em}

/* Electricity issue guides */
.pg-intro,.pg-reading,.pg-faq,.pg-method{max-width:85ch;line-height:1.8}.pg-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:28px 0}.pg-guide-card,.pg-related-vote{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:26px}.pg-guide-card h2{font-size:1.45rem;line-height:1.3;margin:16px 0}.pg-guide-card p{line-height:1.7}.pg-guide-card .eyebrow{font-size:.875rem;line-height:1.6}.pg-result-line{display:flex;gap:18px;flex-wrap:wrap;margin:20px 0;font-variant-numeric:tabular-nums}.pg-result-line strong{color:var(--blue)}.pg-breadcrumb{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:.9rem;margin-bottom:25px}.pg-breadcrumb span:before{content:'/';margin-right:14px}.pg-dateline{color:var(--muted);font-size:.9rem;line-height:1.65}.pg-answer{background:var(--surface-tint);border:1px solid var(--line);border-left:4px solid var(--blue);padding:28px;border-radius:14px;margin:28px 0}.pg-answer h2{font-size:1.8rem;margin:14px 0;font-variant-numeric:tabular-nums}.pg-answer p{line-height:1.7;margin:8px 0}.pg-status{font-weight:750;letter-spacing:.05em;font-size:.9rem;text-transform:uppercase}.pg-caveat{display:block;line-height:1.75}.pg-caveat strong{display:block;margin-bottom:6px}.pg-caveat p{font-size:1rem}.pg-share{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin:25px 0 40px}.pg-download{padding:12px 16px;min-height:44px;border:1px solid var(--line-strong);border-radius:8px;text-decoration:none}.pg-reading section{margin-bottom:32px}.pg-reading h2{font-size:1.6rem;line-height:1.35}.pg-party-table{margin:24px 0}.pg-party-table th:first-child{min-width:180px}.pg-proposals{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:12px;line-height:1.75}.pg-proposals summary,.pg-faq summary{cursor:pointer;font-weight:600;line-height:1.65}.pg-proposals h4{font-size:1rem;margin-top:22px}.pg-proposals blockquote{border-left:3px solid var(--blue);margin:16px 0;padding:0 0 0 20px;line-height:1.8}.pg-roll,.pg-related-votes,.pg-faq,.pg-method,.pg-more{margin-top:48px;padding-top:26px;border-top:1px solid var(--line)}.pg-roll-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.pg-person-table small{display:block;color:var(--muted);font-size:.875rem;font-weight:400;margin-top:6px}.pg-vote-label{display:inline-block;font-size:.9rem;font-weight:650;white-space:nowrap}.pg-vote-f{color:var(--for-ink)}.pg-vote-m{color:var(--against-ink)}.pg-vote-n{color:var(--muted)}.pg-related-vote{margin:20px 0}.pg-related-vote h3{font-size:1.15rem;line-height:1.5}.pg-related-vote p{line-height:1.75}.pg-inline-note{padding-left:15px;border-left:3px solid var(--blue)}.pg-faq details{padding:20px 0;border-bottom:1px solid var(--line)}.pg-faq p{line-height:1.8}.power-promo{padding:22px 24px;background:var(--surface-tint);border:1px solid var(--line);border-radius:14px;margin:25px 0;line-height:1.7}.power-promo a{font-size:1.1rem;font-weight:650}
@media(max-width:700px){.pg-guide-grid{grid-template-columns:1fr}.pg-guide-card,.pg-related-vote{padding:20px}.pg-roll-filters{grid-template-columns:1fr}.pg-answer{padding:21px}.pg-answer h2{font-size:1.5rem}.pg-person-table{min-width:540px}.pg-share{gap:12px}.pg-breadcrumb{font-size:.875rem}.pg-reading h2{font-size:1.4rem}}
.pg-card-preview{margin:0 0 35px;max-width:800px}.pg-card-preview summary{cursor:pointer;min-height:44px;line-height:1.7}.pg-card-preview img{display:block;max-width:100%;height:auto;border-radius:12px;border:1px solid var(--line);margin:15px 0}

/* Evidence-linked parliamentary rankings. */
.top-intro{max-width:780px;font-size:1.15rem;line-height:1.65}.top-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.6rem 0 2rem}.top-tabs a{border:1px solid var(--line,#526371);border-radius:24px;padding:.65rem 1rem;text-decoration:none;color:inherit;font-weight:600}.top-tabs a[aria-current]{background:#c8f461;color:#0d1f2f;border-color:#c8f461}.top-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:1rem;margin:1.4rem 0}.top-filters label{display:grid;gap:.5rem;font-size:.9rem;font-weight:600}.top-filters select{width:100%;min-height:44px;max-width:100%;font:inherit}.top-table-wrap{overflow-x:auto;border:1px solid var(--line,#526371);border-radius:12px;margin:1.2rem 0}.top-table{width:100%;border-collapse:collapse;min-width:540px}.top-table th,.top-table td{padding:1rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--line,#526371)}.top-table thead{font-size:.9rem}.top-table tbody th{font-weight:600}.top-count{font-size:1.5rem;font-weight:750;font-variant-numeric:tabular-nums}.top-versus{display:block;font-size:.85rem;font-weight:400;margin:.35rem 0}.top-bar{display:block;background:#52637133;height:4px;margin-top:.5rem;width:110px;max-width:100%;border-radius:4px}.top-bar i{display:block;height:100%;background:#82ad36}.top-sharing{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin:1.4rem 0}.top-sharing button{font:inherit;padding:.7rem 1rem;border-radius:8px;border:1px solid var(--line,#526371);background:transparent;color:inherit;cursor:pointer}.top-vote{padding:1.2rem 0;border-bottom:1px solid var(--line,#526371)}.top-vote h3{font-size:1.1rem;margin:.5rem 0}.top-vote p{line-height:1.6}.top-vote time{font-size:.9rem}#top-evidence:empty{display:none}#top-evidence{margin:2rem 0}#toplists-view h1{font-size:clamp(2rem,5vw,3.3rem);line-height:1.15}@media(max-width:600px){.top-filters{grid-template-columns:1fr 1fr}.top-tabs a{font-size:.9rem}.top-table th,.top-table td{padding:.75rem}.top-table{min-width:500px}}

.top-sort-heading{background:none;border:0;color:inherit;font:inherit;font-weight:700;text-align:left;padding:0;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}.top-sort-heading span{font-weight:400;font-size:.85em;display:block;margin-top:.3rem}.top-sort-heading:focus-visible{outline:2px solid currentColor;outline-offset:5px}

/* Topic hubs & district alias search */
.topic-hub-pills{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:20px 0 28px}
.topic-hub-pill{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:var(--surface);text-decoration:none;color:var(--ink);box-shadow:var(--shadow-sm);transition:border-color .15s,background .15s}
.topic-hub-pill:hover{border-color:var(--blue);background:var(--surface-tint)}
.topic-hub-pill strong{font-size:.95rem;color:var(--ink)}
.topic-hub-pill span{font-size:.82rem;color:var(--blue);font-weight:600}
.topic-hub-section{margin:30px 0}
.topic-hub-section h2 a{color:var(--ink);text-decoration:none}
.topic-hub-section h2 a:hover{color:var(--blue);text-decoration:underline}
.district-filter-row{display:flex;flex-direction:column;gap:6px;max-width:440px;margin:10px 0 14px;font-size:.82rem;font-weight:600;color:var(--muted)}
.district-filter-row input{height:42px;padding:0 12px;border-radius:10px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font:inherit;font-weight:400}
.filters select,.pg-roll-filters select{appearance:none;-webkit-appearance:none;padding-right:36px}
