/* The WIFI Scotland Group — campaign site styles */
:root {
    --ink: #0c1117;
    --paper: #f6f3ee;
    --cream: #fffdf8;
    --line: rgba(12, 17, 23, 0.12);
    --accent: #1f7a6b;
    --accent-dark: #145c50;
    --signal: #e25540;
    --muted: #4a5562;
    --radius: 14px;
    --btn-radius: 8px;
    --shadow: 0 18px 50px rgba(12, 17, 23, 0.12);
    --max: 1100px;
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Barlow Condensed", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--accent-dark);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--signal);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: var(--cream);
    border-radius: 8px;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.wrap {
    width: min(100% - clamp(1.25rem, 4vw, 2.5rem), var(--max));
    margin-inline: auto;
}

.wrap--content {
    width: min(100% - clamp(1.25rem, 4vw, 2.5rem), 760px);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--cream) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand:hover {
    opacity: 0.88;
}

.brand-logo {
    height: 96px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
}

@media (max-width: 900px) {
    .brand-logo {
        height: 72px;
    }
}

.site-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-primary {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem 1.1rem;
}

.nav-primary > li {
    position: relative;
    flex: 0 0 auto;
}

.nav-link,
.nav-group-trigger {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-group-trigger:hover {
    color: var(--ink);
}

.nav-link[aria-current="page"],
.nav-group-trigger[aria-current="page"] {
    color: var(--ink);
    border-color: var(--signal);
}

.nav-group--active > .nav-group-trigger {
    color: var(--ink);
    border-color: var(--signal);
}

.nav-group-chevron {
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-0.1rem);
    opacity: 0.75;
}

.nav-sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-sub-link {
    display: block;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--muted);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-sub-link:hover {
    color: var(--ink);
    background: rgba(31, 122, 107, 0.08);
}

.nav-sub-link[aria-current="page"] {
    color: var(--ink);
    background: rgba(226, 85, 64, 0.1);
}

@media (min-width: 901px) {
    .nav-sub {
        position: absolute;
        top: calc(100% + 0.15rem);
        left: 0;
        min-width: 12.5rem;
        padding: 0.4rem;
        background: var(--cream);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        z-index: 80;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
        pointer-events: none;
    }

    .nav-group:hover .nav-sub,
    .nav-group:focus-within .nav-sub {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-group:hover .nav-group-chevron,
    .nav-group:focus-within .nav-group-chevron {
        opacity: 1;
        transform: rotate(225deg) translateY(0.05rem);
    }

    /* Last dropdown (before Contact) aligns right so it stays on-screen */
    .nav-primary > li:nth-last-child(2) .nav-sub {
        left: auto;
        right: 0;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(31, 122, 107, 0.35);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.btn.btn-header {
    flex-shrink: 0;
    margin-left: 0.75rem;
    background: var(--ink);
    color: #fff;
    padding-inline: 1.25rem;
    box-shadow: 0 12px 28px rgba(12, 17, 23, 0.25);
}

.btn.btn-header:hover {
    color: #fff;
    background: #1a222c;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    padding: 0.45rem 0.85rem;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font: inherit;
}

.nav-toggle-bar {
    width: 1.1rem;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}

.nav-toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.hero {
    padding: 3.5rem 0 3rem;
    /* Flat tint (no gradients): slight cool wash on cream */
    background: #f3f6f5;
    background: color-mix(in srgb, var(--cream) 94%, var(--accent) 6%);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.hero-copy {
    min-width: 0;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.hero-media {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.hero-media-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    vertical-align: middle;
}

@media (min-width: 880px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        grid-template-areas: "copy media";
        align-items: center;
    }

    .hero-copy {
        grid-area: copy;
    }

    .hero-side {
        grid-area: media;
        height: 100%;
    }

    .hero-card {
        grid-area: card;
        align-self: start;
    }

    .hero-media {
        height: 100%;
    }

    .hero-media-img {
        height: 100%;
        aspect-ratio: auto;
    }
}

.hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-dark);
    margin: 0 0 0.75rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
}

.hero-lede {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: min(72ch, 100%);
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.hero-card h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.hero-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.cta-global {
    padding: 2.5rem 0;
    /* Flat tint, a touch stronger than hero so the band reads clearly */
    background: #ecf1ef;
    background: color-mix(in srgb, var(--paper) 90%, var(--accent) 10%);
    color: var(--ink);
    border-block: 1px solid var(--line);
}

.cta-global-inner {
    display: grid;
    gap: 1.75rem;
    align-items: center;
}

@media (min-width: 800px) {
    .cta-global-inner {
        grid-template-columns: 1.35fr 0.65fr;
        gap: 2.5rem;
    }
}

.cta-global-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.cta-global-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.005em;
    margin: 0 0 0.75rem;
    color: var(--ink);
}

.cta-global-lede {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: min(78ch, 100%);
}

.cta-global-lede strong {
    color: var(--ink);
}

.cta-global-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

@media (min-width: 800px) {
    .cta-global-action {
        align-items: stretch;
    }
}

.cta-global .btn-primary {
    box-shadow: 0 10px 24px rgba(31, 122, 107, 0.3);
    text-align: center;
    justify-content: center;
}

.cta-global-note {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.45;
}

.btn-lg {
    padding: 0.85rem 1.45rem;
    font-size: 1.02rem;
}

.btn-sm {
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
}

.card-cta {
    margin-top: auto;
    padding-top: 1.1rem;
}

.card-cta .btn {
    width: 100%;
    justify-content: center;
}

.section {
    padding: 3rem 0;
}

.section.alt {
    background: color-mix(in srgb, var(--cream) 55%, var(--paper));
    border-block: 1px solid var(--line);
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 2.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.005em;
    margin: 0 0 1rem;
}

.section-intro {
    max-width: min(85ch, 100%);
    color: var(--muted);
    margin: 0 0 2rem;
}

.card-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 720px) {
    .card-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .card-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 1.35rem 1.4rem;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(12, 17, 23, 0.06);
}

.card h3 {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.card-has-image {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-has-image .card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ink);
}

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

.card-has-image .card-body {
    padding: 1.35rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-lede {
    margin-block: 0 2rem;
    margin-inline: clamp(0.75rem, 3vw, 2rem);
}

.page-lede img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(70vh, 440px);
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.page-lede figcaption {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.page-banner {
    margin: 0;
    max-height: 220px;
    overflow: hidden;
    border-block: 1px solid var(--line);
}

.page-banner img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.join-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .join-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    }
}

.join-aside {
    margin: 0;
}

.join-aside img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.join-aside figcaption {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(31, 122, 107, 0.12);
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
}

.pill--forming {
    background: rgba(74, 85, 98, 0.1);
    color: var(--muted);
}

.pill--seeking {
    background: rgba(226, 85, 64, 0.12);
    color: #7a2f24;
}

.pill--active {
    background: rgba(31, 122, 107, 0.15);
    color: var(--accent-dark);
}

.page-header {
    padding: 2.75rem 0 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.page-header p {
    margin: 0;
    max-width: min(88ch, 100%);
    color: var(--muted);
    font-size: 1.05rem;
}

/* Full width of .wrap so figures and tables can span the layout; copy stays readable */
.prose {
    max-width: 100%;
    width: 100%;
}

.prose p,
.prose h2,
.prose h3,
.prose h4,
.prose ul,
.prose ol,
.prose blockquote {
    max-width: min(80ch, 100%);
    margin-inline: auto;
}

.prose .table-scroll p,
.prose table p {
    max-width: none;
}

.prose .page-lede figcaption {
    max-width: min(80ch, 100%);
    margin-inline: auto;
}

.prose > * + * {
    margin-top: 1rem;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.prose ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

.prose li + li {
    margin-top: 0.35rem;
}

.credits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 1.5rem 0;
}

.credits-table th,
.credits-table td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.credits-table th {
    background: color-mix(in srgb, var(--cream) 80%, var(--paper));
    font-weight: 600;
}

.credits-table code {
    font-size: 0.85em;
}

.table-scroll {
    overflow-x: auto;
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.table-scroll .credits-table {
    margin: 0;
    min-width: 36rem;
}

.ref-list {
    font-size: 0.95rem;
    color: var(--muted);
}

.ref-list li {
    margin-bottom: 0.5rem;
}

.callout {
    border-left: 4px solid var(--signal);
    padding: 1rem 1.25rem;
    background: rgba(226, 85, 64, 0.08);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}

.prose .callout {
    max-width: min(80ch, 100%);
    margin-inline: auto;
}

.callout p {
    margin: 0;
}

.news-list article {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.news-list article:first-child {
    padding-top: 0;
}

.news-list h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
}

.news-list h2 a {
    text-decoration: none;
    color: var(--ink);
}

.news-list h2 a:hover {
    color: var(--signal);
}

.scotland-story-grid .scotland-story-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.scotland-story-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--ink);
}

.scotland-story-card__summary {
    margin: 0.15rem 0 0;
}

.scotland-story-card__links {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

.scotland-story-card__also {
    color: var(--muted);
    font-weight: 400;
    margin: 0 0.2rem;
}

.scotland-story-card__caveat {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.scotland-stories-footer-callout {
    margin-top: 2.5rem;
}

.meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.forms {
    max-width: min(40rem, 100%);
}

.form-row {
    margin-bottom: 1.1rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    font: inherit;
    background: var(--cream);
}

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

.form-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.checkbox {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.checkbox input {
    width: auto;
    margin-top: 0.35rem;
}

.flash {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.flash.ok {
    background: rgba(31, 122, 107, 0.15);
    color: var(--accent-dark);
}

.flash.err {
    background: rgba(226, 85, 64, 0.12);
    color: #7a2f24;
}

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
    padding: 2.5rem 0 1.5rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 260px 1fr auto;
    gap: 2.5rem;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}

@media (max-width: 860px) {
    .footer-main {
        grid-template-columns: 140px 1fr;
        grid-template-rows: auto auto;
    }

    .footer-explore {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo-link {
        margin: 0 auto;
    }

    .footer-explore {
        grid-column: 1;
        grid-row: auto;
    }
}

.footer-logo-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.footer-logo-link:hover {
    opacity: 0.88;
}

.footer-logo-circle {
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.footer-logo-circle img {
    display: block;
    width: 100%;
    height: auto;
}

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

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 720px) {
    .footer-grid {
        grid-template-columns: 1.4fr 0.6fr;
    }
}

.footer-lead {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.footer-small {
    margin: 0;
    opacity: 0.78;
    font-size: 0.95rem;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: 0.35rem;
}

.footer-meta {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-legal {
    margin: 0.35rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    align-items: center;
    font-size: 0.82rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal span {
    opacity: 0.4;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .btn-header {
        display: none;
    }

    .site-nav {
        width: 100%;
        display: none;
        order: 10;
    }

    .site-nav.is-open {
        display: block;
    }

    .nav-primary {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0 0.25rem;
    }

    .nav-primary > li {
        border-bottom: 1px solid var(--line);
    }

    .nav-primary > li:last-child {
        border-bottom: none;
    }

    .nav-link,
    .nav-group-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 0.65rem 0;
        white-space: normal;
        text-align: left;
    }

    .nav-sub {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.28s ease;
    }

    .nav-group.is-open .nav-sub {
        max-height: 22rem;
        padding: 0 0 0.65rem 0.5rem;
    }

    .nav-group.is-open .nav-group-chevron {
        transform: rotate(225deg) translateY(0.05rem);
    }

    .nav-sub-link {
        white-space: normal;
    }
}

@media (min-width: 901px) {
    .site-nav {
        display: flex;
        justify-content: flex-end;
        margin-left: auto;
    }

    .nav-primary {
        justify-content: flex-end;
    }

    .header-inner {
        flex-wrap: nowrap;
    }
}

/* --- WiFi map (Leaflet) — patterns aligned with work-plan council map --- */
.section--flush {
    padding-top: 0;
}

.map-frame--wifi {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream);
    box-shadow: var(--shadow);
}

.map-frame--wifi .map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent) 3%, transparent));
}

.map-toolbar-hint {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 0.15rem;
}

.map-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.map-legend-label {
    margin-right: 0.25rem;
}

.map-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(12, 17, 23, 0.15);
}

.map-swatch.choro-1 {
    background: rgba(31, 122, 107, 0.14);
}

.map-swatch.choro-2 {
    background: rgba(31, 122, 107, 0.22);
}

.map-swatch.choro-3 {
    background: rgba(31, 122, 107, 0.3);
}

.map-swatch.choro-4 {
    background: rgba(31, 122, 107, 0.38);
}

.map-swatch.choro-5 {
    background: rgba(31, 122, 107, 0.48);
}

.map-body {
    position: relative;
}

.map-frame--wifi .map-canvas {
    height: min(72vh, 760px);
    min-height: 420px;
    width: 100%;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    /* Sit above the map canvas (z-index: 1) but below the sticky site header
       (z-index: 50) and its dropdowns (z-index: 80) so the navbar stays
       clickable when scrolling past the map. Leaflet's internal panes are
       confined to the map-canvas stacking context, so this still covers them. */
    z-index: 2;
    pointer-events: none;
    top: 12px;
}

.map-overlay--list {
    left: 12px;
    width: min(420px, 46vw);
}

.map-overlay--detail {
    right: 12px;
    left: auto;
    width: min(340px, 42vw);
}

.map-overlay-card {
    pointer-events: auto;
    background: color-mix(in srgb, var(--cream) 88%, transparent);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.map-overlay-card--detail {
    max-height: min(560px, 70vh);
    display: flex;
    flex-direction: column;
}

.map-overlay-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--cream) 70%, transparent);
}

