/* ============================================================
   style.css — school-term-dates-and-holidays.co.uk
   Font: Inter (Google Fonts)
   Palette: Deep navy + white, professional, authoritative
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design tokens ───────────────────────────────────────── */
:root {
    /* Navy palette */
    --navy-50:   #f0f4ff;
    --navy-100:  #e0e9ff;
    --navy-200:  #c7d7fe;
    --navy-300:  #a5b8fc;
    --navy-400:  #8098f9;
    --navy-500:  #6172f3;
    --navy-600:  #444ce7;
    --navy-700:  #3538cd;
    --navy-800:  #2d31a6;
    --navy-900:  #1f235c;
    --navy-950:  #141741;

    /* Accent — a clean teal to complement navy */
    --accent:        #0ea5e9;
    --accent-dark:   #0284c7;
    --accent-light:  #e0f2fe;

    /* Neutrals */
    --grey-50:   #f8fafc;
    --grey-100:  #f1f5f9;
    --grey-200:  #e2e8f0;
    --grey-300:  #cbd5e1;
    --grey-400:  #94a3b8;
    --grey-500:  #64748b;
    --grey-600:  #475569;
    --grey-700:  #334155;
    --grey-800:  #1e293b;
    --grey-900:  #0f172a;

    /* Semantic */
    --color-primary:       var(--navy-900);
    --color-primary-mid:   var(--navy-800);
    --color-primary-light: var(--navy-50);
    --color-accent:        var(--accent);
    --color-text:          var(--grey-900);
    --color-text-muted:    var(--grey-500);
    --color-border:        var(--grey-200);
    --color-bg:            #ffffff;
    --color-bg-soft:       var(--grey-50);

    /* Typography */
    --font-base:    'Inter', system-ui, sans-serif;
    --text-xs:      0.75rem;
    --text-sm:      0.875rem;
    --text-base:    1rem;
    --text-lg:      1.125rem;
    --text-xl:      1.25rem;
    --text-2xl:     1.5rem;
    --text-3xl:     1.875rem;
    --text-4xl:     2.25rem;
    --text-5xl:     3rem;
    --leading-snug: 1.3;
    --leading-base: 1.65;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Radii */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.05);
    --shadow-lg: 0 8px 24px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.06);

    /* Layout */
    --max-width:     1200px;
    --header-height: 64px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-base);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

/* ── Skip link ───────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-weight: 700;
    z-index: 9999;
}
.skip-link:focus { top: var(--space-2); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.site-header__inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

/* Logo */
.site-header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__logo:hover {
    text-decoration: none;
}

.site-header__logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.site-header__logo-text {
    font-size: var(--text-base);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -.01em;
    white-space: nowrap;
}

/* Nav */
.site-header__nav { margin-left: auto; }

.site-header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.site-header__nav-link {
    display: block;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--navy-300);
    text-decoration: none;
    transition: background .15s, color .15s;
    letter-spacing: .01em;
}

.site-header__nav-link:hover,
.site-header__nav-link.is-active {
    background: rgba(255,255,255,.08);
    color: #ffffff;
    text-decoration: none;
}

/* Hamburger */
.site-header__nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    margin-left: auto;
    padding: var(--space-2);
    border-radius: var(--radius-md);
}

.site-header__nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.site-header__nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Main ────────────────────────────────────────────────── */
.site-main { flex: 1; }

/* ── Page hero ───────────────────────────────────────────── */
.page-hero {
    background: var(--navy-950);
    color: #ffffff;
    padding: var(--space-12) var(--space-6);
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14,165,233,.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--navy-300);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.page-hero__title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-5xl));
    font-weight: 800;
    line-height: var(--leading-snug);
    margin-bottom: var(--space-4);
    max-width: 740px;
    margin-inline: auto;
    letter-spacing: -.02em;
}

.page-hero__desc {
    font-size: var(--text-lg);
    color: var(--navy-300);
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-4);
    font-weight: 400;
}

