/*! Semantik Blazor UI — base layer.
 *
 * The document reset the components are written against. It is Tailwind CSS v4's preflight
 * (MIT, https://tailwindcss.com), which the app previously received through blaizio.css, reduced
 * to what the UI relies on and pointed at our tokens (--border, --background, --foreground).
 * Measured before the switch: every element's computed style is identical with this file in
 * place of blaizio.css.
 *
 * It lives in `@layer base`, as it did inside Tailwind, so every unlayered component rule in
 * app.css / theme-expression.css wins over it regardless of specificity.
 */
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
    border-color: var(--border);
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
    -webkit-tap-highlight-color: transparent;
  }

  hr { height: 0; color: inherit; border-top-width: 1px; }
  abbr:where([title]) { text-decoration: underline dotted; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  code, kbd, samp, pre { font-family: var(--font-mono, ui-monospace, Consolas, monospace); font-size: 1em; }
  small { font-size: 80%; }
  sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; }
  sub { bottom: -0.25em; }
  sup { top: -0.5em; }
  table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
  progress { vertical-align: baseline; }
  summary { display: list-item; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
  img, video { max-width: 100%; height: auto; }

  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: transparent;
    border-radius: 0;
  }
  ::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
  textarea { resize: vertical; }
  button, input:where([type=button], [type=reset], [type=submit]), ::file-selector-button { appearance: button; }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
  ::-webkit-search-decoration { -webkit-appearance: none; }
  [hidden]:where(:not([hidden=until-found])) { display: none !important; }

  body { background-color: var(--background); color: var(--foreground); }

  /* Status tokens every palette shares (themes.css may override them per theme). */
  :root {
    --destructive: oklch(52% 0.19 28);
    --destructive-foreground: oklch(99% 0 0);
    --success: oklch(50% 0.12 165);
    --success-foreground: oklch(99% 0 0);
    --warning: oklch(51% 0.12 75);
    --warning-foreground: oklch(99% 0 0);
    --info: oklch(50% 0.12 250);
    --info-foreground: oklch(99% 0 0);
  }
  .dark {
    --destructive: oklch(70% 0.15 25);
    --destructive-foreground: oklch(18% 0.03 25);
    --success: oklch(75% 0.13 165);
    --success-foreground: oklch(18% 0.03 165);
    --warning: oklch(78% 0.13 80);
    --warning-foreground: oklch(18% 0.03 80);
    --info: oklch(75% 0.11 245);
    --info-foreground: oklch(18% 0.03 245);
  }
}