.map-overlay-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.65rem;
    row-gap: 0.1rem;
    align-content: start;
    max-height: min(520px, 62vh);
    overflow: auto;
    padding: 0.55rem 0.75rem 0.7rem;
}

.map-overlay-item {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.3rem 0.35rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.25;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.map-overlay-item:hover,
.map-overlay-item:focus-visible {
    outline: none;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.wifi-map-detail-body {
    padding: 0.65rem 0.85rem 0.85rem;
    overflow: auto;
    font-size: 0.95rem;
}

.wifi-map-detail-intro {
    margin: 0;
    color: var(--muted);
}

.wifi-map-dl {
    margin: 0;
}

.wifi-map-dl > div {
    margin: 0.5rem 0 0;
}

.wifi-map-dl > div:first-child {
    margin-top: 0;
}

.wifi-map-dl dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.wifi-map-dl dd {
    margin: 0.15rem 0 0;
}

.wifi-map-detail-foot {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.map-error {
    padding: 1rem 1.25rem;
    color: var(--muted);
}

.prose--after-map {
    margin-top: 1.75rem;
    padding-bottom: 2rem;
}

.leaflet-container {
    font-family: var(--font-body);
}

@media (max-width: 900px) {
    .map-overlay--list {
        position: relative;
        width: 100%;
        top: 0;
        left: 0;
        margin: 0;
    }

    .map-overlay--detail {
        position: relative;
        width: 100%;
        top: 0;
        right: 0;
        margin-top: 0.5rem;
    }

    .map-frame--wifi .map-canvas {
        height: 55vh;
        min-height: 320px;
    }

    .map-overlay-list {
        max-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Homepage: Statement band ─────────────────────────────────────────── */

.statement-band {
    background: var(--ink);
    color: #fff;
    padding: 3.5rem 0;
    border-top: 3px solid var(--signal);
}

.statement-band-inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 860px) {
    .statement-band-inner {
        grid-template-columns: 1fr auto;
        gap: 3.5rem;
    }
}

.statement-band-quote {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
}

.statement-band-quote strong {
    color: var(--signal);
}

.statement-band-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 2.25rem;
}

.statement-stat {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.statement-stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--signal);
    line-height: 1;
    letter-spacing: -0.02em;
}

.statement-stat__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.4rem;
    line-height: 1.5;
    text-wrap: balance;
}

.statement-band-source {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0.85rem 0 0;
}

.statement-band-source a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-decoration: underline;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

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

/* ─── Homepage: Audience paths ──────────────────────────────────────────── */

.paths-section {
    padding: 3.5rem 0;
    background: color-mix(in srgb, var(--cream) 60%, var(--paper));
    border-bottom: 1px solid var(--line);
}

.paths-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin: 0 0 0.6rem;
}