.page-hero__desc--sub {
    font-size: var(--text-sm);
    color: var(--navy-400);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}

/* ── Hero search bar ─────────────────────────────────────── */
.hero-search {
    position: relative;
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-6);
    overflow: visible;
}

.hero-search__input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    padding-right: 140px;
    font-family: var(--font-base);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--grey-900);
    background: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.1);
    outline: none;
    transition: box-shadow .2s;
}

.hero-search__input:focus {
    box-shadow: 0 4px 24px rgba(0,0,0,.22), 0 0 0 3px rgba(14,165,233,.35);
}

.hero-search__input::placeholder { color: var(--grey-400); }

.hero-search__btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: var(--space-3) var(--space-5);
    background: var(--navy-900);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.hero-search__btn:hover { background: var(--navy-800); }

.hero-search__results {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.1);
    z-index: 9999;
    max-height: 340px;
    overflow-y: auto;
    text-align: left;
}

.hero-search__results.is-open { display: block; }

.hero-search__result-group {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--grey-100);
}

.hero-search__result-group:last-child { border-bottom: none; }

.hero-search__result-label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: var(--space-2) var(--space-4) var(--space-1);
}

.hero-search__result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background .1s;
    text-decoration: none;
    color: var(--grey-900);
}

.hero-search__result-item:hover {
    background: var(--grey-50);
    text-decoration: none;
}

.hero-search__result-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--grey-900);
}

.hero-search__result-meta {
    font-size: var(--text-xs);
    color: var(--grey-400);
}

.hero-search__hint {
    font-size: var(--text-xs);
    color: var(--navy-400);
    margin-top: var(--space-3);
    text-align: center;
}



/* ── Section ─────────────────────────────────────────────── */
.section { padding-block: var(--space-12); }
.section--soft { background: var(--color-bg-soft); }

.section__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: var(--space-2);
    letter-spacing: -.02em;
}

.section__subtitle {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

/* ── Cards grid ──────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s, border-color .15s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--navy-200);
    text-decoration: none;
}

.card__label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: var(--space-2);
}

.card__title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: var(--space-2);
    line-height: var(--leading-snug);
    letter-spacing: -.01em;
}

.card__meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.card__arrow {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
}

/* ── Term dates table ────────────────────────────────────── */
.term-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.term-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.term-table thead th {
    background: var(--navy-950);
    color: #fff;
    font-weight: 600;
    font-size: var(--text-xs);
    padding: var(--space-3) var(--space-5);
    text-align: left;
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.term-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background .1s;
}

.term-table tbody tr:last-child { border-bottom: none; }
.term-table tbody tr:nth-child(even) { background: var(--grey-50); }
.term-table tbody tr:hover { background: var(--navy-50); }

.term-table tbody td {
    padding: var(--space-3) var(--space-5);
    color: var(--grey-700);
    white-space: nowrap;
}

.term-table tbody td:first-child {
    font-weight: 600;
    color: var(--grey-900);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 2px var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .02em;
}

.badge--autumn    { background: #fef3c7; color: #92400e; }
.badge--christmas { background: #dcfce7; color: #166534; }
.badge--spring    { background: #e0f2fe; color: #075985; }
.badge--easter    { background: #fce7f3; color: #9d174d; }
.badge--summer    { background: #fef9c3; color: #713f12; }
.badge--halfterm  { background: var(--navy-100); color: var(--navy-800); }

/* ── Countdown widget ────────────────────────────────────── */
.countdown {
    background: var(--navy-950);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    margin-block: var(--space-8);
    position: relative;
    overflow: hidden;
}

.countdown::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(14,165,233,.10) 0%, transparent 70%);
    pointer-events: none;
}

.countdown__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--navy-400);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.countdown__holiday {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: #ffffff;
    letter-spacing: -.01em;
}

.countdown__units {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
}

.countdown__number {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: var(--space-3) 0;
    width: 80px;
    display: block;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: 0;
}

.countdown__unit-label {
    font-size: var(--text-xs);
    color: var(--navy-400);
    margin-top: var(--space-2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.breadcrumb li + li::before {
    content: '/';
    color: var(--grey-300);
    margin-right: var(--space-2);
}

.breadcrumb a { color: var(--color-accent); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--grey-500); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    text-decoration: none;
    transition: background .15s, transform .1s, box-shadow .15s;
    cursor: pointer;
    letter-spacing: .01em;
}

.btn--primary {
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(14,165,233,.3);
}

.btn--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14,165,233,.35);
    color: #ffffff;
    text-decoration: none;
}

.btn--outline {
    background: transparent;
    color: var(--navy-900);
    border: 1.5px solid var(--grey-300);
}

.btn--outline:hover {
    background: var(--grey-50);
    border-color: var(--navy-300);
    text-decoration: none;
}

.btn--ghost {
    background: rgba(255,255,255,.1);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.15);
}

.btn--ghost:hover {
    background: rgba(255,255,255,.18);
    color: #ffffff;
    text-decoration: none;
}

.btn--sm {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
}

/* ── Nation cards ────────────────────────────────────────── */
.nation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.nation-card {
    display: block;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

.nation-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--navy-200);
    text-decoration: none;
}

