/* tcl-theme/assets/css/main.css
 * TCL landing page (TCL-557) — web component layer + landing sections.
 *
 * Ported from the approved hi-fi mockup (TCL-554). Structure: identity @font-face,
 * base reset, the reusable .w-* design-system components (nav, hero, buttons, program
 * cards, footer, u-raw street mood), the page-specific .lp-* section styles, the
 * semantic text/identity classes, and the mobile-first responsive rules.
 *
 * All colours/spacing/radii/type come from tokens.css. Never hardcode a hex here.
 */

/* ============================================================
   IDENTITY FONTS — brand surfaces only (hero, headers, titles).
   Files extracted from the approved mockup into ../fonts.
   ============================================================ */
@font-face {
  font-family: "Anton";
  src: url("../fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Norwester";
  src: url("../fonts/Norwester.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lost in South";
  src: url("../fonts/LostInSouth.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* ============================================================
   BASE / RESET
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-600); }

@keyframes tclPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Accessibility: visible skip link on focus */
.tcl-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--deep-forest); color: var(--cream);
  padding: 10px 16px; border-radius: var(--r-sm);
}
.tcl-skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.w-container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.w-container--narrow { max-width: var(--container-narrow); }
.w-container--wide { max-width: var(--container-wide); }

.w-section { padding-block: var(--section-y); }
.w-section--tight { padding-block: calc(var(--section-y) * 0.6); }
.w-section--brand { background: var(--deep-forest); color: var(--on-brand); }
.w-section--forest { background: var(--forest); color: var(--on-brand); }
.w-section--sand { background: var(--sand-50); }
.w-section--paper { background: var(--paper); }

.w-section-head { display: flex; flex-direction: column; gap: var(--s-4); max-width: 62ch; }
.w-section-head--center { align-items: center; text-align: center; margin-inline: auto; }

/* ============================================================
   WEB DISPLAY TYPE (IDENTITY fonts)
   ============================================================ */
.w-hero-title {
  font-family: var(--font-norwester);
  font-size: var(--fs-hero); line-height: var(--lh-hero);
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--ink); text-wrap: balance;
}
.w-display {
  font-family: var(--font-norwester);
  font-size: var(--fs-display-xl); line-height: var(--lh-display-xl);
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--ink); text-wrap: balance;
}
.w-section-title {
  font-family: var(--font-norwester);
  font-size: var(--fs-display-lg); line-height: var(--lh-display-lg);
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.015em;
  color: var(--ink); text-wrap: balance;
}
.w-accent {
  font-family: var(--font-script);
  text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--gold);
}
.w-section--brand .w-hero-title, .w-section--brand .w-display, .w-section--brand .w-section-title,
.w-section--forest .w-hero-title, .w-section--forest .w-display, .w-section--forest .w-section-title,
.w-on-dark .w-hero-title, .w-on-dark .w-display, .w-on-dark .w-section-title { color: var(--cream); }

/* ---------- Web body type (SYSTEM font) ---------- */
.w-eyebrow {
  font-family: var(--font-ui); font-size: var(--fs-caption); line-height: var(--lh-caption);
  font-weight: var(--fw-bold); letter-spacing: var(--track-eyebrow);
  text-transform: uppercase; color: var(--ink-muted);
}
.w-section--brand .w-eyebrow, .w-section--forest .w-eyebrow, .w-on-dark .w-eyebrow { color: var(--gold-200); }
.w-lede {
  font-family: var(--font-ui); font-size: var(--fs-lede); line-height: var(--lh-lede);
  font-weight: var(--fw-regular); color: var(--ink-soft); text-wrap: pretty; max-width: 60ch;
}
.w-section--brand .w-lede, .w-section--forest .w-lede, .w-on-dark .w-lede { color: var(--forest-200); }
.w-body { font-family: var(--font-ui); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-soft); text-wrap: pretty; }

/* ============================================================
   BUTTONS (functional → SYSTEM font)
   ============================================================ */
