/* Regal Road Parent Hub — styles
   One section per component; each component's phone/desktop rules sit together.
   Colour rule: gold and electric blue are only used as TEXT on purple. On white they
   appear only as bars and edges. */

/* ===== Tokens ===== */
:root {
  --purple: #351F65;
  --purple-2: #432a7a;      /* slightly lighter purple for cards on purple */
  --gold: #F5C842;          /* text only on purple */
  --blue: #4FD8FF;          /* text only on purple; bars/edges anywhere */
  --white: #FFFFFF;
  --grey: #E6E6E6;          /* backgrounds & dividers only */
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --space: clamp(3rem, 8vw, 5.5rem);
  /* snowflake icons */
  --flake-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FD8FF' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5M3 10.3l3.4-.9-.9-3.4M21 13.7l-3.4.9.9 3.4M3 13.7l3.4.9-.9 3.4M21 10.3l-3.4-.9.9-3.4'/%3E%3C/svg%3E");
  --flake-purple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23351F65' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5'/%3E%3C/svg%3E");
}

/* ===== Base (mobile first) ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;        /* 18px — easy reading on phones */
  line-height: 1.6;
  color: var(--purple);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.75rem, 12vw, 5rem); }
h2 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
h4 { font-size: 1rem; font-weight: 500; letter-spacing: .08em; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .2em; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.section:not(.section-purple) :focus-visible,
.section-grey :focus-visible { outline-color: var(--purple); }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold); color: var(--purple); padding: .6rem 1rem;
  border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Small text helpers */
.lead { font-size: 1.2rem; max-width: 50ch; }
.lead-center { margin-left: auto; margin-right: auto; }
.back-link { margin: 0 0 1rem; font-weight: 600; font-size: 1rem; }
.back-link a { color: var(--blue); }
.more-link { margin: 1.5rem 0 0; font-weight: 700; }
.empty { font-style: italic; }
.text-link { font-weight: 700; }
.note { font-weight: 600; margin: 0; }

/* Placeholders (visible until filled in content.js) */
mark.placeholder {
  background: var(--grey); color: var(--purple);
  border: 2px dashed var(--purple); border-radius: 4px;
  padding: 0 .3em;
  font-family: var(--font-body); font-weight: 600; font-size: .9em;
  text-transform: none; letter-spacing: 0;
}

/* ===== Header (sticky) =====
   Phones: logo centred on its own row and scrolls away, the menu bar stays.
   Bigger screens: the whole one-row header stays. hub.js sets "top" to match. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--purple);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0 1rem; min-height: 72px; padding-top: .75rem; padding-bottom: .25rem;
}
.logo-link { display: block; padding: .15rem 0 .35rem; }
.logo { height: 34px; width: auto; }   /* wordmark is about 5.3 : 1 */
.site-header nav { width: 100%; }

/* Phone menu: all five links fit; wraps to a second line rather than hiding off-screen */
.nav-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem; margin: 0 -.35rem; }
.nav-list li { flex: none; }
.nav-list a {
  display: block; min-height: 44px; padding: .6rem .3rem;
  font-family: var(--font-head); font-size: .92rem; letter-spacing: .03em;
  text-transform: uppercase; color: var(--white); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover { color: var(--gold); }
.nav-list a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

@media (max-width: 380px) { .logo { height: 28px; } }
@media (max-width: 374px) {
  .nav-list a { font-size: .82rem; padding: .6rem .2rem; letter-spacing: .02em; }
}
@media (min-width: 600px) { .logo { height: 44px; } }
@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; justify-content: space-between; padding-bottom: .75rem; }
  .logo-link { display: inline; padding: 0; }
  .logo { height: 52px; }
  .site-header nav { width: auto; }
  .nav-list { flex-wrap: nowrap; white-space: nowrap; margin: 0; }
  .nav-list a { padding: .6rem .8rem; font-size: 1.05rem; letter-spacing: .08em; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--purple); color: var(--white);
  padding: clamp(3.5rem, 12vw, 7rem) 0;
  border-bottom: 6px solid var(--blue);
  text-align: center;
}
.hero h1 { color: var(--gold); margin-bottom: .25em; }
.hero-mascot { height: clamp(170px, 24vw, 260px); width: auto; margin: 0 auto 1rem; }
.tagline { font-size: clamp(1.2rem, 4.5vw, 1.5rem); max-width: 42ch; margin: 0 auto 1.5rem; }
.hero-date {
  display: inline-block;
  font-family: var(--font-head); font-size: clamp(1.15rem, 4.6vw, 1.7rem);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue);
  border-top: 1px solid rgba(79,216,255,.4); border-bottom: 1px solid rgba(79,216,255,.4);
  padding: .4rem 1rem; margin-bottom: 1rem;
}
.hero-location { margin: 0; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 1.5rem 0 0; }

