/* ==================================================================
   PRISM: the library's house palette (SETTLED)
   Aaron, 17 Oct 2026 7:00 PM CT: "black / white with prism highlights,
   prism highlights on all pages".
   Aaron, 18 Oct 2026 7:56 PM CT (via Art): prismatic (spectrum) is the
   highlight scheme, against the black-and-white newsprint base. That
   settles the open "exact prism colours" question: the seven stops
   below are the canonical spectrum. Change them HERE and every page
   follows (style.css imports this file; the .px owner-page kit, the
   header tile and the Gothic pages all read these variables).

   Rules
   - Black and white carry the page. Text is white on black (Black mode)
     or black on white (White mode), AA contrast or better.
   - Prism is an ACCENT, never a fill: thin rules, the active tab, focus
     rings, link-hover underlines, the "live" dot, the header hairline,
     pressed/selected edges on chips and badges, text selection.
   - Every colour has one job (listed beside it).
   - Data colours that carry meaning (diagrams, palettes, cut layers,
     chart series, artwork) are NOT part of this file.
   - Exceptions on purpose: the Nuna Gothic home night palette (ember +
     violet, Halloween) and the public /support page keep their own look.

   Loaded by /style.css (@import) and linked directly by full-page
   documents that do not use style.css (map, math, nav, quizzes...).
   Prefix --nl- so it never collides with a page's own variables.
   ================================================================== */
:root{
  /* the canonical spectrum on BLACK (bright) */
  --nl-p1:#ff5f6d;  /* red     */
  --nl-p2:#ffc371;  /* amber   */
  --nl-p3:#f9f871;  /* yellow  */
  --nl-p4:#5dfdcb;  /* mint    */
  --nl-p5:#4fc3f7;  /* sky     (also the solid key on black) */
  --nl-p6:#a78bfa;  /* violet  */
  --nl-p7:#ff7ad9;  /* pink    */
  /* the same spectrum on WHITE (deeper, so a 1-2px rule still reads on white) */
  --nl-w1:#e11d48; --nl-w2:#ea580c; --nl-w3:#ca8a04; --nl-w4:#059669;
  --nl-w5:#0369a1; --nl-w6:#7c3aed; --nl-w7:#db2777;

  --nl-prism-k:linear-gradient(90deg,var(--nl-p1),var(--nl-p2),var(--nl-p3),var(--nl-p4),var(--nl-p5),var(--nl-p6),var(--nl-p7));
  --nl-prism-w:linear-gradient(90deg,var(--nl-w1),var(--nl-w2),var(--nl-w3),var(--nl-w4),var(--nl-w5),var(--nl-w6),var(--nl-w7));
  --nl-prism-ck:conic-gradient(var(--nl-p1),var(--nl-p2),var(--nl-p3),var(--nl-p4),var(--nl-p5),var(--nl-p6),var(--nl-p7),var(--nl-p1));
  --nl-prism-cw:conic-gradient(var(--nl-w1),var(--nl-w2),var(--nl-w3),var(--nl-w4),var(--nl-w5),var(--nl-w6),var(--nl-w7),var(--nl-w1));

  /* contextual (flip with the White | Black switch) */
  --nl-c1:var(--nl-p1); --nl-c2:var(--nl-p2); --nl-c3:var(--nl-p3); --nl-c4:var(--nl-p4);
  --nl-c5:var(--nl-p5); --nl-c6:var(--nl-p6); --nl-c7:var(--nl-p7);   /* JOB: SVG stops (header tile, prism strokes) */
  --nl-prism:var(--nl-prism-k);     /* JOB: hairline rules, active tab bar, header edge, button/chip edge */
  --nl-prism-c:var(--nl-prism-ck);  /* JOB: small round marks (the "live" dot) */
  --nl-key:#4fc3f7;                 /* JOB: the one solid accent: focus ring, link-hover underline, open-section number (10.6:1 on black) */
  --nl-sel:rgba(79,195,247,.28);    /* JOB: text selection */
}
/* White mode (the library's #paper switch) */
#paper:checked ~ .site,
.nl-white{
  --nl-c1:var(--nl-w1); --nl-c2:var(--nl-w2); --nl-c3:var(--nl-w3); --nl-c4:var(--nl-w4);
  --nl-c5:var(--nl-w5); --nl-c6:var(--nl-w6); --nl-c7:var(--nl-w7);
  --nl-prism:var(--nl-prism-w);
  --nl-prism-c:var(--nl-prism-cw);
  --nl-key:#0369a1;                 /* 5.9:1 on white */
  --nl-sel:rgba(3,105,161,.18);
}

/* ---------- bridge: the .px owner-page glass kit (tools/style/prismatic.css) ----------
   Pages inline prismatic.css, so its stops were frozen copies and stayed bright in White
   mode. These rules (higher specificity than the inlined .px block) point the kit at the
   canonical spectrum above, so owner pages follow this file too. */
.site .px{
  --px-prism:linear-gradient(100deg,var(--nl-c1),var(--nl-c2) 18%,var(--nl-c3) 32%,var(--nl-c4) 48%,var(--nl-c5) 64%,var(--nl-c6) 80%,var(--nl-c7));
  --px-prism-conic:conic-gradient(from 210deg,var(--nl-c1),var(--nl-c2),var(--nl-c3),var(--nl-c4),var(--nl-c5),var(--nl-c6),var(--nl-c7),var(--nl-c1));
}
@supports (color:color-mix(in srgb,red,blue)){
  .site .px{--px-prism-soft:linear-gradient(100deg,color-mix(in srgb,var(--nl-c1) 55%,transparent),color-mix(in srgb,var(--nl-c2) 50%,transparent),color-mix(in srgb,var(--nl-c4) 50%,transparent),color-mix(in srgb,var(--nl-c5) 55%,transparent),color-mix(in srgb,var(--nl-c6) 55%,transparent));}
}
.site .px a:hover{text-decoration-color:var(--nl-key)}
.site .px .px-btn:focus-visible,.site .px .px-field:focus-visible{outline:none;box-shadow:0 0 0 2px var(--nl-key)}