.paths-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.005em;
    margin: 0 0 2rem;
    color: var(--ink);
}

.paths-grid {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    gap: 1px;
    background: var(--line);
}

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

.path-card {
    background: var(--cream);
    padding: 1.85rem 1.6rem;
    display: flex;
    flex-direction: column;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.path-card:hover {
    background: color-mix(in srgb, var(--cream) 82%, var(--accent));
}

.path-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin: 0 0 0.5rem;
}

.path-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 0.6rem;
}

.path-body {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    flex: 1;
}

.path-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-dark);
    text-decoration: none;
    margin-top: 1.1rem;
    transition: color 0.12s ease;
}

.path-link::after {
    content: '→';
    transition: transform 0.12s ease;
}

.path-link:hover {
    color: var(--signal);
}

.path-link:hover::after {
    transform: translateX(3px);
}

/* ─── Homepage: Editorial arguments (alternating image rows) ─────────────── */

.arguments-section {
    padding: 2rem 0 0;
}

.arguments-section > .wrap > h2 {
    margin-top: 0;
}

.arguments-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.argument-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    min-height: 360px;
    overflow: hidden;
}

.arguments-list li:last-child {
    border-bottom: 1px solid var(--line);
    margin-bottom: 4rem;
}

.argument-item:nth-child(even) .argument-image {
    order: -1;
}

