* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

body {
    background: #f5f6fa;
    color: #1f2a37;
    line-height: 1.6;
}

a {
    color: #0a5cc2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: #002b5c;
    color: #fff;
    padding: 2.25rem 2rem 1.5rem;
    border-bottom: 6px solid #f4c542;
    position: relative;
}

.branding-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.brand-logo {
    width: 230px;
    max-width: 50vw;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.branding-copy {
    flex: 1;
    min-width: 240px;
}

.branding .eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.branding h1 {
    margin: 0.2rem 0;
    font-size: 1.8rem;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
}

.main-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    padding-left: 0;
}

.main-nav a {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 0.25rem 0.5rem;
    position: relative;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.4rem;
    width: 0;
    height: 2px;
    background: #f4c542;
    transition: width 0.25s ease, left 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #f4c542;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
    left: 0;
}

.nav-toggle {
    display: none;
}

.container {
    width: calc(100% - 2rem);
    max-width: 1500px;
    margin: 2rem auto;
    padding: 2rem 2.5rem;
    background: #f5f6fa;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 38, 82, 0.08);
    box-shadow: 0 15px 40px rgba(6, 24, 51, 0.1);
}

.hero {
    background: linear-gradient(120deg, rgba(0, 75, 133, 0.95), rgba(15, 158, 213, 0.9));
    color: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.home-page .hero {
    width: calc(100% + 5rem);
    margin-left: -2.5rem;
    margin-right: -2.5rem;
}

@media (max-width: 640px) {
    .home-page .hero {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-intro h2 {
    font-size: 2.25rem;
}

.hero-description {
    max-width: 720px;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.countdown-panel {
    background: rgba(9, 36, 82, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 6px solid #f4c542;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 25px 40px rgba(2, 8, 32, 0.4);
}

.countdown-header {
    margin-bottom: 1rem;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(60px, 1fr));
    gap: 0.5rem;
    text-align: center;
}

.countdown div {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem;
    border-radius: 0.5rem;
}

.countdown div strong {
    display: block;
    font-size: 1.75rem;
}

.countdown div span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.winner-panel {
    background: rgba(9, 36, 82, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 6px solid #f4c542;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 25px 40px rgba(2, 8, 32, 0.4);
}

.winner-panel--clickable {
    cursor: pointer;
}

.winner-panel--clickable:focus-visible {
    outline: 2px solid #ffd84e;
    outline-offset: 4px;
}

.winner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.winner-sub {
    margin-top: 0.35rem;
    opacity: 0.85;
}

.winner-pdf-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: #ffcb05;
    color: #002b5c;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    align-self: flex-start;
}

.winner-pdf-link:hover,
.winner-pdf-link:focus-visible {
    text-decoration: none;
    background: #ffd84e;
}

.winner-pdf-link.is-blink {
    animation: winnerBlink 1.4s ease-in-out infinite;
    position: relative;
    z-index: 1;
    will-change: transform, box-shadow, opacity;
}

@keyframes winnerBlink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 203, 5, 0);
    }
    40% {
        opacity: 0.65;
        transform: scale(1.04);
        box-shadow: 0 0 16px rgba(255, 203, 5, 0.75);
    }
    70% {
        opacity: 0.9;
        transform: scale(1.02);
        box-shadow: 0 0 24px rgba(255, 203, 5, 0.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .winner-pdf-link.is-blink {
        animation: none;
    }
}

.hero-card-grid {
    display: none;
}

.ticker-panel {
    background: rgba(20, 30, 57, 0.85);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 40px rgba(5, 15, 34, 0.45);
    margin-top: 0.5rem;
}

.ticker-panel header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.badge-light {
    background: rgba(244, 197, 66, 0.2);
    color: #f4c542;
}

.winner-badge-blink {
    animation: resultsBlink 1.6s ease-in-out infinite;
}

@keyframes resultsBlink {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 rgba(244, 197, 66, 0);
    }
    50% {
        opacity: 0.55;
        box-shadow: 0 0 14px rgba(244, 197, 66, 0.65);
    }
}

@media (prefers-reduced-motion: reduce) {
    .winner-badge-blink {
        animation: none;
    }
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.candidate-form-page .cards {
    display: flex;
    flex-direction: column;
}

.candidate-form-page details > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.candidate-form-page .candidate-form-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 2rem;
    align-items: start;
}

.candidate-form-page .candidate-form-layout {
    position: relative;
}

.candidate-form-page .candidate-form-sidebar h2 {
    margin: 0 0 0.5rem;
}

.candidate-form-page .candidate-form-ro-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.5rem;
    border: 1px solid #d8dee9;
    border-radius: 0.6rem;
    overflow: hidden;
    background: #fff;
}

.candidate-form-page .candidate-form-ro-btn {
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #e1e5ee;
    background: #fff;
    color: #1f2d3d;
    font-weight: 600;
    border-radius: 0;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.candidate-form-page .candidate-form-ro-list li:last-child .candidate-form-ro-btn {
    border-bottom: 0;
}

.candidate-form-page .candidate-form-ro-btn.is-active {
    background: #0d6efd;
    color: #fff;
}

.candidate-form-page .candidate-form-slide {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background: #fff;
    border-left: 1px solid #dfe3ec;
    box-shadow: -20px 0 40px rgba(7, 24, 52, 0.12);
    transition: right 0.3s ease-in-out;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.candidate-form-page .candidate-form-slide.is-open {
    right: 0;
}

.candidate-form-page .candidate-form-slide--left {
    position: absolute;
    top: 0;
    left: -100%;
    right: auto;
    width: calc(100% - 280px);
    height: 100%;
    border-left: 0;
    border-right: 1px solid #dfe3ec;
    box-shadow: 20px 0 40px rgba(7, 24, 52, 0.12);
    transition: left 0.3s ease-in-out;
}

.candidate-form-page .candidate-form-slide--left.is-open {
    left: 280px;
}

.candidate-form-page .candidate-form-slide__header {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #e1e5ee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
}

.candidate-form-page .candidate-form-close {
    border: 1px solid #c8d4e7;
    background: #fff;
    color: #0a4470;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
}

.candidate-form-page .candidate-form-slide__body {
    padding: 1.5rem;
    overflow-y: auto;
}

.candidate-form-page .candidate-form-ro-panel {
    display: none;
}

.candidate-form-page .candidate-form-ro-panel.is-active {
    display: block;
}

.candidate-form-page .candidate-form-ro-title {
    margin-top: 0;
}

.candidate-form-page .candidate-form-ward {
    border: 1px solid #e1e5ee;
    border-radius: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: #f1f6ff;
    margin-bottom: 0.75rem;
}

.candidate-form-page .candidate-form-ward summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.candidate-form-page .candidate-form-ward summary::-webkit-details-marker {
    display: none;
}

.candidate-form-page .candidate-form-ward summary::after {
    content: "▾";
    font-size: 1rem;
    color: #1f2d3d;
    transition: transform 0.2s ease;
}

.candidate-form-page .candidate-form-ward[open] summary::after {
    transform: rotate(-180deg);
}

.candidate-form-page .candidate-form__ward-panel {
    margin-top: 0.75rem;
    background: #fff;
    border-radius: 0.6rem;
    padding: 0.75rem;
    border: 1px solid #e1e5ee;
    max-height: 420px;
    overflow-y: auto;
}

.candidate-form-page .candidate-form__parts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.candidate-form-page .candidate-form__tab {
    border: 1px solid transparent;
    background: transparent;
    color: #0a4470;
    font-weight: 600;
    border-radius: 0.4rem 0.4rem 0 0;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.candidate-form-page .candidate-form__tab.is-active {
    background: #fff;
    color: #0d6efd;
    border-color: #d4d8e5;
    border-bottom-color: #fff;
}

.candidate-form-page .candidate-form__panel-body {
    border: 1px solid #e1e5ee;
    border-radius: 0.6rem;
    padding: 0.75rem;
    background: #fff;
    min-height: 220px;
}

.candidate-form-page .candidate-form__part-panel {
    display: none;
}

.candidate-form-page .candidate-form__part-panel.is-active {
    display: block;
}

.candidate-form-page .candidate-form__pdf-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.25rem;
    border: 1px solid #e1e5ee;
    border-radius: 0.5rem;
    background: #fff;
}

.candidate-form-page .candidate-form__pdf-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #e1e5ee;
    padding: 0.4rem 0.5rem;
}

.candidate-form-page .candidate-form__pdf-item:last-child {
    border-bottom: 0;
}

.candidate-form-page .candidate-form__pdf-item:hover {
    background: #f5f9ff;
}

.candidate-form-page .candidate-form__pdf-item .open-btn {
    justify-content: flex-start;
    flex: 1;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #0d6efd;
    font-weight: 500;
    padding: 0.2rem 0.25rem;
    text-decoration: none;
}

.candidate-form-page .candidate-form__pdf-download {
    width: 32px;
    height: 32px;
    border-radius: 0.4rem;
    border: 1px solid #d4d8e5;
    background: #fff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
}

.candidate-form-page .candidate-form__pdf-download:hover {
    background: #e7f1ff;
}

@media (max-width: 900px) {
    .candidate-form-page .candidate-form-shell {
        grid-template-columns: 1fr;
    }

    .candidate-form-page .candidate-form-slide {
        width: 100%;
    }

    .candidate-form-page .candidate-form-slide--left {
        width: 100%;
        left: -100%;
    }

    .candidate-form-page .candidate-form-slide--left.is-open {
        left: 0;
    }

}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(10, 92, 194, 0.08);
    color: #0a5cc2;
    font-weight: 600;
    border: 1px solid rgba(10, 92, 194, 0.2);
}

.pill-link:hover {
    background: rgba(10, 92, 194, 0.16);
    text-decoration: none;
}

.media-gallery {
    margin-top: 2rem;
}

.media-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.media-gallery-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.media-tabs {
    margin-top: 1rem;
}

.media-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.media-tab-button {
    border: 1px solid #d4d8e5;
    background: #fff;
    color: #0a4470;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-tab-button.is-active {
    background: #0a5cc2;
    color: #fff;
    border-color: #0a5cc2;
}

.media-tab-panel {
    display: none;
    margin-top: 1rem;
}

.media-tab-panel.is-active {
    display: block;
}

.media-cards {
    align-items: stretch;
}

.media-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.media-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #edf1f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-card-placeholder {
    color: #4b5563;
    font-weight: 600;
}

