/* ==========================================================================
   Fleet OS · Nocturnal Beacon Tokens (Wave0 draft)
   Source of truth: blissfulife-root/css/night-beacon.css (live 2026-11-03)
   Scope: Fleet-Locked tokens + one Site-Scoped hook (--hall-glow).
   Rules baked in:
     - 0 Google Fonts, 0 icon CDN, 0 3D. System stacks only.
     - Violet (#A78BFA) is an accent, never a large fill (<8% of any viewport).
     - No new palette: every hex below already exists in night-beacon.css.
   Do not edit per-site. Per-site variation is --hall-glow / --hall-glow-rgb only.
   ========================================================================== */

:root {
  /* ---- Surfaces (Fleet-Locked) ---------------------------------------- */
  --fleet-bg: #0B0F17;
  --fleet-surface: #131B2E;
  --fleet-raised: #1C2640;
  --fleet-footer-bg: #080C13;
  --fleet-scrim: rgba(8, 12, 19, 0.72);
  --fleet-topbar-bg: rgba(11, 15, 23, 0.88);
  --fleet-topbar-bg-solid: rgba(11, 15, 23, 0.96);

  /* ---- Accents (Fleet-Locked) ----------------------------------------- */
  --fleet-amber: #F59E0B;
  --fleet-amber-soft: #FBBF24;
  --fleet-amber-deep: #D97706;
  --fleet-amber-rgb: 245, 158, 11;

  --fleet-jade: #10B981;
  --fleet-jade-text: #34D399;
  --fleet-jade-rgb: 16, 185, 129;

  --fleet-violet: #A78BFA;
  --fleet-violet-hi: #C4B5FD;
  --fleet-violet-deep: #7C6AD8;
  --fleet-violet-rgb: 167, 139, 250;

  --fleet-ink: #1A1206; /* text on amber fills only */

  /* ---- Text (Fleet-Locked) -------------------------------------------- */
  --fleet-text: #F8FAFC;
  --fleet-body: #CBD5E1;
  --fleet-muted: #64748B;
  --fleet-muted-strong: #94A3B8;

  /* ---- Lines / focus (Fleet-Locked) ----------------------------------- */
  --fleet-line: rgba(245, 158, 11, 0.18);
  --fleet-line-cool: rgba(148, 163, 184, 0.14);
  --fleet-line-soft: rgba(148, 163, 184, 0.10);
  --fleet-focus: #FBBF24;

  /* ---- Type (system stacks; 0 downloads) ------------------------------- */
  --fleet-display: ui-serif, "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --fleet-ui: system-ui, -apple-system, BlinkMacSystemFont, "PingFang HK",
    "Microsoft JhengHei", sans-serif;
  --fleet-ui-en: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;

  --fleet-fs-micro: 9.5px;   /* lighthouse micro-line, chip labels */
  --fleet-fs-small: 11.5px;  /* meta, footer operator line */
  --fleet-fs-ui: 13px;       /* buttons, nav */
  --fleet-fs-body: 15px;     /* drawer descriptions */
  --fleet-fs-brand: 16px;    /* wordmark */
  --fleet-fs-title: 19px;    /* drawer title */

  /* ---- Space (root rhythm: 4 / 8 / 10 / 12 / 16 / 22 / 32 / 48) ------- */
  --fleet-s1: 4px;
  --fleet-s2: 8px;
  --fleet-s3: 10px;
  --fleet-s4: 12px;
  --fleet-s5: 16px;
  --fleet-s6: 22px;
  --fleet-s7: 32px;
  --fleet-s8: 48px;

  /* ---- Radius (root uses 4 / 7 / 8 / 10 / 12) ------------------------- */
  --fleet-r-chip: 4px;
  --fleet-r-control: 8px;
  --fleet-r-panel: 10px;
  --fleet-r-card: 12px;
  --fleet-r-pill: 999px;

  /* ---- Chrome metrics -------------------------------------------------- */
  --fleet-wrap: 1180px;
  --fleet-header-h: 68px;
  --fleet-touch: 44px; /* WCAG 2.5.5 target */
  --fleet-dur: 160ms;
  --fleet-ease: ease;

  /* ---- Elevation (kept minimal; no glow on large surfaces) ------------ */
  --fleet-shadow-panel: 0 18px 48px rgba(0, 0, 0, 0.55);
  --fleet-shadow-amber: 0 0 0 1px rgba(245, 158, 11, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.42);

  /* ---- SITE-SCOPED: the only per-site knob ----------------------------
     Default = 學問宮 amber. A site may override RGB + hex on <html data-hall>
     (see the [data-hall] block below). Do NOT introduce other custom props.
     Consumed as: rgba(var(--fleet-hall-glow-rgb), alpha)
     -------------------------------------------------------------------- */
  --fleet-hall-glow-rgb: var(--fleet-amber-rgb);
  --fleet-hall-glow: var(--fleet-amber);
}

/* Site-scoped glow map. These are the four halls already used by Root.
   Wave1 may set data-hall on <html>; no other token may change per site. */
[data-hall="academic"] {
  --fleet-hall-glow-rgb: var(--fleet-amber-rgb);
  --fleet-hall-glow: var(--fleet-amber);
}
[data-hall="religious"] {
  --fleet-hall-glow-rgb: var(--fleet-violet-rgb);
  --fleet-hall-glow: var(--fleet-violet);
}
[data-hall="philosophy"] {
  --fleet-hall-glow-rgb: var(--fleet-jade-rgb);
  --fleet-hall-glow: var(--fleet-jade);
}
[data-hall="spirit"] {
  --fleet-hall-glow-rgb: var(--fleet-violet-rgb);
  --fleet-hall-glow: var(--fleet-violet);
}

/* The canonical footer sentence. Content lives in HTML; this token only
   records the exact string for tests, so nobody retypes it. */
:root {
  --fleet-footer-sentence: "心教教育（Ourealife International Limited 皇極道集團有限公司 分行）｜私隱政策｜條款｜© 2026";
}
