/*
  render-the-garden-light.css — "The Garden Light" (SKIN-G08) Render layer
  token map aligned to BU-CORE-UIUX-001 §4.1, 2026-07-03
  ===========================================================================
  Fires when data-theme="the-garden-light". ARENA/GAMIFIED category
  (student-facing only per BUP-UI-THEME-001 Rule 2).

  SOURCING CLASS: [AUTHORED PROPOSAL -- pending owner approval; no source
  values existed]. BUP-UI-SKIN-002 SKIN-G08 (lines 93-98) describes this
  skin only in prose: "Pink and purple spectrum. Light and bright... light,
  soft, elegant, approachable." No hex values exist. The catalog is
  explicit that this is DIFFERENT from ViralDecay's amethyst (#8B5CF6 over
  black, line 96) -- The Garden Light uses a lighter pink-to-lavender
  spectrum on a light/white base, never touching ViralDecay's deep-amethyst-
  on-black territory (BUP-UI-SKIN-002 lines 150-152, amethyst is retired
  from BeltUp entirely).

  Contrast check (WCAG AA, BUP-UI-SKIN-001 L-9): text-primary #3a1f33 on
  canvas #fdf5fa = ~14.1:1. text-secondary #7a5570 on canvas = ~6.1:1 --
  passes 4.5:1 minimum.
  ===========================================================================
*/

:root[data-theme="the-garden-light"] {
  --theme-bg-canvas: #fdf5fa;
  --theme-bg-surface: rgba(214, 120, 190, 0.06);
  --theme-bg-frosted: var(--theme-bg-surface); /* alias — dialect has no distinct frosted-fill token; §4.1 requires this name, value derived from bg-surface */
  --theme-bg-card: rgba(214, 120, 190, 0.1);
  --theme-x-bg-sunken: #fdf5fa;
  --theme-border-inactive: rgba(214, 120, 190, 0.18);
  --theme-border-active: #c458a8;

  --theme-text-main: #3a1f33;
  --theme-x-text-secondary: #7a5570;
  --theme-text-muted: #9c7a92;
  --theme-x-text-inverse: #fdf5fa;
  --theme-x-text-disabled: #cbb2c4;

  --theme-accent-primary: #c458a8;
  --theme-accent-secondary: var(--theme-accent-primary); /* alias — no distinct secondary accent hue exists in sources; §4.1 requires this name */
  --theme-x-accent-hover: #d97cc0;
  --theme-x-accent-active: #a53f8a;
  --theme-x-accent-disabled: rgba(196, 88, 168, 0.35);
  --theme-x-accent-text: #ffffff;
  --theme-x-focus-ring: #c458a8;

  --theme-state-healthy: #4dbb8a;
  --theme-state-warning: #d9a23a;
  --theme-state-error: #d1495a;
  --theme-x-state-info: #9d7bd8;

  --theme-x-elevation-1: 0 1px 3px rgba(58, 31, 51, 0.07);
  --theme-x-elevation-2: 0 10px 24px rgba(58, 31, 51, 0.09);
  --theme-x-elevation-3: 0 0 20px rgba(196, 88, 168, 0.35);
  --theme-accent-glow: 0 0 20px rgba(196, 88, 168, 0.35); /* derived — same glow value as --theme-x-elevation-3 (measured/authored glow shadow); §4.1 requires this name */
  --theme-accent-glow-secondary: 0 0 20px rgba(196, 88, 168, 0.35); /* derived — no distinct secondary glow exists in sources; aliased to primary glow value */
  --theme-x-glass-tint: rgba(214, 120, 190, 0.06);
  --theme-backdrop-blur: 14px;

  --theme-x-font-family-base: var(--structure-font-family);
  --theme-x-font-size-sm: 0.875rem;
  --theme-x-font-size-base: 1rem;
  --theme-x-font-size-lg: 1.25rem;
  --theme-x-font-size-xl: 1.75rem;
  --theme-x-line-height-base: 1.55;
  --theme-x-space-unit: 0.5rem;
}

/* Structural selector list mirrors render-greyscale-skeleton.css / render-fight-night.css
   1:1 (R-S7-10 / D-S07-FW-01: structure never forks per skin — value-only skin). */
:root[data-theme="the-garden-light"] body {
  background-color: var(--theme-bg-canvas);
  color: var(--theme-text-main);
}