.nation-card__name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: var(--space-3);
    letter-spacing: -.01em;
}

.nation-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-base);
}

.nation-card__desc strong {
    color: var(--grey-700);
}

/* ── Popular councils ────────────────────────────────────── */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-3);
}

.popular-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--grey-900);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.popular-item:hover {
    border-color: var(--navy-300);
    box-shadow: var(--shadow-sm);
    background: var(--navy-50);
    text-decoration: none;
}

.popular-item__arrow {
    color: var(--grey-400);
    font-size: var(--text-base);
    font-weight: 400;
}

/* ── Holiday type links ──────────────────────────────────── */
.holiday-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.holiday-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--grey-700);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: border-color .15s, background .15s, color .15s;
}

.holiday-link:hover {
    border-color: var(--navy-300);
    background: var(--navy-50);
    color: var(--navy-900);
    text-decoration: none;
}

.holiday-link__emoji { font-size: var(--text-base); }

/* ── How it works ────────────────────────────────────────── */
.how-it-works {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.how-it-works__step {
    flex: 1;
    text-align: center;
    padding: var(--space-8) var(--space-5);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.how-it-works__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--navy-950);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 800;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.how-it-works__title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: var(--space-2);
    letter-spacing: -.01em;
}

.how-it-works__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-base);
}

.how-it-works__divider {
    font-size: var(--text-2xl);
    color: var(--grey-300);
    flex-shrink: 0;
    margin-top: var(--space-10);
    font-weight: 300;
}

/* ── School list ─────────────────────────────────────────── */
.school-list { display: grid; gap: var(--space-2); }

.school-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: var(--space-3) var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s;
}

.school-item:hover {
    border-color: var(--navy-200);
    background: var(--navy-50);
    text-decoration: none;
}

.school-item__name {
    font-weight: 600;
    color: var(--grey-900);
    font-size: var(--text-sm);
    grid-column: 1;
}

.school-item__meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
    grid-column: 2;
}

.school-item__phase {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--navy-700);
    background: var(--navy-50);
    border: 1px solid var(--navy-200);
    padding: 2px var(--space-3);
    border-radius: var(--radius-full);
    white-space: nowrap;
    grid-column: 3;
}

@media (max-width: 600px) {
    .school-item {
        grid-template-columns: 1fr auto;
    }
    .school-item__meta {
        display: none;
    }
    .school-item__phase {
        grid-column: 2;
    }
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { margin-block: var(--space-6); }

.faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    background: var(--color-bg);
    border: none;
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--grey-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    transition: background .1s;
}

.faq__question:hover { background: var(--grey-50); }
.faq__question[aria-expanded="true"] { background: var(--navy-50); color: var(--navy-900); }

.faq__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--grey-400);
    transition: transform .2s;
}

