/* ═══════════════════════════════════════════════════════════════════════════
   GENESIS WAVE AI PLAYBOOK — PORTAL DESIGN SYSTEM
   ───────────────────────────────────────────────────────────────────────────
   Token model follows shadcn/ui (https://ui.shadcn.com/docs/theming):
   semantic surface + "-foreground" pairs, a single --radius that drives the
   radius scale, and a --ring token for focus. Values are the Genesis Wave
   BRAND_CONTEXT.yaml v2 palette. See DESIGN.md for the token map and the
   component recipes (button / card / badge) that mirror shadcn's variants.

   The site has no build step, so the tokens are consumed as plain CSS custom
   properties instead of Tailwind utilities. If the portal ever moves to a
   React/Next stack, the :root block below drops straight into shadcn's
   globals.css unchanged.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────── 1. TOKENS ───────────── */
:root {
  color-scheme: dark;

  /* Brand palette — BRAND_CONTEXT.yaml v2 (names kept for provenance) */
  --gw-deep:      #060A10;
  --gw-waters:    #0B1520;
  --gw-surface:   #111B27;
  --gw-night:     #1E293B;
  --gw-day:       #F8FAFC;
  --gw-evening:   #94A3B8;
  --gw-twilight:  #475569;   /* non-text use only: borders / inputs (2.4:1 as text — fails AA) */
  --gw-light:     #C9A84C;
  --gw-hovering:  #14B8A6;
  --gw-hover-dark:#0F6E56;
  /* Derived: lightest grey that clears 4.5:1 on every dark surface, incl. --gw-night (4.52:1) */
  --gw-muted-text:#8290A6;
  /* Derived: card edge that reads as an edge on --gw-deep without competing with content */
  --gw-edge:      #243041;

  /* shadcn semantic tokens */
  --background:            var(--gw-deep);
  --foreground:            var(--gw-day);
  --card:                  var(--gw-waters);
  --card-foreground:       var(--gw-day);
  --popover:               var(--gw-surface);
  --popover-foreground:    var(--gw-day);
  --primary:               var(--gw-light);
  --primary-foreground:    var(--gw-deep);
  --secondary:             var(--gw-night);
  --secondary-foreground:  var(--gw-day);
  --muted:                 var(--gw-surface);
  --muted-foreground:      var(--gw-muted-text);
  --accent:                var(--gw-hovering);
  --accent-foreground:     var(--gw-deep);
  --destructive:           #F87171;
  --border:                var(--gw-edge);
  --input:                 var(--gw-twilight);
  --ring:                  var(--gw-hovering);

  /* Secondary text that still passes AAA on cards (7.2:1) — the brand "evening" */
  --foreground-secondary:  var(--gw-evening);

  /* Radius scale (shadcn derivation) */
  --radius:     0.625rem;
  --radius-sm:  calc(var(--radius) * 0.6);
  --radius-md:  calc(var(--radius) * 0.8);
  --radius-lg:  var(--radius);
  --radius-xl:  calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);

  /* Type — families */
  --font-display: 'Sora', 'Arial Black', system-ui, sans-serif;
  --font-sans:    'Outfit', Arial, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  /* Type — scale. rem-based so the whole scale follows the fluid root size.
     Floor for any visible text is --text-2xs (11px on a 16px root). */
  --text-2xs:  0.6875rem;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --text-3xl:  clamp(1.75rem,  1.3rem  + 1.6vw, 2.5rem);
  --text-4xl:  clamp(2.125rem, 1.5rem  + 2.6vw, 3.5rem);
  --leading-tight: 1.2;
  --leading-snug:  1.35;
  --leading-body:  1.65;
  --tracking-caps: 0.12em;

  /* Layout */
  --container: 80rem;                       /* 1280px @16 → 1600px @20 on ultrawide */
  --gutter:    clamp(1rem, 4vw, 2.5rem);    /* 16px side gutter on phones, 40px on desktop */
  --measure:   68ch;                        /* reading width cap for prose */
  --nav-h:     4rem;
  --touch:     2.75rem;                     /* 44px — WCAG 2.5.5 / 2.5.8 target size */

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem;  --space-8: 2rem;    --space-10: 2.5rem;
  --space-12: 3rem;   --space-16: 4rem;   --space-20: 5rem;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur:  180ms;
}

/* ───────────── 2. BASE ───────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* Fluid root size: 16px on phones, ~18px on a 1440 laptop, 20px cap on ultrawide.
     Everything in rem scales with it, so wide monitors get larger text, not a thin strip. */
  font-size: clamp(16px, 15px + 0.2vw, 20px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100dvh;
}
img, iframe, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; color: var(--foreground); }
code { font-family: var(--font-mono); }
[hidden] { display: none !important; }

