/* =====================================================================
   2nd Tonbridge Scout Group: design system
   Colours and type follow The Scout Association brand guidelines:
   Nunito Sans, Scouts purple, and the section colours.
   ===================================================================== */

/* ---------- Fonts (hosted with the site; Nunito Sans, SIL Open Font Licence) ---------- */

@font-face {
    font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap;
    src: url("/fonts/nunito-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap;
    src: url("/fonts/nunito-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Nunito Sans"; font-style: italic; font-weight: 200 1000; font-display: swap;
    src: url("/fonts/nunito-sans-latin-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Brand palette */
    --purple: #7413dc;
    --purple-dark: #4d0aa0;
    --purple-deep: #2b0060;
    --purple-tint: #f3ebfd;
    --teal: #088486;
    --yellow: #ffe627;
    --red: #ed3f23;
    --navy: #003982;
    --pink: #ffb4e5;

    /* Section colours */
    --beavers: #006ddf;
    --cubs: #23a950;
    --scouts: #004851;

    /* Neutrals */
    --ink: #1c1530;
    --ink-soft: #4a4560;
    --line: #e7e2f0;
    --bg-tint: #f8f6fc;
    --white: #fff;

    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(43, 0, 96, .06), 0 8px 24px rgba(43, 0, 96, .08);
    --shadow-lg: 0 2px 4px rgba(43, 0, 96, .06), 0 20px 48px rgba(43, 0, 96, .16);
    --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    line-height: 1.12;
    letter-spacing: -.015em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 { font-weight: 900; font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-weight: 900; font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-weight: 800; font-size: 1.3rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--purple); text-underline-offset: .18em; }
a:hover { color: var(--purple-dark); }

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

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

h1:focus { outline: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 820px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.muted { color: var(--ink-soft); font-size: .95rem; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: .75rem;
}

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 200;
    background: var(--yellow); color: var(--ink); font-weight: 800;
    padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid var(--purple);
    background: var(--purple);
    color: var(--white);
    font: inherit; font-weight: 800; line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: var(--white); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1.15rem; font-size: .95rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }

.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #fff36b; border-color: #fff36b; color: var(--ink); box-shadow: 0 6px 20px rgba(255, 230, 39, .35); }

.btn-outline { background: transparent; color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }

.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .8); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .15); border-color: var(--white); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.link-arrow, .link-back {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 800; text-decoration: none; color: var(--purple);
}
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-back::before { content: "←"; transition: transform .15s ease; }
.link-back:hover::before { transform: translateX(-4px); }
.link-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 2rem; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }

.brand img { height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
    display: block; padding: .5rem .8rem; border-radius: 999px;
    color: var(--ink); font-weight: 700; text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.site-nav ul a:hover { background: var(--purple-tint); color: var(--purple); }
.site-nav ul a.active { color: var(--purple); background: var(--purple-tint); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--yellow); }
.burger, .burger::before, .burger::after {
    position: absolute; left: 12px; width: 24px; height: 3px; border-radius: 3px;
    background: var(--purple); content: ""; transition: transform .2s ease, opacity .2s ease;
}
.burger { top: 22px; }
.burger::before { left: 0; top: -8px; }
.burger::after { left: 0; top: 8px; }
.nav-toggle:checked + .nav-toggle-label .burger { background: transparent; }
.nav-toggle:checked + .nav-toggle-label .burger::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle:checked + .nav-toggle-label .burger::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1020px) {
    .header-inner { flex-wrap: wrap; }
    .nav-toggle-label { display: block; }
    .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 0 0 1.25rem; }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: .75rem 1rem; font-size: 1.1rem; }
    .site-nav .btn { width: 100%; }
}

/* ---------- Hero ---------- */

.hero {
    --accent: var(--purple);
    position: relative; isolation: isolate; overflow: hidden;
    color: var(--white);
    background: var(--purple-deep);
}
.hero.beavers { --accent: var(--beavers); }
.hero.cubs { --accent: var(--cubs); }
.hero.scouts { --accent: var(--scouts); }

