/* Radar d’opinió — classes dels components (rd-*). Tots els colors surten de tokens.css: importa’l abans. */

body { margin: 0; background: var(--surface-page); color: var(--ink); font-family: var(--font-sans); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; }
.rd-stage { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rd-stage--row { flex-direction: row; flex-wrap: wrap; align-items: center; }
.rd-stage--white { background: var(--surface-panel); }
.rd-cap { margin: 0; font-size: 11.5px; line-height: 16px; color: var(--ink-muted); }
.rd-tnum { font-variant-numeric: tabular-nums; }
/* A una columna, la xifra de 1.000 o més: la lletra dona al punt tabular l'amplada d'una xifra. */
.rd-pnum { font-variant-numeric: normal !important; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Panell */
.rd-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line-panel); border-radius: var(--radius-panel); background: var(--surface-panel); }
.rd-panel-head { display: flex; align-items: center; justify-content: space-between; column-gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line-divider); }
.rd-panel-title { margin: 0; display: flex; align-items: center; column-gap: 8px; font-size: 14px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.rd-panel-meta { font-size: 12px; line-height: 16px; color: var(--ink-muted); white-space: nowrap; }
.rd-panel-body { padding: 0 14px 4px; }
.rd-panel-foot { padding: 10px 14px 12px; border-top: 1px solid var(--line-divider); background: var(--surface-sunken); font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.rd-panel-foot p { margin: 0; }
.rd-panel-foot p + p, .rd-foot-row + p { margin-top: 8px; }
.rd-panel-foot .rd-chips { gap: 6px; margin-top: 10px; }
.rd-panel-foot .rd-btn { line-height: 17px; }
.rd-panel-foot .rd-badge-pic { padding: 0 5px; }
.rd-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.rd-count { display: inline-block; padding: 0 7px; border-radius: 10px; background: var(--surface-page); color: var(--ink-secondary); font-size: 12px; line-height: 18px; font-weight: 700; }

/* Capçalera */
.rd-header { background: var(--surface-panel); border-bottom: 1px solid var(--line-panel); }
.rd-header-in { max-width: var(--layout-max); margin: 0 auto; box-sizing: border-box; min-height: var(--header-height); padding: 0 24px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; row-gap: 8px; }
.rd-brand { display: flex; align-items: center; column-gap: 9px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 750; letter-spacing: -0.01em; }
.rd-vsep { display: block; width: 1px; height: 20px; background: var(--line-panel); }
.rd-grow { flex-grow: 1; }
.rd-account { display: flex; align-items: center; column-gap: 6px; padding: 0; border: 0; background: transparent; color: var(--ink-secondary); cursor: pointer; }
.rd-avatar { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font: inherit; font-size: 12px; font-weight: 700; }
/* Sencera, amb les dates llargues de 30 dies, la capçalera no hi cap en una línia per sota de 960 px: cedeix el que el símbol i la data ja diuen. */
@media (min-width: 760px) and (max-width: 959px) {
  .rd-header-in { padding: 0 16px; column-gap: 8px; }
  .rd-header-in > .rd-brand span, .rd-header-in > .rd-vsep, .rd-header-in .rd-step-date svg, .rd-header-in .rd-account > svg { display: none; }
}
/* Fila de vistes, sota la capçalera de l'escriptori: Resum · Dades · Com encarar-ho · Preguntes · Estat. Es llegeix com la barra de seccions; al mòbil, les vistes són al menú. */
.rd-views { border-top: 1px solid var(--line-row); }
.rd-views-in { max-width: var(--layout-max); margin: 0 auto; box-sizing: border-box; display: flex; align-items: center; column-gap: 2px; height: 40px; padding: 0 16px; font-size: 13px; line-height: 18px; }
.rd-views a { padding: 9px 8px; border-radius: 7px; color: var(--ink-secondary); text-decoration: none; font-weight: 550; }
.rd-views a:hover { color: var(--ink); }
.rd-views a[aria-current] { background: var(--surface-page); color: var(--ink); font-weight: 650; }

/* Control segmentat */
.rd-seg { display: inline-flex; column-gap: 2px; padding: 3px; border-radius: var(--radius-control); background: var(--surface-page); }
.rd-seg > a, .rd-seg > button { padding: 5px 12px; border: 0; border-radius: var(--radius-chip); background: transparent; color: var(--ink-muted); text-decoration: none; font: inherit; font-size: 13px; line-height: 18px; font-weight: 550; cursor: pointer; }
.rd-seg--context > [aria-current] { background: var(--surface-panel); box-shadow: var(--shadow-segment); color: var(--ink); font-weight: 650; }
.rd-seg--period > a, .rd-seg--period > button { color: var(--ink-secondary); }
.rd-seg--period > [aria-current] { background: var(--ink); color: var(--on-ink); font-weight: 650; }
.rd-seg > :disabled { display: inline-flex; align-items: baseline; column-gap: 6px; color: var(--ink-disabled); cursor: default; }
.rd-seg-soon { font-size: 11.5px; line-height: 16px; font-weight: 400; color: var(--ink-muted); }

/* Selector de dia */
.rd-stepper { display: inline-flex; align-items: stretch; height: 32px; box-sizing: border-box; border: 1px solid var(--line-control); border-radius: var(--radius-control); overflow: hidden; background: var(--surface-panel); }
.rd-stepper > button { display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.rd-stepper .rd-step-prev, .rd-stepper .rd-step-next { width: 30px; }
.rd-stepper .rd-step-prev { border-right: 1px solid var(--line-grid); }
.rd-stepper .rd-step-next { border-left: 1px solid var(--line-grid); }
.rd-stepper button:disabled { color: var(--ink-faint); cursor: default; }
.rd-stepper .rd-step-date { column-gap: 7px; padding: 0 12px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Franja de dades */
.rd-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 16px; row-gap: 6px; font-size: 13px; line-height: 18px; }
.rd-strip-text { margin: 0; display: flex; align-items: center; column-gap: 7px; color: var(--ink-secondary); }
.rd-strip-text svg { flex-shrink: 0; }
.rd-strip-side { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
.rd-strip-days { display: flex; align-items: center; column-gap: 8px; font-size: 12px; color: var(--ink-muted); }
.rd-strip--strong { padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: var(--radius-control); background: var(--surface-panel); }
.rd-strip--strong .rd-strip-text { column-gap: 9px; color: var(--ink); font-weight: 700; }
.rd-link { display: inline-flex; align-items: center; column-gap: 6px; padding: 3px 8px; border-radius: var(--radius-chip); color: var(--ink-secondary); text-decoration: none; font-weight: 550; }
.rd-link:hover { background: var(--line-grid); }
.rd-strip > .rd-link:last-child, .rd-strip-side > .rd-link:last-child { margin-right: -8px; }
.rd-link--back { align-self: flex-start; margin-left: -8px; font-size: 13px; line-height: 18px; font-weight: 600; }
.rd-link--foot { margin-left: -8px; }

/* Titular */
.rd-headline { margin: 0; font-size: 26px; line-height: 34px; font-weight: 420; letter-spacing: -0.018em; color: var(--ink); }
.rd-headline strong { font-weight: 680; }
.rd-hl-group { white-space: nowrap; }
.rd-hl-chip { display: inline-block; margin: 0 2px 0 7px; padding: 0 7px; border-radius: var(--radius-chip); background: var(--surface-chip); color: var(--ink-secondary); font-size: 14px; line-height: 22px; font-weight: 650; letter-spacing: 0; vertical-align: 4px; }
.rd-hl-dot { display: inline-block; width: 10px; height: 10px; margin: 0 7px 0 2px; border-radius: 50%; background: var(--party); vertical-align: 3px; }
.rd-hl-list { margin: 2px 0 0; padding: 0; list-style: none; font-size: 20px; line-height: 29px; letter-spacing: -0.015em; }
.rd-hl-list strong { font-weight: 680; }
.rd-headline--mobile { font-size: 20px; line-height: 27px; letter-spacing: -0.015em; }
.rd-headline--mobile .rd-hl-chip, .rd-hl-list .rd-hl-chip { margin-left: 6px; padding: 0 6px; border-radius: var(--radius-badge); font-size: 12px; line-height: 19px; vertical-align: 2px; }
.rd-hl-list .rd-hl-dot { width: 9px; height: 9px; margin: 0 8px 0 1px; vertical-align: 2px; }
.rd-headline--mobile + .rd-headline--mobile { margin-top: 8px; }

/* Avís de moviment */
.rd-callout { display: flex; align-items: center; column-gap: 10px; padding: 8px 10px; border-radius: var(--radius-callout); background: var(--surface-inset); font-size: 13px; line-height: 18px; color: var(--ink); }
.rd-callout p { margin: 0; }
.rd-callout strong { font-weight: 680; }
.rd-callout--quiet { color: var(--ink-secondary); }
.rd-callout > svg { flex-shrink: 0; }
.rd-callout p > .rd-badge-move { margin-right: 6px; }
.rd-panel-body > .rd-callout { margin: 10px 0 4px; }

/* Insígnies i xips */
.rd-badge-move { display: inline-flex; align-items: center; column-gap: 4px; padding: 1px 7px; border-radius: var(--radius-badge); background: var(--ink); color: var(--on-ink); font-size: 12px; line-height: 16px; font-weight: 650; vertical-align: 1px; }
.rd-badge-pic { display: inline-block; padding: 0 6px; border: 1px solid var(--ink); border-radius: var(--radius-badge); color: var(--ink); font-size: 11px; line-height: 15px; font-weight: 650; white-space: nowrap; }
.rd-badge-pic--l { padding: 0 7px; font-size: 12px; line-height: 18px; }
.rd-badge-status { display: inline-block; padding: 0 7px; border-radius: var(--radius-badge); background: var(--surface-page); color: var(--ink); font-size: 12px; line-height: 18px; font-weight: 650; }
.rd-badge-status--greu { box-sizing: border-box; border: 1.5px solid var(--ink); background: var(--surface-panel); line-height: 15px; }
.rd-move { display: inline-flex; align-items: center; column-gap: 4px; font-size: 12px; line-height: 16px; font-weight: 650; white-space: nowrap; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rd-sub { display: inline-flex; column-gap: 5px; padding: 1px 7px; border-radius: var(--radius-badge); background: var(--surface-page); color: var(--ink-secondary); font-size: 12px; line-height: 18px; }
.rd-sub b { font-weight: 650; color: var(--ink); }
/* La part d'un tema que no té subtema (dades d'abans que el tema es desglossés): vora discontínua, sense fons. */
.rd-sub--sense { background: none; box-shadow: inset 0 0 0 1px var(--line-dashed); color: var(--ink-muted); }

/* Filtres de tipus */
.rd-filters { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; line-height: 16px; }
.rd-filter { padding: 4px 9px; border: 0; border-radius: var(--radius-chip); background: var(--surface-page); color: var(--ink-secondary); text-decoration: none; font: inherit; font-weight: 550; cursor: pointer; }
.rd-panel-body > .rd-filters { padding: 10px 0 6px; }
.rd-filter:hover { background: var(--line-grid); }
.rd-filter[aria-current] { background: var(--ink); color: var(--on-ink); font-weight: 650; }

/* Botons */
.rd-btn { display: inline-flex; align-items: center; column-gap: 5px; padding: 3px 8px; border: 1px solid var(--line-control); border-radius: var(--radius-chip); background: var(--surface-panel); color: var(--ink); text-decoration: none; font: inherit; font-size: 12px; line-height: 16px; font-weight: 600; cursor: pointer; }
.rd-btn:hover { background: var(--line-grid); }
.rd-btn--primary { padding: 4px 9px; border-color: var(--ink); background: var(--ink); color: var(--on-ink); font-weight: 650; }
.rd-btn--primary:hover { background: var(--ink); }
.rd-btn:disabled, .rd-btn:disabled:hover { border-color: var(--line-control); background: var(--surface-page); color: var(--ink-disabled); cursor: default; }
.rd-btn--chip { border-color: var(--line-panel); color: var(--ink-secondary); font-weight: 550; }
.rd-btn--chip b { font-weight: 700; color: var(--ink); }
.rd-btn--nav { padding: 4px 10px; border-color: var(--line-panel); font-size: 13px; line-height: 18px; }
.rd-btn--inline { padding: 2px 8px; font-size: inherit; line-height: inherit; }
.rd-toggle { display: inline-flex; align-items: center; column-gap: 5px; margin: 3px 0 0 -6px; padding: 2px 6px; border: 0; border-radius: var(--radius-badge); background: transparent; color: var(--ink-secondary); font: inherit; font-size: 12px; line-height: 16px; text-align: left; cursor: pointer; }
.rd-toggle:hover { background: var(--line-grid); }
.rd-toggle[aria-expanded="true"] { margin-top: 6px; background: var(--surface-page); color: var(--ink); font-weight: 600; }
.rd-toggle svg { flex-shrink: 0; }

/* Preguntes */
.rd-q { padding: 7px 0; border-top: 1px solid var(--line-row); }
.rd-q:first-of-type, .rd-q-group + .rd-q { border-top: 0; }
.rd-q-head { display: flex; align-items: center; justify-content: space-between; column-gap: 12px; }
.rd-q-title { margin: 0; min-width: 0; font-size: 12.5px; line-height: 17px; font-weight: 600; color: var(--ink-muted); }
.rd-q-head svg { display: block; flex-shrink: 0; }
.rd-q-answer { margin: 3px 0 0; font-size: 14px; line-height: 20px; font-weight: 450; color: var(--ink); }
.rd-q-empty { margin: 3px 0 0; display: flex; align-items: flex-start; column-gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.rd-q-empty svg { flex-shrink: 0; margin-top: 3px; }
.rd-q-group { margin: 2px -14px 0; padding: 8px 14px 0; border-top: 1px solid var(--line-divider); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.rd-sobre { display: flex; align-items: center; column-gap: 8px; padding: 8px 0 0; }
.rd-sobre label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
/* A la capçalera d'un panell (pàgina de Preguntes): si no hi cap, es retalla el nom triat, no el títol. Fa la mateixa alçada que la capçalera del panell del costat. */
.rd-panel-head:has(> .rd-sobre) { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.rd-panel-head .rd-sobre, .rd-section-head .rd-sobre { min-width: 0; padding: 0; }
.rd-panel-head .rd-select, .rd-panel-head .rd-select select { min-width: 0; max-width: 100%; }
.rd-panel-head .rd-select select { text-overflow: ellipsis; }
.rd-select { position: relative; display: inline-flex; }
.rd-select select { appearance: none; -webkit-appearance: none; height: 28px; padding: 0 28px 0 10px; border: 1px solid var(--line-control); border-radius: var(--radius-chip); background: var(--surface-panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.rd-select svg { position: absolute; right: 10px; top: 9px; pointer-events: none; }

/* Files: comú */
.rd-row { margin: 0 -14px; padding: 0 14px; border-top: 1px solid var(--line-row); }
.rd-row:hover { background: var(--surface-sunken); }
.rd-colhead { display: grid; column-gap: 8px; padding: 8px 0 4px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-colhead > span:has(> .rd-colhead-keys), .rd-qt-head > span:has(> .rd-colhead-keys) { display: flex; justify-content: space-between; column-gap: 8px; }
.rd-colhead-keys { display: flex; align-items: center; column-gap: 10px; font-size: 11.5px; }
.rd-colhead-keys > span { display: inline-flex; align-items: center; column-gap: 4px; }
.rd-track { position: relative; margin-top: 5px; height: 5px; border-radius: var(--radius-bar); background: var(--bar-track); }
.rd-fill { height: 5px; border-radius: var(--radius-bar); background: var(--bar-soft); }
.rd-fill--strong { background: var(--bar-strong); }
.rd-fill--ink { background: var(--ink); }
.rd-tick { position: absolute; top: -3px; width: 2px; height: 11px; margin-left: -1px; background: var(--ink); box-shadow: var(--shadow-tick); }
/* El color de tema i de partit va a les marques: barres, quadrets, punts i trams. Mai al fons d'un panell ni al text. */
.rd-fill--party { background: var(--party); }
.rd-fill--tema { background: var(--tema, var(--bar-soft)); }

/* Fila de tema */
.rd-theme, .rd-colhead--theme { grid-template-columns: minmax(0, 1fr) 42px 32px 54px; }
.rd-theme--still { grid-template-columns: minmax(0, 1fr) 42px 32px; }
.rd-theme { display: grid; column-gap: 8px; align-items: center; padding: 6px 0 8px; }
.rd-theme > *, .rd-entity > * { min-width: 0; }
.rd-colhead--theme > :nth-child(2), .rd-colhead--theme > :nth-child(3), .rd-colhead--entity > :last-child { text-align: right; }
.rd-theme-name { font-size: 13px; line-height: 18px; font-weight: 560; }
.rd-pct { text-align: right; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rd-n { text-align: right; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.rd-theme .rd-move { padding-left: 4px; }
.rd-theme > span:last-child { font-size: 12px; line-height: 16px; }
.rd-row .rd-chips { padding: 0 0 8px; }
/* Fila de l'agenda (Agenda.md): la barra és la part de l'agenda general i la marca, la de la conversa sobre els polítics; a la dreta, les dues xifres i els 14 dies. */
.rd-theme--agenda, .rd-colhead--agenda { grid-template-columns: minmax(0, 1fr) 56px 64px 60px; }
.rd-colhead--agenda > :nth-child(2), .rd-colhead--agenda > :nth-child(3) { text-align: right; }
.rd-colhead--agenda > :nth-child(4) { text-align: center; }
.rd-theme-name .rd-label { font-weight: 400; }
.rd-pct-ref { text-align: right; font-size: 12px; line-height: 16px; color: var(--ink-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd-theme .rd-pct--curt { font-size: 12px; font-weight: 450; color: var(--ink-muted); white-space: nowrap; }

/* Fila d'entitat */
.rd-entity, .rd-colhead--entity { grid-template-columns: 8px minmax(0, 1fr) 60px 46px; }
.rd-entity--short { grid-template-columns: 8px minmax(0, 1fr); }
.rd-colhead--entity { padding-top: 6px; }
.rd-days { display: block; justify-self: center; text-align: center; }
.rd-entity { display: grid; column-gap: 8px; align-items: center; padding: 6px 0 8px; }
.rd-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--party); }
.rd-entity-top { display: flex; align-items: baseline; justify-content: space-between; column-gap: 8px; }
.rd-entity-name { min-width: 0; display: flex; align-items: baseline; column-gap: 6px; font-size: 13px; line-height: 18px; }
.rd-entity-name a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; }
/* La insígnia no baixa mai de línia. Si no hi cap tot, primer cedeix el grup i després es retalla el nom. */
.rd-entity-name .rd-label { flex-shrink: 9999; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-entity-name .rd-badge-pic { flex-shrink: 0; }
.rd-label { font-size: 12px; color: var(--ink-muted); }
.rd-entity-n { flex-shrink: 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rd-bal { text-align: right; }
.rd-bal-v { font-size: 12px; line-height: 16px; font-weight: 650; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.rd-bal-track { position: relative; height: 4px; margin-top: 3px; border-radius: 2px; background: var(--bar-track); }
.rd-bal-fill { position: absolute; top: 0; height: 4px; background: var(--party, var(--ink-muted)); }
.rd-bal-zero { position: absolute; left: 50%; top: -2px; width: 1px; height: 8px; background: var(--axis-zero); }
.rd-threshold { display: flex; align-items: center; column-gap: 8px; padding: 10px 0 4px; font-size: 11.5px; line-height: 16px; color: var(--ink-muted); white-space: nowrap; }
.rd-threshold::before, .rd-threshold::after { content: ""; flex-grow: 1; height: 1px; background: var(--line-panel); }
.rd-threshold + .rd-row { border-top: 0; }

/* Fitxa ampla d'entitat (context amb poques entitats) */
.rd-ecard { padding: 14px 14px 16px; border-top: 1px solid var(--line-row); }
.rd-ecard:first-child { border-top: 0; }
.rd-ecard-head { display: flex; align-items: baseline; justify-content: space-between; column-gap: 10px; }
.rd-ecard-name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.rd-ecard-name a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 700; }
.rd-ecard-trend { font-size: 12px; font-weight: 450; color: var(--ink-muted); }
.rd-ecard-grid { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px 14px; align-items: center; margin-top: 12px; }
.rd-mlabel { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-mval { font-size: 20px; line-height: 24px; font-weight: 720; }
.rd-mval--s { width: 32px; font-size: 16px; line-height: 20px; }
.rd-inline { display: flex; align-items: center; column-gap: 10px; min-width: 0; }
.rd-inline > .rd-track { flex-grow: 1; margin-top: 0; }
.rd-inline > svg { display: block; flex-grow: 1; }
.rd-inline .rd-fill { display: block; }
.rd-ecard .rd-dot { display: inline-block; width: 9px; height: 9px; }
.rd-ecard-grid > div { min-width: 0; }
.rd-mlabel--sub { margin-top: -6px; }
.rd-stance-text { margin: 5px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-secondary); }

/* Capçalera de fitxa */
.rd-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 40px; align-items: center; padding: 20px 22px; border: 1px solid var(--line-panel); border-radius: var(--radius-hero); background: var(--surface-panel); }
.rd-summary h1 { margin: 0; font-size: 34px; line-height: 40px; font-weight: 720; letter-spacing: -0.025em; }
.rd-summary-tags { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; line-height: 18px; color: var(--ink-secondary); }
.rd-tag { display: inline-flex; align-items: center; column-gap: 6px; padding: 2px 8px; border-radius: var(--radius-chip); background: var(--surface-page); color: var(--ink); font-weight: 650; }
.rd-tag .rd-dot { width: 8px; height: 8px; }
.rd-metrics { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center; }
.rd-metric { font-size: 22px; line-height: 26px; font-weight: 720; }
.rd-summary > div { min-width: 0; }
.rd-tag--fluix { font-weight: 450; color: var(--ink-secondary); }
.rd-summary-bar { flex-grow: 1; max-width: 340px; display: block; }
.rd-summary .rd-stance, .rd-summary .rd-units { flex-grow: 1; max-width: 340px; height: 8px; }
.rd-summary-note, .rd-summary-text { flex-shrink: 0; white-space: nowrap; }
.rd-summary-text { font-size: 13px; line-height: 18px; color: var(--ink-secondary); }
.rd-summary .rd-units { flex-grow: 0; }
.rd-summary-text strong { color: var(--ink); }
.rd-inline--parteix { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 759px) {
  .rd-summary { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .rd-summary h1 { font-size: 28px; line-height: 33px; }
  .rd-summary-bar { flex: 1 1 120px; }
  .rd-summary .rd-stance, .rd-summary .rd-units { flex-basis: 100%; max-width: none; }
  .rd-summary-note, .rd-summary-text { flex-basis: 100%; white-space: normal; }
}

/* Postura */
.rd-stance { display: flex; height: 6px; border-radius: var(--radius-bar); overflow: hidden; background: var(--stance-rest); }
.rd-stance > .rd-for { display: block; background: var(--stance-for); }
.rd-stance > .rd-against { display: block; background: var(--stance-against); }
.rd-units { display: flex; height: 6px; }
.rd-units > span { display: block; }
.rd-units .rd-for { background: repeating-linear-gradient(90deg, var(--stance-for) 0 5px, transparent 5px 7px); }
.rd-units .rd-against { background: repeating-linear-gradient(90deg, var(--stance-against) 0 5px, transparent 5px 7px); }
.rd-units .rd-rest { background: repeating-linear-gradient(90deg, var(--stance-rest) 0 5px, transparent 5px 7px); }
.rd-legend { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 4px; font-size: 12px; line-height: 16px; color: var(--ink-secondary); }
.rd-legend > span { display: inline-flex; align-items: center; column-gap: 5px; }
.rd-key { display: block; width: 8px; height: 8px; border-radius: 2px; }
.rd-key--for { background: var(--stance-for); } .rd-key--against { background: var(--stance-against); } .rd-key--rest { background: var(--stance-rest); }
.rd-key--bar { width: 12px; height: 5px; background: var(--bar-soft); } .rd-key--tick { width: 2px; height: 10px; border-radius: 0; background: var(--ink); }
.rd-key--line { width: 14px; height: 2px; border-radius: 0; background: var(--party); } .rd-key--band { width: 14px; background: color-mix(in srgb, var(--party) 16%, transparent); }
.rd-key--bar-v { height: 10px; background: var(--bar-soft); } .rd-key--period { width: 14px; height: 10px; background: var(--surface-nodata); box-shadow: inset 0 0 0 1px var(--line-panel); }
/* El quadret d'un tema i el punt d'un partit, davant del nom. */
.rd-key--tema { background: var(--tema, var(--tema-altres)); }
.rd-key--party { border-radius: 50%; background: var(--party); }
.rd-key--l { flex-shrink: 0; width: 10px; height: 10px; }
/* Dins d'una línia de text, damunt de la línia de base: el quadret o el punt fa l'alçada de les majúscules. */
.rd-key--inline { display: inline-block; width: 9px; height: 9px; margin-right: 7px; }
.rd-diu { padding: 8px 0 6px; border-top: 1px solid var(--line-row); }
.rd-diu:first-child { border-top: 0; }
.rd-diu-top { display: flex; justify-content: space-between; column-gap: 10px; font-size: 13px; line-height: 18px; }
.rd-diu-top b { font-weight: 600; }
/* La postura és una frase («25 % a favor · … (de 1.240)»), no una columna: xifres proporcionals, o el punt dels milers fa «1 . 240». */
.rd-diu-top span { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.rd-diu .rd-stance, .rd-diu .rd-units { margin-top: 5px; }
.rd-legend-note { color: var(--ink-muted); }
.rd-panel-body > .rd-diu:first-child { margin-top: 4px; }
.rd-panel-body > .rd-diu:last-child { margin-bottom: 6px; }

/* La conversa: un fil o un tema amb respostes, i a sota les seves entitats */
.rd-fil { padding: 10px 0 4px; border-top: 1px solid var(--line-row); }
.rd-fil:first-child { margin-top: 2px; border-top: 0; }
.rd-fil:last-child { margin-bottom: 6px; }
.rd-fil-top { display: flex; align-items: baseline; justify-content: space-between; column-gap: 10px; font-size: 13px; line-height: 18px; }
.rd-fil-top b { font-weight: 650; }
.rd-fil-top > span { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rd-fil-top > span span { font-weight: 450; color: var(--ink-muted); }
.rd-fil-top--quota { display: grid; grid-template-columns: minmax(0, 1fr) 40px 34px; column-gap: 8px; }
.rd-fil-top--quota > span { text-align: right; }
.rd-fil-top--quota > span:last-child { font-size: 12px; font-weight: 400; color: var(--ink-muted); }
.rd-diu--sub { padding: 6px 0 0 12px; border-top: 0; }
.rd-diu--sub .rd-diu-top { font-size: 12px; line-height: 16px; }
.rd-diu--sub .rd-stance, .rd-diu--sub .rd-units { height: 5px; margin-top: 4px; }
.rd-fil-empty { margin: 6px 0 0 12px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* Gofre */
.rd-waffle { flex-shrink: 0; display: grid; grid-template-columns: repeat(10, 7px); gap: 2px; }
.rd-waffle > span { display: block; width: 7px; height: 7px; border-radius: 1.5px; background: var(--waffle-rest); }
.rd-waffle > .on { background: var(--ink); }
.rd-stat { display: flex; align-items: center; column-gap: 18px; padding: 14px 16px; }
.rd-stat p { margin: 0; font-size: 13px; line-height: 19px; }
.rd-stat-n { display: block; font-size: 26px; line-height: 30px; font-weight: 750; letter-spacing: -0.02em; }

/* Avisos de llindar i estat buit */
.rd-notice { display: flex; align-items: center; justify-content: space-between; column-gap: 10px; padding: 7px 8px 7px 10px; border: 1px dashed var(--line-dashed); border-radius: var(--radius-callout); font-size: 12px; line-height: 16px; color: var(--ink-secondary); }
.rd-notice--wide { flex-wrap: wrap; gap: 8px 16px; padding: 14px 18px; border-radius: var(--radius-panel); background: var(--surface-panel); font-size: 14px; line-height: 20px; }
.rd-notice--wide > span { display: flex; align-items: center; column-gap: 10px; }
.rd-notice--wide .rd-btn { padding: 5px 11px; font-size: 13px; }
.rd-notice .rd-btn { flex-shrink: 0; }
.rd-panel-body > .rd-notice { margin: 4px 0 8px; }
.rd-notice + .rd-row { border-top: 0; }
.rd-gaps { overflow: hidden; border: 1px dashed var(--line-dashed); border-radius: var(--radius-panel); background: var(--surface-panel); font-size: 13px; line-height: 19px; }
.rd-gaps > div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 112px; column-gap: 20px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line-row); }
.rd-gaps > div:first-child { border-top: 0; }
.rd-gaps b { font-weight: 600; }
.rd-gaps span { color: var(--ink-secondary); }
.rd-gaps .rd-btn { justify-self: end; padding: 3px 9px; line-height: 19px; }
.rd-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; row-gap: 12px; min-height: 260px; padding: 32px; text-align: center; }
.rd-empty p { margin: 0; max-width: 420px; font-size: 16px; line-height: 24px; color: var(--ink-secondary); }
.rd-empty h1 { margin: 0; }
.rd-empty .rd-chips { justify-content: center; }

/* Pàgina d'entrada: un panell al mig, sense capçalera */
.rd-entry { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 100vh; padding: var(--space-16); }
.rd-entry-box { box-sizing: border-box; width: 100%; max-width: 360px; display: flex; flex-direction: column; row-gap: var(--space-14); padding: 22px; }
.rd-entry-box h1 { margin: 0; }
.rd-entry-field { display: flex; flex-direction: column; row-gap: var(--space-4); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.rd-entry-field input { box-sizing: border-box; width: 100%; height: var(--control-full-mobile); padding: 0 10px; border: 1px solid var(--line-control); border-radius: var(--radius-chip); background: var(--surface-panel); color: var(--ink); font: inherit; font-size: 14px; font-weight: 450; }
.rd-entry-box .rd-btn { justify-content: center; height: var(--control-full-mobile); font-size: 13px; }

/* Taules de dades: la de dia a dia de la fitxa i la de rastreigs */
.rd-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.rd-table th { padding: 4px 0; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-muted); text-align: left; white-space: nowrap; }
.rd-table thead th { border-bottom: 1px solid var(--line-divider); }
.rd-table td { height: 26px; padding: 0; border-top: 1px solid var(--line-row); color: var(--ink-secondary); }
.rd-table tbody tr:first-child td { border-top: 0; }
.rd-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.rd-table .b { font-weight: 650; color: var(--ink); }
.rd-table b { font-weight: 650; color: var(--ink); }
.rd-dtable-wrap { padding: 6px 16px 10px; }
.rd-dtable { table-layout: fixed; }
.rd-dtable th:nth-child(2) { width: 60px; } .rd-dtable th:nth-child(3) { width: 110px; } .rd-dtable th:nth-child(4) { width: 70px; }
.rd-runs { min-width: 880px; }
.rd-runs th, .rd-runs td { padding-right: var(--space-14); white-space: nowrap; }
.rd-runs th:last-child, .rd-runs td:last-child { padding-right: 0; }
.rd-runs td { height: 34px; }
.rd-runs-nota { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.rd-runs tfoot th, .rd-runs tfoot td { padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--line-divider); }
.rd-runs tfoot td { color: var(--ink); font-weight: 650; }
.rd-scroll { overflow-x: auto; padding: 4px 16px 4px; }
.rd-scroll:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

/* Un plec sense JavaScript: Les xifres, dia a dia i els termes de cerca */
.rd-plec > summary { display: inline-flex; align-items: center; column-gap: 5px; margin: 6px 0 6px 10px; padding: 2px 6px; border-radius: var(--radius-badge); color: var(--ink-secondary); font-size: 12px; line-height: 16px; list-style: none; cursor: pointer; }
.rd-plec > summary::-webkit-details-marker { display: none; }
.rd-plec > summary:hover { background: var(--line-grid); }
.rd-plec > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.rd-plec[open] > summary { background: var(--surface-page); color: var(--ink); font-weight: 600; }
.rd-plec[open] > summary > svg { transform: rotate(90deg); }
.rd-plec-in { padding: 0 16px 10px; }

/* Rastrejar ara */
.rd-crawl { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; min-width: 0; }
.rd-crawl form { margin: 0; }
.rd-crawl-state { font-size: 12px; line-height: 16px; color: var(--ink-secondary); }
.rd-crawl-state--error { font-weight: 700; color: var(--ink); }
.rd-panel-head--parteix { flex-wrap: wrap; row-gap: 6px; }
.rd-panel-head--parteix .rd-panel-title { white-space: normal; }
.rd-panel-title a { color: var(--ink); text-decoration: none; }
.rd-panel-title a:hover { text-decoration: underline; }

/* Taula de valoració */
.rd-vtable { overflow-x: auto; }
.rd-vrow, .rd-vhead { display: grid; grid-template-columns: 3px minmax(150px, 1.5fr) 180px 48px 58px 70px 64px 74px; column-gap: 12px; align-items: center; min-width: 720px; }
.rd-vhead { align-items: end; padding: 10px 0 6px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-vrow { min-height: 40px; border-top: 1px solid var(--line-row); font-size: 13px; }
.rd-vbar { display: block; width: 3px; height: 20px; border-radius: 2px; background: var(--party); }
.rd-vrow .r { text-align: right; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.rd-vrow .b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rd-vhead .r { text-align: right; }
.rd-vtrend { font-size: 12px; font-weight: 450; color: var(--ink-muted); white-space: nowrap; }
.rd-vtrend--on { font-weight: 650; color: var(--ink); }
.rd-vsplit { display: flex; align-items: center; column-gap: 8px; padding: 8px 0 6px; border-top: 1px solid var(--line-row); font-size: 11.5px; line-height: 16px; color: var(--ink-muted); min-width: 720px; }
.rd-vsplit::after { content: ""; flex-grow: 1; height: 1px; background: var(--line-panel); }
.rd-vtable-in { min-width: 720px; padding: 0 16px; }
.rd-vsplit > span { position: sticky; left: 16px; background: var(--surface-panel); box-shadow: 8px 0 0 var(--surface-panel); }
.rd-vhead + .rd-vrow, .rd-vsplit + .rd-vrow { border-top: 0; }
.rd-vname { align-self: stretch; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; column-gap: 6px; }
.rd-vname a { color: var(--ink); text-decoration: none; font-weight: 600; }
.rd-vaxis { display: flex; justify-content: space-between; font-size: 11px; }
.rd-vrow .s { font-size: 12px; color: var(--ink-secondary); }
.rd-vrow svg[role="img"] { display: block; }
/* Mentre quedi taula o barra de seccions per veure a la dreta, la vora es difumina: `marc.js` hi posa `data-queda`. */
.rd-vtable[data-queda], .rd-sections[data-queda], .rd-scroll[data-queda] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); }
/* El nom no se'n va quan la taula es desplaça: la franja del partit i el nom es queden a l'esquerra, sobre el fons del panell. */
.rd-vrow > .rd-vbar, .rd-vhead > :first-child { position: sticky; left: 16px; z-index: 1; }
.rd-vname, .rd-vhead > :nth-child(2) { position: sticky; left: 31px; background: var(--surface-panel); box-shadow: -31px 0 0 var(--surface-panel); }

/* Controls de la taula de valoració */
.rd-vtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line-row); font-size: 12px; line-height: 16px; }
.rd-field { display: flex; align-items: center; column-gap: 6px; color: var(--ink-muted); font-weight: 600; }
.rd-search { position: relative; display: flex; align-items: center; }
.rd-search svg { position: absolute; left: 9px; pointer-events: none; }
.rd-search input { width: 220px; height: 30px; box-sizing: border-box; padding: 0 10px 0 28px; border: 1px solid var(--line-control); border-radius: var(--radius-chip); background: var(--surface-panel); color: var(--ink); font: inherit; }

/* Resum de valoració: una frase amb el seu glif */
.rd-vsum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; padding: 16px 18px; border: 1px solid var(--line-panel); border-radius: var(--radius-panel); background: var(--surface-panel); font-size: 14px; line-height: 20px; }
.rd-vsum p { margin: 0; display: flex; align-items: center; column-gap: 14px; }
.rd-vsum strong { font-weight: 680; }
.rd-vsum-glyph { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 72px; height: 30px; border-radius: var(--radius-callout); background: var(--surface-inset); }
.rd-vsum + .rd-panel { margin-top: 12px; }

/* Seguiment, per partit i emocions */
.rd-chart { padding: 12px 16px 6px; }
.rd-chart svg { display: block; width: 100%; height: auto; font-family: inherit; }
.rd-chart .rd-legend { margin-top: 8px; padding-bottom: 6px; }
.rd-chart .rd-legend svg { width: 18px; }
/* Sense partit, el gris fort: `.p-*` ve després i, si n'hi ha, mana. */
.rd-chart--fitxa { --party: var(--bar-strong); padding-bottom: 2px; }
.rd-chart--fitxa .rd-legend { margin: 0 0 6px; padding: 0; }
.rd-chart--fitxa > svg { max-width: 720px; }
.rd-prow { padding: 9px 0; border-top: 1px solid var(--line-row); }
.rd-prow:first-child { margin-top: 4px; border-top: 0; }
.rd-prow:last-child { margin-bottom: 4px; }
.rd-prow-top { display: flex; align-items: center; justify-content: space-between; column-gap: 8px; font-size: 13px; line-height: 18px; }
.rd-prow-top > :first-child { display: flex; align-items: center; column-gap: 8px; font-weight: 600; }
.rd-prow-top > :last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.rd-prow svg { display: block; margin-top: 6px; }
.rd-prow p { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-emo { display: grid; grid-template-columns: 82px minmax(0, 1fr) 38px; column-gap: 10px; align-items: center; min-height: 30px; font-size: 13px; }
.rd-emo:first-child { margin-top: 8px; }
.rd-emo:last-child { margin-bottom: 6px; }
.rd-emo .rd-track { margin-top: 0; height: 8px; }
.rd-emo .rd-fill { height: 8px; }
.rd-emo > :last-child { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.rd-foot-key svg { margin: 0 3px; vertical-align: -2px; }

/* Barra de seccions (mòbil) */
.rd-sections { display: flex; align-items: center; height: 40px; padding: 0 6px; border-top: 1px solid var(--line-row); font-size: 13px; line-height: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; white-space: nowrap; background: var(--surface-panel); }
.rd-sections a { display: inline-flex; align-items: center; column-gap: 6px; padding: 9px 8px; border-radius: 7px; color: var(--ink-secondary); text-decoration: none; font-weight: 550; }
.rd-sections a[aria-current] { background: var(--surface-page); color: var(--ink); font-weight: 650; }
.rd-sections .n { padding: 0 6px; border-radius: 9px; background: var(--ink); color: var(--on-ink); font-size: 11px; line-height: 16px; font-weight: 700; }

/* Pàgina: els blocs centrats, les tres zones i «La resta» */
.rd-wrap { width: 100%; max-width: var(--layout-max); margin: 0 auto; box-sizing: border-box; padding: 0 var(--space-24); }
.rd-wrap--strip { display: flex; flex-direction: column; justify-content: center; min-height: 32px; padding-top: 10px; }
.rd-wrap--headline { padding-top: 10px; padding-bottom: 12px; }
.rd-zones { display: grid; grid-template-columns: minmax(0, 32fr) minmax(0, 29fr) minmax(0, 39fr); gap: var(--space-14); align-items: start; }
.rd-zones > .rd-panel { container-type: inline-size; }
/* Sense titular entremig (la pàgina de Preguntes), els panells no toquen la franja. */
main > .rd-zones:first-child { margin-top: var(--space-14); }
.rd-resta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 16px; padding-bottom: 28px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.rd-resta > span { margin-right: 4px; }

/* Una pàgina de blocs apilats: la fitxa i Estat */
.rd-pagina { display: flex; flex-direction: column; row-gap: var(--space-14); padding-top: var(--space-14); padding-bottom: var(--space-32); }
.rd-pagina > * { min-width: 0; }
.rd-pagina .rd-section-head { margin-bottom: 0; }
.rd-cols--fitxa { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

/* Sota el plec: les seccions i la graella de panells. Els panells hi van a 16 px als costats. */
.rd-section { padding-top: var(--space-32); }
.rd-resta + .rd-section { padding-top: 20px; }
.rd-section:last-child { padding-bottom: 40px; }
.rd-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.rd-section-head > h2, .rd-section-head > h1, .rd-section-lead > h1 { margin: 0; }
.rd-section-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rd-section .rd-panel-head, .rd-section .rd-panel-body, .rd-section .rd-panel-foot { padding-left: 16px; padding-right: 16px; }
.rd-section .rd-panel-foot p + p { margin-top: 4px; }
.rd-cols { display: grid; gap: var(--space-14); align-items: start; }
.rd-cols--val { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.rd-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rd-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rd-col { display: flex; flex-direction: column; gap: var(--space-14); min-width: 0; }
.rd-panel + .rd-cols { margin-top: var(--space-14); }
.rd-cols .rd-panel-foot { padding-top: 8px; }

/* Sobre aquestes dades: a l'esquerra, d'on surten; a la dreta, com es llegeixen */
.rd-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); font-size: 13px; line-height: 19px; }
.rd-about > :first-child { border-right: 1px solid var(--line-divider); }
.rd-about > div { padding: 14px 18px; }
.rd-about-title { margin: 0 0 8px; font-size: 13px; line-height: 18px; font-weight: 700; }
.rd-dl { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; padding: 14px 18px; }
.rd-dl dt { color: var(--ink-muted); }
.rd-dl dd { margin: 0; }
.rd-dl .rd-badge-status { margin-left: 8px; }
.rd-dl--glossary { grid-template-columns: 96px minmax(0, 1fr); gap: 6px 14px; padding: 0; }
.rd-dl--glossary dt { font-weight: 600; color: var(--ink); }
.rd-dl--glossary dd { color: var(--ink-secondary); }
.rd-compo { display: flex; max-width: 420px; height: 6px; margin-top: 6px; border-radius: var(--radius-bar); overflow: hidden; background: var(--line-grid); }
.rd-compo > span { display: block; background: var(--bar-soft); }
.rd-compo > span:first-child { background: var(--ink); }
.rd-section .rd-panel-foot--lock { margin: 0; display: flex; align-items: center; column-gap: 8px; padding: 10px 18px 12px; color: var(--ink-secondary); }

/* Capçalera mòbil: només es veu per sota de 760 px */
.rd-mhead { display: none; }
.rd-mhead-ctx select { height: var(--control-min-mobile); padding: 0 25px 0 10px; border: 0; border-radius: var(--radius-control); background: var(--surface-page); font-size: 14px; font-weight: 700; }
.rd-mhead-ctx svg { top: 13px; }
.rd-mhead-when { display: flex; align-items: center; column-gap: 6px; height: var(--control-min-mobile); padding: 0 10px; border: 1px solid var(--line-control); border-radius: var(--radius-control); background: var(--surface-panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; }
.rd-mhead-menu { display: flex; align-items: center; justify-content: center; width: var(--control-full-mobile); height: var(--control-full-mobile); margin-right: -6px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }

/* Desplegable: menú del compte, llista de dies, dia i període al mòbil. No és a les maquetes. */
.rd-menu { inset: auto; margin: var(--space-4) 0 0; position-area: bottom span-left; position-try-fallbacks: flip-block; box-sizing: border-box; max-height: 60vh; overflow-y: auto; padding: var(--space-6); border: 1px solid var(--line-control); border-radius: var(--radius-control); background: var(--surface-panel); color: var(--ink); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.rd-menu:popover-open { display: flex; flex-direction: column; row-gap: var(--space-2); }
.rd-menu > a, .rd-menu > button { padding: 5px 12px; border: 0; border-radius: var(--radius-chip); background: transparent; color: var(--ink-secondary); text-decoration: none; font: inherit; font-weight: 550; text-align: left; white-space: nowrap; cursor: pointer; }
.rd-menu > a:hover, .rd-menu > button:hover { background: var(--line-grid); }
.rd-menu > [aria-current] { background: var(--surface-page); color: var(--ink); font-weight: 650; }
.rd-menu > .rd-seg, .rd-menu > .rd-stepper { align-self: flex-start; }
.rd-menu > * + .rd-stepper { margin-top: var(--space-6); }
.rd-menu-sep { padding: 6px 12px 2px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-menu-rule { margin: var(--space-4) 0; border: 0; border-top: 1px solid var(--line-divider); }
/* «Exporta PDF» (proposta, sense maqueta): el rang de dies, un formulari dins del menú. */
.rd-menu-form { display: flex; flex-direction: column; row-gap: var(--space-8); padding: 0 12px 6px; }
.rd-menu-form > .rd-menu-sep { padding: 6px 0 0; }
.rd-menu-form .rd-field { justify-content: space-between; }
.rd-menu-form > .rd-btn { align-self: flex-start; }
.rd-date { height: 28px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--line-control); border-radius: var(--radius-chip); background: var(--surface-panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rd-menu-note { margin: 0; max-width: 250px; font-size: 12px; line-height: 16px; color: var(--ink-muted); font-variant-numeric: normal; }
@media (max-width: 759px) { .rd-date { height: var(--control-min-mobile); } }

/* «N més»: desplega la resta d'una llista al mòbil */
.rd-more { display: none; }

/* Taules obertes de les preguntes */
.rd-qt { margin-top: 10px; }
.rd-qt--balanc { --qt-cols: minmax(0, 1fr) 170px 62px; }
.rd-qt--quota, .rd-qt--temes { --qt-cols: minmax(0, 1fr) 170px 40px 62px; }
.rd-qt--pic { --qt-cols: minmax(0, 1fr) 84px; }
.rd-qt--parella { --qt-cols: minmax(0, 1fr) 128px 104px; }
.rd-qt-head, .rd-qt-row { display: grid; grid-template-columns: var(--qt-cols); column-gap: 12px; }
.rd-qt-head { padding: 6px 0 4px; border-bottom: 1px solid var(--line-divider); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-qt-head > :last-child { text-align: right; }
.rd-qt-axis { display: flex; justify-content: space-between; font-size: 11px; }
.rd-qt-row { align-items: center; padding: 8px 0; border-top: 1px solid var(--line-row); }
.rd-qt-head + .rd-qt-row { border-top: 0; }
.rd-qt-row > * { min-width: 0; }
.rd-qt-row svg { display: block; }
.rd-qt-name { display: flex; align-items: center; column-gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; }
.rd-qt-name .rd-dot { flex-shrink: 0; }
.rd-qt-name .rd-label { font-weight: 400; }
.rd-qt-sub { font-size: 12px; line-height: 16px; color: var(--ink-secondary); }
.rd-qt-sub strong { font-weight: 700; color: var(--ink); }
.rd-qt-n { text-align: right; font-size: 13px; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.rd-qt .rd-pct { font-weight: 700; }
.rd-qt--quota .rd-qt-row, .rd-qt--temes .rd-qt-row { min-height: 32px; margin: 0 -14px; padding: 0 14px; }
.rd-qt--quota .rd-qt-name { font-weight: 500; }
.rd-qt--temes .rd-qt-name { font-weight: 560; }
.rd-qt-row--lead { background: var(--surface-nodata); }
.rd-qt-row--lead .rd-qt-name { font-weight: 700; }
.rd-qt-bar { display: block; height: 7px; border-radius: var(--radius-bar); background: var(--bar-track); }
.rd-qt-bar > span { display: block; height: 7px; border-radius: var(--radius-bar); background: var(--party, var(--bar-strong)); }
.rd-qt--temes .rd-qt-bar > span { background: var(--tema, var(--bar-strong)); }
.rd-qt--pic .rd-qt-row { padding: 9px 0; }
.rd-qt--pic .rd-track { margin-top: 6px; height: 6px; }
.rd-qt--pic .rd-fill { height: 6px; background: var(--party, var(--bar-strong)); }
.rd-qt--pic .rd-tick { height: 12px; }
.rd-qt--pic .rd-qt-sub { margin-top: 5px; }
.rd-qt--parella .rd-qt-name { align-items: baseline; column-gap: 6px; white-space: nowrap; }
.rd-qt--parella .rd-qt-sub { white-space: nowrap; }
.rd-qt-row > .rd-badge-pic--l, .rd-qt-verdict { justify-self: end; }
.rd-qt-verdict { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.rd-qt-verdict--clear { font-weight: 700; color: var(--ink); }
.rd-qt-foot { margin: 6px -14px 0; padding: 9px 14px 12px; border-top: 1px solid var(--line-divider); background: var(--surface-sunken); font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.rd-qt-foot:has(> .rd-qt-key) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.rd-qt-key { display: inline-flex; align-items: center; column-gap: 5px; color: var(--ink-secondary); }
.rd-q:has(> .rd-qt-foot) { padding-bottom: 0; }

/* Targeta de pregunta (QuestionCard), a la pàgina de Preguntes. Cada targeta ocupa quatre files de la graella (subgrid): l'enunciat, la resposta, el gràfic i «Les xifres» queden alineats amb els de les targetes del costat, i obrir una taula no mou les altres. */
.rd-qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-14); }
.rd-qgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rd-qcard { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: var(--space-12); min-width: 0; margin-bottom: var(--space-14); padding: 16px 18px 0; overflow: hidden; border: 1px solid var(--line-panel); border-radius: var(--radius-panel); background: var(--surface-panel); }
.rd-qcard-head { grid-row: 1; display: flex; align-items: baseline; column-gap: 10px; min-width: 0; }
.rd-qcard-answer { grid-row: 2; } .rd-qcard-chart { grid-row: 3; } .rd-qcard-xifres { grid-row: 4; }
.rd-qcard-n { flex-shrink: 0; font-size: 12px; line-height: 16px; font-weight: 750; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.rd-qcard-title { margin: 0; min-width: 0; font-size: 15px; line-height: 20px; font-weight: 700; text-wrap: balance; }
.rd-qcard-answer { margin: 0; font-size: 14px; line-height: 20px; font-weight: 450; color: var(--ink); }
.rd-qcard-answer.rd-q-empty { margin: 0; font-size: 14px; }
.rd-qcard-chart { align-self: end; min-width: 0; padding-top: 2px; }
.rd-qcard-xifres { margin: 0 -18px; border-top: 1px solid var(--line-divider); }
.rd-qcard-xifres > summary { margin: 7px 0 7px 12px; }
.rd-qcard-xifres > .rd-qt { margin: 0 18px; }
/* Les taules de «Les xifres» porten files i peu a tota l'amplada del panell: aquí, de la targeta. */
.rd-qcard .rd-qt--quota .rd-qt-row, .rd-qcard .rd-qt--temes .rd-qt-row, .rd-qcard .rd-qt-foot { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
.rd-qcard .rd-qt-foot { margin-top: 8px; }

/* Gràfics de les targetes. Files: nom, barra i xifra, en una sola graella perquè les barres comencin totes al mateix lloc. */
.rd-cbars { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; column-gap: 12px; row-gap: 9px; align-items: center; font-size: 13px; line-height: 18px; }
.rd-cbars--ample { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
.rd-cbars > div { display: contents; }
.rd-cbar-name { display: flex; align-items: center; column-gap: 7px; min-width: 0; }
.rd-cbar-name > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-cbar-name .rd-dot { flex-shrink: 0; }
.rd-cbars > .rd-destacat .rd-cbar-name, .rd-cbars > .rd-destacat .rd-cbar-v { font-weight: 700; }
.rd-cbar { position: relative; display: block; height: 10px; border-radius: var(--radius-bar); background: var(--bar-track); }
.rd-cbar-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: var(--radius-bar); background: var(--bar-strong); }
.rd-cbar-fill--tema { background: var(--tema, var(--bar-strong)); }
.rd-cbar-fill--party { background: var(--party, var(--bar-strong)); }
.rd-cbar-fill--ink { background: var(--ink); }
.rd-cbar-zero { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--axis-zero); }
.rd-cbar .rd-tick { top: -3px; height: 16px; }
/* L'interval del balanç: ratlla fina amb topalls, damunt de la barra. */
.rd-cbar-ic { position: absolute; top: 4px; height: 2px; background: var(--ink); }
.rd-cbar-ic::before, .rd-cbar-ic::after { content: ""; position: absolute; top: -3px; width: 1.5px; height: 8px; background: var(--ink); }
.rd-cbar-ic::before { left: 0; } .rd-cbar-ic::after { right: 0; }
.rd-cbar-v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd-cbar-v .rd-badge-move, .rd-cbar-v .rd-badge-pic { margin-left: 6px; }
.rd-cbar-v .rd-cbar-sub { font-weight: 450; color: var(--ink-muted); }
/* Líder i partit: el tram entre els dos, el punt buit és el líder i el ple, el partit. */
.rd-cbar--linia { height: 2px; margin: 4px 0; background: var(--line-grid); }
.rd-cbar-tram { position: absolute; top: -0.5px; height: 3px; background: var(--party); }
.rd-cdot { position: absolute; top: 50%; box-sizing: border-box; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--party); }
.rd-cdot--buit { border: 2px solid var(--party); background: var(--surface-panel); }
/* Barra apilada: un tros per tema o per partit, amb la llegenda a sota. */
.rd-cstack { display: flex; column-gap: 2px; height: 22px; overflow: hidden; border-radius: var(--radius-chip); }
.rd-cstack > span { flex-basis: 0; min-width: 2px; background: var(--tema-altres); }
.rd-cstack > .rd-cstack-tema { background: var(--tema, var(--tema-altres)); }
.rd-cstack > .rd-cstack-party { background: var(--party, var(--tema-altres)); }
.rd-clegend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; }
.rd-clegend li { display: inline-flex; align-items: center; column-gap: 6px; }
.rd-clegend b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rd-cnote { margin: 6px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-cnote--key { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.rd-cnote--key > span { display: inline-flex; align-items: center; column-gap: 5px; }
/* Abans i ara: les dues xifres grans i, a sota, la barra de balanç de cadascuna. */
.rd-cpair { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); column-gap: 12px; align-items: end; }
.rd-cpair-side { display: flex; flex-direction: column; row-gap: 4px; min-width: 0; }
.rd-cpair-label { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-cpair-v { font-size: 26px; line-height: 30px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rd-cpair-n { font-size: 11.5px; line-height: 16px; color: var(--ink-muted); }
.rd-cpair-side .rd-cbar { margin-top: 2px; }
.rd-cpair > svg { align-self: center; color: var(--ink-muted); }
/* Agenda: on pesa més un tema en una conversa que en l'altra. Les dues xifres, sense fletxa: no és abans i després. */
.rd-contrast { padding: 12px 0 14px; border-top: 1px solid var(--line-row); }
.rd-contrast:first-child { border-top: 0; }
.rd-contrast .rd-cpair { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.rd-contrast .rd-cnote { margin-top: 8px; }

/* Com encarar-ho: el dia en dues o tres línies, els temes per acció, les persones i partits i, en llista, els riscos i el que no se sap. */
.rd-orient { display: flex; flex-direction: column; row-gap: var(--space-24); }
.rd-orient-day { max-width: 1040px; display: flex; flex-direction: column; row-gap: var(--space-8); }
.rd-orient-day p { margin: 0; font-size: 17px; line-height: 25px; font-weight: 450; letter-spacing: -0.005em; text-wrap: pretty; }
.rd-orient-sec { display: flex; flex-direction: column; row-gap: var(--space-10); min-width: 0; }
.rd-orient-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.rd-orient-title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; }
.rd-orient-head > span { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
/* Els temes en tres columnes, una per acció, com a «Què fem avui» de la portada: la d'encarar, fosca. */
.rd-accions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-14); align-items: start; }
.rd-accio { display: flex; flex-direction: column; row-gap: var(--space-10); min-width: 0; }
.rd-accio-head { display: flex; align-items: center; justify-content: space-between; column-gap: 10px; margin: 0; padding: 9px 14px; border: 1px solid var(--line-panel); border-radius: var(--radius-chip); background: var(--surface-panel); color: var(--ink); font-size: 12px; line-height: 16px; }
.rd-accio-head .rd-kicker { font-size: 12px; }
.rd-accio-head > span:last-child { color: var(--ink-muted); }
.rd-accio--encarar .rd-accio-head { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.rd-accio--encarar .rd-accio-head > span:last-child { color: var(--on-ink); }
.rd-accio--deixar_correr .rd-accio-head { border-color: var(--surface-inset); background: var(--surface-inset); color: var(--ink-secondary); }
/* Una targeta d'orientació: el color del tema o del partit, al quadret o al punt del títol i a les barres. */
.rd-ocards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-14); align-items: start; }
.rd-ocard { min-width: 0; display: flex; flex-direction: column; row-gap: var(--space-10); padding: 14px 16px 0; overflow: hidden; border: 1px solid var(--line-panel); border-radius: var(--radius-panel); background: var(--surface-panel); }
.rd-ocard-title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; }
.rd-ocard-text { margin: 0; font-size: 14px; line-height: 20px; font-weight: 450; color: var(--ink); }
.rd-ocard-none { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-ocard-xifres { margin: 0 -16px; border-top: 1px solid var(--line-divider); }
.rd-ocard-xifres > summary { margin: 6px 0 6px 10px; }
.rd-ocard-xifres > p { margin: 0; padding: 0 16px 12px; font-size: 12px; line-height: 17px; color: var(--ink-secondary); }
.rd-ocard > :last-child:not(.rd-ocard-xifres) { margin-bottom: 14px; }
/* Les xifres d'un tema, en tres minigràfics: part de la conversa, postura i abans. */
.rd-ofacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--line-row); }
.rd-ofact { display: flex; flex-direction: column; row-gap: 5px; min-width: 0; }
.rd-ofact-l { font-size: 11.5px; line-height: 16px; color: var(--ink-muted); }
.rd-ofact-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rd-ofact-v span { font-weight: 450; color: var(--ink-secondary); }
.rd-ofact .rd-cbar, .rd-ofact .rd-stance, .rd-ofact .rd-units { height: 6px; margin-top: 2px; }
.rd-ofact .rd-cbar .rd-tick { top: -3px; height: 12px; }
.rd-ofact .rd-units { overflow: hidden; }
/* Les entitats que anomena una targeta: punt, nom i mencions, barra de balanç amb l'interval i la xifra. */
.rd-oents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; column-gap: 12px; row-gap: 8px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line-row); font-size: 13px; line-height: 18px; }
.rd-oents > div { display: contents; }
.rd-oent-nom { display: flex; align-items: baseline; column-gap: 7px; min-width: 0; }
.rd-oent-nom .rd-dot { flex-shrink: 0; align-self: center; }
.rd-oent-nom a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; }
.rd-oent-nom a:hover { text-decoration: underline; }
.rd-oent-nom > span:last-child { flex-shrink: 0; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.rd-oent-poc { grid-column: span 2; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-oents .rd-cbar-v { font-weight: 700; }
/* Riscos i el que no se sap: llistes curtes, una frase per fila. */
.rd-olist { margin: 0; padding: 2px 16px 6px; list-style: none; }
.rd-olist li { padding: 8px 0; border-top: 1px solid var(--line-row); font-size: 13px; line-height: 19px; }
.rd-olist li:first-child { border-top: 0; }

@media (max-width: 1199px) {
  .rd-qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-accions, .rd-ocards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .rd-qgrid, .rd-qgrid--2, .rd-accions, .rd-ocards { grid-template-columns: minmax(0, 1fr); }
  .rd-qcard { margin-bottom: var(--space-12); padding: 14px 14px 0; row-gap: var(--space-10); }
  .rd-qcard-title { font-size: 16px; line-height: 21px; }
  .rd-qcard-answer { font-size: 15px; line-height: 22px; }
  .rd-qcard-xifres { margin: 0 -14px; }
  /* «Les xifres» ocupa tota l'amplada de la targeta: l'objectiu tàctil és el de 44 px. */
  .rd-qcard-xifres > summary { min-height: var(--control-full-mobile); box-sizing: border-box; margin: 0; padding: 0 8px; }
  .rd-qcard-xifres > .rd-qt { margin: 0 14px; }
  .rd-qcard .rd-qt--quota .rd-qt-row, .rd-qcard .rd-qt--temes .rd-qt-row, .rd-qcard .rd-qt-foot { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  /* Files dels gràfics: el nom i la xifra a dalt, la barra a sota a tota l'amplada, com la fila de tema. */
  .rd-cbars, .rd-cbars--ample { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .rd-cbars > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 5px; align-items: center; }
  .rd-cbars > div > .rd-cbar { grid-column: 1 / -1; grid-row: 2; }
  .rd-oents { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .rd-oents > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 5px; align-items: center; }
  .rd-oents > div > .rd-cbar { grid-column: 1 / -1; grid-row: 2; }
  .rd-oent-poc { grid-column: 1 / -1; grid-row: 2; }
  .rd-orient { row-gap: var(--space-24); }
  .rd-orient-day { padding: 0 4px; }
  .rd-orient-day p { font-size: 15px; line-height: 22px; }
  .rd-orient-head { padding: 0 4px; }
  .rd-ocard { padding: 12px 14px 0; }
  .rd-ocard-xifres { margin: 0 -14px; }
  .rd-ocard-xifres > summary { min-height: var(--control-min-mobile); box-sizing: border-box; margin: 2px 0 2px 8px; }
  .rd-ocard-xifres > p { padding: 0 14px 12px; }
  .rd-ofacts { column-gap: 10px; }
  .rd-olist { padding: 2px 14px 6px; }
}

/* La portada: el dia, el mosaic, els blocs de partit, què fem i com se'n parla. Va més estreta que el detall. */
.rd-cover { max-width: var(--layout-cover); margin: 0 auto; box-sizing: border-box; padding: 36px 24px 56px; display: flex; flex-direction: column; row-gap: 36px; }
.rd-cover > .rd-wrap--strip { min-height: 0; margin-bottom: -16px; padding: 0; }
.rd-cover-sec { min-width: 0; display: flex; flex-direction: column; row-gap: 10px; }
.rd-cover-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.rd-cover-head .rd-link { margin-right: -8px; font-size: 13px; line-height: 18px; }
.rd-cover-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 760; }
.rd-cover-note { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.rd-cover-note a { color: inherit; }
.rd-cover-duo { display: flex; flex-wrap: wrap; gap: 36px; }
.rd-cover-duo > .rd-cover-sec { flex: 1 1 300px; row-gap: 12px; }
.rd-cover-duo > .rd-cover-sec--plan { flex: 1.8 1 560px; }
/* Les úniques majúscules del sistema: l'avantítol de la portada i les etiquetes de «Què fem avui». */
.rd-kicker { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rd-day { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.rd-day-text { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; row-gap: 12px; }
.rd-day-title { margin: 0; font-size: 42px; line-height: 48px; font-weight: 680; letter-spacing: -0.025em; text-wrap: balance; }
.rd-day-stats { flex: 0 1 auto; margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 18px; font-size: 14px; line-height: 20px; }
.rd-day-stats dt { color: var(--ink-muted); }
.rd-day-stats dd { margin: 0; font-weight: 750; text-align: right; }
.rd-day-line { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; line-height: 18px; color: var(--ink-secondary); }
.rd-day-line b { color: var(--ink); }
/* «El teu partit» (`OwnParty.md`): una línia fixa sota la frase del dia. El color, només al punt. */
.rd-own { margin: -20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; border: 1px solid var(--line-panel); border-radius: var(--radius-chip); background: var(--surface-panel); color: var(--ink-secondary); font-size: 15px; line-height: 21px; }
.rd-own > .rd-dot { flex-shrink: 0; align-self: flex-start; width: 10px; height: 10px; margin-top: 5px; }
.rd-own-text { flex: 1 1 0; min-width: 0; }
.rd-own-text b { color: var(--ink); font-weight: 700; }
.rd-own > .rd-link { margin-right: -8px; font-size: 13px; line-height: 18px; }
@media (max-width: 759px) { .rd-own { margin-top: -16px; font-size: 14px; line-height: 20px; } .rd-own > .rd-link { flex-basis: 100%; margin-left: 20px; } }

/* Mosaic de temes. La separació és la vora de cada rajola, i el clip retalla la de fora i arrodoneix les cantonades. */
.rd-mosaic { position: relative; height: 360px; margin: -2px; clip-path: inset(2px round var(--radius-chip)); }
.rd-tile { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; container-type: inline-size; border: 2px solid var(--surface-page); background: var(--tema, var(--tema-altres)) padding-box; color: var(--on-tema, var(--ink-secondary)); text-decoration: none; }
.rd-tile:hover .rd-tile-name { text-decoration: underline; }
.rd-tile:focus-visible { outline-offset: -5px; outline-color: currentColor; }
.rd-tile-top { display: flex; flex-direction: column; align-items: flex-start; row-gap: 2px; min-width: 0; }
.rd-tile-name { font-weight: 750; }
.rd-tile-sub { font-size: 12px; line-height: 16px; }
.rd-tile-new { padding: 1px 6px; border-radius: var(--radius-badge); background: var(--on-tema); color: var(--tema); font-size: 11px; line-height: 15px; font-weight: 750; }
.rd-tile-end { display: flex; align-items: flex-end; justify-content: space-between; column-gap: 16px; }
.rd-tile-pct { flex-shrink: 0; font-weight: 820; line-height: 0.9; white-space: nowrap; }
.rd-tile-facts { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 14px; line-height: 20px; }
.rd-tile-facts b { font-size: 18px; }
.rd-tile--xl { padding: 20px 22px; }
.rd-tile--xl .rd-tile-name { font-size: 20px; line-height: 26px; }
.rd-tile--xl .rd-tile-sub { font-size: 14px; line-height: 20px; }
.rd-tile--xl .rd-tile-pct { font-size: 120px; line-height: 0.85; letter-spacing: -0.05em; }
@container (max-width: 520px) { .rd-tile--xl .rd-tile-pct { font-size: 88px; } }
.rd-tile--l { flex-direction: row; align-items: flex-end; column-gap: 12px; padding: 14px 16px; }
.rd-tile--l .rd-tile-name { font-size: 16px; line-height: 21px; }
.rd-tile--l .rd-tile-sub { font-size: 13px; line-height: 16px; }
.rd-tile--l .rd-tile-pct { font-size: 52px; letter-spacing: -0.04em; }
.rd-tile--m { padding: 12px 14px; }
.rd-tile--m .rd-tile-name { font-size: 14px; line-height: 18px; }
.rd-tile--m .rd-tile-pct { font-size: 34px; letter-spacing: -0.03em; }
.rd-tile--s { padding: 10px 12px; }
.rd-tile--s .rd-tile-name { font-size: 13px; line-height: 17px; }
.rd-tile--s .rd-tile-pct { font-size: 28px; }
.rd-tile--s .rd-tile-end { flex-wrap: wrap; gap: 2px 6px; }
/* Els temes, en l'escala neutra (`ThemeColor.md`): els foscos porten text on-ink i els clars, ink. */
.tm-joc_politic { --tema: var(--tema-joc_politic); --on-tema: var(--on-ink); } .tm-catalunya_espanya { --tema: var(--tema-catalunya_espanya); --on-tema: var(--ink); }
.tm-immigracio_seguretat { --tema: var(--tema-immigracio_seguretat); --on-tema: var(--on-ink); } .tm-habitatge { --tema: var(--tema-habitatge); --on-tema: var(--ink); }
.tm-territori { --tema: var(--tema-territori); --on-tema: var(--on-ink); } .tm-identitat { --tema: var(--tema-identitat); --on-tema: var(--ink); }
.tm-serveis_publics { --tema: var(--tema-serveis_publics); --on-tema: var(--on-ink); } .tm-economia { --tema: var(--tema-economia); --on-tema: var(--ink); }
.tm-sense { --tema: var(--tema-sense); }

/* Franja de la portada: una proporció que va a part del mosaic */
.rd-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 14px 20px; border-radius: var(--radius-chip); background: var(--ink); color: var(--on-ink); text-decoration: none; font-size: 13px; line-height: 18px; }
.rd-band-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.rd-band-text b { font-size: 16px; line-height: 20px; }
.rd-band-n { font-size: 30px; line-height: 32px; font-weight: 820; }

/* Blocs de partit. L'amplada ve de les mencions (`flex-grow`), i les barres es pinten amb el color del text del bloc. */
.rd-pblocks { display: flex; flex-wrap: wrap; gap: 4px; }
.rd-pblock { flex: 1 1 0; min-width: 240px; box-sizing: border-box; container-type: inline-size; display: flex; flex-direction: column; row-gap: 16px; padding: 18px; border-radius: var(--radius-chip); background: var(--party, var(--tema-altres)); color: var(--on-party, var(--on-ink)); }
.rd-pblock a { color: inherit; text-decoration: none; }
.rd-pblock-head { display: flex; align-items: flex-start; justify-content: space-between; column-gap: 10px; }
.rd-pblock-who { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 18px; }
.rd-pblock-who a { font-size: 18px; line-height: 23px; font-weight: 780; }
.rd-pblock-who a:hover, .rd-pperson:hover b:first-child { text-decoration: underline; }
.rd-pblock-n { font-size: 44px; line-height: 0.95; font-weight: 820; letter-spacing: -0.03em; }
@container (max-width: 280px) { .rd-pblock-n { font-size: 34px; } }
.rd-pblock-list { display: flex; flex-direction: column; row-gap: 12px; }
.rd-pperson { display: flex; flex-direction: column; row-gap: 6px; }
.rd-pperson-top { display: flex; justify-content: space-between; column-gap: 8px; font-size: 13px; line-height: 18px; }
.rd-pbar { position: relative; display: block; height: 6px; border-radius: 1px; background: color-mix(in srgb, currentColor 28%, transparent); }
.rd-pbar-zero { position: absolute; left: 50%; top: -3px; width: 1px; height: 12px; background: currentColor; }
.rd-pbar-fill { position: absolute; top: 0; bottom: 0; background: currentColor; }
.rd-pblock--rest { flex: 0 1 240px; min-width: 190px; row-gap: 8px; background: var(--tema-altres); color: var(--ink-secondary); text-decoration: none; font-size: 13px; line-height: 18px; }
.rd-pblock--rest b { font-size: 18px; line-height: 23px; font-weight: 780; color: var(--ink); }
.p-erc, .p-cup { --on-party: var(--on-clar); }
/* ERC i CUP són tots dos clars. A més de la lluminositat, la CUP es distingeix per la forma: les seves marques porten un anell fosc. */
.p-cup { --party-anell: inset 0 0 0 1.5px var(--on-clar); }
.rd-dot, .rd-key--party, .rd-vbar { box-shadow: var(--party-anell, none); }
.p-cup .f-party, .p-cup.f-party { stroke: var(--on-clar); stroke-width: 1px; }

/* Què fem avui */
.rd-plan { display: flex; flex-wrap: wrap; gap: 4px; }
.rd-plan-col { flex: 1 1 200px; box-sizing: border-box; display: flex; flex-direction: column; row-gap: 10px; padding: 16px; border-radius: var(--radius-chip); background: var(--surface-panel); }
.rd-plan-col--encarar { background: var(--ink); color: var(--on-ink); }
.rd-plan-col--deixar_correr { background: var(--surface-inset); color: var(--ink-secondary); }
.rd-plan-item { display: flex; align-items: center; column-gap: 8px; font-size: 15px; line-height: 20px; font-weight: 700; }
.rd-plan-key { flex-shrink: 0; width: 12px; height: 12px; background: var(--tema, var(--tema-altres)); }
.rd-plan-col--encarar .rd-plan-key { outline: 1px solid color-mix(in srgb, currentColor 50%, transparent); }

/* Com se'n parla: l'emoció dominant */
.rd-emolead { display: flex; padding: 16px; border-radius: var(--radius-chip); background: var(--surface-panel); color: var(--ink); text-decoration: none; }
.rd-emolead:hover .rd-emolead-nom { text-decoration: underline; }
.rd-emolead-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; row-gap: 8px; }
.rd-emolead--ample { flex-wrap: wrap; align-items: center; gap: 12px 48px; }
.rd-emolead--ample .rd-emolead-main { flex: 1 1 280px; }
.rd-emolead-bars { flex: 1.5 1 280px; min-width: 0; }
.rd-emolead-top { display: flex; align-items: baseline; justify-content: space-between; column-gap: 12px; }
.rd-emolead-nom { font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -0.02em; }
.rd-emolead-pct { font-size: 28px; line-height: 32px; font-weight: 800; white-space: nowrap; }
.rd-emolead-text { font-size: 14px; line-height: 20px; color: var(--ink-secondary); }

/* El mosaic té dues caixes: la ampla, a partir de 1.200 px (`grafics.mosaic`). */
@media (min-width: 1200px) {
  .rd-mosaic--estret, .rd-only-estret { display: none; }
}
@media (max-width: 1199px) {
  .rd-mosaic--ample, .rd-only-ample { display: none; }
  .rd-tile--xl { padding: 14px 16px; }
  .rd-tile--xl .rd-tile-name { font-size: 17px; line-height: 22px; }
  .rd-tile--xl .rd-tile-sub { font-size: 13px; line-height: 18px; }
  .rd-tile--xl .rd-tile-pct { font-size: 72px; }
  .rd-tile-facts { font-size: 12px; line-height: 16px; }
  .rd-tile-facts b { font-size: 13px; }
  .rd-tile--m { padding: 10px 12px; }
  .rd-tile--m .rd-tile-name { font-size: 13px; line-height: 17px; }
  .rd-tile--m .rd-tile-pct { font-size: 30px; }
  .rd-tile--s { padding: 10px; }
  .rd-tile--s .rd-tile-name { font-size: 12px; line-height: 15px; }
  .rd-tile--s .rd-tile-pct { font-size: 24px; }
  @media (max-width: 359px) { .rd-tile--m .rd-tile-pct, .rd-tile--s .rd-tile-pct { font-size: 20px; } }
}

/* Per sota de 760 px, la portada de la maqueta D-resum-390: un bloc sota l'altre. */
@media (max-width: 759px) {
  .rd-cover { padding: 22px 12px 32px; row-gap: 28px; }
  .rd-cover > .rd-wrap--strip { margin-bottom: -12px; }
  .rd-day, .rd-cover-head, .rd-cover > .rd-cover-note, .rd-cover-sec > .rd-cover-note { padding: 0 4px; }
  .rd-day-text { flex-basis: auto; row-gap: 10px; }
  .rd-kicker { font-size: 11px; line-height: 15px; }
  .rd-day-title { font-size: 28px; line-height: 33px; letter-spacing: -0.02em; }
  .rd-cover-sec { row-gap: 8px; }
  .rd-cover-title { font-size: 20px; line-height: 26px; }
  .rd-mosaic { margin: -1.5px; clip-path: inset(1.5px round var(--radius-chip)); }
  .rd-tile { border-width: 1.5px; }
  .rd-band { flex-wrap: nowrap; gap: 12px; padding: 12px 14px; font-size: 12px; line-height: 16px; }
  .rd-band-text { flex-direction: column; row-gap: 0; }
  .rd-band-text b { font-size: 14px; }
  .rd-band-n { font-size: 26px; white-space: nowrap; }
  .rd-pblocks { flex-direction: column; gap: 8px; }
  .rd-pblock { flex: none; min-width: 0; row-gap: 12px; padding: 14px; container-type: normal; }
  .rd-pblock-who { font-size: 12px; line-height: 16px; }
  .rd-pblock-who a { font-size: 17px; line-height: 22px; }
  .rd-pblock-n { font-size: 36px; }
  .rd-pperson { min-height: 32px; }
  .rd-pblock--rest { display: block; padding: 10px 14px; }
  .rd-pblock--rest b { margin-right: 4px; font-size: 13px; line-height: 18px; color: var(--ink); }
  .rd-cover-duo { gap: 28px; }
  .rd-cover-duo > .rd-cover-sec, .rd-cover-duo > .rd-cover-sec--plan { flex-basis: 100%; }
  .rd-plan { flex-direction: column; }
  .rd-plan-col { flex: none; }
  .rd-emolead-nom { font-size: 30px; line-height: 36px; }
}

/* A partir de 760 px: res del mòbil, i la columna «14 dies» cau quan el panell de la zona B fa menys de bp-daily-bars (380 px) */
@media (min-width: 760px) {
  .rd-mobile-only { display: none !important; }
  .rd-header .rd-sections { display: none; }
  @container (width < 380px) {
    .rd-entity:not(.rd-entity--short), .rd-colhead--entity { grid-template-columns: 8px minmax(0, 1fr) 46px; }
    .rd-days, .rd-days-note { display: none; }
  }
}

/* A partir de 1.200 px, la taula de valoració porta les 11 columnes: s'hi afegeixen el grup, els 14 dies i les emocions */
@media (min-width: 1200px) {
  .rd-vtable--full .rd-vtable-in { min-width: 1200px; }
  .rd-vtable--full .rd-vrow, .rd-vtable--full .rd-vhead { grid-template-columns: 3px minmax(170px, 1.5fr) 128px 180px 48px 58px 70px 66px 64px minmax(170px, 1.4fr) 82px; }
}

/* Per sota de bp-two-columns (1199 px): dues columnes, i el panell marcat a tota l'amplada. La tira de 14 dies de la franja ja no hi cap en una línia. */
@media (max-width: 1199px) {
  .rd-zones { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rd-zones > .rd-panel--wide { grid-column: 1 / -1; }
  .rd-strip-days { display: none; }
  /* Sota el plec: el seguiment a tota l'amplada i els altres dos a sota; la taula, amb les 8 columnes. */
  .rd-cols--val { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-cols--val > :first-child { grid-column: 1 / -1; }
  .rd-cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-cols--fitxa { grid-template-columns: minmax(0, 1fr); }
  .rd-vtable--full .s, .rd-vtable--full .rd-days { display: none; }
}

/* Per sota de bp-one-column (759 px): una columna, capçalera mòbil i files del mòbil (maqueta 04) */
@media (max-width: 759px) {
  .rd-desktop-only { display: none !important; }

  .rd-wrap { padding-left: 14px; padding-right: 14px; }
  .rd-wrap:has(> .rd-strip--strong) { padding-left: 12px; padding-right: 12px; }
  .rd-wrap--headline { padding-bottom: 14px; }
  .rd-zones { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-12); padding-left: 10px; padding-right: 10px; }
  .rd-resta { padding: 18px 10px 28px; }
  .rd-resta > span { flex-basis: 100%; margin: 0 0 2px; line-height: 20px; }
  .rd-resta .rd-btn--nav { height: 40px; box-sizing: border-box; padding: 0 12px; border-radius: var(--radius-control); }
  .rd-resta .rd-btn--nav svg { display: none; }

  .rd-header { position: sticky; top: 0; z-index: 2; }
  /* Les àncores, sota la capçalera fixa: la capçalera, la barra de seccions (40 px) i les dues vores. */
  .rd-zones > .rd-panel { scroll-margin-top: calc(var(--header-height) + 42px); }
  .rd-header-in, .rd-views { display: none; }
  .rd-mhead { display: flex; align-items: center; column-gap: 8px; height: var(--header-height); box-sizing: border-box; padding: 0 12px 0 14px; }
  .rd-mhead .rd-brand { flex-shrink: 0; }

  .rd-strip-text { align-items: flex-start; }
  .rd-strip-text svg { margin-top: 2px; }
  .rd-strip-side, .rd-strip > .rd-link { display: none; }
  .rd-strip--strong { padding: 10px 12px; }
  .rd-strip--strong .rd-strip-text svg { margin-top: 1px; }

  .rd-panel-title { font-size: 15px; line-height: 20px; }
  .rd-panel-body:has(+ .rd-more) { padding-bottom: 0; }
  .rd-panel-body > .rd-callout { margin-top: 8px; }
  .rd-callout { column-gap: 8px; padding: 6px 10px; }
  .rd-callout .rd-badge-move { padding: 1px 6px; }
  .rd-colhead, .rd-threshold { display: none; }
  .rd-colhead + .rd-row { border-top: 0; }
  .rd-threshold + .rd-row { border-top: 1px solid var(--line-row); }
  .rd-more { display: flex; align-items: center; justify-content: center; column-gap: 6px; width: 100%; height: var(--control-full-mobile); padding: 0; border: 0; border-top: 1px solid var(--line-divider); background: var(--surface-sunken); color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }

  /* Fila de tema: nom, marca i percentatge a dalt; la barra a sota, a tota l'amplada */
  .rd-theme, .rd-theme--still { grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; padding: 7px 0 8px; }
  .rd-theme > div:first-child { display: contents; }
  .rd-theme-name { grid-area: 1 / 1; font-size: 14px; line-height: 19px; }
  .rd-theme > span:last-child { grid-area: 1 / 2; }
  .rd-theme .rd-move { padding-left: 0; column-gap: 3px; }
  .rd-theme .rd-pct { grid-area: 1 / 3; font-size: 14px; line-height: 19px; font-weight: 700; }
  .rd-theme .rd-n { display: none; }
  .rd-theme .rd-track { grid-area: 2 / 1 / 3 / -1; margin-top: 6px; height: 6px; border-radius: var(--radius-bar-thick); }
  .rd-theme .rd-fill { height: 6px; border-radius: var(--radius-bar-thick); }
  .rd-theme .rd-tick { height: 12px; }
  .rd-row > .rd-chips { display: none; }

  /* Fila d'entitat: l'etiqueta sota el nom, la insígnia al costat del recompte, sense balanç ni 14 dies. Tota la fila és l'enllaç. */
  .rd-row { position: relative; }
  .rd-entity, .rd-entity--short { grid-template-columns: 9px minmax(0, 1fr); column-gap: 10px; align-items: start; padding: 8px 0 9px; }
  .rd-entity .rd-dot { width: 9px; height: 9px; margin-top: 5px; }
  .rd-entity .rd-days, .rd-entity .rd-bal { display: none; }
  .rd-entity-name { flex-grow: 1; flex-wrap: wrap; font-size: 14px; line-height: 19px; }
  /* El nom parteix de zero i creix: així la insígnia no salta a la línia del grup. */
  .rd-entity-name a { flex: 1 1 0; font-weight: 650; }
  .rd-entity-name a::after { content: ""; position: absolute; inset: 0; }
  .rd-entity-name .rd-label { order: 3; flex-basis: 100%; line-height: 16px; }
  .rd-entity-name .rd-badge-pic { margin-left: auto; line-height: 16px; }
  .rd-entity-n { font-size: 14px; }
  .rd-entity .rd-track { margin-top: 6px; height: 4px; }
  .rd-entity .rd-fill { height: 4px; }
  .rd-entity .rd-tick { height: 10px; }

  /* Preguntes: el minigràfic sota la resposta i el desplegable a tota l'amplada */
  .rd-sobre { padding: 12px 0 4px; }
  .rd-panel-head .rd-sobre { flex-grow: 1; }
  .rd-sobre .rd-select { flex-grow: 1; }
  .rd-sobre .rd-select select { width: 100%; height: 40px; padding: 0 32px 0 12px; border-radius: var(--radius-control); font-size: 14px; }
  .rd-sobre .rd-select svg { right: 12px; top: 15px; }
  .rd-q { display: flex; flex-direction: column; padding: 12px 0; }
  .rd-q-head { display: contents; }
  .rd-q-title { font-size: 13px; line-height: 18px; }
  .rd-q-answer, .rd-q-empty { order: 1; margin-top: 4px; font-size: 15px; line-height: 22px; }
  .rd-q-head svg { order: 2; width: 160px; margin-top: 8px; }
  .rd-q .rd-toggle { order: 3; box-sizing: border-box; width: calc(100% + 12px); min-height: var(--control-min-mobile); margin-top: 6px; padding: 6px; column-gap: 6px; font-size: 12.5px; line-height: 17px; }
  .rd-q > .rd-qt, .rd-q > .rd-qt-foot { order: 4; }
  .rd-q-group { margin: 6px -14px 0; padding: 12px 14px 0; }

  /* Taules obertes: no són a cap maqueta de mòbil. El gràfic baixa a una segona línia, com la barra de la fila de tema. */
  .rd-qt--balanc { --qt-cols: minmax(0, 1fr) 62px; }
  .rd-qt--quota, .rd-qt--temes { --qt-cols: minmax(0, 1fr) 40px 62px; }
  .rd-qt--parella { --qt-cols: minmax(0, 1fr) auto; }
  .rd-qt-row > svg, .rd-qt-row > .rd-qt-bar, .rd-qt-head > .rd-qt-axis { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }
  .rd-qt-row > svg, .rd-qt-head > .rd-qt-axis { justify-self: start; }
  .rd-qt--balanc .rd-qt-axis { width: 170px; }
  .rd-qt--parella .rd-qt-axis { width: 128px; }
  .rd-qt--quota .rd-qt-head > :nth-child(2), .rd-qt--temes .rd-qt-head > :nth-child(2) { display: none; }
  .rd-qt--quota .rd-qt-row, .rd-qt--temes .rd-qt-row { padding-top: 7px; padding-bottom: 8px; }

  /* Sota el plec: una columna. Els panells s'alineen amb els de les zones (10 px) i el títol, amb el titular (14). */
  .rd-section { padding: var(--space-24) 10px 0; }
  .rd-section, .rd-section [id] { scroll-margin-top: calc(var(--header-height) + 42px); }
  .rd-section-head { padding: 0 4px; }
  .rd-cols, .rd-cols--val, .rd-cols--2, .rd-cols--3 { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .rd-pagina { padding-left: 10px; padding-right: 10px; row-gap: var(--space-12); }
  .rd-pagina .rd-section-head, .rd-pagina > .rd-link--back { margin-left: -4px; padding: 0 4px; }
  .rd-panel, .rd-chart--fitxa svg, .rd-pagina [id] { scroll-margin-top: calc(var(--header-height) + 42px); }
  .rd-crawl { flex-grow: 1; justify-content: space-between; }
  .rd-crawl .rd-btn { min-height: var(--control-min-mobile); }
  .rd-col { gap: var(--space-12); }
  /* Sense prou dades: el bloc a dalt, i a sota el motiu amb el botó al costat. */
  .rd-gaps > div { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; }
  .rd-gaps b { grid-column: 1 / -1; }
  /* Sobre aquestes dades: una columna, i cada etiqueta sobre el seu valor. */
  .rd-about { grid-template-columns: minmax(0, 1fr); }
  .rd-about > :first-child { border-right: 0; border-bottom: 1px solid var(--line-divider); }
  .rd-about > div, .rd-dl { padding: 12px 14px; }
  .rd-dl, .rd-dl--glossary { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .rd-dl--glossary { padding: 0; }
  .rd-dl dd + dt { margin-top: 10px; }
  .rd-section .rd-panel-foot--lock { padding: 10px 14px 12px; }
  .rd-cols--val > :first-child { grid-column: auto; }
  .rd-vsum { grid-template-columns: minmax(0, 1fr); }
  /* La taula al mòbil: el nom, la barra (110 px) i el balanç hi caben sense desplaçar; la resta, cap a la dreta. */
  .rd-vrow, .rd-vhead { grid-template-columns: 3px 138px 110px 48px 58px 70px 64px 74px; min-width: 649px; }
  .rd-vsplit, .rd-vtable-in { min-width: 649px; }
  .rd-vtable--sense-tendencia .rd-vrow, .rd-vtable--sense-tendencia .rd-vhead { grid-template-columns: 3px 138px 110px 48px 58px 70px 64px; min-width: 575px; }
  .rd-vtable--sense-tendencia .rd-vsplit, .rd-vtable--sense-tendencia .rd-vtable-in { min-width: 575px; }
  .rd-search { flex: 1 1 100%; }
  .rd-search input { width: 100%; height: var(--control-min-mobile); }
  /* Grup i ordre es reparteixen una fila; la cerca en té una altra. */
  .rd-vtools .rd-grow { display: none; }
  .rd-field { flex: 1 1 0; min-width: 0; }
  .rd-field .rd-select { flex: 1; min-width: 0; }
  .rd-field .rd-select select { width: 100%; height: var(--control-min-mobile); text-overflow: ellipsis; }
  .rd-field .rd-select svg { top: 13px; }
  /* Fila de l'agenda: el nom, la xifra dels polítics i la de l'agenda a dalt; la barra i els 14 dies a sota. */
  .rd-theme--agenda .rd-pct-ref { grid-area: 1 / 2; }
  .rd-theme .rd-pct--curt { font-size: 12px; font-weight: 450; }
  .rd-theme--agenda .rd-track { grid-area: 2 / 1 / 3 / 3; }
  .rd-theme--agenda .rd-days { grid-area: 2 / 3; align-self: center; }

  /* Dades i Preguntes: cada secció de sota el plec es plega amb el seu resum (`marc.js` deixa oberta la primera). */
  .rd-plec-seccio { margin-top: var(--space-12); border-top: 1px solid var(--line-row); }
  .rd-plec-seccio > summary { display: flex; align-items: center; column-gap: var(--space-8); min-height: var(--control-full-mobile); box-sizing: border-box; padding: var(--space-8) 14px; list-style: none; cursor: pointer; }
  .rd-plec-seccio > summary::-webkit-details-marker { display: none; }
  .rd-plec-seccio > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
  .rd-plec-seccio[open] > summary > svg { transform: rotate(90deg); }
  .rd-plec-seccio > .rd-section { padding-top: 0; }
  /* El títol ja el diu el resum: el de la secció no es veu, però es queda per als lectors de pantalla. */
  .rd-plec-seccio > .rd-section > .rd-section-head > .t-section-title, .rd-plec-seccio > .rd-section > .rd-section-head > .rd-section-lead > .t-section-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* La barra de seccions es desplaça: la vora dreta es difumina més ample perquè es vegi que en queden. */
  .rd-sections[data-queda] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
}

/* Classes de color per a SVG (els atributs fill/stroke no accepten var()) */
.f-ink { fill: var(--ink); } .f-strong { fill: var(--bar-strong); } .f-soft { fill: var(--bar-soft); } .f-track { fill: var(--bar-track); }
.f-against { fill: var(--stance-against); } .f-rest { fill: var(--stance-rest); } .f-interval { fill: var(--interval-fill); }
.f-nodata { fill: var(--surface-nodata); } .f-inset { fill: var(--surface-inset); } .f-panel { fill: var(--surface-panel); } .f-party { fill: var(--party); }
.f-muted { fill: var(--ink-muted); } .f-none { fill: none; }
.s-ink { stroke: var(--ink); } .s-grid { stroke: var(--line-grid); } .s-zero { stroke: var(--axis-zero); } .s-faint { stroke: var(--ink-faint); }
.s-soft { stroke: var(--bar-soft); } .s-party { stroke: var(--party); } .s-muted { stroke: var(--ink-muted); } .s-panel { stroke: var(--surface-panel); } .s-inset { stroke: var(--surface-inset); }
.f-banda { fill: color-mix(in srgb, var(--party) 16%, transparent); }
.f-tema { fill: var(--tema, var(--bar-strong)); } .s-tema { stroke: var(--tema, var(--bar-strong)); }
/* «sense dades» a l'eix és text que es llegeix: `ink-muted` (4,8:1 o més), no `ink-disabled` (3,4:1). */
.t-axis { font-size: 13px; fill: var(--ink-muted); } .t-axis--fluix { fill: var(--ink-muted); } .t-label { font-size: 13px; fill: var(--ink); } .t-label tspan.v { fill: var(--ink-muted); }

/* Colors de partit: es fixa --party a l'element o a un pare */
.p-psc { --party: var(--party-psc); } .p-junts { --party: var(--party-junts); } .p-erc { --party: var(--party-erc); } .p-ac { --party: var(--party-ac); }
.p-vox { --party: var(--party-vox); } .p-pp { --party: var(--party-pp); } .p-cup { --party: var(--party-cup); } .p-comuns { --party: var(--party-comuns); }
.p-guanyem { --party: var(--party-guanyem); } .p-inst { --party: var(--party-institucio); } .p-mitja { --party: var(--party-mitja); }

/* Valoració: si totes les files diuen el mateix a Tendència, la columna cau i ho diu el peu. */
.rd-vtable--sense-tendencia .rd-vtrend { display: none; }
.rd-vtable--sense-tendencia .rd-vrow, .rd-vtable--sense-tendencia .rd-vhead { grid-template-columns: 3px minmax(150px, 1.5fr) 180px 48px 58px 70px 64px; }
@media (min-width: 1200px) {
  .rd-vtable--full.rd-vtable--sense-tendencia .rd-vrow, .rd-vtable--full.rd-vtable--sense-tendencia .rd-vhead { grid-template-columns: 3px minmax(170px, 1.5fr) 128px 180px 48px 58px 70px 66px 64px minmax(170px, 1.4fr); }
}

/* «Qui s'emporta la conversa»: blocs d'amplada igual, i el volum de mencions en una barra fina sota el nom. Amb poca mostra, la xifra va més fluixa. */
.rd-pblock-vol { display: block; width: 100%; height: 3px; margin-top: 6px; border-radius: 1px; background: color-mix(in srgb, currentColor 28%, transparent); }
.rd-pblock-vol > span { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.rd-pblock-n--poca { font-size: 30px; font-weight: 480; }
.rd-pblock-poca { display: block; font-size: 12px; line-height: 16px; font-weight: 600; text-align: right; }

/* L'evolució de la fitxa: un dia amb mencions per sota del mínim és un punt buit i gris, sense línia. */
.rd-poc { fill: var(--surface-panel); stroke: var(--ink-faint); }

/* El partit escrit al costat del nom, perquè el color no sigui l'únic que el diu. */
.rd-diu-top b .rd-label { font-weight: 400; }

/* Dades i Preguntes: el resum que plega cada secció només és del mòbil (vegeu el bloc de 759 px). A l'escriptori, totes obertes. */
@media (min-width: 760px) {
  .rd-plec-seccio > summary { display: none; }
  .rd-plec-seccio::details-content { content-visibility: visible; display: contents; }
}
