/* =========================================================================
   William Walker Elementary PTC
   Palette — matched exactly to the school logo:
     blue #2F67B2 · green #079A48 · white + shades only
   Font: Figtree (clean sans, no serif)
   ========================================================================= */

:root {
  --blue:       #2F67B2;
  --blue-deep:  #244f8a;
  --blue-dark:  #1c3d6c;
  --blue-tint:  #eef4fc;
  --green:      #079A48;
  --green-deep: #067a3a;
  --green-dark: #05602e;
  --green-tint: #e9f7ef;

  --white: #ffffff;
  --ink:   #1b2a3f;
  --ink-soft: #48586e;
  --line:  #dbe3ee;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px -22px rgba(27, 42, 63, 0.5);
  --shadow-sm: 0 8px 22px -14px rgba(27, 42, 63, 0.5);

  --ff: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --step: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: calc(1.0625rem * var(--step));
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--ff); line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }

/* ---------- focus + skip link ---------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 1000;
  background: var(--blue-dark); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: 10px; font-weight: 700; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* =========================================================================
   Sticky top bar = slim utility row (language + accessibility) + header
   ========================================================================= */
.topbar { position: sticky; top: 0; z-index: 50; }

.utility { background: var(--blue-dark); color: #eaf1fb; }
.utility__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.25rem clamp(1.15rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: flex-end; gap: 0.4rem;
}

/* menu wrapper + trigger button */
.menu { position: relative; }
.menu__btn {
  font-family: var(--ff); font-size: 0.82rem; font-weight: 600; line-height: 1;
  color: #eaf1fb; background: transparent; border: 1px solid transparent;
  border-radius: 8px; padding: 0.35rem 0.6rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.45rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.menu__btn:hover { background: rgba(255,255,255,0.12); }
.menu__btn[aria-expanded="true"] { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); }
.i-translate {
  font-size: 0.72rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  background: var(--blue); color: #fff; border-radius: 5px; padding: 0.2rem 0.28rem;
}
.i-access { display: inline-flex; }
.menu__caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: 0.8; transition: transform 0.15s ease;
}
.menu__btn[aria-expanded="true"] .menu__caret { transform: rotate(180deg); }

/* dropdown panels */
.menu__panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 70;
  min-width: 190px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 0.4rem;
}
.menu__panel[hidden] { display: none; }
.menu__title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin: 0.3rem 0.55rem 0.35rem; }
.menu__item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: var(--ff); font-size: 0.98rem; font-weight: 600; text-align: left;
  color: var(--ink); background: transparent; border: 0; border-radius: 8px;
  padding: 0.5rem 0.6rem; cursor: pointer;
}
.menu__item:hover { background: var(--blue-tint); }
.menu__item[aria-checked="true"] { color: var(--blue-deep); }
.menu__item[aria-checked="true"]::after { content: "✓"; font-weight: 800; color: var(--green); }
.menu__more { border-top: 1px solid var(--line); margin-top: 0.35rem; padding: 0.55rem 0.55rem 0.3rem; }
.menu__morelabel { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 0.4rem; }

/* accessibility panel controls */
.menu__panel--a11y { min-width: 240px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.6rem; }
.a11y-row__label { font-weight: 600; font-size: 0.96rem; }
.a11y-sizes { display: inline-flex; gap: 0.25rem; }
.a11y-size {
  font-family: var(--ff); font-weight: 700; font-size: 0.9rem; color: var(--ink);
  background: var(--blue-tint); border: 1px solid var(--line); border-radius: 7px;
  min-width: 30px; padding: 0.25rem 0.4rem; cursor: pointer;
}
.a11y-size--big { font-size: 1.05rem; }
.a11y-size:hover { border-color: var(--blue); }
.a11y-minus, .a11y-plus { font-size: 0.72em; vertical-align: super; }
.a11y-opt {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: var(--ff); font-size: 0.96rem; font-weight: 600; text-align: left;
  color: var(--ink); background: transparent; border: 0; border-radius: 8px;
  padding: 0.5rem 0.6rem; cursor: pointer;
}
.a11y-opt:hover { background: var(--blue-tint); }
.a11y-switch {
  width: 34px; height: 20px; border-radius: 999px; background: var(--line);
  position: relative; flex: none; transition: background 0.15s ease;
}
.a11y-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.3); transition: left 0.15s ease; }
.a11y-opt[aria-pressed="true"] .a11y-switch { background: var(--green); }
.a11y-opt[aria-pressed="true"] .a11y-switch::after { left: 16px; }

