/* Facthem site stylesheet (redesign 2026).
   Ported from mockup/mock.css, the reference checked in the browser.
   One typeface (Inter), dark rose-burgundy, short eased motion, off under reduced-motion. */

/* Inter, self-hosted (assets/fonts/README.md). Variable 400–900, two subsets. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #120c0f;
  --bg-2: #181014;
  --surface: #1c1317;
  --surface-2: #24181d;
  --line: #34232b;
  --line-2: #4a313c;
  --text: #eedfe3;
  --text-2: #b9a1a9;
  --muted: #86707a;
  --accent: #d9708a;
  --accent-ink: #1a0d12;

  --v-ok: #5bc487;        /* Confirmado */
  --v-matiz: #5aa9d6;     /* Confirmado con matiz */
  --v-sobre: #d9a045;     /* Sobreestimado */
  --v-sub: #c98b4a;       /* Subestimado */
  --v-falso: #e2566f;     /* Falso */
  --v-nv: #6d5c64;        /* No verificable */
  --v-impreciso: #b38a6e; /* Inexacto */
  --v-descontext: #a77bb0;/* Descontextualizado */

  /* One family. Numbers use tabular figures, not a second font. */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
  --logo: linear-gradient(135deg, #f0b8c4 0%, #c8607a 100%);

  --r: 10px;
  --r-sm: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1360px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--sans); font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--r-sm); }
.muted { color: var(--muted); }
.num, .r-day, .r-n, .hero-stats dd, .conf, .chip .n, .legend .pct { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.eyebrow, .section-label {
  margin: 0; font: 500 12px/1.2 var(--sans); color: var(--muted); letter-spacing: .02em;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em; height: 40px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid transparent; text-decoration: none;
  font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--accent-ink); }
.btn-primary:hover { background: #fff3f6; }
/* Main page: the hero carries the live button, so the top bar doesn't repeat it */
.home .topbar .live-chip { display: none; }
.btn-live { color: #ffe3e8; background: color-mix(in oklab, var(--v-falso) 26%, var(--bg)); border-color: color-mix(in oklab, var(--v-falso) 60%, transparent); }
.btn-live:hover { background: color-mix(in oklab, var(--v-falso) 38%, var(--bg)); }
.btn-live .pulse { margin-right: 2px; }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--text-2); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); background: rgba(255,255,255,.03); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--text-2);
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 60px;
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); background: color-mix(in oklab, var(--bg) 90%, transparent); }
.wordmark, .logo {
  font-weight: 900; letter-spacing: -.04em; line-height: 1; text-decoration: none;
  background: var(--logo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wordmark { font-size: 22px; }
.nav { position: relative; display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 8px 12px; font-size: 14px; color: var(--text-2); text-decoration: none;
  border-radius: var(--r-sm); transition: color .15s;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav-ink {
  position: absolute; bottom: -11px; height: 2px; background: var(--accent); border-radius: 2px;
  transition: left .35s var(--ease-out), width .35s var(--ease-out);
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.live-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border-radius: var(--r-sm); text-decoration: none; font-size: 13px; font-weight: 500;
  color: #ffd9e1; background: rgba(226, 86, 111, .12); border: 1px solid rgba(226, 86, 111, .3);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--v-falso); position: relative; }
.pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--v-falso);
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

/* ── Phone menu ─────────────────────────────────────────────────────── */
.menu-btn, .mnav { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; place-content: center; gap: 4px; width: 38px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-btn span { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--text-2); transition: transform .25s var(--ease-out), opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .topbar-right .live-chip { display: none; }
  .mnav:not([hidden]) { display: grid; position: fixed; z-index: 29; top: 60px; left: 0; right: 0; padding: 8px 16px 16px; background: color-mix(in oklab, var(--bg) 96%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); animation: mnav-in .28s var(--ease-out) both; }
  @keyframes mnav-in { from { opacity: 0; transform: translateY(-8px); } }
  .mnav a { display: flex; align-items: center; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; }
  .mnav a[aria-current="page"] { color: var(--accent); }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; margin-top: -60px; padding-top: 60px;
  min-height: clamp(420px, 58vh, 560px); display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-art { position: absolute; inset: 0; }
.hero-art img {
  position: absolute; right: max(0px, calc((100vw - var(--max)) / 2 - 40px)); top: -6%; height: 118%; width: auto; max-width: none;
  transform: scaleX(-1);                     /* mirrored: Justice faces the text */
  animation: settle 1.6s var(--ease-out) both;
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 98%); /* flipped by scaleX(-1) */
          mask-image: linear-gradient(to right, #000 50%, transparent 98%); /* flipped by scaleX(-1) */
}
/* Wider than --max + 80px: the image stops short of the screen's right edge, so fade
   that edge too (on-screen right is the image's left, it is mirrored). */
@media (min-width: 1441px) {
  .hero-art img {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 50%, transparent 98%);
            mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 50%, transparent 98%);
  }
}
@keyframes settle { from { opacity: 0; transform: scaleX(-1) scale(1.06); } to { opacity: 1; transform: scaleX(-1) scale(1); } }
.hero-art::after {   /* bottom fade + film grain */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
/* Zoom into the image as the hero scrolls away, as on the current site
   (driven by --hero-zoom from mist.js). */
.hero-art { transform: scale(var(--hero-zoom, 1)); transform-origin: 68% 35%; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero-art { transform: none; } }
.mist {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%; width: 100%; z-index: 1; pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 45%, rgba(0,0,0,.75) 75%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, #000 45%, rgba(0,0,0,.75) 75%, transparent 100%);
  animation: fade 2.4s ease-out .3s both;
}
.hero-inner { z-index: 2; }
.hero-inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter); }
.hero h1 {
  margin: 12px 0 18px; font-size: clamp(56px, 7.5vw, 92px); padding-bottom: .06em;
}
.hero .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-sub { max-width: 46ch; margin: 0 0 28px; font-size: 17px; color: var(--text-2); text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 48px); margin: 40px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: 12px; color: var(--muted); }
.hero-stats dd { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.hero-inner > * { animation: rise .8s var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: .06s; }
.hero-inner > :nth-child(3) { animation-delay: .12s; }
.hero-inner > :nth-child(4) { animation-delay: .18s; }
.hero-inner > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ── Session rail ───────────────────────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 80px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rail-nav { display: flex; gap: 6px; position: relative; }
.cal-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--text); }
.cal {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; width: 300px; padding: 14px;
  border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.8); animation: pop .22s var(--ease-out) both; transform-origin: top right;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.cal-grid .dow { font-size: 11px; color: var(--muted); padding: 4px 0; }
