/* 2026 results page: map panels, small multiples, bars. Type and colours come from app.css. */
.itogi-kicker { margin-bottom: 14px; font-size: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #ababab; }
.itogi-headline { max-width: 900px; }
.itogi-text p { font-size: 20px; line-height: 1.45; margin-bottom: 1em; }
.itogi-text p:last-child { margin-bottom: 0; }
.itogi .chapter { padding-top: 96px; }
.itogi .summary__item b { font-size: 42px; line-height: 1.1; font-weight: 500; }
.itogi .infographics-note { font-size: 16px; line-height: 1.4; }
.itogi-optional { margin-bottom: 18px; padding: 10px 14px; border: 1px dashed #d94801; color: #a63603; font-size: 15px; line-height: 1.4; }

.itogi-map { position: relative; margin: 0; }
.itogi-map__label { margin-bottom: 8px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.itogi-map__label span { display: block; font-weight: 400; color: #7a7a7a; font-size: 15px; }
.itogi-map__canvas { width: 100%; aspect-ratio: 4 / 3; }
.itogi-map__canvas_national { aspect-ratio: 2 / 1; }
.itogi-map.is-failed .itogi-map__canvas { background: #f7f7f7; }
.itogi-map__canvas svg { display: block; width: 100%; height: 100%; overflow: visible; }
.itogi-map path { stroke: #fff; stroke-width: .5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.itogi-map path.is-active { stroke: #111; stroke-width: 1.6; }
.itogi-map__borders path { fill: none; stroke: #fff; stroke-width: 1.4; pointer-events: none; }
.itogi-map__overlay path { fill: none; stroke: #4b5563; stroke-width: .7; pointer-events: none; }
.itogi-map__outline { fill: none; stroke: #4b5563; stroke-width: .8; pointer-events: none; }
.itogi-map__tip { position: absolute; left: 0; top: 0; z-index: 5; max-width: 260px; padding: 8px 10px; pointer-events: none;
    background: #fff; border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); font-size: 14px; line-height: 1.3; }
.itogi-map__tip b { display: block; font-weight: 500; }

.itogi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
@media (min-width: 992px) {
    .itogi-grid_4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .itogi-grid_3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.itogi-grid_pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 575px) {
    .itogi-grid_pair { grid-template-columns: 1fr; }
    .itogi .chapter { padding-top: 64px; }
    .itogi-text p { font-size: 18px; }
    .itogi .summary { grid-template-columns: repeat(2, 1fr); }
    .itogi .summary__item b { font-size: 32px; }
}

.itogi-legend { max-width: 460px; margin: 4px 0 14px; font-size: 13px; color: #555; }
.itogi-legend__title { margin: 0 0 6px; font-size: 14px; color: #7a7a7a; }
.itogi-legend__strip { position: relative; height: 12px; border-radius: 2px; }
.itogi-legend__ticks { position: relative; height: 20px; }
.itogi-legend__ticks span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
.itogi-legend__ticks span::before { content: ""; position: absolute; left: 50%; top: -6px; height: 5px; border-left: 1px solid #9ca3af; }
.itogi-legend__ticks span:last-child { transform: translateX(-100%); }
.itogi-legend__ticks span:last-child::before { left: 100%; }
.itogi-legend__note { margin: 2px 0 0; font-size: 13px; color: #7a7a7a; }
.itogi-legend__note i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px #d6d6d6; }
.itogi-legend__note b { display: inline-block; width: 16px; height: 0; margin-right: 6px; vertical-align: 3px; border-top: 2px solid #111827; }
.itogi-arrows-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 4px 0 14px; font-size: 14px; color: #555; }
.itogi-arrows-key svg { width: 46px; height: 22px; vertical-align: middle; margin-right: 6px; }

.itogi-map__arrows line { stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.itogi-map__arrows { pointer-events: none; }
.itogi-map__marked path { fill: none; stroke: #111827; stroke-width: 1.8; vector-effect: non-scaling-stroke; pointer-events: none; }

.itogi-chart { margin: 0; }
.itogi-chart__svg { display: block; width: 100%; height: auto; font-size: 13px; fill: #4b5563; }
.itogi-chart__grid line, .itogi-chart__axis { stroke: #e5e7eb; stroke-width: 1; }
.itogi-chart__title { font-weight: 500; fill: #111827; }
.itogi-chart__band { fill: #f3f4f6; }

.itogi-party th, .itogi-party td { font-size: 16px; }
.itogi-party .delta-up { color: #0C63E7; }
.itogi-party .delta-down { color: #d94801; }
.itogi-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; }

.itogi-bars { width: 100%; margin-top: 8px; font-size: 15px; border-collapse: collapse; }
.itogi-bars td { padding: 3px 0; vertical-align: middle; }
.itogi-bars td:first-child { width: 42%; padding-right: 10px; line-height: 1.2; }
.itogi-bars td:last-child { width: 58%; }
.itogi-bar { display: flex; align-items: center; gap: 8px; }
.itogi-bar i { display: block; height: 14px; min-width: 2px; background: #3182bd; }
.itogi-bar span { white-space: nowrap; font-variant-numeric: tabular-nums; }

.itogi-table td, .itogi-table th { font-size: 16px; }
.itogi-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.itogi-unnumbered .chapter__wrapper::before { content: none; counter-increment: none; }
.itogi-seatbar { display: flex; height: 26px; margin: 4px 0 2px; border-radius: 2px; overflow: hidden; }
.itogi-seatbar i { display: block; height: 100%; border-right: 2px solid #fff; }
.itogi-seatbar i:last-child { border-right: 0; }
.itogi-seatrow { margin-bottom: 18px; font-size: 15px; }
.itogi-seatrow b { font-weight: 500; }

/* Home-page entries to the results page (stage, lab/home/?entry=1..4) */
.itogi-entry__heading { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; }
.itogi-entry__heading:hover { color: #3c82f6; text-decoration: none; }
.itogi-entry__more { font-weight: 500; }
.itogi-entry__card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 32px; margin: 32px 0 0; padding: 24px 28px; background: #f3f6fb; border-radius: 4px; color: #111827; text-decoration: none; }
.itogi-entry__card:hover { color: #111827; text-decoration: none; background: #eaf0f9; }
.itogi-entry__card .itogi-kicker { grid-column: 1 / -1; margin: 0; }
.itogi-entry__card b { font-size: 28px; line-height: 1.25; font-weight: 500; }
.itogi-entry__button { white-space: nowrap; }
.itogi-entry__mapwrap { position: relative; }
.itogi-entry__corner { position: absolute; left: max(16px, calc((100vw - 1140px) / 2 + 15px)); top: 140px; z-index: 5; display: block; max-width: 300px; padding: 16px 18px; background: #fff; border-radius: 4px; box-shadow: 0 4px 18px rgba(0, 0, 0, .14); color: #111827; text-decoration: none; }
.itogi-entry__corner:hover { color: #111827; text-decoration: none; box-shadow: 0 6px 22px rgba(0, 0, 0, .2); }
.itogi-entry__corner .itogi-kicker { margin-bottom: 6px; }
.itogi-entry__corner b { display: block; font-size: 20px; line-height: 1.25; font-weight: 500; margin-bottom: 8px; }
.itogi-entry__corner span:last-child { color: #3c82f6; font-weight: 500; }
@media (max-width: 767px) {
    .itogi-entry__card { grid-template-columns: 1fr; padding: 18px; }
    .itogi-entry__card b { font-size: 20px; }
    .itogi-entry__corner { position: static; max-width: none; margin: 24px 16px 0; box-shadow: none; background: #f3f6fb; }
}

/* Home-page teaser designs (stage, lab/home/?teaser=1..4) */
.teaser-kicker { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #9ca3af; }
.teaser-link { display: inline-block; margin-top: 10px; font-size: 18px; font-weight: 500; color: #3c82f6; }
.teaser-figures { margin-top: 22px; }
.teaser-figures__row { display: flex; gap: 32px; }
.teaser-figures__row b { display: block; font-size: 48px; line-height: 1; font-weight: 500; color: #3c82f6; }
.teaser-figures__row span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.3; color: #4b5563; }
.teaser-accent { display: block; margin-top: 22px; padding: 14px 18px; border-left: 4px solid #3c82f6; background: #f1f6fe; color: #111827; text-decoration: none; }
.teaser-accent:hover { color: #111827; text-decoration: none; background: #e6effd; }
.teaser-accent__text { display: block; font-size: 21px; line-height: 1.3; font-weight: 500; }
.teaser-bar { margin-top: 22px; }
.teaser-bar__text { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.teaser-bar__text b { font-weight: 500; color: #3c82f6; }
.teaser-bar__seats { display: flex; height: 16px; border-radius: 2px; overflow: hidden; }
.teaser-bar__seats i { display: block; height: 100%; border-right: 1px solid #fff; }
.teaser-bar__legend { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 0; font-size: 13px; color: #4b5563; }
.teaser-bar__legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; }
.teaser-card { display: block; margin-top: 22px; padding: 12px 14px 14px; border-radius: 4px; background: #f3f6fb; color: #111827; text-decoration: none; }
.teaser-card:hover { color: #111827; text-decoration: none; background: #eaf0f9; }
.teaser-card__map { margin: 0 0 8px; pointer-events: none; }
.teaser-card__text { display: block; font-size: 17px; line-height: 1.3; font-weight: 500; }
@media (max-width: 767px) {
    .teaser-figures__row b { font-size: 40px; }
    .teaser-accent__text { font-size: 19px; }
}

.itogi-swatches { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 14px; font-size: 14px; line-height: 1.4; }
.itogi-swatches i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
