/* [SCHOOL] Learn design r2 (17 Nov 2026): the ONE colour rule (docs/growth/design-audit-2026-11-17 FIXES G-1 to G-5).
   Brand owns action: every button, link, focus ring and badge is violet (#6036e8, text #b9a6ff on dark, #5B2FE0 on Bright) or the
   brand gradient. Rooms own atmosphere: a room colour is only light inside its own picture, one small dot, and its eyebrow label.
   The four room tokens are defined here and nowhere else (laboratory.css and card-art.css read them). Loaded before laboratory.css,
   card-art.css and hub.css on the pages that draw rooms.
   Fix round F1 (panel r1, colour): the Live Room is orchid #d49ae6 (#8a3a9e on Bright), not #a78bfa, which read as the link violet
   #b9a6ff (same hue family, 1.29:1): a room colour never looks like an action. */
:root {
  --room-std: #e2b46a; --room-bop: #ee8a6a; --room-stu: #8fb8e0; --room-live: #d49ae6;
  --room-std-on-light: #7d5916; --room-bop-on-light: #a93b1e; --room-stu-on-light: #2f6580; --room-live-on-light: #8a3a9e;
  --wg-act: #6036e8; --wg-act-grad: linear-gradient(135deg, #6036e8, #b3348c); --wg-link: #b9a6ff;
  --wg-practice: #d65bb0;   /* the practice magenta as text on ink (5.7:1; #ca3fa0 was 4.47) */
}
[data-theme="light"] { --wg-link: #5B2FE0; --wg-practice: #a52d82; }
/* the one primary button and the one secondary button (G-4) */
.wg-btn, .wg-btn-2 { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 700 16px/1.2 'Inter', system-ui, sans-serif; text-decoration: none; cursor: pointer; text-align: center; }
.wg-btn { border: 0; color: #fff; background: var(--wg-act-grad); box-shadow: 0 8px 24px rgba(96, 54, 232, .32); }
.wg-btn:hover { box-shadow: 0 10px 30px rgba(96, 54, 232, .45); }
.wg-btn-2 { color: inherit; background: transparent; border: 1px solid rgba(255, 255, 255, .18); }
.wg-btn-2:hover { border-color: rgba(255, 255, 255, .4); }
[data-theme="light"] .wg-btn-2 { border-color: rgba(13, 0, 26, .18); }
[data-theme="light"] .wg-btn-2:hover { border-color: rgba(13, 0, 26, .4); }
.wg-btn:focus-visible, .wg-btn-2:focus-visible { outline: 3px solid var(--wg-link); outline-offset: 3px; }
/* Codex learn-design-b-r2 P2 (b): the room aliases on Laboratory lesson pages (body.wg-lesson-page), whose rail and places swatches read
   var(--std) etc.; css/laboratory.css defines the same aliases on the hub (.lab-body) */
.wg-lesson-page { --std: var(--room-std); --bop: var(--room-bop); --stu: var(--room-stu); --live: var(--room-live); --bench: var(--wg-practice); }
[data-theme="light"] .wg-lesson-page { --std: var(--room-std-on-light); --bop: var(--room-bop-on-light); --stu: var(--room-stu-on-light); --live: var(--room-live-on-light); }