/* Focus — shadcn pattern: ring on :focus-visible only, offset so it never clips */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
::selection { background: var(--primary); color: var(--primary-foreground); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: var(--gutter); z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--primary); color: var(--primary-foreground);
  font-family: var(--font-display); font-weight: 700; border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ───────────── 3. LAYOUT PRIMITIVES ───────────── */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.prose { max-width: var(--measure); }
.prose-center { max-width: var(--measure); margin-inline: auto; }
.stack > * + * { margin-top: var(--space-4); }
.mt-2 { margin-top: var(--space-8); }

/* Eyebrow label — the uppercase mono caption used over every section */
.eyebrow {
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--text-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--primary);
}
.eyebrow.accent { color: var(--accent); }

/* Section heading row: eyebrow text + a hairline that fills the rest */
.section-title {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ───────────── 4. COMPONENTS (shadcn recipes) ───────────── */

/* Button — variants: default (primary) / secondary / outline / ghost / accent;
   sizes: sm / default / lg. Every size clears the 44px touch target. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--touch); padding: var(--space-2) var(--space-5);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  letter-spacing: 0.02em; line-height: 1.2; text-align: center;
  border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.btn-default  { background: var(--primary); color: var(--primary-foreground); }
.btn-default:hover { background: #D9B95E; color: var(--primary-foreground); }
.btn-accent   { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { background: #2DD4BF; color: var(--accent-foreground); }
.btn-secondary{ background: var(--secondary); color: var(--secondary-foreground); border-color: var(--input); font-family: var(--font-sans); font-weight: 600; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline  { background: transparent; color: var(--foreground); border-color: var(--input); font-family: var(--font-sans); font-weight: 600; }
.btn-outline:hover { background: var(--muted); border-color: var(--foreground-secondary); }
.btn-ghost    { background: transparent; color: var(--foreground-secondary); font-family: var(--font-sans); font-weight: 500; }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }

.btn-sm { min-height: 2.5rem; padding-inline: var(--space-4); font-size: var(--text-xs); }
.btn-lg { min-height: 3.25rem; padding-inline: var(--space-8); font-size: var(--text-base); }
.btn-block { width: 100%; }

/* Card */
.card {
  background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.card-body { padding: var(--space-6); }
.card-accent-primary { border-left: 4px solid var(--primary); }
.card-accent-teal    { border-left: 4px solid var(--accent); }
.card-outline-teal   { border-color: var(--accent); }

/* Badge — mono caps chip */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-weight: 500; font-size: var(--text-2xs);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
  padding: 0.2em 0.6em; border-radius: var(--radius-sm); white-space: nowrap;
}
.badge-default { background: var(--primary); color: var(--primary-foreground); }
.badge-secondary { background: var(--secondary); color: var(--foreground-secondary); }
.badge-outline { border: 1px solid var(--input); color: var(--foreground-secondary); }

/* "Needs a Google account" marker — one treatment for every Classroom / Gemini control.
   Inherits the parent's color inside buttons so it stays legible on gold and teal. */
.ga {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-weight: 500; font-size: var(--text-2xs);
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4;
  color: var(--foreground-secondary); border: 1px solid var(--input);
  border-radius: var(--radius-sm); padding: 0.1em 0.45em; margin-left: 0.5em;
  vertical-align: middle; white-space: nowrap;
}
.btn .ga { color: inherit; border-color: currentColor; opacity: .8; }

/* Separator */
.separator { border: 0; border-top: 1px solid var(--border); margin: var(--space-10) 0; }

/* ───────────── 5. NAV ───────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--gw-waters) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: var(--nav-h);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: .35em; min-height: var(--touch);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
  color: var(--foreground); text-decoration: none;
}
.nav-brand:hover { text-decoration: none; color: var(--foreground); }
.nav-brand em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: var(--space-1); list-style: none; }
.nav-links a, .nav-links button {
  display: inline-flex; align-items: center; min-height: 2.5rem;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  font-family: var(--font-sans); font-weight: 500; font-size: var(--text-sm);
  color: var(--foreground-secondary); background: none; border: 0; cursor: pointer;
  white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links button:hover { color: var(--foreground); background: var(--muted); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--foreground); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: var(--touch); height: var(--touch); border-radius: var(--radius-md);
  background: none; border: 1px solid transparent; cursor: pointer; color: var(--foreground);
}
.nav-toggle:hover { background: var(--muted); }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 47.99rem) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--space-1);
    padding: var(--space-3) var(--gutter) var(--space-4);
    background: var(--popover); border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px -16px rgba(0,0,0,.6);
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { min-height: var(--touch); width: 100%; justify-content: flex-start; font-size: var(--text-base); }
}

/* ───────────── 6. PAGES ───────────── */
.page { display: none; }
.page.active { display: block; }

/* ───────────── 7. HERO ───────────── */
.hero {
  text-align: center;
  padding: clamp(var(--space-12), 8vw, var(--space-20)) 0 var(--space-12);
  background: radial-gradient(ellipse at 50% 0%, var(--gw-waters) 0%, var(--background) 70%);
}
.hero .eyebrow { display: block; margin-bottom: var(--space-5); font-family: var(--font-display); font-weight: 600; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-4xl);
  line-height: var(--leading-tight); letter-spacing: -0.02em; color: var(--foreground);
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.hero .sub {
  font-size: var(--text-xl); color: var(--foreground-secondary);
  max-width: 36ch; margin: var(--space-4) auto var(--space-8); text-wrap: balance;
}
.hero-btns { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.hero .note { font-size: var(--text-base); color: var(--muted-foreground); margin-top: var(--space-6); }
.hero .tracks {
  font-size: var(--text-base); color: var(--foreground-secondary);
  max-width: var(--measure); margin: var(--space-6) auto 0;
  border-top: 1px solid var(--border); padding-top: var(--space-5);
}

/* Click-to-reveal class-code panel */
.join-panel { max-width: 36rem; margin: var(--space-6) auto 0; text-align: left; }
.join-panel .join-line { font-size: var(--text-base); color: var(--foreground-secondary); margin-bottom: var(--space-3); }
.join-code {
  font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 500;
  color: var(--primary); background: var(--muted); border: 1px solid var(--input);
  border-radius: var(--radius-sm); padding: 0.1em 0.5em; letter-spacing: 0.06em;
  user-select: all;
}

/* ───────────── 8. HOME SECTIONS ───────────── */
.stack-lead { font-size: var(--text-lg); color: var(--foreground-secondary); margin-bottom: var(--space-5); max-width: var(--measure); }
.stack-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); max-width: var(--measure); }
.stack-list li { position: relative; padding-left: 1.4em; font-size: var(--text-base); color: var(--foreground-secondary); }
.stack-list li::before { content: '\25C6'; position: absolute; left: 0; top: 0.2em; color: var(--primary); font-size: 0.75em; }

