/* BothChairs design tokens (PC8, 2026-10-31): the one place the app's colors and type are written. Every other stylesheet
   uses var(--token); tests/unit/test_brand_tokens.py holds that, and each theme's text and control contrast to WCAG AA.
   A theme is <html data-theme="...">: clearspace (the default, also with no attribute), afterhours, or system ("Match my
   device", which follows prefers-color-scheme with no script). docs/PROGRESS.md, "BothChairs rebrand", says how to add one. */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("brand/InterVariable.woff2") format("woff2")}

/* Brand Kit v1.0's canonical values (brand/bothchairs.css), the same in every theme, and what no theme changes. */
:root{
  --bothchairs-teal:#287E83;--bothchairs-indigo:#536AB0;--bothchairs-charcoal:#242A2D;--bothchairs-white:#FFFFFF;
  --bothchairs-font:"Inter",ui-sans-serif,system-ui,sans-serif;
  --font:var(--bothchairs-font);--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --radius:13px;--side:244px;
  /* Home's snapshot numbers in a row (clearspace.css .home-nums); renderHome sets it on each row to the count shown. */
  --home-n:4;
  /* The call screen is dark in every theme: faces and shared screens read best on it. */
  --call-bg:#0f141b;--call-tile:#1b232d;--call-black:#000000;--call-ink:#FFFFFF;--call-dim:#aab4bf;--call-btn:rgba(255,255,255,.14);
  --call-chip:rgba(0,0,0,.55);--call-bad:#a8332a;--call-on:var(--bothchairs-teal);
}

/* Clearspace, the default: Brand Guide colors on the approved reference's light neutrals. */
:root,[data-theme="clearspace"]{
  color-scheme:light;
  --bg:#f5f7f8;--panel:#FFFFFF;--raised:#FFFFFF;--sunken:#eef2f4;--hover:#eef2f4;--chrome:#FFFFFF;--rail:#FFFFFF;
  --ink:var(--bothchairs-charcoal);--ink2:#46535c;--muted:#5b6a74;--ink3:#5b6a74;
  --line:#dce3e7;--control-line:#7f8d97;
  --primary:var(--bothchairs-teal);--on-primary:#FFFFFF;--primary-hover:#21696e;--primary-soft:#e7f1f2;--primary-ink:#1f666b;
  --secondary:var(--bothchairs-indigo);--on-secondary:#FFFFFF;--secondary-soft:#e9edf8;--secondary-ink:#45599b;
  --nav-active-bg:#e7f1f2;--nav-active-ink:#1f666b;--focus:var(--bothchairs-teal);
  --me-bg:var(--bothchairs-teal);--on-me:#FFFFFF;--mention-bg:#e7f1f2;--mention-ink:#1f666b;--mention-me-bg:rgba(255,255,255,.22);--mark-bg:#ffe3ad;
  --good:#1f7a55;--good-bg:#e3f3ea;--good-ink:#17573c;
  --warn:#945d11;--warn-bg:#fff1db;--warn-ink:#6e4409;--warn-line:#f0d6a8;
  --bad:#a8332a;--bad-bg:#fbe9e7;--bad-ink:#7f231b;
  --info-bg:#e9edf8;--info-ink:#3b4f8f;
  --attention:#945d11;--on-attention:#FFFFFF;
  --file-doc:var(--bothchairs-teal);--file-doc-glyph:#FFFFFF;--file-sheet:var(--bothchairs-indigo);--file-sheet-glyph:#FFFFFF;--file-slides:var(--bothchairs-charcoal);--file-slides-glyph:#FFFFFF;
  --scrim:rgba(36,42,45,.45);--shadow-c1:rgba(36,42,45,.08);--shadow-c2:rgba(36,42,45,.16);--shadow:0 18px 55px rgba(36,42,45,.12);
}

/* Afterhours: the reference's graphite neutrals. Indigo on charcoal is weak, so its interface accent is lighter, with dark
   text on it; the logo never changes (the all-white wordmark and icon, the Guide's default on charcoal). The block inside
   the media query below is this one again: a test holds the two the same. */