.faq__question[aria-expanded="true"] .faq__icon {
    transform: rotate(45deg);
    color: var(--navy-600);
}

.faq__answer {
    display: none;
    padding: var(--space-4) var(--space-5) var(--space-5);
    font-size: var(--text-sm);
    color: var(--grey-600);
    line-height: var(--leading-base);
    border-top: 1px solid var(--grey-100);
}

.faq__answer.is-open { display: block; }

/* ── Notice / alert ──────────────────────────────────────── */
.notice {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    line-height: var(--leading-base);
    border-left: 3px solid;
    margin-block: var(--space-4);
}

.notice--info {
    background: var(--navy-50);
    border-color: var(--navy-600);
    color: var(--navy-900);
}

.notice--warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #78350f;
}

/* ── Contact form ────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--grey-700);
}

.form-input {
    font-family: inherit;
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--grey-300);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.form-input:focus {
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(31,35,92,.1);
}

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

/* ── Footer ──────────────────────────────────────────────── */















/* ── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nation-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 900px) {
        }

@media (max-width: 600px) {
    .countdown__units {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
}

@media (max-width: 700px) {
    .site-header__nav-toggle { display: flex; }

    .site-header__nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--navy-950);
        border-bottom: 1px solid rgba(255,255,255,.08);
        padding: var(--space-3) var(--space-4);
        box-shadow: var(--shadow-lg);
        margin-left: 0;
    }

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

    .site-header__nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-1);
    }

    .site-header__nav-link { padding: var(--space-3) var(--space-4); }
    .site-header__inner { position: relative; }

    .hero-search__input { padding-right: var(--space-5); }
    .hero-search__btn   { position: static; transform: none; width: 100%; margin-top: var(--space-3); border-radius: var(--radius-md); padding: var(--space-3); }
    .hero-search        { display: flex; flex-direction: column; }

    .nation-grid         { grid-template-columns: repeat(2, 1fr); }
    .card-grid           { grid-template-columns: 1fr; }
    .how-it-works        { flex-direction: column; }
    .how-it-works__divider { display: none; }
    
    
    .term-table tbody td,
    .term-table thead th { padding: var(--space-3); font-size: var(--text-xs); }
}

@media (max-width: 480px) {
    .nation-grid        { grid-template-columns: 1fr; }
        .countdown__number  { font-size: var(--text-2xl); width: 60px; padding: var(--space-2) var(--space-3); }
    .popular-grid       { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* ── Holiday explainer cards ─────────────────────────────── */
.holiday-explainer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.holiday-explainer-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

.holiday-explainer-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--navy-200);
    text-decoration: none;
}

.holiday-explainer-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-3);
    line-height: 1;
}

.holiday-explainer-card__title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: var(--space-2);
    letter-spacing: -.01em;
}

.holiday-explainer-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-base);
    margin-bottom: var(--space-4);
}

.holiday-explainer-card__link {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: color .15s;
}

.holiday-explainer-card__link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .holiday-explainer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .holiday-explainer-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Popular councils list ───────────────────────────────── */
.popular-councils-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    list-style: none;
}

.popular-council-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.popular-council-item:hover {
    border-color: var(--navy-300);
    box-shadow: var(--shadow-sm);
    background: var(--navy-50);
    text-decoration: none;
}

.popular-council-item strong {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--grey-900);
}

.popular-council-item span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .popular-councils-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .popular-councils-list { grid-template-columns: 1fr; }
}

/* ── Regions list ────────────────────────────────────────── */
.regions-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    list-style: none;
}

.region-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-5);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

.region-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--navy-200);
    text-decoration: none;
}

.region-item__name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--grey-900);
    letter-spacing: -.01em;
}

.region-item__count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.region-item__cta {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    margin-top: auto;
    padding-top: var(--space-2);
}

@media (max-width: 900px) {
    .regions-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .regions-list { grid-template-columns: 1fr; }
}