:root[data-theme="the-garden-light"] a {
  color: var(--theme-text-main);
}

:root[data-theme="the-garden-light"] h1,
:root[data-theme="the-garden-light"] h2,
:root[data-theme="the-garden-light"] h3,
:root[data-theme="the-garden-light"] h4,
:root[data-theme="the-garden-light"] h5,
:root[data-theme="the-garden-light"] h6 {
  color: var(--theme-text-main);
}

:root[data-theme="the-garden-light"] p,
:root[data-theme="the-garden-light"] li {
  color: var(--theme-x-text-secondary);
}

:root[data-theme="the-garden-light"] .bu-panel {
  background-color: var(--theme-bg-surface);
  border: 1px solid var(--theme-border-inactive);
  border-top: 2px solid var(--theme-border-active);
  border-bottom: 2px solid var(--theme-border-active);
  box-shadow: var(--theme-x-elevation-2);
  backdrop-filter: blur(var(--theme-backdrop-blur));
  -webkit-backdrop-filter: blur(var(--theme-backdrop-blur));
  color: var(--theme-text-main);
}

:root[data-theme="the-garden-light"] .bu-rail {
  background-color: rgba(253, 245, 250, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--theme-border-inactive);
  color: var(--theme-text-main);
}

:root[data-theme="the-garden-light"] .bu-soffit {
  border-top: 1px solid var(--theme-border-inactive);
  color: var(--theme-text-muted);
  font-size: var(--structure-text-sm, 0.875rem);
}

:root[data-theme="the-garden-light"] .bu-soffit a {
  color: var(--theme-text-muted);
}

:root[data-theme="the-garden-light"] .bu-soffit a:hover {
  color: var(--theme-text-main);
}

:root[data-theme="the-garden-light"] .bu-brick {
  color: var(--theme-x-text-secondary);
}

:root[data-theme="the-garden-light"] .bu-badge-tag {
  background-color: var(--theme-bg-card);
  border: 1px solid var(--theme-border-active);
  color: var(--theme-text-main);
}

:root[data-theme="the-garden-light"] .bu-control {
  background-color: var(--theme-bg-surface);
  border-color: var(--theme-border-active);
  color: var(--theme-text-main);
}

:root[data-theme="the-garden-light"] .bu-control:hover {
  background-color: var(--theme-x-accent-hover);
  color: var(--theme-x-text-inverse);
}

:root[data-theme="the-garden-light"] .bu-control:focus-visible {
  outline: 2px solid var(--theme-x-focus-ring);
  outline-offset: 2px;
}

:root[data-theme="the-garden-light"] .bu-btn {
  background-color: rgba(196, 88, 168, 0.12);
  border-top: 2px solid var(--theme-border-active);
  border-bottom: 2px solid var(--theme-border-active);
  border-left-color: transparent;
  border-right-color: transparent;
  color: var(--theme-x-accent-text);
}

:root[data-theme="the-garden-light"] .bu-btn:hover {
  background-color: rgba(196, 88, 168, 0.2);
  border-top-color: var(--theme-x-accent-hover);
  border-bottom-color: var(--theme-x-accent-hover);
}

:root[data-theme="the-garden-light"] .bu-btn:disabled {
  background-color: rgba(196, 88, 168, 0.04);
  border-top-color: var(--theme-x-accent-disabled);
  border-bottom-color: var(--theme-x-accent-disabled);
  color: var(--theme-x-text-disabled);
}

:root[data-theme="the-garden-light"] .bu-btn-secondary {
  background-color: transparent;
  border-color: var(--theme-border-active);
  color: var(--theme-text-main);
}

:root[data-theme="the-garden-light"] .bu-btn-secondary:hover {
  border-color: var(--theme-x-accent-hover);
  color: var(--theme-x-accent-hover);
}

/* PG-035 demo skin switcher active-selection state (D-S07-SKIN-02 switcher UI). */
:root[data-theme="the-garden-light"] .bu-btn-secondary.is-active {
  background-color: var(--theme-accent-primary);
  border-color: var(--theme-accent-primary);
  color: var(--theme-x-accent-text);
}

:root[data-theme="the-garden-light"] .bu-btn:focus-visible,
:root[data-theme="the-garden-light"] .bu-btn-secondary:focus-visible {
  outline: 2px solid var(--theme-x-focus-ring);
  outline-offset: 2px;
}

