/* labs-harmony.css
   Brings the older standalone labs onto the house palette without touching
   their layouts. Loaded last in <head>, so these custom properties replace the
   page's own warm-paper and green values (same specificity, later wins).
   The labs themselves stay light: they were never built for a dark ground. */
:root{
  color-scheme: light;
  --bg:#F7F8FA; --bg-card:#FFFFFF; --bg-warm:#F2F4F7;
  --tx:#0A0D14; --tx2:#3D4350; --tx3:#5C6270;
  --bdr:#DCE0E7; --bdr2:#C9CFD8;
  --accent:#4B3BE0; --accent2:#6D5FF0;
  --font:'Figtree',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'JetBrains Mono','SF Mono',ui-monospace,Menlo,monospace;
}
html,body{-webkit-font-smoothing:antialiased}
::selection{background:rgba(75,59,224,.16)}
:focus-visible{outline:2px solid #4B3BE0;outline-offset:2px}

/* One alignment rule for every lab: the page's opening block (label, h1 and
   the paragraph under it) is centred, whatever layout the lab uses below.
   Before this, half the labs opened centred and half flush-left inside a
   centred column, which read as a mistake when moving between them. */
h1{text-align:center;margin-left:auto;margin-right:auto;text-wrap:balance}
:is(h1 + p, h1 + p + p, h1 + .lede, h1 + .sub, h1 + .lead, h1 + .subtitle, .hero > p, .scene-desc){
  text-align:center;margin-left:auto;margin-right:auto;max-width:64ch;text-wrap:pretty}
:is(.eyebrow, .kicker, .tag, .crumb, .pill, .badge, span, div):has(+ h1){text-align:center;margin-left:auto;margin-right:auto}
.hero{text-align:center}
/* app screens and cards keep their own left-aligned headings */
:is(.login-card, .card, .panel, .modal, aside, nav, header, form, table, [class*="card"], [class*="panel"]) h1{text-align:inherit;margin-left:0;margin-right:0}
:is(.login-card, .card, .panel, .modal, aside, form, [class*="card"], [class*="panel"]) :is(h1 + p, h1 + .sub, h1 + .lede){text-align:inherit;margin-left:0;margin-right:0}
