/* Tessera brand tokens (2026-11-24): one shared colour file for every Tessera site.
   Copied from the main app (tessera.pe), which defines these --tc-* colours for light and dark; the names and values
   are kept identical so the Hub, the challenge page, the admin, content review and the creator site can all point at
   the same file. See the "Tessera branding breakdown" doc for the proposed standard built on them.

   Step 2 (2026-11-24): every Hub page links it; only the opt-in "tessera" / "tessera-dark" themes (theme.css) use the
   --tc-* values, so the other themes look as before.

   Light is the default. Dark applies to data-theme="dark" and data-theme="tessera-dark", and to the system dark setting
   only when no theme is set (auto: no data-theme attribute). Any chosen light theme ("tessera", "light", "glass") stays
   light under system dark. */
:root {
  /* type: Outfit 500 to 800 for text, Geist Mono for numbers, wallets and code */
  --tc-font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tc-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* text */
  --tc-ink: #0F0F0D;
  --tc-graphite: #2A2A25;
  --tc-muted: #686C62;
  --tc-muted-light: #9AA094;
  --tc-muted-faint: #C4C8BE;

  /* surfaces */
  --tc-cream: #FAF8F3;
  --tc-cream-deep: #F0EDE4;
  --tc-surface: #FFFFFF;
  --tc-sage: #E7EED4;
  --tc-auction-surface: #E6F0DD;
  --tc-skeleton: #EAE6DC;

  /* lines and fills */
  --tc-hairline-faint: rgba(15, 15, 13, 0.08);
  --tc-hairline: rgba(15, 15, 13, 0.10);
  --tc-border: rgba(15, 15, 13, 0.12);
  --tc-hairline-strong: rgba(15, 15, 13, 0.16);
  --tc-fill: rgba(15, 15, 13, 0.06);
  --tc-fill-subtle: rgba(15, 15, 13, 0.04);
  --tc-scrim: rgba(15, 15, 13, 0.45);

  /* brand lime: hero, highlights, logo tile, focus (not buttons) */
  --tc-lime: #CFF991;
  --tc-lime-soft: #B8E870;
  --tc-lime-wash: rgba(207, 249, 145, 0.35);
  --tc-accent-fill: #CFF991;
  --tc-accent-fill-soft: #B8E870;

  /* status and accents */
  --tc-green: #2A6A14;
  --tc-soft-green: #DDF3B3;
  --tc-yellow: #F7E78C;
  --tc-blue: #C8E0E8;
  --tc-peach: #F5D4B8;
  --tc-rust: #C77A4B;
  --tc-teal: #5C8F7D;
  --tc-danger: #A13A27;
  --tc-danger-soft: #FBE7E1;
  --tc-error: #C6473F;
  --tc-warning: #B7841E;
  --tc-warning-soft: #FFF0C7;

  /* dark panels and buttons */
  --tc-ink-panel: #0F0F0D;
  --tc-dark: #141A10;
  --tc-dark-tint: #1D2418;
  --tc-dark-button: #2A2A25;
  --tc-tint-strength: 100%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --tc-ink: #F8F6EF;
    --tc-graphite: #E2DFD5;
    --tc-muted: #A6AA9E;
    --tc-muted-light: #83887B;
    --tc-muted-faint: #4A4D45;
    --tc-cream: #070706;
    --tc-cream-deep: #171715;
    --tc-surface: #111110;
    --tc-sage: #12200B;
    --tc-auction-surface: #0C1808;
    --tc-skeleton: #1C1C19;
    --tc-hairline-faint: rgba(248, 246, 239, 0.08);
    --tc-hairline: rgba(248, 246, 239, 0.12);
    --tc-border: rgba(248, 246, 239, 0.15);
    --tc-hairline-strong: rgba(248, 246, 239, 0.21);
    --tc-fill: rgba(248, 246, 239, 0.08);
    --tc-fill-subtle: rgba(248, 246, 239, 0.05);
    --tc-scrim: rgba(0, 0, 0, 0.7);
    --tc-lime: #CFF991;
    --tc-lime-soft: #B8E870;
    --tc-lime-wash: rgba(190, 255, 92, 0.16);
    --tc-accent-fill: rgba(190, 255, 92, 0.20);
    --tc-accent-fill-soft: rgba(170, 245, 70, 0.26);
    --tc-green: #B6F26A;
    --tc-soft-green: #1A3A0C;
    --tc-yellow: #39331A;
    --tc-blue: #1B2C32;
    --tc-peach: #3A2A1E;
    --tc-rust: #E0976A;
    --tc-teal: #7CCBAD;
    --tc-danger: #F0876F;
    --tc-danger-soft: #3A1E18;
    --tc-error: #F2857C;
    --tc-warning: #E6B85A;
    --tc-warning-soft: #3A3018;
    --tc-ink-panel: #191917;
    --tc-dark: #132A08;
    --tc-dark-tint: #1B370E;
    --tc-dark-button: #33332D;
    --tc-tint-strength: 26%;
  }
}

