﻿/* Control Room operator UI (Package B, 2026-11-08). One action colour (pitch green); red only for CONFIRMED on-air and danger;
   amber for warnings and for "sent to program, no OBS confirms it". Team colours are data, never action colours.
   Decorative lines are not functional control boundaries: controls use --fo-control-line (WCAG 1.4.11). */
@import url('./fonts/fonts.css');
:root, :root[data-theme=light] {
 color-scheme:light;
 /* surfaces: quiet green-grey neutrals */
 --fo-ground:#eceee9; --fo-surface:#ffffff; --fo-raised:#f4f5f1; --fo-sunken:#e4e7e1;
 --fo-line:#dcded7; --fo-line-strong:#b3b9b0; --fo-control-line:#6c776f;
 --fo-text:#111a15; --fo-muted:#56625b; --fo-faint:#7a857e; /* faint: decorative and disabled only */
 /* the one action colour: deep pitch green */
 --fo-brand:#0d6b46; --fo-brand-hover:#0a5a3a; --fo-brand-ink:#ffffff; --fo-brand-soft:#e0eee6; --fo-brand-line:#b4d4c2;
 /* state colours */
 --fo-live:#c32d35; --fo-danger:#c32d35; --fo-live-soft:#fbe7e8;
 --fo-ok:#0d6b46; --fo-warn:#8f5b00; --fo-warn-ink:#8f5b00; --fo-warn-soft:#f8efd9; --fo-warn-line:#e1c685;
 --fo-focus:#0d6b46; --fo-focus-halo:#0d6b4640;
 /* Football card icons only. Team colours are data, not action colours. */
 --fo-card-yellow:#f2c200; --fo-card-red:#d62a2f;
 --fo-team-a:var(--fo-brand); --fo-team-b:var(--fo-muted);
 --fo-clear:transparent; --fo-white:#ffffff; --fo-scrim:#0f111499;
 /* stadium-night video frames inside the UI (program and preview) */
 --fo-frame:#0f1a15; --fo-frame-line:#2b3a32;
 --fo-preview-dark:#0f1a15; --fo-preview-light:#eceee9; --fo-preview-pitch:#185c3b;
 /* type: Plex for body and controls, Kufi for headings, team names and the wordmark, Barlow for numerals */
 --fo-font:'IBM Plex Sans Arabic','Noto Sans Arabic',system-ui,sans-serif;
 --fo-display:'Kufi','Noto Kufi Arabic','IBM Plex Sans Arabic','Noto Sans Arabic',system-ui,sans-serif;
 --fo-num:'Barlow Condensed',var(--fo-font);
 --fo-fs-xs:14px; --fo-fs-sm:15px; --fo-fs-md:16px; --fo-fs-lg:18px;
 --fo-fs-xl:22px; --fo-fs-2xl:28px; --fo-fs-3xl:36px;
 --fo-fs-score:clamp(64px,8vw,112px); --fo-fs-clock:40px;
 --fo-leading-xs:20px; --fo-leading-sm:22px; --fo-leading-md:26px;
 --fo-leading-lg:28px; --fo-leading-xl:32px; --fo-leading-2xl:38px; --fo-leading-3xl:46px;
 --fo-weight-label:500; --fo-weight-body:400; --fo-weight-action:600; --fo-weight-heading:700; --fo-weight-display:800;
 /* rhythm: 4pt base */
 --fo-space-1:4px; --fo-space-2:8px; --fo-space-3:12px; --fo-space-4:16px;
 --fo-space-5:20px; --fo-space-6:24px; --fo-space-7:32px; --fo-space-8:48px; --fo-space-9:64px;
 --fo-r-sm:8px; --fo-r-md:12px; --fo-r-lg:16px; --fo-r-pill:999px;
 /* elevation: declared once, as shadow; dark swaps it for a hairline ring */
 --fo-shadow-0:none;
 --fo-shadow-1:0 1px 0 rgba(17,26,21,.04),0 1px 3px rgba(17,26,21,.06),0 10px 28px -14px rgba(17,26,21,.18);
 --fo-shadow-2:0 2px 6px rgba(17,26,21,.08),0 28px 56px -22px rgba(17,26,21,.34);
 /* motion: transform and opacity only; exits faster than entrances */
 --fo-dur-press:90ms; --fo-dur-fast:140ms; --fo-dur-base:220ms; --fo-dur-slow:360ms;
 --fo-ease:cubic-bezier(.2,.8,.2,1); --fo-ease-in:cubic-bezier(.4,0,1,1);
 --fo-hit:48px; --fo-hit-compact:44px;
}
:root[data-theme=dark] {
 color-scheme:dark;
 --fo-ground:#0d110f; --fo-surface:#141a17; --fo-raised:#1b221e; --fo-sunken:#0a0d0b;
 --fo-line:#27302b; --fo-line-strong:#3d4942; --fo-control-line:#88948c;
 --fo-text:#edf2ee; --fo-muted:#a3afa7; --fo-faint:#76837b;
 --fo-brand:#4bbf8b; --fo-brand-hover:#63cd9d; --fo-brand-ink:#06130d; --fo-brand-soft:#14291f; --fo-brand-line:#25573e;
 --fo-live:#ff7f7a; --fo-danger:#ff7f7a; --fo-live-soft:#351a1b;
 --fo-ok:#4bbf8b; --fo-warn:#e3b45a; --fo-warn-ink:#e3b45a; --fo-warn-soft:#2c2311; --fo-warn-line:#5a4720;
 --fo-focus:#4bbf8b; --fo-focus-halo:#4bbf8b45;
 --fo-frame:#07100c; --fo-frame-line:#27362d;
 --fo-preview-dark:#07100c;
 --fo-shadow-1:inset 0 0 0 1px var(--fo-line);
 --fo-shadow-2:inset 0 0 0 1px var(--fo-line-strong),0 28px 56px -22px rgba(0,0,0,.75);
}
:root[data-theme=contrast] {
 color-scheme:dark;
 --fo-ground:#000000; --fo-surface:#000000; --fo-raised:#111111; --fo-sunken:#000000;
 --fo-line:#ffffff; --fo-line-strong:#ffffff; --fo-text:#ffffff; --fo-muted:#eeeeee; --fo-faint:#eeeeee;
 --fo-brand:#7dffb0; --fo-brand-hover:#ffffff; --fo-brand-ink:#000000; --fo-brand-soft:#10291a; --fo-brand-line:#ffffff;
 --fo-live:#ffb1ac; --fo-danger:#ffb1ac; --fo-live-soft:#301315;
 --fo-ok:#7dffb0; --fo-warn:#ffe080; --fo-warn-ink:#ffe080; --fo-warn-soft:#111111; --fo-warn-line:#ffffff;
 --fo-focus:#7dffb0; --fo-focus-halo:#7dffb033; --fo-control-line:#ffffff;
 --fo-frame:#000000; --fo-frame-line:#ffffff;
 --fo-preview-dark:#000000;
 --fo-shadow-1:none; --fo-shadow-2:none;
}
@media(prefers-color-scheme:dark) {
 :root:not([data-theme]) {
 color-scheme:dark;
 --fo-ground:#0d110f; --fo-surface:#141a17; --fo-raised:#1b221e; --fo-sunken:#0a0d0b;
 --fo-line:#27302b; --fo-line-strong:#3d4942; --fo-control-line:#88948c;
 --fo-text:#edf2ee; --fo-muted:#a3afa7; --fo-faint:#76837b;
 --fo-brand:#4bbf8b; --fo-brand-hover:#63cd9d; --fo-brand-ink:#06130d; --fo-brand-soft:#14291f; --fo-brand-line:#25573e;
 --fo-live:#ff7f7a; --fo-danger:#ff7f7a; --fo-live-soft:#351a1b;
 --fo-ok:#4bbf8b; --fo-warn:#e3b45a; --fo-warn-ink:#e3b45a; --fo-warn-soft:#2c2311; --fo-warn-line:#5a4720;
 --fo-focus:#4bbf8b; --fo-focus-halo:#4bbf8b45;
 --fo-frame:#07100c; --fo-frame-line:#27362d;
 --fo-preview-dark:#07100c;
 --fo-shadow-1:inset 0 0 0 1px var(--fo-line);
 --fo-shadow-2:inset 0 0 0 1px var(--fo-line-strong),0 28px 56px -22px rgba(0,0,0,.75);
}
}
@media(prefers-reduced-motion:reduce) {
 :root {--fo-dur-press:0ms;--fo-dur-fast:0ms;--fo-dur-base:0ms;--fo-dur-slow:0ms}
}
/* LEGACY ALIASES — marked for deletion as screens migrate.
   This is the only compatibility map. Important defeats later legacy palettes,
   including body-scoped declarations. Renderer/team/geometry variables stay data.
   Package B: --fo-sunken, --fo-faint and the amber soft surface are real tokens now (no alias). */
