:root {
    --ink: #071f4b;
    --muted: #657794;
    --paper: #f6f9fe;
    --surface: #ffffff;
    --line: #dbe5f2;
    --green: #075ee8;
    --green-dark: #034dbf;
    --mint: #eaf3ff;
    --amber: #ff7a19;
    --brand-blue: #075ee8;
    --brand-navy: #071f4b;
    --shadow: 0 18px 45px rgba(7, 31, 75, 0.1);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: var(--green-dark); }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
}
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 20; }
.skip-link:focus { left: 16px; padding: 10px 14px; background: var(--surface); border-radius: 8px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); }
.header-row { min-height: 72px; display: flex; align-items: center; gap: 30px; }
.brand { color: var(--brand-navy); text-decoration: none; font-weight: 800; }
.brand-wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 1.72rem; letter-spacing: -.045em; }
.brand-wordmark span { color: var(--brand-blue); }
.primary-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.primary-nav > a, .nav-group > summary { color: #1c365f; text-decoration: none; font-size: .86rem; font-weight: 750; white-space: nowrap; padding: 5px 0; border-bottom: 2px solid transparent; }
.primary-nav > a:hover, .nav-group > summary:hover { color: var(--brand-blue); }
.primary-nav > a.is-active, .nav-group.is-active > summary, .nav-group[open] > summary { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }
.nav-mobile-actions { display: none; }
.nav-secondary { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login, .header-action { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 10px; text-decoration: none; font-size: .84rem; font-weight: 800; }
.header-login { color: var(--brand-navy); border: 1px solid var(--line); background: #fff; }
.header-login:hover { color: var(--brand-blue); border-color: var(--brand-blue); }
.header-action { color: #fff; border: 1px solid var(--brand-blue); background: var(--brand-blue); box-shadow: 0 8px 20px rgba(7, 94, 232, .17); }
.header-action:hover { color: #fff; background: #034dbf; }
.menu-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--brand-navy); }
.beta-badge { display: inline-flex; align-items: center; margin-left: 10px; padding: 2px 8px; border: 1px solid rgba(7, 94, 232, .28); border-radius: 999px; color: var(--brand-blue); background: rgba(7, 94, 232, .08); font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; cursor: default; }
.nav-group { position: relative; }
.nav-group > summary { list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: "\25BE"; display: inline-block; margin-left: 6px; font-size: .7rem; opacity: .7; transition: transform .15s ease; }
.nav-group[open] > summary::after { transform: rotate(180deg); }
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #1c365f; border-radius: 10px; }
.nav-search:hover { color: var(--brand-blue); background: rgba(7, 94, 232, .07); }
.nav-election { color: var(--brand-blue); font-weight: 800; }
.nav-group-menu { position: absolute; top: calc(100% - 4px); right: 0; left: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(12, 34, 71, .17); z-index: 60; }
.nav-group-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-data { width: 440px; max-width: calc(100vw - 40px); }
.nav-data a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px; text-decoration: none; }
.nav-data a:hover { background: rgba(7, 94, 232, .07); }
.nav-data strong { color: var(--brand-navy); font-size: .92rem; font-weight: 800; }
.nav-data a:hover strong { color: var(--brand-blue); }
.nav-data span { color: var(--muted); font-size: .78rem; line-height: 1.35; }

.catalog-hero { padding: 68px 0 42px; background: radial-gradient(circle at 85% 15%, #d7e8ff 0, transparent 32%), linear-gradient(180deg, #edf5ff, var(--paper)); }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: .82rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.catalog-hero h1, .detail-hero h1 { max-width: 820px; margin: 0; font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
.catalog-hero p.lead, .detail-hero p.lead { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 1.12rem; }
.catalog-search { max-width: 720px; margin-top: 30px; }
.catalog-search label { display: block; margin-bottom: 8px; font-weight: 700; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; }
.search-row select { min-width: 220px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; }
.search-row button { padding: 14px 22px; border: 0; border-radius: 12px; color: white; background: var(--green); font: inherit; font-weight: 750; cursor: pointer; }
.filter-form { max-width: 980px; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.filter-grid label { display: grid; gap: 6px; color: var(--ink); font-size: .88rem; font-weight: 750; }
.filter-grid select { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.filter-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.filter-actions button { padding: 11px 16px; border: 0; border-radius: 10px; color: #fff; background: var(--green); font: inherit; font-weight: 800; cursor: pointer; }

.catalog-section { padding: 42px 0 78px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.result-count { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-card { display: flex; flex-direction: column; min-height: 250px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(23, 35, 29, .03); }
.catalog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); transition: .2s ease; }
.card-kicker { color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.catalog-card h2, .catalog-card h3 { margin: 8px 0 10px; font-size: 1.3rem; line-height: 1.2; }
.catalog-card h2 a, .catalog-card h3 a { color: var(--ink); text-decoration: none; }
.catalog-card p { margin: 0 0 12px; color: var(--muted); }
.card-facts { display: grid; gap: 7px; margin: 8px 0 18px; font-size: .92rem; }
.card-facts strong { color: var(--ink); }
.catalog-card .source-link { margin-top: auto; }
.politician-participation-group + .politician-participation-group { margin-top: 52px; padding-top: 42px; border-top: 1px solid var(--line); }
.politician-group-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 20px; }
.politician-group-heading h2 { margin: 0 0 7px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.politician-group-heading p { max-width: 820px; margin: 0; color: var(--muted); }
.politician-group-heading > span { display: inline-grid; min-width: 38px; height: 38px; padding: 0 10px; place-items: center; border-radius: 999px; color: var(--green-dark); background: var(--mint); font-weight: 850; }
.politician-group-empty { padding: 24px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: #f8fbff; }
.politician-card.is-participating { border-top: 4px solid var(--green); }
.politician-card.is-not-participating .card-kicker { color: #6d7788; }
@media (max-width: 640px) { .politician-group-heading { align-items: flex-start; } }
.avatar { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 12px; border-radius: 16px; color: var(--green-dark); background: var(--mint); font-size: 1.25rem; font-weight: 850; }
.empty-state { padding: 42px; border: 1px dashed #b8c5bb; border-radius: var(--radius); text-align: center; background: rgba(255,255,255,.55); }
.empty-state h2, .empty-state h3 { margin-top: 0; }
.empty-state-description { color: var(--muted); max-width: 560px; margin: 8px auto 0; }
.empty-state-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.empty-state-action { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--radius); background: var(--brand, #1f5fd6); color: #fff; text-decoration: none; font-weight: 600; }
.empty-state-link { display: inline-flex; align-items: center; padding: 10px 18px; text-decoration: none; color: var(--brand, #1f5fd6); font-weight: 600; }
.empty-state-link:hover, .empty-state-action:hover { opacity: .92; }
.muted { color: var(--muted); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 48px; align-items: center; }
.home-hero { padding-block: 82px 64px; }
.hero-note { padding: 24px; border: 1px solid #cbdcf3; border-radius: var(--radius); background: rgba(255,255,255,.8); box-shadow: var(--shadow); }
.hero-note strong { font-size: 1.08rem; }
.hero-note ul { margin: 14px 0 0; padding-left: 20px; }
.hero-note li + li { margin-top: 7px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.primary-action, .secondary-action { display: inline-flex; justify-content: center; padding: 11px 17px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.primary-action { color: #fff; background: var(--green); }
.primary-action:hover { color: #fff; background: var(--green-dark); }
.secondary-action { border: 1px solid var(--green); background: rgba(255,255,255,.55); }
.compact-section { padding-bottom: 46px; }
.section-tint { background: #edf5ff; border-block: 1px solid var(--line); }
.compact-card { min-height: 190px; }
.compact-card small { margin-top: auto; color: var(--muted); }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ranking-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.ranking-list li { counter-increment: rank; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ranking-list li::before { content: counter(rank); display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--green-dark); background: var(--mint); font-weight: 850; }
.ranking-list li:last-child { border-bottom: 0; }
.ranking-list li > div { display: grid; flex: 1; gap: 3px; }
.ranking-list li span { color: var(--muted); font-size: .9rem; }
.ranking-list .ranking-value { flex: 0 0 auto; color: var(--ink); font-weight: 800; }
.compact-ranking li a { flex: 1; font-weight: 750; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps-grid li { padding: 24px; border-radius: var(--radius); background: var(--surface); }
.steps-grid li > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: var(--green); font-weight: 850; }
.steps-grid h3 { margin: 16px 0 7px; }
.steps-grid p { margin: 0; color: var(--muted); }
.independence-note { max-width: 820px; margin-top: 24px; padding: 22px 24px; border-left: 5px solid var(--amber); background: var(--surface); }
.independence-note h3 { margin: 0 0 6px; }
.independence-note p { margin: 0; }
.compact-hero { padding-block: 48px 34px; }
.search-results { display: grid; gap: 12px; }
.search-results article { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.search-results h3 { margin: 6px 0; }
.search-results p { margin: 0; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.pagination a, .pagination span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.pagination a { font-weight: 750; text-decoration: none; }
.pagination [aria-disabled="true"] { color: var(--muted); opacity: .65; }

.source-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--green-dark); font-size: .78rem; font-weight: 700; text-decoration: none; }
.source-link-muted { color: var(--muted); }
.correction-link { display: inline-flex; width: fit-content; margin-top: 8px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--green-dark); background: var(--mint); font-size: .76rem; font-weight: 800; }
.card-kicker-warning { color: #8a5700; }

.detail-hero { padding: 58px 0 36px; background: linear-gradient(145deg, #e8f2ff, #f8fbff); border-bottom: 1px solid var(--line); }
.breadcrumbs { margin-bottom: 24px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: inherit; }
.detail-title-row { display: flex; align-items: start; gap: 20px; }
.detail-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 24px; color: white; background: var(--green); font-size: 2rem; font-weight: 850; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.detail-body { padding: 42px 0 80px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
.content-stack { display: grid; gap: 24px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel h2 { margin: 0 0 16px; font-size: 1.35rem; }
.panel h3 { margin: 0 0 6px; font-size: 1.05rem; }
.fact-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fact-item { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fact-item:last-child { padding-bottom: 0; border-bottom: 0; }
.fact-item p { margin: 4px 0 8px; color: var(--muted); }
.definition-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-scroll table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table-scroll th, .table-scroll td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.table-scroll th:first-child, .table-scroll td:first-child { text-align: left; }
.table-scroll thead th { color: var(--muted); background: #f5f8fc; font-size: .82rem; }
.table-scroll tbody tr:last-child th, .table-scroll tbody tr:last-child td { border-bottom: 0; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.external-list { display: grid; gap: 8px; }
.question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.question-card { min-height: 320px; }
.question-card > p { font-size: 1rem; color: var(--ink); }
.topic-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.topic-list a, .detail-meta a { text-decoration: none; }
.question-detail-hero h1 { max-width: 940px; }
.question-context { white-space: pre-line; }
.source-list a { overflow-wrap: anywhere; }
.preview-toolbar { padding: 18px 0; color: #fff; background: var(--ink); }
.preview-toolbar .shell { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.preview-toolbar p { margin: 4px 0 0; color: #c5d2c9; }
.preview-toolbar a { color: #fff; }
.publication-panel { padding: 0 0 72px; }
.publication-panel form, .publication-panel > .shell > p { padding: 24px; border: 2px solid var(--green); border-radius: var(--radius); background: var(--surface); }
.publication-panel fieldset { border: 0; margin: 0; padding: 0; }
.publication-panel legend { margin-bottom: 14px; font-size: 1.25rem; font-weight: 800; }
.topic-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.topic-options label { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.publish-button { padding: 13px 20px; border: 0; border-radius: 10px; color: #fff; background: var(--green); font: inherit; font-weight: 800; cursor: pointer; }
.support-panel { border-color: #bfd5f2; background: linear-gradient(145deg, #fff, #edf5ff); }
.support-count { margin: 0 0 14px; color: var(--muted); }
.support-count strong { display: block; color: var(--green-dark); font-size: 2.2rem; line-height: 1; }
.support-action { display: inline-flex; justify-content: center; width: 100%; padding: 12px 16px; border: 0; border-radius: 10px; color: #fff; background: var(--green); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.support-action:hover { color: #fff; background: var(--green-dark); }
.support-confirmed { margin: 0; color: var(--green-dark); font-weight: 800; }
.silence-panel { overflow: hidden; }
.silence-panel-prolonged { border-color: #d9a441; background: linear-gradient(145deg, #fff, #fff8e8); }
.silence-alert { padding: 13px 15px; border-left: 4px solid #b97800; border-radius: 8px; color: #694500; background: #fff3d6; font-weight: 750; }
.silence-timeline { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.silence-timeline li { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding-bottom: 22px; }
.silence-timeline li:not(:last-child)::before { content: ""; position: absolute; top: 13px; bottom: -1px; left: 6px; width: 2px; background: var(--line); }
.silence-timeline-marker { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 3px; border: 3px solid var(--surface); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.silence-timeline strong, .silence-timeline time { display: block; }
.silence-timeline time { margin-top: 3px; color: var(--muted); font-size: .88rem; }
.privacy-note { margin: 0; color: var(--muted); font-size: .84rem; }
.report-panel summary { color: var(--green-dark); font-weight: 750; cursor: pointer; }
.report-panel form { display: grid; gap: 12px; margin-top: 14px; }
.report-panel label { display: grid; gap: 6px; font-weight: 700; }
.report-panel select, .report-panel textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; }
.report-panel textarea { min-height: 110px; resize: vertical; }
.report-panel button { padding: 10px 14px; border: 0; border-radius: 9px; color: #fff; background: var(--green); font: inherit; font-weight: 800; cursor: pointer; }

.site-footer { padding: 46px 0 18px; color: #d6e2f3; background: linear-gradient(180deg, #03275f, #021b43); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 34px; }
.footer-wordmark { display: inline-block; color: #fff; }
.footer-brand p, .footer-note p { max-width: 320px; margin: 10px 0 0; color: #a6b7ce; font-size: .85rem; }
.footer-grid strong { display: block; margin-bottom: 12px; color: #fff; }
.footer-grid nav a { display: block; margin: 8px 0; color: #b4c3d8; text-decoration: none; font-size: .84rem; }
.footer-grid nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 18px; color: #91a4bf; border-top: 1px solid rgba(255, 255, 255, .13); font-size: .76rem; }

@media (max-width: 1180px) {
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .filter-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-actions { display: none; }
    .menu-toggle { display: block; }
    .menu-ready .primary-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 12px;
        background: var(--brand-navy);
        box-shadow: var(--shadow);
    }
    .menu-ready .primary-nav.open { display: flex; }
    .menu-ready .primary-nav a { padding: 12px; color: #fff; }
    .menu-ready .primary-nav .nav-group { width: 100%; }
    .menu-ready .primary-nav .nav-group > summary { padding: 12px; color: #fff; }
    .menu-ready .primary-nav .nav-group-menu { position: static; min-width: 0; padding: 0 0 6px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .menu-ready .primary-nav .nav-group-menu::before { display: none; }
    .menu-ready .primary-nav .nav-data { width: auto; max-width: none; }
    .menu-ready .primary-nav .nav-data a { padding: 8px 12px; }
    .menu-ready .primary-nav .nav-data strong { color: #fff; font-size: .86rem; }
    .menu-ready .primary-nav .nav-data span { display: none; }
    .menu-ready .primary-nav .nav-group-menu a:hover { background: transparent; }
    .menu-ready .primary-nav .nav-search { display: none; }
    .menu-ready .primary-nav .nav-secondary { display: flex; flex-direction: column; order: 2; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .15); }
    .menu-ready .primary-nav .nav-secondary a { padding: 10px 12px; color: rgba(255, 255, 255, .72); font-size: .82rem; }
    .menu-ready .primary-nav .nav-secondary a:hover { color: #fff; }
    .beta-badge { margin-left: 8px; }
    .nav-mobile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; order: 1; }
    .nav-mobile-actions a { padding: 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; text-align: center; color: #fff; }
    .nav-mobile-actions a:first-child { color: var(--brand-navy); border-color: #fff; background: #fff; font-weight: 800; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .header-row { min-height: 64px; }
    .brand-wordmark { font-size: 1.52rem; }
    .menu-ready .primary-nav { top: 64px; }
    .catalog-hero, .detail-hero { padding-top: 42px; }
    .card-grid, .footer-grid, .split-grid, .filter-grid, .steps-grid { grid-template-columns: 1fr; }
    .search-row { flex-direction: column; }
    .search-row select { width: 100%; }
    .question-grid, .topic-options { grid-template-columns: 1fr; }
    .preview-toolbar .shell { align-items: flex-start; flex-direction: column; }
    .detail-title-row { flex-direction: column; }
    .definition-list { grid-template-columns: 1fr; gap: 4px; }
    .definition-list dd { margin-bottom: 8px; }
    .home-hero { padding-block: 48px 36px; }
    .hero-note { padding: 19px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .ranking-list li { align-items: flex-start; flex-wrap: wrap; }
    .ranking-list .ranking-value { margin-left: 52px; }
    .pagination { justify-content: space-between; gap: 8px; font-size: .86rem; }
    .pagination a, .pagination span { padding: 8px; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Публична форма „Задай въпрос" (/zadai-vupros). */
.ask-wrap { max-width: 640px; margin: 0 auto; padding: 56px 0 72px; }
.ask-wrap .eyebrow { color: var(--green); }
.ask-wrap h1 { margin: 8px 0 10px; color: var(--brand-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.04; letter-spacing: -.03em; }
.ask-lead { margin: 0 0 26px; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.ask-card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(12, 34, 71, .07); }
.ask-field { display: block; margin: 0 0 18px; }
.ask-field > span { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 750; font-size: .9rem; }
.ask-field select, .ask-field textarea, .ask-field input { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; }
.ask-field textarea { min-height: 140px; resize: vertical; }
.ask-hint { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.ask-submit { width: 100%; min-height: 48px; margin-top: 4px; border: 0; border-radius: 10px; color: #fff; background: var(--brand-blue); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 24px rgba(7, 94, 232, .18); }
.ask-submit:hover { background: #034dbf; }
.ask-errors { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #f0c2c8; border-radius: 12px; background: #fdeef0; color: #8a1f2b; }
.ask-errors ul { margin: 6px 0 0; padding-left: 18px; }
.ask-note { margin: 16px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.ask-consent { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 20px; color: var(--ink); font-size: .88rem; line-height: 1.5; cursor: pointer; }
.ask-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-blue); }
.ask-consent a { color: var(--brand-blue); font-weight: 700; }
.ask-sent { max-width: 640px; margin: 0 auto; padding: 64px 0 80px; text-align: center; }
.ask-sent h1 { margin: 10px 0 12px; color: var(--brand-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; }
.ask-sent p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.ask-sent strong { color: var(--ink); }
.ask-actions { margin-top: 26px; }
.ask-actions a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 10px; color: #fff; background: var(--brand-blue); font-weight: 800; text-decoration: none; }
.ask-actions a:hover { color: #fff; background: #034dbf; }
.ask-warn { margin-top: 18px; padding: 12px 16px; border: 1px solid #f0d9a8; border-radius: 12px; background: #fdf6e6; color: #8a5a00; font-size: .9rem; }

/* Autocomplete избор на политик в „Задай въпрос". */
.ask-combo > label { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 750; font-size: .9rem; }
.ask-combo-field { position: relative; }
.ask-combo-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px; max-height: 340px; overflow: auto; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 44px rgba(12, 34, 71, .17); }
.ask-opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.ask-opt.is-active, .ask-opt:hover { background: rgba(7, 94, 232, .08); }
.ask-opt-photo { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--mint); }
.ask-opt-initials { display: inline-flex; align-items: center; justify-content: center; color: var(--brand-blue); font-weight: 800; font-size: .85rem; }
.ask-opt-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ask-opt-body strong { color: var(--brand-navy); font-size: .92rem; }
.ask-opt-body span { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Изход бутон в хедъра (auth-aware). */
.header-logout { margin: 0; display: inline-flex; }
.header-logout-btn { cursor: pointer; font: inherit; }
@media (max-width: 900px) {
    .nav-mobile-actions form { margin: 0; width: 100%; }
    .nav-mobile-actions button { width: 100%; padding: 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; text-align: center; color: #fff; background: transparent; font: inherit; cursor: pointer; }
}

/* Потребителско меню (аватар) в хедъра при логнат. */
.account-group > summary { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.account-group > summary:hover { border-color: var(--brand-blue); }
.account-group[open] > summary { border-color: var(--brand-blue); }
.account-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-blue); color: #fff; font-size: .78rem; font-weight: 800; }
.account-name { color: var(--brand-navy); font-size: .84rem; font-weight: 800; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu { right: 0; left: auto; min-width: 224px; padding: 8px; }
.account-menu-head { display: block; padding: 6px 12px 8px; color: var(--muted); font-size: .78rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu a, .account-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: #1c365f; font-size: .88rem; font-weight: 700; text-decoration: none; background: transparent; border: 0; cursor: pointer; font: inherit; }
.account-menu a:hover, .account-menu button:hover { background: rgba(7, 94, 232, .07); color: var(--brand-blue); }
.account-menu-sep { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.account-menu form { margin: 0; }

/* Autocomplete филтър по институция (каталог). */
.filter-combo-field { position: relative; display: block; }
.combo-input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.combo-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px; max-height: 300px; overflow: auto; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 44px rgba(12, 34, 71, .17); }
.combo-results li { padding: 9px 12px; border-radius: 8px; cursor: pointer; color: #1c365f; font-weight: 700; font-size: .9rem; }
.combo-results li.is-active, .combo-results li:hover { background: rgba(7, 94, 232, .08); color: var(--brand-blue); }

/* Покана за заявяване на политически профил. */
.claim-banner { padding: 0 0 8px; }
.claim-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 18px 22px; border: 1px solid rgba(7, 94, 232, .25); border-radius: 16px; background: linear-gradient(180deg, #eef5ff, #fff); }
.claim-banner-text strong { display: block; color: var(--brand-navy); font-size: 1.02rem; }
.claim-banner-text p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; max-width: 760px; }
.claim-banner-btn { flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 10px; color: #fff; background: var(--brand-blue); font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(7, 94, 232, .18); }
.claim-banner-btn:hover { color: #fff; background: #034dbf; }
@media (max-width: 680px) {
    .claim-banner-inner { flex-direction: column; align-items: flex-start; }
    .claim-banner-btn { width: 100%; justify-content: center; }
}

/* „Не намирате политика в списъка?" — заявка за нов политик. */
.ask-proposed { margin: -6px 0 18px; }
.ask-proposed > summary { cursor: pointer; color: var(--brand-blue); font-weight: 700; font-size: .86rem; list-style: none; }
.ask-proposed > summary::-webkit-details-marker { display: none; }
.ask-proposed > summary::before { content: "+ "; font-weight: 800; }
.ask-proposed[open] > summary::before { content: "− "; }
.ask-proposed-body { margin-top: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; background: #fbfdff; }
.ask-proposed-body .ask-field:last-of-type { margin-bottom: 8px; }

/* --- Често задавани въпроси: споделен акордеон (начало + страница ЧЗВ) --- */
.faq-accordion { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq-item[open] { border-color: #c4d6f2; box-shadow: 0 10px 30px rgba(7, 31, 75, 0.06); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 750; color: var(--ink); font-size: 1.02rem; line-height: 1.4; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; border-radius: 14px; }
.faq-question-text { flex: 1 1 auto; }
.faq-chevron { flex: 0 0 auto; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px; }
.faq-item[open] .faq-chevron { transform: rotate(-135deg); margin-top: 2px; border-color: var(--green); }
.faq-answer { padding: 0 20px 20px; color: #33456a; font-size: .98rem; line-height: 1.65; }
.faq-answer p { margin: 0; }
.faq-item[open] .faq-answer { animation: faqReveal .2s ease; }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --- Компактна секция ЧЗВ на началната страница --- */
.landing-faq .faq-accordion { max-width: 820px; margin: 26px auto 0; }
.landing-faq-cta { margin-top: 26px; text-align: center; }
.landing-btn.outline.dark { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.landing-btn.outline.dark:hover { border-color: var(--green); color: var(--green); }

@media (prefers-reduced-motion: reduce) {
    .faq-chevron { transition: none; }
    .faq-item[open] .faq-answer { animation: none; }
}