/* ── How it works list ───────────────────────────────────── */
.how-it-works-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    list-style: none;
}

.how-it-works-item {
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.how-it-works-item__title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--grey-900);
    letter-spacing: -.01em;
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
}

.how-it-works-item__number {
    color: var(--navy-600);
    font-weight: 800;
    margin-right: var(--space-1);
}

.how-it-works-item__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-base);
}

.how-it-works-item__desc strong {
    color: var(--grey-700);
}

@media (max-width: 700px) {
    .how-it-works-list { grid-template-columns: 1fr; }
}

/* ── Disclaimer ──────────────────────────────────────────── */
.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
}

.disclaimer__icon {
    font-size: var(--text-xl);
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--navy-600);
}

.disclaimer__text {
    font-size: var(--text-sm);
    color: var(--grey-700);
    line-height: var(--leading-base);
}

.disclaimer__text strong {
    color: var(--grey-900);
}

/* ── Footer disclaimer ───────────────────────────────────── */




/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.site-footer {
    background: #0d0f1f;
    color: var(--navy-400);
    margin-top: auto;
}

.site-footer__container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

/* ── Main area ───────────────────────────────────────────── */
.site-footer__main {
    padding: var(--space-12) 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.site-footer__main .site-footer__container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* ── Brand ───────────────────────────────────────────────── */
.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.site-footer__logo:hover {
    color: var(--navy-200);
    text-decoration: none;
}

.site-footer__tagline {
    font-size: var(--text-sm);
    color: #c8ccd8;
    line-height: var(--leading-base);
    font-weight: 500;
}

.site-footer__source {
    font-size: var(--text-sm);
    color: #c8ccd8;
    line-height: var(--leading-base);
}

/* ── Nav ─────────────────────────────────────────────────── */
.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.site-footer__nav-heading {
    font-size: var(--text-xs);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: var(--space-4);
}

.site-footer__nav-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    list-style: none;
}

.site-footer__nav-col a {
    font-size: var(--text-sm);
    color: #c8ccd8;
    text-decoration: none;
    transition: color .15s;
    line-height: 1.4;
}

.site-footer__nav-col a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ── Disclaimer ──────────────────────────────────────────── */
.site-footer__disclaimer {
    padding: var(--space-5) 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.site-footer__disclaimer p {
    font-size: var(--text-sm);
    color: #c8ccd8;
    line-height: var(--leading-base);
}

.site-footer__disclaimer strong {
    color: #ffffff;
}

/* ── Bottom bar ──────────────────────────────────────────── */
.site-footer__bottom {
    padding: var(--space-4) 0;
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.site-footer__copy {
    font-size: var(--text-sm);
    color: #c8ccd8;
}

.site-footer__year {
    font-size: var(--text-sm);
    color: #c8ccd8;
    white-space: nowrap;
}

.site-footer__year strong {
    color: #ffffff;
}

/* ── Footer responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
    .site-footer__main .site-footer__container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    .site-footer__nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .site-footer__nav {
        grid-template-columns: 1fr;
    }
    .site-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Hub countdown ───────────────────────────────────────── */
.hub-countdown {
    background: var(--navy-950);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-6);
    margin-top: var(--space-6);
}

.hub-countdown__inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hub-countdown__label {
    font-size: var(--text-xs);
    color: var(--navy-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    flex-shrink: 0;
}

.hub-countdown__event {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.hub-countdown__days {
    font-size: var(--text-sm);
    color: var(--navy-300);
    white-space: nowrap;
}

.hub-countdown__days strong {
    color: #ffffff;
    font-weight: 800;
    font-size: var(--text-lg);
}

@media (max-width: 600px) {
    .hub-countdown__inner { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}

/* ── Holiday links grid ──────────────────────────────────── */
.holiday-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.holiday-link-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--grey-700);
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}

.holiday-link-item:hover {
    border-color: var(--navy-300);
    background: var(--navy-50);
    color: var(--navy-900);
    text-decoration: none;
}

@media (max-width: 700px) {
    .holiday-links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .holiday-links-grid { grid-template-columns: 1fr; }
}

/* ── Council A-Z grid ────────────────────────────────────── */
.council-az-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.council-az-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--grey-200);
    border-left: 3px solid var(--navy-600);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}