.media-card-body h4 {
    margin: 0.35rem 0 0.15rem;
}

.media-card-body p {
    margin: 0;
    color: #4b5563;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: 2rem;
}

.gallery-card {
    background: #fff;
    border-radius: 0.9rem;
    border: 1px solid rgba(19, 44, 82, 0.08);
    box-shadow: 0 12px 28px rgba(6, 24, 51, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-thumb {
    position: relative;
    width: 100%;
    padding-top: 52%;
    background: #f0f4fb;
    border-bottom: 1px solid rgba(19, 44, 82, 0.05);
    overflow: hidden;
}

.gallery-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb video,
.gallery-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.gallery-thumb iframe {
    background: #000;
}

.gallery-thumb video {
    background: #000;
    object-fit: cover;
}

.gallery-thumb-link {
    position: absolute;
    inset: 0;
    display: block;
}

.gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0a4470;
    background: rgba(10, 92, 194, 0.08);
}

.gallery-card-body {
    padding: 0.85rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gallery-card-body h4 {
    margin: 0;
}

.gallery-card-body p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.gallery-card-body .pill-link {
    margin-top: 0.25rem;
}

.gallery-empty {
    text-align: center;
    color: #6b7280;
    margin: 2rem 0;
}

.play-indicator {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    pointer-events: none;
}

.pre-hero-slider {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto 0;
    padding: 0;
    width: 100%;
}

.pre-hero-slider__track {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 879 / 219;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(5, 37, 70, 0.2);
    border: 4px solid #fff;
    background: #000;
}

.pre-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.pre-hero-slide.is-active {
    opacity: 1;
}
.pre-hero-slide:first-child {
    opacity: 1;
}

.pre-hero-slide__image {
    position: absolute;
    inset: 0;
}

.pre-hero-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pre-hero-slide figcaption {
    position: relative;
    padding: 1.25rem;
    background: linear-gradient(180deg, transparent, rgba(4, 17, 33, 0.9));
}

.pre-hero-slide figcaption p {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.pre-hero-slider__controls {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.slider-btn {
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.slider-btn:hover,
.slider-btn:focus-visible {
    background: rgba(0, 0, 0, 0.8);
}

.municipal-highlight {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: center;
    border: 1px solid #dfe3ec;
    box-shadow: 0 16px 30px rgba(15, 38, 76, 0.08);
}

.highlight-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.9rem;
    border: 1px solid #dfe3ec;
    background: #f8fbff;
    text-align: center;
    color: #0a4470;
    font-weight: 600;
    text-decoration: none;
}

.highlight-link img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 0.75rem;
    display: block;
}

.highlight-link:hover,
.highlight-link:focus-visible {
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(10, 26, 60, 0.12);
}

.service-section {
    background: #e5edf9;
    padding: 2rem;
    border-radius: 1.2rem;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.service-card-shape {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem 1rem 1.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(10, 26, 60, 0.1);
    border: 1px solid #e0e7f5;
    position: relative;
    overflow: hidden;
}

.service-card-shape::before {
    content: "";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 60px;
    background: #efeffc;
    border-radius: 20px 20px 0 0;
}

.service-card-shape::after {
    content: "";
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0a5cc2;
}

.service-card-shape h3 {
    font-size: 1.2rem;
    color: #0f1f3c;
    margin-top: 0.5rem;
}

.service-card-shape p {
    color: #4c6077;
    margin-top: 0.4rem;
}

.service-card-shape span {
    display: inline-block;
    margin-top: 0.6rem;
    color: #0a5cc2;
    font-weight: 600;
}
.highlight-copy h2 {
    margin: 0.5rem 0;
}

.highlight-image {
    margin: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0.8rem;
    aspect-ratio: 4 / 3;
    background: #f4f6fb;
}

.highlight-slide {
    margin: 0;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: #f4f6fb;
}

.highlight-slide.is-active {
    opacity: 1;
}

.highlight-slide:first-child {
    opacity: 1;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.highlight-image figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    color: #f8fafc;
    background: linear-gradient(180deg, transparent, rgba(6, 15, 28, 0.85));
}

.highlight-slider__controls {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.press-section {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.25rem;
    border: 1px solid #d9e1ef;
    box-shadow: 0 25px 50px rgba(12, 30, 62, 0.12);
    margin-top: 2.5rem;
}

.press-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.press-card {
    background: #f7f9ff;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid #dfe7fb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.press-card h3 {
    font-size: 1.1rem;
}

.press-card a {
    margin-top: auto;
    font-weight: 600;
}

.press-date {
    font-size: 0.9rem;
    color: #5c6c82;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card {
    background: #fff;
    border-radius: 0.6rem;
    padding: 1.25rem;
    border: 1px solid #e1e5ee;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.ward-resource-section {
    margin-top: 3rem;
}

.ward-resource-section > header {
    margin-bottom: 1.5rem;
}

.ward-resource-section > header h3 {
    font-size: 1.7rem;
    margin-bottom: 0.35rem;
}

.ward-resource-section > header p {
    color: #4a5568;
    max-width: 780px;
}

.ward-resource-group + .ward-resource-group {
    margin-top: 2rem;
}

.ward-resource-group-header h4 {
    font-size: 1.2rem;
}

.ward-resource-group-header p {
    color: #5b677a;
    margin-top: 0.25rem;
}

.ward-resource-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.ward-resource-card {
    background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 80%);
    border-radius: 1rem;
    border: 1px solid rgba(0, 43, 92, 0.12);
    padding: 1.5rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0 20px 35px rgba(2, 24, 63, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;

    position: relative;}

.ward-resource-card:hover,
.ward-resource-card:focus-visible {
    border-color: rgba(10, 92, 194, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(5, 32, 94, 0.18);
}

.ward-resource-card.is-new {
    border-color: rgba(255, 122, 0, 0.6);
    box-shadow: 0 18px 30px rgba(255, 122, 0, 0.18);
}

.ward-resource-card.is-new::after {
    content: "NEW";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.12rem;
    font-weight: 700;
    color: #ffffff;
    background: #ff7a00;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    animation: ward-new-pulse 1.8s ease-in-out infinite;
}

@keyframes ward-new-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.35);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 10px rgba(255, 122, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
    }
}

.ward-resource-tag {
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #0a5cc2;
    background: rgba(10, 92, 194, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    align-self: flex-start;
}

.ward-resource-card h5 {
    font-size: 1.05rem;
    color: #071836;
    flex-grow: 1;
    margin: 0;
}

.ward-resource-action {
    margin-top: auto;
    font-weight: 600;
    color: #0a5cc2;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.priority-notices {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #041b3d;
    color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 35px 60px rgba(2, 13, 30, 0.45);
}

.priority-notices header {
    max-width: 860px;
}

.priority-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.8rem;
    color: #f4c542;
    margin-bottom: 0.5rem;
}

.priority-notices h3 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.priority-notices p {
    color: rgba(255, 255, 255, 0.85);
}

.priority-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.priority-card {
    background: #fff;
    color: #061b40;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    border: 1px solid rgba(6, 27, 64, 0.1);
    box-shadow: 0 15px 30px rgba(6, 15, 42, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.priority-card:hover,
.priority-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(6, 15, 42, 0.3);
}

.priority-card h4 {
    margin: 0;
    font-size: 1.1rem;
}

.priority-card p {
    color: #3d4b63;
    margin: 0;
    flex-grow: 1;
}

.priority-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0a5cc2;
    background: rgba(10, 92, 194, 0.12);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    align-self: flex-start;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff;
    background: #ff7a00;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
    line-height: 1;
    align-self: flex-start;
    animation: priority-new-pulse 1.8s ease-in-out infinite;
}

@keyframes priority-new-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.35);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 122, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
    }
}

.priority-action {
    font-weight: 600;
    color: #0a5cc2;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.voter-documents {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(9, 31, 58, 0.08);
    box-shadow: 0 20px 40px rgba(10, 25, 54, 0.08);
}

.voter-documents header {
    max-width: 820px;
    margin-bottom: 1.5rem;
}

.voter-documents header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.voter-documents header p {
    color: #4a5568;
}

.voter-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.voter-doc-card {
    border: 1px solid rgba(9, 31, 58, 0.12);
    border-radius: 0.9rem;
    padding: 1.5rem;
    text-decoration: none;
    color: #071836;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbff 75%);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 180px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.voter-doc-card:hover,
.voter-doc-card:focus-visible {
    border-color: rgba(10, 92, 194, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(6, 28, 74, 0.18);
}

.voter-doc-card h4 {
    margin: 0;
    font-size: 1.05rem;
}

.voter-doc-card p {
    margin: 0;
    color: #4b5a74;
    flex-grow: 1;
}

.voter-doc-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0a5cc2;
    background: rgba(10, 92, 194, 0.1);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    align-self: flex-start;
}

.voter-doc-action {
    font-weight: 600;
    color: #0a5cc2;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.voter-doc-card.is-new {
    border-color: rgba(255, 122, 0, 0.6);
    box-shadow: 0 18px 30px rgba(255, 122, 0, 0.18);
}

.voter-doc-card.is-new::after {
    content: "NEW";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.12rem;
    font-weight: 700;
    color: #ffffff;
    background: #ff7a00;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    animation: ward-new-pulse 1.8s ease-in-out infinite;
}

.sitemap-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sitemap-header {
    max-width: 760px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.sitemap-group {
    border: 1px solid rgba(3, 28, 66, 0.12);
    border-radius: 1rem;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 15px 30px rgba(6, 20, 50, 0.08);
}

.sitemap-group-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.sitemap-group-header p {
    margin: 0.35rem 0 0;
    color: #4c5a70;
}

.sitemap-group ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sitemap-link {
    border: 1px solid rgba(10, 92, 194, 0.15);
    border-radius: 0.85rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 80%);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sitemap-link strong {
    display: block;
    color: #081b3d;
    margin-bottom: 0.2rem;
}

.sitemap-link p {
    margin: 0;
    color: #4b5a72;
    max-width: 320px;
}

.sitemap-link span {
    font-weight: 600;
    color: #0a5cc2;
    white-space: nowrap;
}

.sitemap-link:hover,
.sitemap-link:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(10, 92, 194, 0.4);
    box-shadow: 0 20px 40px rgba(6, 24, 73, 0.15);
}

.contact-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-header {
    max-width: 720px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(7, 25, 55, 0.12);
    box-shadow: 0 25px 50px rgba(6, 18, 42, 0.08);
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.contact-form-card label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: #1a2b4a;
}

.contact-form-card input,
.contact-form-card textarea {
    border-radius: 0.65rem;
    border: 1px solid rgba(8, 24, 55, 0.2);
    padding: 0.85rem 1rem;
    font: inherit;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: #0a5cc2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 92, 194, 0.15);
}

.contact-info-panel {
    background: linear-gradient(135deg, #041b3d, #0c3d7c);
    color: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 25px 45px rgba(2, 10, 26, 0.35);
}

.contact-info-panel h3 {
    margin-bottom: 0.35rem;
}

.contact-info-panel p,
.contact-info-panel a {
    color: rgba(255, 255, 255, 0.85);
}

.contact-info-panel ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.contact-info-panel li + li {
    margin-top: 0.25rem;
}

.form-status {
    padding: 0.85rem 1.25rem;
    border-radius: 0.8rem;
    font-weight: 600;
}

.form-status--success {
    background: rgba(52, 199, 89, 0.15);
    color: #1b7a39;
    border: 1px solid rgba(52, 199, 89, 0.4);
}

.form-status--error {
    background: rgba(255, 99, 99, 0.15);
    color: #8c1d1d;
    border: 1px solid rgba(255, 99, 99, 0.4);
}

.form-error {
    color: #be2b2b;
    font-size: 0.85rem;
}

.primary-button {
    align-self: flex-start;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, #0a5cc2, #1b93d5);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(10, 92, 194, 0.3);
}

.section-title {
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.ticker {
    overflow: hidden;
    background: #002b5c;
    color: #fff;
    border-radius: 0.5rem;
}

.ticker ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
    animation: tickerVertical 25s linear infinite;
}

.ticker {
    position: relative;
    height: 160px;
}

.ticker ul:hover {
    animation-play-state: paused;
}

.ticker-panel.is-expanded .ticker {
    height: auto;
    max-height: 420px;
    overflow-y: auto;
}

.ticker-panel.is-expanded .ticker ul {
    animation: none;
}

.ticker li {
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
}

.ticker-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}

.ticker-link:hover .ticker-text {
    text-decoration: underline;
}

.ticker-link--static {
    cursor: default;
}


.ticker-new {
    background: #ffcb05;
    color: #002b5c;
    font-size: 0.65rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    animation: tickerBlink 1.2s ease-in-out infinite;
}

@keyframes tickerBlink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

.ticker li:last-child {
    border-bottom: none;
}

@keyframes tickerVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #dfe3ec;
}

th {
    background: #eef2fb;
    text-align: left;
}

.ward-vote-page .ward-vote-header {
    margin-bottom: 1.5rem;
}

.ward-vote-page .ward-vote-header h2 {
    margin-bottom: 0.35rem;
}

.ward-vote-page .ward-vote-nav {
    margin-bottom: 1rem;
}

.ward-vote-page .ward-vote-nav .winner-list-button {
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: #0a5cc2;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(10, 92, 194, 0.25);
}

.ward-vote-page .ward-vote-nav .winner-list-button:hover,
.ward-vote-page .ward-vote-nav .winner-list-button:focus-visible {
    background: #09439b;
    color: #fff;
}

.winner-list-page .winner-list-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
}

