/* ==========================================================================
   Bramford Pre-School Playgroup
   Design system + site styles
   Palette taken from the setting's own building and sign:
   berry red, gold, warm cream.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --red:        #A32027;
  --red-dark:   #7C161C;
  --red-deep:   #4E0F13;
  --gold:       #D99A24;
  --gold-soft:  #F5D48A;
  --gold-pale:  #FBEDCE;
  --cream:      #FDF8F0;
  --cream-2:    #F6EADA;
  --sage:       #4F7558;
  --sage-pale:  #E4EFE6;
  --sky:        #37627E;
  --sky-pale:   #E3EDF4;
  --ink:        #2A1E18;
  --ink-soft:   #5E4E45;
  --ink-faint:  #8A7A70;
  --white:      #FFFFFF;
  --line:       #E7D9C6;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 760px;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;

  --shadow-sm: 0 2px 6px rgba(42, 30, 24, .07);
  --shadow-md: 0 6px 20px rgba(42, 30, 24, .10);
  --shadow-lg: 0 16px 44px rgba(42, 30, 24, .14);

  --step: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--red-deep);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--red); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--red-dark); }
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}
ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
blockquote { margin: 0; }
li { margin-bottom: .45em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--step); }
.section--tight { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.section--cream { background: var(--cream-2); }
.section--white { background: var(--white); }
.section--deep { background: var(--red-deep); color: var(--gold-pale); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep a:not(.btn) { color: var(--gold-soft); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red-deep); color: var(--white);
  padding: .8rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- Section headings ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .7rem;
}
.section--deep .eyebrow { color: var(--gold-soft); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.lede { font-size: clamp(1.06rem, 1.9vw, 1.2rem); color: var(--ink-soft); }
.section--deep .lede { color: var(--gold-pale); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-weight: 800; font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--red-deep); border-color: var(--red); }
.btn--ghost:hover { background: var(--red); color: var(--white); }
.btn--light { background: var(--gold-soft); color: var(--red-deep); }
.btn--light:hover { background: var(--white); color: var(--red-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.05rem; color: var(--red-deep); white-space: nowrap;
}
.brand__sub {
  font-size: .68rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold);
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red); color: var(--white);
  border: 0; border-radius: 999px;
  padding: .6rem 1.05rem;
  font: 800 .9rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; flex: none; }
.nav-toggle__bars span,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px; transition: .2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { bottom: 0; }
[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
[aria-expanded="true"] .nav-toggle__bars::after { bottom: 5px; transform: rotate(-45deg); }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .15rem;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: .5rem .68rem;
  font-weight: 700; font-size: .9rem; white-space: nowrap;
  color: var(--ink); text-decoration: none;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--cream-2); color: var(--red-dark); }
.site-nav a[aria-current="page"] { background: var(--red); color: var(--white); }

@media (max-width: 1100px) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .75rem 1.25rem 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .2rem; }
  .site-nav a { padding: .75rem 1rem; font-size: 1.02rem; }
}
@media (min-width: 1101px) {
  .nav-toggle { display: none; }
  .site-header__inner { position: relative; }
}

/* ---------- Hero ---------- */
.hero { background: var(--red-deep); color: var(--gold-pale); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(217,154,36,.20), transparent 42%),
    radial-gradient(circle at 4% 88%, rgba(163,32,39,.55), transparent 48%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
}
@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}
.hero h1 { color: var(--white); }
.hero .lede { color: var(--gold-pale); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero__figure { position: relative; }
.hero__figure img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--gold-soft);
}
.hero__stamp {
  position: absolute; bottom: -22px; right: -22px;
  background: var(--gold-soft); color: var(--red-deep);
  border-radius: var(--r-md);
  padding: .7rem 1.05rem;
  font: 800 .82rem/1.3 var(--font-body);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.hero__stamp strong { display: block; font-size: 1.5rem; font-family: var(--font-head); }
@media (max-width: 879px) { .hero__stamp { position: static; margin-top: 1rem; display: inline-block; } }

/* ---------- Trust badges ---------- */
.badges { background: var(--white); border-bottom: 1px solid var(--line); }
.badges__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-block: 1.6rem;
}
.badge {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.badge__icon { width: 38px; height: 38px; flex: none; display: block; }
.badge__icon svg { width: 100%; height: 100%; display: block; }
.badge__label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.badge__value { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--red-deep); line-height: 1.25; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* Genuinely three across on desktop, two on a tablet, one on a phone.
   `.grid--3` is auto-fit at 260px, which actually fits FOUR columns at the
   1120px wrap — six cards land as 4 + 2. A 300px floor holds it to three. */
.grid--3up { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card h3 { margin-bottom: .5rem; }
.card__icon { width: 42px; height: 42px; margin-bottom: .9rem; display: block; }
/* Icon on the same line as the heading rather than stacked above it. */
.card__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.card__head .card__icon { width: 36px; height: 36px; flex: none; margin-bottom: 0; }
.card__head h3 { margin-bottom: 0; }
.card__icon svg { width: 100%; height: 100%; display: block; }
.card p:last-child { margin-bottom: 0; }
.card--accent { border-left: 5px solid var(--gold); }

/* Numbered / feature list */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.feature-list li {
  display: flex; gap: .9rem; align-items: flex-start; margin: 0;
}
.feature-list .tick {
  flex: none; width: 26px; height: 26px; margin-top: .18rem;
  border-radius: 50%; background: var(--sage-pale);
  display: grid; place-items: center;
}
.feature-list .tick svg { width: 14px; height: 14px; }

/* ---------- Session timetable ---------- */
.timetable { list-style: none; margin: 1rem 0 1.25rem; padding: 0; }
.timetable li {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  justify-content: space-between; align-items: baseline;
  margin: 0; padding: .6rem 0;
  border-bottom: 1px dashed var(--line);
}
.timetable li:last-child { border-bottom: 0; }
.timetable__name { font-weight: 700; color: var(--ink); }
.timetable__time {
  font-family: var(--font-head); font-weight: 700;
  color: var(--red-deep); white-space: nowrap;
}

/* ---------- Staff team ---------- */
.team { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.person__photo {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  background: var(--cream-2);
}
.person__body { padding: 1.4rem 1.5rem 1.6rem; }
.person__name { margin: 0 0 .15rem; font-size: 1.24rem; }
.person__role {
  margin: 0 0 .8rem;
  font-size: .82rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--red);
}
.person__qual {
  display: flex; gap: .55rem; align-items: flex-start;
  margin: 0 0 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .92rem; color: var(--ink-soft);
}
.person__qual svg { flex: none; width: 16px; height: 16px; margin-top: .22rem; }
.person__body p:last-child { margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat {
  text-align: center; padding: 1.4rem 1rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.section--deep .stat { background: rgba(255,255,255,.07); border-color: rgba(245,212,138,.28); }
.stat__num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--red); line-height: 1;
}
.section--deep .stat__num { color: var(--gold-soft); }
.stat__label { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }
.section--deep .stat__label { color: var(--gold-pale); }

/* ---------- Availability panel ---------- */
.availability {
  background: var(--white);
  border: 2px solid var(--gold-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.availability__list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; }
.availability__list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem; margin: 0;
  padding: .9rem 1.1rem;
  background: var(--cream); border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.availability__year { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--red-deep); }
.pill {
  display: inline-block; padding: .3rem .85rem;
  border-radius: 999px; font-size: .82rem; font-weight: 800;
  letter-spacing: .03em;
}
.pill--full   { background: #FBE3E4; color: #8C1D24; }
.pill--wait   { background: var(--gold-pale); color: #7A5410; }
.pill--open   { background: var(--sage-pale); color: #2F5A39; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.25rem; }
table { border-collapse: collapse; width: 100%; min-width: 480px; background: var(--white); }
caption { text-align: left; font-weight: 700; color: var(--ink-soft); padding-bottom: .6rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--red-deep); color: var(--white); font-size: .9rem; letter-spacing: .03em; }
thead th:first-child { border-top-left-radius: var(--r-sm); }
thead th:last-child  { border-top-right-radius: var(--r-sm); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--cream); }

/* ---------- Quotes ---------- */
/* Masonry rather than a grid: each quote sits directly under the one above it in
   its column, so a short quote doesn't leave a hole where a taller neighbour set
   the row height. Columns balance to roughly equal height. Three across on
   desktop, two on a tablet, one on a phone. */
.quote-grid {
  columns: 320px 3;
  column-gap: 1.4rem;
}
.quote-grid > * { break-inside: avoid; -webkit-column-break-inside: avoid; }
.quote {
  margin-bottom: 1.4rem;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.4rem 1.6rem 1.6rem;
  border: 1px solid var(--line);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.quote::before {
  content: "\201C";
  position: absolute; top: -.15em; left: .5rem;
  font-family: var(--font-head); font-size: 4.5rem; line-height: 1;
  color: var(--gold-soft);
}
.quote p { font-size: 1.02rem; color: var(--ink); margin: 0; position: relative; }
.quote cite {
  display: block; margin-top: 1rem;
  font-style: normal; font-weight: 800; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Contact / details ---------- */
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.detail-list li { display: flex; gap: .95rem; align-items: flex-start; margin: 0; }
.detail-list svg { width: 24px; height: 24px; flex: none; margin-top: .25rem; }
.detail-list dt, .detail-list .label { display: block; }
.detail-list dt, .detail-list .label {
  font-size: .76rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.detail-list .value { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.detail-list .value a { text-decoration: none; }
.detail-list .value a:hover { text-decoration: underline; }

/* ---------- Download links ---------- */
.download {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--white); border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--r-md);
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.download:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.download svg { width: 34px; height: 34px; flex: none; }
.download__title { font-weight: 800; display: block; color: var(--red-deep); }
.download__meta { font-size: .85rem; color: var(--ink-faint); }

/* ---------- Term dates calendar ---------- */
.cal__years { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.cal__year {
  font: 800 .9rem/1 var(--font-body);
  padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--red-deep);
  border: 2px solid var(--line);
}
.cal__year:hover { border-color: var(--red); }
.cal__year.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.cal__heading { margin-bottom: 1rem; }

/* Date table beside the year planner: two questions, two shapes, one screen. */
.cal__split {
  display: grid; gap: 2rem; align-items: start;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
}
@media (max-width: 900px) {
  .cal__split { grid-template-columns: 1fr; gap: 2rem; }
}
/* Grid items default to min-width:auto and refuse to shrink below their content, so
   without this the table overflows its track instead of wrapping inside it. */
.cal__col { min-width: 0; }
.cal__subhead {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: var(--red-deep); margin: 0 0 .8rem;
}
.cal__list-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.cal__list { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
/* table-layout:fixed splits the two columns evenly regardless of content, so the date
   column stays put when you switch year. With auto layout it jumped ~200px. */
@media (max-width: 640px) {
  .cal__list .cal__when { white-space: normal; }
}
.cal__list caption { position: absolute; left: -9999px; }
.cal__list th, .cal__list td {
  text-align: left; padding: .45rem .7rem .45rem 0;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.cal__when { white-space: nowrap; font-weight: 700; color: var(--red-deep); font-size: .95rem; }
.cal__what { font-size: .95rem; }
.cal__what .cal__swatch { margin-right: .5rem; }
.cal__row--term .cal__when { color: var(--ink); }

.cal__swatch {
  display: inline-block; vertical-align: middle;
  flex: none; width: 13px; height: 13px; border-radius: 4px;
  border: 1px solid rgba(42,30,24,.18); transform: translateY(1px);
}
.cal__swatch--term      { background: var(--sage-pale); }
.cal__swatch--half-term { background: var(--gold-pale); }
.cal__swatch--holiday   { background: var(--sky-pale); }
.cal__swatch--closed    { background: #F3DADB; }
.cal__swatch--event     { background: var(--gold); }

.cal__key {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem;
}
.cal__key li { display: flex; align-items: center; gap: .5rem; margin: 0; }

.cal__events { margin-bottom: 2rem; }
.cal__events-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.cal__events-list li { margin-bottom: .5rem; font-size: .95rem; }

.cal__months {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.cal__month {
  margin: 0; padding: .55rem .6rem .65rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.cal__month-name {
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  color: var(--red-deep); margin-bottom: .35rem;
}
.cal__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.cal__dow {
  text-align: center; font-size: .64rem; font-weight: 800;
  color: var(--ink-faint); padding-bottom: .1rem;
}
.cal__pad { aspect-ratio: 1; }
.cal__day {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: .72rem; border-radius: 4px; position: relative;
  color: var(--ink-soft);
}
.cal__day[data-info] { cursor: help; }
.cal__day[data-info]:hover { outline: 2px solid var(--red); outline-offset: -2px; }

/* Hovering either view lights up the matching part of the other. */
.cal__row.is-linked > * { background: var(--gold-pale); }
.cal__row.is-linked .cal__when { color: var(--red-deep); }
.cal__day.is-linked { outline: 2px solid var(--red); outline-offset: -2px; font-weight: 700; }
.cal__row { cursor: default; }

.cal__tip {
  position: absolute; z-index: 200; max-width: 16rem;
  padding: .5rem .75rem;
  background: var(--red-deep); color: var(--white);
  border-radius: var(--r-sm);
  font-size: .85rem; line-height: 1.45; font-weight: 600;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  white-space: pre-line;
}
.cal__day--term      { background: var(--sage-pale); color: var(--ink); }
.cal__day--half-term { background: var(--gold-pale); }
.cal__day--holiday   { background: var(--sky-pale); }
.cal__day--closed    { background: #F3DADB; }
.cal__day--event::after {
  content: ""; position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.cal__day--today { outline: 2px solid var(--red); outline-offset: -2px; font-weight: 800; }

.cal__note {
  margin-top: 1.6rem; font-size: .92rem; color: var(--ink-faint);
  max-width: 46rem;
}
.cal__fallback { margin: 0; }

/* ---------- Notice ---------- */
.notice {
  background: var(--sky-pale);
  border: 1px solid #BFD6E5;
  border-left: 5px solid var(--sky);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
}
.notice--warm { background: var(--gold-pale); border-color: #EBD3A0; border-left-color: var(--gold); }
.notice h3 { font-size: 1.05rem; margin-bottom: .4rem; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  background: var(--red-deep);
  color: var(--gold-pale);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 92% 20%, rgba(217,154,36,.18), transparent 45%);
}
.page-banner__inner { position: relative; z-index: 1; max-width: 46rem; }
.page-banner h1 { color: var(--white); margin-bottom: .35rem; }
.page-banner p { color: var(--gold-pale); font-size: clamp(1.02rem, 1.8vw, 1.18rem); margin: 0; }

.breadcrumb { font-size: .85rem; color: var(--gold-soft); margin: 0 0 .8rem; }
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb span { opacity: .6; padding: 0 .35rem; }

/* ---------- Prose blocks ---------- */
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9rem; color: var(--red); }

/* ---------- CTA strip ---------- */
.cta {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.cta h2 { color: var(--white); }
.cta p { color: var(--gold-pale); max-width: 40rem; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--red-deep);
  color: var(--gold-pale);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
  font-size: .96rem;
}
.site-footer a:not(.btn) { color: var(--gold-pale); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.footer__heading {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
  margin: 0 0 .9rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .5rem; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(245,212,138,.22);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .86rem; color: rgba(251,237,206,.75);
}
.footer__charity { max-width: 30rem; }
.footer__note { margin-top: 1.4rem; font-size: .9rem; color: var(--gold-pale); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .page-banner, .section--deep { background: #fff !important; color: #000 !important; }
  .hero h1, .page-banner h1 { color: #000 !important; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
