/*
 * Melbury Abbas & Cann Parish Council — Frontend Stylesheet
 * ──────────────────────────────────────────────────────────
 * Colour palette (matching existing site exactly):
 *   Dark teal:    #033    — headings, nav bg, footer bg, borders
 *   Teal accent:  #4c9999 — active states, pagination, hover
 *   Panel green:  #15604c — homepage panels, download links
 *   Contact green:#408e64 — contact panel bg
 *   Off-white:    #f9f9f9 — text on dark backgrounds
 *   Body text:    #1e1e1e
 *   Date box bg:  #dcdcdc
 *   Download bg:  #f0f0f0
 * Font: Arial, Helvetica Neue, Helvetica, sans-serif
 */

/* ── Accessibility ─────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #033;
    color: #f9f9f9;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #4c9999;
    outline-offset: 2px;
}
:focus-visible {
    outline: 3px solid #4c9999;
    outline-offset: 3px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e1e1e;
    background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #033; text-decoration: underline; }
a:hover { text-decoration: none; }

/* ── Site wrapper — constrains everything to 1200px ── */
.site-wrapper { max-width: 1200px; margin: 0 auto; }

/* ── Container ─────────────────────────────────── */
.container { max-width: 100%; padding: 0 1.25rem; }

/* ── Preview / Admin ───────────────────────────── */
.preview-banner {
    background: #c14e48;
    color: #f9f9f9;
    text-align: center;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.draft-badge {
    display: inline-block;
    background: #c14e48;
    color: #f9f9f9;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 0.5rem;
}
.admin-bar {
    background: #000;
    color: #fff;
    padding: 0.4rem 1.25rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
.admin-bar a { color: #4c9999; text-decoration: none; }

/* ── Header / Slideshow ────────────────────────── */
.site-header {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: #033;
}

/* Slideshow slides — absolutely fill the header */
.header-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.header-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.header-slide.active { opacity: 1; }

/* Logo + email overlaid on top of slideshow */
.site-header-overlay {
    position: relative;
    z-index: 5;
    min-height: 300px;
}
.site-logo-link {
    display: inline-block;
    position: absolute;
    top: 50px;
    left: 20px;
    max-width: 250px;
}
.site-logo { max-width: 250px; height: auto; display: block; }
.site-header-email {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1.25rem;
    background-color: rgba(0, 51, 51, 0.3);
    color: #fff;
    text-align: right;
    text-decoration: none;
    font-size: 1.875rem;
    font-weight: 400;
}
.site-header-email:hover { text-decoration: underline; color: #fff; }

/* ── Navigation ────────────────────────────────── */
.site-nav {
    background-color: #033;
    border-right: 1px dashed #fff;
    border-bottom: 2px dashed #fff;
    border-left: 1px dashed #fff;
    border-bottom-right-radius: 170px 40px;
    border-bottom-left-radius: 170px 40px;
    margin-bottom: 20px;
}
.site-nav .container {
    display: flex;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    align-items: flex-start;
    justify-content: center;
}

/* Nav items */
.nav-main { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; }
.nav-item { position: relative; }
.nav-item > a,
.nav-item > button {
    display: block;
    padding: 10px 17px 5px;
    border-bottom: 5px solid #033;
    background-color: #033;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    line-height: inherit;
    font-family: inherit;
    font-weight: 400;
    cursor: pointer;
    border-top: none;
    border-left: none;
    border-right: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease;
    touch-action: manipulation;
}
.nav-item > a:hover,
.nav-item > button:hover,
.nav-item.active > a,
.nav-item.active > button { border-bottom-color: #4c9999; text-decoration: none; }
.nav-item > a[aria-current="page"] { border-bottom-color: #4c9999; }

/* Dropdown trigger caret */
.nav-caret {
    display: inline-block;
    font-size: 0.7em;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}
[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #033;
    box-shadow: rgba(0,0,0,0.5) 0 5px 10px 0;
    z-index: 9999;
    list-style: none;
    min-width: 180px;
}
.nav-sub.open { display: block; }
.nav-item:hover .nav-sub { display: block; }
.nav-sub li {
    padding: 5px 10px;
    min-width: 200px;
    border-bottom: 2px solid #033;
    text-transform: capitalize;
}
.nav-sub li:hover { border-bottom-color: #4c9999; background-color: #033; }
.nav-sub li a {
    color: #fff;
    text-decoration: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
}
.nav-sub li[aria-current="page"] { border-bottom-color: #4c9999; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: #033;
    color: #f9f9f9;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    text-align: left;
    touch-action: manipulation;
}

/* ── Typography ────────────────────────────────── */
h1 { font-size: 26px; font-weight: 700; color: #033; line-height: 160%; margin-bottom: 0.5rem; }
h2 { font-size: 23px; font-weight: 700; color: #033; line-height: 160%; margin-bottom: 0.5rem; }
h3 { font-size: 21px; font-weight: 700; color: #033; line-height: 160%; margin-bottom: 0.5rem; }
h4 { font-size: 23px; color: #000; margin-bottom: 0.5rem; }
h5 { font-size: 20px; color: #000; margin-bottom: 0.5rem; }
h6 { font-size: 18px; color: #000; margin-bottom: 0.5rem; }
p  { font-size: 16px; color: #1e1e1e; margin-bottom: 1rem; }

/* Heading with rule */
.heading-rule { margin-bottom: 10px; }
.heading-rule hr { border: none; border-top: 1px solid #033; }

/* ── Main content area ─────────────────────────── */
.page-body { padding: 1.5rem 0 2.5rem; }
.page-body .container { display: flex; flex-wrap: wrap; align-items: flex-start; }
.main-content { flex: 1; padding: 0 10px; min-width: 0; }
.side-content { float: right; margin-left: 20px; max-width: 25%; }

/* ── Page title rule ───────────────────────────── */
.page-title-rule { border: none; border-top: 2px solid #3a5f2e; margin: 0.5rem 0 1.25rem; }

/* ── Sidebar layout ────────────────────────────── */
.content-with-sidebar { display: flex; gap: 2rem; align-items: flex-start; width: 100%; }
.content-main { flex: 1; min-width: 0; }
.page-sidebar { width: 220px; flex-shrink: 0; }

/* ── Sidebar panels ────────────────────────────── */
.sidebar-panel {
    background-color: #033;
    color: #f9f9f9;
    padding: 0 20px 20px;
    margin-bottom: 15px;
    border: 1px dashed #f9f9f9;
    border-radius: 20px;
}
.sidebar-panel-alt { background-color: #408e64; }
.sidebar-panel-title {
    font-size: 20px;
    font-weight: 400;
    color: #f9f9f9;
    text-align: center;
    margin: 10px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #f9f9f9;
}
.sidebar-panel-date { color: #f9f9f9; margin: 0.5rem 0 0; font-size: 16px; text-align: center; line-height: 1.4; }
.sidebar-news-list { list-style: none; margin: 0; padding: 0; }
.sidebar-news-list li { padding: 3px 0; }
.sidebar-news-list a { color: #f9f9f9; text-decoration: none; font-size: 15px; line-height: 1.2; display: block; padding-left: 5%; }
.sidebar-news-list a:hover { text-decoration: underline; }
.sidebar-see-all { display: block; text-align: right; color: #f9f9f9; font-size: 13px; text-decoration: none; margin-top: 8px; }
.sidebar-see-all:hover { text-decoration: underline; }
.sidebar-contact-detail { color: #f9f9f9; font-size: 15px; margin: 0.3rem 0; text-align: center; }
.sidebar-contact-detail a { color: #f9f9f9; }
.sidebar-contact-detail a:hover { text-decoration: underline; }

.cms-content { font-size: 16px; line-height: 1.7; color: #1e1e1e; }
.cms-content h1 { font-size: 26px; }
.cms-content h2 { font-size: 23px; }
.cms-content h3 { font-size: 21px; }
.cms-content ul, .cms-content ol { margin: 0.75rem 0 1rem 2rem; }
.cms-content li { margin-bottom: 0.3rem; font-size: 16px; color: #1e1e1e; line-height: 1.7; }
.cms-content a { color: #033; }
.cms-content blockquote { font-size: 16px; margin: 1rem 0; padding-left: 1rem; border-left: 3px solid #4c9999; }

/* ── Homepage panels ───────────────────────────── */
.homepage-panels {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 1rem 0;
}
.panel {
    margin: 0 1%;
    padding: 20px;
    border: 1px dashed #f9f9f9;
    border-radius: 20px;
    background-color: #15604c;
    display: flex;
    flex-direction: column;
    flex: 1 1 220px;
    max-width: 24%;
}
.panel-title {
    margin: 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px dashed #f9f9f9;
    color: #f9f9f9;
    text-align: center;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
}
.panel-text { color: #f9f9f9; text-align: center; line-height: 1.7; font-size: 16px; margin-bottom: 0.75rem; }
.panel-link {
    display: block;
    padding-left: 5%;
    color: #f9f9f9;
    text-decoration: none;
    line-height: 1.2;
    font-size: 16px;
    margin-bottom: 0.4rem;
}
.panel-link:hover { text-decoration: underline; color: #f9f9f9; }
.panel-news-title { color: #f9f9f9; text-decoration: none; font-size: 16px; display: block; margin-top: 0.5rem; }
.panel-news-title:hover { text-decoration: underline; color: #f9f9f9; }
.panel-news-summary { color: #f9f9f9; font-size: 14px; margin: 0.25rem 0; }
.panel-read-more { color: #f9f9f9; text-decoration: none; font-size: 14px; text-align: right; display: block; margin-top: auto; line-height: 1.2; }
.panel-read-more:hover { text-decoration: underline; color: #f9f9f9; }

/* ── News listing ──────────────────────────────── */
.news-list { margin-top: 10px; }
.news-item {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
    margin-bottom: 1rem;
}
.news-date {
    flex-shrink: 0;
    margin-right: 1%;
    min-width: 80px;
    border-radius: 5px;
    background-color: #dcdcdc;
    text-align: center;
    padding: 0.4rem;
}
.news-date-day { display: block; font-size: 26px; color: #1e1e1e; text-decoration: none; line-height: 1; }
.news-date-month { display: block; font-size: 14px; color: #1e1e1e; text-decoration: none; text-transform: uppercase; line-height: 1; margin: 2px 0; }
.news-date-year { display: block; font-size: 14px; color: #1e1e1e; text-decoration: none; line-height: 1; }
.news-summary { position: relative; flex: 1; }
.news-title { font-weight: 700; color: #033; text-decoration: none; font-size: 16px; display: block; margin-bottom: 0.25rem; }
.news-title:hover { text-decoration: underline; }
.news-excerpt { font-size: 16px; color: #1e1e1e; margin: 0; }
.news-read-more { float: right; font-size: 14px; color: #033; text-decoration: none; margin-top: 0.25rem; }
.news-read-more:hover { text-decoration: underline; }

/* ── News article ──────────────────────────────── */
.news-article-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.news-article-meta .card-meta { color: #555; font-size: 14px; margin: 0; }
.back-link { font-size: 14px; color: #033; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ── Neighbourhood Plan feed ───────────────────── */
.np-feed { width: 100%; }

/* ── Pagination ────────────────────────────────── */
.pagination-wrap { display: flex; align-items: center; padding: 5px 0; flex-wrap: wrap; gap: 0.25rem; margin-top: 1rem; }
.pagination-wrap a, .pagination-wrap span {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid #4c9999;
    background-color: #4c9999;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    min-width: 24px;
    text-align: center;
}
.pagination-wrap span[aria-current] { background-color: #033; border-color: #033; }
.pagination-wrap span.disabled { background-color: #99b8b8; border-color: #99b8b8; }
.pagination-wrap a:hover { background-color: #033; border-color: #033; color: #fff; text-decoration: none; }

/* ── Downloads ─────────────────────────────────── */
.downloads-list { margin-top: 1rem; }
.download-wrapper {
    margin-bottom: 20px;
    padding: 10px;
    width: 70%;
    border: 1px solid #dedede;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.download-info { flex: 1; }
.download-title { font-weight: 700; font-size: 16px; color: #033; margin-bottom: 0.15rem; display: block; }
.download-desc { font-size: 14px; color: #1e1e1e; margin: 0; }
.download-link {
    display: inline-block;
    padding: 5px 20px;
    border-radius: 4px;
    background-color: #15604c;
    color: #f9f9f9;
    text-decoration: none;
    font-size: 15px;
}
.download-link:hover { background-color: #033; color: #f9f9f9; text-decoration: none; }

/* ── Spreadeagle Magazine ──────────────────────── */
.spreadeagle-group { display: block; width: 100%; background: #f0f0f0; border: 1px solid #ddd; margin-bottom: 1.5rem; padding: 1rem 1.5rem 1.25rem; }
.spreadeagle-year { font-size: 18px; font-weight: 700; color: #033; text-align: center; margin: 0 0 0.75rem; padding: 0; border: none; }
.spreadeagle-issues { display: grid; grid-template-columns: 1fr 1fr; padding: 0 0.5rem; }
.spreadeagle-issue { padding: 0.25rem 0; }
.spreadeagle-issue a { display: block; width: 100%; color: #15604c; text-align: center; text-decoration: none; }
.spreadeagle-issue a:hover { text-decoration: underline; }

/* ── Neighbourhood Plan ────────────────────────── */
.np-year-row { display: flex; align-items: baseline; gap: 1.5rem; padding: 0.5rem 0; border-bottom: 1px solid #e0e0e0; }
.np-year-row:last-child { border-bottom: none; }
.np-year-label { font-weight: 700; font-size: 17px; color: #033; min-width: 3.5rem; flex-shrink: 0; }
.np-year-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.np-year-items li { font-size: 15px; }
.np-year-items a { color: #15604c; text-decoration: none; }
.np-year-items a:hover { text-decoration: underline; }

/* ── Councillors / Staff ───────────────────────── */
.councillors-wrap {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    width: 100%;
}
.councillor-card {
    position: relative;
    margin: 0 1% 15px;
    padding: 15px;
    width: 31%;
    border: 1px solid #dedede;
}
.councillor-card:nth-child(odd)  { background-color: #dadada; }
.councillor-card:nth-child(even) { background-color: #fff; }
.councillor-card img { float: left; margin: 0 10px 0 0; }
.councillor-name { font-weight: 400; font-size: 23px; color: #033; margin-bottom: 0.25rem; }
.councillor-title { font-size: 16px; color: #1e1e1e; }
.councillor-summary { font-size: 17px; color: #1e1e1e; }
.councillor-contact { display: block; margin: 7px 0; text-decoration: none; font-size: 16px; color: #033; line-height: 1.2; }
.councillor-contact:hover { text-decoration: underline; }
.councillor-read-more { position: absolute; right: 10px; bottom: 10px; color: #033; text-decoration: none; font-size: 16px; }
.councillor-read-more:hover { text-decoration: underline; }

/* ── Links grid ────────────────────────────────── */
.links-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.link-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin: 0 1% 15px;
    padding: 10px;
    width: 31%;
    min-height: 110px;
    border: 1px solid #dedede;
    text-decoration: none;
    color: #033;
}
.link-card:nth-child(odd)  { background-color: #dadada; }
.link-card:nth-child(even) { background-color: #fff; }
.link-card:hover { background-color: #c8d8d8; text-decoration: none; color: #033; }
.link-card-title { font-weight: 400; font-size: 20px; line-height: 1.3; }
.link-card-desc  { font-size: 14px; color: #444; margin-top: 6px; }

/* ── Contact form ──────────────────────────────── */
.contact-section { padding: 1.5rem 0; }
.contact-layout { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.contact-form-wrap { flex: 1; }
.contact-details-wrap {
    padding: 20px;
    border: 1px dashed #f9f9f9;
    border-radius: 20px;
    background-color: #408e64;
    min-width: 220px;
}
.contact-details-wrap h2, .contact-details-wrap p, .contact-details-wrap address { color: #f9f9f9; text-align: center; }
.contact-details-wrap a { color: #f9f9f9; text-align: center; }

.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-weight: 600; font-size: 0.85rem; color: #033; }
.form-group .required-marker { color: #c14e48; }
.form-group input, .form-group textarea, .form-group select {
    padding: 0.5rem;
    min-height: 44px;
    font-size: 16px;
    font-family: inherit;
    color: #1e1e1e;
    border: 1px solid #767676;
    width: 100%;
}
.form-group textarea { height: 150px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: #4c9999; outline: none; box-shadow: 0 0 0 3px rgba(76,153,153,0.2); }
.form-error { color: #c14e48; font-size: 0.78rem; }
.required-note { font-size: 0.8rem; color: #666; margin-bottom: 0.75rem; }
.btn-submit {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 10px;
    background-color: #4c9999;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
}
.btn-submit:hover { background-color: #408e64; }
.btn-go-back {
    float: right;
    padding: 5px 20px;
    border-radius: 4px;
    background-color: #15604c;
    color: #f9f9f9;
    text-decoration: none;
    font-size: 15px;
}
.btn-go-back:hover { background-color: #033; color: #f9f9f9; text-decoration: none; }

/* Form alerts */
.form-alert { padding: 1rem 1.25rem; margin-bottom: 1rem; font-size: 0.9rem; }
.form-alert-success { background: #f0faf0; border-left: 4px solid #15604c; color: #15604c; }
.form-alert-error { background: #fef2f2; border-left: 4px solid #c14e48; color: #c14e48; }

/* ── Footer ────────────────────────────────────── */
.site-footer {
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px dashed #f9f9f9;
    border-right: 1px dashed #f9f9f9;
    border-left: 1px dashed #f9f9f9;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-color: #033;
}
.footer-nav-title { color: #fff; font-size: 1rem; font-weight: 700; margin: 1rem 1% 0.35rem; }
.footer-nav-title:first-child { margin-top: 0; }
.footer-nav-list { list-style: none; margin: 0 1%; padding: 0; margin-bottom: 0.75rem; }
.footer-nav-list li { display: inline; margin-right: 20px; }
.footer-nav-list li a { color: #fff; text-decoration: none; font-size: 14px; }
.footer-nav-list li a:hover { text-decoration: underline; }
.footer-nav-list.text-list li { color: #f9f9f9; font-size: 16px; }
.footer-heading { color: #fff; margin-left: 1%; margin-bottom: 0.5rem; font-size: 23px; }
.footer-bottom { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 0 1%; }
.footer-copyright { color: #f9f9f9; font-size: 14px; }
.footer-motley {
    float: right;
    padding: 8px 8px 8px 40px;
    background-image: url('/images/motley-logo.png');
    background-position: left center;
    background-size: contain;
    background-repeat: no-repeat;
    color: #f9f9f9;
    text-decoration: none;
    font-size: 12px;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 1;
}

/* ── Links page ────────────────────────────────── */
.links-list { margin-top: 1rem; }
.link-item { padding: 0.75rem 0; border-bottom: 1px solid #dedede; }
.link-item:last-child { border-bottom: none; }
.link-item h3 { font-size: 18px; margin-bottom: 0.15rem; }
.link-item h3 a { color: #033; }
.link-item p { font-size: 15px; color: #1e1e1e; margin: 0; }

/* ── Buttons ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    min-height: 44px;
    min-width: 44px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
    background-color: #15604c;
    color: #f9f9f9;
    border-color: #15604c;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #033;
    border-color: #033;
    color: #f9f9f9;
    text-decoration: none;
}
.btn-secondary {
    background-color: #033;
    color: #f9f9f9;
    border-color: #033;
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #15604c;
    border-color: #15604c;
    color: #f9f9f9;
    text-decoration: none;
}
.btn-outline {
    background-color: transparent;
    color: #033;
    border-color: #033;
}
.btn-outline:hover, .btn-outline:focus {
    background-color: #033;
    color: #f9f9f9;
    text-decoration: none;
}

/* ── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .header-slide { transition: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Responsive ────────────────────────────────── */
@media screen and (max-width: 1200px) {
    .site-nav {
        border-bottom-right-radius: 100px 30px;
        border-bottom-left-radius: 100px 30px;
    }
}

@media screen and (max-width: 992px) {
    h2 { font-size: 30px; }
    h3 { font-size: 25px; }
    .side-content { max-width: 30%; }
    .site-header { min-height: 220px; }
    .site-header-overlay { min-height: 220px; }
    .panel { max-width: 48%; }
    .news-item { width: 67%; }
    .news-date { min-width: 57px; }
    .councillors-wrap { width: 100%; }
    .councillor-card { width: 48%; }
    .link-card { width: 48%; }
    .download-wrapper { width: 66%; }
    .site-header-email { font-size: 1.125rem; }
    .site-logo-link { top: 20px; }
    .site-logo { max-width: 236px; }
}

@media screen and (max-width: 768px) {
    h2 { font-size: 28px; }
    h3 { font-size: 21px; }
    p { font-size: 16px; }

    .nav-toggle { display: block; }
    .nav-main { display: none; flex-direction: column; width: 100%; }
    .nav-main.open { display: flex; }
    .nav-item > a, .nav-item > button { width: 100%; text-align: left; }
    .nav-sub { position: static; box-shadow: none; padding-left: 50px; }
    .nav-item:hover .nav-sub { display: none; }
    .nav-item[data-has-sub] .nav-sub.open { display: block; }
    .site-nav {
        border-right: none;
        border-bottom: none;
        border-left: none;
        border-radius: 0;
    }

    .site-header { min-height: 220px; }
    .site-header-overlay { min-height: 220px; }
    .site-header-email { font-size: 1rem; text-align: center; }
    .site-logo-link { position: relative; top: 10px; left: auto; margin: 0 auto; display: block; }

    .side-content { max-width: none; float: none; margin-left: 0; }
    .page-body .container { flex-direction: column; }
    .content-with-sidebar { flex-direction: column; }
    .page-sidebar { width: 100%; }

    .panel { max-width: 48%; }
    .council-wrap { flex-wrap: wrap; }

    .news-item { width: 100%; }
    .news-date { margin-right: 2%; min-width: 60px; }
    .news-summary { width: 83%; }

    .download-wrapper { width: 100%; }

    .councillors-wrap { width: 100%; }
    .councillor-card { width: 48%; }
    .link-card { width: 48%; }

    .contact-layout { flex-direction: column; }
}

@media screen and (max-width: 480px) {
    h1 { font-size: 23px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }

    .panel { max-width: 100%; width: 100%; }
    .news-date { min-width: 50px; }
    .news-summary { width: 79%; }
    .download-wrapper { width: 100%; }
    .councillor-card { width: 100%; }
    .link-card { width: 100%; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; }
    .footer-nav-list li { display: inline-block; }
}

@media screen and (max-width: 320px) {
    .panel { width: 100%; margin: 0; }
    .download-wrapper { width: 95%; }
    .councillor-card { width: 100%; }
    .link-card { width: 100%; }
}