.argument-text {
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.argument-number {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--signal);
    letter-spacing: 0.06em;
}

.argument-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.005em;
}

.argument-text p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 48ch;
}

.argument-image {
    overflow: hidden;
    background: color-mix(in srgb, var(--paper) 60%, var(--ink) 40%);
}

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

@media (max-width: 700px) {
    .argument-item {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .argument-item:nth-child(even) .argument-image {
        order: 0;
    }

    .argument-image {
        height: 220px;
    }

    .argument-text {
        padding: 2rem 0;
        gap: 0.6rem;
    }
}

/* ─── Homepage: News grid ───────────────────────────────────────────────── */

.home-news-grid {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    gap: 1px;
    background: var(--line);
    margin-top: 2rem;
}

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

.home-news-item {
    background: var(--cream);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.home-news-item .meta {
    margin-bottom: 0.4rem;
}

.home-news-item h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 0.6rem;
    letter-spacing: -0.005em;
}

.home-news-item h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.12s ease;
}

.home-news-item h3 a:hover {
    color: var(--signal);
}

.home-news-item > p:last-child {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    flex: 1;
    line-height: 1.6;
}

/* ─── Homepage: Join CTA band ───────────────────────────────────────────── */

.join-band {
    background: var(--signal);
    padding: 4.5rem 0;
}

