/* Brand tokens (palette P1 "violeta + rosa", decided 2026-10-13). Values mirror COLORS in brand.js; summary in /design.md.
   The primary keeps the token name --anil so nothing downstream is renamed; its value is now violet.
   Subject accents (--bio, --geo) are unchanged from shared/style.css. --fis and --qui (Física e Química A) differ in lightness
   and have their own dark values, so the pair stays apart for colour-blind readers too. --por (Português) is a dark sepia (docs/08-brand.md).
   Use: <link rel="stylesheet" href="brand/brand.css">, then var(--anil) etc. Dark values switch with prefers-color-scheme
   unless the page sets data-theme="light"; data-theme="dark" forces them. */
:root{
  /* primary: main action, current step, progress, links. White text on it: 6.2:1 */
  --anil:#8338cc;--anil-deep:#5b2296;--anil-soft:#efe5fb;--anil-light:#c4a6ff;
  /* accent: the signpost, small highlights, "novo". Ink text on it, never white text. Never for errors. */
  --rosa:#ee6a8a;--rosa-soft:#fbe3ea;
  /* small highlights only: the active caption word, tips. Never a large yellow shape on blue or violet. */
  --sol:#ffd45c;--sol-deep:#e3b23c;--sol-soft:#f8eccb;
  --paper:#fbfaf6;--card:#ffffff;--ink:#1d1d1b;--muted:#6b6a64;--line:#e3e0d6;--soft:#f1eee5;
  --bio:#2f8f5b;--bio-soft:#dff0e5;--geo:#c4672b;--geo-soft:#f6e4d6;--mat:#2b6cb0;--mat-soft:#dde8f6;
  --fis:#127a86;--fis-soft:#dbeff1;--qui:#7a1f5c;--qui-soft:#f3dfea;--por:#5c4a1e;--por-soft:#ece6da;
  --ok:#2e9b57;--ok-deep:#23794a;--line-strong:#8f8c84;--ok-soft:#e3f4e9;--bad:#c8423a;--bad-soft:#f8e1df;
  /* answer feedback: "Certo!" on ok-soft, "Quase." on the primary's soft tint (not yellow) */
  --quase-bg:var(--anil-soft);--quase-line:var(--anil);
  /* charts (owner view): two series, validated for colour-blind separation; rose needs a legend or labels on paper */
  --viz-1:#8338cc;--viz-2:#ee6a8a;
  --stone:#ddd5c7;--stone-deep:#c4b8a5;--stone-line:#463e33;
  --brand-font:'Atkinson Hyperlegible',system-ui,sans-serif;
  /* corner radius scale: at most two radii on one screen; nested elements get a smaller radius than their container */
  --r-xs:6px;   /* tiny tags, inline code */
  --r-sm:10px;  /* thumbnails, inputs inside cards */
  --r-md:14px;  /* buttons, inputs, quiz options */
  --r-lg:20px;  /* cards, sheets, panels, the video frame */
  --r-pill:999px; /* small status chips only ("agora", "brevemente") */
  --r-card:var(--r-lg);--r-tile:var(--r-lg); /* old names, kept as aliases */
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --anil:#b38cff;--anil-deep:#dccbff;--anil-soft:#2a1d40;
    --rosa-soft:#3a1f29;
    --paper:#141412;--card:#1c1c19;--ink:#f1efe8;--muted:#a6a39a;--line:#33322e;--soft:#25241f;
    --ok-soft:#17321f;--bad-soft:#3a1a17;--sol-soft:#3a2f12;
    --viz-1:#9466e0;--viz-2:#d9577a;--fis:#7ad3dc;--qui:#c75a98;--por:#c9a86a;
  }
}
:root[data-theme="dark"]{
  --anil:#b38cff;--anil-deep:#dccbff;--anil-soft:#2a1d40;
  --rosa-soft:#3a1f29;
  --paper:#141412;--card:#1c1c19;--ink:#f1efe8;--muted:#a6a39a;--line:#33322e;--soft:#25241f;
  --ok-soft:#17321f;--bad-soft:#3a1a17;--sol-soft:#3a2f12;
  --viz-1:#9466e0;--viz-2:#d9577a;--fis:#7ad3dc;--qui:#c75a98;--por:#c9a86a;
}
