/*
 * Themes redefine semantic tokens or the brand-hue knob. Set them on <html>
 * only: tokens are computed on :root, so a theme attribute on a nested
 * element won't reach them.
 *
 *   <html data-theme="dark" data-brand="acme">
 *
 * Selectors include :root so they always beat the defaults, whatever order
 * the files load in. Check each theme's contrast by hand in the style guide.
 */
@layer tokens {
  /* An explicit choice overrides the OS preference. */
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"]  { color-scheme: dark; }

  /* Brand or tenant themes, for example:
  :root[data-brand="acme"]   { --brand-hue: 145; }
  :root[data-brand="globex"] { --brand-hue: 30; --radius-control: var(--radius-sm); }
  */
}