:root[data-theme="the-garden-light"] .bu-gate {
  background-color: var(--theme-x-glass-tint);
  backdrop-filter: blur(var(--theme-backdrop-blur));
}

/* Brand lockup accent: the "UP" half of BELT|UP carries the accent hue, the
   rest inherits .bu-nav-brand's text colour. Uniform across every skin per
   D-S07-SKIN-02 (no partial-skin fallthrough) — added 2026-08-21 when an audit
   found this styled in only 2 of 20 skins. Uses the standard accent token, NOT
   the lighter hover tone. */
:root[data-theme="the-garden-light"] .bu-nav-brand span {
  color: var(--theme-accent-primary);
}

/* --- Footer band -----------------------------------------------------------
   Ported 2026-08-21 to close a partial-skin fallthrough: this family was
   coloured in only 1 of 20 Public skins, so the footer rendered untinted and
   dividerless in every other skin (D-S07-SKIN-02). Token-for-token identical to
   render-greyscale-skeleton.css — no new values invented; each token resolves
   to this skin's own palette. */
:root[data-theme="the-garden-light"] .bu-footer {
  border-top: 2px solid var(--theme-border-inactive);
  background-color: var(--theme-bg-surface);
}

:root[data-theme="the-garden-light"] .bu-footer-heading {
  color: var(--theme-text-main);
}

:root[data-theme="the-garden-light"] .bu-footer-copyright {
  border-top: 1px solid var(--theme-border-inactive);
  color: var(--theme-text-muted);
}

:root[data-theme="the-garden-light"] .bu-footer-lab-link {
  color: var(--theme-text-muted);
}

:root[data-theme="the-garden-light"] .bu-link-stealth {
  color: var(--theme-text-muted);
}

:root[data-theme="the-garden-light"] .bu-link-stealth:hover {
  color: var(--theme-text-main);
}

/* ==== #234 CONSTRUCTION FAMILY BEGIN ==== (SPATIAL GLASS, family 7 of 8) ====
   Skin "the-garden-light" belongs to the SPATIAL GLASS construction family. Colour variants of one
   family share this construction and differ only in the variables above. */