:root[data-theme="dark"],
:root[data-theme="tessera-dark"] {
  --tc-ink: #F8F6EF;
  --tc-graphite: #E2DFD5;
  --tc-muted: #A6AA9E;
  --tc-muted-light: #83887B;
  --tc-muted-faint: #4A4D45;
  --tc-cream: #070706;
  --tc-cream-deep: #171715;
  --tc-surface: #111110;
  --tc-sage: #12200B;
  --tc-auction-surface: #0C1808;
  --tc-skeleton: #1C1C19;
  --tc-hairline-faint: rgba(248, 246, 239, 0.08);
  --tc-hairline: rgba(248, 246, 239, 0.12);
  --tc-border: rgba(248, 246, 239, 0.15);
  --tc-hairline-strong: rgba(248, 246, 239, 0.21);
  --tc-fill: rgba(248, 246, 239, 0.08);
  --tc-fill-subtle: rgba(248, 246, 239, 0.05);
  --tc-scrim: rgba(0, 0, 0, 0.7);
  --tc-lime: #CFF991;
  --tc-lime-soft: #B8E870;
  --tc-lime-wash: rgba(190, 255, 92, 0.16);
  --tc-accent-fill: rgba(190, 255, 92, 0.20);
  --tc-accent-fill-soft: rgba(170, 245, 70, 0.26);
  --tc-green: #B6F26A;
  --tc-soft-green: #1A3A0C;
  --tc-yellow: #39331A;
  --tc-blue: #1B2C32;
  --tc-peach: #3A2A1E;
  --tc-rust: #E0976A;
  --tc-teal: #7CCBAD;
  --tc-danger: #F0876F;
  --tc-danger-soft: #3A1E18;
  --tc-error: #F2857C;
  --tc-warning: #E6B85A;
  --tc-warning-soft: #3A3018;
  --tc-ink-panel: #191917;
  --tc-dark: #132A08;
  --tc-dark-tint: #1B370E;
  --tc-dark-button: #33332D;
  --tc-tint-strength: 26%;
}

/* ---- Chart colours (2026-11-24): NOT from tessera.pe ----
   tessera.pe has no per-token chart colours, so these are a one-off of the brand standard (dash/BRAND.md, "Chart
   colours"), starting from the Hub's own --tk-* values. They live in this separate block so every --tc-* token above stays
   identical to tessera.pe's. Blue is for charts only, never buttons. Same light / dark rule as above. */
:root {
  --tc-chart-oai: #4A3AA7; --tc-chart-kal: #1BAF7A; --tc-chart-spx: #EDA100; --tc-chart-and: #0891B2; --tc-chart-dbx: #E8442E;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --tc-chart-oai: #9085E9; --tc-chart-kal: #199E70; --tc-chart-spx: #C98500; --tc-chart-and: #22B8D6; --tc-chart-dbx: #F0644F;
  }
}
:root[data-theme="dark"],
:root[data-theme="tessera-dark"] {
  --tc-chart-oai: #9085E9; --tc-chart-kal: #199E70; --tc-chart-spx: #C98500; --tc-chart-and: #22B8D6; --tc-chart-dbx: #F0644F;
}