.join-band-inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 800px) {
    .join-band-inner {
        grid-template-columns: 1fr auto;
        gap: 3.5rem;
    }
}

.join-band h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
    color: #fff;
}

.join-band p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 55ch;
}

.join-band .btn {
    background: #fff;
    color: var(--signal);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    flex-shrink: 0;
}

.join-band .btn:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--signal);
}

/* ─── Info card (editorial inset, not a generic callout box) ────────────── */

.info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    background: #fff;
}

.info-card__header {
    background: var(--ink);
    padding: 1.25rem 1.75rem;
}

.info-card__heading {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.2rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.info-card__sub {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.info-card__body {
    padding: 1.5rem 1.75rem;
}

.info-card__body p {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.7;
}

.info-card__body p:last-child {
    margin-bottom: 0;
}

.info-card__body strong {
    color: var(--ink);
}

.info-card__body a {
    font-weight: 600;
}

/* ─── Help getting online / schemes ────────────────────────────────────── */

.scheme-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.scheme-card {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--line);
}

.scheme-card:first-child {
    border-top: 1px solid var(--line);
}

.scheme-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.scheme-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.scheme-name {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 0.65rem;
    letter-spacing: -0.005em;
}

.scheme-summary {
    margin: 0 0 1.5rem;
    color: var(--muted);
    max-width: 72ch;
    line-height: 1.7;
}

.scheme-details {
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scheme-detail-row {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.5rem 1.25rem;
    align-items: start;
}

@media (max-width: 600px) {
    .scheme-detail-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.scheme-details dt {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 0.1rem;
}

.scheme-details dd {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.97rem;
}

.scheme-note {
    background: rgba(226, 85, 64, 0.08);
    border-left: 3px solid var(--signal);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.scheme-note p {
    margin: 0;
}

.scheme-source {
    margin: 0;
}

.scheme-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 0;
}

.scheme-footer .share-strip {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Scheme callout on group pages */
.group-help-callout {
    background: color-mix(in srgb, var(--cream) 60%, var(--paper));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
}

.group-help-callout h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
}

.group-help-callout p {
    margin: 0 0 1rem;
    color: var(--muted);
}

/* ─── Community network list (global spotlight page) ────────────────────── */

.community-net-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1.5rem 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.community-net-item {
    padding: 1.5rem 1.75rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.community-net-item:last-child {
    border-bottom: none;
}

.community-net-item:nth-child(even) {
    background: color-mix(in srgb, var(--cream) 70%, var(--paper));
}

.community-net-meta {
    margin-bottom: 0.4rem;
}

.community-net-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.5rem;
    letter-spacing: -0.005em;
}

.community-net-item p {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: none;
}

.community-net-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-decoration: none;
}

.community-net-link:hover {
    color: var(--signal);
}

/* ─── Organisational supporters ─────────────────────────────────────────── */

.supporter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 0;
}

.supporter-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.supporter-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0.3rem 0 0;
    letter-spacing: -0.005em;
    line-height: 1.2;
}

