/* Radar d’opinió — tokens. Generat de tokens.json amb tools/build_tokens.py: no l’editis a mà. */

@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('./fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2'); }

:root {
  /* Color — només tema clar */
  --surface-page: #f2f2f2;
  --surface-panel: #ffffff;
  --surface-sunken: #fafafa;
  --surface-inset: #f4f4f4;
  --surface-nodata: #f7f7f8;
  --surface-chip: #e3e3e3;
  --line-panel: #e2e2e2;
  --line-divider: #ededed;
  --line-row: #f0f0f0;
  --line-control: #dcdcdc;
  --line-grid: #ececec;
  --line-dashed: #d4d4d8;
  --ink: #18181a;
  --ink-secondary: #45454a;
  --ink-muted: #6a6a70;
  --ink-disabled: #8a8a90;
  --ink-faint: #c6c6c9;
  --on-ink: #ffffff;
  --bar-strong: #5f5f66;
  --bar-soft: #a1a1a8;
  --bar-track: var(--line-row);
  --axis-zero: var(--bar-soft);
  --interval-fill: #b4b4b9;
  --stance-for: var(--ink);
  --stance-against: #8d8d93;
  --stance-rest: #dcdcdf;
  --waffle-rest: #e4e4e7;
  --party-psc: oklch(50% 0.170 28);
  --party-junts: oklch(50% 0.100 192);
  --party-erc: oklch(68% 0.150 58);
  --party-ac: oklch(40% 0.140 270);
  --party-vox: oklch(50% 0.130 136);
  --party-pp: oklch(48% 0.120 245);
  --party-cup: oklch(87% 0.165 100);
  --party-comuns: oklch(46% 0.130 318);
  --party-guanyem: oklch(47% 0.140 344);
  --party-institucio: oklch(46% 0.016 80);
  --party-mitja: oklch(50% 0.012 85);
  --on-clar: #2a1d00;
  --tema-joc_politic: oklch(42% 0.045 255);
  --tema-catalunya_espanya: oklch(68% 0.045 250);
  --tema-immigracio_seguretat: oklch(48% 0.014 260);
  --tema-habitatge: oklch(80% 0.045 250);
  --tema-territori: oklch(36% 0.014 260);
  --tema-identitat: oklch(74% 0.014 260);
  --tema-serveis_publics: oklch(54% 0.045 250);
  --tema-economia: oklch(62% 0.014 260);
  --tema-sense: #dcdcdf;
  --tema-altres: #e2e2e4;
  --focus-ring: var(--ink);
  /* Espai */
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  /* Radi */
  --radius-hero: 12px;
  --radius-panel: 10px;
  --radius-control: 8px;
  --radius-callout: 7px;
  --radius-chip: 6px;
  --radius-badge: 5px;
  --radius-bar: 2px;
  --radius-bar-thick: 3px;
  /* Ombra */
  --shadow-segment: 0 0 0 1px #d9d9d9;
  --shadow-tick: 0 0 0 1px #ffffff;
  /* Pàgina i plecs */
  --layout-max: 1440px;
  --layout-cover: 1328px;
  --header-height: 52px;
  --fold-desktop: 780px;
  --fold-laptop: 650px;
  --fold-mobile: 700px;
  --bp-two-columns: 1199px;
  --bp-one-column: 759px;
  --bp-daily-bars: 380px;
  --control-min-mobile: 36px;
  --control-full-mobile: 44px;
  /* Tipografia */
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Estils de text: classe .t-<nom> */
.t-headline { font-family: var(--font-sans); font-size: 26px; line-height: 34px; font-weight: 420; letter-spacing: -0.018em; }  /* El titular del resum. Els noms en negreta van a 680. */
.t-headline-mobile { font-family: var(--font-sans); font-size: 20px; line-height: 27px; font-weight: 420; letter-spacing: -0.015em; }  /* El titular per sota de 760 px. */
.t-entity-title { font-family: var(--font-sans); font-size: 34px; line-height: 40px; font-weight: 720; letter-spacing: -0.025em; }  /* Nom a la capçalera de la fitxa d'una entitat. */
.t-stat { font-family: var(--font-sans); font-size: 26px; line-height: 30px; font-weight: 750; letter-spacing: -0.02em; }  /* Una sola xifra destacada dins un panell (Atacs personals). */
.t-metric { font-family: var(--font-sans); font-size: 22px; line-height: 26px; font-weight: 720; }  /* Xifres de la fitxa (mencions, balanç). Sempre amb xifres tabulars. */
.t-section-title { font-family: var(--font-sans); font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em; }  /* Títols de les seccions de sota el plec. */
.t-day-title { font-family: var(--font-sans); font-size: 42px; line-height: 48px; font-weight: 680; letter-spacing: -0.025em; }  /* La frase del dia a la portada. */
.t-day-title-mobile { font-family: var(--font-sans); font-size: 28px; line-height: 33px; font-weight: 680; letter-spacing: -0.02em; }  /* La frase del dia per sota de 760 px. */
.t-cover-title { font-family: var(--font-sans); font-size: 22px; line-height: 28px; font-weight: 760; }  /* Títols dels blocs de la portada (20/26 per sota de 760 px). */
.t-brand { font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 750; letter-spacing: -0.01em; }  /* El nom al costat del símbol, a la capçalera. */
.t-panel-title { font-family: var(--font-sans); font-size: 14px; line-height: 18px; font-weight: 700; }  /* Títol de panell. */
.t-panel-title-mobile { font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 700; }  /* Títol de panell per sota de 760 px. */
.t-answer { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 450; }  /* La resposta d'una pregunta i el text corrent. */
.t-answer-mobile { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 450; }  /* La resposta d'una pregunta per sota de 760 px. */
.t-lead { font-family: var(--font-sans); font-size: 17px; line-height: 25px; font-weight: 450; letter-spacing: -0.005em; }  /* «El dia» a Com encarar-ho: les dues o tres frases que es llegeixen abans que cap targeta. Per sota de 760 px, answer-mobile. */
.t-row { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 560; }  /* Nom de tema o d'entitat en una fila (entitat: 600). */
.t-row-mobile { font-family: var(--font-sans); font-size: 14px; line-height: 19px; font-weight: 560; }  /* Nom de tema o d'entitat en una fila per sota de 760 px (entitat: 650). */
.t-control { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 550; }  /* Segments, enllaços de navegació. Actiu: 650. */
.t-number { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 700; }  /* Recomptes a les files. Amb xifres tabulars, excepte a partir de 1.000 (el punt s'eixampla). */
.t-question { font-family: var(--font-sans); font-size: 12.5px; line-height: 17px; font-weight: 600; }  /* Enunciat d'una pregunta, en ink-muted. */
.t-question-mobile { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600; }  /* Enunciat d'una pregunta per sota de 760 px, en ink-muted. */
.t-meta { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; }  /* Metadades de capçalera, etiquetes de columna, desplegables. */
.t-note { font-family: var(--font-sans); font-size: 12px; line-height: 17px; font-weight: 400; }  /* Notes de mètode al peu dels panells. */
.t-micro { font-family: var(--font-sans); font-size: 11.5px; line-height: 16px; font-weight: 400; }  /* Filets de llindar, llegendes, etiquetes d'eix. */
.t-badge { font-family: var(--font-sans); font-size: 11px; line-height: 15px; font-weight: 650; }  /* Insígnies dins de files (pic d'atenció). */
.t-kicker { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; }  /* L’avantítol de la portada i les etiquetes de «Què fem avui». Són l’única cosa del sistema en majúscules (11/15 per sota de 760 px). */
