/* Cata a ciegas — one stylesheet, no framework.

   The look is deliberately plain: a white page, black type, lists with rules, solid buttons.
   What is ours is small and specific: a bar over the party while you read blind, squares for
   your marks (like the boxes of a ballot), and one colour, "vino", used as a solid band.

   Colour: we never draw with party colours. The only party colour on a
   page is a party's own logo, after the reveal, in a tile of one size.

   Type: one family, Archivo, a grotesque drawn for Spanish-language news design. Headlines use
   its narrow width, so a long Spanish headline stays large on a phone; text uses the normal
   width. Its numerals are plain (two typefaces made for legibility were tried first: both draw
   the zero with a slash, which reads oddly in "2026" and in vote counts). The file is served
   from this site; no request goes to a font service. */

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-latin-wdth.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --ink: #111111;
  --ink-2: #444444;
  --ink-3: #696969;
  --rule: #d2d2d2;
  --rule-2: #8f8f8f;
  --mid: #767676;       /* abstentions in the vote bar */
  --vino: #7a1f3d;
  --band: #651a33;      /* the solid wine band; white type on it in both themes */
  --vino-soft: #f7e8ed;
  --on-ink: #ffffff;
  --font: "Archivo", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --narrow: 84%;        /* the width of headlines */
  --r: 4px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1c1c1c;
    --surface-2: #282828;
    --ink: #f2f2f2;
    --ink-2: #c8c8c8;
    --ink-3: #a2a2a2;
    --rule: #3a3a3a;
    --rule-2: #6a6a6a;
    --mid: #8e8e8e;
    --vino: #f2a4ba;
    --vino-soft: #3a1d28;
    --on-ink: #121212;
    color-scheme: dark;
  }
}

/* ---- Base ---------------------------------------------------------------------------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font);
  font-synthesis: none;
  min-height: 100vh;
  min-height: 100dvh;
}
h1, h2, h3, h4 { margin: 0; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7.6vw, 3.1rem); font-stretch: var(--narrow); line-height: 1.04; letter-spacing: -.012em; }
h2 { font-size: clamp(1.45rem, 4.6vw, 1.8rem); font-stretch: var(--narrow); line-height: 1.12; letter-spacing: -.008em; margin: 2em 0 .5em; }
h3 { font-size: 1.15rem; line-height: 1.25; margin: 1.5em 0 .35em; }
h4 { font-size: 1.12rem; line-height: 1.25; }
p { margin: .5em 0 1em; }
em { font-style: normal; font-weight: 700; }
strong, b { font-weight: 700; }
a { color: var(--ink); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: var(--vino); }
:focus-visible { outline: 3px solid var(--vino); outline-offset: 2px; }
main:focus { outline: none; }
button { font: inherit; color: inherit; }
.ico { flex: none; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .9rem; }
.muted { color: var(--ink-2); }
.none { color: var(--ink-3); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- Shell ------------------------------------------------------------------------------ */
.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  max-width: 1072px; margin: 0 auto; padding: 14px var(--gutter-r) 10px var(--gutter-l);
}
.brand { color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 1.3rem; font-weight: 800; font-stretch: var(--narrow); letter-spacing: -.005em; }
.brand:hover { color: var(--ink); }
/* The bar after the name is the one on every blind card: a party, covered. */
.brand-bar { display: inline-block; width: 30px; height: 13px; margin-left: 8px; border-radius: 2px; background: var(--ink); vertical-align: -1px; }
.nav { display: flex; gap: 22px; }
.nav a { padding: 6px 0; color: var(--ink-2); font-size: .98rem; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 800; box-shadow: inset 0 -3px 0 var(--vino); }
.nav-short { display: none; }
main { max-width: 752px; margin: 0 auto; padding: 8px var(--gutter-r) 72px var(--gutter-l); }
main.wide, body[data-route="inicio"] main { max-width: 1072px; }
.foot { max-width: 1072px; margin: 0 auto; padding: 24px var(--gutter-r) 40px var(--gutter-l); border-top: 1px solid var(--rule); color: var(--ink-3); font-size: .88rem; }
.foot p { margin: 0 0 10px; max-width: 62ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--ink-2); }