.supporter-card h3 a {
    color: inherit;
    text-decoration: none;
}

.supporter-card h3 a:hover { color: var(--signal); }

.supporter-location {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.supporter-quote {
    font-size: 0.88rem;
    color: var(--muted);
    border-left: 3px solid var(--line);
    margin: 0.5rem 0 0;
    padding: 0.3rem 0.75rem;
    font-style: italic;
    line-height: 1.55;
}

/* Supporter toolkit */
.toolkit-section {
    margin: 2rem 0;
    padding: 1.75rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    max-width: none !important;
    margin-inline: 0 !important;
}

.toolkit-heading {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.6rem;
    letter-spacing: -0.005em;
}

.toolkit-sublabel {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.badge-preview {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.badge-preview--dark {
    background: #2a2f38;
}

.badge-code-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge-code {
    width: 100%;
    min-height: 80px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    background: #fff;
    color: var(--muted);
    resize: vertical;
}

.social-template {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-template__text {
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.65;
    margin: 0;
}

/* ─── Write to councillor ───────────────────────────────────────────────── */

.letter-form {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.25rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: none !important;
    margin-inline: 0 !important;
}

.letter-form__row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.letter-form__label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.letter-form__input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.12s;
    resize: vertical;
}

.letter-form__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31,122,107,0.1);
}

.letter-form__hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.letter-output-wrap {
    margin: 1.25rem 0 2rem;
    max-width: none !important;
    margin-inline: 0 !important;
}

.letter-output {
    width: 100%;
    min-height: 380px;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--ink);
    background: #fff;
    resize: vertical;
}

.letter-output-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
}

.letter-output-hint {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.councillor-routes {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.25rem 0;
    max-width: none !important;
    margin-inline: 0 !important;
}

.councillor-route {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.1rem 1.4rem;
    background: var(--cream);
    text-decoration: none;
    transition: background 0.12s;
}

.councillor-route:hover {
    background: color-mix(in srgb, var(--cream) 80%, var(--accent));
}

.councillor-route strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.councillor-route span {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ─── Cookie notice ─────────────────────────────────────────────────────── */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: var(--ink);
    border-top: 3px solid var(--signal);
    padding: 1rem 0;
}

.cookie-notice__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cookie-notice__text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.cookie-notice__text a {
    color: #fff;
    font-weight: 600;
}

.cookie-notice__btn {
    background: #fff;
    color: var(--ink);
    border: none;
    flex-shrink: 0;
    font-weight: 700;
}

.cookie-notice__btn:hover {
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
}

/* ─── Share strip ───────────────────────────────────────────────────────── */

.share-strip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    margin-top: 2.5rem;
}