.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(100deg, color-mix(in srgb, var(--accent) 92%, black) 0%, color-mix(in srgb, var(--accent) 70%, transparent) 55%, rgba(0, 0, 0, .15) 100%);
}
.hero-plain::before {
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .14) 0 220px, transparent 221px),
        radial-gradient(circle at 75% 120%, rgba(255, 230, 39, .18) 0 180px, transparent 181px),
        linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--purple-deep)));
}

.hero-inner { padding: clamp(4rem, 10vw, 8rem) 1.5rem clamp(4.5rem, 11vw, 8.5rem); max-width: 1200px; }
.hero-inner > * { max-width: 40rem; }
.hero h1 { margin-bottom: .35em; }
.hero .eyebrow { color: var(--yellow); }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); opacity: .95; }
.hero .actions { margin-top: 2rem; }

.hero-home .hero-inner { padding-top: clamp(5rem, 13vw, 10rem); padding-bottom: clamp(6rem, 14vw, 11rem); }
.hero-home h1 { font-size: clamp(2.8rem, 7vw, 5.25rem); }

.hero-compact .hero-inner { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }

/* ---------- Stats strip ---------- */

.stats { background: var(--yellow); color: var(--ink); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; text-align: center; }
.stats strong { display: block; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 900; line-height: 1.1; }
.stats span { font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 640px) { .stats-inner { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Page sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .3em; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.section-lead { font-size: 1.15rem; color: var(--ink-soft); }

.section-colour {
    --accent: var(--purple);
    background: var(--accent); color: var(--white);
}
.section-colour.beavers { --accent: var(--beavers); }
.section-colour.cubs { --accent: var(--cubs); }
.section-colour.scouts { --accent: var(--scouts); }
.section-colour .eyebrow { color: var(--yellow); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Section cards ---------- */

.section-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .section-cards { grid-template-columns: 1fr; max-width: 560px; } }

.section-card {
    --accent: var(--purple);
    display: flex; flex-direction: column;
    background: var(--white); color: var(--ink);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.section-card.beavers { --accent: var(--beavers); }
.section-card.cubs { --accent: var(--cubs); }
.section-card.scouts { --accent: var(--scouts); }
.section-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }

.section-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent); }
.section-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.section-card:hover .section-card-img img { transform: scale(1.05); }
.section-card-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); }

.age-badge {
    display: inline-block;
    background: var(--accent); color: var(--white);
    font-weight: 800; font-size: .85rem;
    padding: .3rem .8rem; border-radius: 999px;
}
.section-card-img .age-badge { position: absolute; top: 1rem; left: 1rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }

.section-card-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.section-card-body h3 { font-size: 1.5rem; color: var(--accent); margin-top: .25rem; }
.section-card-body p { color: var(--ink-soft); flex: 1; }
.section-card .link-arrow { color: var(--accent); }

.section-cards-compact .section-card { border-top: 6px solid var(--accent); }
.section-cards-compact .age-badge { align-self: flex-start; margin-bottom: .5rem; }

/* ---------- Feature cards ---------- */

.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .split-cards { grid-template-columns: 1fr; } }

.feature-card {
    position: relative; overflow: hidden;
    display: block; padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius); color: var(--white); text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--white); }
.feature-card::after {
    content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px;
    border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.feature-teal { background: var(--teal); }
.feature-purple { background: var(--purple); }
.feature-card .link-arrow { color: var(--yellow); }
.feature-card p { opacity: .95; max-width: 30rem; }
.feature-icon {
    display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.25rem;
    border-radius: 18px; background: rgba(255, 255, 255, .16); color: var(--yellow);
}

/* ---------- Highlights ---------- */

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

.highlight {
    --accent: var(--purple);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color .2s ease, transform .2s ease;
}
.highlight.beavers { --accent: var(--beavers); }
.highlight.cubs { --accent: var(--cubs); }
.highlight.scouts { --accent: var(--scouts); }
.highlight:hover { border-color: var(--accent); transform: translateY(-3px); }
.highlight h3 { color: var(--accent); margin-bottom: .35em; }
.highlight p { margin: 0; color: var(--ink-soft); }

.highlight-icon {
    display: grid; place-items: center;
    width: 56px; height: 56px; margin-bottom: 1rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent, var(--purple)) 12%, white);
    color: var(--accent, var(--purple));
}
.highlight-icon svg { width: 28px; height: 28px; }

