/* ==========================================================================
   7th Airedale Scouts — "Necker" theme: black and lemon, the group's necker colours.
   Built on the Shire Oak district site's layout so the two feel related:
   same Nunito Sans type, page structure and components, with the group's own colours
   and a diamond (folded necker) motif.
   ========================================================================== */

:root {
  --black:      #23221F;   /* warm charcoal: hero, header, primary buttons */
  --black-deep: #1A1917;   /* top strip, footer */
  --charcoal:   #33312D;   /* hover on black */
  --lemon:      #F5E55C;   /* the necker yellow */
  --lemon-dark: #E6D43C;   /* hover on lemon */
  --lemon-pale: #FBF5C8;   /* chips, highlights */

  --paper:      #F6F5F0;   /* page background */
  --sand:       #ECEAE1;
  --line:       #E4E2D8;
  --input:      #C8C5B8;

  --ink:        #141414;
  --ink-2:      #3A3A3A;
  --muted:      #555555;
  --on-dark:    #D6D6D6;
  --on-dark-2:  #A8A8A8;

  --squirrels: #E22E12;
  --beavers:   #006DDF;
  --cubs:      #23A950;
  --scouts:    #004851;

  /* Darker versions of the section colours for text on white (4.5:1 contrast) */
  --squirrels-text: #B4220C;
  --beavers-text:   #0058B5;
  --cubs-text:      #167A38;
  --scouts-text:    #004851;

  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 12px 32px rgba(0, 0, 0, 0.14);
  --gutter:    32px;
  --max:       1200px;
}

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

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}

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

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--lemon-dark); }
a:hover { color: var(--black-deep); text-decoration-color: var(--ink); }

h1, h2, h3 { font-weight: 900; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
/* Even out the lines of multi-line headings instead of leaving one word on the last line */
h1, h2, h3 { text-wrap: balance; }
/* The bracketed part of a name, e.g. "(St Margaret's)", stays in one piece; in page headings it gets its own line */
.heading-aside { display: inline-block; max-width: 100%; }
.page-hero h1 .heading-aside, .heading-aside--line { display: block; }
h1 { font-size: clamp(36px, 5.5vw, 60px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--lemon); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--lemon); color: var(--ink); padding: 12px 18px; border-radius: 8px; font-weight: 800;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 14px; color: var(--ink-2);
}
.on-dark .eyebrow { color: var(--lemon); }
/* A heading styled as an eyebrow (the News page's "News") stays eyebrow-sized, not heading-sized */
h1.eyebrow, .page-hero h1.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; line-height: 1.4; }

.stack > * + * { margin-top: 20px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }

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

