/* ========================================
   mishkazel.com — Maxim Mikhailov (English site)
   Palette: ink navy #1E2B4F, burgundy #8A2D3B, brass #C7A24A, parchment #F1ECE1
   Mobile-first, no dependencies
   ======================================== */

:root {
    /* Palette "politics / political science / economics": ink navy, burgundy, brass, parchment. Variable names kept from the original stylesheet so the rules below need no changes. */
    --er-blue: #1E2B4F;
    --er-blue-dark: #121B33;
    --er-red: #8A2D3B;
    --er-red-dark: #6B1F2C;
    --gold: #C7A24A;
    --gold-dark: #A8862F;
    --gold-pale: #F3E6C3;
    --white: #ffffff;
    --gray-50: #FAF7F1;
    --gray-100: #F1ECE1;
    --gray-300: #CFC8B8;
    --gray-600: #5F6470;
    --gray-900: #1C2027;
    --shadow-sm: 0 2px 8px rgba(30, 43, 79, 0.08);
    --shadow-md: 0 6px 24px rgba(30, 43, 79, 0.12);
    --radius: 8px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PT Sans", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--er-blue);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--er-red);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    border-bottom: 3px solid var(--er-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    color: var(--er-blue);
}

.logo__mark {
    width: 40px;
    height: 40px;
    background: var(--er-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
}

.logo__text {
    line-height: 1.2;
}

.logo__text small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.nav {
    display: none;
}

.nav__list {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav__link {
    color: var(--gray-900);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--er-blue);
    border-bottom-color: var(--er-red);
}

.btn-vote {
    display: inline-block;
    background: var(--er-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.btn-vote:hover {
    background: var(--er-red-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 26px;
    height: 3px;
    background: var(--er-blue);
    border-radius: 2px;
    transition: .3s;
}

@media (min-width: 900px) {
    .nav { display: block; }
    .burger { display: none; }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--er-blue) 0%, var(--er-blue-dark) 100%);
    color: var(--white);
    padding: 48px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 162, 74, .22) 0%, transparent 60%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__photo {
    order: -1;
    text-align: center;
}

.hero__photo img {
    max-width: 320px;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}

.hero__badge {
    display: inline-block;
    background: var(--er-red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.hero__title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero__subtitle {
    font-size: clamp(16px, 3vw, 20px);
    opacity: .9;
    margin-bottom: 24px;
    line-height: 1.4;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hero__meta span {
    background: rgba(255, 255, 255, .15);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-vote--big {
    padding: 16px 32px;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(138, 45, 59, .35);
}

.hero__date {
    font-size: 14px;
    opacity: .9;
}

.btn-vote--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .85);
}

.btn-vote--outline:hover {
    background: var(--white);
    color: var(--er-blue);
}

@media (min-width: 768px) {
    .hero__grid {
        grid-template-columns: 1.4fr 1fr;
    }
    .hero__photo {
        order: 1;
    }
    .hero__photo img {
        max-width: 100%;
    }
}

/* ===== COUNTDOWN ===== */
.countdown {
    background: var(--er-red);
    color: var(--white);
    padding: 16px;
    text-align: center;
    font-weight: 600;
}

.countdown strong {
    font-size: 18px;
    margin: 0 6px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 56px 0;
}

.section--gray {
    background: var(--gray-50);
}

.section__title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--er-blue);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section__subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PROGRAM CARDS ===== */
.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.program-summary {
    margin: 32px 0 40px;
}

.program-summary h2 {
    color: var(--er-blue);
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 20px;
    text-align: center;
}

.program-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 40px;
}

.program-toc a {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 14px;
}

.program-toc a:hover {
    background: var(--er-blue);
    border-color: var(--er-blue);
    color: var(--white);
}

.program-card {
    background: var(--white);
    border-left: 5px solid var(--er-red);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.program-card__num {
    display: inline-block;
    background: var(--er-blue);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.program-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--er-blue);
    margin-bottom: 8px;
}

.program-card__text {
    color: var(--gray-600);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .program-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .program-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .program-card:nth-child(5) {
        grid-column: auto;
        max-width: none;
    }
}

/* ===== ABOUT ===== */
.about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.about__photo img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.about__text h3 {
    font-size: 22px;
    color: var(--er-blue);
    margin-bottom: 16px;
}

.about__text p {
    margin-bottom: 14px;
    color: var(--gray-900);
}

.about__list {
    list-style: none;
    margin: 16px 0;
}

.about__list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}

.about__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--er-red);
    font-weight: 800;
    font-size: 18px;
}