/* family variables: derived from this skin's own palette; contrast pairs verified >= 4.5:1 (fill/ink), >= 3:1 (edge, focus) against the canvas */
:root[data-theme="the-garden-light"] {
  --fam-edge: #a53f8a;
  --fam-hi: #c458a8;
  --fam-hov: #8f3077;
  --fam-fill: #a53f8a;
  --fam-ink: #ffffff;
  --fam-deep: #f6d9ee;
  --fam-focus: #a53f8a;
  --fam-glow: color-mix(in srgb, #a53f8a 55%, transparent);
  --theme-text-muted: #775d6f; /* AA repair (>= 4.7:1 on canvas, surface and card), hue kept semantic */
  --theme-state-healthy: #2e7053; /* AA repair (>= 4.7:1 on canvas, surface and card), hue kept semantic */
  --theme-state-warning: #806022; /* AA repair (>= 4.7:1 on canvas, surface and card), hue kept semantic */
  --theme-state-error: #b03d4c; /* AA repair (>= 4.7:1 on canvas, surface and card), hue kept semantic */
  --fam-glass: rgba(255, 255, 255, 0.62);
  --fam-glass-line: rgba(165, 63, 138, 0.32);
  --fam-glass-chip: rgba(255, 255, 255, 0.55);
  --fam-pool-1: #f8c6e6;
  --fam-pool-2: #e0cdf8;
  --fam-pool-3: #c9f0e6;
  --fam-pool-4: #fde3c4;
}

/* ===========================================================================
   CONSTRUCTION FAMILY 7 of 8 — SPATIAL GLASS  [#234 / R-0823-01 / R-0823-02]
   Reference: six-terminals.html 06 "Spatial Glass -- visionOS, real AR rules".
   Frame strategy: NO drawn frame. A heavily rounded slab of real frosted
   glass: translucent fill, strong backdrop blur + saturation, a 1px specular
   edge and a top inner highlight. Depth comes from the soft drop shadow and
   from the coloured light pools the glass sits in front of (body).
   Light source: the page behind the glass (four tinted pools); the glass
   itself does not glow.
   Palette discipline: soft multi-hue pools, white-ish glass, ink stays the
   skin's own main text colour.
   Type: system sans, semibold, tight tracking, sentence case (no caps voice).
   backdrop-filter is used here WITHOUT clip-path (#228): the roundness comes
   from border-radius only.
   [PILLAR-1: Fitts + Gestalt common region -- large rounded targets; the glass
   plane is the single grouping cue.]
   =========================================================================== */
:root[data-theme="the-garden-light"] body {
  background-image:
    radial-gradient(58% 40% at 18% 12%, var(--fam-pool-1) 0%, transparent 62%),
    radial-gradient(50% 38% at 84% 22%, var(--fam-pool-2) 0%, transparent 62%),
    radial-gradient(52% 40% at 68% 88%, var(--fam-pool-3) 0%, transparent 62%),
    radial-gradient(46% 34% at 12% 82%, var(--fam-pool-4) 0%, transparent 62%);
  background-repeat: no-repeat;
  background-attachment: scroll;
}
:root[data-theme="the-garden-light"] .bu-panel {
  border-radius: 26px;
  border: 1px solid var(--fam-glass-line);
  background-color: var(--fam-glass);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  clip-path: none;
}
:root[data-theme="the-garden-light"] .bu-panel::before, :root[data-theme="the-garden-light"] .bu-panel::after { content: none; }
:root[data-theme="the-garden-light"] h1, :root[data-theme="the-garden-light"] h2, :root[data-theme="the-garden-light"] h3 { font-weight: 600; letter-spacing: -0.01em; overflow-wrap: break-word; }
:root[data-theme="the-garden-light"] .bu-panel-sublabel, :root[data-theme="the-garden-light"] .bu-badge-tag, :root[data-theme="the-garden-light"] .bu-metric-label, :root[data-theme="the-garden-light"] .bu-panel-footnote { font-weight: 600; letter-spacing: 0.01em; }
:root[data-theme="the-garden-light"] .bu-badge-tag { background: var(--fam-glass-chip); border: 1px solid var(--fam-glass-line); border-radius: 5px; padding: 0.25rem 0.6rem; }
:root[data-theme="the-garden-light"] .bu-rail {
  background-color: var(--fam-glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--fam-glass-line);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}
:root[data-theme="the-garden-light"] .bu-nav-links a:hover, :root[data-theme="the-garden-light"] .bu-nav-links a.active { background: var(--fam-glass-chip); border-radius: 5px; color: var(--theme-text-main); text-decoration: none; }
:root[data-theme="the-garden-light"] .bu-btn {
  background: var(--fam-fill);
  border: 1px solid var(--fam-fill);
  border-radius: 5px;
  color: var(--fam-ink);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 18px -8px rgba(0, 0, 0, 0.5);
}
:root[data-theme="the-garden-light"] .bu-btn:hover { background: var(--fam-hov); border-color: var(--fam-hov); color: var(--fam-ink); }
:root[data-theme="the-garden-light"] .bu-btn-secondary {
  background: var(--fam-glass-chip);
  border: 1px solid var(--fam-glass-line);
  border-radius: 5px;
  color: var(--theme-text-main);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
:root[data-theme="the-garden-light"] .bu-btn-secondary:hover { background: var(--fam-glass-line); color: var(--theme-text-main); border-color: var(--fam-edge); }
:root[data-theme="the-garden-light"] .bu-btn-secondary.is-active { background: var(--fam-fill); border-color: var(--fam-fill); color: var(--fam-ink); }
:root[data-theme="the-garden-light"] .bu-control, :root[data-theme="the-garden-light"] .bu-field input[type="text"], :root[data-theme="the-garden-light"] .bu-field input[type="email"], :root[data-theme="the-garden-light"] .bu-field input[type="tel"],
:root[data-theme="the-garden-light"] .bu-field input[type="password"], :root[data-theme="the-garden-light"] .bu-field input[type="number"], :root[data-theme="the-garden-light"] .bu-field select, :root[data-theme="the-garden-light"] .bu-field textarea,
:root[data-theme="the-garden-light"] input.bu-input, :root[data-theme="the-garden-light"] select.bu-input, :root[data-theme="the-garden-light"] textarea.bu-input {
  background: var(--fam-glass-chip);
  border: 1px solid var(--fam-edge);
  border-radius: 5px;
  color: var(--theme-text-main);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}
:root[data-theme="the-garden-light"] .bu-control:hover, :root[data-theme="the-garden-light"] .bu-field input:hover, :root[data-theme="the-garden-light"] .bu-field select:hover, :root[data-theme="the-garden-light"] .bu-field textarea:hover { background: var(--fam-glass); color: var(--theme-text-main); border-color: var(--fam-hi); }
:root[data-theme="the-garden-light"] .bu-table th, :root[data-theme="the-garden-light"] .bu-table td { border-bottom: 1px solid var(--fam-glass-line); }
:root[data-theme="the-garden-light"] .bu-table th { font-weight: 600; }

/* --- shared floors every family honours (state tokens, focus, option list) --- */
:root[data-theme="the-garden-light"] .bu-field select option,
:root[data-theme="the-garden-light"] select.bu-input option {
  background-color: var(--theme-bg-canvas);
  color: var(--theme-text-main);
}
:root[data-theme="the-garden-light"] .bu-btn:focus-visible,
:root[data-theme="the-garden-light"] .bu-btn-secondary:focus-visible,
:root[data-theme="the-garden-light"] .bu-control:focus-visible,
:root[data-theme="the-garden-light"] .bu-field input:focus-visible,
:root[data-theme="the-garden-light"] .bu-field select:focus-visible,
:root[data-theme="the-garden-light"] .bu-field textarea:focus-visible,
:root[data-theme="the-garden-light"] .bu-input:focus-visible,
:root[data-theme="the-garden-light"] .bu-nav-links a:focus-visible,
:root[data-theme="the-garden-light"] .bu-tab-btn:focus-visible {
  outline: 2px solid var(--fam-focus);
  outline-offset: 2px;
}
:root[data-theme="the-garden-light"] .bu-btn:disabled,
:root[data-theme="the-garden-light"] .bu-btn-secondary:disabled {
  background: transparent;
  border-color: var(--theme-x-accent-disabled);
  color: var(--theme-x-text-disabled);
  box-shadow: none;
  filter: none;
}
:root[data-theme="the-garden-light"] .bu-status-dot.is-healthy { background: var(--theme-state-healthy); }
:root[data-theme="the-garden-light"] .bu-status-dot.is-warning,
:root[data-theme="the-garden-light"] .bu-status-dot.is-alert { background: var(--theme-state-warning); }
:root[data-theme="the-garden-light"] .bu-status-dot.is-error { background: var(--theme-state-error); }
:root[data-theme="the-garden-light"] .bu-field-error { color: var(--theme-state-error); }
/* --- overlay / scroll-container panels (Admin drawers, slide-outs, the report widget) ---
   A family frame is drawn on pseudo-elements and a plate that would scroll away with the
   content, and some panel margins would leave a closed drawer peeking in. Overlay panels
   therefore get a solid attached fill, one plain outline, no pseudo frame, no clip. */
:root[data-theme="the-garden-light"] .bu-drawer, :root[data-theme="the-garden-light"] .bu-slideout-content, :root[data-theme="the-garden-light"] .bu-report-widget-panel {
  clip-path: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: var(--theme-bg-canvas);
  background-image: linear-gradient(var(--theme-bg-surface), var(--theme-bg-surface));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  border: 1px solid var(--fam-edge);
  box-shadow: none;
  isolation: auto;
}
:root[data-theme="the-garden-light"] .bu-drawer::before, :root[data-theme="the-garden-light"] .bu-drawer::after,
:root[data-theme="the-garden-light"] .bu-slideout-content::before, :root[data-theme="the-garden-light"] .bu-slideout-content::after,
:root[data-theme="the-garden-light"] .bu-report-widget-panel::before, :root[data-theme="the-garden-light"] .bu-report-widget-panel::after { content: none; }

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="the-garden-light"] .bu-btn, :root[data-theme="the-garden-light"] .bu-btn-secondary { transition: none; transform: none; }
}
:root[data-reduced-motion="true"][data-theme="the-garden-light"] .bu-btn,
:root[data-reduced-motion="true"][data-theme="the-garden-light"] .bu-btn-secondary { transition: none; transform: none; }
/* ==== #234 CONSTRUCTION FAMILY END ==== */