.winner-list-page .winner-list-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(10, 92, 194, 0.2);
    background: #fff;
    color: #0a5cc2;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(12, 34, 64, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.winner-list-page .winner-list-button:hover,
.winner-list-page .winner-list-button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(10, 92, 194, 0.45);
    box-shadow: 0 16px 30px rgba(12, 34, 64, 0.15);
    text-decoration: none;
}

.ward-vote-section {
    background: #fff;
    border-radius: 0.9rem;
    padding: 1.5rem;
    border: 1px solid rgba(15, 38, 82, 0.08);
    box-shadow: 0 18px 30px rgba(6, 24, 51, 0.08);
    margin-bottom: 1.5rem;
}

.ward-vote-section h3 {
    margin-bottom: 0.75rem;
}

.ward-vote-table {
    margin-top: 0;
}

.ward-vote-empty {
    text-align: center;
    color: #6b7280;
}

.ward-vote-status.status-winner {
    color: #0f3d1f;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 0.35rem;
    padding: 0.2rem 0.5rem;
    animation: winnerPulse 1.2s ease-in-out infinite;
}

.ward-vote-status.status-trailing {
    color: #7a4b00;
    font-weight: 700;
    background: rgba(253, 224, 71, 0.4);
    border-radius: 0.35rem;
    padding: 0.2rem 0.5rem;
}

