/* ============================================================================
   CyberKnights Robotics Inc.: design system

   Palette carried over from the Divi site it replaces, so the swap reads as the
   same site rather than a redesign: a near-black violet field (#0F0122), a
   violet glow (#793AFF) behind the hero, and the cyan the isometric initiative
   icons are drawn in. Orbitron for display type, Open Sans for body copy, both
   self-hosted because the CSP forbids external assets.
   ========================================================================== */

/* ---- Fonts (self-hosted; strict CSP, no external assets) -----------------
   Both families are variable woff2 files covering their whole weight range in
   one download, so the four @font-face rules a static family would need become
   two files. Latin subset only; see public/assets/fonts/CREDITS.md.

   DISPLAY FACE: the old site's CSS asked for 'Nasalization' but never shipped
   an @font-face for it, so visitors were actually reading Helvetica. Orbitron
   is here instead because it is SIL OFL and can live in a public repository;
   Nasalization's own metadata says it is not freely distributable. If the
   organisation holds a licence, drop the file into public/assets/fonts/ and
   change the src below plus the <link rel="preload"> in the layout. Nothing
   else references the family by name. */
@font-face {
  font-family: 'Orbitron';
  src: url('/assets/fonts/orbitron-latin-var.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/open-sans-latin-var.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/open-sans-latin-var-italic.woff2') format('woff2');
  font-weight: 300 800; font-style: italic; font-display: swap;
}

/* ---- Design tokens -------------------------------------------------------
   The site is dark violet by default. Light sections (.section--light) and
   .theme-light re-assign the same surface tokens, so every component (cards,
   forms, tables, the FAQ accordion) re-themes automatically rather than needing
   its own light-mode rules. */
:root {
  /* Brand */
  --void:        #0F0122;   /* page field, straight from the old hero */
  --void-2:      #150330;
  --void-3:      #1C063F;
  --violet:      #793AFF;   /* the hero glow */
  --violet-lift: #9B6BFF;   /* violet that clears 4.5:1 as text on --void */
  --violet-deep: #4A1FA8;   /* violet dark enough to read on white */
  --cyan:        #2FE0D0;   /* the icon accent */
  --cyan-deep:   #0A6B62;   /* AA-compliant cyan text on light surfaces */

  /* Surfaces (dark defaults; light sections override) */
  --paper:   var(--void);
  --paper-2: var(--void-2);
  --paper-3: var(--void-3);
  --card:    #1A0838;
  --line:    rgba(255,255,255,.13);
  --line-2:  rgba(255,255,255,.24);
  --field-bg: rgba(255,255,255,.06);
  /* Form-control outline. Kept distinct from --line-2 so inputs can meet the
     WCAG 1.4.11 3:1 non-text contrast minimum without heavying every card. */
  --field-border: rgba(255,255,255,.42);

  /* Ink (on dark) */
  --ink:     #F4F0FB;
  --ink-2:   #D3C8E6;
  --ink-3:   #A99BC2;   /* muted: still >= 4.5:1 on --void */
  --heading: #ffffff;

  /* Semantic */
  --accent:      var(--violet);        /* decorative accent (marks, borders) */
  --accent-ink:  #ffffff;              /* text ON a violet surface */
  --accent-text: var(--violet-lift);   /* accent-colored TEXT on this surface */
  --link:        var(--cyan);
  --focus:       var(--cyan);
  --ok:  #6FE3C4;  --err: #FFA8B4;     /* status text on dark */

  /* Buttons (neutral variant re-themed per surface) */
  --btn-neutral:     #2A0F55;
  --btn-neutral-ink: #ffffff;

  /* Type */
  --font-display: 'Orbitron', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Open Sans', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;

  /* Radii */
  --r-sm: 4px;  --r: 6px;  --r-lg: 12px;  --r-xl: 18px;  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(4, 0, 12, .40);
  --shadow:    0 16px 38px -16px rgba(4, 0, 12, .70);
  --shadow-lg: 0 36px 68px -26px rgba(2, 0, 8, .80);

  /* Layout */
  --container: 1140px;
  --gap: clamp(1rem, 2.4vw, 1.6rem);
  --header-h: 4.5rem;
}