.role-list { display: grid; gap: 1rem; }

/* ---------- Meetings ---------- */

.meeting-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .75rem; }
.meeting-list li {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem;
    background: rgba(255, 255, 255, .12); border-radius: var(--radius-sm); padding: 1rem 1.25rem;
}
.meeting-day { font-weight: 900; font-size: 1.35rem; }
.meeting-time { font-weight: 700; }
.meeting-name { opacity: .85; margin-left: auto; font-size: .95rem; }

.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photo-stack img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.photo-stack img:nth-child(2) { margin-top: 2.5rem; }

/* ---------- Awards ---------- */

.award-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.25rem; }
@media (max-width: 960px) { .award-grid { grid-template-columns: 1fr; } }

.award-card { background: var(--bg-tint); border-radius: var(--radius); padding: 1.75rem; }
.award-main { --accent: var(--purple); background: var(--accent); color: var(--white); }
.award-main.beavers { --accent: var(--beavers); }
.award-main.cubs { --accent: var(--cubs); }
.award-main.scouts { --accent: var(--scouts); }
.award-main .eyebrow { color: var(--yellow); }
.award-main h3 { font-size: 1.6rem; }

.tick-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.tick-list li { position: relative; padding-left: 2rem; font-weight: 700; }
.tick-list li::before {
    content: "✓"; position: absolute; left: 0; top: .1rem;
    display: grid; place-items: center; width: 1.4rem; height: 1.4rem;
    border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 900;
}

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .92rem; }
.chips-light li { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); }

/* ---------- Uniform & info ---------- */

.uniform-img { background: var(--white); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); width: 100%; }
.tip { color: var(--ink-soft); }

.info-card { background: var(--white); border-left: 6px solid var(--purple); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); margin-top: 1.5rem; }
.info-card h3 { margin-bottom: .35em; }
.info-card p:last-child { margin-bottom: 0; }
.info-when { font-weight: 800; color: var(--purple); }

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.06); }

/* ---------- News ---------- */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

.news-card a {
    display: flex; flex-direction: column; height: 100%;
    background: var(--white); color: var(--ink); text-decoration: none;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.news-card-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card a:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 1.25rem 1.4rem 1.5rem; }
.news-card-body h3 { font-size: 1.2rem; margin-bottom: .4em; }
.news-card-body p:last-child { color: var(--ink-soft); margin: 0; font-size: .98rem; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .88rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .6rem; }

.tag { --accent: var(--purple); display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 800; color: var(--white); background: var(--accent); text-decoration: none; }
a.tag:hover { color: var(--white); filter: brightness(1.1); }
.tag-beavers { --accent: var(--beavers); }
.tag-cubs { --accent: var(--cubs); }
.tag-scouts { --accent: var(--scouts); }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter a {
    --accent: var(--purple);
    padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--line);
    font-weight: 800; text-decoration: none; color: var(--ink);
    transition: border-color .15s ease, background-color .15s ease;
}
.filter a.beavers { --accent: var(--beavers); }
.filter a.cubs { --accent: var(--cubs); }
.filter a.scouts { --accent: var(--scouts); }
.filter a:hover { border-color: var(--accent); color: var(--accent); }
.filter a.active { background: var(--accent); border-color: var(--accent); color: var(--white); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pager a, .pager span {
    min-width: 44px; height: 44px; padding: 0 .9rem; display: inline-grid; place-items: center;
    border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid var(--line); color: var(--ink);
}
.pager a:hover { border-color: var(--purple); color: var(--purple); }
.pager .current { background: var(--purple); border-color: var(--purple); color: var(--white); }

/* ---------- News post ---------- */

.post-header { background: var(--purple-tint); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(5rem, 10vw, 7rem); }
.post-header h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0; }
.post-image { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: clamp(-4.5rem, -8vw, -3rem); }