.w-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-ui); font-size: var(--fs-body); font-weight: var(--fw-semibold);
  line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 15px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out, color 160ms ease-out;
}
.w-btn:active { transform: scale(0.97); }
.w-btn--primary { background: var(--gold); color: var(--on-gold); }
.w-btn--primary:hover { background: var(--gold-500); color: var(--on-gold); box-shadow: var(--shadow-md); }
.w-btn--dark { background: var(--deep-forest); color: var(--cream); }
.w-btn--dark:hover { background: var(--forest-700); color: var(--cream); box-shadow: var(--shadow-md); }
.w-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.w-btn--ghost:hover { background: var(--ink-100); color: var(--ink); }
.w-btn--on-dark { background: rgba(215,204,179,0.14); color: var(--cream); border-color: rgba(215,204,179,0.28); }
.w-btn--on-dark:hover { background: rgba(215,204,179,0.22); color: var(--cream); }
.w-btn--outline-cream { background: transparent; color: var(--cream); border: 1px solid rgba(215,204,179,0.42); }
.w-btn--outline-cream:hover { background: rgba(215,204,179,0.12); color: var(--cream); }
.w-btn--lg { padding: 18px 32px; font-size: var(--fs-subtitle); }
.w-btn--block { width: 100%; }

.w-link {
  font-family: var(--font-ui); font-weight: var(--fw-semibold); color: var(--ink);
  text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px;
}
.w-link:hover { color: var(--gold-600); }

/* ============================================================
   SEMANTIC TEXT + IDENTITY DISPLAY CLASSES
   ============================================================ */
.t-body { font-family: var(--font-ui); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--fw-regular); color: var(--ink); }
.t-eyebrow {
  font-family: var(--font-ui); font-size: var(--fs-caption); line-height: var(--lh-caption);
  font-weight: var(--fw-bold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-muted);
}
.brand-anton { font-family: var(--font-anton); text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.94; }
.brand-norwester { font-family: var(--font-norwester); text-transform: uppercase; letter-spacing: 0.02em; }
.brand-script { font-family: var(--font-script); }

/* ============================================================
   NAVIGATION (overlay variant over hero media)
   ============================================================ */
.w-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: 84px; display: flex; align-items: center; gap: 36px;
  padding: 0 40px; box-sizing: border-box;
  background: rgba(10,48,43,0.5); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215,204,179,0.14);
  transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
/* Solid, elevated state once the user scrolls off the hero (JS toggles the class). */
.w-nav--scrolled {
  background: rgba(10,48,43,0.94);
  border-bottom-color: rgba(215,204,179,0.20);
  box-shadow: 0 10px 30px rgba(10,48,43,0.35);
}
/* WordPress admin bar (logged-in views only) is a fixed toolbar at top:0, so it
   overlaps a nav also pinned to top:0. Offset the fixed nav + dropdown below it:
   32px on desktop, 46px at WP's <=782px breakpoint where the bar grows taller.
   Scoped to body.admin-bar, so public visitors (no admin bar) are unaffected. */
.admin-bar .w-nav { top: 32px; }
.admin-bar .w-nav__mobile { top: calc(84px + 32px); }
@media (max-width: 782px) {
  .admin-bar .w-nav { top: 46px; }
}
.w-nav__brand { margin-right: auto; display: flex; align-items: center; gap: 12px; }
.w-nav__mark { height: 52px; width: auto; display: block;
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(1px 1px 0 #fff) drop-shadow(-1px -1px 0 #fff) drop-shadow(1px -1px 0 #fff) drop-shadow(-1px 1px 0 #fff); }
.w-nav__wordmark { height: 28px; width: auto; display: block; }
.w-nav__links { display: flex; gap: 28px; }
.w-nav__link { font-family: var(--font-ui); font-size: var(--fs-callout); font-weight: var(--fw-semibold); color: rgba(215,204,179,0.85); }
.w-nav__link:hover { color: var(--cream); }
.w-nav__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 12px; font-weight: var(--fw-semibold); color: var(--cream);
  padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid rgba(215,204,179,0.28);
}
.w-nav__tag .w-dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--live); animation: tclPulse 2s ease-in-out infinite; }
.w-nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid rgba(215,204,179,0.28); color: var(--cream);
  align-items: center; justify-content: center; cursor: pointer;
}
/* Mobile dropdown panel (hidden by default; JS toggles [data-open]) */
.w-nav__mobile {
  display: none; position: fixed; top: 84px; left: 0; right: 0; z-index: 19;
  flex-direction: column; gap: 2px; padding: 12px 20px 18px;
  background: rgba(10,48,43,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215,204,179,0.14);
}
.w-nav__mobile[data-open="true"] { display: flex; }
.w-nav__mobile a { font-family: var(--font-ui); font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--cream); padding: 12px 4px; border-bottom: 1px solid rgba(215,204,179,0.12); }
.w-nav__mobile a:last-child { border-bottom: 0; }