/* Light surfaces: same component vocabulary, flipped tokens. */
.section--light, .theme-light {
  --paper:   #F7F5FB;
  --paper-2: #EDE8F6;
  --paper-3: #E4F5F3;
  --card:    #ffffff;
  --line:    #DFD8EC;
  --line-2:  #C4B8DC;
  --field-bg: #ffffff;
  --field-border: #8579A3;

  --ink:     #22103F;
  --ink-2:   #3D2A5C;
  --ink-3:   #5C4C79;
  --heading: #1A0838;

  --accent-text: var(--violet-deep);
  --link:        var(--violet-deep);
  --focus:       var(--violet-deep);
  --ok:  #0B6B52;  --err: #B3282C;

  --btn-neutral:     var(--void-3);
  --btn-neutral-ink: #ffffff;

  --shadow-sm: 0 2px 8px rgba(34, 16, 63, .09);
  --shadow:    0 14px 34px -14px rgba(34, 16, 63, .24);
  --shadow-lg: 0 34px 64px -24px rgba(34, 16, 63, .32);

  color: var(--ink);
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background-color: #0F0122; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: #fff; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:not(.btn):not(.nav-link):not(.plain):hover { color: var(--accent-text); }

h1, h2, h3 {
  /* A long unbreakable token must wrap rather than widen the document;
     body's overflow-x:hidden hides that, it does not prevent it. */
  overflow-wrap: break-word;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.16;
  color: var(--heading);
  margin: 0 0 .5em;
  letter-spacing: .02em;
}
h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.35rem); }
p  { margin: 0 0 1rem; }
strong, b { font-weight: 700; }

/* Display face utility: wordmark, nav brand, hero titles. Never body copy. */
.font-display { font-family: var(--font-display); font-weight: 500; letter-spacing: .02em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cyan); color: #08201E; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container-wide { max-width: 1300px; }
.container-narrow { max-width: 760px; }

.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section-sm { padding-block: clamp(2.2rem, 4vw, 3.4rem); }
.section--light { background: #F7F5FB; }
.section--deep { background: var(--void-2); }
.section--panel { background: var(--void-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-weight: 700;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-text);
}
/* Chevron glyph echoing the sword in the 195 mark, drawn in currentColor. */
.eyebrow::before {
  content: ""; flex: none; width: .9em; height: .9em;
  background: currentColor;
  clip-path: polygon(0 0, 55% 50%, 0 100%, 30% 100%, 85% 50%, 30% 0);
}

.lede { font-size: clamp(1.08rem, 1.4vw, 1.26rem); color: var(--ink-2); max-width: 60ch; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-3); }
.text-accent { color: var(--accent-text); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--btn-neutral); --btn-fg: var(--btn-neutral-ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  letter-spacing: .06em; text-transform: uppercase;
  line-height: 1; text-align: center; white-space: nowrap;
  padding: 1.05em 1.6em .95em; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bd); cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