.prose { font-size: 1.15rem; padding: 2.5rem 0 clamp(3rem, 7vw, 5rem); }
.prose img { border-radius: var(--radius); margin: 2rem 0; box-shadow: var(--shadow); }
.prose h2 { font-size: 1.75rem; margin-top: 1.5em; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 5px solid var(--purple); background: var(--bg-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Programme ---------- */

.programme { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; align-items: start; }
.programme-group h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.programme table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.programme th { background: var(--purple); color: var(--white); text-align: left; padding: .9rem 1.1rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.programme td { padding: .85rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; }
.programme td:first-child { font-weight: 800; white-space: nowrap; width: 1%; color: var(--purple); }
.programme tr:has(strong) td { background: #fffbd6; }
.programme tr:has(strong) td:first-child { box-shadow: inset 5px 0 0 var(--yellow); }
.programme tr:has(del) td { color: var(--ink-soft); background: var(--bg-tint); font-style: italic; }
.programme del { text-decoration: none; }

.programme-key { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.5rem; color: var(--ink-soft); font-size: .95rem; }
.key { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 4px; vertical-align: middle; }
.key-event { background: #fffbd6; box-shadow: inset 4px 0 0 var(--yellow); border: 1px solid #f1e48a; }
.key-off { background: var(--bg-tint); border: 1px solid var(--line); }

/* ---------- Timeline ---------- */

.timeline {
    --year-w: 6rem;   /* width of the year column */
    --gap: 3rem;      /* space between years and text; the line sits in the middle */
    --line-x: calc(var(--year-w) + var(--gap) / 2);
    list-style: none; padding: 0; margin: 0; position: relative;
}
.timeline::before { content: ""; position: absolute; left: calc(var(--line-x) - 1.5px); top: .5rem; bottom: .5rem; width: 3px; background: var(--purple-tint); border-radius: 3px; }
.timeline li { display: grid; grid-template-columns: var(--year-w) 1fr; column-gap: var(--gap); padding-bottom: 2.25rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(var(--line-x) - 8px); top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 5px var(--white); }
.timeline-year { font-weight: 900; color: var(--purple); text-align: right; font-size: 1.05rem; line-height: 1.5; white-space: nowrap; }
.timeline h3 { margin-bottom: .3em; }
.timeline p { color: var(--ink-soft); margin: 0; }
@media (max-width: 560px) {
    .timeline { --line-x: 8px; }
    .timeline li { grid-template-columns: 1fr; row-gap: .25rem; padding-left: 2.25rem; }
    .timeline-year { text-align: left; }
}

.badge-pair { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.badge-pair img { max-height: 220px; width: auto; border-radius: var(--radius-sm); background: var(--white); padding: .75rem; box-shadow: var(--shadow); }

/* ---------- Steps ---------- */

.step {
    display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none;
    border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900;
}

.step-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .step-cards { grid-template-columns: 1fr; } }
.step-cards li { background: var(--bg-tint); border-radius: var(--radius); padding: 1.75rem; }
.step-cards .step { margin-bottom: 1rem; }
.step-cards p { margin: 0; color: var(--ink-soft); }

.steps { padding-left: 1.25rem; display: grid; gap: .75rem; }
.steps li::marker { color: var(--purple); font-weight: 900; }

/* ---------- Hall hire ---------- */

.photo-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .photo-row { grid-template-columns: 1fr 1fr; } .photo-wide { grid-column: 1 / -1; } }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.photo-row .photo-wide img { aspect-ratio: auto; height: 100%; max-height: 520px; }
.photo-row figure { display: flex; flex-direction: column; }
.photo-row figure img { flex: 1; }
figcaption { font-weight: 700; color: var(--ink-soft); font-size: .92rem; padding-top: .6rem; }

.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; max-width: 760px; }
.rate-card { background: var(--purple); color: var(--white); border-radius: var(--radius); padding: 2rem; }
.rate-card-alt { background: var(--teal); }
.rate-card h3 { font-size: 1.15rem; margin-bottom: .25rem; opacity: .95; }
.price { font-size: 3.25rem; font-weight: 900; line-height: 1.1; margin: 0 0 .25rem; }
.price span { font-size: 1.1rem; font-weight: 700; opacity: .85; }
.rate-card p:last-child { margin: 0; }

/* ---------- Forms ---------- */

.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem 1.75rem; margin: 0 0 1.5rem; background: var(--white); box-shadow: var(--shadow); }
.form legend { display: flex; align-items: center; gap: .75rem; font-weight: 900; font-size: 1.2rem; padding: 0 .5rem; }
.form legend .step { width: 2rem; height: 2rem; font-size: .95rem; }

.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.field label, .field .label { display: block; font-weight: 800; margin-bottom: .4rem; }

.form input:not([type=checkbox]):not([type=radio]), .form textarea {
    width: 100%; font: inherit; color: var(--ink);
    padding: .75rem .95rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-tint); }
.form input[type=checkbox], .form input[type=radio] { accent-color: var(--purple); width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; flex: none; }

.choices { display: grid; gap: .5rem; }
.choice, .check {
    display: flex; align-items: flex-start; gap: .75rem; cursor: pointer;
    padding: .75rem 1rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
    font-weight: 600; transition: border-color .15s ease, background-color .15s ease;
}
.choice:hover, .check:hover { border-color: var(--purple); }
.choice:has(input:checked), .check:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); }
.check { margin-bottom: .5rem; }

