:root {
    --forest-950: #0d2f2b;
    --forest-800: #184842;
    --forest-700: #216056;
    --sage-500: #7aa58d;
    --sage-100: #edf4ef;
    --sand-100: #f6f0e7;
    --clay-300: #d3b99a;
    --ink-900: #1e2a27;
    --ink-600: #52615c;
    --line: rgba(13, 47, 43, 0.12);
    --shadow: 0 1.5rem 3rem rgba(13, 47, 43, 0.12);
    --radius: 1.25rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(circle at top left, rgba(122, 165, 141, 0.18), transparent 32%),
        linear-gradient(180deg, #fbfaf6 0%, #f4f7f2 48%, #ffffff 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand strong {
    font-family: "Fraunces", serif;
    line-height: 1.1;
}

h1,
h2 {
    width: 100%;
    max-width: none;
}

a {
    color: var(--forest-800);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--forest-950);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2000;
    background: #fff;
    color: var(--forest-950);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.skip-link:focus {
    top: 1rem;
}

.site-main {
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(251, 250, 246, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(13, 47, 43, 0.08);
}

.navbar {
    padding: 1rem 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-mark span {
    display: flex;
    flex-direction: column;
}

.brand-mark small {
    font-size: 0.78rem;
    color: var(--ink-600);
}

.nav-link {
    color: var(--ink-900);
    font-weight: 600;
    padding-inline: 1rem !important;
}

.nav-link.active {
    color: var(--forest-800);
}

.btn {
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    font-weight: 700;
}

.btn-primary {
    background: var(--forest-800);
    border-color: var(--forest-800);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--forest-950);
    border-color: var(--forest-950);
}

.btn-outline-primary {
    color: var(--forest-800);
    border-color: rgba(24, 72, 66, 0.3);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-section,
.page-hero,
.status-shell {
    position: relative;
    overflow: hidden;
}

.hero-section {
    padding: 6rem 0 5rem;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.1) 100%),
        url("/images/ongar-says-no-to-greenbelt-development-by-bloor-homes.webp"),
        linear-gradient(135deg, var(--forest-950), var(--forest-700));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.hero-section::after,
.page-hero::after,
.status-shell::after {
    content: "";
    position: absolute;
    inset: auto auto -7rem -5rem;
    width: 18rem;
    height: 18rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(12px);
}

.page-hero {
    padding: 4rem 0 2.5rem;
}

.status-shell {
    padding: 5.5rem 0;
}

.page-summary,
.lead-text {
    width: 100%;
    max-width: none;
    font-size: 1.1rem;
    color: inherit;
    opacity: 0.92;
}

.hero-section h1,
.page-hero h1,
.status-card h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--sage-500);
}

.hero-section .eyebrow {
    color: var(--sage-100);
}

.hero-panel,
.content-panel,
.card-surface,
.status-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.stat-tile {
    background: linear-gradient(135deg, rgba(122, 165, 141, 0.12), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    color: var(--forest-950);
}

.stat-tile strong {
    display: block;
    font-size: 2rem;
    font-family: "Fraunces", serif;
}

.section-block {
    padding: 4.5rem 0;
}

.page-hero + .section-block {
    padding-top: 0;
}

.petition-section {
    padding-top: 0;
}

.countdown-widget-section {
    padding-block: 3.5rem;
}

.alt-section {
    background: linear-gradient(180deg, rgba(237, 244, 239, 0.72), rgba(255, 255, 255, 0));
}

.section-heading {
    margin-bottom: 2rem;
}

.card-surface,
.content-panel,
.status-card {
    padding: 0;
}

.card-surface .card-body,
.content-panel,
.status-card {
    padding: 1.75rem;
}

.icon-badge,
.avatar-tile {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sage-100), rgba(122, 165, 141, 0.28));
    color: var(--forest-800);
    font-size: 1.4rem;
    font-weight: 800;
}

.avatar-tile.large {
    width: 5rem;
    height: 5rem;
    font-size: 1.5rem;
}

.content-list,
.step-list,
.sidebar-links {
    padding-left: 1.15rem;
}

.content-list li,
.step-list li {
    padding-left: 0.35rem;
    margin-bottom: 0.75rem;
}

.stack-grid,
.sidebar-stack {
    display: grid;
    gap: 1rem;
}

.stack-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.stack-card i {
    font-size: 1.5rem;
    color: var(--forest-700);
}

.donation-panel {
    padding: 2rem;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(135deg, #204f48, #103632);
    box-shadow: var(--shadow);
}

.petition-panel {
    padding: 2rem;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top left, rgba(122, 165, 141, 0.28), transparent 30%),
        linear-gradient(135deg, #123934, #1f544c);
    box-shadow: var(--shadow);
    color: #fff;
}

.petition-eyebrow {
    color: rgba(237, 244, 239, 0.92);
}

.petition-summary {
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.84);
}

.petition-action {
    color: var(--forest-950);
}

.petition-action:hover,
.petition-action:focus-visible {
    color: var(--forest-950);
    background: #fff;
    border-color: #fff;
}

