/* HamNETController — colour schemes.
 *
 * Everything in the app consumes these tokens; no page names a colour directly.
 * A scheme is just a redefinition of the same names under a [data-scheme]
 * attribute, so adding one means adding a block here and a row in colors/.
 */
:root,
[data-scheme="navy"]{
  --bg:#0a1119; --raised:#111d2b; --line:#22344a;
  --ink:#c9d4de; --dim:#8794a2; --faint:#3d4b5c;
  --accent:#5aa2e0; --deep:#2f6798; --bright:#7fc4ff;
  --ok:#57ad74; --warn:#ff9e4e; --bad:#ff6b6b; --hand:#ffc24e;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --sans:system-ui,-apple-system,"Segoe UI",sans-serif;
}
[data-scheme="slate"]{
  --bg:#12161b; --raised:#1b2129; --line:#2b333d;
  --ink:#cdd6de; --dim:#8b96a1; --faint:#49535e;
  --accent:#7aa2c2; --deep:#436b83; --bright:#a8cde6;
  --ok:#6aa88a; --warn:#d79a5c; --bad:#d97a7a; --hand:#d9b55c;
}
[data-scheme="amber"]{
  --bg:#140f08; --raised:#1f1710; --line:#3a2d1e;
  --ink:#e4d8c6; --dim:#a8977f; --faint:#5e5140;
  --accent:#d79a3c; --deep:#8a6120; --bright:#f0bd68;
  --ok:#8fae5c; --warn:#e0a34d; --bad:#d9795c; --hand:#f0c86a;
}
[data-scheme="forest"]{
  --bg:#0b140f; --raised:#13211a; --line:#22382b;
  --ink:#c6d8cd; --dim:#86a292; --faint:#45604f;
  --accent:#4fa776; --deep:#2d6a49; --bright:#7fd1a1;
  --ok:#6cc48d; --warn:#d6a85e; --bad:#d97f7f; --hand:#d9c070;
}
[data-scheme="mono"]{
  --bg:#0e0e0e; --raised:#1a1a1a; --line:#2e2e2e;
  --ink:#cfcfcf; --dim:#8f8f8f; --faint:#555;
  --accent:#9a9a9a; --deep:#4a4a4a; --bright:#e8e8e8;
  --ok:#b5b5b5; --warn:#c9c9c9; --bad:#ffffff; --hand:#dcdcdc;
}
/* The one light scheme. Tokens keep their meaning — "raised" is still the
   surface that sits above the page — so nothing in the app needs to know. */
[data-scheme="daylight"]{
  --bg:#f3f5f7; --raised:#ffffff; --line:#d8dee4;
  --ink:#17212b; --dim:#5d6672; --faint:#9aa5b1;
  --accent:#1f6f8b; --deep:#0e4f66; --bright:#0e4f66;
  --ok:#1f7a45; --warn:#9a5b12; --bad:#a62020; --hand:#8a6400;
}

/* ---- Rigs and flags -------------------------------------------------------
 * Inspired by the gear, not affiliated with any of it. Contrast against each
 * scheme's own background is measured and recorded below; ink stays above 7:1
 * and dim and accent above 4.5:1, so every scheme is readable in a lit shack.
 */
[data-scheme="flex"]{   /* After the SmartSDR panadapter — near-black with a cyan trace.  ink 14.1:1, dim 7.0:1, accent 6.9:1 */
  --bg:#0a1014; --raised:#121c23; --line:#1f3039;
  --ink:#cfe0e8; --dim:#85a0ad; --faint:#3f565f;
  --accent:#00a9cc; --deep:#00657a; --bright:#4fd8f0;
  --ok:#52b788; --warn:#ff9e2c; --bad:#ff6b6b; --hand:#ffc24e;
}
[data-scheme="icom"]{   /* Icom's house blue.  ink 12.9:1, dim 6.1:1, accent 5.2:1 */
  --bg:#081322; --raised:#0f2038; --line:#1d3350;
  --ink:#c8d8ec; --dim:#7e95b2; --faint:#3c5173;
  --accent:#2b8ae0; --deep:#1657a0; --bright:#6cb8ff;
  --ok:#4fae7a; --warn:#f0a84a; --bad:#ff7272; --hand:#ffc95c;
}
[data-scheme="yaesu"]{   /* Dark grey panel, blue display — the look of an FT.  ink 12.7:1, dim 5.8:1, accent 4.6:1 */
  --bg:#0e1118; --raised:#191e29; --line:#2a3242;
  --ink:#ccd4e2; --dim:#8290a6; --faint:#454f63;
  --accent:#4a7ae0; --deep:#2a4c96; --bright:#89a9f5;
  --ok:#55ac7e; --warn:#f0a24a; --bad:#f07070; --hand:#f5c75e;
}
[data-scheme="kenwood"]{   /* Kenwood's deeper azure.  ink 12.7:1, dim 5.8:1, accent 4.8:1 */
  --bg:#070d1a; --raised:#101a30; --line:#1d2c4a;
  --ink:#c5d2e8; --dim:#7b8dab; --faint:#3a4a6b;
  --accent:#4a7ae8; --deep:#1e3f94; --bright:#8fb0ff;
  --ok:#4faa86; --warn:#f0a84a; --bad:#ff7676; --hand:#ffc95c;
}
[data-scheme="elecraft"]{   /* K-line grey with the green of a backlit display.  ink 13.1:1, dim 6.4:1, accent 8.5:1 */
  --bg:#0d100e; --raised:#171c18; --line:#283029;
  --ink:#cfd8cd; --dim:#8a9a88; --faint:#4a5a49;
  --accent:#6abf76; --deep:#39753f; --bright:#95e3a0;
  --ok:#7ccf87; --warn:#e0a93c; --bad:#e07a6a; --hand:#ddc05a;
}
[data-scheme="aussie"]{   /* Green and gold.  ink 14.3:1, dim 7.3:1, accent 12.1:1 */
  --bg:#08140d; --raised:#102118; --line:#1d3828;
  --ink:#d6e4d8; --dim:#8aa894; --faint:#44604f;
  --accent:#ffc82e; --deep:#9c7400; --bright:#ffe066;
  --ok:#3fae6a; --warn:#ffb020; --bad:#ff7a6a; --hand:#ffd84d;
}
[data-scheme="usa"]{   /* Navy, white and red.  ink 14.3:1, dim 6.7:1, accent 7.0:1 */
  --bg:#0a1330; --raised:#13204a; --line:#20305e;
  --ink:#dce4f2; --dim:#8e9dc0; --faint:#4a5a85;
  --accent:#7aa0e8; --deep:#2f4e9e; --bright:#eef2fa;
  --ok:#5fb183; --warn:#f0a84a; --bad:#e8505f; --hand:#ffd04d;
}