.share-strip--compact {
    padding: 0.6rem 0 0;
    border-top: none;
    margin-top: 0.75rem;
}

.share-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 0.25rem;
    white-space: nowrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1.5px solid var(--line);
    background: var(--cream);
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
    white-space: nowrap;
}

.share-btn:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--cream) 80%, var(--accent));
    color: var(--ink);
}

.share-btn--native {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.share-btn--native:hover {
    background: #1a2430;
    border-color: #1a2430;
    color: #fff;
}

.share-btn--wa { border-color: #25d366; color: #1a6e38; }
.share-btn--wa:hover { background: #25d366; color: #fff; border-color: #25d366; }

.share-btn--copied {
    border-color: var(--accent);
    background: rgba(31, 122, 107, 0.1);
    color: var(--accent-dark);
}

/* ─── Article inline images (inserted into news body HTML) ─────────────── */

.prose .article-img {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(12, 17, 23, 0.08);
}

.prose .article-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.prose .article-img figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    color: var(--muted);
    background: color-mix(in srgb, var(--cream) 80%, var(--paper));
    border-top: 1px solid var(--line);
    line-height: 1.45;
}

.prose .article-img--left {
    float: left;
    width: clamp(180px, 42%, 380px);
    margin: 0.25rem 1.75rem 1rem 0;
    clear: left;
}

.prose .article-img--right {
    float: right;
    width: clamp(180px, 42%, 380px);
    margin: 0.25rem 0 1rem 1.75rem;
    clear: right;
}

.prose .article-img--full {
    float: none;
    width: 100%;
    margin: 1.75rem 0;
    max-width: none !important;
    margin-inline: 0 !important;
}

.prose::after {
    content: '';
    display: table;
    clear: both;
}

@media (max-width: 640px) {
    .prose .article-img--left,
    .prose .article-img--right {
        float: none;
        width: 100%;
        margin: 1rem 0;
        clear: both;
    }
}

/* ─── Local groups directory & group pages ──────────────────────────────── */

.groups-empty {
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.group-meta strong {
    color: var(--ink);
}

.event-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.event-item {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.event-item:first-child {
    border-top: 1px solid var(--line);
}

.event-date-badge {
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
    padding: 0.5rem 0.4rem;
    text-align: center;
    line-height: 1.1;
    font-family: var(--font-display);
}

.event-date-badge .event-day {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
}

.event-date-badge .event-month {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}

.event-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: var(--ink);
}

.event-body p {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.event-body a {
    font-size: 0.92rem;
    font-weight: 600;
}

.start-group-steps {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    counter-reset: steps;
}

.start-group-step {
    counter-increment: steps;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.start-group-step:first-child {
    border-top: 1px solid var(--line);
}

.start-group-step::before {
    content: counter(steps);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--signal);
    padding-top: 0.2rem;
}

.start-group-step h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--ink);
}

.start-group-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.what-we-provide {
    background: color-mix(in srgb, var(--cream) 60%, var(--paper));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
}

.what-we-provide h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.what-we-provide ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.what-we-provide li + li {
    margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INNER PAGE LAYOUT SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Two-column page layout (content + sidebar) ────────────────────────── */

.page-layout {
    display: grid;
    grid-template-columns: 1fr 17rem;
    gap: 3.5rem;
    align-items: start;
    padding: 3rem 0 4rem;
}

@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.page-layout .prose {
    min-width: 0;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */

.page-sidebar {
    position: sticky;
    top: calc(3.5rem + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .page-sidebar {
        position: static;
    }
}

.sidebar-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
}

.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.85rem;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.sidebar-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 0.85rem;
    line-height: 1.6;
}

.sidebar-card p:last-child { margin-bottom: 0; }

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--line);
}

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

.sidebar-nav a {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.12s;
}

.sidebar-nav a:hover { color: var(--signal); }
.sidebar-nav a[aria-current] { color: var(--ink); }

.sidebar-card--highlight {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.sidebar-card--highlight h3 { color: #fff; }
.sidebar-card--highlight p  { color: rgba(255,255,255,0.8); }

.sidebar-card--accent {
    background: color-mix(in srgb, var(--signal) 8%, var(--cream));
    border-color: color-mix(in srgb, var(--signal) 30%, var(--line));
}

/* ─── Pull quotes ────────────────────────────────────────────────────────── */

.pull-quote {
    border-left: 4px solid var(--signal);
    background: color-mix(in srgb, var(--paper) 70%, var(--cream));
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.prose .pull-quote { max-width: none !important; margin-inline: 0 !important; }

.pull-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    margin: 0;
    font-style: italic;
    max-width: none !important;
    margin-inline: 0 !important;
}

.pull-quote cite {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    font-style: normal;
    margin-top: 0.6rem;
    letter-spacing: 0.02em;
}

/* ─── Stat callouts ──────────────────────────────────────────────────────── */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 2rem 0;
}

.prose .stat-strip { max-width: none !important; margin-inline: 0 !important; }

.stat-item {
    background: var(--cream);
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    color: var(--signal);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ─── Featured news article ──────────────────────────────────────────────── */

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
}

@media (max-width: 720px) {
    .featured-article { grid-template-columns: 1fr; }
}

.featured-article-img {
    margin: 0;
    overflow: hidden;
    background: var(--ink);
    min-height: 260px;
}

.featured-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-article-body {
    padding: 2rem 2rem 1.75rem;
    background: var(--cream);
    display: flex;
    flex-direction: column;
}

.featured-article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    margin: 0.5rem 0 0.75rem;
    letter-spacing: -0.005em;
}

.featured-article-body h2 a {
    text-decoration: none;
    color: inherit;
}

.featured-article-body h2 a:hover { color: var(--signal); }

.featured-article-body p {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    flex: 1;
}

/* ─── News card grid ─────────────────────────────────────────────────────── */

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.news-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(12,17,23,0.1);
}