[data-theme="afterhours"]{
  color-scheme:dark;
  --bg:#101218;--panel:#191c24;--raised:#222632;--sunken:#262a36;--hover:#262a36;--chrome:#191c24;--rail:#14161d;
  --ink:#f0f2fa;--ink2:#c6cbd9;--muted:#a5acbd;--ink3:#a5acbd;
  --line:#333845;--control-line:#7a8195;
  --primary:var(--bothchairs-teal);--on-primary:#FFFFFF;--primary-hover:#226d72;--primary-soft:#20383c;--primary-ink:#7fd0d5;
  --secondary:#aab8ee;--on-secondary:#101218;--secondary-soft:#252d4a;--secondary-ink:#b9c5f2;
  --nav-active-bg:var(--bothchairs-teal);--nav-active-ink:#FFFFFF;--focus:#7fd0d5;
  --me-bg:var(--bothchairs-teal);--on-me:#FFFFFF;--mention-bg:#20383c;--mention-ink:#7fd0d5;--mention-me-bg:rgba(0,0,0,.25);--mark-bg:#5c4a2a;
  --good:#6ed3a3;--good-bg:#1d3a2e;--good-ink:#a6ebc8;
  --warn:#f5ce81;--warn-bg:#3b3020;--warn-ink:#f5ce81;--warn-line:#5c4a2a;
  --bad:#ff9d92;--bad-bg:#43221f;--bad-ink:#ffbdb5;
  --info-bg:#252d4a;--info-ink:#b9c5f2;
  --attention:#f5ce81;--on-attention:#101218;
  --file-doc:var(--bothchairs-teal);--file-doc-glyph:#FFFFFF;--file-sheet:#aab8ee;--file-sheet-glyph:#101218;--file-slides:#f0f2fa;--file-slides-glyph:#101218;
  --scrim:rgba(0,0,0,.6);--shadow-c1:rgba(0,0,0,.35);--shadow-c2:rgba(0,0,0,.55);--shadow:0 18px 55px rgba(0,0,0,.45);
}
@media (prefers-color-scheme:dark){
  [data-theme="system"]{
    color-scheme:dark;
    --bg:#101218;--panel:#191c24;--raised:#222632;--sunken:#262a36;--hover:#262a36;--chrome:#191c24;--rail:#14161d;
    --ink:#f0f2fa;--ink2:#c6cbd9;--muted:#a5acbd;--ink3:#a5acbd;
    --line:#333845;--control-line:#7a8195;
    --primary:var(--bothchairs-teal);--on-primary:#FFFFFF;--primary-hover:#226d72;--primary-soft:#20383c;--primary-ink:#7fd0d5;
    --secondary:#aab8ee;--on-secondary:#101218;--secondary-soft:#252d4a;--secondary-ink:#b9c5f2;
    --nav-active-bg:var(--bothchairs-teal);--nav-active-ink:#FFFFFF;--focus:#7fd0d5;
    --me-bg:var(--bothchairs-teal);--on-me:#FFFFFF;--mention-bg:#20383c;--mention-ink:#7fd0d5;--mention-me-bg:rgba(0,0,0,.25);--mark-bg:#5c4a2a;
    --good:#6ed3a3;--good-bg:#1d3a2e;--good-ink:#a6ebc8;
    --warn:#f5ce81;--warn-bg:#3b3020;--warn-ink:#f5ce81;--warn-line:#5c4a2a;
    --bad:#ff9d92;--bad-bg:#43221f;--bad-ink:#ffbdb5;
    --info-bg:#252d4a;--info-ink:#b9c5f2;
    --attention:#f5ce81;--on-attention:#101218;
    --file-doc:var(--bothchairs-teal);--file-doc-glyph:#FFFFFF;--file-sheet:#aab8ee;--file-sheet-glyph:#101218;--file-slides:#f0f2fa;--file-slides-glyph:#101218;
    --scrim:rgba(0,0,0,.6);--shadow-c1:rgba(0,0,0,.35);--shadow-c2:rgba(0,0,0,.55);--shadow:0 18px 55px rgba(0,0,0,.45);
  }
}

/* The logo follows the theme: each place draws both versions of the kit's artwork and these show one. Color on Clearspace,
   all white on Afterhours (Brand Guide p. 4 and p. 7). Never recolored, filtered or redrawn. */
.logo-dark{display:none}
[data-theme="afterhours"] .logo-light{display:none}
[data-theme="afterhours"] .logo-dark{display:inline-block}
@media (prefers-color-scheme:dark){
  [data-theme="system"] .logo-light{display:none}
  [data-theme="system"] .logo-dark{display:inline-block}
}
