@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-latin.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;
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #F4F7FC;
    --surface: #FFFFFF;
    --surface-secondary: #EEF2F8;
    --text: #101828;
    --text-secondary: #475467;
    --text-muted: #667085;
    --primary: #174EA6;
    --primary-light: #E8F0FE;
    --accent: #F5C242;
    --success: #16865C;
    --danger: #C73E4D;
    --warning: #D98E04;
    --border: rgba(16, 24, 40, 0.08);
    --glass: rgba(255, 255, 255, 0.64);
    --glass-strong: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.72);
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 32px rgba(23, 78, 166, 0.06);
    --radius: 20px;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 70% 42% at 8% -8%, rgba(23, 78, 166, 0.11), transparent 58%),
        radial-gradient(ellipse 46% 36% at 96% 0%, rgba(245, 194, 66, 0.14), transparent 52%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.5;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus {
    left: 1rem; top: 1rem; z-index: 20;
    background: #fff; padding: .5rem 1rem; border-radius: 10px; box-shadow: var(--shadow);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

@supports not ((-webkit-backdrop-filter: blur(18px)) or (backdrop-filter: blur(18px))) {
    .site-header, .metric-card, .mep-card, .chart-card, .compare-card, .table-wrap, .notice, .filters, .feed-item, .profile-hero, .section-nav, .news-card {
        background: #fff;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 8;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    backdrop-filter: blur(22px) saturate(1.25);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    align-items: center;
    padding: .9rem 1.25rem;
    position: relative;
}
.brand { text-decoration: none; color: inherit; display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-size: 1.02rem; letter-spacing: 0; }
.brand span { color: var(--text-secondary); font-size: .82rem; }

.publisher {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: .78rem;
    line-height: 1.2;
    padding-left: .75rem;
    border-left: 1px solid var(--border);
}
.publisher img {
    height: 32px;
    width: auto;
    display: block;
}
.publisher span { max-width: 7.5rem; }

.nav-open { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    position: relative;
}
.nav-toggle::before, .nav-toggle::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}
.nav-toggle::before { top: 15px; box-shadow: 0 6px 0 var(--text); }
.nav-toggle::after { bottom: 15px; }

.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: .45rem .8rem;
    border-radius: 999px;
    font-weight: 600;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] {
    color: var(--primary);
    background: var(--primary-light);
}

main.wrap { padding-top: 2.25rem; padding-bottom: 4rem; min-height: 62vh; }

h1 {
    font-size: clamp(2rem, 4.2vw, 3.15rem);
    margin: 0 0 .8rem;
    letter-spacing: -.035em;
    line-height: 1.12;
    color: #0b1b3a;
}
h2 { font-size: 1.2rem; margin: 0 0 .75rem; letter-spacing: -.02em; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 2.4rem 0 1rem;
}
.section-head h2 { margin: 0; }
.section-head a { color: var(--primary); text-decoration: none; font-weight: 600; }
.lede { color: var(--text-secondary); max-width: 40rem; font-size: 1.05rem; }
.kicker {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 .55rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 1.75rem;
    align-items: stretch;
    margin-bottom: 1.75rem;
}
.hero-copy { display: flex; flex-direction: column; }
.hero-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-content: start; }
.hero-kpis .sync-line { grid-column: 1 / -1; }
.sync-line { color: var(--text-muted); font-size: .88rem; margin: .35rem 0 0; }
.hero-copy .lede { margin: 0; }
.hero-banner {
    margin: .85rem 0 0;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    background: #fff;
}
.hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.metric-card, .mep-card, .chart-card, .compare-card, .notice, .feed-item {
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.15rem 1.2rem;
}
.metric-card .label, .mep-card .meta {
    color: var(--text-muted);
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
}
.metric-card .value {
    font-size: clamp(1.7rem, 3.4vw, 2.55rem);
    font-weight: 720;
    line-height: 1.05;
    margin: .4rem 0 .2rem;
    font-variant-numeric: tabular-nums lining-nums;
    letter-spacing: -.03em;
    color: #0b1b3a;
}
.metric-card .hint { color: var(--text-secondary); font-size: .88rem; }