@media (min-width: 768px) {
    .about {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* ===== DISTRICT ===== */
.district {
    background: var(--er-blue);
    color: var(--white);
    padding: 48px 24px;
    border-radius: var(--radius);
    text-align: center;
    margin: 32px 0;
}

.district h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.district__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin-top: 20px;
}

.district__list li {
    background: rgba(255, 255, 255, .15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* ===== HOW TO VOTE ===== */
.steps {
    counter-reset: step;
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.steps li {
    counter-increment: step;
    background: var(--white);
    padding: 24px 24px 24px 80px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    position: relative;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--er-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
}

.steps li h4 {
    color: var(--er-blue);
    margin-bottom: 6px;
    font-size: 18px;
}

/* ===== CTA-BLOCK ===== */
.cta-block {
    background: linear-gradient(135deg, var(--er-red) 0%, var(--er-red-dark) 100%);
    color: var(--white);
    padding: 56px 24px;
    text-align: center;
    border-radius: var(--radius);
    margin: 48px 0;
}

.cta-block h2 {
    font-size: clamp(22px, 4vw, 32px);
    margin-bottom: 16px;
}

.cta-block p {
    margin-bottom: 24px;
    font-size: 18px;
    opacity: .95;
}

.cta-block .btn-vote {
    background: var(--white);
    color: var(--er-red);
    font-size: 18px;
    padding: 16px 36px;
}

.cta-block .btn-vote:hover {
    background: var(--gray-100);
    color: var(--er-red-dark);
}

.program-section {
    max-width: 900px;
    margin: 0 auto 40px;
}

.program-section h2,
.program-block h3 {
    color: var(--er-blue);
    line-height: 1.25;
    margin: 32px 0 14px;
}

.program-section p,
.program-block p {
    margin-bottom: 14px;
}

.program-block {
    scroll-margin-top: 96px;
}

/* ===== NEWS ===== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card__img {
    height: 200px;
    background: var(--gray-100);
    background-size: cover;
    background-position: center;
}

.news-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__date {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.news-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--er-blue);
    margin-bottom: 12px;
    flex: 1;
}

.news-card__more {
    color: var(--er-red);
    font-weight: 600;
    font-size: 14px;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== FORM ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--er-blue);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--er-blue);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .btn-vote {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-info__card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.contact-info__icon {
    width: 56px;
    height: 56px;
    background: var(--er-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.contact-info__card h4 {
    color: var(--er-blue);
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 40px 0 20px;
    margin-top: 64px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer__col h5 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 16px;
}

.footer__col ul {
    list-style: none;
}

.footer__col li {
    margin-bottom: 8px;
}

.footer__col a {
    color: var(--gray-300);
    font-size: 14px;
}

.footer__col a:hover {
    color: var(--white);
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.socials a {
    width: 40px;
    height: 40px;
    background: var(--er-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    transition: background .2s;
}

.socials a:hover {
    background: var(--er-red);
    color: var(--white);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-600);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ===== UTILS ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== MOBILE NAV ===== */
.nav.is-open {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--er-red);
}

.nav.is-open .nav__list {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}



.filter-bar {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar__label {
    font-weight: 600;
    color: var(--er-blue);
    font-size: 14px;
    white-space: nowrap;
}

.filter-bar__select {
    padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    min-width: 240px;
    cursor: pointer;
    transition: border-color .2s;
}

.filter-bar__select:focus {
    outline: none;
    border-color: var(--er-blue);
    box-shadow: 0 0 0 3px rgba(30, 43, 79, .12);
}

.filter-bar__count {
    margin-left: auto;
    font-size: 13px;
    color: var(--gray-600);
}

.candidate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.candidate-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    border-left: 4px solid var(--er-blue);
    transition: transform .2s, box-shadow .2s;
}

.candidate-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.candidate-card--featured {
    border-left-color: var(--er-red);
    border-left-width: 6px;
    background: linear-gradient(135deg, #F4EFE4 0%, #fff 100%);
    order: -1;
}

.candidate-card__district {
    display: inline-block;
    background: var(--er-blue);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.candidate-card--featured .candidate-card__district {
    background: var(--er-red);
}

.candidate-card__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--er-blue);
    margin-bottom: 6px;
}

.candidate-card__info {
    color: var(--gray-600);
    font-size: 13px;
    margin-bottom: 14px;
}

.candidate-card__link {
    font-size: 13px;
}

@media (min-width: 576px) {
    .candidate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .candidate-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* News feed */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #DDD6C8;
    border-radius: var(--radius);
    overflow: hidden;
}

.news-feed__item {
    background: var(--white);
    padding: 20px 24px;
    transition: background .2s;
}

.news-feed__item:hover {
    background: #F4EFE4;
}

.news-feed__date {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

.news-feed__title {
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 8px;
}

.news-feed__title a {
    color: var(--er-blue);
    text-decoration: none;
}

.news-feed__title a:hover {
    color: var(--er-red);
    text-decoration: underline;
}

.news-feed__text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* ===== Additions 28.09.2026: directory pages, cookie bar, form ===== */
.btn-vote--small { padding: 8px 16px; font-size: 13px; }
.cookie-bar {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
    background: var(--gray-900); color: var(--white); border-radius: var(--radius);
    padding: 14px 16px; box-shadow: var(--shadow-md);
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 13px; line-height: 1.4; flex: 1 1 260px; }
.cookie-bar a { color: #fff; text-decoration: underline; }
@media (min-width: 768px) { .cookie-bar { left: auto; max-width: 560px; } }

.form-group--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; cursor: pointer; }
.form-group--check input { margin-top: 4px; width: auto; }
.form-note { margin: 12px 0; font-size: 14px; color: var(--er-red); }
.form-note[hidden] { display: none; }
.form-note.is-ok { color: var(--er-blue); }

.program-section h2 { margin-top: 36px; }
.program-section h3 { color: var(--er-blue); margin: 28px 0 12px; font-size: 20px; }
.program-section p, .program-section li { line-height: 1.7; }
.program-section ol, .program-section ul.plain { padding-left: 24px; margin: 8px 0 16px; }
.program-section ol li, .program-section ul.plain li { margin-bottom: 8px; }
.bio__links { font-size: 17px; line-height: 2; }

.ref-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 24px 0 8px; }
@media (min-width: 768px) { .ref-grid { grid-template-columns: 1fr 1fr; } }
.ref-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 22px 18px; border-top: 4px solid var(--er-blue); }
.ref-card h3 { color: var(--er-blue); font-size: 19px; margin-bottom: 10px; }
.ref-card dl { margin: 0; }
.ref-card dt { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-600); margin-top: 10px; }
.ref-card dd { margin: 2px 0 0; line-height: 1.55; }
.ref-card .ref-card__note { font-size: 14px; color: var(--gray-600); margin-top: 12px; }
.section--gray .ref-card { box-shadow: none; border: 1px solid var(--gray-100); }

.notice { background: #FBF4E3; border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: var(--radius); margin: 20px 0; line-height: 1.6; }
.notice--blue { background: #ECEEF4; border-left-color: var(--er-blue); }

.faq details { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--er-blue); padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--er-red); }
.faq details[open] summary::after { content: '−'; }
.faq details p, .faq details ul { padding-bottom: 14px; line-height: 1.65; }
.faq details ul { padding-left: 22px; }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; background: var(--white); }
.table-wrap th, .table-wrap td { border: 1px solid var(--gray-100); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.5; }
.table-wrap th { background: var(--gray-50); color: var(--er-blue); }