/* Module grid — 1 col on phones, 2 on tablets, 3–4 on desktop/ultrawide */
.mod-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  padding-bottom: var(--space-8);
}
.mod-card {
  display: flex; flex-direction: column; min-height: 100%;
  background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; position: relative;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.mod-card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; box-shadow: 0 12px 32px -16px rgba(201,168,76,.35); }
a.mod-card:focus-visible { outline-offset: 3px; border-radius: var(--radius-lg); }
.mod-card.locked { opacity: .65; }
.mod-card-bar { height: 4px; background: var(--primary); }
.mod-card.locked .mod-card-bar { background: var(--input); }
.mod-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-6); }
.mod-card-num { margin-bottom: var(--space-2); }
.mod-card.locked .mod-card-num { color: var(--muted-foreground); }
.mod-card-title {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl);
  line-height: var(--leading-snug); color: var(--card-foreground); margin-bottom: var(--space-3);
}
.mod-card-desc { font-size: var(--text-base); color: var(--foreground-secondary); margin-bottom: var(--space-5); flex: 1; }
.mod-card-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.mod-card-time { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted-foreground); }

/* Quick links */
.quick-links {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  padding-top: var(--space-10); border-top: 1px solid var(--border);
}
.ql-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: var(--space-2); padding: var(--space-6) var(--space-5); min-height: 7.5rem;
  background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; cursor: pointer; width: 100%;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.ql-card:hover { border-color: var(--primary); text-decoration: none; color: var(--card-foreground); }