.chart-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 220px;
    gap: 1rem;
}
.chart-card .lede { font-size: .95rem; margin: 0 0 1rem; }
.chart-frame { position: relative; height: 240px; }
.chart-side { display: grid; gap: .75rem; }
.chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr);
    gap: 1rem;
    margin-top: 1.25rem;
}
.chart-grid .chart-frame { height: 220px; }

.pies-intro { margin: -.25rem 0 1rem; color: var(--text-secondary); }
.pie-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.pie-card h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.pie-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .6rem;
    margin: 0 0 .75rem;
    font-size: .95rem;
}
.pie-lead a { font-weight: 700; }
.pie-lead strong {
    font-size: 1.45rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    color: #0b1b3a;
}
.pie-lead span { color: var(--text-secondary); }
.pie-frame { height: 220px; }
canvas.is-clickable { cursor: pointer; }
.pie-ranking {
    list-style: none;
    margin: .85rem 0 0;
    padding: 0;
    display: grid;
    gap: .35rem;
}
.pie-ranking li {
    display: grid;
    grid-template-columns: 1.25rem .7rem 1fr auto;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
}
.pie-rank {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}
.pie-dot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
}
.pie-n {
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    color: #0b1b3a;
}
.pie-dot-0 { background: #174EA6; }
.pie-dot-1 { background: #C73E4D; }
.pie-dot-2 { background: #16865C; }
.pie-dot-3 { background: #D98E04; }
.pie-dot-4 { background: #6B4C9A; }
.pie-dot-5 { background: #0E7C8B; }
.pie-dot-6 { background: #B42318; }
.pie-dot-7 { background: #3B6D11; }
.pie-dot-8 { background: #C2410C; }
.pie-dot-9 { background: #1D4ED8; }
.pie-dot-10 { background: #BE185D; }
.pie-dot-11 { background: #0F766E; }
.pie-dot-12 { background: #854D0E; }
.pie-dot-13 { background: #4C1D95; }
.pie-dot-14 { background: #334155; }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}
.mep-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .85rem;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mep-card:hover, .mep-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(23, 78, 166, 0.22);
    box-shadow: 0 16px 36px rgba(23, 78, 166, 0.1);
}
.mep-card .avatar { grid-row: 1 / 3; margin: 0; }
.mep-card h2 { margin: 0; font-size: 1.05rem; }
.mep-card .meta { margin: .15rem 0 0; }
.mep-card .card-foot {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: .75rem;
    margin-top: .85rem;
}
.card-stat {
    font-size: 1.35rem;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1;
}
.card-stat small {
    display: block;
    margin-top: .25rem;
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.sparkline { color: var(--primary); display: block; }

.avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center; font-weight: 700;
    overflow: hidden; flex-shrink: 0; padding: 0;
}
img.avatar {
    object-fit: cover;
    object-position: center 18%;
    display: block;
    background: var(--surface-secondary);
}
.avatar-profile { width: 96px; height: 96px; font-size: 1.55rem; }
.avatar-compare { width: 56px; height: 56px; }

.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    border-radius: 999px; padding: .18rem .6rem; font-size: .78rem; font-weight: 650;
}
.badge-for { background: #e8f6ef; color: var(--success); }
.badge-against { background: #fdecee; color: var(--danger); }
.badge-abstain { background: #fff6e5; color: var(--warning); }
.badge-other, .badge-missing { background: var(--surface-secondary); color: var(--text-secondary); }

.table-wrap {
    overflow-x: auto;
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-muted); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td a { color: var(--text); text-decoration: none; font-weight: 550; }
td a:hover, td a:focus-visible { color: var(--primary); text-decoration: underline; }

.feed { display: grid; gap: .55rem; }
.feed-item {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    gap: .8rem;
    align-items: center;
    padding: .85rem 1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
}
.feed-item:hover, .feed-item:focus-visible { border-color: rgba(23, 78, 166, 0.2); }
.feed-item time { color: var(--text-muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.feed-item strong { display: block; font-size: .95rem; }
.feed-item span { color: var(--text-secondary); font-size: .88rem; }

.filters {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    padding: .75rem;
    border-radius: 16px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}
.filters input, .filters select, .filters button {
    font: inherit; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.filters button { background: var(--primary); color: #fff; border: 0; cursor: pointer; font-weight: 600; }
.filters button:hover, .filters button:focus-visible { filter: brightness(1.05); }

.section-nav {
    position: sticky; top: 64px; z-index: 2;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: .55rem;
    margin: 0 0 1.25rem;
    display: flex; gap: .35rem; flex-wrap: wrap;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.section-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: .35rem .75rem;
    border-radius: 999px;
}
.section-nav a:hover, .section-nav a:focus-visible, .section-nav a[aria-current="page"] {
    color: var(--primary);
    background: var(--primary-light);
}

.source { color: var(--text-muted); font-size: .85rem; }
.meta { color: var(--text-secondary); font-size: .92rem; margin: 0 0 1.1rem; }
.empty {
    padding: 1.1rem 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.pair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.pair-card { text-decoration: none; color: inherit; display: block; }
.pair-card .value { font-size: 1.8rem; font-weight: 720; letter-spacing: -.03em; margin: .35rem 0; }
.pair-card p { margin: 0; color: var(--text-secondary); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .85rem;
}
.news-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    min-height: 100%;
}
.news-card img {
    width: 100%;
    height: 132px;
    object-fit: cover;
    background: var(--surface-secondary);
    display: block;
}
.news-card h3 {
    margin: .85rem 1rem .35rem;
    font-size: .98rem;
    line-height: 1.3;
}
.news-card p {
    margin: 0 1rem 1rem;
    color: var(--text-secondary);
    font-size: .86rem;
    line-height: 1.4;
}
.news-card:hover, .news-card:focus-visible {
    border-color: rgba(23, 78, 166, 0.22);
}

.heatmap { overflow-x: auto; }
.heatmap table { font-size: .8rem; }
.heatmap td, .heatmap th { min-width: 2.8rem; text-align: center; }
.heatmap a { display: grid; place-items: center; min-height: 44px; padding: .4rem; text-decoration: none; color: inherit; }
.heat-na { background: var(--surface-secondary); color: var(--text-muted); }
.heat-0 { background: #f2f4f7; }
.heat-1 { background: #e8edf5; }
.heat-2 { background: #dbe7f8; }
.heat-3 { background: #c5daf4; }
.heat-4 { background: #a8c8ee; }
.heat-5 { background: #86b4e6; }
.heat-6 { background: #5a96d4; color: #fff; }
.heat-7 { background: #3b7fc4; color: #fff; }
.heat-8 { background: #2a6b9e; color: #fff; }
.heat-9 { background: #1c7a56; color: #fff; }
.heat-10 { background: #16865c; color: #fff; }

.pagination { display: flex; gap: .5rem; margin-top: 1rem; align-items: center; }
.pagination a { color: var(--primary); }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.2rem 0 2.6rem;
    color: var(--text-secondary);
    font-size: .92rem;
    background: rgba(255,255,255,.35);
}
.site-footer a { color: var(--primary); }

.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius);
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}
.profile-hero .avatar { width: 96px; height: 96px; font-size: 1.55rem; }
.profile-hero p { margin: .15rem 0; color: var(--text-secondary); }
.body-section { margin: 0 0 1.5rem; }
.body-section h2 { margin: 0 0 .85rem; font-size: 1.15rem; }
.body-section h3 {
    margin: 1rem 0 .4rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.body-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.body-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .45rem .7rem;
    padding: .45rem .7rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}
.body-code {
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    min-width: 3.4rem;
}
.metrics-6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.metrics-6.spaced { margin-top: 1.25rem; }

.compare-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; }
.compare-vs { align-self: center; color: var(--text-muted); font-weight: 700; }
.compare-head { display: flex; gap: .85rem; align-items: center; margin-bottom: .35rem; }
.compare-head h2 { margin: 0; font-size: 1.15rem; }
.compare-head p { margin: .15rem 0 0; }
.speech-list { display: grid; gap: .75rem; }
.speech-card {
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.05rem 1.2rem;
}
.speech-links { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; margin: 0; }
.speech-links a { color: var(--primary); font-weight: 600; text-decoration: none; }
.speech-links a:hover, .speech-links a:focus-visible { text-decoration: underline; }
.speech-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; color: var(--text-secondary); font-size: .88rem; }
.speech-factual { border-color: rgba(217, 142, 4, 0.45); }
.badge-factual { background: #fff6e5; color: var(--warning); }

.speech-kind-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1rem;
}
.speech-kind-nav a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    font-weight: 650;
    font-size: .86rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
}
.speech-kind-nav a span {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.speech-kind-nav a[aria-current="page"] { color: #fff; }
.speech-kind-nav a.kind-all[aria-current="page"] { background: var(--text); border-color: var(--text); color: #fff; }
.speech-kind-nav a.kind-debate { color: var(--primary); border-color: rgba(23, 78, 166, .28); background: var(--primary-light); }
.speech-kind-nav a.kind-debate[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.speech-kind-nav a.kind-oneminute { color: #0f6a56; border-color: rgba(22, 134, 92, .28); background: #e8f6ef; }
.speech-kind-nav a.kind-oneminute[aria-current="page"] { background: var(--success); border-color: var(--success); color: #fff; }
.speech-kind-nav a.kind-factual { color: #9a6400; border-color: rgba(217, 142, 4, .35); background: #fff6e5; }
.speech-kind-nav a.kind-factual[aria-current="page"] { background: var(--warning); border-color: var(--warning); color: #fff; }
.speech-kind-nav a.kind-written { color: #5b3d8f; border-color: rgba(91, 61, 143, .28); background: #f3eef9; }
.speech-kind-nav a.kind-written[aria-current="page"] { background: #5b3d8f; border-color: #5b3d8f; color: #fff; }
.speech-kind-nav a.kind-chair { color: #3d4a5c; border-color: rgba(71, 84, 103, .28); background: var(--surface-secondary); }
.speech-kind-nav a.kind-chair[aria-current="page"] { background: #3d4a5c; border-color: #3d4a5c; color: #fff; }

.speech-card.speech-kind-debate { border-left: 4px solid var(--primary); }
.speech-card.speech-kind-oneminute { border-left: 4px solid var(--success); }
.speech-card.speech-kind-factual { border-left: 4px solid var(--warning); }
.speech-card.speech-kind-written { border-left: 4px solid #5b3d8f; }
.speech-card.speech-kind-chair { border-left: 4px solid #667085; }
.badge-kind-debate { background: var(--primary-light); color: var(--primary); }
.badge-kind-oneminute { background: #e8f6ef; color: var(--success); }
.badge-kind-factual { background: #fff6e5; color: var(--warning); }
.badge-kind-written { background: #f3eef9; color: #5b3d8f; }
.badge-kind-chair { background: var(--surface-secondary); color: #3d4a5c; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.cookie-settings {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.cookie-settings:hover { color: var(--primary); }
#cc-main {
    --cc-font-family: Inter, system-ui, sans-serif;
    --cc-btn-primary-bg: #174EA6;
    --cc-btn-primary-hover-bg: #0f3d82;
    --cc-btn-primary-color: #fff;
    --cc-link-color: #174EA6;
    --cc-toggle-on-bg: #174EA6;
    --cc-overlay-bg: rgba(11, 27, 58, 0.48);
}
#cc-main .cm {
    max-width: 28rem;
}
#cc-main .cm__btn:not(.cm__btn--secondary):not(.cm__btn--close) {
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(23, 78, 166, 0.32);
}

@media (max-width: 1024px) {
    .hero, .compare-grid, .profile-hero, .chart-panel, .chart-grid, .pair-grid, .pie-grid { grid-template-columns: 1fr; }
    .chart-frame { height: 220px; }
}
@media (max-width: 720px) {
    .nav-toggle { display: inline-block; margin-left: auto; }
    .publisher { border-left: 0; padding-left: 0; }
    .publisher span { display: none; }
    .site-nav {
        display: none;
        margin-left: 0;
        position: absolute;
        right: 1.25rem;
        top: calc(100% + .4rem);
        flex-direction: column;
        min-width: 220px;
        padding: .5rem;
        border-radius: 16px;
        background: #fff;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-open:focus-visible + .nav-toggle { outline: 2px solid var(--primary); }
    .nav-open:checked ~ .site-nav { display: flex; }
    .feed-item { grid-template-columns: 1fr auto; }
    .feed-item time { grid-column: 1 / -1; }
    h1 { font-size: 1.7rem; }
    .section-nav { top: 58px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .mep-card:hover, .mep-card:focus-visible { transform: none; }
}