.legal { max-width: 760px; }
.legal h3 { color: var(--er-blue); margin: 26px 0 10px; }
.legal p, .legal li { line-height: 1.8; margin-bottom: 12px; }
.legal ul { padding-left: 24px; }
.legal__date { color: var(--gray-600); margin-bottom: 24px; }

.toc { background: var(--gray-50); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 28px; }
.toc ol { padding-left: 22px; margin: 0; }
.toc li { margin: 4px 0; }

/* Menu: 8 items on one line on desktop */
@media (min-width: 900px) {
    .nav__list { gap: 14px; }
    .nav__link { white-space: nowrap; font-size: 14px; }
}
@media (min-width: 1200px) {
    .nav__list { gap: 20px; }
    .nav__link { font-size: 15px; }
}

.join-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 16px; background: var(--white); }

.breadcrumbs { font-size: 14px; color: var(--gray-600); margin-bottom: 12px; }
.breadcrumbs a { color: var(--er-blue); }

/* ===== BIO GALLERY ===== */
.bio-gallery { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 8px 0 26px; align-items: start; }
@media (min-width: 560px) { .bio-gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .bio-gallery { grid-template-columns: repeat(3, 1fr); } }
.bio-gallery figure { margin: 0; }
.bio-gallery img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--gray-100); }
.bio-gallery figcaption { font-size: 14px; line-height: 1.5; color: var(--gray-600); margin-top: 8px; }