.council-az-item:hover {
    border-color: var(--navy-300);
    border-left-color: var(--color-accent);
    background: var(--navy-50);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    text-decoration: none;
}

.council-az-item__name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--grey-900);
    letter-spacing: -.01em;
    line-height: var(--leading-snug);
}

.council-az-item__next {
    font-size: var(--text-sm);
    color: var(--grey-500);
    line-height: var(--leading-base);
    margin: 0;
}

.council-az-item__next time {
    color: var(--navy-700);
    font-weight: 600;
}

@media (max-width: 700px) {
    .council-az-grid { grid-template-columns: 1fr; }
}

/* ── Hub CTA boxes ───────────────────────────────────────── */
.hub-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.hub-cta-box {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

.hub-cta-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--navy-200);
    text-decoration: none;
}

.hub-cta-box__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.hub-cta-box div {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
}

.hub-cta-box__title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--grey-900);
    display: block;
}

.hub-cta-box__desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: block;
}

.hub-cta-box__arrow {
    font-size: var(--text-lg);
    color: var(--grey-400);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hub-cta-grid { grid-template-columns: 1fr; }
}

/* ── Popular council tiles ───────────────────────────────── */
.popular-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.popular-tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}

.popular-tile:hover {
    background: #ffffff;
    border-color: var(--navy-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.popular-tile__name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--grey-900);
    letter-spacing: -.01em;
    margin-bottom: var(--space-2);
}

.popular-tile__sentence {
    font-size: var(--text-sm);
    color: var(--grey-600);
    line-height: var(--leading-base);
    margin: 0;
}

.popular-tile__sentence time {
    color: var(--navy-700);
    font-weight: 600;
}

@media (max-width: 900px) {
    .popular-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .popular-tiles-grid { grid-template-columns: 1fr; }
}

/* ── Hub countdown sentence ──────────────────────────────── */
.hub-countdown-sentence {
    font-size: var(--text-base);
    color: var(--grey-700);
    background: var(--navy-50);
    border: 1px solid var(--navy-200);
    border-left: 4px solid var(--navy-600);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    margin-top: var(--space-6);
    line-height: var(--leading-base);
}

.hub-countdown-sentence strong {
    color: var(--navy-900);
}

/* ── School A-Z listing ──────────────────────────────────── */
.az-jump {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.az-jump__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--grey-100);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--grey-700);
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.az-jump__letter:hover {
    background: var(--navy-950);
    border-color: var(--navy-950);
    color: #ffffff;
    text-decoration: none;
}

.az-letter-heading {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--grey-900);
    letter-spacing: -.02em;
    padding: var(--space-4) 0 var(--space-3);
    border-bottom: 2px solid var(--navy-950);
    margin-bottom: var(--space-3);
}

/* ── Quick info cards ────────────────────────────────────── */
.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: calc(var(--space-12) * 1.5);
}

.quick-info-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    background: var(--color-bg);
    border: 1px solid var(--grey-200);
    border-top: 3px solid var(--navy-600);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.quick-info-card__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.quick-info-card__value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--grey-900);
    letter-spacing: -.01em;
    line-height: var(--leading-snug);
}

.quick-info-card__date {
    font-size: var(--text-sm);
    color: var(--navy-700);
    font-weight: 500;
}

@media (max-width: 700px) {
    .quick-info-grid { grid-template-columns: 1fr; }
}

/* ── Form error states ───────────────────────────────────── */
.form-error {
    display: block;
    font-size: var(--text-xs);
    color: #dc2626;
    margin-top: var(--space-1);
    min-height: 0;
}

.form-error:empty {
    display: none;
}

.form-input--error {
    border-color: #dc2626 !important;
    outline-color: #dc2626;
}