/* Inner pages: just a title and a line, so they don't take a whole screen */
.hero-small { padding: clamp(2rem, 6vw, 3.25rem) 0; }
.hero-small h1 { font-size: clamp(2.2rem, 9vw, 3.75rem); }
.hero-small .tagline { margin-bottom: 0; }

/* Home hero: short, with the mascot beside the title at every width,
   so the sale, quick links and next event show sooner */
.hub-hero { padding: clamp(1.25rem, 5vw, 3rem) 0; }
.hub-hero-inner { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; text-align: left; gap: 1rem; }
.hub-hero h1 { font-size: clamp(2rem, 7.5vw, 4rem); margin-bottom: .3em; }
.hub-hero .hero-mascot { height: clamp(96px, 22vw, 220px); margin: 0; }
.hub-hero .tagline { margin: 0; font-size: clamp(1rem, 2.6vw, 1.2rem); max-width: 40ch; }
@media (min-width: 900px) {
  .hub-hero-inner { gap: 3rem; }
  .hero-buttons { justify-content: flex-start; }
}

/* Decorative snowflakes — few and subtle */
.flake {
  position: absolute; pointer-events: none;
  background: var(--flake-blue) no-repeat center / contain;
  opacity: .55;
}
.f1 { width: 70px; height: 70px; top: 10%; left: 6%; }
.f2 { width: 40px; height: 40px; bottom: 12%; right: 8%; opacity: .45; }
.f3 { width: 100px; height: 100px; top: -20px; right: -20px; opacity: .3; }
@media (max-width: 599px) {   /* keep them clear of text on small phones */
  .f1 { width: 44px; height: 44px; top: 4%; left: 4%; }
  .f2 { display: none; }
}

/* ===== Sections ===== */
.section { padding: var(--space) 0; }
.section-tight { padding: 2rem 0 var(--space); }
.section-grey { background: var(--grey); }
.section-purple { position: relative; overflow: hidden; background: var(--purple); color: var(--white); }
.section-purple h2 { color: var(--gold); }
/* Blue bar under section headings */
.section h2::after {
  content: ""; display: block; width: 56px; height: 5px; margin-top: .45rem;
  background: var(--blue); border-radius: 3px;
}
.support-panel h2::after, .center h2::after { margin-left: auto; margin-right: auto; }
.event-card h2::after, .event-card h3::after,
.cal-title::after, .featured-title::after, .subscribe-box h3::after { display: none; }