/* Phones: the five sections, in words, under the thumb. */
@media (max-width: 760px) {
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
  .top { padding-top: 12px; padding-bottom: 6px; }
  .nav {
    position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; gap: 0;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: var(--surface); border-top: 1px solid var(--rule-2);
  }
  .nav a { flex: 1 1 0; min-width: 0; padding: 13px 2px 14px; border-top: 3px solid transparent; text-align: center; font-size: .86rem; }
  .nav a[aria-current="page"] { border-top-color: var(--vino); box-shadow: none; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
}
/* While reading blind there is the card and nothing else. */
body[data-route="cata"] .nav, body[data-route="provincia"] .nav, body[data-route="reto"] .nav { display: none; }
@media (max-width: 760px) {
  body[data-route="cata"], body[data-route="provincia"], body[data-route="reto"] { padding-bottom: 0; }
}

/* ---- Small pieces ----------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border-radius: var(--r); border: 2px solid var(--ink);
  background: var(--ink); color: var(--on-ink); font-size: 1rem; font-weight: 700; line-height: 1.15;
  text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--on-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.big { min-height: 56px; padding: 12px 24px; font-size: 1.1rem; }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: .92rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { margin-top: 28px; }
/* A plain line of context above a title or a block. Never a decoration. */
.eyebrow { margin: 0 0 6px; font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--ink-3); }
.lead { font-size: 1.15rem; line-height: 1.45; color: var(--ink-2); max-width: 50ch; }
.notice, .empty { padding: 12px 14px; border-left: 4px solid var(--ink); background: var(--surface-2); font-size: .95rem; color: var(--ink-2); }
.linklike { align-self: flex-start; min-height: 36px; padding: 6px 0; border: 0; background: none; font-size: .95rem; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.pagehead { padding: 20px 0 4px; }
.pagehead h1 { margin-bottom: .3em; }
.pagehead .lead { margin: 0 0 1em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; font-size: .9rem; color: var(--ink-3); }
.intro { margin: 10px 0 6px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 6px; }
.intro p { margin: 0 0 10px; font-size: .98rem; }
details > summary { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; cursor: pointer; font-weight: 700; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; flex: none; width: .8em; font-weight: 800; }
details[open] > summary::before { content: "–"; }

/* A wine band from edge to edge. The shadow carries the colour past the page's width. */
.band { background: var(--band); color: #ffffff; box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.band .lead { color: #ffffff; }
.band a { color: #ffffff; }
.band .btn.inv { background: #ffffff; border-color: #ffffff; color: #111111; }
.band .btn.ghost.inv { background: transparent; color: #ffffff; }
.band .btn.ghost.inv:hover { background: rgba(255, 255, 255, .14); }

/* Lists do the work that grids of boxes usually do. */
.rows { list-style: none; padding: 0; margin: 12px 0; border-top: 2px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--rule); }
.rowlink { position: relative; display: grid; gap: 2px; padding: 14px 30px 14px 0; color: var(--ink); text-decoration: none; }
.rowlink::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-top: 2.5px solid var(--ink); border-right: 2.5px solid var(--ink); transform: rotate(45deg); }
.rowlink:hover { color: var(--ink); }
.rowlink:hover .rowlink-t { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .18em; }
.rowlink-t { font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.rowlink-d { font-size: .95rem; color: var(--ink-2); }
.rowlink-m { font-size: .86rem; color: var(--ink-3); }
.topics .rowlink { padding-top: 18px; padding-bottom: 18px; }
.topics .rowlink-t { font-size: 1.6rem; font-stretch: var(--narrow); }
.plainlist { list-style: none; padding: 0; margin: 12px 0; border-top: 2px solid var(--ink); }
.plainlist li { padding: 12px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.next h2 { margin-top: 2em; }
.plainlist.progs { columns: 1; }
@media (min-width: 760px) {
  .plainlist { columns: 2; column-gap: 40px; }
  .plainlist.progs { columns: 1; }
}

/* ---- Parties: one name style, one tile per size ------------------------------------------ */
.pmark { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.plogo { display: inline-grid; place-items: center; flex: none; background: #ffffff; border: 1px solid var(--rule); border-radius: 3px; }
.plogo img { display: block; }
.pmark-s .plogo { width: 58px; height: 28px; }
.pmark-m .plogo { width: 82px; height: 40px; }
.pmark-l .plogo { width: 136px; height: 64px; }
.pname { font-weight: 700; white-space: nowrap; }
.pmark-s .pname { font-size: .95rem; }
.pmark-l .pname { font-size: 1.6rem; font-weight: 800; font-stretch: var(--narrow); }

/* The cover coming off a party: the one piece of choreography on the site. At rest the party is
   in view; the cover exists only while the animation plays. */
.unveil { position: relative; display: inline-flex; }
.unveil::after {
  content: ""; position: absolute; inset: -2px -4px; border-radius: 2px; background: var(--ink); pointer-events: none;
  transform: scaleX(0); transform-origin: right center;
  animation: unveil .5s cubic-bezier(.7, 0, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms);
}
@keyframes unveil { from { transform: scaleX(1); } }

/* ---- Landing ---------------------------------------------------------------------------- */
.hero { display: grid; gap: 26px; align-items: center; padding: 30px 0 34px; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1; letter-spacing: -.015em; margin: 0 0 .35em; }
/* The headline is two sentences that answer each other: each starts its own line. */
.hero h1 span { display: block; }
.hero .lead { max-width: 44ch; margin: 0 0 1.3em; }
.hero-note { margin: 14px 0 0; font-size: .95rem; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 60px; }
}
.steps { list-style: none; counter-reset: paso; display: grid; padding: 0; margin: 12px 0 0; }
.steps li { position: relative; counter-increment: paso; padding: 14px 0 16px 46px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: 9px; font-size: 2.1rem; font-weight: 800; font-stretch: var(--narrow); line-height: 1.1; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--ink-2); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
}

/* ---- The blind card --------------------------------------------------------------------- */
.card { display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; }
/* The label: which proposal it is, and the party under a bar. The bar has one width for all. */
.sleeve { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 2px solid var(--ink); font-size: .9rem; font-weight: 700; }
.sleeve-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.bar { display: inline-block; width: 84px; height: 18px; border-radius: 2px; background: var(--ink); }
.card-body { display: block; padding: 16px 16px 8px; }
.card .sub { display: block; margin: 0 0 6px; font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.card .text { display: block; margin: 0 0 6px; font-size: clamp(1.22rem, 4.9vw, 1.5rem); font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.explainer { margin: 4px 0 10px; padding: 10px 14px; border-left: 4px solid var(--ink); background: var(--surface-2); font-size: .95rem; color: var(--ink-2); }
.explainer p { margin: 0 0 8px; }
.explainer p:last-child { margin-bottom: 0; }
/* A technical word that explains itself: dotted underline; its definition opens under the text. */
.term { text-decoration: underline dotted; text-decoration-thickness: .08em; text-underline-offset: .2em; cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.term:hover, .term[aria-expanded="true"] { background: var(--vino-soft); text-decoration-style: solid; }
.term-note { margin: 6px 0 12px; padding: 10px 14px; border-left: 4px solid var(--vino); background: var(--surface-2); font-size: .95rem; font-weight: 400; font-stretch: 100%; line-height: 1.45; letter-spacing: 0; color: var(--ink-2); text-wrap: pretty; }
.term-def { margin: 0; }
.term-def strong { color: var(--ink); }
/* Four boxes on the card itself, as on a form: the rule between them is the card's own ink. */
.reactions { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 4px; border-top: 2px solid var(--ink); background: var(--ink); }
.reactions button { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font-size: .98rem; font-weight: 700; line-height: 1.15; text-align: left; cursor: pointer; }
.reactions button:hover { background: var(--surface-2); }
.reactions button[data-r="like"] .ico { color: var(--vino); }
.reactions button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); --glyph-cut: var(--ink); }
.reactions button[aria-pressed="true"] .ico { color: inherit; }
@media (min-width: 620px) {
  .reactions { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Tasting ---------------------------------------------------------------------------- */
.stage { display: grid; gap: 16px; padding-top: 8px; }
/* One segment per topic. */
.progress { display: flex; gap: 4px; height: 6px; }
.pseg { flex: 1 1 0; overflow: hidden; border-radius: 1px; background: var(--surface-2); }
.pseg i { display: block; height: 100%; background: var(--vino); }
.topic-head h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin: 0 0 .2em; }
.topic-framing { margin: 0; color: var(--ink-2); }
.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.keys { display: none; margin: 0; }
.pause { padding-top: 6vh; }
.pause h1 { margin-bottom: .1em; }
@media (hover: hover) and (min-width: 760px) { .keys { display: block; } }

/* ---- Reveal ----------------------------------------------------------------------------- */
.rgrid-sec h2 { margin-top: 1.2em; }
.rgrid { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; }
.rgrid th, .rgrid td { padding: 7px 4px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--rule); }
.rgrid tbody tr:last-child th, .rgrid tbody tr:last-child td { border-bottom: 0; }
.rgrid thead th { padding: 10px 4px; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.rgrid th[scope="row"] { width: 1%; padding-left: 12px; text-align: left; white-space: nowrap; }
.rgrid .pmark { flex-direction: column; align-items: flex-start; gap: 3px; }
.rgrid .pname { font-size: .8rem; }
/* Topic names run up the column on a phone, as on a score sheet with narrow columns. */
.rg-topic { display: inline-block; max-height: 6.6em; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .82rem; font-weight: 700; line-height: 1.2; text-align: left; }
.rg-cell { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; text-decoration: none; }
a.rg-cell:hover { background: var(--surface-2); }
.glyph { display: inline-flex; color: var(--ink); }
.glyph-like { color: var(--vino); }
.glyph-unsure, .glyph-none { color: var(--ink-3); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 10px 0 0; font-size: .88rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 620px) {
  .rgrid .pmark { flex-direction: row; align-items: center; gap: 8px; }
  .rgrid .pname { font-size: .95rem; }
  .rg-topic { max-height: none; max-width: 12ch; writing-mode: horizontal-tb; transform: none; text-align: center; }
  .rgrid th, .rgrid td { padding: 9px 8px; }
}
.surprise { margin: 26px 0; padding: 18px 20px; border-radius: 6px; background: var(--band); color: #ffffff; }
.surprise h2 { margin: 0 0 6px; font-size: 1.3rem; }
.surprise p { margin: 0 0 6px; }
.sheet { margin: 26px 0; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 6px; }
.sheet h2 { margin: 0 0 12px; font-size: 1.15rem; }
.sheet dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin: 0; }
.sheet dt { font-size: .86rem; font-weight: 700; color: var(--ink-3); }
.sheet dd { margin: 0; line-height: 1.35; }
.topic-result h3 { margin: 1.5em 0 .2em; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 1.45rem; font-weight: 800; font-stretch: var(--narrow); }
.note { margin: 0 0 4px; color: var(--ink-2); }
.rv-list { list-style: none; padding: 0; margin: 0; }
.rv { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rv > .glyph { margin-top: 1px; }
.rv-text { margin: 0 0 10px; font-weight: 600; line-height: 1.35; }
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0; font-size: .92rem; }
.rv-meta a { font-weight: 700; }
.disclaimer { margin-top: 26px; }

/* ---- Evidence --------------------------------------------------------------------------- */
.ficha-head { padding: 14px 0 2px; }
.ficha-party { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.ficha-text { font-size: clamp(1.4rem, 5.4vw, 2rem); font-stretch: 100%; line-height: 1.18; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: pretty; }
.ficha-mine { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .95rem; color: var(--ink-2); }
.jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; margin: 16px calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding: 4px var(--gutter-r) 4px var(--gutter-l); background: var(--bg); border-bottom: 1px solid var(--rule-2); }
.jump::-webkit-scrollbar { display: none; }
.jump button { flex: none; min-height: 40px; padding: 0; border: 0; background: none; font-size: .95rem; font-weight: 700; text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .18em; cursor: pointer; }
.jump button:hover { color: var(--vino); }
.sec { scroll-margin-top: 56px; }
.sec > h2 { margin-top: 1.5em; }
.sec > h2 + .small { margin-top: -.2em; }
/* A party's literal words: a rule down the side, and where to check them underneath. */
.quote { margin: 10px 0 12px; }
.verbatim { margin: 0; padding: 2px 0 2px 16px; border-left: 4px solid var(--ink); font-size: 1.1rem; line-height: 1.55; }
.quote figcaption { margin-top: 8px; padding-left: 20px; }
.cite { font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
/* A translated quote: the note that says so, and the original one tap away. */
.tnote { margin: 8px 0 0; padding-left: 20px; font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.orig { margin: 4px 0 0; padding-left: 20px; font-size: .88rem; }
.orig summary { width: fit-content; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.orig .verbatim { margin: 8px 0 2px; border-left-color: var(--rule-2); font-size: 1rem; color: var(--ink-2); }
p.cite { margin: 10px 0 0; }
.plist { list-style: none; padding: 0; margin: 8px 0; border-top: 1px solid var(--rule); }
.plink { position: relative; display: block; padding: 12px 28px 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 600; line-height: 1.35; text-decoration: none; }
.plink::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -5px; border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2); transform: rotate(45deg); }
.plink:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .18em; }

/* A vote. Above the bar, the totals: for on the left, against on the right, abstentions between.
   The bar is drawn in ink (solid = a favor, grey = abstención, hollow = en contra); the one
   coloured piece is the part cast by the party of the card you are reading. */
.vote { margin-top: 18px; padding: 16px 0 8px; border-top: 2px solid var(--ink); }
.vote h4 { margin: 0 0 10px; }
.vote .eyebrow.reason { margin-top: 16px; }
.vote-me { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: var(--r); background: var(--vino-soft); line-height: 1.3; }
.stamp { display: inline-flex; flex: none; color: var(--vino); }
.ctx { margin: 0 0 14px; font-size: .95rem; color: var(--ink-2); }
.ctx.strong { color: var(--ink); }
.tally { margin: 0; }
.tally-heads { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 6px; line-height: 1.1; }
.th { display: inline-flex; flex-direction: column; gap: 2px; }
.th-l { font-size: .9rem; font-weight: 700; }
.th b { font-size: 2rem; font-weight: 800; font-stretch: var(--narrow); font-variant-numeric: tabular-nums; }
.th-no { align-items: flex-end; text-align: right; }
.th-abstencion { align-items: center; color: var(--ink-2); }
.th-abstencion b { font-size: 1.25rem; }
.tally-bar { display: flex; gap: 3px; height: 30px; }
.seg { display: flex; flex-basis: 0; flex-shrink: 1; min-width: 6px; overflow: hidden; border-radius: 3px; }
.seg-si { background: var(--ink); }
.seg-abstencion { background: var(--mid); }
.seg-no { flex-direction: row-reverse; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.seg .mine { flex-basis: 0; min-width: 5px; background: var(--vino); box-shadow: 2px 0 0 var(--surface); }
.seg-no .mine { box-shadow: -2px 0 0 var(--surface); }
.seg .rest { flex-basis: 0; }
.sw { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 2px; }
.sw-si { background: var(--ink); }
.sw-abstencion { background: var(--mid); }
.sw-no { box-shadow: inset 0 0 0 2px var(--ink); }
.sw-no_vota, .sw-none { box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.tally-groups { display: grid; gap: 8px; margin-top: 14px; }
.tg { display: grid; grid-template-columns: 8.4em 1fr; gap: 4px 10px; align-items: start; }
.tg-head { display: inline-flex; align-items: center; gap: 8px; padding-top: 2px; font-size: .92rem; font-weight: 700; line-height: 1.2; }
.tg-head b { font-variant-numeric: tabular-nums; }
.tg-parts { display: flex; flex-wrap: wrap; gap: 5px; }
.vchip { display: inline-block; max-width: 100%; padding: 1px 8px; border-radius: 3px; background: var(--surface-2); font-size: .88rem; line-height: 1.45; }
.vchip b { font-variant-numeric: tabular-nums; }
.vchip.me { background: var(--vino-soft); box-shadow: inset 0 0 0 1.5px var(--vino); font-weight: 700; }
.vchip.other { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink-2); }

/* «Ya no está en su programa»: the earlier programme, then the current one, on one line of time. */
.prev { margin-top: 28px; }
.gone { margin-top: 16px; padding: 16px 0 4px; border-top: 2px solid var(--ink); }
.gone-text { margin: 6px 0 16px; font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.tn { position: relative; margin-left: 7px; padding: 0 0 18px 22px; border-left: 2px solid var(--ink); }
.tn-now { padding-bottom: 2px; border-left-style: dotted; }
.tn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 8px; font-weight: 700; line-height: 1.3; }
.tn-head::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 2px; background: var(--ink); }
.tn-now .tn-head::before { background: var(--bg); border: 2px solid var(--ink); }
.tn-year { padding: 0 7px; border-radius: 2px; background: var(--ink); color: var(--on-ink); font-size: .86rem; font-weight: 800; }
.tn-now .tn-year { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tn .cite { margin-top: 0; }
.terms { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 6px; }
.terms li { padding: 1px 8px; border-radius: 3px; background: var(--surface-2); font-size: .92rem; color: var(--ink-2); }
.terms s { text-decoration-thickness: 1.5px; }

/* ---- Temas ------------------------------------------------------------------------------ */
.sub-block h2 { margin-top: 1.4em; padding-top: 14px; border-top: 2px solid var(--ink); }
.stances { list-style: none; padding: 0; margin: 8px 0 10px; }
.stance { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.stance-body { display: grid; gap: 8px; }
.stance .plink, .col .plink { padding-top: 0; padding-bottom: 0; border: 0; }
.stance-rest { margin: 8px 0 4px; }
@media (min-width: 760px) {
  .stance { grid-template-columns: 190px 1fr; gap: 16px; align-items: start; }
}

/* ---- Comparar --------------------------------------------------------------------------- */
.pick { min-width: 0; padding: 0; margin: 16px 0; border: 0; }
.pick-label { padding: 0; margin: 0 0 8px; font-weight: 700; }
.pick-label .muted { font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: var(--r); border: 2px solid var(--rule-2); background: var(--surface); color: var(--ink); font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.pchip { padding: 6px 12px 6px 7px; }
.pchip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pchip.on { background: var(--surface); color: var(--ink); }
.pchip:focus-within { outline: 3px solid var(--vino); outline-offset: 2px; }
.cols { display: grid; gap: 0 28px; }
.cmp-head { display: none; }
.cmp-row h2 { margin: 1.4em 0 .2em; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 1.25rem; }
.col { display: grid; gap: 10px; align-content: start; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.col .none { margin: 0; font-size: .92rem; }
@media (min-width: 760px) {
  .cols.n2 { grid-template-columns: 1fr 1fr; }
  .cols.n3 { grid-template-columns: 1fr 1fr 1fr; }
  .cmp-head { position: sticky; top: 0; z-index: 5; display: grid; margin-top: 18px; padding: 10px 0; background: var(--bg); }
  .col-party { display: none; }
  .col { border-bottom: 0; }
}

/* ---- Juego ------------------------------------------------------------------------------ */
.score { margin: 0 0 14px; font-weight: 700; }
.options { display: grid; gap: 8px; margin: 14px 0; }
.options button { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border-radius: var(--r); border: 2px solid var(--rule-2); background: var(--surface); color: var(--ink); font-size: 1rem; font-weight: 700; text-align: left; cursor: pointer; }
.options button:hover:not(:disabled) { border-color: var(--ink); }
.options button:disabled { cursor: default; }
.options button.right { border-color: var(--ink); }
.options button.right::after { content: "Era esta"; margin-left: auto; padding: 1px 8px; border-radius: 3px; background: var(--ink); color: var(--on-ink); font-size: .8rem; }
.options button.wrong { opacity: .55; }
.options button.wrong .pname, .options button.wrong > span { text-decoration: line-through; }
.quiz-who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 700; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 1.12rem; }
@media (min-width: 560px) { .options { grid-template-columns: 1fr 1fr; } }

/* ---- Pages of text ---------------------------------------------------------------------- */
.prose p, .prose li { max-width: 70ch; }
.prose .plainlist li { max-width: none; }
.prose li { margin: .35em 0; }
.prose .plainlist li { margin: 0; }
.acc-title { margin-top: 1.6em; }
.acc { border-top: 1px solid var(--rule); }
.acc:last-of-type { border-bottom: 1px solid var(--rule); }
.acc > summary { padding: 14px 0; }
.acc > summary h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.acc-body { padding: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); white-space: nowrap; }
.field { margin: 14px 0; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
select { width: 100%; max-width: 420px; min-height: 52px; padding: 10px 14px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: inherit; }
.prov-extra { margin: 10px 0 18px; padding: 12px 14px; border-left: 4px solid var(--ink); background: var(--surface-2); }
.prov-extra p { margin: 0 0 8px; }
.prov-extra > :last-child { margin-bottom: 0; }
@media (min-width: 760px) { .acc-body { padding-left: 26px; } }

/* ---- Sharing ---------------------------------------------------------------------------- */
.share { margin-top: 30px; border-top: 1px solid var(--rule); }
.share h2, .share h3 { margin: 1.1em 0 .2em; }
.share p.muted { margin: .2em 0 .6em; font-size: .95rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.share-status { min-height: 1.3em; margin: 4px 0 0; font-size: .88rem; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .unveil::after { display: none; }
}