.ward-vote-status.status-nota {
    color: #0b3a8f;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 0.35rem;
    padding: 0.2rem 0.5rem;
}

@keyframes winnerPulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
    }
}

.site-footer {
    background: linear-gradient(120deg, #051a34, #0b3769);
    color: #fff;
    padding: 3rem 2rem 2rem;
    margin-top: 3rem;
}

.site-footer h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #c5e742;
}

.site-footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.site-footer a {
    color: #fff;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.footer-columns section {
    border-left: 4px solid rgba(255, 255, 255, 0.15);
    padding-left: 1rem;
}

.footer-columns li {
    padding: 0.35rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-columns li::before {
    content: "—";
    margin-right: 0.4rem;
    color: #8ee37f;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social .social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social .social-link:hover,
.footer-social .social-link:focus-visible {
    transform: translateY(-3px);
    background: #fff;
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: #08213f;
}

.footer-visitor li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-meta {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-meta a {
    color: #96ff7b;
}

.auth-panel {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(9, 22, 41, 0.15);
    border: 1px solid #dfe5f2;
    max-width: 520px;
    margin: 0 auto;
}

.auth-panel h2 {
    margin-bottom: 0.5rem;
}

.auth-description {
    margin-bottom: 1.5rem;
    color: #4a5b73;
}

.login-form label {
    font-weight: 600;
}

.login-form input {
    width: 100%;
}

.feedback {
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feedback.success {
    background: #e5f9ed;
    color: #146c2e;
    border: 1px solid #b4e1c2;
}

.feedback.error {
    background: #fde8e8;
    color: #7c1a1a;
    border: 1px solid #f4b5b5;
}

.auth-note {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: #556179;
}

@media (max-width: 1024px) {
    .container {
        width: calc(100% - 1rem);
        padding: 1.75rem 1.5rem;
    }
    .home-page .hero {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .hero-intro h2 {
        font-size: 2rem;
    }
    .service-grid,
    .press-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 860px) {
    .ticker-panel header {
        flex-direction: column;
        align-items: flex-start;
    }
    .municipal-highlight {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .highlight-copy {
        text-align: center;
    }
    .municipal-highlight figure {
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .container {
        width: 100%;
        margin: 1rem auto;
        padding: 1.25rem 1rem;
        border-radius: 0.5rem;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .press-section {
        padding: 1.5rem 1rem;
    }
    .ticker {
        height: 200px;
    }
    .ticker-panel {
        padding: 1.25rem;
    }
    .home-page .ticker-panel {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
    }
    .hero-intro,
    .hero-description {
        text-align: center;
    }
}
form {
    display: grid;
    gap: 0.75rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #dfe3ec;
}

input, textarea, select, button {
    padding: 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid #c9d3e3;
}

button {
    background: #0a5cc2;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #0f9ed5;
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.media-grid div {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e3e8f3;
}

.search-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-row input {
    flex: 1;
}

@media (max-width: 700px) {
    .branding-row {
        justify-content: center;
        gap: 1.25rem;
    }
    .branding {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .branding-copy {
        min-width: unset;
        text-align: center;
    }
    .brand-logo {
        max-width: 70vw;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        margin-top: 1rem;
        align-items: center;
    }

    .main-nav ul.open {
        display: flex;
    }

    .nav-toggle {
        display: inline-block;
        background: #0f9ed5;
        color: #fff;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 0.4rem;
        margin: 1rem auto 0;
    }

}
.language-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    color: #002b5c;
    font-size: 0.75rem;
    position: absolute;
    top: 0.6rem;
    right: 2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 3;
}

.language-switch select {
    border: none;
    border-radius: 0.6rem;
    padding: 0.15rem 0.55rem;
    min-width: 70px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #002b5c;
    font-size: 0.8rem;
}

.language-switch select:focus-visible {
    outline: 2px solid #f4c542;
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .language-switch {
        right: 1rem;
        top: 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 520px) {
    .countdown {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }
}

/* ============================ Ward PDFs (electionward.php) ============================ */
body.wards-ui {
    background: #f7f7f9;
}

body.wards-ui .site-header {
    margin-bottom: 0 !important;
}

body.wards-ui footer {
    position: static !important;
}

body.wards-ui .container {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    width: 100%;
    max-width: 960px;
}

body.booklist-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.booklist-page > main {
    flex: 1;
}

.wards-wrap {
    margin-top: 1rem;
    padding: 0 1rem 7rem;
}

@media (max-width: 576px) {
    .wards-wrap {
        padding-bottom: 11rem;
    }
}

.topbar {
    background: #0758b6;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.6rem 1rem;
    margin: 0 0 1rem 0;
    border-radius: 0.35rem;
}

.list-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(6, 24, 51, 0.08);
}

.list-group {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.list-group.list-group-flush .list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item {
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f3f8;
}

.list-group-item:last-child {
    border-bottom: none;
}

.sr-badge {
    min-width: 42px;
    height: 28px;
    border-radius: 999px;
    background: #eef2f6;
    color: #0b2a47;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.65rem;
    font-size: 0.95rem;
}

.ward-label {
    font-weight: 600;
    color: #1f2d3d;
}

.ward-accordion > summary {
    list-style: none;
    cursor: pointer;
}

.ward-accordion > summary::-webkit-details-marker {
    display: none;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-list .ward-file-btn {
    border-radius: 999px;
    min-width: 150px;
    justify-content: center;
}

.open-btn {
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
    outline: 2px solid #f4c542;
    outline-offset: 2px;
}

.btn-sm {
    font-size: 0.9rem;
    padding: 0.4rem 1.25rem;
}

.btn-primary {
    background: #0b5fc1;
    color: #fff;
    box-shadow: 0 10px 20px rgba(9, 40, 88, 0.2);
}

.btn-primary:hover {
    background: #094f9f;
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    color: #0b5fc1;
    border: 1px solid #0b5fc1;
    box-shadow: none;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background: #0b5fc1;
    color: #fff;
    text-decoration: none;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.text-secondary {
    color: #6c757d;
}

.small {
    font-size: 0.875rem;
}

@media (max-width: 576px) {
    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .open-btn {
        align-self: stretch;
        text-align: center;
    }

    .file-list .ward-file-btn {
        width: 100%;
    }
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.resource-card {
    background: #fff;
    border: 1px solid #e2e7f2;
    border-radius: 0.8rem;
    padding: 1.25rem;
    box-shadow: 0 15px 30px rgba(15, 36, 79, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.resource-card__body h3 {
    margin: 0.25rem 0;
}

.resource-card__body p {
    margin: 0;
    color: #4c5a69;
}

.pagination {
    display: flex;
    gap: 0.35rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination__item {
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    border: 1px solid #dbe2f0;
    color: #0a49a0;
}

.pagination__item--active,
.pagination__item:hover {
    background: #0a5cc2;
    color: #fff;
    text-decoration: none;
    border-color: transparent;
}