/* Primary action: violet. */
.btn-primary { --btn-bg: var(--violet); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: #8A52FF; color: #fff; }
/* Donate and other high-intent actions: cyan, the one place it goes solid. */
.btn-accent { --btn-bg: var(--cyan); --btn-fg: #08201E; }
.btn-accent:hover { --btn-bg: #55EFE1; color: #08201E; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); box-shadow: none; }
.btn-ghost:hover { --btn-bd: var(--violet); color: var(--accent-text); }
.btn-lg { font-size: 1rem; padding: 1.15em 2em 1.05em; }
.btn-sm { font-size: .8rem; padding: .8em 1.1em .7em; min-height: 2.5rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.center .btn-row { justify-content: center; }

/* ---- Chips / badges (self-contained colors, legible on any surface) ------ */
.badge {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .38em .8em; border-radius: var(--r-sm);
  background: #EDE8F6; color: #3D2A5C; border: 1.5px solid #C4B8DC;
}
.badge--soon { background: #E4F5F3; color: #0A5B54; border-color: #A8E2DA; }

.pill {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; font-size: .82rem;
  padding: .34em .8em; border-radius: var(--r-pill);
  background: var(--card); border: 1.5px solid var(--line-2); color: var(--ink-2);
}

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.3rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Stat tile */
.stat { text-align: center; }
.stat .v {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05;
  color: var(--accent-text); font-variant-numeric: tabular-nums;
}
.stat .k { font-weight: 600; color: var(--ink-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-top: .5rem; }

/* ---- Initiative cards (home) --------------------------------------------- */
.init { display: flex; flex-direction: column; gap: .7rem; height: 100%; }
.init__icon { width: 4rem; height: 4rem; flex: none; }
.init h3 { margin: 0; }
.init__ages {
  font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); margin: -.3rem 0 0;
}
.init p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.init__link { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .9rem; color: var(--accent-text); }
.init__link::after { content: " \2192"; }

/* ---- Board (about) -------------------------------------------------------- */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--gap); }
.board__card { text-align: center; }
.board__photo {
  width: 8.5rem; height: 8.5rem; border-radius: 50%; object-fit: cover;
  margin: 0 auto .9rem; border: 2px solid var(--violet); background: var(--paper-2);
}
.board__name { font-family: var(--font-display); font-size: 1.1rem; color: var(--heading); margin: 0; }
.board__role { color: var(--ink-3); font-size: .9rem; margin: .2rem 0 0; }

/* ---- Announcement bar (layout.php, above the header) --------------------- */
.announce {
  background: var(--cyan);
  color: #08201E; text-align: center; font-weight: 600; font-size: .92rem;
  padding: .55rem 1rem; line-height: 1.45;
}
.announce a { color: #08201E; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--void) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: #fff;
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand__word {
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  letter-spacing: .06em; white-space: nowrap; line-height: 1.15;
}
.brand:hover .brand__word { color: var(--cyan); }
.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav-link {
  font-weight: 600; font-size: .95rem; color: var(--ink-2);
  padding: .55rem .75rem; border-radius: var(--r-sm);
  transition: color .15s, box-shadow .15s;
}
.nav-link:hover { color: #fff; box-shadow: inset 0 -2px 0 var(--violet); }
.nav-link[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--cyan); }
.nav__cta { margin-left: .6rem; }
.nav__cart { display: inline-flex; align-items: center; gap: .35rem; }
.nav__cart svg { width: 1.3rem; height: 1.3rem; flex: none; }
.nav__cart-badge {
  display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .35em;
  border-radius: var(--r-pill); background: var(--cyan); color: #08201E;
  font-size: .72rem; font-weight: 700;
}
.nav-toggle {
  display: none; margin-left: auto; width: 2.8rem; height: 2.8rem;
  border: 1.5px solid rgba(255,255,255,.28); background: transparent;
  border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 1.2rem; height: 2px; background: #fff;
  border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: .2rem; margin: 0; padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    background: var(--void-2); border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow-lg); transform: translateY(-140%); transition: transform .28s ease;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  /* Keyboard fallback when JS is unavailable: focusing a link reveals the menu. */
  html:not(.js) .nav:focus-within { transform: translateY(0); }
  /* With JS active, pull the closed menu out of the tab order + a11y tree so it
     matches aria-expanded="false"; visibility delayed so the close still animates. */
  html.js .nav { visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
  html.js .nav[data-open="true"] { visibility: visible; transition: transform .28s ease, visibility 0s; }
  .nav-link { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav-link:hover, .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); }
  .nav__cta { margin: .6rem 0 0; }
  .nav .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

/* ---- Hero ----------------------------------------------------------------- */
/* The old site's hero: a tiled circuit grid under a violet radial glow, on the
   near-black violet field. Both layers are self-hosted images or gradients, so
   nothing here needs an external request. */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at right, rgba(121,58,255,.62) 0%, rgba(15,1,34,0) 72%),
    url('/assets/img/grid-bg.png') center bottom repeat,
    var(--void);
  color: #fff;
  padding-block: clamp(3.2rem, 8vw, 6.5rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero > .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3.4rem); align-items: center;
}
.hero__lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: #E0D6F2; max-width: 54ch; }
.hero__logo { width: min(320px, 78%); margin-inline: auto; filter: drop-shadow(0 10px 40px rgba(121,58,255,.55)); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  /* The logo leads on a phone, where the two-column split collapses. */
  .hero__media { order: -1; }
  .hero__logo { width: min(210px, 55%); }
}

/* ---- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 1rem; position: relative; }
.field label { display: block; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .45rem; }
.input, .textarea, .select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8em 1em; background: var(--field-bg); border: 1.5px solid var(--field-border); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.select option { color: #22103F; background: #fff; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 24%, transparent);
}
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .82rem; color: var(--ink-3); margin: .7rem 0 0; }
.form-msg { margin-top: .8rem; font-weight: 700; min-height: 1.4em; }
.form-msg.is-ok  { color: var(--ok); }
.form-msg.is-err { color: var(--err); }

/* Callout panel */
.panel {
  background:
    radial-gradient(120% 130% at 100% 0%, color-mix(in srgb, var(--violet) 24%, transparent), transparent 58%),
    var(--card);
  border: 1.5px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow);
}

/* ---- Alerts (self-contained colors) --------------------------------------- */
.alert { padding: .9rem 1.1rem; border-radius: var(--r); font-weight: 600; border: 1.5px solid; }
.alert-ok  { background: #E2F6F0; color: #0B5F49; border-color: #ADE2D3; }
.alert-err { background: #FBEAEC; color: #A32234; border-color: #EFC6CC; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer {
  background: #0A0018; color: #B9A9D2;
  border-top: 2px solid var(--violet);
  padding-block: clamp(2.6rem, 5vw, 4rem) 2rem;
}
.site-footer a { color: #C7B9DE; }
.site-footer a:hover { color: var(--cyan); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #9686B0; max-width: 40ch; margin-top: .9rem; font-size: .95rem; }
.footer-email { font-weight: 700; }
.footer-col h2 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #8877A4; margin: 0 0 .9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { font-weight: 600; font-size: .95rem; }
.footer-addr { font-style: normal; font-size: .92rem; line-height: 1.7; color: #9686B0; }
/* Candid/GuideStar: a link, not their embedded widget. The CSP blocks
   third-party scripts, and a transparency seal is worth exactly as much as the
   profile it points at. */
.footer-seal {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem;
  border: 1.5px solid rgba(255,255,255,.20); border-radius: var(--r);
  padding: .5rem .8rem; font-size: .82rem; font-weight: 600; line-height: 1.3;
}
.footer-seal::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem; background: var(--cyan);
  clip-path: polygon(50% 0, 100% 25%, 100% 62%, 50% 100%, 0 62%, 0 25%);
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.10);
  color: #8877A4; font-size: .88rem;
}
.footer-social { display: flex; gap: 1rem; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---- FAQ accordion: native <details>, no JS (CSP-safe) --------------------- */
.faq { display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--ink); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent-text); font-weight: 700; font-size: 1.5rem; line-height: 1; }
/* Multiplication sign, not a dash: U+2013 is a banned character (see CLAUDE.md)
   and a CSS escape still renders one to the visitor. */
.faq details[open] summary::after { content: "\00d7"; }
.faq details > div, .faq details > p { color: var(--ink-2); max-width: 72ch; }
.faq details > p { margin: 0; padding: 0 1.3rem 1.2rem; }

/* ---- Events ---------------------------------------------------------------- */
.event { display: grid; grid-template-columns: 190px 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.event__img { width: 100%; border-radius: var(--r-lg); background: var(--paper-2); }
.event__when { font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin: 0 0 .3rem; }
.event__where { color: var(--ink-3); font-size: .92rem; margin: 0 0 .7rem; }
.event h3 { margin: 0 0 .35rem; }
.event--past { opacity: .78; }
.event--past .event__when { color: var(--ink-3); }
@media (max-width: 620px) {
  .event { grid-template-columns: 1fr; }
  .event__img { max-width: 190px; }
}

/* ---- Prose (long form) ------------------------------------------------------ */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Utilities -------------------------------------------------------------------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2.5rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.hide{display:none!important}
.flow > * + * { margin-top: clamp(2.4rem, 5vw, 4rem); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- Motion ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
  .btn:active { transform: none; }
}

/* ---- Mobile: collapse every inline 2-col grid to a single column ------------------- */
/* Fixed inline grid-template-columns cannot be overridden by a class breakpoint,
   so this catch-all keeps split sections (and any nested grids) from overflowing. */
@media (max-width: 820px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* Inline "did you mean ...?" email hint (site.js, non-blocking).
   It stays IN FLOW and its space is permanently reserved (visibility, not
   display), which satisfies both constraints at once: showing it never reflows
   the form (so it cannot shove the submit button out from under a click) and it
   never sits on top of the next field's label, which an absolutely-positioned
   version did at narrow widths. */
.field-hint {
  margin: .3rem 0 0; font-size: .85rem; line-height: 1.35; color: var(--ink-2);
  min-height: 1.35em; visibility: hidden;
}
.field-hint.is-shown { visibility: visible; }
.field-hint .link-btn {
  background: none; border: 0; font: inherit; font-weight: 700;
  /* Padding gives the only way to accept the correction a real tap target. */
  padding: .55em .15em; margin: -.55em 0;
  color: var(--accent-text); text-decoration: underline; cursor: pointer;
}
.field-hint .link-btn:hover { color: var(--link); }

/* ---- Mobile header cart (visible only while the nav is off-canvas) -------- */
.header-cart { display: none; }
@media (max-width: 940px) {
  .header-cart {
    display: grid; place-items: center; position: relative;
    width: 2.75rem; height: 2.75rem; margin-left: auto; margin-right: .25rem;
    color: #fff; border-radius: 10px;
  }
  .header-cart svg { width: 1.4rem; height: 1.4rem; }
  .header-cart:hover, .header-cart:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
  .header-cart__badge {
    position: absolute; top: .25rem; right: .2rem;
    min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem;
    display: grid; place-items: center;
    background: var(--cyan); color: #08201E;
    font-size: .7rem; font-weight: 700; line-height: 1; border-radius: 999px;
  }
  /* The toggle no longer needs to claim the free space. */
  .site-header__inner .nav-toggle { margin-left: 0; }
}

/* CTA pairs: once they wrap, keep the buttons equal width and aligned instead of
   two staggered pills of different widths. */
@media (max-width: 480px) {
  .hero .btn-row,
  .center .btn-row,
  .btn-row[style*="center"] { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn,
  .center .btn-row .btn,
  .btn-row[style*="center"] .btn { width: 100%; }
}