/* Google Translate widget (full list) inside the language panel */
#google_translate_element { min-height: 26px; }
.goog-te-gadget { color: var(--ink-soft) !important; font-size: 0 !important; }
.goog-te-gadget .goog-te-combo {
  font-family: var(--ff) !important; font-size: 0.92rem !important; color: var(--ink) !important;
  width: 100% !important; margin: 0 !important; padding: 0.4rem 0.5rem !important;
  border-radius: 8px !important; border: 1px solid var(--line) !important; background: #fff !important;
}
.goog-logo-link, .goog-te-gadget span { display: none !important; }
body { top: 0 !important; }
.skiptranslate iframe.skiptranslate { display: none !important; }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem clamp(1.15rem, 4vw, 2.5rem);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--blue-tint);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__logo { width: auto; height: 46px; }
.brand__text {
  font-weight: 900; font-size: 1.25rem; line-height: 1; color: var(--green-deep);
  letter-spacing: 0.02em; border-left: 2px solid var(--line); padding-left: 0.7rem;
}

.main-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 0.3rem; margin: 0; padding: 0; }
.nav-list a {
  text-decoration: none; color: var(--ink); font-weight: 600;
  padding: 0.5rem 0.8rem; border-radius: 9px; font-size: 0.98rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-list a:hover { background: var(--blue-tint); color: var(--blue-deep); }
.nav-cta { background: var(--blue) !important; color: #fff !important; box-shadow: var(--shadow-sm); }
.nav-cta:hover { background: var(--blue-deep) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  text-align: center;
  padding: clamp(2.8rem, 7vw, 5rem) clamp(1.15rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--blue-tint), var(--white));
  border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: 780px; margin-inline: auto; }
.hero__eyebrow {
  display: inline-block; margin: 0 0 1rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 0.78rem; color: var(--green-deep);
}
.hero__title { font-size: clamp(2.3rem, 6.2vw, 4rem); font-weight: 900; color: var(--blue-dark); }
.hero__lede { font-size: clamp(1.08rem, 2vw, 1.32rem); color: var(--ink-soft); max-width: 620px; margin: 1.4rem auto 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff); font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn--green { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--green:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* =========================================================================
   Blocks (alternating white / blue / green)
   ========================================================================= */
.block { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.block--white { background: var(--white); }
.block--blue  { background: var(--blue);  color: #eef4fc; }
.block--green { background: var(--green); color: #eafaf1; }

.kicker { display: inline-block; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 1rem; }
.kicker--blue    { color: var(--blue-deep); }
.kicker--onblue  { color: #bcd4f2; }
.kicker--ongreen { color: #bfead0; }

.section-title { font-size: clamp(1.8rem, 4.2vw, 2.9rem); color: var(--blue-dark); max-width: 20ch; }
.section-title--light { color: #fff; max-width: 22ch; }
.subhead { font-size: 1.2rem; font-weight: 800; margin: 2.4rem 0 1.1rem; color: var(--blue-dark); }
.subhead--light { color: #fff; }

.lead { font-size: clamp(1.06rem, 1.8vw, 1.28rem); color: var(--ink-soft); max-width: 62ch; }
.lead--light { color: rgba(255,255,255,0.9); }
.lead--wide { max-width: 68ch; margin-top: 1rem; }
.fineprint { font-size: 0.92rem; color: var(--ink-soft); opacity: 0.85; max-width: 62ch; margin-top: 1.4rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about-body .lead { margin-bottom: 1.1rem; }
.about-body strong { color: var(--blue-deep); }

/* ---------- What we do (on blue) ---------- */
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff; font-weight: 600; font-size: 0.98rem; padding: 0.5rem 0.95rem; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pill:hover { transform: translateY(-2px); background: rgba(255,255,255,0.22); }

.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.event-card {
  background: #fff; border-radius: var(--radius-sm); padding: 1.35rem;
  box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -22px rgba(27,42,63,0.6); }
.event-card h4 { font-size: 1.18rem; color: var(--blue-dark); margin-bottom: 0.4rem; }
.event-card p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }

/* ---------- Get involved (on green) ---------- */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin: 2.2rem 0 2.6rem; }
.way { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius-sm); padding: 1.5rem; }
.way__num { font-weight: 900; font-size: 1.7rem; color: #fff; opacity: 0.85; }
.way h3 { font-size: 1.22rem; margin: 0.4rem 0 0.5rem; color: #fff; }
.way p { color: rgba(255,255,255,0.9); margin: 0; font-size: 0.98rem; }
.way__link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem;
  color: #fff; font-weight: 700; font-size: 0.98rem; text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.5); padding-bottom: 2px;
  transition: border-color 0.15s ease, gap 0.15s ease;
}
.way__link:hover { border-color: #fff; gap: 0.6rem; }

.signup {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.6rem);
}
.signup__intro h3 { font-size: 1.55rem; color: #fff; margin-bottom: 0.6rem; }
.signup__intro p { color: rgba(255,255,255,0.9); margin: 0; }
.signup__iframe { display: block; width: 100%; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.signup__fallback { margin: 0.9rem 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.9); text-align: center; }
.signup__fallback a { color: #fff; font-weight: 700; text-underline-offset: 3px; }

/* ---------- Meetings (white) ---------- */
.meetings-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.meeting-card {
  background: var(--blue-tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2rem); box-shadow: var(--shadow-sm);
}
.meeting-card__label { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.74rem; color: var(--blue-deep); margin-bottom: 0.6rem; }
.meeting-card__when { font-family: var(--ff); font-weight: 900; font-size: 1.5rem; line-height: 1.1; color: var(--blue-dark); margin: 0 0 1rem; }
.meeting-card__when span { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); margin-top: 0.15rem; }
.meeting-card__facts { list-style: none; margin: 0 0 1rem; padding: 0.9rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.5rem; }
.meeting-card__facts li { font-weight: 700; color: var(--blue-dark); font-size: 1.02rem; }
.meeting-card__k { display: inline-block; min-width: 4.5rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.7rem; color: var(--blue-deep); }
.meeting-card__fallback { font-size: 0.94rem; color: var(--ink-soft); margin: 1rem 0 0; }

/* ---------- Connect (on blue) ---------- */
.connect-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.connect-card {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; text-decoration: none; color: #eef4fc;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
a.connect-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.2); border-color: #fff; }
.connect-card__icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem; background: #fff; color: var(--blue);
}
.connect-card__body { display: flex; flex-direction: column; line-height: 1.3; }
.connect-card__name { font-weight: 800; font-size: 1.05rem; color: #fff; }
.connect-card__meta { font-size: 0.88rem; color: rgba(255,255,255,0.82); }
.connect-card__arrow { margin-left: auto; color: #fff; font-size: 1.1rem; }

/* =========================================================================
   "To add" editor notes (neutral — no yellow)
   ========================================================================= */
.note {
  background: var(--blue-tint); color: var(--blue-dark);
  border: 2px dashed var(--blue); border-radius: 12px; padding: 1.1rem 1.2rem;
}
.note p { margin: 0 0 0.5rem; font-size: 0.96rem; }
.note p:last-child { margin-bottom: 0; }
.note__tag {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 800;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 6px; margin-bottom: 0.6rem;
}
.note__hint { font-size: 0.86rem !important; color: var(--blue-deep); opacity: 0.9; }
/* notes sitting on colored blocks get a solid white card so they stay legible */
.block--green .note { background: #fff; border-color: var(--green); color: var(--green-dark); }
.block--green .note__tag { background: var(--green); }
.block--green .note__hint { color: var(--green-deep); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--blue-dark); color: #cdd8ea; padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 1.8rem; align-items: start; }
.footer-brand { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 0.7rem; }
.footer-address { font-style: normal; color: #9fb0cc; line-height: 1.7; font-size: 0.95rem; }
.footer-social { display: inline-block; margin-top: 0.9rem; color: #cdd8ea; text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.footer-social:hover { color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: #cdd8ea; text-decoration: none; font-size: 0.96rem; }
.footer-nav a:hover { color: #fff; }
.footer-note { font-size: 0.85rem; color: #8698b6; line-height: 1.6; margin: 0; }
.footer-copy { text-align: center; font-size: 0.82rem; color: #7688a6; margin: 2.5rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* =========================================================================
   Reveal-on-scroll
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   High-contrast mode
   ========================================================================= */
html.hc, html.hc body { background: #fff; color: #000; }
html.hc .block--white, html.hc .hero { background: #fff; }
html.hc .block--blue { background: #003a8c; color: #fff; }
html.hc .block--green { background: #004d24; color: #fff; }
html.hc .utility, html.hc .site-footer { background: #000; color: #fff; }
html.hc .menu__btn { color: #fff; }
html.hc .menu__panel, html.hc .menu__item, html.hc .a11y-opt { color: #000; }
html.hc .i-translate { background: #003a8c; }
html.hc .hero__title, html.hc .section-title, html.hc .kicker--blue,
html.hc .hero__eyebrow, html.hc .subhead, html.hc .event-card h4, html.hc .meeting-card__label { color: #000; }
html.hc .lead, html.hc p, html.hc .hero__lede, html.hc .fineprint, html.hc .event-card p, html.hc .about-body strong { color: #111; }
html.hc .block--blue *, html.hc .block--green * { color: #fff !important; }
html.hc .event-card, html.hc .meeting-card { background: #fff; border: 2px solid #000; }
html.hc .event-card h4, html.hc .event-card p, html.hc .meeting-card * { color: #000 !important; }
html.hc .pill, html.hc .way, html.hc .signup, html.hc .connect-card { border-color: #fff; }
html.hc .btn--blue { background: #003a8c; color: #fff; border-color: #fff; }
html.hc .btn--green { background: #004d24; color: #fff; border-color: #fff; }
html.hc a { color: #0033cc; }
html.hc .block--blue a, html.hc .block--green a, html.hc .footer-nav a { color: #fff; }

/* underline-all-links toggle */
html.ul-links a { text-decoration: underline !important; text-underline-offset: 3px; }

/* =========================================================================
   Calendar page
   ========================================================================= */
.cal-head { padding-bottom: 1.5rem; }
.cal-head .lead { margin-top: 0.6rem; }
.cal-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.8rem;
}
.cal-filters { display: inline-flex; gap: 0.4rem; background: var(--blue-tint); padding: 0.3rem; border-radius: 999px; }
.cal-chip {
  font-family: var(--ff); font-weight: 700; font-size: 0.92rem; color: var(--blue-deep);
  background: transparent; border: 0; border-radius: 999px; padding: 0.45rem 0.95rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.4rem; transition: background 0.15s ease, color 0.15s ease;
}
.cal-chip:hover { background: rgba(47,103,178,0.12); }
.cal-chip.is-active { background: var(--blue); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--ptc { background: var(--green); }
.dot--school { background: var(--blue); }
.cal-chip.is-active .dot--ptc, .cal-chip.is-active .dot--school { box-shadow: 0 0 0 2px #fff; }
.cal-subs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.cal-subs__label { font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); }
.cal-subscribe {
  font-weight: 700; font-size: 0.9rem; color: var(--blue-deep); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: 999px; transition: border-color 0.15s ease, background 0.15s ease;
}
.cal-subscribe:hover { border-color: var(--blue); background: var(--blue-tint); }

.cal-body { padding-top: 0.5rem; }
.cal-status { color: var(--ink-soft); font-size: 1.02rem; padding: 1.5rem 0; }
.cal-status--warn { color: var(--green-deep); font-weight: 600; }
.cal-list { display: block; }
.cal-month {
  font-size: 1.15rem; font-weight: 800; color: var(--blue-deep); letter-spacing: 0.02em;
  margin: 2rem 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--blue-tint);
}
.cal-month:first-child { margin-top: 0.5rem; }
.cal-event {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 0.4rem; border-bottom: 1px solid var(--line);
}
.cal-date {
  flex: none; width: 58px; text-align: center; border-radius: 10px; padding: 0.45rem 0;
  background: var(--blue-tint); color: var(--blue-deep); line-height: 1.05;
}
.cal-event--ptc .cal-date { background: var(--green-tint); color: var(--green-deep); }
.cal-date__dow { display: block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.cal-date__num { display: block; font-size: 1.5rem; font-weight: 900; }
.cal-event__body { flex: 1 1 auto; min-width: 0; }
.cal-event__title { font-size: 1.08rem; font-weight: 700; color: var(--blue-dark); margin: 0 0 0.15rem; }
.cal-event__meta { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.cal-event__loc { color: var(--ink-soft); }
.cal-tag {
  flex: none; align-self: flex-start; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.22rem 0.5rem; border-radius: 6px;
}
.cal-tag--ptc { background: var(--green-tint); color: var(--green-deep); }
.cal-tag--school { background: var(--blue-tint); color: var(--blue-deep); }

.cal-event__actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.cal-add { position: relative; }
.cal-add__btn {
  font-family: var(--ff); font-weight: 700; font-size: 0.8rem; color: var(--blue-deep);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0.28rem 0.6rem; cursor: pointer; white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cal-add__btn:hover, .cal-add__btn[aria-expanded="true"] { border-color: var(--blue); background: var(--blue-tint); }
.cal-add__menu {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 30;
  min-width: 168px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 0.3rem;
}
.cal-add__menu[hidden] { display: none; }
.cal-add__menu a {
  display: block; padding: 0.55rem 0.7rem; border-radius: 7px;
  font-size: 0.92rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.cal-add__menu a:hover { background: var(--blue-tint); color: var(--blue-deep); }
@media (max-width: 560px) {
  .cal-event__actions { flex-direction: row-reverse; align-items: center; }
}

@media (max-width: 560px) {
  .cal-controls { flex-direction: column; align-items: stretch; }
  .cal-subscribe { justify-content: center; }
  .cal-date { width: 50px; }
  .cal-event__title { font-size: 1rem; }
}
html.hc .cal-chip.is-active { background: #003a8c; color: #fff; }
html.hc .cal-date, html.hc .cal-tag { border: 1px solid #000; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 860px) {
  .about-grid, .meetings-wrap, .signup { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
  .site-header { position: relative; }
  .nav-toggle { display: flex; margin: -4px -4px -4px 0; }
  .nav-list {
    position: absolute; z-index: 60;
    top: calc(100% + 8px);
    left: clamp(0.6rem, 3vw, 1.5rem); right: clamp(0.6rem, 3vw, 1.5rem);
    flex-direction: column; align-items: stretch; gap: 0.1rem;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 0.55rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav-list.open { display: flex; animation: navdrop 0.18s ease; }
  @keyframes navdrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .nav-list li:not(:last-child) { border-bottom: 1px solid var(--blue-tint); }
  .nav-list a {
    display: block; padding: 0.95rem 1rem; font-size: 1.08rem; font-weight: 600; border-radius: 10px;
  }
  .nav-list li:last-child { margin-top: 0.35rem; }
  .nav-cta { text-align: center; padding: 1rem !important; font-weight: 700; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .a11y-group--translate { margin-left: 0; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

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

/* =========================================================================
   Supplies page
   ========================================================================= */
.grade { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; scroll-margin-top: 130px; background: #fff; }
.grade > summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 1.25rem; font-weight: 800; color: var(--blue);
}
.grade > summary::-webkit-details-marker { display: none; }
.grade > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.grade[open] > summary::after { content: "−"; }
.grade__meta { font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin-left: auto; }
.grade__body { padding: 0 22px 24px; }
.grade__subhead { font-weight: 700; margin: 18px 0 8px; color: var(--ink); }

.supply-list { list-style: none; margin: 0 0 8px; padding: 0; }
.supply-list li { padding: 7px 0 7px 30px; position: relative; }
.supply-list li::before {
  content: ""; position: absolute; left: 2px; top: .78em;
  width: 14px; height: 14px; border: 2px solid var(--green); border-radius: 4px;
}
.supply-list a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.supply-list a:hover { color: var(--blue-deep); }
.supply-list .item-note { display: block; font-size: .88em; color: var(--ink-soft); }
.supply-list .item-flag { font-size: .82em; font-weight: 700; color: #8a5a00; background: #fff3d6; border-radius: 6px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }

.donation-list { list-style: disc; margin: 0 0 8px 22px; padding: 0; color: var(--ink-soft); }
.donation-list li { padding: 3px 0; }

.disclosure { font-size: .88rem; color: var(--ink-soft); margin: 18px 0 10px; }
.cart-btn { width: 100%; max-width: 460px; justify-content: center; }
.cart-btn[hidden] { display: none; }
.shop-anywhere { font-size: .9rem; color: var(--ink-soft); margin-top: 12px; }

#shopping-helps { scroll-margin-top: 130px; }

/* collapse the double .block padding between the intro and the grade panels */
.supplies-head { padding-bottom: 1.25rem; }
.grade-panels { padding-top: 0; }

.od-callout {
  display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 999px;
  background: var(--blue-tint); color: var(--blue-dark); font-size: .95rem;
}
.od-callout a { color: var(--blue); font-weight: 700; }

.od-id-card {
  margin-top: 22px;
  padding: 26px 28px;
  border: 3px dashed var(--blue);
  border-radius: var(--radius);
  background: var(--blue-tint);
  text-align: center;
  max-width: 460px;
}
.od-id-card__label {
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue-dark); margin: 0 0 6px;
}
.od-id-card__number {
  font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 900; letter-spacing: .08em;
  color: var(--blue); margin: 0; line-height: 1.1;
  font-variant-numeric: tabular-nums; user-select: all;
}
.od-id-card__copy {
  margin-top: 12px; padding: 8px 18px; border: 2px solid var(--blue);
  border-radius: 999px; background: #fff; color: var(--blue);
  font-family: var(--ff); font-weight: 700; font-size: .92rem; cursor: pointer;
}
.od-id-card__copy:hover { background: var(--blue); color: #fff; }
.od-id-card__copy[hidden] { display: none; }

.donate-nudge {
  display: none; margin: 14px 0 0; padding: 12px 16px; border-radius: 10px;
  background: var(--green-tint); color: var(--green-dark); font-weight: 600;
}
.donate-nudge.is-on { display: block; }

/* =========================================================================
   Programs & Events pages
   ========================================================================= */
/* hero variants: activity photo (with legibility overlay) or brand gradient */
.hero--image, .hero--gradient { border-bottom: 0; }
.hero--image {
  background-image: linear-gradient(180deg, rgba(28,61,108,0.62), rgba(28,61,108,0.8)), var(--hero-img);
  background-size: cover; background-position: center;
}
.hero--gradient { background: linear-gradient(135deg, var(--blue-dark), var(--blue) 58%, var(--green-deep)); }
.hero--image .hero__eyebrow, .hero--gradient .hero__eyebrow { color: #bfead0; }
.hero--image .hero__title, .hero--gradient .hero__title { color: #fff; }
.hero--image .hero__lede, .hero--gradient .hero__lede { color: rgba(255,255,255,0.92); }

.btn--white { background: #fff; color: var(--green-dark); box-shadow: var(--shadow-sm); }
.btn--white:hover { background: var(--green-tint); transform: translateY(-2px); }

/* story prose (rendered markdown) */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--blue-dark); margin: 2rem 0 0.8rem; }
.prose h3 { font-size: 1.15rem; color: var(--blue-deep); margin: 1.6rem 0 0.6rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.prose-img { margin: 1.6rem 0; }
.prose-img img { border-radius: var(--radius-sm); box-shadow: var(--shadow); }

/* photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.gallery figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.45rem; }

/* impact tiles (on green block) */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 2rem 0; }
.impact-card { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.32); border-radius: var(--radius-sm); padding: 1.4rem 1.3rem; }
.impact-card__amount { display: block; font-weight: 900; font-size: 2.1rem; color: #fff; line-height: 1; }
.impact-card__buys { display: block; margin-top: 0.5rem; color: rgba(255,255,255,0.92); font-weight: 600; }
.impact-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.fineprint--light { color: rgba(255,255,255,0.85); opacity: 1; }

/* program cards (index + "more programs") */
.program-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.program-card { border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.program-card--link { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.program-card--link:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -22px rgba(27,42,63,0.6); }
.program-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.program-card__media { aspect-ratio: 3 / 2; background: var(--blue-tint); }
.program-card__media img { width: 100%; height: 100%; object-fit: cover; }
.program-card__ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--green)); }
.program-card__ph span { font-weight: 900; font-size: 2.6rem; color: rgba(255,255,255,0.9); }
.program-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.program-card__body h3 { font-size: 1.15rem; color: var(--blue-dark); margin-bottom: 0.4rem; }
.program-card__body p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.program-card__more { display: inline-block; margin-top: 0.7rem; font-weight: 700; font-size: 0.94rem; color: var(--blue-deep); }

/* homepage pills that link to program pages */
.pill a { color: #fff; text-decoration: none; }

/* high-contrast mode */
html.hc .hero--image, html.hc .hero--gradient { background: #003a8c !important; background-image: none !important; }
html.hc .hero--image .hero__title, html.hc .hero--gradient .hero__title,
html.hc .hero--image .hero__eyebrow, html.hc .hero--gradient .hero__eyebrow,
html.hc .hero--image .hero__lede, html.hc .hero--gradient .hero__lede { color: #fff !important; }
html.hc .btn--white { background: #fff; color: #004d24; border-color: #004d24; }
html.hc .impact-card { border-color: #fff; }
html.hc .program-card { border: 2px solid #000; }
html.hc .program-card__body h3, html.hc .program-card__body p, html.hc .program-card__more { color: #000 !important; }
