/* ============================================================
   NSN MIL-SPEC SHARED THEME TOKENS — single source of truth
   ------------------------------------------------------------
   Consumed by:
     - isr41_v42_enhanced_10.html         (replaces inline :root at line 13
                                           and inline :root at line 991)
     - clients/authoring-app/index.html   (replaces clients/authoring-app/src/theme.css)

   Palette + typography + MIL-STD-2525D affiliation symbology.

   Provenance: NSNSIM-53 (2026-07-01) — merged from the two ISR42 top-level
   :root blocks. All values are ISR42-canonical (byte-identical to ISR42
   inline definitions at extraction time). The authoring app's earlier
   src/theme.css was a duplicate copy of the ISR42 line-13 block plus two
   extras (--font-mono, --fs-xl). Both extras are preserved in this file:
     - --font-mono: identical font stack to ISR42's --font-ui, exposed
       under the second name so existing authoring-app CSS (`var(--font-mono)`
       in 9 places in styles.css) continues to resolve without renaming.
     - --fs-xl: no usage in either client yet, kept for future demand.

   Deploy: served by Caddy under `/shared/*` (root: `/var/www/_shared/`).
   Both clients reference this file via absolute URL:
     <link rel="stylesheet" href="/shared/theme.css">

   To modify tokens: edit THIS file only. Do NOT reintroduce a per-app
   :root block that redefines these variables — that reintroduces the
   drift-risk this file exists to prevent. If a client-specific tweak is
   genuinely needed (e.g., a component-scoped variant), define a NEW token
   in the client's own layout stylesheet, do not shadow one defined here.

   Note: ISR42's @media (pointer:coarse) :root override at ex-line-1025
   is inseparable from its @media context and REMAINS INLINE in
   isr41_v42_enhanced_10.html. Not migrated.
   ============================================================ */

:root {
  /* --------- Backgrounds + surfaces --------- */
  --bg:#04080a;
  --panel:#080e10;
  --panel2:#0c1418;
  --border:#1a3040;
  --border2:#254050;

  /* --------- Text --------- */
  --text-primary:#c8e0ec;
  --text-dim:#5a8090;
  --text-accent:#00d4ff;
  --text-dim2:#7ab0c8;   /* lifted contrast floor for secondary text */

  /* --------- Semantic accents --------- */
  --red:#e03030;
  --amber:#d4a020;
  --green:#20c860;
  --cyan:#00d4ff;
  --magenta:#e030e0;
  --blue:#2060d0;
  --teal:#20a0a0;

  /* --------- 2525D affiliation primaries --------- */
  --hostile:#e03030;
  --friendly:#2060d0;
  --neutral:#d4a020;
  --unknown:#808080;

  /* --------- 2525D affiliation fills --------- */
  --fill-hostile:#ff8080;
  --fill-friendly:#80b0ff;
  --fill-neutral:#ffffa0;
  --fill-unknown:#e0e0e0;

  /* --------- 2525D affiliation strokes --------- */
  --stroke-hostile:#e03030;
  --stroke-friendly:#2060d0;
  --stroke-neutral:#c8a000;
  --stroke-unknown:#606060;

  /* --------- ISR-domain accents --------- */
  --rf-color:#00d4ff;
  --jam-color:#e030e0;
  --radar-color:#20c860;

  /* --------- Overlays --------- */
  --grid-color:rgba(0,180,255,0.07);
  --scanline:rgba(0,212,255,0.03);

  /* --------- Typography scale (readable floors, from ISR42 aesthetic overhaul) --------- */
  --fs-xs:0.80rem;   /* hard readable floor (was 0.45-0.65) */
  --fs-sm:0.90rem;
  --fs-md:1.00rem;
  --fs-lg:1.20rem;
  --fs-xl:1.5rem;    /* no consumer yet; kept for future demand */

  /* --------- Font stacks --------- */
  /* --font-mono and --font-ui resolve to the same monospace stack.
     Two names are exposed because ISR42 references --font-ui (aesthetic
     overhaul block) and authoring-app/src/styles.css references --font-mono
     in 9 places. Keeping both names avoids a rename churn beyond the scope
     of NSNSIM-53 (theme extraction). */
  --font-mono:'Roboto Mono','JetBrains Mono',ui-monospace,'Courier New',monospace;
  --font-ui:'Roboto Mono','JetBrains Mono',ui-monospace,'Courier New',monospace;
}