.btn--lemon { background: var(--lemon); color: var(--ink); font-weight: 900; }
.btn--lemon:hover { background: var(--lemon-dark); color: var(--ink); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top strip and header ---------- */

.top-strip { background: var(--black-deep); color: var(--on-dark); font-size: 14px; font-weight: 600; }
.top-strip__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.top-strip a { color: var(--lemon); text-decoration: none; }
.top-strip a:hover { color: #fff; text-decoration: underline; }

.site-header { background: var(--black); color: #fff; position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand__mark {
  width: 52px; height: 52px; border-radius: 10px; background: var(--lemon);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand__mark img { width: 34px; height: 31px; object-fit: contain; }
.brand__name { display: block; font-weight: 900; font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
.brand__strap { display: block; font-size: 14px; font-weight: 600; color: var(--on-dark-2); }

.nav { flex-grow: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nav__link { color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; display: inline-block; }
.nav__link:hover { color: var(--lemon); }
.nav__link[aria-current="page"], .nav__link.is-active { color: #fff; border-bottom-color: var(--lemon); }

.header-actions { display: flex; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none; margin-left: auto; min-height: 44px; min-width: 44px; padding: 8px 14px;
  border: 2px solid #fff; border-radius: 999px; background: transparent; color: #fff;
  font: inherit; font-weight: 800; cursor: pointer;
}

@media (max-width: 1120px) {
  .site-header__inner { flex-wrap: wrap; gap: 16px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.is-open .nav { display: block; }
  .site-header.is-open .header-actions { display: flex; flex-wrap: wrap; padding-bottom: 8px; }
  .nav__list { flex-direction: column; gap: 0; border-top: 1px solid #333; }
  .nav__list li { border-bottom: 1px solid #333; }
  .nav__link { display: block; padding: 14px 0; border-bottom: 0; }
  .nav__link[aria-current="page"], .nav__link.is-active { border-bottom: 0; box-shadow: inset 4px 0 0 var(--lemon); padding-left: 12px; }
}

/* ---------- Hero (homepage) with the necker diamond ---------- */

.hero { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.hero__diamond {
  position: absolute; right: -140px; top: -60px; width: 540px; height: 540px;
  background: var(--lemon); transform: rotate(45deg); pointer-events: none;
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 96px;
}
@media (min-width: 860px) { .hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.hero__intro { font-size: 20px; line-height: 1.5; color: var(--on-dark); max-width: 560px; }
.hero .media { border: 6px solid #fff; }
@media (max-width: 859px) { .hero__diamond { width: 340px; height: 340px; right: -170px; top: auto; bottom: -120px; } }

.media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: repeating-linear-gradient(135deg, #2A2A2A 0 14px, #333 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
/* Natural: the frame takes the photo's own shape (story pages), so nothing is cropped */
.media--natural { aspect-ratio: auto; display: block; }
.media--natural img { height: auto; }
.media--light { background: repeating-linear-gradient(135deg, var(--sand) 0 14px, #E3E0D5 14px 28px); }
.media img.media__mark { width: 28%; max-width: 120px; height: auto; object-fit: contain; opacity: .3; }
.media--light img.media__mark { opacity: .18; filter: invert(1); }

/* Homepage slideshow: photos stacked in the frame, fading between them */
.slideshow { position: relative; }
.slideshow .slideshow__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.slideshow .slideshow__slide.is-current { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .slideshow .slideshow__slide { transition: none; } }
.slideshow__dots {
  position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px;
}
/* Each dot has a 44px tap area; the visible dot is drawn inside it */
.slideshow__dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.slideshow__dot::before {
  content: ""; width: 12px; height: 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35);
}
.slideshow__dot[aria-pressed="true"]::before { background: var(--lemon); width: 28px; }
.slideshow__dot:focus-visible { outline: 3px solid var(--lemon); outline-offset: -6px; border-radius: 999px; }

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

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 800; font-size: 15px; }
.field__hint { font-size: 14px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; border-radius: var(--radius-sm); border: 2px solid var(--input);
  padding: 12px 16px; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
}
.textarea { min-height: 140px; resize: vertical; }
/* Draw drop-downs ourselves so they match text boxes in every browser (Safari otherwise makes them shorter) */
.select {
  -webkit-appearance: none; appearance: none; height: 52px; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23141414' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 9px;
}
.input { height: 52px; }
.select::-ms-expand { display: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); outline: 3px solid var(--lemon); outline-offset: 0; }
.input-validation-error { border-color: #B42318; }
.field-validation-error { color: #B42318; font-size: 14px; font-weight: 700; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--black); flex-shrink: 0; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.form__group { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.form__group legend { font-weight: 900; font-size: 20px; padding: 0; margin-bottom: 4px; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 14px; color: var(--muted); }

/* An embedded YouTube or Vimeo video, e.g. on the Volunteer page */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--black); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Thank-you message after joining the waiting list */
.thanks { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.thanks:focus { outline: none; }
.thanks__necker { width: 200px; height: auto; margin-bottom: 6px; }
.thanks h2 { font-size: 34px; }
.thanks p { max-width: 560px; color: var(--ink-2); font-size: 18px; margin: 0; }
.thanks__actions { justify-content: center; margin-top: 10px; }
.alert { border-radius: var(--radius); padding: 20px 24px; font-weight: 700; }
.alert--success { background: var(--lemon-pale); color: var(--ink); border: 2px solid var(--lemon-dark); }
.alert--info { background: #FFF1E0; color: #5C3A00; border: 2px solid #F2B45C; }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--paper { background: var(--paper); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head a { font-weight: 800; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 760px; }

[data-section="squirrels"] { --section: var(--squirrels); --section-text: var(--squirrels-text); }
[data-section="beavers"]   { --section: var(--beavers);   --section-text: var(--beavers-text); }
[data-section="cubs"]      { --section: var(--cubs);      --section-text: var(--cubs-text); }
[data-section="scouts"]    { --section: var(--scouts);    --section-text: var(--scouts-text); }

.dot { width: 12px; height: 12px; border-radius: 999px; background: var(--section, var(--ink)); flex-shrink: 0; display: inline-block; }

/* Section cards: white card, the section's colour folded into the corner like a necker */
.section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.section-card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink);
}
.section-card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-top: 56px solid var(--section, var(--lemon)); border-left: 56px solid transparent;
}
.section-card:hover { color: var(--ink); box-shadow: var(--shadow); }
.section-card__logo { height: 44px; width: auto; max-width: 75%; object-fit: contain; object-position: left center; margin-bottom: 4px; }
.section-card__name { font-size: 26px; font-weight: 900; color: var(--section-text, var(--ink)); }
.section-card__ages { font-size: 16px; font-weight: 800; }
.section-card__times { font-size: 15px; color: var(--muted); }
.section-card__tagline { font-size: 15px; color: var(--ink-2); }
.section-card .badge { align-self: flex-start; margin-top: 4px; }

/* Lemon feature panel (the hut on the homepage) */
.feature-lemon { background: var(--lemon); color: var(--ink); }
.feature-lemon__grid { display: grid; gap: 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); padding-top: 64px; padding-bottom: 64px; }
.feature-lemon .media { min-height: 300px; aspect-ratio: auto; background: repeating-linear-gradient(135deg, var(--black) 0 14px, #222 14px 28px); }
.feature-lemon .eyebrow { color: var(--ink); }
.feature-lemon p { font-size: 18px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--lemon-pale); font-weight: 700; font-size: 14px; }

/* Black volunteer band */
.band { background: var(--black); color: #fff; }
.band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.band__actions { justify-content: flex-end; }
.band p { font-size: 18px; color: var(--on-dark); }
@media (max-width: 720px) { .band__actions { justify-content: flex-start; } }

/* ---------- Inner page hero ---------- */

.page-hero { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 220px; height: 220px;
  background: var(--section, var(--lemon)); transform: rotate(45deg); pointer-events: none;
}
.page-hero__inner { position: relative; padding-top: 56px; padding-bottom: 64px; display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: center; }
.page-hero__inner--text { grid-template-columns: minmax(0, 820px); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.page-hero .lead { color: var(--on-dark); font-size: 20px; }
.page-hero__text { display: flex; flex-direction: column; gap: 20px; }
.page-hero[data-section] { box-shadow: inset 0 -10px 0 var(--section); }
@media (max-width: 640px) { .page-hero::before { width: 140px; height: 140px; right: -70px; top: -70px; } }

.age-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 15px;
}
.age-badge .dot { width: 22px; height: 22px; }

/* White section logo as the heading of a section page */
.page-hero__logo { line-height: 0; }
.page-hero__logo img { display: block; height: 96px; width: auto; max-width: 100%; }
@media (max-width: 640px) { .page-hero__logo img { height: 72px; } }

.breadcrumb { font-size: 14px; font-weight: 700; color: var(--on-dark-2); }
.breadcrumb a { color: var(--on-dark); }
.breadcrumb a:hover { color: var(--lemon); }

/* ---------- Content layout ---------- */

.layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .layout--sidebar { grid-template-columns: minmax(0, 1fr) 360px; } }

.panel { background: var(--paper); border-radius: var(--radius-lg); padding: 32px; }
.panel--white { background: #fff; border: 1px solid var(--line); }
.panel--black { background: var(--black); color: #fff; }
.panel--black p { color: var(--on-dark); }
.panel--lemon { background: var(--lemon); }
.panel h2 { font-size: 26px; margin-bottom: 16px; }
@media (max-width: 640px) { .panel { padding: 22px; } }

.prose { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; color: var(--ink); margin-top: 1.4em; }
.prose h3 { font-size: 22px; color: var(--ink); margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li img { margin: 14px 0 6px; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose a { font-weight: 700; }

.meeting-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.meeting-facts li { display: grid; gap: 2px; }
.meeting-facts__label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meeting-facts__value { font-size: 19px; font-weight: 800; }
.panel--black .meeting-facts__label { color: var(--on-dark-2); }
.meeting-facts__note { font-size: 15px; font-weight: 700; color: var(--muted); }
.panel--black .meeting-facts__note { color: var(--on-dark); }

.badge { padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; white-space: nowrap; display: inline-block; }
.badge--space { background: #DDF3E3; color: #14532D; }
.badge--wait { background: var(--lemon-pale); color: #5C4A00; border: 1px solid var(--lemon-dark); }
.badge--off { background: #EEEBE3; color: var(--muted); }

.type-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--lemon-pale); color: var(--ink); font-size: 13px; font-weight: 800; }

/* ---------- Cards (roles, contacts, child pages) ---------- */

.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card { background: var(--paper); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.card__title { font-size: 21px; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { color: var(--ink); box-shadow: var(--shadow); }
a.card:hover .card__title { text-decoration: underline; text-decoration-color: var(--lemon-dark); }
.card__more { margin-top: auto; font-weight: 900; }

.contact-card { position: relative; overflow: hidden; border-top: 6px solid var(--section, var(--lemon)); }
.contact-card__people { font-weight: 800; }
.contact-card__about { color: var(--muted); font-size: 15px; }
.contact-card__email { font-weight: 800; word-break: break-word; }

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

.awards-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); align-items: start; }
.award { background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--section, var(--lemon)); border-radius: 18px; padding: 22px; }
.award__badge { display: block; width: auto; height: 110px; margin: 4px auto 16px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .12)); }
.award__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.award__name { font-size: 20px; }
.award__count { font-weight: 900; font-size: 28px; color: var(--section-text, var(--ink)); }
.award__section { font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 14px; }
.award__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; max-height: 420px; overflow-y: auto; }
.award__list li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.award__empty { color: var(--muted); font-size: 15px; }

/* ---------- News and stories ---------- */

.news-lead { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.news-lead__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center;
  padding-top: 56px; padding-bottom: 64px;
}
@media (min-width: 800px) { .news-lead__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.news-lead__text { display: flex; flex-direction: column; gap: 18px; }
.news-lead__link { display: flex; flex-direction: column; gap: 16px; color: #fff; text-decoration: none; }
.news-lead__link:hover { color: #fff; }
.news-lead__link:hover .news-lead__title { text-decoration: underline; text-decoration-color: var(--lemon); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.news-lead__title { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; }
.news-lead__summary { font-size: 19px; line-height: 1.55; color: var(--on-dark); }
.news-lead__more { font-weight: 900; color: var(--lemon); }
.news-label {
  align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--lemon); color: var(--ink);
  font-weight: 900; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.news-meta { font-size: 14px; font-weight: 800; color: var(--on-dark-2); }

.story-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.story-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.story-card:hover { color: var(--ink); }
.story-card:hover .story-card__title { text-decoration: underline; text-decoration-color: var(--lemon-dark); text-decoration-thickness: 3px; }
.story-card__media {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 18px; background: repeating-linear-gradient(135deg, var(--sand) 0 10px, #E3E0D5 10px 20px);
  border-bottom: 6px solid var(--section, var(--lemon));
}
.story-card__media img { width: 100%; height: 100%; object-fit: cover; }
.story-card__media img.media__mark { width: 28%; max-width: 90px; height: auto; object-fit: contain; opacity: .18; filter: invert(1); }
.story-card__body { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.story-card__meta {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--lemon);
  font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
}
.story-card__meta[data-section] { background: var(--section); color: #fff; }
.story-card__title { font-size: 21px; font-weight: 900; line-height: 1.2; }
.story-card__date { font-size: 14px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-chip {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px;
  font-weight: 800; font-size: 15px; text-decoration: none; background: #fff; color: var(--ink); border: 2px solid var(--input);
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip[aria-current="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.filter-chip[aria-current="true"] .dot { box-shadow: 0 0 0 2px #fff; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.pager__status { font-weight: 800; color: var(--muted); }

.story { max-width: 760px; }
/* Story with a main photo: text on the left, photo on the right (photo first on phones) */
.story--with-photo { max-width: none; display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.story__photo { margin: 0; }
.story__photo .media { border-radius: var(--radius-lg); }
@media (min-width: 860px) {
  .story--with-photo { grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); }
  .story--with-photo .story__photo { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 24px; }
  .story--with-photo > :not(.story__photo) { grid-column: 1; }
}
.story--with-photo .gallery, .story--with-photo .story__back { margin-top: 0; }
.story__back { display: inline-block; margin-top: 32px; font-weight: 800; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); margin-top: 32px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Venue ---------- */

.venue { display: grid; gap: 4px; }
.venue__name { font-weight: 800; }

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

.safeguarding { background: var(--paper); border-top: 1px solid var(--line); }
.safeguarding__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding-top: 40px; padding-bottom: 20px; }
.safeguarding h2 { font-size: 26px; }
.safeguarding__intro { color: var(--ink-2); margin: 0; }
.safeguarding__cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: stretch; padding-bottom: 20px; }
.safe-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.safe-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.safe-card__number { font-size: 24px; font-weight: 900; color: var(--ink); white-space: nowrap; text-decoration: none; line-height: 1.2; }
.safe-card__number:hover { text-decoration: underline; }
.safe-card__note { font-size: 14px; color: var(--muted); }
.safe-card__line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.safe-card__line .safe-card__note { white-space: nowrap; }
.safe-card--urgent { background: var(--black); border-color: var(--black); color: #fff; }
.safe-card--urgent .safe-card__number { color: var(--lemon); }
.safe-card--urgent .safe-card__note { color: var(--on-dark-2); }
.safeguarding__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; font-size: 15px; font-weight: 700; padding-bottom: 32px; }
@media (max-width: 1000px) { .safeguarding__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .safeguarding__links { grid-template-columns: minmax(0, 1fr); } }
/* Every link is a block, together the same width as the cards above: lemon for information, black for CEOP so the urgent one stands out */
.safeguarding__links a {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 10px; border-radius: 8px;
  background: var(--lemon); color: var(--ink); text-decoration: none;
}
.safeguarding__links a:hover { background: var(--lemon-dark); color: var(--ink); }
.safeguarding__links .ceop { background: var(--black); color: #fff; }
.safeguarding__links .ceop:hover { background: var(--charcoal); color: #fff; }

.site-footer { background: var(--black-deep); color: var(--on-dark); }
.site-footer a { color: var(--on-dark); text-decoration-color: #555; }
.site-footer a:hover { color: #fff; text-decoration-color: var(--lemon); }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); padding-top: 56px; padding-bottom: 40px; }
.site-footer h2 { font-size: 17px; color: #fff; margin-bottom: 12px; }
.site-footer__name { font-size: 20px !important; color: var(--lemon) !important; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer__bottom {
  border-top: 1px solid #2E2E2E; padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: var(--on-dark-2);
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; align-items: center;
}
.site-footer__bottom a { color: var(--on-dark); }
.site-footer__legal { display: flex; gap: 12px; align-items: center; }
.site-footer__legal img { width: 40px; height: 37px; object-fit: contain; }
.site-footer__privacy { margin-left: 10px; white-space: nowrap; }
.site-footer__credit { white-space: nowrap; }
.site-footer__credit a { color: var(--on-dark); font-weight: 800; }
.site-footer__credit .heart { color: #E8553A; vertical-align: -3px; margin-inline: 1px; }
.site-footer__version { color: #8A8A8A; font-size: 12px; margin-left: 8px; padding-left: 9px; border-left: 1px solid #3A3A3A; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero__grid { padding-top: 40px; padding-bottom: 72px; gap: 32px; }
  .section { padding: 48px 0; }
}

@media print {
  .top-strip, .site-header, .site-footer, .band, .btn, .hero__diamond, .page-hero::before { display: none !important; }
  .hero, .page-hero, .news-lead { background: #fff; color: var(--ink); }
}