/* ===== Buttons ===== */
/* Gold on purple by default; purple on white/grey/gold backgrounds */
.btn {
  display: inline-block;
  background: var(--gold); color: var(--purple);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: .85rem 1.6rem; min-height: 48px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.btn-big { font-size: 1.5rem; padding: 1.1rem 2.75rem; }
.btn-outline { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.btn-purple { background: var(--purple); color: var(--white); }
.event-card .btn, .signup-card .btn, .subscribe-box .btn {
  background: var(--purple); color: var(--white); font-size: 1rem; padding: .7rem 1.3rem;
}
.btn.is-pending { opacity: .6; cursor: not-allowed; outline: 2px dashed var(--gold); outline-offset: 3px; }
.btn.is-pending:hover { transform: none; box-shadow: none; }
.pending-note { display: block; margin-top: .75rem; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ===== Cards (Winterfest "what's on") ===== */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey); border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}
.card h3 { font-size: 1.6rem; margin-bottom: .3em; }
.card p { margin: 0; font-size: 1rem; }
.card .flake-list { margin-top: .75rem; }
.card .flake-list li { margin-bottom: .5rem; }
.card .flake-list li:last-child { margin-bottom: 0; }
.card.has-image { padding-right: 7.5rem; min-height: 11rem; }
.card-mascot {
  position: absolute; right: .75rem; bottom: .75rem;
  width: auto; height: 8.5rem; max-width: 6.5rem; object-fit: contain;
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card.has-image { padding-right: 9rem; }
  .card-mascot { height: 10rem; max-width: 8rem; }
}

/* Get involved cards (on purple) */
.involve-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.involve-card {
  background: var(--purple-2);
  border: 1px solid rgba(79,216,255,.45); border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.involve-card h3 { color: var(--gold); }
@media (min-width: 900px) { .involve-grid { grid-template-columns: repeat(3, 1fr); } }

/* Support / donate panel */
.support-panel {
  background: var(--purple); color: var(--white);
  border-top: 6px solid var(--blue); border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  max-width: 760px; margin: 0 auto;
}
.support-panel h2 { color: var(--gold); }
.support-panel p { max-width: 42ch; margin: 0 auto 1.5rem; font-size: 1.2rem; }
.support-panel .support-note { font-size: .95rem; margin: 1rem auto 0; }

.thanks {
  display: inline-block; margin: 0 auto 1rem; padding: .5rem 1.1rem; border-radius: 999px;
  background: var(--gold); color: var(--purple); font-weight: 700;
}

/* ===== Vendors page ===== */
.vendor-banner {
  margin: 0; padding: 1.1rem 1.25rem;
  border: 3px solid var(--blue); border-radius: var(--radius);
  text-align: center; font-weight: 600;
}
.vendor-banner a { margin-left: .35rem; font-weight: 700; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 3fr 2fr; align-items: start; } }

.flake-list li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.flake-list li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.1rem; height: 1.1rem;
  background: var(--flake-purple) no-repeat center / contain;
}
.details-box { background: var(--grey); border-left: 6px solid var(--blue); border-radius: var(--radius); padding: 1.5rem; }
.details-list li { padding: .6rem 0; border-bottom: 1px solid var(--white); font-weight: 600; }
.details-list li:last-child { border-bottom: 0; }

.package-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.package {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 10px rgba(53,31,101,.08);
}
/* Purple headers line up across each row */
@supports (grid-template-rows: subgrid) {
  .package { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}
.package-head { background: var(--purple); color: var(--white); padding: 1.4rem 1.5rem; border-bottom: 5px solid var(--blue); }
.package-head h3 { color: var(--blue); margin-bottom: .2em; }
.price {
  font-family: var(--font-head); font-weight: 700; font-size: 2.2rem;
  color: var(--gold); margin: 0; line-height: 1.1;
}
.price-note { margin: .35rem 0 0; font-size: .95rem; }
.package-body { padding: 1.4rem 1.5rem .75rem; flex: 1; }
.package-body li { font-size: 1rem; }
@media (min-width: 600px) { .package-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .package-grid { grid-template-columns: repeat(4, 1fr); } }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.chips li { background: var(--grey); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; }

.apply { border-top: 6px solid var(--blue); }
.apply-deadline {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.5rem, 6vw, 2.2rem); letter-spacing: .03em;
  color: var(--gold); margin-bottom: 1.5rem;
}
.small-print { margin-top: 2rem; font-size: .95rem; }
.small-print p { margin: .25rem 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--purple); color: var(--white);
  border-top: 4px solid var(--blue);
  padding: 2rem 0; text-align: center; font-size: 1rem;
}
.site-footer p { margin: .25rem 0; }
.site-footer a { color: var(--gold); }