.cal-grid span, .cal-grid button { height: 34px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); }
.cal-grid > span:not(.dow) { opacity: .45; font-weight: 400; }
.cal-grid button { all: unset; height: 34px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; color: #fff3f6; font-weight: 700; position: relative; background: color-mix(in oklab, var(--accent) 30%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 55%, transparent); transition: background .15s, transform .15s; }
.cal-grid button.deb { background: color-mix(in oklab, var(--v-matiz) 28%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--v-matiz) 55%, transparent); }
.cal-grid button::after { content: none; }
.cal-grid button:hover { transform: scale(1.06); background: color-mix(in oklab, var(--accent) 45%, var(--surface)); }
.cal-grid button.deb:hover { background: color-mix(in oklab, var(--v-matiz) 42%, var(--surface)); }
.cal-grid button[aria-current="date"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent); }
.cal-grid button[aria-current="date"]::after { background: var(--accent-ink); }
.cal-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.cal-legend i.deb { background: var(--v-matiz); }
.cal-legend i { background: color-mix(in oklab, var(--accent) 55%, var(--surface)) !important; }
.cal-legend i.deb { background: color-mix(in oklab, var(--v-matiz) 55%, var(--surface)) !important; }
.rail {
  list-style: none; margin: 0; padding: 2px 2px 12px; display: grid; grid-auto-flow: column;
  grid-auto-columns: 188px; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  mask-image: linear-gradient(to right, #000 92%, transparent);
}
.rail li { scroll-snap-align: start; }
.rail a {
  display: block; text-decoration: none; color: inherit;
  width: 100%; text-align: left; padding: 12px 14px 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--bg-2); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.rail a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rail a[aria-current="page"] { border-color: var(--accent); background: var(--surface); }
.rail .r-date { display: flex; align-items: baseline; gap: 6px; }
.rail .r-day { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.rail .r-mon { font-size: 13px; color: var(--text-2); }
.rail .r-org { display: block; margin: 6px 0 10px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .r-type { font-size: 11px; color: var(--muted); }
.rail .r-type.deb { color: var(--accent); }
.mini-stack { display: flex; height: 4px; border-radius: 2px; overflow: hidden; gap: 1px; }
.rail .r-n { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }

/* ── Session head + filters ─────────────────────────────────────────────── */
.session { margin-top: 28px; }
.session-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.session-head h2 { margin: 6px 0 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.session-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.filters {
  position: sticky; top: 60px; z-index: 20; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 10px 0; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.select { display: block; min-width: 0; }
.select select { max-width: 100%; }
.select select, .search input, .msel-btn {
  height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); font: 13px var(--sans); padding: 0 10px;
}
.select select { padding-right: 28px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 14px) 14px, calc(100% - 10px) 14px; background-size: 4px 4px; background-repeat: no-repeat; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 10px; color: var(--muted); }
.search input { padding-left: 30px; width: 220px; }

/* ── X-ray bar ──────────────────────────────────────────────────────────── */
.stack { display: flex; height: 14px; gap: 2px; border-radius: 4px; overflow: hidden; }
.stack button {
  all: unset; cursor: pointer; height: 100%; background: var(--c); flex-basis: 0; flex-grow: var(--w);
  transition: flex-grow .9s var(--ease-out), opacity .2s, filter .2s; position: relative;
}
.stack button.hatch { background: repeating-linear-gradient(-45deg, var(--c) 0 4px, color-mix(in oklab, var(--c) 60%, var(--bg)) 4px 7px); }
.stack.is-filtering button:not(.on) { opacity: .25; }
.stack button:hover { filter: brightness(1.2); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 12px 0 0; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.legend .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.legend .num { color: var(--text); }
.legend .pct { color: var(--muted); font-size: 12px; }

.count-line { margin: 18px 0 12px; font-size: 13px; color: var(--muted); }

/* ── Session panel: filters + distribution in one block ───────────────── */
.panel {
  position: sticky; top: 60px; z-index: 20; margin: 4px 0 20px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: color-mix(in oklab, var(--bg-2) 94%, transparent); backdrop-filter: blur(12px);
}
.panel-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; }
.panel-count { margin: 0 0 0 auto; font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.panel-count strong { color: var(--text); font-size: 15px; font-weight: 700; }
.panel .stack { height: 10px; }
.panel .legend { margin: 0; gap: 4px 16px; font-size: 12px; flex: 1; }
.panel .legend .num { font-weight: 600; }
.link-btn { all: unset; cursor: pointer; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.link-btn:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
#x-more-btn::after { content: ' +'; color: var(--muted); }
#x-more-btn[aria-expanded="true"]::after { content: ' −'; }

.msel { position: relative; z-index: 30; }
.panel-controls { position: relative; z-index: 5; }
.msel-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; cursor: pointer;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 13px;
}
.msel-btn:hover, .msel-btn[aria-expanded="true"] { border-color: var(--line-2); }
.msel.is-set .msel-btn { border-color: var(--accent); }
.msel-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.msel-btn svg { color: var(--muted); transition: transform .2s var(--ease); }
.msel-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.msel-pop {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 260px; padding: 6px;
  border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); animation: pop .2s var(--ease-out) both; transform-origin: top left;
}
.msel-opt { display: grid; grid-template-columns: 16px 18px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.msel-opt:hover { background: var(--surface-2); }
.msel-opt-plain { grid-template-columns: 16px 1fr auto; }
#f-tema .msel-pop { max-height: min(60vh, 420px); overflow-y: auto; }
.msel-opt:has(input:disabled) { opacity: .4; cursor: default; }
.msel-opt input { margin: 0; accent-color: var(--accent); }
.msel-opt .n { color: var(--muted); font-variant-numeric: tabular-nums; }

.panel-toggle-row { display: none; }
/* ── Claim cards ────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); cursor: pointer;
  text-align: left; color: inherit; text-decoration: none;
  transition: border-color .2s, background .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card {
  border-top: 3px solid var(--c);
  background: linear-gradient(180deg, color-mix(in oklab, var(--c) 9%, var(--bg-2)) 0%, var(--bg-2) 45%);
}
.card:hover { border-color: var(--line-2); border-top-color: var(--c); background: linear-gradient(180deg, color-mix(in oklab, var(--c) 13%, var(--surface)) 0%, var(--surface) 50%); transform: translateY(-2px); box-shadow: 0 12px 32px -16px rgba(0,0,0,.8); }
.card .who { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.card.in { animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 25ms); }

.who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover; object-position: 50% 20%;
  background: var(--surface-2); flex: none; filter: grayscale(.35) contrast(1.05);
  transition: filter .3s;
}
.card:hover .avatar { filter: none; }
.who-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-party { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--pc, var(--muted)); }
/* Verdict tag: solid colour block with a symbol, same everywhere */
.vtag {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 4px; flex: none;
  border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap;
  color: color-mix(in oklab, var(--c) 35%, #fff); background: color-mix(in oklab, var(--c) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c) 45%, transparent);
}
.vi { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; background: var(--c); color: #160c10; font-size: 12px; font-weight: 800; line-height: 1; }
.vtag-lg { height: 40px; padding: 0 16px 0 6px; gap: 10px; font-size: 17px; border-radius: 8px; }
.vtag-lg .vi { width: 28px; height: 28px; border-radius: 6px; font-size: 16px; }
.claim-q { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: -.01em; text-wrap: pretty; color: var(--text); }
.conf { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.conf i { display: inline-flex; gap: 2px; }
.conf i b { width: 3px; height: 10px; border-radius: 1px; background: var(--line-2); }
.conf i b.on { background: var(--text-2); }
mark { background: color-mix(in oklab, var(--accent) 30%, transparent); color: inherit; border-radius: 2px; }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }

/* ── Declutter pass: quiet panel, lean cards ──────────────────────────── */
.panel { border: 0; border-radius: 0; background: color-mix(in oklab, var(--bg) 92%, transparent); padding: 8px 0 12px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.panel-controls { padding: 0 0 12px; gap: 2px; }
.panel .stack { height: 6px; border-radius: 3px; gap: 2px; }
.panel .legend { margin: 8px 0 0; gap: 4px 18px; font-size: 12px; color: var(--muted); }
.panel .legend .dot { width: 6px; height: 6px; border-radius: 50%; }
.panel .legend .num { color: var(--text-2); font-weight: 500; }
/* filters read as quiet text dropdowns, not boxed inputs */
.panel .msel-btn, .panel .select select, .panel .search input {
  border-color: transparent; background-color: transparent; color: var(--text-2); font-size: 14px; height: 34px;
}
.panel .msel-btn:hover, .panel .select select:hover, .panel .search input:hover,
.panel .msel-btn[aria-expanded="true"], .panel .search input:focus { background-color: var(--surface); color: var(--text); }
.panel .msel.is-set .msel-btn { border-color: transparent; color: var(--text); }
.panel .select select { field-sizing: content; }
.panel .search input { width: 110px; transition: width .25s var(--ease-out), background-color .15s; }
.panel .search input:focus, .panel .search input:not(:placeholder-shown) { width: 220px; }
.panel .search input::placeholder { color: var(--text-2); }
.panel-count { font-size: 13px; }
.panel-count strong { font-size: 14px; }

.grid { gap: 16px; }
.card { gap: 12px; padding: 20px; border-top-width: 2px; background: var(--bg-2); }
.card:hover { background: var(--surface); }
.card .vtag { align-self: flex-start; }
.card .claim-q { font-size: 16px; font-weight: 500; line-height: 1.5; }
.card .who { margin-top: auto; padding-top: 4px; border-top: 0; gap: 8px; font-size: 13px; }
.card .avatar { width: 28px; height: 28px; border-radius: 50%; }
.card .who-name { font-weight: 500; font-size: 13px; color: var(--text-2); min-width: 0; }
.card .who-party { flex: none; font-size: 13px; color: var(--muted); }
.card .who-party::before { content: '·'; margin-right: 6px; }
/* colour only where it carries meaning: the verdict mark */
.card, .card:hover { border-top: 1px solid var(--line); background: var(--bg-2); }
.card:hover { border-color: var(--line-2); background: var(--surface); }
.card .vtag { color: var(--text); background: transparent; box-shadow: none; padding: 0; height: 20px; gap: 8px; font-size: 13px; font-weight: 600; }
.card .vtag .vi { width: 20px; height: 20px; }
.card .who { order: 3; }
.card-meta { order: 2; margin-top: -4px; font-size: 12px; color: var(--muted); }
.card .avatar { filter: grayscale(.6); }
.card:hover .avatar { filter: none; }

/* dropdowns above the cards */
.panel { z-index: 20; }
.msel-pop { z-index: 40; }

/* Card = article with a stretched link, so the share button can sit inside */
.card { cursor: pointer; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card.menu-open { z-index: 5; }

.share { position: relative; z-index: 2; margin-left: auto; flex: none; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; min-width: 28px; justify-content: center; padding: 0 6px;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s;
}
.share-btn:hover, .share-btn[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.share-btn.has-label { height: 34px; padding: 0 12px; font-size: 14px; border: 1px solid var(--line); color: var(--text-2); }
.share-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 190px; padding: 6px; display: grid;
  border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); animation: pop .18s var(--ease-out) both; transform-origin: top right;
}
.share-pop.up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom right; }
.share-pop.floating { position: fixed; right: auto !important; bottom: auto !important; z-index: 1000; }   /* placed by placeSharePop() (js/ui.js) */
.share-pop > * { all: unset; box-sizing: border-box; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.share-pop > *:hover, .share-pop > *:focus-visible { background: var(--surface-2); color: var(--text); }
.c-verdict .share { margin-left: auto; }

/* ── Claim page (static, crawlable; ~70% of the viewport on desktop) ────
   One type scale, one heading style, no nested boxes: sections are
   separated by space and hairlines only. */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

.claim-page { width: min(100%, max(70vw, 880px), 1240px); margin: 0 auto; padding: 24px var(--gutter) 96px; }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.pager { margin-left: auto; display: flex; gap: 6px; }
.pager a { text-decoration: none; }

.c-head { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 36px 0 32px; border-bottom: 1px solid var(--line); }
.c-head { border-bottom: 3px solid var(--vc, var(--line)); }
.c-photo { width: 120px; height: 148px; border-radius: 10px; object-fit: cover; object-position: 50% 18%; background: var(--surface-2); view-transition-name: claim-photo; }
.c-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.c-who a { color: var(--text); font-weight: 600; text-decoration: none; }
.c-who a:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-claim { margin: 12px 0 20px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; view-transition-name: claim-text; }
.c-verdict { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; color: var(--text-2); }

.c-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 32px; }
.c-main { display: grid; gap: 36px; align-content: start; }
.c-side { display: grid; gap: 32px; align-content: start; position: sticky; top: 84px; }

/* the single heading + body style used by every section */
.c-sec h2, .c-side h2 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.c-sec h2 .n { font-weight: 400; }
.c-sec p, .c-sec li { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.c-lead p { font-size: 18px; line-height: 1.6; }
.c-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.c-list li { position: relative; padding-left: 20px; }
.c-list li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 2px; background: var(--b, var(--muted)); }
.c-sources { list-style: none; padding: 0; margin: 0; counter-reset: s; border-top: 1px solid var(--line); }
.c-sources li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.c-sources li::before { content: counter(s); grid-row: span 3; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.c-sources a { color: var(--text); font-weight: 500; text-decoration: none; }
.c-sources a:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-sources .meta { font-size: 13px; color: var(--muted); }
.c-sources .meta .prim { color: var(--v-ok); }
.c-sources .dato { font-size: 14px; color: var(--text-2); }

.c-side dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.c-side dt { color: var(--muted); }
.c-side dd { margin: 0; text-align: right; color: var(--text); }
.meter { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: -4px; }
.meter span { display: block; height: 100%; width: var(--p); background: var(--text-2); transform-origin: left; animation: grow .9s var(--ease-out) .2s both; }
@keyframes grow { from { transform: scaleX(0); } }
.c-more { list-style: none; padding: 0; margin: 0; display: grid; }
.c-more a { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 8px 0; font-size: 14px; line-height: 1.45; color: var(--text-2); text-decoration: none; transition: color .15s; }
.c-more a:hover { color: var(--text); }
.c-more .dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 2px; background: var(--c); }
.c-side .all { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.c-side .all:hover { color: var(--text); }
.c-side { gap: 24px; }
.c-cols { gap: 72px; padding-top: 32px; }
.claim-page .c-head { border-bottom: 0; padding-bottom: 24px; }
.claim-page .p-pic .share-btn.has-label { height: 26px; padding: 0 8px; border: 0; font-size: 12px; color: var(--muted); gap: 5px; }
.claim-page .p-pic .share-btn.has-label svg { width: 13px; height: 13px; }
.claim-page .p-pic .share-btn.has-label:hover { color: var(--text); background: var(--surface-2); }
.claim-page .p-pic .share-pop { left: 0; right: auto; transform-origin: top left; }
.c-conf { display: grid; gap: 8px; }
.c-conf-track { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.c-conf-track span { display: block; height: 100%; width: var(--p); border-radius: 2px; background: var(--c); transform-origin: left; animation: grow 1s var(--ease-out) .25s both; }
.c-conf-lbl { justify-self: end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-tags { font-size: 14px; color: var(--muted); }
.c-more small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.c-more { gap: 4px; }
/* share: attached to the photo as its caption bar, not floating below it */
.p-pic { gap: 0; align-self: start; align-content: start; }
.p-pic img { display: block; }
.p-pic .p-photo, .p-pic .c-photo { border-radius: 10px 10px 0 0; }
.p-pic .share { width: 100%; }
.p-pic .share-btn.has-label, .claim-page .p-pic .share-btn.has-label {
  width: 100%; height: 28px; justify-content: center; border-radius: 0 0 10px 10px;
  background: var(--surface); border: 1px solid var(--line); border-top: 0; color: var(--text-2);
}
.p-pic .share-btn.has-label:hover, .claim-page .p-pic .share-btn.has-label:hover { background: var(--surface-2); color: var(--text); }
.c-conf-lbl b { color: var(--text-2); font-weight: 600; }
.c-main { gap: 40px; }
.c-head { border-bottom-width: 2px; }
.c-who .who-party::before { content: '·'; margin-right: 4px; color: var(--muted); }
.c-who .pdot { display: none; }
.c-main > *, .c-side > * { animation: rise .5s var(--ease-out) both; }
.c-main > :nth-child(2), .c-side > :nth-child(2) { animation-delay: .05s; }
.c-main > :nth-child(3), .c-side > :nth-child(3) { animation-delay: .1s; }
.c-main > :nth-child(n+4) { animation-delay: .15s; }

@media (max-width: 860px) {
  .claim-page { width: 100%; padding-top: 16px; }
  .crumbs .crumb-session { display: none; }
  .claim-page .p-pic .share-btn.has-label span { display: none; }
  .c-who { flex-direction: column; align-items: flex-start; gap: 2px; }
  .c-who .who-party::before { content: none; }
  .c-head { grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; }
  .c-photo { width: 64px; height: 80px; }
  .c-claim { font-size: 22px; }
  .c-cols { grid-template-columns: 1fr; gap: 40px; }
  .c-side { position: static; padding-top: 8px; }
}
/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; font-size: 13px; }
/* the disclaimer: its own row across the whole footer */
.footer-note { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a, .footer-social a { color: var(--text-2); text-decoration: none; }
.footer nav a:hover, .footer-social a:hover { color: var(--text); }
.footer-social { display: flex; gap: 16px; align-items: center; }

/* ── Secondary pages: shared bits ────────────────────────────────────── */
.page { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 96px; }
.page-narrow { max-width: 1040px; }
.page-head { padding: 24px 0 28px; }
.page-head h1, .p-id h1, .doc-body h1, .live-head h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.page-head p { margin: 8px 0 0; font-size: 15px; }
.stack > span { height: 100%; background: var(--c); }
.stack > span.hatch { background: repeating-linear-gradient(-45deg, var(--c) 0 4px, color-mix(in oklab, var(--c) 60%, var(--bg)) 4px 7px); }
.stack-static { height: 8px; border-radius: 4px; }
.stack-static > span { transform-origin: left; animation: grow .9s var(--ease-out) both; }
.legend .dot { width: 6px; height: 6px; border-radius: 50%; }
.quiet-filters { display: flex; gap: 2px; flex-wrap: wrap; }
.quiet-filters select, .quiet-filters .search input, .dir-bar .search input { border-color: transparent; background-color: transparent; color: var(--text-2); font-size: 14px; height: 34px; }
.quiet-filters select:hover, .quiet-filters .search input:hover, .quiet-filters .search input:focus { background-color: var(--surface); color: var(--text); }
.quiet-filters .search input { width: 110px; transition: width .25s var(--ease-out); }
.quiet-filters .search input:focus, .quiet-filters .search input:not(:placeholder-shown) { width: 200px; }
.quiet-filters .search input::placeholder { color: var(--text-2); }
.side-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.side-note a { color: var(--text-2); }

/* ── Representative ─────────────────────────────────────────────────── */
.p-head { display: grid; grid-template-columns: 132px 1fr auto; gap: 32px; align-items: start; padding: 32px 0 28px; }
.p-photo { width: 132px; height: 164px; border-radius: 12px; object-fit: cover; object-position: 50% 18%; background: var(--surface-2); }
.p-meta { margin: 8px 0 24px; color: var(--text-2); font-size: 15px; }
.p-sec h2, .p-side h2, .s-sec h2, .live-dist h2, .past h2 { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.p-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.p-sec-head h2 { margin: 0; }
@keyframes rise-y { from { transform: scaleY(0); } }
.r-group { margin-top: 28px; }
.r-group h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.r-group h3 a { color: var(--text); text-decoration: none; }
.r-group h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.r-group h3 span { font-size: 13px; font-weight: 400; color: var(--muted); }
.card-meta-inline { font-size: 12px; color: var(--muted); }
.roles { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.45; }

/* salary */
.sal-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sal-table th, .sal-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.sal-table th[scope="row"], .sal-table thead th:first-child { text-align: left; font-weight: 500; color: var(--text); padding-right: 10px; }
.sal-table td { color: var(--text-2); padding-left: 10px; white-space: nowrap; }
.sal-table thead th { font-size: 12px; font-weight: 500; color: var(--muted); padding-top: 0; }
.sal-table small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; line-height: 1.35; }
.sal-table tfoot th, .sal-table tfoot td { color: var(--text); font-weight: 700; border-bottom: 0; }

/* profile: two one-line summary panels that unfold */
.p-head { grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding: 28px 0 20px; }
.p-head .p-photo { width: 96px; height: 120px; border-radius: 10px; }
.p-head .p-meta { margin: 6px 0 0; }
.sums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.sum { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); transition: border-color .2s, background .2s; }
.sum:hover { border-color: var(--line-2); }
.sum[open] { background: var(--surface); }
.sum summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 14px 16px; }
.sum summary::-webkit-details-marker { display: none; }
.sum-line { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum-line b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.sum-k { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 6px; }
.sum-dim { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.sum-sep { color: var(--muted); margin: 0 2px; }
.sum-unit { color: var(--muted); font-size: 13px; flex: none; }
.only-m { display: none; }
.sum .chev { color: var(--muted); transition: transform .25s var(--ease-out); }
.sum[open] .chev { transform: rotate(180deg); }
.sum-bar, .sum-sub { grid-column: 1 / -1; }
.sum-bar { height: 6px; border-radius: 3px; }
.sum-body { padding: 4px 16px 18px; display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.sum[open] .sum-body { animation: rise .35s var(--ease-out) both; }
.sum-body .legend { margin: 0; font-size: 13px; color: var(--text-2); }
.sum-body .legend .num { color: var(--text); }
.sum-block h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sum-block .stack { margin-bottom: 10px; }
.p-claims { padding-top: 40px; }

/* profile v3: discreet share under the photo, stacked equal panels, one-line filters */
.p-head { grid-template-columns: 96px 1fr; align-items: start; }
.p-pic { display: grid; gap: 6px; justify-items: center; }
.p-pic .share { margin: 0; }
.p-pic .share-btn.has-label { height: 26px; padding: 0 8px; border: 0; font-size: 12px; color: var(--muted); gap: 5px; }
.p-pic .share-btn.has-label svg { width: 13px; height: 13px; }
.p-pic .share-btn.has-label:hover { color: var(--text); background: var(--surface-2); }
.p-pic .share-pop { left: 0; right: auto; transform-origin: top left; }
.p-id { padding-top: 6px; }
.sums { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sum summary { min-height: 74px; align-content: center; }
.p-sec-head { flex-wrap: nowrap; }
.p-sec-head h2 { flex: none; }
.p-sec-head .quiet-filters { flex-wrap: nowrap; min-width: 0; justify-content: flex-end; }
.p-sec-head .quiet-filters .select { flex: 0 1 auto; min-width: 0; }
.p-sec-head .quiet-filters select { max-width: 100%; }

/* share attached under the profile photo (wins over .p-head .p-photo) */
.p-head .p-pic, .c-head .p-pic { gap: 0; align-self: start; align-content: start; }
.p-head .p-pic .p-photo { border-radius: 10px 10px 0 0; }
.p-head .p-pic .share-btn.has-label { width: 100%; height: 28px; justify-content: center; border-radius: 0 0 10px 10px; background: var(--surface); border: 1px solid var(--line); border-top: 0; color: var(--text-2); }

/* ── Directory ──────────────────────────────────────────────────────── */
.dir-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.search-lg { flex: 1; min-width: 260px; }
.search-lg svg { left: 14px; }
.dir-bar .search-lg input { width: 100%; height: 48px; padding-left: 42px; font-size: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); }
.dir-bar .search-lg input:focus { border-color: var(--line-2); }
.dir-bar .panel-count { margin-left: 0; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); text-decoration: none; color: inherit; transition: background .15s; }
.person:hover { background: var(--surface); }
.person.in { animation: rise .45s var(--ease-out) both; animation-delay: calc(var(--i) * 12ms); }
.person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--surface-2); filter: grayscale(.5); transition: filter .2s; flex: none; }
.person:hover img { filter: none; }
.person-txt { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-meta .pdot { background: var(--pc); flex: none; }
.person-sal { margin-left: auto; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ── Stats ──────────────────────────────────────────────────────────── */

/* ── Stats cards (same set as the current dashboard) ─────────────────── */
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; grid-auto-flow: row dense;
  grid-auto-rows: minmax(var(--sc-h, 284px), auto); }   /* every card the same height (lists grow) */
/* A single-figure card: the figure sits centred between title and description */
.sc:not(.sc-dual):not(.sc-list) > .sc-value:first-of-type { margin-top: auto; }
.sc { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); transition: border-color .2s, background .2s; }
.sc:hover { border-color: var(--line-2); background: var(--surface); }
.sc-title { margin: 0 0 4px; font-size: 15px; font-weight: 650; color: var(--accent); letter-spacing: -.005em; line-height: 1.3; }
/* One size for every figure on the page (it used to be 15/16/20/36 px) */
.sc-value { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.sc-big, .sc-sm { font-size: 17px; }
.sc-sub { margin: 0; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sc-sub.bad { color: #f19aab; }
.sc > .sc-sub:last-of-type, .sc-rows, .sc-events { margin-bottom: 12px; }
.sc-desc { margin: auto 0 0; min-height: 0; padding-bottom: 0; }
.sc-desc { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); }
.sc-k { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
.sc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.sc-cols > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.sc-rows, .sc-table { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.sc-rows li { display: grid; grid-template-columns: 1fr auto 44px; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sc-rows .p { text-align: right; color: #f19aab; }
.sc-events { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.sc-table li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.sc-table li .n { font-variant-numeric: tabular-nums; color: var(--text); }
.sc-table-3 li { grid-template-columns: 1.2fr 1fr 1fr; }
.sc-table-3 li.hd { border-top: 0; font-size: 11px; font-weight: 600; color: var(--muted); }
.sc-wide { grid-column: span 2; }
@media (prefers-reduced-motion: no-preference) {
  .sc { opacity: 0; transform: translateY(10px); }
  .sc.in { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), border-color .2s, background .2s; transition-delay: calc(var(--i) * 60ms), calc(var(--i) * 60ms), 0s, 0s; }
}
@media (max-width: 1023px) { .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .sgrid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } .sc-wide { grid-column: auto; } }   /* stacked: each card fits its content */

/* ── Live ───────────────────────────────────────────────────────────── */
.live-chip.is-active { background: rgba(226, 86, 111, .22); }
.live { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 80px; }
.now { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.now img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.eq { margin-left: auto; display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; background: var(--accent); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.caption {
  /* Fixed slot: always three lines tall, newest text anchored at the bottom,
     older text fades out at the top. Nothing below it ever moves. */
  margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.5;
  height: calc(1.5em * 4); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.2em); mask-image: linear-gradient(to bottom, transparent 0, #000 1.2em);
}
.caption b, .caption .cap-txt { display: block; }
/* speaker change: a thin rule with the new speaker's name */
.feed { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 10px; overflow-anchor: none; }

/* live card: same surface as the session cards */

.feed { grid-template-columns: minmax(0, 1fr); }

/* "Verificando Ns": a real spinner, so "still working" reads at a glance */
@keyframes spin { to { transform: rotate(360deg); } }

/* weak drawer */

@media (prefers-reduced-motion: no-preference) {
  /* in flight: a light runs along the top edge */
  @keyframes scan { from { background-position: 100% 0; } to { background-position: -100% 0; } }

  /* verdict lands: edge sweeps in the verdict colour, the tag stamps, the card flashes once */
  /* no coloured top line on landed cards: the stamp and the flash carry the moment */
  /* stamp: see .stamped below */

  /* caption: newest words land one by one, the previous chunk settles */
  .caption b { font-weight: 400; }
  .caption b.fresh { color: var(--text); }
  @keyframes word-in { from { opacity: 0; transform: translateY(4px); filter: blur(3px); } }
  @keyframes settle-c { from { color: var(--text); } to { color: var(--muted); } }

  /* speaker change: wash, avatar pops with a ring, name slides in */
  .now { border-radius: var(--r); padding: 6px 8px; margin: 0 -8px; }
  @keyframes now-wash { 0% { box-shadow: inset 3px 0 0 var(--accent); background: rgba(217,112,138,.12); } 100% { box-shadow: inset 0 0 0 var(--accent); background: transparent; } }
  @keyframes avatar-in { 0% { transform: scale(.7); box-shadow: 0 0 0 0 rgba(217,112,138,.7); } 60% { transform: scale(1.04); } 100% { transform: none; box-shadow: 0 0 0 10px transparent; } }
  @keyframes slide-in { from { opacity: 0; transform: translateX(-8px); } }
  @keyframes bump { 40% { transform: scale(1.3); } }
  @keyframes drawer-received { 0% { border-color: rgba(217,112,138,.7); box-shadow: 0 4px 24px rgba(217,112,138,.15); } 100% { border-color: var(--line); box-shadow: none; } }
}

/* ── Text pages (methodology, blog, legal) ──────────────────────────── */
.doc { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 64px; justify-content: center; }
.doc-toc { position: sticky; top: 92px; align-self: start; padding-top: 40px; font-size: 13px; }
.toc-label { margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 6px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; transition: color .15s, border-color .2s; }
.doc-toc a:hover { color: var(--text); }
.doc-toc a.on { color: var(--text); border-left-color: var(--accent); }
.doc-body { padding-top: 32px; font-size: 17px; line-height: 1.7; }
.eyebrow-plain { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--accent); }
.doc-meta { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
/* "Ver la última sesión" (#session) lands with the sitting's title just under the top bar */
#session { scroll-margin-top: 76px; }
.doc-body h2 { margin: 48px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; scroll-margin-top: 84px; }
.doc-body p, .doc-body li { color: var(--text-2); }
.doc-body ul { padding-left: 20px; display: grid; gap: 6px; }
.doc-body strong, .doc-body em { color: var(--text); }
.verdicts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.verdicts > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.verdicts dd { margin: 0; font-size: 15px; color: var(--text-2); }

/* ── Verdict stamp: lifted above the page, lands with a short press, a faint
   ink ring, and the card takes the impact. Restrained: ~0.75 s, no bounce loop. */
.stamped { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .reveal .stamped, .stamp-on-load .stamped {
    transform-origin: 30% 60%;
    animation: stamp-lift .75s cubic-bezier(.3, .6, .2, 1) both;
  }
  .stamp-on-load .stamped { animation-delay: .35s; }
  .reveal .stamped::after, .stamp-on-load .stamped::after {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
    animation: stamp-ring .7s ease-out both; animation-delay: .42s;
  }
  .stamp-on-load .stamped::after { animation-delay: .77s; }
  .reveal .stamped .vi, .stamp-on-load .stamped .vi { animation: stamp-ink .6s ease-out both; animation-delay: .4s; }
  .stamp-on-load .stamped .vi { animation-delay: .75s; }
  .stamp-on-load .c-head { animation: impact .75s ease-out .35s; }
  /* clicked again (js/claim.js): the same stamp, straight away */
  .restamp .stamped { animation-delay: 0s; }
  .restamp .stamped::after { animation-delay: .07s; }
  .restamp .stamped .vi { animation-delay: .05s; }
  .restamp .c-head { animation-delay: 0s; }
}
.claim-page .c-verdict .stamped { cursor: pointer; }
@keyframes stamp-lift {
  0%   { opacity: 0; transform: translate(-4px, -16px) scale(1.45) rotate(-7deg); filter: blur(3px) drop-shadow(0 18px 12px rgba(0,0,0,.5)); }
  45%  { opacity: 1; transform: translate(-2px, -8px) scale(1.2) rotate(-4deg); filter: blur(0) drop-shadow(0 12px 9px rgba(0,0,0,.45)); }
  62%  { transform: translate(0, 1px) scale(.94) rotate(-1deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
  78%  { transform: scale(1.02) rotate(0); filter: none; }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes stamp-ring { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--c) 55%, transparent); opacity: 1; } 100% { box-shadow: 0 0 0 9px color-mix(in oklab, var(--c) 0%, transparent); opacity: 0; } }
@keyframes stamp-ink { 0% { filter: brightness(1.6) saturate(1.3); } 100% { filter: none; } }
@keyframes impact { 0%, 55% { transform: none; } 64% { transform: translateY(1px) scale(.997); } 100% { transform: none; } }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav, .cmdk kbd { display: none; }
  .hero { min-height: 0; }
  /* the whole figure at the hero's height (not a 150%-wide crop of its face) */
  /* The whole figure at the hero's height; every edge that ends inside the hero
     fades out (the image is mirrored, so "to right" fades its on-screen left edge). */
  .hero-art img { right: -22% !important; top: 40px; width: auto; height: calc(100% - 24px); opacity: .45;
    -webkit-mask-image: linear-gradient(to right, #000 40%, transparent 92%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 55%, transparent 100%);
            mask-image: linear-gradient(to right, #000 40%, transparent 92%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 55%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .hero-inner { padding-top: 28px; padding-bottom: 28px; }
  .hero h1 { margin: 8px 0 12px; }
  .hero-sub { font-size: 15px; margin-bottom: 20px; }
  .hero-stats, .hero-ctas .btn-ghost { display: none; }
  main { padding-top: 20px; }
  .rail-head { margin-bottom: 8px; }
  .rail-nav [data-rail] { display: none; }
  .rail { grid-auto-columns: 128px; gap: 8px; padding-bottom: 6px; }
  .rail a { padding: 10px 12px 12px; }
  .rail .r-org, .rail .r-n { display: none; }
  .rail .r-day { font-size: 22px; }
  .rail .r-date { margin: 2px 0 8px; }
  .session { margin-top: 16px; }
  .session-head { margin-bottom: 14px; }
  .session-head .eyebrow { display: none; }
  .session-head h2 { font-size: 22px; }
  .panel { padding-top: 0; margin-bottom: 16px; }
  .panel-count, .panel .legend { display: none; }
  .panel-controls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; margin: 0 calc(-1 * 16px); padding-left: 16px; padding-right: 16px; }
  .panel-controls > * { flex: none; }
  .panel .search { flex: none; } .panel .search input, .panel .search input:focus { width: 120px; }
  /* phone filters: folded under one button */
  .panel-toggle-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; }
  .filters-toggle { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 14px; cursor: pointer; }
  .filters-toggle .chev { color: var(--muted); transition: transform .25s var(--ease-out); }
  .panel.open .filters-toggle { border-color: var(--line-2); background: var(--surface); }
  .panel.open .filters-toggle .chev { transform: rotate(180deg); }
  .ft-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
  .ft-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .ft-count strong { color: var(--text); }
  .panel .panel-controls { display: none; }
  /* open: the chip row (swipeable, chips sized to their labels) */
  .panel.open .panel-controls { display: flex; flex-wrap: wrap; overflow: visible; gap: 8px; margin: 0; padding: 2px 0 14px; animation: rise .3s var(--ease-out) both; }
  .panel.open .panel-controls > * { flex: none; }
  .panel .msel-btn, .panel .select select, .panel .search input {
    height: 36px; border: 1px solid var(--line); background-color: var(--bg-2); border-radius: 999px; color: var(--text); font-size: 14px;
  }
  .panel .msel-btn { padding: 0 14px; gap: 6px; }
  .panel .select select { width: auto; field-sizing: content; padding: 0 30px 0 14px; background-position: calc(100% - 16px) 15px, calc(100% - 12px) 15px; }
  .panel .search svg { left: 13px; }
  .panel .search input, .panel .search input:focus { width: 110px; padding-left: 34px; }
  .panel .msel-pop { min-width: 260px; }
  .panel .msel.is-set .msel-btn { border-color: var(--accent); }
  .hero h1 { max-width: none; }
  .filters { flex-direction: column; align-items: stretch; flex-wrap: nowrap; } .search input { width: 100%; }
  .select select { width: 100%; }
  .panel { position: relative; top: 0; }

  .footer-inner { grid-template-columns: 1fr; }
  .session-actions { display: none; }
  .p-head { grid-template-columns: 64px 1fr; gap: 14px; }
  .p-head .p-photo { width: 64px; height: 80px; }
  .p-pic .share-btn.has-label span { display: none; }
  .p-sec-head h2 { display: none; }
  .p-sec-head .quiet-filters { width: 100%; justify-content: space-between; }
  .p-sec-head .quiet-filters .search input, .p-sec-head .quiet-filters .search input:focus { width: 104px; }
  .p-head h1 { font-size: 22px; }
  .sums { grid-template-columns: minmax(0, 1fr); }
  .sum-k { display: none; }
  .sum-sal .sum-k { display: inline; }   /* the figures alone don't say what they are */
  .only-m { display: inline; } .only-d { display: none; }
  .sum-line b { font-size: 16px; }
  .sal-table th, .sal-table td { font-size: 12px; }
  .p-cols, .s-two, .live-cols, .doc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .doc-toc { display: none; }
  .verdicts > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Live on phones: video fixed on top, the bar, then a feed that scrolls
   on its own and follows new verifications. No title block, captions,
   counter or filters. */
@media (max-width: 860px) {
  /* The whole live view is pinned under the top bar: header, video and bar
     never move; only the feed scrolls (also on iOS Safari, which ignores
     overflow:hidden on body). */
  .live { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; height: auto; padding: 0; max-width: none; background: var(--bg); }
  /* One header on phones: the session title and its share button live in the
     site's top bar; the separate live header row is dropped. */
  @keyframes ping-dot { 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
  .now, .caption { display: none; }
}

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

/* ── Politician search (top bar on desktop, inside the ☰ menu on phones) ── */
.psearch { position: relative; }
.psearch-box {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 12px; min-width: 260px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); color: var(--muted);
  transition: border-color .15s;
}
.psearch-box:hover, .psearch-box:focus-within { border-color: var(--line-2); }
.psearch-input { all: unset; flex: 1; min-width: 0; font-size: 13px; color: var(--text); }
.psearch-input::placeholder { color: var(--muted); }
.psearch-input::-webkit-search-cancel-button { display: none; }
.psearch-box kbd { font: 500 11px var(--sans); padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; }
.psearch-box:focus-within kbd { display: none; }
.psearch-list {
  /* anchored to the box's right edge, never wider than the window */
  position: absolute; right: 0; left: auto; top: calc(100% + 6px); z-index: 45; margin: 0; padding: 6px; list-style: none;
  width: max(100%, 340px); max-width: calc(100vw - 24px); max-height: min(60vh, 420px); overflow-y: auto; overflow-x: hidden;
  border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); animation: pop .18s var(--ease-out) both;
}
.psearch-list li a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; text-decoration: none; }
.psearch-list li[aria-selected="true"] a, .psearch-list li a:hover { background: var(--surface-2); }
.psearch-list img, .psearch-list .ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--surface-2); }
.psearch-list .nm { display: block; font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psearch-list .mt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.35; color: var(--muted); }   /* long ministries wrap to a second line */
.psearch-list .none { padding: 10px; font-size: 13px; color: var(--muted); }
span.avatar { display: inline-block; }
.footer-support { color: var(--muted); }
.footer-social { flex-wrap: wrap; }
.live-chip { white-space: nowrap; flex: none; }
@media (max-width: 1100px) { .psearch-box { min-width: 200px; } }
@media (max-width: 1023px) { .topbar { gap: 20px; } .psearch-box { min-width: 0; width: 170px; } .psearch-box kbd { display: none; } }
@media (max-width: 860px) {
  .psearch-top { display: none; }
  .mnav .psearch-box { min-width: 0; height: 44px; }
  .mnav .psearch-input { font-size: 16px; }   /* 16px: no iOS zoom on focus */
  .mnav .psearch-box kbd { display: none; }
  .mnav .psearch-list { position: static; box-shadow: none; margin-top: 6px; max-height: 50vh; min-width: 0; width: auto; max-width: none; }
  .mnav .psearch-list li a { padding: 10px 4px; border-bottom: 0; font-size: 15px; }
}

/* ── Claim page: no photo, sources without a link ───────────────────── */
.c-photo-none { display: grid; place-items: center; font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--muted); background: var(--surface-2); }
.c-sources .src-name { color: var(--text); font-weight: 500; }
.c-sources li > * { grid-column: 2; }
.c-who time { white-space: nowrap; }
@media (max-width: 860px) { .c-photo-none { font-size: 22px; } }
/* three related lists make the side column taller than the screen: no sticky */
.c-side { position: static; }

/* ── Profile: panel without data (no claims yet / no salary row) ─────── */
.sum-empty { display: grid; align-content: center; min-height: 74px; padding: 14px 16px; }
.sum-empty .sum-dim { white-space: normal; }
.p-head .c-photo-none { width: 132px; height: 164px; border-radius: 12px; font-size: 40px; }
@media (max-width: 860px) { .p-head .c-photo-none { width: 88px; height: 110px; font-size: 28px; } }

/* ── Directory: prerendered list ─────────────────────────────────────── */
ul.dir { list-style: none; margin: 0; padding: 0; }
.person-ph { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.person-stats { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.person-stats .person-sal { margin: 0; font-size: 12px; color: var(--text-2); }
.dir-bar .search-lg input::-webkit-search-cancel-button { filter: invert(.6); }
@media (max-width: 639px) { .dir { grid-template-columns: minmax(0, 1fr); } .dir-bar .quiet-filters { width: 100%; } .dir-bar .panel-count { width: 100%; } }
.dir { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ── Home: rail mini bars (same segments as .stack) ─────────────────── */
.mini-stack > span { height: 100%; background: var(--c); }
.mini-stack > span.hatch { background: repeating-linear-gradient(-45deg, var(--c) 0 3px, color-mix(in oklab, var(--c) 60%, var(--bg)) 3px 5px); }
#grid[aria-busy="true"] { opacity: .5; transition: opacity .2s; }

/* ── Sitting page (/sesion/<id>.html) ───────────────────────────────── */
.sesion-page .session { margin-top: 12px; }
.s-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.s-nav a { max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) { .s-nav { flex-direction: column; } .s-nav a { max-width: 100%; } }

/* ── Text pages: content kept from the old site ─────────────────────── */
.doc-body h1 { margin: 0; }
.doc-body h3 { margin: 28px 0 8px; font-size: 17px; color: var(--text); }
.doc-body a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.doc-body a:hover { text-decoration-color: var(--accent); }
.doc-body a.btn { text-decoration: none; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc-body th { color: var(--muted); font-weight: 600; font-size: 13px; }
.doc-body td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.doc-body figure { margin: 24px 0; }
.doc-body figure img { max-width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.doc-body figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.doc-body .donate-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.doc-hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.blog-post time { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.blog-post h2 { margin-top: 6px; }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-toc { display: none; }
  .doc-body { font-size: 16px; }
  .doc-body td:first-child { white-space: normal; }
}

/* ── Archive (noindex link graph, A–Z by representative) ─────────────── */
.archive-page { max-width: 960px; }
.archive-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 28px; }
.archive-letter { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; font-weight: 700; color: var(--text-2); text-decoration: none; }
a.archive-letter:hover { border-color: var(--line-2); color: var(--text); }
.archive-letter--current { background: var(--surface-2); border-color: var(--accent); color: var(--text); }
.archive-letter--empty { opacity: .3; border-color: transparent; }
.archive-page h2 { margin: 28px 0 8px; font-size: 15px; font-weight: 700; }
.archive-page h2 a { color: var(--text); text-decoration: none; }
.archive-page h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.archive-page ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.archive-page li { font-size: 14px; line-height: 1.5; color: var(--muted); }
.archive-page li a { color: var(--text-2); text-decoration: none; }
.archive-page li a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.archive-page .archive-nav:last-child { margin: 40px 0 0; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.nf { padding-top: 12vh; padding-bottom: 16vh; }
.nf h1 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.035em; }
.nf .muted { max-width: 56ch; font-size: 16px; }
.nf-hint a { color: var(--text); }
.nf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }


/* Slot-machine salary digits (js/profile.js): a reel of 30 digits per place,
   spun down to its digit with a small overshoot, staggered left to right. */
.roll .rd { display: inline-block; position: relative; height: 1.15em; line-height: 1.15em; overflow: hidden; vertical-align: bottom; color: transparent; }
.roll .rs { display: inline-block; height: 1.15em; line-height: 1.15em; vertical-align: bottom; white-space: pre; }
.roll .rd::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
  position: absolute; left: 0; right: 0; top: 0; text-align: center; white-space: pre; color: var(--text); pointer-events: none;
  transform: translateY(calc(var(--n) * -1.15em));
  animation: reel var(--d) linear var(--w) both; }
/* steady spin that slows down, runs a quarter digit past, and clicks back */
@keyframes reel {
  0%   { transform: translateY(0); filter: blur(1.5px); animation-timing-function: cubic-bezier(.35, .15, .45, 1); }
  82%  { transform: translateY(calc((var(--n) + .22) * -1.15em)); filter: blur(0); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  100% { transform: translateY(calc(var(--n) * -1.15em)); filter: blur(0); }
}

/* Representantes: featured cards until the reader searches (js/directory.js) */
.dir-top-h { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.vips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.vip { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color .2s, background .2s, transform .2s var(--ease-out); }
.vip:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.vip img, .vip .person-ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--surface-2); margin-bottom: 8px; filter: grayscale(.35); transition: filter .2s; }
.vip .person-ph { font-size: 22px; }
.vip:hover img { filter: none; }
.vip-name { font-size: 15px; font-weight: 650; line-height: 1.25; text-wrap: balance; }
.vip-meta { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.vip-meta .pdot { display: inline-block; background: var(--pc); margin-right: 6px; vertical-align: 1px; }
.vip-stats { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.vips > li { animation: rise .5s var(--ease-out) both; }
.vips > li:nth-child(2) { animation-delay: 60ms; }
.vips > li:nth-child(3) { animation-delay: 90ms; }
.vips > li:nth-child(4) { animation-delay: 120ms; }
.vips > li:nth-child(5) { animation-delay: 150ms; }
.vips > li:nth-child(6) { animation-delay: 180ms; }
.vips > li:nth-child(7) { animation-delay: 210ms; }
.vips > li:nth-child(8) { animation-delay: 240ms; }
.vips > li:nth-child(9) { animation-delay: 270ms; }
.vips > li:nth-child(10) { animation-delay: 300ms; }
.vips > li:nth-child(11) { animation-delay: 330ms; }
.vips > li:nth-child(12) { animation-delay: 360ms; }
.vips > li:nth-child(13) { animation-delay: 390ms; }
.vips > li:nth-child(14) { animation-delay: 420ms; }
.vips > li:nth-child(15) { animation-delay: 450ms; }
.vips > li:nth-child(16) { animation-delay: 480ms; }
.dir-more { margin: 24px 0 0; text-align: center; }
@media (max-width: 639px) { .vips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .vip { padding: 16px 10px 14px; } .vip img, .vip .person-ph { width: 72px; height: 72px; } .vip-name { font-size: 14px; } }

/* "Directos" while a debate is on air (js/ui.js initLive) */
.nav a.is-on, .mnav a.is-on { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