:root,:root[data-theme],:root body,:root[data-theme] body {
 --bg:var(--fo-ground)!important; --panel:var(--fo-surface)!important;
 --surface:var(--fo-surface)!important; --raised:var(--fo-raised)!important;
 --soft:var(--fo-raised)!important;
 --text:var(--fo-text)!important; --muted:var(--fo-muted)!important; --line:var(--fo-line)!important;
 --accent:var(--fo-brand)!important; --on-accent:var(--fo-brand-ink)!important;
 --danger:var(--fo-danger)!important; --danger-line:var(--fo-danger)!important;
 --yellow:var(--fo-warn-ink)!important; --yellow-line:var(--fo-warn-ink)!important;
 --yellow-bg:var(--fo-warn-soft)!important; --red-bg:var(--fo-live-soft)!important;
 --goal-bg:var(--fo-brand-soft)!important; --selected:var(--fo-brand-soft)!important;
 --radius:var(--fo-r-md)!important;
 --dc-bg:var(--fo-ground)!important; --dc-surface:var(--fo-surface)!important;
 --dc-ink:var(--fo-text)!important; --dc-muted:var(--fo-muted)!important; --dc-line:var(--fo-line)!important;
 --dc-primary:var(--fo-brand)!important; --dc-on-primary:var(--fo-brand-ink)!important;
 --dc-danger:var(--fo-danger)!important; --dc-soft:var(--fo-raised)!important;
 --dc-focus:var(--fo-focus)!important; --dc-warn:var(--fo-warn-ink)!important;
 --fo-panel:var(--fo-surface)!important;
 --fo-tally:var(--fo-live)!important;
 --fo-tally-fill:var(--fo-live)!important; --fo-tally-ink:var(--fo-brand-ink)!important;
 --fo-tally-soft:var(--fo-live-soft)!important; --fo-preview:var(--fo-brand)!important;
 --fo-preview-ink:var(--fo-brand-ink)!important; --fo-preview-soft:var(--fo-brand-soft)!important;
 --fo-amber:var(--fo-warn-ink)!important; --fo-amber-ink:var(--fo-ground)!important;
 --fo-amber-soft:var(--fo-warn-soft)!important; --fo-team-edge:var(--fo-line)!important;
 --fo-fs-12:var(--fo-fs-xs)!important; --fo-fs-14:var(--fo-fs-sm)!important;
 --fo-fs-16:var(--fo-fs-md)!important; --fo-fs-20:var(--fo-fs-lg)!important;
 --fo-fs-28:var(--fo-fs-2xl)!important; --fo-fs-44:var(--fo-fs-clock)!important;
 --fo-fs-72:var(--fo-fs-score)!important;
 --fo-lh-tight:1.15; --fo-lh-ui:1.4; --fo-lh-text:1.55;
 --fo-s1:var(--fo-space-1); --fo-s2:var(--fo-space-2); --fo-s3:var(--fo-space-3);
 --fo-s4:var(--fo-space-4); --fo-s5:var(--fo-space-5); --fo-s6:var(--fo-space-6);
 --fo-s8:var(--fo-space-7); --fo-s10:var(--fo-hit-compact); --fo-s12:var(--fo-space-8);
 --fo-float:var(--fo-shadow-2); --fo-hit-touch:var(--fo-hit);
 --fo-fast:var(--fo-dur-fast); --fo-base:var(--fo-dur-base); --fo-slow:var(--fo-dur-slow);
}
