:root {
    --blue: #17458f;
    --blue-deep: #0e2d63;
    --gold: #f7a81b;
    --gold-soft: #ffe3a3;
    --sky: #00a1df;
    --red: #dc1c2e;
    --ink: #152238;
    --muted: #5b6b82;
    --paper: #f6f4ef;
    --white: #fff;
    --line: rgba(23, 69, 143, .12);
    --shadow: 0 18px 50px rgba(14, 45, 99, .12);
    --radius: 22px;
    --font: "Manrope", system-ui, sans-serif;
    --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 20; }

.topbar {
    background: var(--blue-deep);
    color: #d7e4ff;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    padding: 7px 12px;
}
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 110px; gap: 16px; }
.brand img { height: 92px; width: auto; background: #fff; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { color: var(--ink); font-weight: 700; font-size: 14px; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 999px; padding: 12px 20px;
    font-weight: 800; cursor: pointer; font-family: inherit;
}
.btn-gold { background: var(--gold); color: var(--blue-deep); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-red { background: var(--red); color: #fff; }
.text-link { font-weight: 800; color: var(--blue); }

.hero { position: relative; min-height: 78vh; display: grid; place-items: end start; overflow: hidden; background: var(--blue-deep); }
.hero-slide, .hero-fallback { position: absolute; inset: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.hero-slide::after, .hero-fallback::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14,45,99,.82) 8%, rgba(14,45,99,.28) 70%);
}
.hero-fallback { background: radial-gradient(circle at 80% 20%, var(--sky), var(--blue-deep)); }
.hero-copy { position: relative; z-index: 1; padding: 8vh 0 11vh; width: min(1180px, calc(100% - 32px)); margin-inline: auto; color: #fff; max-width: 720px; }
.hero-copy h1 { font-size: clamp(42px, 7vw, 78px); }
.hero-copy p { font-size: 19px; color: #e8eefc; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; font-family: var(--font); }

.polio-meter {
    background: var(--red);
    color: #fff;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}
.meter-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; flex-wrap: wrap; }
.polio-badge { background: var(--gold); color: var(--blue-deep); padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.meter-value { font-family: var(--serif); font-size: clamp(32px, 5vw, 54px); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.meter-value.is-ticking { text-shadow: 0 0 18px rgba(255, 255, 255, .35); }
.meter-xl.is-ticking { text-shadow: 0 0 18px rgba(220, 28, 46, .25); }
.mini-meter strong { display: block; color: var(--gold); font-size: 22px; font-variant-numeric: tabular-nums; }
.meter-xl { font-size: clamp(44px, 7vw, 72px); color: var(--red); }
.mini-meter { display: block; margin-top: 16px; background: rgba(255,255,255,.08); padding: 12px; border-radius: 14px; color: #fff; }
.mini-meter strong { display: block; color: var(--gold); font-size: 22px; }

.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card a { color: inherit; display: block; height: 100%; }
.card img, .card-photo-fallback { width: 100%; height: 220px; object-fit: cover; background: var(--blue); }
.card-featured { grid-row: span 2; }
.card-featured img, .card-featured .card-photo-fallback { height: 340px; }
.card-body { padding: 18px 20px 22px; }
.card-body time { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-body h3 { font-size: 26px; }
.card-featured h3 { font-size: 34px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.ad-slot { padding: 10px 0 30px; }
.ad-placeholder, .banner-item img {
    border-radius: 18px; width: 100%;
}
.banner-item img { max-height: 180px; object-fit: cover; }
.ad-placeholder {
    border: 1.5px dashed rgba(23,69,143,.28);
    background: repeating-linear-gradient(-45deg, #f8f5ee, #f8f5ee 12px, #fff 12px, #fff 24px);
    min-height: 110px; display: grid; place-content: center; text-align: center; color: var(--muted); padding: 24px;
}
.ad-side { margin-bottom: 18px; }
.ad-side .ad-placeholder { min-height: 180px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; }
.event-row { display: grid; grid-template-columns: 74px 1fr; gap: 14px; background: #fff; padding: 16px; border-radius: 18px; margin-bottom: 12px; box-shadow: var(--shadow); color: inherit; }
.event-date { background: var(--blue); color: #fff; border-radius: 14px; display: grid; place-items: center; font-weight: 800; text-transform: uppercase; font-size: 12px; }
.event-date span { font-family: var(--serif); font-size: 24px; display: block; }
.action-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; background: #fff; border-radius: 18px; overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); color: inherit; }
.action-card img { width: 110px; height: 100%; object-fit: cover; }
.action-card div { padding: 14px 14px 14px 0; }

.cta-band { background: var(--blue); color: #fff; padding: 70px 0; text-align: center; }
.cta-band h2 { font-size: clamp(32px, 5vw, 52px); }
.page-hero { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; padding: 56px 0 42px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 58px); }
.layout-with-side, .article-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding: 42px 0 70px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.lead { font-size: 22px; color: var(--muted); }
.event-meta { font-weight: 800; color: var(--blue); }
.rich-text { font-size: 18px; }
.rich-text h2 { margin-top: 1.4em; }
.rich-text p { margin-bottom: 1em; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; }
.gallery-page img { height: 220px; }
.side-box { background: var(--paper); padding: 18px; border-radius: 18px; margin-bottom: 16px; }
.mini-card { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; font-weight: 700; }
.narrow { max-width: 800px; padding: 42px 0 80px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.form input, .form textarea, .form select {
    border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit;
}
.alert { padding: 12px 14px; border-radius: 12px; }
.alert.success { background: #e8f8ee; }
.alert.error { background: #fde8ea; }
.map { width: 100%; min-height: 240px; border: 0; border-radius: 16px; }
.contact-grid { padding: 42px 0 80px; }
.press-note { background: var(--paper); padding: 28px; border-radius: 22px; margin: 32px 0; }
.press-page { padding: 42px 0 80px; display: grid; gap: 48px; }
.release-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--paper); padding: 18px 20px; border-radius: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.release-row h3 { font-size: 22px; margin: 0 0 4px; }
.press-album { margin-bottom: 36px; }
.press-album-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.album-releases { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.press-photo { margin: 0; }
.press-photo .download-link { display: block; font-size: 13px; font-weight: 700; padding: 8px 0 12px; }

.polio-hero { background: var(--red); color: #fff; padding: 64px 0 48px; }
.polio-hero h1 { font-size: clamp(40px, 7vw, 72px); }
.polio-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; padding: 42px 0 80px; }
.meter-card, .donate-card { background: var(--paper); padding: 24px; border-radius: 22px; }
.donate-card { background: #fff; box-shadow: var(--shadow); }
.qr-box { margin-top: 16px; text-align: center; }
.qr-placeholder { height: 220px; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 16px; font-weight: 800; color: var(--muted); }
.form-error { color: var(--red); font-weight: 700; }

.site-footer { background: var(--blue-deep); color: #d5e0f5; padding: 54px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr .9fr; gap: 24px; }
.footer-logo { height: 70px; width: auto; margin-bottom: 12px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.site-footer h2 { color: #fff; font-size: 16px; font-family: var(--font); letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 13px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.muted { color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(10,18,36,.92); display: grid; place-items: center; z-index: 50; padding: 24px; }
.lightbox img { max-width: min(1100px, 100%); max-height: 90vh; }

div[vw] {
    display: none !important;
}
.side-dock {
    position: fixed;
    right: 10px;
    top: calc(50vh + 28px);
    z-index: 2147483638;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.side-dock-btn,
.a11y-btn {
    display: grid;
    gap: 0;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 40, 80, .28);
    flex: 0 0 40px;
    text-decoration: none;
}
.a11y-btn {
    background: #3389ff;
    font: 700 7px/1 var(--font);
}
.a11y-btn span[aria-hidden] { font-size: 12px; letter-spacing: 0; }
.side-social {
    position: relative;
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    color: #152238;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 40, 80, .28);
    transition: width .5s ease;
}
.side-social:hover,
.side-social:focus-visible {
    width: 200px;
    outline: none;
}
.side-social-tip {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 46px 0 14px;
    white-space: nowrap;
    font: 700 12px/1 var(--font);
}
.side-social-icon {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #fff;
    transition: filter .5s ease;
}
.side-social:hover .side-social-icon,
.side-social:focus-visible .side-social-icon {
    filter: brightness(1.1);
}
.side-dock-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.side-dock-fb {
    background: #1877f2;
}
.side-social-icon svg,
.side-dock-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}
.braille-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(440px, 100%);
    height: 100vh;
    z-index: 2147483640;
    background: #0e2d63;
    color: #fff;
    overflow: auto;
    box-shadow: -16px 0 40px rgba(0,0,0,.25);
}
.braille-panel[hidden] { display: none; }
.braille-panel-inner { padding: 22px 20px 80px; }
.braille-panel h2 { color: #fff; font-size: 28px; }
.braille-panel .eyebrow { color: var(--gold); }
.a11y-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}
.braille-panel-inner header { position: relative; padding-right: 48px; }
.braille-out {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 22px;
    line-height: 1.8;
    background: rgba(255,255,255,.08);
    padding: 16px;
    border-radius: 16px;
}

.pagination { display: flex; gap: 6px; list-style: none; padding: 24px 0; }
.pagination a, .pagination span, .page-link { padding: 8px 12px; border-radius: 10px; background: var(--paper); color: var(--ink); display: block; }
.pagination .active span, .page-item.active .page-link { background: var(--blue); color: #fff; }

@media (max-width: 980px) {
    .news-grid, .cards-3, .split, .layout-with-side, .article-grid, .footer-grid, .polio-layout, .gallery-grid, .release-row, .press-album-head { grid-template-columns: 1fr; }
    .card-featured { grid-row: auto; }
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 92px; background: #fff; padding: 16px; flex-direction: column; align-items: flex-start; box-shadow: var(--shadow); }
    .site-nav.open { display: flex; }
    .action-card { grid-template-columns: 1fr; }
    .action-card img { width: 100%; height: 160px; }
}