.validation-message { color: var(--red); font-weight: 700; font-size: .92rem; margin-top: .35rem; }
.form .invalid { border-color: var(--red) !important; }
.validation-errors { color: var(--red); }

.success-card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-lg); border-top: 6px solid var(--cubs); }
.bank { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.5rem; margin: 0; }
.bank dt { font-weight: 800; }
.bank dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- Call to action ---------- */

.cta {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--purple); color: var(--white);
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.cta::before {
    content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 380px; height: 380px;
    border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.cta::after {
    content: ""; position: absolute; z-index: -1; left: 8%; bottom: -160px; width: 280px; height: 280px;
    border-radius: 50%; background: rgba(255, 230, 39, .12);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; font-size: 1.15rem; opacity: .95; }

/* ---------- Footer ---------- */

.site-footer { background: var(--purple-deep); color: rgba(255, 255, 255, .85); padding: 4rem 0 0; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about img { border-radius: var(--radius-sm); margin-bottom: 1rem; }
.footer-about strong { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul span { opacity: .6; font-size: .88rem; margin-left: .35rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: .9rem; }
.to-top { margin-left: auto; font-weight: 800; }

/* ---------- Motion preferences ---------- */

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

/* ---------- Blazor template ---------- */

.blazor-error-boundary { background: #b32121; padding: 1rem 1rem 1rem 1.5rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }
.text-danger { color: var(--red); }

/* ---------- News editor (hidden /admin pages) ---------- */

.admin-bar { background: var(--ink); color: var(--white); font-size: .95rem; }
.admin-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.admin-bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.admin-bar a, .admin-bar .linklike { color: var(--white); font-weight: 700; text-decoration: none; }
.admin-bar a:hover, .admin-bar .linklike:hover { color: var(--yellow); }
.admin-bar form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

.admin { padding-top: clamp(2rem, 5vw, 3.5rem); }
.admin-title { font-size: clamp(1.9rem, 4vw, 2.6rem); }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 1.5rem 0; }
.admin-table th { text-align: left; background: var(--purple); color: var(--white); padding: .8rem 1rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-table td { padding: .75rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.admin-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--ink-soft); }
.admin-table .tag { margin: 0 .25rem .25rem 0; }

.alert { background: #fffbd6; border-left: 6px solid var(--yellow); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.alert p:last-child, .alert ul { margin-bottom: 0; }
.alert-error { background: #fdecea; border-left-color: var(--red); color: #8a1c0c; font-weight: 700; }
.hint { color: var(--ink-soft); font-size: .9rem; margin: .4rem 0 0; }
.choices-inline { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices-inline .check { margin: 0; padding: .55rem .9rem; }
.form input[type=file] { padding: .6rem; border: 2px dashed var(--line); border-radius: var(--radius-sm); width: 100%; background: var(--bg-tint); }
code { background: var(--bg-tint); padding: .1rem .35rem; border-radius: 6px; font-size: .92em; }
.admin-table .row-actions { white-space: nowrap; text-align: right; }
.admin-table .row-actions a { font-weight: 800; margin-left: 1rem; }
.alert-success { background: #e8f7ee; border-left-color: var(--cubs); color: #14532d; font-weight: 700; }
.current-image { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.current-image img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.current-image .check { margin: 0; }
.danger-zone { margin-top: 3rem; border: 2px solid #f6c9c1; border-radius: var(--radius); padding: 1.5rem 1.75rem; background: #fff7f5; }
.danger-zone h2 { font-size: 1.3rem; color: #8a1c0c; }
.danger-zone .check { background: var(--white); margin-bottom: 1rem; }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #c22d14; border-color: #c22d14; }

/* ---------- Conditions of hire ---------- */

.conditions { counter-reset: condition; }
.conditions h2 {
    counter-increment: condition;
    display: flex; gap: .75rem; align-items: baseline;
    font-size: 1.15rem; margin: 1.75rem 0 .35rem;
}
.conditions h2::before {
    content: counter(condition);
    flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem;
    border-radius: 50%; background: var(--purple-tint); color: var(--purple); font-size: .9rem; font-weight: 900;
}
.conditions p { margin-left: 2.75rem; color: var(--ink-soft); }
.info-card-top { margin: 0 0 1.5rem; }

/* ---------- Invoice generator ---------- */

.admin-subtitle { font-size: 1.4rem; margin-top: 3rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.actions-end { justify-content: flex-end; }
.table-scroll { overflow-x: auto; }

.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin: 1.5rem 0 2rem; }
.tab {
    font: inherit; font-weight: 800; padding: .8rem 1.4rem; cursor: pointer;
    border: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: transparent; color: var(--ink-soft);
    margin-bottom: -2px; border-bottom: 3px solid transparent;
}
.tab:hover { color: var(--purple); }
.tab[aria-selected="true"] { color: var(--purple); border-bottom-color: var(--purple); background: var(--purple-tint); }

.invoice-lines { width: 100%; border-collapse: collapse; margin-bottom: 1rem; min-width: 720px; }
.invoice-lines th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: .5rem .4rem; border-bottom: 2px solid var(--line); }
.invoice-lines td { padding: .45rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.invoice-lines input, .invoice-lines select,
.settings-card input, .settings-card select, .settings-card textarea {
    width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
    padding: .55rem .7rem; border: 2px solid var(--line); border-radius: 10px; background: var(--white);
}
.invoice-lines input:focus, .invoice-lines select:focus, .settings-card input:focus, .settings-card textarea:focus {
    outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-tint);
}
.form select { width: 100%; font: inherit; padding: .75rem .95rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.item-total { white-space: nowrap; }
.grand-total { text-align: right; font-size: 1.4rem; font-weight: 900; margin: 1rem 0 0; }
.grand-total span { color: var(--purple); }

.icon-btn {
    width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid #f6c9c1; background: #fff7f5;
    color: var(--red); font-size: 1.3rem; line-height: 1; cursor: pointer; display: inline-grid; place-items: center;
}
.icon-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.settings-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-card { background: var(--bg-tint); border-radius: var(--radius); padding: 1.5rem; }
.settings-card h2 { font-size: 1.2rem; }
.admin-table.compact td { padding: .4rem .5rem; }

.client-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.client-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.client-card-head strong { color: var(--purple); }
.client-card .field { margin-bottom: .75rem; }
.client-card .field label { display: block; font-weight: 800; font-size: .88rem; }
.client-card .field input, .client-card .field textarea { margin-top: .3rem; }
.custom-rates { border-top: 1px dashed var(--line); padding-top: .75rem; margin-top: .5rem; font-size: .92rem; }
.rate-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .4rem; }
.rate-input { display: flex; align-items: center; gap: .35rem; font-weight: 700; }
.rate-input input { width: 7rem; }

.tag-draft { --accent: var(--ink-soft); }
.tag-warn { --accent: var(--red); }

.import { margin-top: 2.5rem; background: var(--bg-tint); border-radius: var(--radius); padding: 1rem 1.5rem; }
.import summary { cursor: pointer; font-weight: 800; color: var(--purple); }
.import[open] summary { margin-bottom: 1rem; }
.import .form textarea { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.invoice-lines th.num { text-align: right; }
.client-card input, .client-card textarea { font-weight: 400; }


/* ---------- Icons ---------- */

.icon { display: inline-block; flex: none; vertical-align: -0.2em; }
.btn .icon { vertical-align: -0.25em; margin-right: .2rem; }

/* ---------- Gentle animation ---------- */

.reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
img.hero-bg { animation: hero-drift 12s ease-out both; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    img.hero-bg { animation: none; }
    *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ---------- "Which section is right?" ---------- */

.section-finder { padding-top: 0; }
.finder {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem 2.5rem; align-items: center;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 2rem 2.25rem;
}
.finder-intro { display: flex; gap: 1rem; align-items: flex-start; }
.finder-intro h2, .finder-intro h3 { margin: 0 0 .3rem; font-size: 1.5rem; }
.finder-intro p { margin: 0; color: var(--ink-soft); }
.finder-icon {
    display: grid; place-items: center; flex: none; width: 56px; height: 56px;
    border-radius: 16px; background: var(--purple-tint); color: var(--purple);
}
.finder-form label { display: block; font-weight: 800; margin-bottom: .4rem; }
.finder-row { display: flex; gap: .6rem; }
.finder-row input { flex: 1; min-width: 0; font: inherit; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm); }
.finder-row input:focus { outline: none; border-color: var(--purple); }
.finder .hint { margin: .5rem 0 0; }
.finder-result {
    --accent: var(--purple);
    grid-column: 1 / -1; border-left: 6px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, white);
    border-radius: var(--radius-sm); padding: 1.1rem 1.4rem;
    animation: finder-in .35s ease both;
}
.finder-result.beavers { --accent: var(--beavers); }
.finder-result.cubs { --accent: var(--cubs); }
.finder-result.scouts { --accent: var(--scouts); }
.finder-result.warn { --accent: var(--red); }
.finder-result h3 { color: var(--accent); margin: 0 0 .25rem; font-size: 1.25rem; }
.finder-result p { margin: .25rem 0 0; }
.finder-result p + p { margin-top: .75rem; }
@keyframes finder-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 800px) { .finder { grid-template-columns: 1fr; padding: 1.5rem; } }

/* ---------- Next meeting panels ---------- */

.next-band { background: var(--bg-tint); padding: 2rem 0; border-bottom: 1px solid var(--line); }
.next-meetings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.next-meeting {
    --accent: var(--purple);
    display: flex; flex-direction: column; gap: .2rem;
    background: var(--white); color: var(--ink); text-decoration: none;
    border: 1px solid var(--line); border-top: 6px solid var(--accent);
    border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.next-meeting:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.next-meeting.beavers { --accent: var(--beavers); }
.next-meeting.cubs { --accent: var(--cubs); }
.next-meeting.scouts { --accent: var(--scouts); }
.next-meeting.is-event { background: color-mix(in srgb, var(--yellow) 22%, white); }
.next-when {
    display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
    font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
    color: var(--white); background: var(--accent); border-radius: 999px; padding: .2rem .65rem;
}
.next-who { font-size: .9rem; font-weight: 700; color: var(--accent); margin-top: .35rem; }
.next-what { font-size: 1.2rem; line-height: 1.3; }
.next-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--ink-soft); font-size: .9rem; margin-top: .25rem; }
.next-meta .icon { width: 16px; height: 16px; vertical-align: -0.15em; margin-right: .2rem; }
.next-meetings.compact { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.next-meetings.compact .next-meeting { padding: .9rem 1rem; }
.next-meetings.compact .next-what { font-size: 1.05rem; }
.section-coming-up { padding-bottom: 1rem; }

/* ---------- Add to calendar ---------- */

.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 1rem; }
.calendar-card {
    --accent: var(--purple);
    background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--accent);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.calendar-card.beavers { --accent: var(--beavers); }
.calendar-card.cubs { --accent: var(--cubs); }
.calendar-card.scouts { --accent: var(--scouts); }
.calendar-card h3 { display: flex; align-items: center; gap: .5rem; color: var(--accent); margin: 0 0 1rem; }
.calendar-card .actions { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; }
.calendar-card .btn { text-align: center; justify-content: center; }

/* ---------- Text pages (safeguarding, accessibility) ---------- */

.prose-page { font-size: 1.08rem; }
.prose-page h2 { color: var(--purple); font-size: 1.6rem; margin: 2.25rem 0 .6rem; }
.prose-page h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
.prose-page ul, .prose-page ol { padding-left: 1.4rem; }
.prose-page li { margin: .35rem 0; }
.prose-page li::marker { color: var(--purple); }

/* ---------- Visitor statistics ---------- */

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; box-shadow: var(--shadow); }
.stat-tile span { display: block; color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.stat-tile strong { font-size: 2rem; color: var(--purple); font-variant-numeric: tabular-nums; }
.bar-chart {
    display: flex; align-items: flex-end; gap: 3px; height: 200px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 1rem 1rem 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.bar-chart .bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar-chart .bar span { display: block; width: 100%; background: var(--purple); border-radius: 4px 4px 0 0; min-height: 0; }
.bar-chart .bar:hover span { background: var(--teal); }
.bar-chart .bar em { position: absolute; top: calc(100% + .35rem); left: 50%; transform: translateX(-50%); font-style: normal; font-size: .75rem; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Share your memories (About us) ---------- */

.memories {
    display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
    background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--yellow);
    border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.memories h2 { margin-top: .2rem; }
.memories-icon {
    display: grid; place-items: center; width: 56px; height: 56px;
    border-radius: 16px; background: var(--purple-tint); color: var(--purple);
}
@media (max-width: 640px) { .memories { grid-template-columns: 1fr; padding: 1.5rem; } }

.timeline p + p { margin-top: .6rem; }

.admin-user { margin-left: .75rem; font-weight: 600; opacity: .85; font-size: .9rem; }

/* ---------- Parents' questions (FAQ) ---------- */

.faq-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.faq-jump a {
    padding: .4rem .9rem; border-radius: 999px; background: var(--purple-tint);
    color: var(--purple); font-weight: 800; text-decoration: none; font-size: .95rem;
}
.faq-jump a:hover { background: var(--purple); color: var(--white); }
.faq-group { margin-bottom: 2.5rem; scroll-margin-top: 6rem; }
.faq-group h2 { font-size: 1.6rem; color: var(--purple); margin-bottom: .75rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: var(--purple); box-shadow: var(--shadow); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; position: relative;
    font-weight: 800; font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; position: absolute; right: 1.25rem; top: 50%; width: 10px; height: 10px;
    border-right: 3px solid var(--purple); border-bottom: 3px solid var(--purple);
    transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-item .prose { padding: 0 1.25rem 1.1rem; }
.faq-item .prose > :first-child { margin-top: 0; }
.faq-item .prose > :last-child { margin-bottom: 0; }
.faq-pointer { display: flex; align-items: center; gap: .5rem; justify-content: center; margin-top: 1.5rem; color: var(--ink-soft); }
.faq-pointer .icon { color: var(--purple); }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* ---------- Our supporters ---------- */

.supporter-list { display: grid; gap: 2rem; max-width: 900px; margin: 0 auto; }
.supporter-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.supporter-photo { width: 100%; height: auto; display: block; background: var(--bg-tint); }
.supporter-body { padding: 1.75rem 2.25rem 2rem; }
.supporter-body h2 { font-size: 1.6rem; margin: .5rem 0 .75rem; }
.supporter-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--purple-tint); color: var(--purple); }
.supporter-body .prose p:last-child a { font-weight: 800; }
@media (max-width: 640px) { .supporter-body { padding: 1.25rem 1.25rem 1.5rem; } }
.supporter-body .prose { padding: 0; font-size: 1.05rem; }
