:root {
    --navy: #061b49;
    --navy-soft: #0b2e6a;
    --blue: #0f66d8;
    --blue-light: #eaf3ff;
    --yellow: #ffcf15;
    --magenta: #ed1970;
    --cyan: #21cee3;
    --green-brand: #65c83d;
    --orange: #ff7b22;
    --purple: #8d43d7;
    --ink: #102044;
    --muted: #68718a;
    --line: #dfe5ef;
    --surface: #ffffff;
    --background: #f4f7fb;
    --success: #0f9167;
    --radius: 18px;
    --shadow: 0 14px 34px rgba(20, 44, 93, .09);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; font-size: 18px; }
body { overflow-x: hidden; margin: 0; color: var(--ink); background: var(--background); font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -90px; z-index: 100; padding: 12px 18px; color: var(--navy); background: var(--yellow); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 10; overflow: visible; color: #fff; background: linear-gradient(120deg, #04163c 0%, #073681 70%, #0757b4 100%); }
.site-header::before { content: ""; position: absolute; z-index: 4; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--cyan) 0 17%, var(--green-brand) 17% 34%, var(--yellow) 34% 52%, var(--orange) 52% 69%, var(--magenta) 69% 86%, var(--purple) 86%); }
.site-header::after { content: ""; position: absolute; width: 560px; height: 560px; right: -210px; top: -320px; border: 84px solid rgba(255,255,255,.035); border-radius: 50%; }
.header-glow { display: none; }
.nav-wrap { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; min-height: 72px; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 17px; color: inherit; text-decoration: none; }
.brand img, .footer-brand img { display: block; width: 176px; height: auto; }
.brand-context { padding-left: 16px; color: rgba(255,255,255,.72); border-left: 1px solid rgba(255,255,255,.24); font-size: .53rem; line-height: 1.55; font-weight: 800; letter-spacing: .13em; }
.header-beta { display: flex; width: max-content; align-items: center; margin-top: 4px; padding: 2px 5px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .38rem; line-height: 1.2; font-weight: 800; letter-spacing: .11em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.connection { display: inline-flex; align-items: center; gap: 9px; font-size: .76rem; font-weight: 700; }
.connection i, .live-indicator i { flex: 0 0 8px; width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,207,21,.14); }
.connection.online i { background: #41d38f; box-shadow: 0 0 0 5px rgba(65,211,143,.14); }
.connection.stale i, .connection.error i { background: #ff8d9d; box-shadow: 0 0 0 5px rgba(255,141,157,.14); }
.refresh-button { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 10px 14px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 9px; font-size: .76rem; font-weight: 800; transition: background .2s ease, border-color .2s ease; }
.refresh-button:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
.refresh-button:focus-visible, .segmented-control button:focus-visible, .official-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.refresh-button:disabled { cursor: wait; opacity: .7; }
.refresh-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.refresh-button.loading svg { animation: spin .8s linear infinite; }

.hero { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 32px 42px; }
.hero-copy { min-width: 0; max-width: 650px; }
.eyebrow, .section-kicker, .data-card-kicker { color: var(--blue); font-size: .65rem; line-height: 1.2; font-weight: 800; letter-spacing: .14em; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { max-width: 680px; margin: 10px 0 12px; font-size: clamp(2.2rem, 3.9vw, 3.35rem); line-height: .99; letter-spacing: -.052em; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-copy > p { max-width: 620px; margin: 0; color: rgba(255,255,255,.76); font-size: .84rem; line-height: 1.55; }
.hero-actions { display: flex; margin-top: 16px; }
.live-radio-button { display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px; gap: 11px; align-items: center; min-width: 300px; min-height: 56px; padding: 7px 12px 7px 8px; color: #fff; background: rgba(4,17,51,.55); border: 1px solid rgba(255,255,255,.22); border-radius: 13px; box-shadow: 0 12px 26px rgba(2,12,36,.18); backdrop-filter: blur(8px); cursor: pointer; text-align: left; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.live-radio-button:hover { background: rgba(10,36,86,.72); border-color: rgba(255,255,255,.38); }
.live-radio-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.radio-control-icon { display: grid; width: 40px; height: 40px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--magenta), var(--orange)); border-radius: 50%; box-shadow: 0 7px 18px rgba(235,33,103,.3); }
.radio-control-icon svg { grid-area: 1 / 1; width: 24px; height: 24px; fill: currentColor; }
.radio-icon-pause { display: none; }
.live-radio-button.is-playing .radio-icon-play { display: none; }
.live-radio-button.is-playing .radio-icon-pause { display: block; }
.radio-button-copy { min-width: 0; }
.radio-button-copy small { display: block; margin-bottom: 3px; color: var(--yellow); font-size: .53rem; line-height: 1.2; font-weight: 800; letter-spacing: .11em; }
.radio-button-copy strong { display: block; overflow: hidden; font-size: .78rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.radio-equalizer { display: flex; height: 24px; align-items: end; justify-content: center; gap: 3px; opacity: .45; }
.radio-equalizer i { width: 3px; height: 100%; background: var(--yellow); border-radius: 999px; transform: scaleY(.28); transform-origin: bottom; }
.radio-equalizer i:nth-child(2) { height: 68%; }
.radio-equalizer i:nth-child(3) { height: 88%; }
.radio-equalizer i:nth-child(4) { height: 55%; }
.live-radio-button.is-playing .radio-equalizer { opacity: 1; }
.live-radio-button.is-playing .radio-equalizer i { animation: radio-bars .85s ease-in-out infinite; }
.live-radio-button.is-playing .radio-equalizer i:nth-child(2) { animation-delay: .12s; }
.live-radio-button.is-playing .radio-equalizer i:nth-child(3) { animation-delay: .24s; }
.live-radio-button.is-playing .radio-equalizer i:nth-child(4) { animation-delay: .36s; }
.live-radio-button.is-loading .radio-control-icon { animation: radio-pulse 1.2s ease-in-out infinite; }
.live-radio-button.is-error { border-color: rgba(255,141,157,.65); }
#radioStream { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.hero-sidebar { display: grid; flex: 0 0 420px; min-width: 0; gap: 10px; }
.official-box { display: flex; width: 100%; gap: 12px; padding: 14px 15px; background: rgba(4,17,51,.55); border: 1px solid rgba(255,255,255,.16); border-left: 3px solid var(--magenta); border-radius: 13px; backdrop-filter: blur(8px); }
.official-icon { display: grid; flex: 0 0 30px; height: 30px; place-items: center; color: #fff; background: var(--magenta); border-radius: 50%; font-weight: 800; }
.official-box strong { font-size: .86rem; }
.official-box p { margin: 5px 0 0; color: rgba(255,255,255,.72); font-size: .68rem; line-height: 1.5; }

.main-content { padding-block: 30px 68px; }
.election-controls { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; margin: 0; }
.control-item, .turn-control { min-width: 0; min-height: 76px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.control-item { position: relative; display: flex; align-items: center; gap: 13px; padding: 15px 18px; }
.control-item.is-open { z-index: 20; border-color: #a9c8ef; box-shadow: 0 14px 34px rgba(12,42,91,.14); }
.control-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; color: var(--blue); background: var(--blue-light); border-radius: 11px; }
.control-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.control-field { min-width: 0; flex: 1; }
.control-item small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .56rem; font-weight: 800; letter-spacing: .1em; }
.control-item strong { display: block; font-size: .9rem; }
.custom-select { position: relative; min-width: 0; }
.custom-select-native { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.custom-select-trigger { display: flex; width: 100%; min-height: 31px; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0; color: var(--ink); background: transparent; border: 0; border-radius: 6px; font: inherit; font-size: .82rem; font-weight: 800; text-align: left; cursor: pointer; }
.custom-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-chevron { flex: 0 0 19px; width: 19px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.custom-select-trigger:hover .custom-select-value { color: var(--blue); }
.custom-select-trigger:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.custom-select-trigger:disabled { color: var(--ink); cursor: default; opacity: 1; }
.custom-select-trigger:disabled .custom-select-chevron { opacity: .38; }
.custom-select.is-open .custom-select-chevron { transform: rotate(180deg); }
.custom-select-menu { position: absolute; top: calc(100% + 12px); right: -5px; z-index: 40; width: max(100%, 290px); max-height: min(390px, 55vh); overflow-y: auto; padding: 7px; background: #fff; border: 1px solid #d2deed; border-radius: 13px; box-shadow: 0 18px 45px rgba(9,34,76,.2), 0 3px 9px rgba(9,34,76,.08); }
.custom-select-menu[hidden] { display: none; }
.custom-select-search { position: sticky; top: 0; z-index: 2; display: flex; min-height: 44px; align-items: center; gap: 8px; margin-bottom: 6px; padding: 0 10px; background: #f7faff; border: 1px solid #cbd8e8; border-radius: 9px; transition: border-color .18s ease, box-shadow .18s ease; }
.custom-select-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255,207,21,.65); }
.custom-select-search-icon { display: grid; flex: 0 0 18px; width: 18px; color: var(--blue); place-items: center; }
.custom-select-search-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.custom-select-search-input { width: 100%; min-width: 0; min-height: 42px; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font: inherit; font-size: .72rem; font-weight: 700; }
.custom-select-search-input::placeholder { color: #7a879c; opacity: 1; }
.custom-select-option[hidden], .custom-select-empty[hidden] { display: none; }
.custom-select-empty { margin: 4px 3px 2px; padding: 13px 10px; color: var(--muted); background: #f7f9fc; border-radius: 8px; font-size: .68rem; font-weight: 700; text-align: center; }
.custom-select-option { display: grid; width: 100%; min-height: 44px; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 11px; color: #34415a; background: transparent; border: 0; border-radius: 8px; font: inherit; font-size: .75rem; font-weight: 700; text-align: left; cursor: pointer; transition: color .16s ease, background .16s ease; }
.custom-select-option:hover, .custom-select-option:focus-visible { color: var(--blue); background: var(--blue-light); outline: 0; }
.custom-select-option:focus-visible { box-shadow: inset 0 0 0 2px var(--yellow); }
.custom-select-option[aria-selected="true"] { color: #0b58bd; background: #edf5ff; font-weight: 800; }
.custom-select-check { display: grid; width: 20px; height: 20px; place-items: center; color: transparent; background: transparent; border-radius: 6px; }
.custom-select-option[aria-selected="true"] .custom-select-check { color: #fff; background: var(--blue); }
.custom-select-check svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.custom-select-option:disabled { color: #9aa4b4; cursor: not-allowed; opacity: .65; }
.turn-control { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 11px 14px 12px; }
.turn-control legend { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.turn-label { display: block; margin: 0 4px 6px; color: var(--muted); font-size: .56rem; line-height: 1; font-weight: 800; letter-spacing: .1em; }
.segmented-control { display: flex; gap: 4px; padding: 4px; background: #eef2f7; border-radius: 9px; }
.segmented-control button { flex: 1; min-width: 0; min-height: 42px; padding: 8px 13px; color: #66738b; background: transparent; border: 0; border-radius: 7px; font-size: .72rem; font-weight: 800; cursor: pointer; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.segmented-control button:hover { color: var(--navy); }
.segmented-control button.active { color: var(--navy); background: var(--yellow); box-shadow: 0 4px 12px rgba(119,87,0,.14); }
.segmented-control button:disabled { color: #9aa4b4; cursor: not-allowed; opacity: .7; }
.segmented-control button:disabled:hover { color: #9aa4b4; }
.turn-hint { display: block; min-height: 1.2em; margin: 6px 4px 0; color: var(--muted); font-size: .49rem; line-height: 1.3; }

.hero-sidebar .control-item,
.hero-sidebar .turn-control { min-height: 56px; color: #fff; background: rgba(4,17,51,.42); border-color: rgba(255,255,255,.15); border-radius: 11px; box-shadow: none; backdrop-filter: blur(8px); }
.hero-sidebar .control-item { gap: 9px; padding: 9px 11px; }
.hero-sidebar .control-item.is-open { border-color: rgba(255,207,21,.75); box-shadow: 0 12px 28px rgba(2,12,36,.25); }
.hero-sidebar .control-icon { flex-basis: 34px; width: 34px; height: 34px; color: #fff; background: rgba(255,255,255,.1); border-radius: 8px; }
.hero-sidebar .control-icon svg { width: 17px; }
.hero-sidebar .control-item small,
.hero-sidebar .turn-label { color: rgba(255,255,255,.6); font-size: .48rem; }
.hero-sidebar .custom-select-trigger,
.hero-sidebar .custom-select-trigger:disabled { min-height: 25px; color: #fff; font-size: .67rem; }
.hero-sidebar .custom-select-trigger:hover .custom-select-value { color: #fff; }
.hero-sidebar .custom-select-chevron { flex-basis: 16px; width: 16px; stroke: var(--yellow); }
.hero-sidebar .turn-control { grid-column: 1 / -1; padding: 8px 10px 9px; }
.hero-sidebar .turn-label { margin: 0 3px 5px; }
.hero-sidebar .segmented-control { gap: 3px; padding: 3px; background: rgba(255,255,255,.1); }
.hero-sidebar .segmented-control button { min-height: 34px; padding: 6px 8px; color: rgba(255,255,255,.72); font-size: .64rem; }
.hero-sidebar .segmented-control button:hover { color: #fff; }
.hero-sidebar .segmented-control button.active { color: var(--navy); }
.hero-sidebar .turn-hint { min-height: 0; margin: 4px 3px 0; color: rgba(255,255,255,.56); font-size: .43rem; }

.status-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 40px; align-items: center; margin-top: 30px; padding: 25px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 9px 28px rgba(20,44,93,.055); }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; color: var(--success); font-size: .65rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.live-indicator i { background: var(--success); box-shadow: 0 0 0 5px rgba(15,145,103,.12); }
.live-indicator.live i { animation: pulse 1.8s infinite; }
.live-indicator.waiting { color: #8a6500; }
.live-indicator.waiting i { background: #d6a800; box-shadow: 0 0 0 5px rgba(214,168,0,.12); }
.live-indicator.final { color: var(--blue); }
.live-indicator.final i { background: var(--blue); box-shadow: 0 0 0 5px rgba(15,102,216,.12); }
.status-main h2 { margin: 9px 0 5px; font-size: 1.45rem; letter-spacing: -.035em; }
.status-main p { margin: 0; color: var(--muted); font-size: .76rem; }
.status-main p strong { color: #46536e; }
.progress-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.progress-copy span { color: #46536e; font-size: .72rem; font-weight: 800; }
.progress-copy strong { color: var(--blue); font-size: 1.5rem; letter-spacing: -.05em; }
.progress-track { height: 12px; overflow: hidden; margin-top: 10px; background: #e9edf3; border-radius: 999px; }
.progress-track > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), #1a8de8); border-radius: inherit; transition: width .45s ease; }
.progress-summary > small { display: block; margin-top: 8px; color: var(--muted); font-size: .66rem; text-align: right; }

.map-section { margin-top: 38px; }
.map-section-heading { align-items: center; }
.map-source-badge { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 8px 11px; color: #31506f; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.map-source-badge i { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(15,145,103,.1); }
.map-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.map-toolbar { position: relative; z-index: 4; display: flex; justify-content: space-between; gap: 24px; align-items: end; padding: 18px 21px; background: #f8faff; border-bottom: 1px solid var(--line); }
.map-breadcrumb { display: flex; min-height: 42px; align-items: center; gap: 8px; color: var(--muted); font-size: .72rem; }
.map-breadcrumb button { min-height: 42px; padding: 8px 11px; color: var(--blue); background: var(--blue-light); border: 1px solid #cfe0f7; border-radius: 9px; font-size: .68rem; font-weight: 800; }
.map-breadcrumb button:hover { background: #dcecff; }
.map-breadcrumb button:focus-visible, .map-shape:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
.map-breadcrumb span { display: inline-flex; align-items: center; gap: 8px; }
.map-breadcrumb span[hidden] { display: none; }
.map-breadcrumb i { color: #9ba7ba; font-style: normal; }
.map-breadcrumb strong { color: var(--ink); }
.map-selectors { display: grid; grid-template-columns: minmax(175px, .95fr) minmax(160px, .8fr) minmax(220px, 1.25fr); gap: 10px; width: min(100%, 760px); }
.map-selector { min-width: 0; }
.map-selector > span { display: block; margin: 0 0 5px 3px; color: var(--muted); font-size: .52rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.map-selectors .custom-select-trigger { min-height: 44px; padding: 8px 10px 8px 12px; background: #fff; border: 1px solid #ccd7e6; border-radius: 9px; font-size: .7rem; }
.map-selectors .custom-select-trigger:hover { border-color: #9fbcdf; }
.map-selectors .custom-select-trigger:disabled { color: #929bad; background: #edf1f6; border-color: #dbe2eb; cursor: not-allowed; }
.map-selectors .custom-select-menu { top: calc(100% + 6px); right: auto; left: 0; width: 100%; min-width: 100%; }
.map-selectors .custom-select-option { font-size: .7rem; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); min-height: 570px; }
.map-visual { position: relative; display: grid; min-width: 0; padding: 24px; place-items: center; background: radial-gradient(circle at 50% 44%, #f8fbff 0, #edf4fc 72%, #e7eff9 100%); border-right: 1px solid var(--line); }
.election-map { display: block; width: 100%; max-width: 680px; max-height: 510px; overflow: visible; filter: drop-shadow(0 9px 16px rgba(36,67,112,.1)); }
.map-shape { --shape-fill: #dfe8f3; fill: var(--shape-fill); stroke: #fff; stroke-width: 1.25; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .2s ease, opacity .2s ease, stroke .2s ease, filter .2s ease; }
.map-shape:hover, .map-shape:focus { stroke: var(--yellow); stroke-width: 3; }
.map-shape.is-selected { --shape-fill: var(--yellow) !important; stroke: #8f6e00; stroke-width: 4; filter: drop-shadow(0 0 4px rgba(255,196,0,.75)); }
.map-shape.is-unavailable { fill: #e1e5eb; opacity: .7; cursor: default; }
.map-loading { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: #35506f; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(20,44,93,.1); font-size: .68rem; font-weight: 800; }
.map-loading[hidden] { display: none; }
.map-loading i { width: 17px; height: 17px; border: 2px solid #c9d8eb; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
.map-instruction { position: absolute; left: 20px; right: 20px; bottom: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; color: #607089; font-size: .62rem; font-weight: 700; text-align: center; }
.map-instruction-spinner { flex: 0 0 12px; width: 12px; height: 12px; border: 2px solid #c6d5e7; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
.map-instruction-spinner[hidden] { display: none; }
.map-detail { min-width: 0; padding: 27px; background: #fff; }
.map-detail[aria-busy="true"] { opacity: .65; }
.map-detail-kicker { display: block; color: var(--blue); font-size: .56rem; font-weight: 800; letter-spacing: .13em; }
.map-detail h3 { margin: 7px 0 8px; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.035em; }
.map-detail > p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.6; }
.map-finalization-note { display: grid; gap: 4px; margin-top: 16px; padding: 13px 14px; color: #5d4a00; background: #fff9df; border: 1px solid #f0d978; border-radius: 10px; font-size: .64rem; line-height: 1.5; }
.map-finalization-note strong { color: #725900; font-size: .66rem; }
.map-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.map-summary-grid > div { min-width: 0; padding: 12px; background: #f5f8fc; border: 1px solid #e5ebf3; border-radius: 10px; }
.map-summary-grid span { display: block; color: var(--muted); font-size: .53rem; line-height: 1.25; font-weight: 700; }
.map-summary-grid strong { display: block; overflow: hidden; margin-top: 5px; color: var(--ink); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.map-detail-progress { margin-top: 20px; }
.map-detail-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.map-detail-progress span { color: #52617a; font-size: .65rem; font-weight: 800; }
.map-detail-progress strong { color: var(--blue); font-size: 1.2rem; letter-spacing: -.04em; }
.map-detail-progress .progress-track { height: 9px; margin-top: 8px; }
.map-detail-progress small { display: block; margin-top: 7px; color: var(--muted); font-size: .58rem; }
.map-candidate-list { display: grid; gap: 8px; max-height: 310px; overflow: auto; margin-top: 19px; padding-right: 4px; scrollbar-color: #c6d3e3 transparent; }
.map-candidate-row { --map-candidate: var(--blue); display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 10px; background: #f8faff; border: 1px solid #e4eaf3; border-radius: 10px; }
.map-candidate-row > i { width: 8px; height: 32px; background: var(--map-candidate); border-radius: 999px; }
.map-candidate-row div { min-width: 0; }
.map-candidate-row div strong { display: block; overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.map-candidate-row div span { display: block; margin-top: 3px; color: var(--muted); font-size: .55rem; }
.map-candidate-row > strong { color: var(--map-candidate); font-size: .8rem; text-align: right; }
.map-candidate-row > strong small { display: block; margin-top: 3px; color: var(--muted); font-size: .51rem; font-weight: 700; }
.map-list-note { margin: 9px 0 0; color: var(--muted); font-size: .55rem; line-height: 1.5; }
.map-vote-summary { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #e7ecf3; color: var(--muted); font-size: .57rem; }
.map-vote-summary strong { color: #40506b; }
.map-empty { margin-top: 20px; padding: 17px; color: var(--muted); background: #f7f9fc; border: 1px dashed #cbd6e4; border-radius: 10px; font-size: .66rem; line-height: 1.55; }
.map-error { color: #8f2940; background: #fff2f5; border-color: #f0c9d2; }
.map-footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 14px 20px; background: #fbfcfe; border-top: 1px solid var(--line); }
.map-footer > p { margin: 0; color: var(--muted); font-size: .57rem; text-align: right; }
.map-party-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: var(--muted); font-size: .54rem; font-weight: 700; }
.map-party-legend > strong { color: #41506a; font-size: .56rem; }
.map-party-legend-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.map-party-legend-item i { width: 10px; height: 10px; flex: 0 0 10px; background: var(--party-color, #dfe8f3); border: 1px solid rgba(20,44,93,.15); border-radius: 50%; }
.map-party-legend-item i.is-neutral { background: #dfe8f3; }

.candidate-section { margin-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 17px; }
.section-heading h2 { margin: 7px 0 5px; font-size: 1.55rem; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.official-link { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 10px 13px; color: var(--blue); background: #fff; border: 1px solid #cfe0f7; border-radius: 9px; font-size: .68rem; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
.official-link:hover { background: var(--blue-light); border-color: #a9c9f5; }
.candidate-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -2px 0 16px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.candidate-tools[hidden] { display: none; }
.candidate-search { position: relative; display: block; width: min(100%, 520px); }
.candidate-search svg { position: absolute; left: 13px; top: 50%; width: 18px; fill: none; stroke: #6d7890; stroke-width: 2; transform: translateY(-50%); }
.candidate-search input { width: 100%; min-height: 44px; padding: 9px 13px 9px 42px; color: var(--ink); background: #f8faff; border: 1px solid #ccd7e6; border-radius: 9px; font: inherit; font-size: .72rem; }
.candidate-search input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-color: var(--blue); }
.candidate-tools > span { color: var(--muted); font-size: .65rem; font-weight: 700; white-space: nowrap; }
.candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.candidate-card { --candidate-accent: var(--blue); --candidate-accent-2: #38a2ee; --candidate-soft: var(--blue-light); --candidate-padding: 25px; position: relative; min-width: 0; overflow: hidden; padding: var(--candidate-padding); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--candidate-accent); border-radius: var(--radius); box-shadow: 0 11px 32px rgba(20,44,93,.065); }
.candidate-card.is-not-elected,
.candidate-grid.has-elected-candidate .candidate-card:not(.is-elected) { --candidate-accent: #6f8fb8; --candidate-accent-2: #aec4de; background: #fbfcfe; border-color: #e5eaf1; border-top-color: #9db6d5; box-shadow: 0 7px 20px rgba(20,44,93,.035); }
.candidate-card.is-not-elected .candidate-photo,
.candidate-grid.has-elected-candidate .candidate-card:not(.is-elected) .candidate-photo { opacity: .8; filter: saturate(.68) contrast(.96); }
.candidate-card.is-not-elected .candidate-name,
.candidate-grid.has-elected-candidate .candidate-card:not(.is-elected) .candidate-name { color: #43516a; }
.candidate-card.is-not-elected .candidate-status { color: #627a99; background: #f0f4f8; border-color: #d8e1eb; }
.candidate-card.is-elected { border-top-color: var(--candidate-accent); box-shadow: 0 0 0 3px rgba(15,145,103,.08), var(--shadow); }
.elected-banner { display: flex; align-items: center; gap: 12px; min-height: 64px; margin: calc(var(--candidate-padding) * -1) calc(var(--candidate-padding) * -1) 22px; padding: 12px var(--candidate-padding); color: var(--navy); background: linear-gradient(105deg, #ffcf15, #ffe47a); border-bottom: 1px solid #e9b900; }
.elected-banner-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; color: var(--yellow); background: var(--navy); border-radius: 50%; font-size: .9rem; font-weight: 800; box-shadow: 0 0 0 4px rgba(6,27,73,.09); }
.elected-banner-copy { min-width: 0; }
.elected-banner-copy small { display: block; font-size: .5rem; font-weight: 800; letter-spacing: .13em; }
.elected-banner-copy strong { display: block; margin-top: 2px; font-size: .82rem; line-height: 1.25; }
.candidate-head { display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.candidate-photo-wrap { position: relative; width: 94px; height: 94px; overflow: hidden; background: #edf2f8; border: 5px solid #f1f4f8; border-radius: 50%; box-shadow: 0 0 0 2px #dce5f1; }
.candidate-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.candidate-photo.is-placeholder { object-position: center; }
.candidate-party { display: inline-flex; align-items: center; gap: 7px; color: var(--candidate-accent); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.candidate-party::before { content: ""; width: 7px; height: 7px; background: var(--candidate-accent); border-radius: 50%; }
.candidate-name { margin: 7px 0 0; font-size: clamp(1.18rem, 2.4vw, 1.65rem); line-height: 1.08; letter-spacing: -.04em; text-transform: uppercase; }
.candidate-vice { margin: 7px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.candidate-result { align-self: start; min-width: 120px; text-align: right; }
.candidate-result strong { display: block; color: var(--candidate-accent); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -.065em; }
.candidate-result span { display: block; margin-top: 8px; color: #46536d; font-size: .74rem; font-weight: 700; }
.candidate-progress { height: 10px; overflow: hidden; margin-top: 25px; background: #edf0f5; border-radius: 999px; }
.candidate-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--candidate-accent), var(--candidate-accent-2)); border-radius: inherit; transition: width .5s ease; }
.candidate-foot { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-top: 13px; color: var(--muted); font-size: .62rem; }
.candidate-status { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; color: var(--blue); background: var(--blue-light); border: 1px solid #cfe0f7; border-radius: 999px; font-weight: 800; }
.candidate-card.is-elected .candidate-status { color: var(--success); background: #edf9f5; border-color: #cde9df; }
.candidate-status-official { gap: 5px; }
.candidate-status-official i { display: grid; width: 17px; height: 17px; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-size: .5rem; font-style: normal; }
.candidate-grid.many-candidates .candidate-card { --candidate-padding: 20px; }
.candidate-grid.many-candidates .candidate-head { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; }
.candidate-grid.many-candidates .candidate-photo-wrap { width: 76px; height: 76px; }
.candidate-grid.many-candidates .candidate-name { font-size: 1.18rem; }
.candidate-grid.many-candidates .candidate-result strong { font-size: 1.7rem; }
.candidate-grid.proportional .candidate-card { --candidate-padding: 17px; }
.candidate-grid.proportional .candidate-head { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 13px; }
.candidate-grid.proportional .candidate-photo-wrap { width: 64px; height: 64px; border-width: 4px; }
.candidate-grid.proportional .candidate-name { font-size: 1rem; }
.candidate-grid.proportional .candidate-result { min-width: 96px; }
.candidate-grid.proportional .candidate-result strong { font-size: 1.42rem; }
.candidate-grid.proportional .candidate-progress { height: 7px; margin-top: 17px; }
.candidate-grid.proportional .elected-banner { min-height: 52px; margin-bottom: 16px; }
.candidate-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.candidate-pagination[hidden] { display: none; }
.candidate-pagination button { min-height: 40px; padding: 8px 14px; color: var(--blue); background: #fff; border: 1px solid #cfe0f7; border-radius: 9px; font-size: .67rem; font-weight: 800; }
.candidate-pagination button:hover:not(:disabled) { background: var(--blue-light); }
.candidate-pagination button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.candidate-pagination button:disabled { color: #9ba5b6; cursor: not-allowed; background: #f0f3f7; }
.candidate-pagination span { min-width: 120px; color: var(--muted); font-size: .65rem; font-weight: 700; text-align: center; }

.is-loading { min-height: 225px; }
.skeleton { background: linear-gradient(90deg, #edf1f6 25%, #f7f9fb 50%, #edf1f6 75%); background-size: 200% 100%; border-radius: 8px; animation: shimmer 1.3s infinite; }
.skeleton-photo { width: 90px; height: 90px; border-radius: 50%; }
.skeleton-line { width: 62%; height: 20px; margin: -68px 0 0 112px; }
.skeleton-value { width: calc(100% - 112px); height: 56px; margin: 15px 0 0 112px; }
.empty-results { grid-column: 1 / -1; padding: 40px 24px; color: var(--muted); background: #fff; border: 1px dashed #cbd4e2; border-radius: var(--radius); text-align: center; }
.empty-results strong { display: block; color: var(--ink); }
.empty-results p { margin: 7px 0 0; font-size: .8rem; }

.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.data-card, .transparency-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(20,44,93,.045); }
.data-card h3, .transparency-card h3 { margin: 7px 0 18px; font-size: 1.05rem; letter-spacing: -.025em; }
.data-card dl { margin: 0; }
.data-card dl > div { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 47px; border-top: 1px solid #edf0f5; }
.data-card dt { color: #4f5c74; font-size: .73rem; }
.data-card dd { margin: 0; font-size: .78rem; font-weight: 800; }
.data-card dd small { display: inline-block; min-width: 62px; margin-left: 8px; color: var(--muted); font-size: .64rem; text-align: right; }
.vote-breakdown dt { display: flex; align-items: center; gap: 9px; }
.dot { width: 9px; height: 9px; border-radius: 3px; }
.dot-valid { background: var(--success); }
.dot-blank { background: #4f86b8; }
.dot-null { background: #a875c7; }
.dot-annulled { background: #ee5267; }
.transparency-card { display: flex; grid-column: 1 / -1; gap: 15px; color: #28415f; background: #edf5ff; border-color: #d5e5f8; box-shadow: none; }
.transparency-icon { display: grid; flex: 0 0 28px; height: 28px; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.transparency-card h3 { margin-bottom: 7px; }
.transparency-card p { max-width: 900px; margin: 0; color: #5e6f86; font-size: .73rem; line-height: 1.65; }
.transparency-card .runtime-message { margin-top: 8px; color: var(--blue); font-weight: 700; }

.source-note { display: flex; gap: 14px; margin-top: 16px; padding: 19px 21px; color: #4a5670; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.source-note-icon { display: grid; flex: 0 0 32px; height: 32px; place-items: center; color: var(--blue); background: var(--blue-light); border-radius: 50%; }
.source-note-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.source-note strong { color: var(--ink); font-size: .75rem; }
.source-note p { margin: 4px 0 0; font-size: .68rem; line-height: 1.55; }

.csw-highlight { position: relative; display: grid; grid-template-columns: 220px 1fr auto; gap: 30px; align-items: center; overflow: hidden; margin-top: 34px; padding: 27px 30px; color: #fff; background: linear-gradient(120deg, #06183e, #0a3478); border-radius: var(--radius); }
.csw-highlight::after { content: ""; position: absolute; width: 270px; height: 270px; right: -135px; border: 52px solid rgba(255,255,255,.035); border-radius: 50%; }
.csw-identity { position: relative; z-index: 1; padding-right: 25px; border-right: 1px solid rgba(255,255,255,.17); }
.csw-identity span, .csw-copy > span { display: block; margin-bottom: 8px; color: rgba(255,255,255,.58); font-size: .5rem; font-weight: 800; letter-spacing: .12em; }
.csw-identity img { display: block; width: 145px; height: auto; }
.csw-copy { position: relative; z-index: 1; }
.csw-copy h2 { margin: 0; font-size: 1.12rem; }
.csw-copy p { margin: 5px 0 0; color: rgba(255,255,255,.66); font-size: .68rem; }
.csw-highlight > a { position: relative; z-index: 1; padding: 10px 13px; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; font-size: .64rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.csw-highlight > a:hover { background: rgba(255,255,255,.1); }

.site-footer { position: relative; overflow: hidden; color: #fff; background: #041536; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; min-height: 150px; gap: 30px; }
.footer-info { display: grid; justify-items: end; gap: 12px; }
.footer-grid p { color: rgba(255,255,255,.62); font-size: .7rem; line-height: 1.65; text-align: right; }
.footer-grid p strong { color: #fff; }
.footer-release { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; color: rgba(255,255,255,.68); font-size: .58rem; letter-spacing: .02em; }
.footer-release > span:first-child strong { color: #fff; font-variant-numeric: tabular-nums; }
.footer-release small { font-size: .56rem; }
.footer-beta { padding: 4px 7px; color: #17213c; background: var(--yellow); border-radius: 999px; font-size: .48rem; font-weight: 900; letter-spacing: .12em; }
.footer-stripe { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 5px; }
.footer-stripe i:first-child { background: linear-gradient(90deg, var(--cyan), var(--green-brand), var(--yellow)); }
.footer-stripe i:nth-child(2) { background: linear-gradient(90deg, var(--yellow), var(--orange), var(--magenta)); }
.footer-stripe i:last-child { background: linear-gradient(90deg, var(--magenta), var(--purple)); }
.noscript { padding: 14px; color: #fff; background: #9b1438; text-align: center; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(15,145,103,0); } }
@keyframes radio-bars { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }
@keyframes radio-pulse { 50% { box-shadow: 0 0 0 8px rgba(255,207,21,.12), 0 7px 18px rgba(235,33,103,.3); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 980px) {
    html { font-size: 17px; }
    .hero { align-items: center; gap: 24px; }
    .hero-sidebar { flex-basis: 380px; }
    .status-panel { grid-template-columns: 1fr 1fr; gap: 25px; }
    .candidate-head { grid-template-columns: 78px minmax(0, 1fr); }
    .candidate-photo-wrap { width: 78px; height: 78px; }
    .candidate-result { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; min-width: 0; margin-top: 5px; text-align: left; }
    .candidate-result span { margin-top: 0; }
    .map-toolbar { align-items: stretch; flex-direction: column; }
    .map-selectors { width: 100%; }
    .map-layout { grid-template-columns: 1fr; }
    .map-visual { min-height: 520px; border-right: 0; border-bottom: 1px solid var(--line); }
    .map-detail { min-height: 300px; }
    .csw-highlight { grid-template-columns: 170px 1fr; }
    .csw-highlight > a { grid-column: 2; justify-self: start; }
}

@media (max-width: 900px) {
    .election-controls { grid-template-columns: 1fr 1fr; margin-top: 0; }
    .turn-control { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .shell { width: min(100% - 28px, 680px); }
    .nav-wrap { min-height: 68px; }
    .brand img, .footer-brand img { width: 154px; }
    .brand-context { font-size: .47rem; }
    .connection > span { display: none; }
    .refresh-button span { display: none; }
    .refresh-button { width: 44px; justify-content: center; padding: 0; }
    .hero { display: block; padding-block: 28px 34px; }
    .hero h1 { max-width: 620px; font-size: clamp(2.1rem, 8.8vw, 3rem); }
    .hero-copy > p { font-size: .8rem; }
    .live-radio-button { width: min(100%, 360px); min-width: 0; }
    .hero-sidebar { width: 100%; margin-top: 20px; }
    .official-box { max-width: none; margin-top: 0; }
    .status-panel { grid-template-columns: 1fr; }
    .progress-summary > small { text-align: left; }
    .map-section { margin-top: 30px; }
    .map-source-badge { align-self: flex-start; }
    .map-toolbar { gap: 13px; padding: 15px; }
    .map-selectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-selector-municipality { grid-column: 1 / -1; }
    .map-visual { min-height: 450px; padding: 17px; }
    .map-detail { padding: 22px; }
    .map-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
    .map-footer > p { text-align: left; }
    .candidate-grid { grid-template-columns: 1fr; }
    .candidate-grid.many-candidates .candidate-card { padding: 21px; }
    .candidate-grid.many-candidates .candidate-head { grid-template-columns: 78px minmax(0,1fr); }
    .candidate-grid.many-candidates .candidate-result { grid-column: 1 / -1; }
    .candidate-grid.proportional .candidate-head { grid-template-columns: 64px minmax(0,1fr); }
    .candidate-grid.proportional .candidate-result { grid-column: 1 / -1; }
    .overview-grid { grid-template-columns: 1fr; }
    .transparency-card { grid-column: auto; }
    .csw-highlight { grid-template-columns: 1fr; gap: 22px; }
    .csw-identity { padding: 0 0 19px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17); }
    .csw-highlight > a { grid-column: auto; }
    .footer-grid { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 34px; }
    .footer-info { justify-items: start; }
    .footer-grid p { margin: 0; text-align: left; }
    .footer-release { justify-content: flex-start; }
}

@media (max-width: 520px) {
    html { font-size: 16px; }
    .shell { width: min(100% - 22px, 480px); }
    .brand { gap: 10px; }
    .brand img { width: 132px; }
    .brand-context { padding-left: 10px; }
    .hero { padding-block: 18px 22px; }
    .hero h1 { margin: 8px 0 0; font-size: clamp(1.9rem, 10vw, 2.35rem); }
    .hero-copy > p { display: none; }
    .hero-actions { margin-top: 12px; }
    .live-radio-button { grid-template-columns: 36px minmax(0, 1fr) 24px; width: 100%; min-height: 50px; gap: 9px; padding-right: 10px; }
    .radio-control-icon { width: 36px; height: 36px; }
    .radio-button-copy strong { font-size: .73rem; }
    .hero-sidebar { margin-top: 12px; gap: 7px; }
    .official-box { min-height: 48px; align-items: center; margin-top: 0; padding: 9px 12px; }
    .official-box p { display: none; }
    .election-controls { grid-template-columns: 1fr 1fr; gap: 7px; }
    .control-item { min-height: 68px; padding: 12px; }
    .control-icon { flex-basis: 38px; width: 38px; height: 38px; }
    .control-item small { font-size: .49rem; }
    .control-item strong { font-size: .78rem; }
    .hero-sidebar .control-item { min-height: 54px; gap: 7px; padding: 8px 9px; }
    .hero-sidebar .control-icon { display: none; }
    .hero-sidebar .turn-control { min-height: 54px; }
    .hero-sidebar .turn-hint { display: none; }
    .hero-sidebar .custom-select-menu { width: min(290px, calc(100vw - 44px)); }
    .hero-sidebar .control-office .custom-select-menu { right: auto; left: 0; }
    .hero-sidebar .control-item:not(.control-office) .custom-select-menu { right: 0; left: auto; }
    .status-panel { margin-top: 20px; padding: 21px; }
    .map-selectors { grid-template-columns: 1fr; }
    .map-selector-municipality { grid-column: auto; }
    .map-visual { min-height: 390px; padding: 12px; }
    .election-map { max-height: 345px; }
    .map-instruction { bottom: 8px; font-size: .56rem; }
    .map-detail { padding: 20px; }
    .map-summary-grid { grid-template-columns: 1fr 1fr; }
    .map-party-legend { width: 100%; }
    .map-party-legend > strong { flex-basis: 100%; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .candidate-section > .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
    .candidate-tools { align-items: stretch; flex-direction: column; }
    .candidate-search { width: 100%; }
    .candidate-pagination { gap: 8px; }
    .candidate-pagination span { min-width: 90px; }
    .official-link { width: 100%; justify-content: center; }
    .candidate-section .official-link { width: auto; min-height: 40px; padding-inline: 10px; }
    .candidate-card { --candidate-padding: 20px; }
    .candidate-head { grid-template-columns: 72px minmax(0,1fr); gap: 14px; }
    .candidate-photo-wrap { width: 72px; height: 72px; }
    .candidate-name { font-size: 1.15rem; }
    .candidate-result strong { font-size: 1.85rem; }
    .candidate-foot { align-items: flex-start; flex-direction: column; }
    .data-card, .transparency-card { padding: 20px; }
    .data-card dl > div { gap: 10px; }
    .data-card dt { font-size: .68rem; }
    .data-card dd { font-size: .72rem; text-align: right; }
    .data-card dd small { display: block; margin: 2px 0 0 auto; }
    .csw-highlight { padding: 24px 21px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