/* ===== Home: featured strip (events marked featured: true) ===== */
.featured-strip { background: var(--gold); color: var(--purple); border-bottom: 6px solid var(--purple); }
.featured-inner { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.25rem; }
.featured-tag {
  display: inline-block; background: var(--purple); color: var(--white); border-radius: 999px;
  padding: .15rem .75rem; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
}
.featured-title { margin: .5rem 0 .25rem; font-size: clamp(1.8rem, 6vw, 2.6rem); }
.featured-title a { color: inherit; text-decoration: none; }
.featured-when { font-weight: 700; font-size: 1.15rem; margin: 0 0 .25rem; }
.featured-summary { margin: 0; }
.featured-strip .info-facts { font-size: 1.05rem; }
.featured-strip .btn { background: var(--purple); color: var(--white); align-self: flex-start; }
.featured-strip :focus-visible { outline-color: var(--purple); }
@media (min-width: 760px) {
  .featured-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; padding-bottom: 1.75rem; }
  .featured-strip .btn { align-self: center; flex: none; }
}

/* ===== Home: quick links (2 x 2 on phones, 4 across on bigger screens) ===== */
.quick-section { padding-top: 1.5rem; padding-bottom: 0; }
.quick-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.quick-link {
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; height: 100%;
  padding: 1rem; border-radius: var(--radius); text-decoration: none;
  background: var(--white); border: 2px solid var(--purple); color: var(--purple);
  transition: background .15s ease, color .15s ease;
}
.quick-link:hover { background: var(--purple); color: var(--white); }
.quick-icon { width: 28px; height: 28px; flex: none; }
.quick-text { display: flex; flex-direction: column; }
.quick-label {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em;
  text-transform: uppercase; line-height: 1.2; overflow-wrap: anywhere;
}
.quick-sub { font-size: .9rem; margin-top: .2rem; }
/* First link (Report an absence) is the highlighted one */
.quick-links li:first-child .quick-link { background: var(--purple); color: var(--white); }
.quick-links li:first-child .quick-sub { font-weight: 700; color: var(--gold); white-space: nowrap; font-size: .85rem; }
@media (max-width: 359px) {
  .quick-links li:first-child .quick-sub { white-space: normal; }
  .quick-link { padding: .85rem; }
}
@media (min-width: 760px) { .quick-links { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
@media (prefers-reduced-motion: reduce) { .quick-link { transition: none; } }

/* ===== Events ===== */
.event-list, #next-event { display: grid; gap: 1.25rem; }
.event-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--grey); border-left: 6px solid var(--blue);
  border-radius: var(--radius); padding: 1.25rem;
}
.section-grey .event-card { border-color: var(--white); border-left-color: var(--blue); }
.date-badge {
  flex: none; width: 64px; text-align: center; border-radius: 10px; overflow: hidden;
  background: var(--purple); color: var(--white); font-family: var(--font-head); text-transform: uppercase;
}
.date-badge .m { display: block; background: var(--gold); color: var(--purple); font-size: .9rem; letter-spacing: .08em; padding: .15rem 0; }
.date-badge .d { display: block; font-size: 1.9rem; line-height: 1.25; padding-bottom: .2rem; }
.event-body { flex: 1; min-width: 0; }
.event-title { margin-bottom: .35rem; }
.event-title a { text-decoration: none; }
.event-title a:hover { text-decoration: underline; }
.event-when { font-weight: 700; margin-bottom: .2rem; }
.event-where { font-size: 1rem; margin-bottom: .6rem; }
.event-summary { font-size: 1rem; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .75rem 0; }
.event-card-big { padding: 1.5rem; }
.event-card-big .event-title { font-size: clamp(1.7rem, 5vw, 2.2rem); }
.on-now {
  display: inline-block; margin: 0 0 .4rem; padding: .15rem .7rem; border-radius: 999px;
  background: var(--purple); color: var(--white); font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase;
}
/* Phones: smaller date badge so the text column has room */
@media (max-width: 599px) {
  .event-card, .event-card-big { gap: .75rem; padding: 1rem; }
  .date-badge { width: 52px; }
  .date-badge .d { font-size: 1.5rem; }
}
@media (min-width: 600px) {
  .event-card-big .date-badge { width: 84px; }
  .event-card-big .date-badge .d { font-size: 2.6rem; }
}