.ql-icon { font-size: 1.75rem; line-height: 1; }
.ql-label { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.ql-sub { font-size: var(--text-sm); color: var(--muted-foreground); display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: var(--space-1); }
.prof-split-note {
  max-width: var(--measure); margin: var(--space-6) auto 0; text-align: center;
  font-size: var(--text-sm); color: var(--muted-foreground);
}
.prof-split-note strong { color: var(--foreground-secondary); }

/* ───────────── 9. MODULE PAGE ───────────── */
.mod-header { background: var(--gw-waters); border-bottom: 3px solid var(--primary); padding: var(--space-10) 0 var(--space-8); }
.mod-header .container { display: flex; flex-direction: column; gap: var(--space-3); }
.mod-h-title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl);
  line-height: var(--leading-tight); letter-spacing: -0.02em; color: var(--foreground);
  max-width: 24ch; text-wrap: balance;
}
.mod-h-title:focus { outline: none; }
.mod-h-obj { font-size: var(--text-lg); color: var(--foreground-secondary); max-width: var(--measure); }

.mod-content { padding: var(--space-10) 0 var(--space-16); }
.mod-section { margin-bottom: var(--space-10); }
.mod-section h2 { font-size: var(--text-xs); }

/* Embeds — responsive frames with an always-visible "open in new tab" escape hatch */
.embed { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.embed-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border); background: var(--muted);
  font-size: var(--text-sm); color: var(--muted-foreground);
}
.embed iframe { display: block; width: 100%; border: 0; background: var(--card); }
.embed-video, .embed-slides { aspect-ratio: 16 / 9; height: auto; }
.embed-doc { height: clamp(28rem, 80dvh, 64rem); }
.embed-placeholder { padding: var(--space-12) var(--space-6); text-align: center; }
.embed-placeholder p { color: var(--foreground-secondary); font-size: var(--text-base); max-width: var(--measure); margin-inline: auto; }
.embed-placeholder .eyebrow { display: block; color: var(--muted-foreground); margin-bottom: var(--space-3); }

/* External study cards */
.ext-cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }
.ext-card { display: flex; flex-direction: column; }
.ext-card .card-body { display: flex; flex-direction: column; flex: 1; gap: var(--space-2); }
.ext-card-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: var(--leading-snug); }
.ext-card-provider { font-size: var(--text-sm); color: var(--muted-foreground); }
.ext-card-framing { font-size: var(--text-base); color: var(--foreground-secondary); font-style: italic; margin-block: var(--space-2) var(--space-4); flex: 1; }
.ext-card-framing cite { font-style: normal; color: var(--primary); }
.ext-card .btn { align-self: flex-start; }

/* Assignment */
.assign-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--accent); margin-bottom: var(--space-3); }
.assign-desc { font-size: var(--text-base); color: var(--foreground-secondary); margin-bottom: var(--space-4); max-width: var(--measure); }
.assign-track { font-size: var(--text-sm); color: var(--muted-foreground); margin-bottom: var(--space-5); max-width: var(--measure); }
.assign-track strong { color: var(--foreground-secondary); }

/* Architect's Note */
.arch-note-body { font-size: var(--text-lg); color: var(--foreground-secondary); font-style: italic; margin: var(--space-3) 0 var(--space-4); max-width: var(--measure); }
.arch-note-sig { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: var(--primary); text-align: right; }

/* Ask the Professor — in-page strip */
.prof-inline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  margin-top: var(--space-4);
}
.prof-inline p { font-size: var(--text-base); color: var(--foreground-secondary); flex: 1 1 24rem; }

/* Module prev / next */
.mod-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3);
  padding-top: var(--space-8); border-top: 1px solid var(--border);
}
.mod-nav .btn { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); white-space: normal; text-align: left; }
.mod-nav .btn-prev { justify-self: start; }
.mod-nav .btn-next { justify-self: end; text-align: right; }
.mod-nav .btn[hidden] { display: none; }
@media (max-width: 47.99rem) {
  .mod-nav { grid-template-columns: 1fr; }
  .mod-nav .btn { width: 100%; justify-self: stretch; }
  .mod-nav .btn-prev { order: 2; } .mod-nav .btn-all { order: 1; } .mod-nav .btn-next { order: 3; }
}

/* ───────────── 10. FOOTER ───────────── */
.footer { border-top: 1px solid var(--border); padding: var(--space-10) 0; text-align: center; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); margin-bottom: var(--space-1); }
.footer-brand span { color: var(--foreground-secondary); font-family: var(--font-sans); font-weight: 400; }
.footer-copy { font-size: var(--text-sm); color: var(--muted-foreground); margin-top: var(--space-1); }

/* ───────────── 11. PREFERENCES ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  a.mod-card:hover { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --border: var(--gw-twilight); --muted-foreground: var(--gw-evening); }
  .btn, .card, .mod-card, .ql-card { border-width: 2px; }
}
@media print {
  .nav, .skip-link, .hero-btns, .mod-nav, .prof-inline, .embed-bar { display: none !important; }
  body { background: #fff; color: #000; }
}
