/*
  atlantiz.ee's party pages (/erakonnad/), on top of site.css (the tokens) and
  news.css (the masthead, the day heading, the signup box). Copied to
  site/assets/erakonnad.css by npm run parties:build.
  One reading column, as an article: readers 40–70 on phones, so the text is
  the page's 20 px, the smallest notes 16 px, every size in rem (the phone's
  own text size setting scales them), nothing behind a hover. A party's colour
  is only its mark; the charts use the site's own for, against and navy.
*/

.party { max-width: 46rem; margin: 0 auto; }
.party b { font-weight: 650; }
.party h1 { margin: 0; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3rem); line-height: 1; letter-spacing: -0.04em; font-weight: 650; }
.party h2 { margin: 0 0 0.9rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--night); font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.party h3 { margin: 1.5rem 0 0.5rem; font-size: 1.2rem; }
.party-section { margin: 2.25rem 0 0; }
.party-lead { margin: 0 0 1.25rem; }
.party .fine { margin: 0.6rem 0 0; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.party-aside { margin: 1rem 0 0; padding: 0.75rem 1rem; background: #e9e2d5; border-radius: 12px; font-size: 1.1rem; }

.party-back { margin: 0 0 0.5rem; font-size: 1.05rem; }
.party-back a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; text-decoration: none; }
.party-head { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1rem; }
.party-head__mark { flex: none; width: 0.9rem; height: 3.6rem; border-radius: 4px; border: 1px solid var(--hair); }
.party-head p { margin: 0.3rem 0 0; font-size: 1.05rem; color: var(--ink-2); }
.party-status { margin: 0.8rem 0 0; padding: 0.75rem 1rem; background: #e9e2d5; border-radius: 12px; }

/* ---------- Two numbers side by side ---------- */

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 1rem 0 0; }
.stat { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 0.85rem 1rem; }
.stat__number { margin: 0; font-size: 2.3rem; line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat__label { margin: 0.25rem 0 0; font-size: 1rem; line-height: 1.3; color: var(--ink-2); }

/* ---------- A bar cut in parts, with its parts named below ---------- */

.stack { display: flex; gap: 2px; height: 1.4rem; margin: 0.9rem 0 0; border-radius: 8px; overflow: hidden; }
.stack--tall { height: 1.75rem; }
.stack__part { display: block; min-width: 3px; }
.stack__part--yes { background: var(--for); }
.stack__part--no { background: var(--against); }
.stack__part--mid { background: var(--abstain); }
.stack__part--rest { background: #cfc6b6; }
.stack__part--in { background: var(--navy); }
.stack__part--out { background: #cfc6b6; }
.scale { display: flex; justify-content: space-between; margin: 0.3rem 0 0; font-size: 0.95rem; color: var(--ink-2); }
.key { list-style: none; margin: 0.7rem 0 0; padding: 0; font-size: 1.05rem; }
.key li { display: flex; align-items: center; gap: 0.6rem; padding: 0.15rem 0; }
.key__mark { flex: none; width: 0.9rem; height: 0.9rem; border-radius: 4px; }
.key__name { flex: 1; }
.key b { font-variant-numeric: tabular-nums; }
.key + p, .stack + p { margin-top: 1rem; }
.key--plain { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; font-size: 1rem; color: var(--ink-2); }
.key--plain .key__name { flex: none; }

/* ---------- Rows of a name, a value and a bar ---------- */

.bars { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 0.75rem; align-items: baseline; padding: 0.4rem 0; }
.bars__name { min-width: 0; font-size: 1.12rem; }
.bars__label { white-space: nowrap; }
.bars__name a { color: var(--ink); font-weight: 600; text-decoration-color: rgba(14, 27, 46, 0.35); }
.bars__mark { display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.5rem; border-radius: 3px; border: 1px solid var(--hair); vertical-align: -0.05em; }
.bars__note { font-size: 0.95rem; color: var(--ink-2); }
.bars__value { font-size: 1.12rem; font-variant-numeric: tabular-nums; text-align: right; }
.bars__track { grid-column: 1 / -1; display: block; height: 0.75rem; background: #e9e2d5; border-radius: 999px; overflow: hidden; }
.bars__track span { display: block; height: 100%; min-width: 3px; background: var(--navy-2); border-radius: 999px; }

/* ---------- The governments since 2019 ---------- */

.periods { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.periods li { display: grid; gap: 0.1rem; padding: 0.7rem 0 0.7rem 0.9rem; border-left: 5px solid #cfc6b6; margin: 0 0 0.6rem; }
.periods li.is-in { border-left-color: var(--navy); }
.periods__dates, .periods__parties { font-size: 1rem; color: var(--ink-2); }
.periods__status { font-size: 1.05rem; font-weight: 600; }

/* ---------- The switch: radio buttons that show one panel ---------- */

.switch-set { position: relative; margin: 2.25rem 0 0; }
.switch-set__input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-set__legend { margin: 2.25rem 0 0.6rem; font-size: 1.05rem; color: var(--ink-2); }
.switch-set > .switch-set__legend { margin-top: 0; }
.switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.switch label { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 3.5rem; padding: 0.4rem 0.6rem; text-align: center; font-size: 1.05rem; line-height: 1.2; font-weight: 600; color: var(--ink); background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; cursor: pointer; }
.switch label span { font-weight: 400; font-size: 0.95rem; }
.switch-panel { display: none; }
.switch-set__input:nth-of-type(1):checked ~ .switch label:nth-of-type(1),
.switch-set__input:nth-of-type(2):checked ~ .switch label:nth-of-type(2),
.switch-set__input:nth-of-type(3):checked ~ .switch label:nth-of-type(3),
.switch-set__input:nth-of-type(4):checked ~ .switch label:nth-of-type(4) { color: #ffffff; background: var(--navy); }
.switch-set__input:nth-of-type(1):focus-visible ~ .switch label:nth-of-type(1),
.switch-set__input:nth-of-type(2):focus-visible ~ .switch label:nth-of-type(2),
.switch-set__input:nth-of-type(3):focus-visible ~ .switch label:nth-of-type(3),
.switch-set__input:nth-of-type(4):focus-visible ~ .switch label:nth-of-type(4) { outline: 3px solid var(--navy-2); outline-offset: 3px; }
.switch-set__input:nth-of-type(1):checked ~ .switch-panel:nth-of-type(1),
.switch-set__input:nth-of-type(2):checked ~ .switch-panel:nth-of-type(2),
.switch-set__input:nth-of-type(3):checked ~ .switch-panel:nth-of-type(3),
.switch-set__input:nth-of-type(4):checked ~ .switch-panel:nth-of-type(4) { display: block; }
.switch-panel > .party-section:first-child { margin-top: 1.75rem; }
@media (min-width: 40em) { .switch--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Cards and lists ---------- */

.panel { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 1rem; margin: 1.1rem 0 0; }
.party .panel h3 { margin: 0 0 0.4rem; }
.panel p { margin: 0; }
.passed { list-style: none; margin: 0; padding: 0; }
.passed li { display: grid; gap: 0.1rem; padding: 0.65rem 0; border-top: 1px solid var(--hair); }
.passed a { color: var(--ink); font-size: 1.1rem; line-height: 1.35; text-decoration-color: rgba(14, 27, 46, 0.35); }
.passed span { font-size: 0.95rem; color: var(--ink-2); }
.more-list { margin: 0.4rem 0 0; }
.more-list summary { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--navy-2); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0.5rem 0 0; padding: 0; }
.chips li { padding: 0.4rem 0.8rem; background: var(--card); border: 1px solid rgba(14, 27, 46, 0.2); border-radius: 999px; font-size: 1rem; }
.chips b { margin-left: 0.25rem; font-variant-numeric: tabular-nums; }

.votes { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.votes li { display: grid; gap: 0.2rem; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 0.85rem 1rem; margin: 0 0 0.6rem; }
.votes__day { font-size: 0.95rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.votes__title { color: var(--ink); font-size: 1.2rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; text-decoration-color: rgba(14, 27, 46, 0.35); }
.votes__result { font-size: 1rem; color: var(--ink-2); }
.votes__own { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.2rem; font-size: 1.08rem; }
.votes__dot { flex: none; width: 0.75rem; height: 0.75rem; border-radius: 999px; }
.votes__dot--yes { background: var(--for); }
.votes__dot--no { background: var(--against); }
.votes__dot--rest { background: #b3a994; }

.trend { width: 100%; height: auto; margin: 0.4rem 0 0; }
.trend__line { fill: none; stroke: var(--navy-2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.trend__threshold { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 4; }
.trend__floor, .trend__tick { stroke: var(--ink); stroke-width: 1; }
.trend__year { font-family: var(--sans); font-size: 14px; fill: var(--ink-2); }
.trend__now { fill: var(--night); }

.party-news { list-style: none; margin: 0; padding: 0; }
.party-news li { display: grid; gap: 0.1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--hair); }
.party-news a { color: var(--ink); font-size: 1.2rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; }
.party-news a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.party-news span { font-size: 0.95rem; color: var(--ink-2); }

.party-cards { list-style: none; margin: 0; padding: 0; }
.party-cards a { display: flex; align-items: center; gap: 0.8rem; min-height: 4rem; padding: 0.75rem 1rem; margin: 0 0 0.6rem; color: var(--ink); background: var(--card); border: 1px solid var(--hair); border-radius: 12px; text-decoration: none; }
.party-cards a:hover { border-color: var(--navy-2); }
.party-cards__mark { flex: none; width: 0.7rem; height: 2.6rem; border-radius: 4px; border: 1px solid var(--hair); }
.party-cards__text { flex: 1; min-width: 0; display: grid; }
.party-cards__text b { font-size: 1.2rem; line-height: 1.2; }
.party-cards__text span { font-size: 1rem; color: var(--ink-2); }
.pill { flex: none; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.pill--in { color: #ffffff; background: var(--navy); }
.pill--out { color: var(--ink); background: #e0d8c9; }

.method { margin: 2.5rem 0 0; font-size: 1rem; color: var(--ink-2); }
.method summary { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--navy-2); cursor: pointer; }
.method ul { margin: 0.3rem 0 0.6rem; padding-left: 1.2rem; }
.method li { margin: 0.35rem 0; }
.method p { margin: 0; }

/*
  The rules of the party pages' layout that is live since 2026-11-14
  (scripts/parties/lib/site-next.js) and of the vote pages, on top of
  erakonnad.css: the build joins the two files into /assets/erakonnad.css.
  The same rules as erakonnad.css: one reading column, sizes in rem, the
  smallest text 0.9 rem, everything that opens at least 2.75 rem tall.
*/

/* A long name (Sotsiaaldemokraatlik Erakond) stays inside a phone's column */
.party--next .party-head > div { min-width: 0; }
.party--next .party-head h1 { overflow-wrap: anywhere; }
.party--next .party-head--long h1 { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem); line-height: 1.05; }

/* ---------- The two numbers at the top, each with its small mark ---------- */

.party--next .stat { display: flex; flex-direction: column; }
.party--next .stat__label { margin-top: auto; padding-top: 0.25rem; }
.spark { display: block; width: 100%; max-width: 11rem; height: auto; margin: 0.4rem 0 0; }
.spark__base { stroke: #cfc6b6; stroke-width: 1; }
.spark__line { fill: none; stroke: var(--navy-2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.spark__now { fill: var(--night); }
.spark-scale { display: flex; justify-content: space-between; max-width: 11rem; margin: 0; font-size: 0.9rem; line-height: 1.2; color: var(--ink-2); }
.seat-bar { height: 0.75rem; margin: 1.05rem 0 0.6rem; background: #e9e2d5; border-radius: 999px; overflow: hidden; }
.seat-bar span { display: block; height: 100%; min-width: 4px; background: var(--navy-2); border-radius: 999px; }

/* ---------- Rows that open: the chosen votes, the topics ---------- */

.rows { list-style: none; margin: 0.9rem 0 0; padding: 0; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--hair); }
.row summary { display: flex; align-items: center; gap: 0.65rem; min-height: 3.4rem; padding: 0.6rem 1rem; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.row summary::-webkit-details-marker { display: none; }
.row summary::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin: -0.25rem 0.15rem 0 0.1rem; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
.row[open] summary::after { margin-top: 0.25rem; transform: rotate(-135deg); }
.row summary:focus-visible { outline: 3px solid var(--navy-2); outline-offset: -3px; }
.row[open] summary { background: #f7f4ee; }
.row__dot { flex: none; width: 0.85rem; height: 0.85rem; border-radius: 999px; }
.row__dot--yes { background: var(--for); }
.row__dot--no { background: var(--against); }
.row__dot--mid { background: var(--abstain); }
.row__dot--rest { background: #b3a994; }
.row__title { flex: 1; min-width: 0; font-size: 1.15rem; line-height: 1.25; font-weight: 600; }
.row__value { flex: none; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
b.row__value { font-weight: 650; }
.row__value--yes { color: var(--for); }
.row__value--no { color: var(--against-text); }
.row__value--mid { color: var(--abstain); }
.row__more { padding: 0.5rem 1rem 0.9rem; font-size: 1.05rem; line-height: 1.4; background: #f7f4ee; }
.row__more p { margin: 0 0 0.25rem; }
.row__more a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--navy-2); }
.row__list { list-style: none; margin: 0; padding: 0 1rem 0.5rem; background: #f7f4ee; }
.row__list li { display: grid; gap: 0.1rem; padding: 0.6rem 0; border-top: 1px solid var(--hair); }
.row__list li:first-child { border-top: 0; }
.row__list a { color: var(--ink); font-size: 1.08rem; line-height: 1.35; text-decoration-color: rgba(14, 27, 46, 0.35); }
.row__list span { font-size: 0.95rem; color: var(--ink-2); }
.more-list > .rows { margin-top: 0.3rem; }
/* erakonnad.css colours every summary inside a "Näita veel"; a row that opens inside one keeps its own look */
.party--next .more-list .row > summary { display: flex; min-height: 3.4rem; font-weight: 400; color: var(--ink); }

/* ---------- Things that open ---------- */

.party--next .more-list--block { margin: 0.9rem 0 0; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 0 1rem; }
.party--next .more-list--block > summary { display: flex; justify-content: space-between; gap: 0.75rem; width: 100%; min-height: 3.25rem; list-style: none; font-size: 1.08rem; }
.party--next .more-list--block > summary::-webkit-details-marker { display: none; }
.party--next .more-list--block > summary::after { content: ""; flex: none; align-self: center; width: 0.55rem; height: 0.55rem; margin: -0.25rem 0.15rem 0 0; border-right: 2px solid var(--navy-2); border-bottom: 2px solid var(--navy-2); transform: rotate(45deg); }
.party--next .more-list--block[open] > summary::after { margin-top: 0.25rem; transform: rotate(-135deg); }
.party--next .more-list--block[open] { padding-bottom: 0.9rem; }
.party--next .more-list--block .passed li:first-child { border-top: 0; }
.party--next .more-list--block .bars, .party--next .more-list--block .periods { margin-top: 0.2rem; }
.party--next .more-list--block .fine:first-of-type { margin-top: 0; }
.party--next .panel + p { margin-top: 1rem; }
.plain { margin: 0; padding-left: 1.2rem; font-size: 1.05rem; line-height: 1.45; }
.plain li { margin: 0.3rem 0; }
.fine--block { margin-top: 2.25rem !important; }

.fold-block { margin: 2.25rem 0 0; border: 2px solid var(--navy); border-radius: 12px; }
.fold-block > summary { display: flex; align-items: center; gap: 0.75rem; min-height: 3.75rem; padding: 0.6rem 1rem; font-size: 1.2rem; font-weight: 650; cursor: pointer; list-style: none; }
.fold-block > summary::-webkit-details-marker { display: none; }
.fold-block > summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin: -0.3rem 0.15rem 0 auto; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); }
.fold-block[open] > summary::after { margin-top: 0.3rem; transform: rotate(-135deg); }
.fold-block__text { display: grid; gap: 0.05rem; line-height: 1.25; }
.fold-block__sub { font-size: 1rem; font-weight: 400; color: var(--ink-2); }
.fold-block__body { padding: 0 1rem 1.1rem; }
.fold-block__body > p:first-child { margin-top: 0; }

/* ---------- The poll under the votes ---------- */

.party--next .talk--poll { margin-top: 1.75rem; }
.party--next .talk--poll .poll { margin-bottom: 0; }
.poll__jump { margin: 0.2rem 0 0; font-size: 1.05rem; }
.poll__jump a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--navy-2); font-weight: 600; }

/* ---------- The overview: the six parties, then their votes side by side ---------- */

.party-rows { list-style: none; margin: 0; padding: 0; }
.party-rows a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.1rem 0.8rem; align-items: center; padding: 0.8rem 1rem 0.9rem; margin: 0 0 0.6rem; color: var(--ink); background: var(--card); border: 1px solid var(--hair); border-radius: 12px; text-decoration: none; }
.party-rows a:hover { border-color: var(--navy-2); }
.party-rows__mark { grid-row: 1 / span 3; align-self: stretch; width: 0.7rem; min-height: 2.8rem; border-radius: 4px; border: 1px solid var(--hair); }
.party-rows__name { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
.party-rows__value { font-size: 1.3rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.party-rows__note { grid-column: 2 / -1; font-size: 1rem; line-height: 1.35; color: var(--ink-2); }
.party-rows__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.party-rows__track { grid-column: 1 / -1; display: block; height: 0.6rem; margin-top: 0.55rem; background: #e9e2d5; border-radius: 999px; overflow: hidden; }
.party-rows__track span { display: block; height: 100%; min-width: 4px; background: var(--navy-2); border-radius: 999px; }

.matrix { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.more-list > .matrix { margin-top: 0; }
.matrix > li { padding: 0.9rem 0 1rem; border-top: 1px solid var(--hair); }
.matrix__title { margin: 0; font-size: 1.2rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
.matrix__result { margin: 0.15rem 0 0.55rem; font-size: 1rem; line-height: 1.35; color: var(--ink-2); }
.sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.sides li { display: flex; align-items: center; justify-content: center; gap: 0.3rem; min-height: 2.4rem; padding: 0.2rem 0.3rem; border-radius: 8px; font-size: 1rem; font-weight: 600; white-space: nowrap; }
.sides__yes { color: #ffffff; background: var(--for); }
.sides__no { color: #ffffff; background: var(--against-text); }
.sides__rest { color: var(--ink); background: #e0d8c9; }
@media (min-width: 40em) { .sides { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* The narrowest phones (320 px): "Eesti 200" doesn't fit a third of the column */
@media (max-width: 21.9em) { .sides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- A row that leads to a page: a chosen vote ---------- */

.row--link, .row--plain { display: flex; align-items: center; gap: 0.65rem; min-height: 3.6rem; padding: 0.65rem 1rem; color: var(--ink); text-decoration: none; }
.row--link::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin: 0 0.15rem 0 0.1rem; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(-45deg); }
.row--link:hover { background: #f7f4ee; }
.row--link:focus-visible { outline: 3px solid var(--navy-2); outline-offset: -3px; }
.row__text { flex: 1; min-width: 0; display: grid; gap: 0.1rem; }
.row__meta { font-size: 0.95rem; line-height: 1.3; color: var(--ink-2); }
.matrix__title a { color: var(--ink); text-decoration-color: rgba(14, 27, 46, 0.35); text-underline-offset: 0.15em; }
.matrix__more { margin: 0.45rem 0 0; font-size: 1.05rem; }
.matrix__more a { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.75rem; color: var(--navy-2); font-weight: 600; }

/* ---------- A chosen vote's page ---------- */

.vote-head { margin: 0.4rem 0 0; }
.vote-head__kicker { margin: 0; font-size: 1rem; color: var(--ink-2); }
.vote-head h1 { margin: 0.2rem 0 0; font-size: clamp(2rem, 1.4rem + 3vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.vote-head__official { margin: 0.4rem 0 0; font-size: 1.05rem; line-height: 1.35; color: var(--ink-2); }
.vote-result { margin: 1.1rem 0 0; padding: 1rem 1rem 1.1rem; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; }
.vote-result__word { margin: 0; font-size: 1.35rem; line-height: 1.2; font-weight: 700; }
.vote-result__word--yes { color: var(--for); }
.vote-result__word--no { color: var(--against-text); }
.vote-result__count { margin: 0.15rem 0 0.7rem; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.vote-result .sides { margin-top: 0.8rem; }
/* Inside the result's box a third of a phone's column is too narrow for "Eesti 200" */
@media (max-width: 39.9em) { .vote-result .sides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vote-result__note { margin: 0.8rem 0 0; font-size: 1rem; line-height: 1.4; color: var(--ink-2); }
.sides a { display: flex; align-items: center; justify-content: center; gap: 0.3rem; width: 100%; min-height: 2.4rem; color: inherit; text-decoration: none; }
.vote .sides li { padding: 0; }
.vote .party-section > p:not(.fine):not(.vote-source) { font-size: 1.12rem; line-height: 1.5; }
.vote-source { margin: 0.5rem 0 0; font-size: 0.98rem; line-height: 1.4; color: var(--ink-2); }
.vote-source a { color: var(--navy-2); }

.stance { margin: 0.9rem 0 0; padding: 0.95rem 1rem 0.6rem; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; scroll-margin-top: 1rem; }
.stance h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin: 0; font-size: 1.25rem; line-height: 1.2; }
.stance h3 a { color: var(--ink); text-decoration-color: rgba(14, 27, 46, 0.35); text-underline-offset: 0.15em; }
.stance h3 .pill { margin-left: auto; }
.stance__mark { flex: none; width: 0.7rem; height: 1.5rem; border-radius: 4px; border: 1px solid var(--hair); }
.stance__count { margin: 0.35rem 0 0; font-size: 1rem; color: var(--ink-2); }
.stance__text { margin: 0.6rem 0 0; font-size: 1.1rem; line-height: 1.5; }
.stance .more-list { margin-top: 0.3rem; }
.vote-names { margin: 0 0 0.5rem; font-size: 1rem; line-height: 1.45; }
.vote-names dt { margin-top: 0.5rem; font-weight: 650; }
.vote-names dd { margin: 0.1rem 0 0; color: var(--ink-2); }

.vote-links { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.vote-links li { display: grid; gap: 0.1rem; padding: 0.55rem 0; border-top: 1px solid var(--hair); }
.vote-links li:first-child { border-top: 0; }
.vote-links a { color: var(--navy-2); font-size: 1.08rem; line-height: 1.35; }
.vote-links span { font-size: 0.98rem; line-height: 1.4; color: var(--ink-2); }