/* "Add to calendar" links */
.cal-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .95rem; }
.cal-label { font-weight: 600; }
.cal-link {
  display: inline-block; padding: .35rem .8rem; border: 2px solid var(--purple); border-radius: 999px;
  font-weight: 600; text-decoration: none; min-height: 40px; line-height: 1.6;
}
.cal-link:hover { background: var(--purple); color: var(--white); }

/* Calendar subscription box */
.subscribe-box { margin-top: 2rem; padding: 1.25rem; border-radius: var(--radius); background: var(--grey); }
.subscribe-box h3 { margin-bottom: .35rem; }
.subscribe-box p { font-size: 1rem; max-width: 60ch; }
.subscribe-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: .75rem 0 0; }

/* ===== Calendar (events.html): month grid on bigger screens, list of dates on phones ===== */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cal-title { margin: 0; font-size: clamp(1.4rem, 4vw, 1.9rem); text-align: center; }
.cal-nav {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--purple);
  background: var(--white); color: var(--purple); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.cal-nav:hover:not([disabled]) { background: var(--purple); color: var(--white); }
.cal-nav[disabled] { opacity: .3; cursor: default; }

.cal-chip {
  display: block; border-radius: 6px; padding: .25rem .45rem; margin-top: .3rem;
  font-size: .85rem; font-weight: 600; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere;
}
a.cal-chip:hover { text-decoration: underline; }
.cal-council { background: var(--purple); color: var(--white); }
.cal-school { background: #e3f8ff; color: var(--purple); box-shadow: inset 3px 0 0 #1aa9d6; }
.cal-noschool { background: var(--gold); color: var(--purple); font-weight: 700; }

.cal-table { display: none; width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-table th {
  font-family: var(--font-head); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  font-size: .95rem; padding: .4rem; text-align: left;
}
.cal-table td { border: 1px solid var(--grey); vertical-align: top; height: 7.5rem; padding: .4rem; }
.cal-num { font-weight: 700; font-size: .95rem; }
.cal-quiet td { height: 3.25rem; }
.cal-day.is-today { box-shadow: inset 0 0 0 3px var(--purple); }
.cal-day.is-today .cal-num {
  display: inline-block; background: var(--purple); color: var(--white); border-radius: 999px; padding: 0 .45rem;
}
.cal-day.is-noschool { background: #fff6d6; }
.cal-blank { background: #f6f6f6; }
/* Past days: fade the date and background, keep chip text readable */
.cal-day.is-past { background: #fafafa; }
.cal-day.is-past .cal-num, .cal-agenda-day.is-past .cal-agenda-date { opacity: .5; }
.cal-day.is-past .cal-chip, .cal-agenda-day.is-past .cal-chip { opacity: .8; }

.cal-agenda { list-style: none; margin: 0; padding: 0; }
.cal-agenda-day { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--grey); }
.cal-agenda-day:last-child { border-bottom: 0; }
.cal-agenda-date { flex: none; width: 6.4rem; white-space: nowrap; font-weight: 700; padding-top: .3rem; }
.cal-agenda-day.is-today .cal-agenda-date { text-decoration: underline; text-decoration-thickness: 3px; }
.cal-agenda-items { flex: 1; min-width: 0; }
.cal-agenda-items .cal-chip { font-size: .95rem; padding: .4rem .6rem; margin: 0 0 .35rem; }
@media (min-width: 760px) {
  .cal-table { display: table; }
  .cal-agenda { display: none; }
  .cal-empty { margin-top: 1rem; }
}

.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; padding: 0; font-size: .95rem; }
.cal-legend li { display: flex; align-items: center; gap: .45rem; }
.cal-swatch { width: 1.1rem; height: 1.1rem; border-radius: 4px; }
.cal-swatch.cal-school { box-shadow: inset 0 0 0 1px #1aa9d6, inset 3px 0 0 #1aa9d6; }  /* visible on white */

/* ===== News ===== */
.news-grid { display: grid; gap: 1rem; }
.news-item { background: var(--white); border-radius: var(--radius); padding: 1.25rem; border-top: 5px solid var(--blue); }
.news-item p { font-size: 1rem; }
.news-date { display: block; font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .4rem; }
.news-title { font-size: 1.3rem; }
.news-list .news-item { border: 1px solid var(--grey); border-top: 5px solid var(--blue); margin-bottom: 1.25rem; }
.news-list .news-title { font-size: 1.6rem; }
@media (min-width: 760px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Sign-ups ===== */
.signup-grid { display: grid; gap: 1rem; }
.signup-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--grey); border-top: 5px solid var(--blue); border-radius: var(--radius); padding: 1.25rem;
}
.signup-card p { font-size: 1rem; }
.signup-card .deadline { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.signup-card.is-closed { opacity: .65; }
.signup-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .5rem; }
@media (min-width: 600px) { .signup-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .signup-grid { grid-template-columns: repeat(3, 1fr); } }

/* Book Fair block: "Drop off by / Where" lines */
.info-facts { margin: .5rem 0 0; }
.info-facts div { display: flex; flex-wrap: wrap; gap: 0 .4rem; margin-bottom: .2rem; }
.info-facts dt { font-weight: 700; }
.info-facts dd { margin: 0; }

/* ===== Resources ===== */
.key-dates li { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--white); align-items: baseline; }
.key-dates li:last-child { border-bottom: 0; }
.kd-date { flex: none; min-width: 7.5rem; white-space: nowrap; font-weight: 700; }
.key-dates { margin-bottom: 1.5rem; }
.faq-item { border: 1px solid var(--grey); border-radius: 10px; margin-bottom: .75rem; background: var(--white); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: .9rem 1.1rem; min-height: 48px; }
.faq-item[open] summary { border-bottom: 1px solid var(--grey); }
.faq-item p { margin: 0; padding: .9rem 1.1rem 1rem; }
.faq-answer { padding: .9rem 1.1rem 1rem; }
.faq-answer .books-text { margin-top: 0; }
.useful-links li { padding: .5rem 0; font-weight: 600; }
.doc-list li { padding: .75rem 0; border-bottom: 1px solid var(--white); }
.doc-list li:last-child { border-bottom: 0; }
.doc-title { font-weight: 700; }
.doc-text { display: block; font-size: .95rem; }
.minutes-list { margin: 0; padding: .6rem 1.1rem .9rem 2.4rem; }
.minutes-list li { padding: .3rem 0; }
.doc-older { margin-top: 1rem; }
#documents h3, .links-box h3, #members-title { margin-top: 2.5rem; }
@media (min-width: 900px) {
  .people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
  .people-grid #members-title { margin-top: 0; }
}
.member-list { margin: .5rem 0 0; }
.member-list div { padding: .5rem 0; border-bottom: 1px solid var(--grey); }
.member-list div:last-child { border-bottom: 0; }
.member-list dt { font-weight: 700; }
.member-list dd { margin: 0; }
.contact-list li { padding: .6rem 0; border-bottom: 1px solid var(--grey); }
.contact-list li:last-child { border-bottom: 0; }
.contact-who, .contact-how { display: block; }
.contact-how { display: flex; flex-direction: column; align-items: flex-start; overflow-wrap: anywhere; }
.contact-how a { min-height: 32px; display: inline-flex; align-items: center; }

/* ===== Forms: volunteer sign-up (get-involved.html) and suggestion box ===== */
.vf-box {
  background: var(--white); border: 1px solid var(--grey); border-top: 6px solid var(--blue);
  border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem);
}
.vf-box form { margin-top: 1.5rem; }
.vf-box :focus-visible { outline-color: var(--purple); }
.vf-field { margin-bottom: 1.1rem; }
.vf-field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.vf-field input, .vf-field select, .vf-field textarea {
  display: block; width: 100%; min-height: 48px; padding: .6rem .8rem;
  font: inherit; font-size: 1rem; color: var(--purple); background: var(--white);
  border: 2px solid var(--purple); border-radius: 8px;
}
.vf-field textarea { min-height: 6rem; resize: vertical; }
.vf-choices, .vf-details { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.vf-choices legend, .vf-details legend {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; padding: 0; margin-bottom: .6rem;
}
.vf-choices { background: var(--grey); border-radius: var(--radius); padding: 1rem 1.1rem .5rem; }
.vf-choices legend { float: left; width: 100%; font-family: var(--font-body); font-size: 1rem; }
.vf-check { clear: both; display: flex; align-items: center; gap: .7rem; min-height: 44px; margin-bottom: .25rem; }
.vf-check input { flex: none; width: 1.35rem; height: 1.35rem; accent-color: var(--purple); }
.vf-check label { cursor: pointer; }
.vf-skills { margin-bottom: 0; }
/* Skills list sits behind a tap-to-open line so the form stays short */
.vf-more { margin-bottom: 1.1rem; border: 2px solid var(--purple); border-radius: var(--radius); }
.vf-more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 48px; padding: .7rem 1rem; font-weight: 700; cursor: pointer; list-style: none;
}
.vf-more summary::-webkit-details-marker { display: none; }
.vf-more summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; }
.vf-more[open] summary::after { content: "\2212"; }
.vf-more .vf-choices { border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px); }
.vf-other { margin: .25rem 0 .75rem; }
.vf-bake { background: var(--white); border-radius: 10px; padding: 1rem; margin: .25rem 0 1rem; }
.vf-nutfree {
  background: #fff6d6; border-left: 5px solid var(--gold); border-radius: 8px;
  padding: .7rem 1rem; font-size: 1rem; font-weight: 600;
}
.vf-diet { border: 0; padding: 0; margin: 0 0 .75rem; min-width: 0; }
.vf-diet legend { font-weight: 700; padding: 0; margin-bottom: .35rem; }
.vf-confirm, .vf-confirm-nuts label { font-weight: 700; }
.vf-note { background: var(--grey); border-left: 5px solid var(--purple); border-radius: 8px; padding: .7rem 1rem; font-size: .95rem; }
.vf-error {
  background: #fde8e8; color: #8a1c1c; border-left: 5px solid #8a1c1c;
  border-radius: 8px; padding: .7rem 1rem; font-weight: 700;
}
.vf-box .btn { background: var(--purple); color: var(--white); border: 0; cursor: pointer; }
.vf-box .btn[disabled] { opacity: .6; cursor: wait; }
.vf-privacy { font-size: .9rem; margin-top: 1rem; }
.vf-thanks { text-align: center; padding: 1rem 0; }
.vf-thanks h2:focus { outline: none; }

/* ===== Home page design pass ===== */

/* Card titles in sentence case; caps stay for section headings, nav and buttons */
.news-title, .event-title, .faq-item summary { text-transform: none; letter-spacing: .01em; }

/* News cards keep their own height instead of stretching to match */
.news-grid { align-items: start; }

/* Tap targets: text links that are actions get a 44px-high hit area */
.text-link, .more-link a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* "Add to calendar": one control that opens to show the two options */
.cal-menu { display: inline-block; position: relative; font-size: .95rem; }
.cal-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu summary::after { content: "\25BE"; font-size: .8em; }
.cal-menu[open] summary { background: var(--purple); color: var(--white); }
.cal-options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.cal-option {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 2px solid var(--purple); border-radius: 999px; font-weight: 600; text-decoration: none;
}
.cal-option:hover { background: var(--purple); color: var(--white); }

/* Home FAQ */
#home-faq { margin-top: 1rem; }
