/* =====================================================================================================
   THEME: the one file to edit to rebrand the site.
   Everything visual that is brand-specific lives here as CSS variables: site name, fonts, colours. The artwork (the
   O3 mark in the header, product icons, "By CornHub", favicons, the announcement banner) is the owner's final art in
   docs/brand/final, served from static/brand (scripts/brand_assets.py copies it; review 11, C).
   The pages (site.css), the page titles and the generated announcement images (Python reads this file)
   all use these values. Brand palette from docs/BRAND.md (30 Nov 2026); name: Onyx OC OS, "O3" for short
   (owner decision, review 5).
   Colour rules to keep when rebranding: claims green (--claim), premiums neutral grey (--premium),
   never red for money; dark theme is the default.
   ===================================================================================================== */
:root {
  /* identity */
  --site-name: "Onyx OC OS";
  --site-short: "O3";
  --site-tagline: "Make more money · Spend less time · Get paid when OCs fail";

  /* fonts */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  --font-mono: ui-monospace, "DejaVu Sans Mono", Menlo, monospace;
  --font-torn: "Arial Narrow", Arial, sans-serif;     /* Torn-style role cards */

  /* dark theme (default) - brand palette from docs/BRAND.md */
  --bg: #0d0f0e;              /* page background (green-grey darkest) */
  --header: #340761;          /* deep purple: header bar and active nav */
  --header-ink: #f6fbf8;      /* text on the header (14.9:1) */
  --header-muted: #cbb5e8;    /* secondary text on the header */
  --panel: #202622;           /* cards / panels */
  --panel2: #29302b;          /* table headers, hover (a step lighter than the cards) */
  --line: #36423b;            /* borders: a dark tint of the muted green-grey */
  --text: #ccd8d1;            /* body text */
  --heading: #f6fbf8;         /* headings */
  --muted: #8fa89a;           /* secondary text: lighter tint of #6F8A7B so it stays readable on cards (6.0:1) */
  --muted-line: #6f8a7b;      /* the brand's muted green-grey, used for subtle borders/dividers */
  --accent: #6115ad;          /* brand purple: buttons */
  --accent-hover: #7c10e9;
  --accent-ink: #ffffff;      /* text on accent buttons (9.5:1) */
  --link: #c491f7;            /* accent text on dark (6.4:1 on cards) */
  --focus: #a04ff2;           /* highlights and focus rings */
  --chip: #2c3530;
  --claim: #5fd99a;           /* claims and gains: soft mint green (8.7:1 on cards) */
  --claim-bg: rgba(95,217,154,.12);
  --shadow: rgba(0,0,0,.35);
  --premium: #a9b6ae;         /* prices and fees: neutral grey, never red */
  --warn: #e0b04a;            /* banners and amber lights (never used for money) */
  --warn-bg: rgba(224,176,74,.12);
  --alert: #e08a5e;           /* red/amber lights on the owner's risk page only */
  --alert-bg: rgba(224,138,94,.14);
  --chart-1: #a04ff2;         /* charts: brand ramp */
  --chart-2: #c491f7;
  --gold: #e3b450;            /* brand gold (review 11, C7): the small product marks O P I (review 13, D1), beside the icons;
                                 never for money figures (money stays green-grey / mint) */

  /* the announcement image: a flight-departure board (review 6) */
  --board-bg: #050505;
  --board-row: #121212;
  --board-amber: #ffb000;
  --board-dim: #9a7a33;
  --board-white: #f2f2f2;

  /* Torn-style role cards (they copy Torn's own look on purpose) */
  --torn-row: #2a2d24;
  --torn-card-top: #3b4130;
  --torn-card-bottom: #2c3024;
  --torn-line: #4d553a;
  --torn-name: #15170f;
  --torn-text: #e8e8df;
  --torn-dot: #7ad8e8;
  --cpr-high: #8fd14f;        /* CPR 75+ (Torn's green) */
  --cpr-mid: #e5c13a;         /* CPR 60-74 */
  --cpr-low: #e8893f;         /* CPR under 60 */

  /* tier diamonds */
  --tier-bronze: #b77a52;
  --tier-silver: #9aa3ad;
  --tier-gold: #e6c22e;

  --overlay: rgba(0,0,0,.65);   /* behind pop-ups */
  --radius: 10px;
}

:root[data-theme="light"] {
  --bg: #f6fbf8; --header: #340761; --panel: #ffffff; --panel2: #eef4f0; --line: #d3ded7; --text: #202622;
  --heading: #0d0f0e; --muted: #4f6659; --muted-line: #6f8a7b; --accent: #6115ad; --accent-hover: #7c10e9;
  --accent-ink: #ffffff; --link: #6115ad; --focus: #a04ff2; --chip: #e6eee9;
  --claim: #1d7a48; --claim-bg: rgba(29,122,72,.10); --shadow: rgba(0,0,0,.12); --premium: #5b6a62;
  --warn: #8a5f00; --warn-bg: rgba(138,95,0,.10); --alert: #b8571f; --alert-bg: rgba(184,87,31,.10);
  --gold: #7d5c10;            /* the brand gold, darkened so a symbol stays readable on white (owner pages only) */
}