.news-card-thumb {
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    flex-shrink: 0;
}

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

.news-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    margin: 0.4rem 0 0.6rem;
    letter-spacing: -0.005em;
}

.news-card-body h3 a {
    text-decoration: none;
    color: inherit;
}

.news-card-body h3 a:hover { color: var(--signal); }

/* Date-stamp thumbnails for articles without a specific image */
.news-card-thumb--datestamp,
.featured-article-img--datestamp {
    background: var(--paper);
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-datestamp {
    text-align: center;
    user-select: none;
}

.news-datestamp__day {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.news-datestamp__month {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.2rem;
}

.news-datestamp__year {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--muted) 50%, transparent);
    margin-top: 0.15rem;
}

/* Larger stamp for the featured article */
.featured-article-img--datestamp .news-datestamp__day {
    font-size: 5rem;
}

.news-card-body p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

/* ─── Visual step list ───────────────────────────────────────────────────── */

.step-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    counter-reset: steps;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    counter-increment: steps;
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.25rem;
    align-items: start;
}

.step-item::before {
    content: counter(steps);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: var(--signal);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.step-item h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0.35rem 0 0.4rem;
    color: var(--ink);
}

.step-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.97rem;
}

/* ─── Icon-feature cards (for spotlights, resources) ────────────────────── */

.icon-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.icon-card-img {
    height: 180px;
    overflow: hidden;
    background: color-mix(in srgb, var(--ink) 85%, var(--accent));
    flex-shrink: 0;
}

.icon-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

.icon-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.icon-card-body h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.icon-card-body p {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0 0 1.1rem;
    flex: 1;
}

/* ─── Section intro banner ───────────────────────────────────────────────── */

.page-hero-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.prose .page-hero-img { max-width: none !important; margin-inline: 0 !important; }

/* Campaign statement card — ink background with large type; used in place of images
   where a photo would add nothing or send the wrong signal */
.campaign-statement-card {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 2.75rem 2.5rem;
    margin: 0 0 2rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none !important;
    margin-inline: 0 !important;
}

.campaign-statement-card__line1 {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    max-width: none !important;
    margin-inline: 0 !important;
}

.campaign-statement-card__line2 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--signal);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: none !important;
    margin-inline: 0 !important;
}