/* ===== PHOTO (single photo inserted from the editor) ===== */
.photo { margin: 18px 0 24px; }
.photo img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--gray-100); }
.photo figcaption { font-size: 14px; line-height: 1.5; color: var(--gray-600); margin-top: 8px; }
@media (min-width: 768px) { .photo--half { max-width: 50%; } .photo--left { float: left; max-width: 45%; margin: 6px 24px 12px 0; } .photo--right { float: right; max-width: 45%; margin: 6px 0 12px 24px; } }
.program-section::after, .bio::after { content: ""; display: table; clear: both; }


/* ===== THEME: political-science look (mishkazel.com) ===== */
h1, h2, h3, h4, .section__title, .hero__title, .logo__text, .district h3, .cta-block h2, .footer h5 {
    font-family: Georgia, "PT Serif", "Noto Serif", "Times New Roman", serif;
    letter-spacing: -0.01em;
}
.logo__text small { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PT Sans", Roboto, sans-serif; letter-spacing: 0; }
.hero { background: linear-gradient(135deg, var(--er-blue) 0%, var(--er-blue-dark) 100%); }
.hero__badge { background: rgba(199, 162, 74, .18); color: var(--gold-pale); border: 1px solid rgba(199, 162, 74, .55); }
.hero__meta span { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); }
.btn-vote--outline { border-color: rgba(243, 230, 195, .7); color: var(--gold-pale); }
.btn-vote--outline:hover { background: var(--gold-pale); color: var(--er-blue-dark); border-color: var(--gold-pale); }
.nav__link.is-active { border-bottom-color: var(--gold); }
.program-card { border-left-color: var(--gold); }
.program-card__num { background: var(--er-blue); }
.about__list li::before { color: var(--gold-dark); }
.ref-card { border-top-color: var(--gold); }
.district { background: linear-gradient(135deg, var(--er-blue) 0%, var(--er-blue-dark) 100%); }
.district__list li { background: rgba(255, 255, 255, .09); border: 1px solid rgba(199, 162, 74, .35); }
.cta-block { background: linear-gradient(135deg, var(--er-red) 0%, var(--er-red-dark) 100%); }
.footer { background: var(--er-blue-dark); color: #C9CDD8; }
.footer h5 { color: var(--gold-pale); }
.socials a { background: rgba(255, 255, 255, .08); border: 1px solid rgba(199, 162, 74, .45); color: var(--gold-pale); }
.socials a:hover { background: var(--gold); color: var(--er-blue-dark); }
.section__title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin: 12px auto 0; border-radius: 2px; }
.news-feed__date { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .06em; }
.contact-info__icon { background: var(--er-blue); }
.photo img, .bio-gallery img, .about__photo img { border: 1px solid var(--gray-300); }