/* ============================================================
   HERO
   ============================================================ */
.lp-hero {
  position: relative; min-height: 700px;
  display: flex; flex-direction: column;
  background: var(--deep-forest); overflow: hidden;
}
.lp-hero__slides { position: absolute; inset: 0; z-index: 0; background: var(--deep-forest); }
.lp-hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease;
  background-size: cover; background-position: center;
}
.lp-hero__slide[data-active="true"] { opacity: 1; }
/* Placeholder slide look until real photos drop in */
.lp-hero__slide--placeholder { background: linear-gradient(135deg, #143e35, var(--deep-forest) 70%); display: flex; align-items: center; justify-content: center; }
.lp-hero__slide--placeholder img { width: 420px; max-width: 52%; opacity: 0.10; }
.lp-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10,48,43,0.95) 0%, rgba(10,48,43,0.55) 40%, rgba(10,48,43,0.18) 70%, rgba(10,48,43,0) 100%);
}
.lp-hero__inner { position: relative; z-index: 2; margin-top: auto; padding: 0 40px 68px; width: 100%; box-sizing: border-box; }
.lp-hero__content { max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
.lp-hero__content .w-hero-title { color: var(--cream); }
.lp-hero__content .w-lede { color: var(--sand-100); max-width: 50ch; }
.lp-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.lp-hero__dots { display: flex; gap: 9px; margin-top: 26px; }
.lp-hero__dot { width: 30px; height: 4px; border-radius: var(--r-pill); background: var(--gold); opacity: 0.32; transition: opacity 400ms ease; }
.lp-hero__dot[data-active="true"] { opacity: 1; }

/* ============================================================
   IMPACT / PROOF STRIP
   ============================================================ */
.lp-impact { background: var(--gold); padding: 104px 56px; }
.lp-impact__inner { max-width: 1168px; margin: 0 auto; }
.lp-impact .w-eyebrow { color: var(--deep-forest); }
.lp-impact__rows { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; }
.lp-impact__row { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; padding: 6px 0; }
.lp-impact__num { font-family: var(--font-norwester); text-transform: uppercase; font-size: 96px; line-height: 0.94; color: var(--deep-forest); letter-spacing: -0.01em; }
.lp-impact__label { font-family: var(--font-norwester); text-transform: uppercase; font-size: 96px; line-height: 0.94; color: rgba(10,48,43,0.42); letter-spacing: -0.01em; }

/* ============================================================
   PROGRAMS
   ============================================================ */
.lp-section { padding: 96px 56px; scroll-margin-top: 80px; }
.lp-section--paper { background: var(--paper); }
.lp-section--sand { background: var(--sand-50); }
.lp-section__inner { max-width: 1168px; margin: 0 auto; }
.lp-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.lp-section__head-text { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }

.lp-programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.w-program {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.w-program:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.w-program__media { position: relative; aspect-ratio: 4 / 5; background: var(--forest); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.w-program__media img.lp-program__photo { width: 100%; height: 100%; object-fit: cover; }
.w-program__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.w-program__level { font-family: var(--font-norwester); text-transform: uppercase; font-size: var(--fs-h2); line-height: 1; letter-spacing: 0.02em; color: var(--ink); }
.w-program__lockup { height: 84px; display: flex; align-items: center; justify-content: flex-start; }
.w-program__lockup img { max-width: 100%; max-height: 58px; width: auto; height: auto; }
/* The REC lockup is near-square; let it fill the lockup band instead of sitting small. */
.w-program__lockup img.lp-lockup-rec { max-height: 84px; }
.w-program__desc { font-family: var(--font-ui); font-size: var(--fs-callout); line-height: var(--lh-body); color: var(--ink-muted); }
.w-program__foot { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.w-program__foot .w-btn { width: 100%; box-sizing: border-box; }

/* Ukurikira — raw / street mood */
.w-program--raw { background: var(--forest); border: 1px solid var(--gold-600); border-radius: var(--r-xs); box-shadow: none; color: var(--cream); }
.w-program--raw:hover { transform: none; border-color: var(--gold); box-shadow: none; }
.w-program--raw .w-program__media { background: var(--deep-forest); }
.w-program--raw .w-program__level { color: var(--cream); }
.w-program--raw .w-program__desc { color: var(--forest-200); }
.w-program--raw .w-eyebrow { color: var(--gold); letter-spacing: 0.14em; }

/* ============================================================
   REGISTER + CONTACT bands
   ============================================================ */
.lp-band { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.lp-band__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.lp-phone {
  display: inline-flex; align-items: center; gap: 10px;
  font: var(--fw-semibold) 16px var(--font-ui); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 12px 22px;
}
.lp-phone, .lp-phone:hover { color: var(--ink); }
.lp-phone svg { color: var(--gold); }
.lp-socials { display: flex; gap: 12px; margin-top: 6px; }
.lp-social {
  width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
}
.lp-social:hover { color: var(--ink); border-color: var(--line-strong); }

/* ============================================================
   EVENTS — calendar + upcoming list
   ============================================================ */
.lp-events__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.lp-cal { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px 26px 22px; }
.lp-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lp-cal__month { font-family: var(--font-norwester); text-transform: uppercase; letter-spacing: 0.02em; font-size: 26px; color: var(--ink); }
.lp-cal__nav { display: flex; gap: 8px; }
.lp-cal__navbtn {
  width: 38px; height: 38px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--white); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lp-cal__navbtn:hover { border-color: var(--line-strong); color: var(--ink); }
.lp-cal__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 2px; }
.lp-cal__wd { text-align: center; font: var(--fw-bold) 11px var(--font-ui); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); padding: 4px 0; }
.lp-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.lp-cal__cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.lp-cal__day { font: var(--fw-semibold) 14px var(--font-ui); color: var(--ink-soft); }
.lp-cal__day--event {
  width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--gold); color: var(--deep-forest);
  display: flex; align-items: center; justify-content: center; font: var(--fw-bold) 14px var(--font-ui); box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.lp-cal__day--event:hover { filter: brightness(0.94); }
button.lp-cal__day { border: 0; padding: 0; cursor: pointer; font-family: var(--font-ui); }
button.lp-cal__day:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Days holding more than one event carry a dot per program, under the pill. */
.lp-cal__cell { padding-bottom: 6px; }
.lp-cal__dots { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; pointer-events: none; }
.lp-cal__dot { width: 4px; height: 4px; border-radius: var(--r-pill); background: var(--gold); }
.lp-cal__dot--ukurikira { background: var(--deep-forest); }
.lp-cal__dot--rec       { background: var(--gold); }
.lp-cal__dot--house     { background: var(--sand-300); }

/* Day-detail popover (hover / click) */
.lp-cal__body { position: relative; }
.lp-cal__pop {
  position: absolute; z-index: 20; width: 250px; max-width: 100%;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
/* Only the inner box scrolls, so the arrow (which sits outside it) is never clipped. */
.lp-cal__pop-inner { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; overflow-y: auto; border-radius: inherit; }
.lp-cal__pop[hidden] { display: none; }
.lp-cal__pop-arrow {
  position: absolute; bottom: -6px; width: 10px; height: 10px; margin-left: -5px;
  background: var(--white); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.lp-cal__pop--below .lp-cal__pop-arrow { bottom: auto; top: -6px; transform: rotate(225deg); }
.lp-cal__pop-date { font: var(--fw-bold) 11px var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.lp-cal__pop-ev { display: flex; flex-direction: column; gap: 4px; }
.lp-cal__pop-ev + .lp-cal__pop-ev { padding-top: 12px; border-top: 1px dashed var(--line); }
.lp-cal__pop-title { font: var(--fw-bold) 14px var(--font-ui); color: var(--ink); }
.lp-cal__pop-meta { font: 13px var(--font-ui); color: var(--ink-muted); }
.lp-cal__pop-link { font-size: 13px; align-self: flex-start; }
/* Program colour code (Ukurikira = brand green, The REC = gold, The House League = cream) */
.lp-cal__day--ukurikira { background: var(--deep-forest); color: var(--cream); }
.lp-cal__day--rec       { background: var(--gold); color: var(--deep-forest); }
.lp-cal__day--house     { background: var(--cream); color: var(--deep-forest); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Program filters — also the colour legend, so they still read correctly without JS. */
.lp-cal__filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.lp-cal__chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white);
  font-family: var(--font-ui); transition: border-color 120ms ease, background 120ms ease, opacity 120ms ease;
}
.lp-cal__chip:hover { border-color: var(--line-strong); }
.lp-cal__chip[aria-pressed="true"] { border-color: var(--line-strong); background: var(--sand-50); }
.lp-cal__chip.is-off { opacity: 0.45; }
.lp-cal__chip.is-off .lp-cal__legend-label { text-decoration: line-through; }
.lp-cal__chip--all { font: var(--fw-bold) 12px var(--font-ui); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.lp-cal__legend-dot { width: 12px; height: 12px; border-radius: var(--r-pill); background: var(--gold); flex-shrink: 0; }
.lp-cal__legend-dot--ukurikira { background: var(--deep-forest); }
.lp-cal__legend-dot--rec       { background: var(--gold); }
.lp-cal__legend-dot--house     { background: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lp-cal__legend-label { font: var(--fw-semibold) 12px var(--font-ui); color: var(--ink-muted); }

.lp-upcoming { display: flex; flex-direction: column; gap: 14px; }
.lp-upcoming__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lp-upcoming__count { font: var(--fw-semibold) 12px var(--font-ui); color: var(--ink-muted); }
.lp-upcoming__list { display: flex; flex-direction: column; gap: 14px; }
.lp-upcoming__pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.lp-upcoming__pager[hidden] { display: none; }
.lp-upcoming__pager .lp-cal__navbtn { width: 34px; height: 34px; }
.lp-upcoming__pager .lp-cal__navbtn:disabled { opacity: 0.35; cursor: default; }
.lp-upcoming__pager .lp-cal__navbtn:disabled:hover { border-color: var(--line); color: var(--ink-soft); }
.lp-upcoming__range { font: var(--fw-semibold) 13px var(--font-ui); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.lp-upcoming__reset { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--action); text-decoration: underline; }
.lp-event { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.lp-event__date { flex-shrink: 0; width: 56px; text-align: center; background: var(--deep-forest); border-radius: var(--r-sm); padding: 9px 0; }
.lp-event__d { font: var(--fw-heavy) 20px var(--font-ui); color: var(--cream); line-height: 1; font-variant-numeric: tabular-nums; }
.lp-event__mo { font: var(--fw-bold) 10px var(--font-ui); letter-spacing: 0.08em; color: var(--gold-200); margin-top: 3px; }
/* Date badge tinted to match the calendar colour code */
.lp-event__date--ukurikira { background: var(--deep-forest); }
.lp-event__date--rec { background: var(--gold); }
.lp-event__date--rec .lp-event__d, .lp-event__date--rec .lp-event__mo { color: var(--deep-forest); }
.lp-event__date--house { background: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lp-event__date--house .lp-event__d { color: var(--deep-forest); }
.lp-event__date--house .lp-event__mo { color: var(--ink-muted); }
.lp-event__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-event__title { font: var(--fw-bold) 15px var(--font-ui); color: var(--ink); }
/* Pillar (which programme calendar the event came from) */
.lp-event__pillar { display: inline-flex; align-items: center; gap: 6px; font: var(--fw-bold) 11px var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.lp-event__pillar .lp-cal__legend-dot { width: 8px; height: 8px; }
.lp-event__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.lp-event__when { font: var(--fw-semibold) 13px var(--font-ui); color: var(--ink-soft); }
.lp-event__venue { font: 14px var(--font-ui); color: var(--ink-muted); }
.lp-event__link { font-size: 13px; margin-top: 2px; align-self: flex-start; }
.lp-events__empty { font-family: var(--font-ui); font-size: var(--fs-callout); color: var(--ink-muted); padding: 8px 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer { background: var(--deep-forest); color: var(--cream); padding: 64px 56px 30px; }
.lp-footer__inner { max-width: 1168px; margin: 0 auto; }
.lp-footer__top { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--forest-500); }
.lp-footer__brandrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lp-footer__mark { height: 64px; width: auto;
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(1px 1px 0 #fff) drop-shadow(-1px -1px 0 #fff) drop-shadow(1px -1px 0 #fff) drop-shadow(-1px 1px 0 #fff); }
.lp-footer__wordmark { height: 34px; width: auto; }
.lp-footer__blurb { margin: 0; font: 15px/1.55 var(--font-ui); color: var(--forest-200); max-width: 34ch; }
.lp-footer__socials { display: flex; gap: 12px; margin-top: 20px; }
.lp-footer__social { width: 38px; height: 38px; border-radius: var(--r-pill); border: 1px solid var(--forest-500); display: flex; align-items: center; justify-content: center; color: var(--cream); }
.lp-footer__social:hover { color: var(--cream); background: rgba(215,204,179,0.08); }
.lp-footer__col { display: flex; flex-direction: column; gap: 12px; }
.lp-footer__h { font: var(--fw-bold) 13px var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-200); margin-bottom: 4px; }
.lp-footer__link { font: 15px var(--font-ui); color: var(--forest-200); }
.lp-footer__link:hover { color: var(--cream); }
.lp-footer__meta { font: 15px var(--font-ui); color: var(--forest-200); }
.lp-footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font: 13px var(--font-ui); color: var(--forest-300); flex-wrap: wrap; }

/* ============================================================
   ABOUT PAGE (TCL-560) — full story layout, recreated from the
   approved wireframe (design_handoff_tcl_about_page). Reuses the
   design-system .w-* components; adds the grid + section pieces the
   About page introduces. All values come from tokens.css.
   ============================================================ */
.lp-hero--about { min-height: clamp(560px, 82vh, 840px); }

/* Active nav link (current page) — gold underline per the wireframe. */
.w-nav__link[aria-current="page"] { color: var(--cream); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* Grid utilities */
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.w-grid--2 { grid-template-columns: 1fr 1fr; }
.w-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Media placeholder — shipped "photo coming" state. The wireframe's dashed hatch +
   pixel-dimension captions are prototype-only; this is the clean forest slot that
   swaps 1:1 for real photography. */
.lp-ph {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; padding: 24px; text-align: center;
  background: var(--forest); color: var(--sand-100); border-radius: var(--r-lg); overflow: hidden;
}
.lp-ph svg { color: var(--gold-200); opacity: 0.9; }
.lp-ph__label { font: var(--fw-bold) 12px/1.3 var(--font-ui); letter-spacing: 0.09em; text-transform: uppercase; }
.lp-ph--portrait { aspect-ratio: 4 / 5; }
.lp-ph--fill { position: absolute; inset: 0; border-radius: 0; }

/* Story narrative column (body paragraphs under the section head) */
.lp-about__prose { display: flex; flex-direction: column; gap: 16px; }
.lp-about__prose p { margin: 0; font-family: var(--font-ui); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-soft); text-wrap: pretty; }

/* Stats band */
.lp-about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-8); text-align: center; }
.lp-about-stat__num { font: var(--fw-heavy) clamp(38px, 5vw, 64px)/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--gold); }
.lp-about-stat__label { font: var(--fw-semibold) 12px/1.4 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand-100); margin-top: 8px; }

/* Feature blocks — "three ways in" */
.w-feature { display: flex; flex-direction: column; gap: 10px; padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.w-feature__kicker { font-family: var(--font-norwester); text-transform: uppercase; font-size: var(--fs-h2); line-height: 1; letter-spacing: 0.02em; color: var(--gold); }
.w-feature__title { margin: 0; font-family: var(--font-norwester); text-transform: uppercase; font-size: var(--fs-subtitle); line-height: 1.05; letter-spacing: 0.02em; color: var(--ink); }
.w-feature__body { margin: 0; font: var(--fs-callout)/var(--lh-body) var(--font-ui); color: var(--ink-muted); }

/* Crew card — reuses .w-program; profile cards don't lift on hover. */
.w-program--profile:hover { transform: none; box-shadow: var(--shadow-sm); }

/* Gallery mosaic — "nights in Kigali" */
.lp-about-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-4); height: 520px; }
.lp-about-gallery .lp-ph { border-radius: var(--r-lg); height: 100%; }
.lp-about-gallery__tall { grid-row: span 2; }
.lp-about-gallery__wide { grid-column: span 2; }

/* ============================================================
   RESPONSIVE — mobile-first scale-down. Breakpoints mirror
   --bp-md 768 / --bp-lg 1024.
   ============================================================ */
@media (max-width: 1023px) {
  .lp-programs__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-events__grid { grid-template-columns: 1fr; }
  .lp-footer__top { grid-template-columns: 1fr 1fr; }

  .w-grid, .w-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .lp-about-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .lp-about-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .lp-about-gallery__tall { grid-row: span 1; }
  .lp-about-gallery__wide { grid-column: span 2; }
  .lp-about-gallery .lp-ph { aspect-ratio: 4 / 3; }
}

@media (max-width: 767px) {
  .w-nav { height: 72px; padding: 0 18px; gap: 12px; }
  .w-nav__links, .w-nav__tag { display: none; }
  .w-nav__toggle { display: inline-flex; }
  .w-nav__mark { height: 46px; }
  .w-nav__wordmark { height: 24px; }
  .w-nav__mobile { top: 72px; }
  .admin-bar .w-nav__mobile { top: calc(72px + 46px); }

  .lp-hero { min-height: 560px; }
  .lp-hero__inner { padding: 0 20px 32px; }
  .lp-hero__content { gap: 14px; }
  .lp-hero__content .w-hero-title { font-size: 38px; line-height: 1.02; }
  .lp-hero__cta { flex-direction: column; }
  .lp-hero__cta .w-btn { width: 100%; }

  .lp-impact { padding: 56px 20px; }
  .lp-impact__num, .lp-impact__label { font-size: 44px; }

  .lp-section { padding: 52px 20px; }
  .lp-section__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .w-section-title { font-size: 28px; line-height: 1.05; }
  .lp-programs__grid { grid-template-columns: 1fr; gap: 18px; }

  .lp-band__actions { flex-direction: column; align-items: stretch; }
  .lp-band__actions .w-btn, .lp-phone { width: 100%; box-sizing: border-box; justify-content: center; }

  .w-grid, .w-grid--2, .w-grid--4 { grid-template-columns: 1fr; }
  .lp-about-stats { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .lp-about-gallery { grid-template-columns: 1fr; }
  .lp-about-gallery__wide { grid-column: span 1; }

  .lp-cal { padding: 18px 18px 16px; }
  .lp-cal__month { font-size: 22px; }
  .lp-cal__chip { padding: 5px 10px; }
  .lp-cal__legend-label { font-size: 11px; }
  .lp-cal__pop { width: 210px; }
  .lp-cal__pop-inner { padding: 12px 14px; }
  .lp-cal__day--event { width: 32px; height: 32px; }

  .lp-footer { padding: 44px 20px 26px; }
  .lp-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .lp-footer__bar { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================================
   MINIMAL FALLBACK (index.php placeholder) — self-contained so it
   renders correctly independent of the light body background.
   ============================================================ */
.tcl-fallback {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 20px; padding: 64px 24px; max-width: 880px; margin: 0 auto; width: 100%;
  background: var(--deep-forest); color: var(--cream);
}
.tcl-fallback h1 { font-family: var(--font-norwester); text-transform: uppercase; font-size: clamp(40px, 8vw, 88px); line-height: 1.02; margin: 0; }
.tcl-fallback p { font-size: clamp(16px, 2.5vw, 20px); color: var(--on-brand); max-width: 52ch; margin: 0; }

/* ============================================================
   LEGAL PAGES (TCL-561) — Privacy Policy / Terms of Service /
   Disclaimer. Long-form prose on paper, under a forest title band.
   The copy itself carries no classes, so everything here targets
   bare tags inside .lp-legal__prose.
   ============================================================ */

/* .w-nav is a fixed overlay tuned for the landing hero, and landing.js only makes it
   solid past an 8px scroll. Legal pages have no hero, so they need it solid at rest. */
.w-nav--solid { background: rgba(10,48,43,0.97); border-bottom-color: rgba(215,204,179,0.20); }

.lp-legal__hero {
  background: var(--deep-forest); color: var(--cream);
  padding: calc(84px + var(--s-12)) 0 var(--s-10);
}
.lp-legal__hero .w-eyebrow { color: var(--gold-200); display: block; margin-bottom: var(--s-3); }
.lp-legal__title {
  font-family: var(--font-norwester);
  font-size: var(--fs-display-lg); line-height: var(--lh-display-lg);
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.015em;
  color: var(--cream); margin: 0; text-wrap: balance;
}

.lp-legal { background: var(--paper); padding-block: var(--s-12) var(--section-y); }

/* Readable measure for long-form legal text. */
.lp-legal__prose { max-width: 72ch; }
.lp-legal__prose > *:first-child { margin-top: 0; }
.lp-legal__prose > *:last-child { margin-bottom: 0; }
.lp-legal__prose p,
.lp-legal__prose li {
  font-family: var(--font-ui); font-size: var(--fs-body); line-height: 1.65;
  color: var(--ink-soft); text-wrap: pretty;
}
.lp-legal__prose p { margin: 0 0 var(--s-4); }
.lp-legal__prose h2 {
  font-family: var(--font-ui); font-size: var(--fs-subtitle); line-height: 1.25;
  font-weight: var(--fw-bold); letter-spacing: -0.01em; color: var(--ink);
  margin: var(--s-10) 0 var(--s-4); text-wrap: balance;
}
.lp-legal__prose h3 {
  font-family: var(--font-ui); font-size: var(--fs-body); line-height: 1.35;
  font-weight: var(--fw-bold); color: var(--ink);
  margin: var(--s-6) 0 var(--s-3);
}
.lp-legal__prose ul,
.lp-legal__prose ol { margin: 0 0 var(--s-4); padding-left: 1.35em; }
.lp-legal__prose li { margin-bottom: var(--s-2); }
.lp-legal__prose li:last-child { margin-bottom: 0; }
.lp-legal__prose strong { font-weight: var(--fw-bold); color: var(--ink); }
.lp-legal__prose a { color: var(--gold-600); text-decoration: underline; text-underline-offset: 2px; }
.lp-legal__prose a:hover { color: var(--gold); }

@media (max-width: 767px) {
  .lp-legal__hero { padding: calc(84px + var(--s-8)) 0 var(--s-8); }
  .lp-legal { padding-block: var(--s-8) var(--s-12); }
  .lp-legal__prose h2 { margin-top: var(--s-8); }
}

/* Footer legal row (TCL-561) — sits between the footer columns and the copyright bar. */
.lp-footer__legal { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 22px; }
.lp-footer__legallink { font: 14px var(--font-ui); color: var(--forest-200); }
.lp-footer__legallink:hover { color: var(--cream); }
.lp-footer__legal + .lp-footer__bar { padding-top: 16px; }