.petition-counter-panel {
    height: 100%;
    min-height: 18rem;
    padding: 1.75rem;
    border-radius: calc(var(--radius) - 0.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    color: var(--forest-950);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.petition-counter {
    display: inline-block;
    min-width: 5ch;
    font-family: "Fraunces", serif;
    font-size: clamp(3.5rem, 10vw, 5.75rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

.petition-counter-label {
    margin-top: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-600);
}

.pill-tag,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    background: var(--sage-100);
    color: var(--forest-800);
    font-size: 0.82rem;
    font-weight: 700;
}

.meta-line {
    color: var(--ink-600);
    font-size: 0.92rem;
}

.text-link {
    font-weight: 700;
}

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

.timeline-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--line);
}

.timeline-year {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--forest-800);
    font-weight: 800;
}

.event-meta,
.detail-list {
    display: grid;
    gap: 0.9rem;
}

.event-meta div,
.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding-top: 0.8rem;
}

.event-meta dt,
.detail-list dt {
    font-weight: 800;
}

.event-meta dd,
.detail-list dd {
    margin: 0;
    color: var(--ink-600);
    text-align: end;
}

.article-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.article-content p {
    font-size: 1.04rem;
    line-height: 1.85;
}

.rebuttal-content h2,
.rebuttal-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.rebuttal-content h2:not(:first-child),
.rebuttal-content h3:not(:first-child) {
    margin-top: 2rem;
}

.rebuttal-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--line);
    opacity: 1;
}

.rebuttal-content ul {
    margin-bottom: 1.5rem;
}

.quote-block {
    margin: 1.8rem 0;
    padding-left: 1.25rem;
    border-left: 4px solid var(--clay-300);
    color: var(--forest-800);
    font-family: "Fraunces", serif;
    font-size: 1.15rem;
}

.sidebar-links li {
    margin-bottom: 0.75rem;
}

.contact-points,
.footer-list,
.footer-contact {
    list-style: none;
    padding-left: 0;
}

.contact-points li,
.footer-list li,
.footer-contact span,
.footer-contact a {
    display: block;
    margin-bottom: 0.7rem;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: var(--ink-600);
    font-size: 0.92rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin-left: 0.6rem;
}

.donation-progress {
    width: 100%;
    height: 0.9rem;
    accent-color: var(--forest-700);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--ink-600);
}

.faq-accordion .accordion-item {
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-accordion .accordion-button {
    font-weight: 700;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--forest-950);
    background: rgba(122, 165, 141, 0.12);
}

.status-card {
    max-width: 48rem;
    margin: 0 auto;
}

.countdown-widget-card .card-body {
    padding: 2rem;
}

.countdown-widget-summary {
    max-width: 48rem;
}

.volunteer-priority-callout {
    margin-bottom: 2rem;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(122, 165, 141, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(237, 244, 239, 0.96), rgba(255, 255, 255, 0.98));
    border-color: rgba(24, 72, 66, 0.18);
}

.volunteer-priority-copy {
    max-width: 44rem;
    margin-bottom: 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--ink-900);
}

.volunteer-priority-actions .btn {
    width: 100%;
}

.countdown-tile {
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(237, 244, 239, 0.72), rgba(255, 255, 255, 0.96)),
        var(--sand-100);
    border: 1px solid rgba(13, 47, 43, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.countdown-value {
    display: block;
    font-size: clamp(2.3rem, 6vw, 3.5rem);
    font-family: "Fraunces", serif;
    line-height: 1;
    color: var(--forest-950);
}

.countdown-label {
    display: inline-block;
    margin-top: 0.65rem;
    font-weight: 700;
    color: var(--ink-600);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.site-footer {
    margin-top: 2rem;
    padding: 2rem 0;
    background: #0f2522;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.footer-callout {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    transform: translateY(-2rem);
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, var(--forest-700), #123934);
    box-shadow: var(--shadow);
}

.footer-brand strong,
.footer-heading {
    color: #fff;
}

.footer h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-intro,
.footer-summary {
    max-width: 64rem;
}

.footer-logo-panel {
    display: flex;
    justify-content: center;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    width: min(100%, 260px);
    height: auto;
    object-fit: contain;
}

.footer-contact a,
.footer-list a,
.site-footer a {
    color: rgba(255, 255, 255, 0.88);
}

.footer a {
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-list,
.footer-contact {
    margin-bottom: 0;
}

.footer-list li:last-child a,
.footer-contact a:last-child,
.footer-contact span:last-child {
    margin-bottom: 0;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
}

.social-links a {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-meta {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.field-validation-error {
    display: block;
    color: #a61e4d;
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.validation-summary-errors:empty,
.validation-summary-valid:empty {
    display: none;
}

.needs-validation .form-control:focus,
.needs-validation .form-check-input:focus {
    border-color: var(--sage-500);
    box-shadow: 0 0 0 0.2rem rgba(122, 165, 141, 0.2);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 5rem;
    }

    .footer-callout {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .brand-mark {
        align-items: flex-start;
    }

    .brand-logo {
        width: 200px;
        height: 200px;
    }

    .section-block {
        padding: 3.5rem 0;
    }

    .petition-panel {
        padding: 1.5rem;
    }

    .petition-counter-panel {
        min-height: 15rem;
    }

    .hero-section h1,
    .page-hero h1,
    .status-card h1 {
        max-width: none;
    }

    .countdown-widget-section {
        padding-block: 2.75rem;
    }

    .countdown-widget-card .card-body {
        padding: 1.5rem;
    }

    .volunteer-priority-callout {
        padding: 1.5rem;
    }
}

@media (min-width: 992px) {
    .hero-section {
        background-position: center right;
    }

    .footer-logo-panel {
        justify-content: flex-end;
    }
}
