/* Yuba brand tokens (Q407; docs/yuba-brand-change-nov27.md). Emitted into the build ONLY when VITE_BRAND=yuba (vite.config.js, plugin yuba-brand),
   linked from index.html. Without the flag this file is not in the build and the site is today's JRD Training look.
   Only colors change. Layout, type roles, motion and the Alta replica are untouched. Contrast is checked by `npm run check:yuba-contrast` (AA, both modes).
   No decorative fills, no emoji, no capitals styling. State colors (--ok, --warn, errors) keep the site's own tokens: green is not a brand color. */
:root[data-brand='yuba'] {
  --brand-magenta: #D00354; --brand-magenta-press: #B8004C; --brand-pink: #FEB9E3; --brand-gold: #D29C0D; --brand-gold-ink-light: #8A6500;
  --brand-ink: #151516; --brand-offwhite: #F0F0F2; --brand-night: #0E0F12; --brand-gray-light: #5C5B64; --brand-gray-dark: #A6A5AC;
  --card-face-accent: #FEB9E3;
}
:root[data-brand='yuba'][data-theme='light'] {
  --page: #F0F0F2;
  --text: #151516;
  --muted: #5C5B64;
  --accent: #D00354; --accent-ink: #D00354;
  --primary-bg: #D00354; --primary-text: #FFFFFF; --primary-press: #B8004C;
  --prize: #D29C0D; --prize-ink: #8A6500; --prize-text: #151516;
  --brand-gold-ink: #8A6500;
  --you-row: rgba(208, 3, 84, 0.07);
  --bar-you: #D00354;
  --key-icon-on: #D00354;
  --focus: #D00354;
  --chip-ink: #A00040;       /* Q586 (a): store count chip text on the magenta tint (was #D00354 at 4.28:1) */
  --link-on-grey: #A00040;   /* Q610: link text on the grey --tint surfaces (the .notice error row on ql-work, 'Back to the library'; was #D00354 at 4.29:1) */
  --now-ink: #A00040;        /* Q662: the Time Block 'Now' state text on its magenta row tint (.tb-day.now = --you-row over the page; #D00354 was 4.28:1) */
  --gold-ink-on-tint: #785700; /* Q586 (b): gold caption on the grey current-step row (was #8A6500 at 4.16:1) */
}
:root[data-brand='yuba'][data-theme='dark'] {
  --page: #0E0F12;
  --text: #F0F0F2;
  --muted: #A6A5AC;
  --accent: #FEB9E3; --accent-ink: #FEB9E3;
  --primary-bg: #FEB9E3; --primary-text: #0E0F12; --primary-press: #F6A2D4;   /* dark text on pink, never white (white on pink is 1.58:1) */
  --prize: #D29C0D; --prize-ink: #D29C0D; --prize-text: #151516;
  --brand-gold-ink: #D29C0D;
  --you-row: rgba(254, 185, 227, 0.10);
  --bar-you: #FEB9E3;
  --key-icon-on: #FEB9E3;
  --focus: #FEB9E3;
}
/* Hover and pressed: the deeper magenta in light mode, a slightly deeper pink in dark. The resting colors above are the brand colors. */
:root[data-brand='yuba'] .btn-sweep:hover, :root[data-brand='yuba'] .btn-key:hover { background-color: var(--primary-press); }
:root[data-brand='yuba'] .btn-sweep:active, :root[data-brand='yuba'] .btn-key:active { background-color: var(--primary-press); }
/* $10 / competitive button: gold fill with ink text (7.39:1); white on gold fails AA. */
:root[data-brand='yuba'] .btn-sheen { color: var(--prize-text); }
/* Focus ring: magenta in light, pink in dark; 2px, offset 2px. */
:root[data-brand='yuba'] :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The tagline: gold word in a text-safe gold for the mode. */
:root[data-brand='yuba'] .yb-tagline { color: var(--muted); }
:root[data-brand='yuba'] .yb-gold { color: var(--brand-gold-ink); }
/* Stacked lockup on sign-in: the light or dark artwork by mode. */
:root[data-brand='yuba'] .yb-stacked img { display: none; width: 186px; height: auto; max-width: 100%; }
:root[data-brand='yuba'][data-theme='light'] .yb-stacked img.for-light, :root[data-brand='yuba'][data-theme='dark'] .yb-stacked img.for-dark { display: block; }
/* Sign-in: no decorative glow behind the card (CLAUDE.md: no decoration fills). Covers the page glow (src/pages/signin.css .si-glow) and the veil's (index.html .vl-glow). */
:root[data-brand='yuba'] .si-glow, :root[data-brand='yuba'] .vl-glow { display: none; }
/* Q586 contrast fixes, Yuba light only (the JRD look is untouched: nothing here applies without data-brand='yuba'). */
:root[data-brand='yuba'][data-theme='light'] .store-chip { color: var(--chip-ink); }
:root[data-brand='yuba'][data-theme='light'] .d-stagebtn[aria-current='step'] .caption.ro-over, :root[data-brand='yuba'][data-theme='light'] .d-stagebtn[aria-current='step'] .ro-over { color: var(--gold-ink-on-tint); }
/* Q610: links inside the grey .notice (site --tint over the page, #E3E3E5). Yuba light only. */
:root[data-brand='yuba'][data-theme='light'] .notice .linkbtn { color: var(--link-on-grey); }
/* Q658: the '$10 today' badge on the Library cards (.ta-badge, src/styles/tools-a.css): gold fill with ink text, both modes (white on this gold is 2.47:1; ink is 7.39:1), and the 13px label minimum (was 11px).
   Yuba only: without data-brand='yuba' the JRD badge is untouched. A badge is not a touch target, so the 44px rule does not apply; it sits in a flex row with the level pill and is a short phrase, so it adds no horizontal scroll at 390px. */
:root[data-brand='yuba'] .ta-badge { color: var(--prize-text); font-size: 13px; }
/* Q662: Time Block 'Now' (src/pages/timeblock/timeblock.css .tb-state.now inside .tb-day.now, which has the --you-row magenta tint). Yuba light only; the JRD look and Yuba dark (pink on a dark tint) are untouched. */
:root[data-brand='yuba'][data-theme='light'] .tb-day.now .tb-state.now { color: var(--now-ink); }
