/* ============================================================
   POCOMarine's own colours: navy and gold (Patrick, 2026-11-20: "whatever is coloured grey in the $POCO app (the
   background, header, everything) as like a dark navy blue/grey colour and gold accents (like poco marine) just to
   quickly differentiate the app from the hub as they look identical").

   Loaded by public/poco/index.html after /poco/base.css and /hub/shell.css, so only POCOMarine's page gets it: the Hub
   never loads this file. Nothing here but colour. Every screen takes its colours from the --hub-* tokens (docs/hub.md),
   so changing those here changes the menu, the page, the cards and every button together.

   Three parts:
     1. the page in dark mode   deep navy, gold accent (what he sees: his Mac and Pixel are dark)
     2. the page in light mode  a pale blue-grey page, a darker gold that reads on white
     3. the menu                navy with gold in BOTH modes, and the same colour for the installed app's title bar
                                (the theme-color metas in index.html), so the app is told apart at a glance either way
   The selectors repeat the Hub's own (:root:not([data-theme="light"]) inside the dark media query, then
   :root[data-theme="dark"]) so the footer's light / dark button keeps working.
   ============================================================ */

/* ---- 2. light mode ---- */
:root{
  --hub-bg:#f3f6fb;
  --hub-surface:#ffffff;
  --hub-surface-2:#e9eff8;
  --hub-sidebar:#0a1423;
  --hub-text:#13233f;
  --hub-text-muted:#4f5f7a;
  --hub-text-faint:#8793a9;
  --hub-border:rgba(19,45,95,.13);
  --hub-border-strong:rgba(19,45,95,.24);
  --hub-hover:rgba(19,45,95,.05);
  --hub-active:rgba(19,45,95,.09);
  --hub-accent:#966c00;                 /* gold dark enough to read as text and icons on white (4.7:1) */
  --hub-accent-tint:rgba(150,108,0,.12);
  --hub-on-accent:#ffffff;
  --hub-warn:#b85c12;                   /* orange, so a warning isn't mistaken for the gold accent */
  --hub-focus:0 0 0 2px rgba(150,108,0,.40);
  /* Tasking's older tokens, for the few shared rules that still read them */
  --bg-0:#f3f6fb; --bg-1:#f8fafd; --surface:#ffffff; --surface-2:#e9eff8; --tile-bg:#ffffff;
  --border:#d5deec; --border-strong:#bccadf;
  --text:#13233f; --text-muted:#4f5f7a; --text-faint:#8793a9;
  --primary:#966c00; --primary-hover:#7a5800; --primary-tint:#f3e7c4; --primary-tint-2:#faf4e0; --on-primary:#ffffff;
}

/* ---- 1. dark mode ---- */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --hub-bg:#0e1a2e;
    --hub-surface:#15243d;
    --hub-surface-2:#1b2d4b;
    --hub-sidebar:#0a1423;
    --hub-text:#e9eef7;
    --hub-text-muted:#a7b4c9;
    --hub-text-faint:#7484a0;
    --hub-border:rgba(150,180,255,.12);
    --hub-border-strong:rgba(150,180,255,.22);
    --hub-hover:rgba(150,180,255,.06);
    --hub-active:rgba(150,180,255,.12);
    --hub-accent:#e3b341;
    --hub-accent-tint:rgba(227,179,65,.16);
    --hub-on-accent:#1a1300;
    --hub-danger:#f08a7c;
    --hub-warn:#f29b5c;
    --hub-ok:#5fce9f;
    --hub-focus:0 0 0 2px rgba(227,179,65,.50);
    --bg-0:#0e1a2e; --bg-1:#122036; --surface:#15243d; --surface-2:#1b2d4b; --tile-bg:#192a46;
    --border:#243758; --border-strong:#314a74;
    --text:#e9eef7; --text-muted:#a7b4c9; --text-faint:#7484a0;
    --primary:#e3b341; --primary-hover:#f0c75e; --primary-tint:#3a3011; --primary-tint-2:#2b2a1c; --on-primary:#1a1300;
  }
}
:root[data-theme="dark"]{
  --hub-bg:#0e1a2e;
  --hub-surface:#15243d;
  --hub-surface-2:#1b2d4b;
  --hub-sidebar:#0a1423;
  --hub-text:#e9eef7;
  --hub-text-muted:#a7b4c9;
  --hub-text-faint:#7484a0;
  --hub-border:rgba(150,180,255,.12);
  --hub-border-strong:rgba(150,180,255,.22);
  --hub-hover:rgba(150,180,255,.06);
  --hub-active:rgba(150,180,255,.12);
  --hub-accent:#e3b341;
  --hub-accent-tint:rgba(227,179,65,.16);
  --hub-on-accent:#1a1300;
  --hub-danger:#f08a7c;
  --hub-warn:#f29b5c;
  --hub-ok:#5fce9f;
  --hub-focus:0 0 0 2px rgba(227,179,65,.50);
  --bg-0:#0e1a2e; --bg-1:#122036; --surface:#15243d; --surface-2:#1b2d4b; --tile-bg:#192a46;
  --border:#243758; --border-strong:#314a74;
  --text:#e9eef7; --text-muted:#a7b4c9; --text-faint:#7484a0;
  --primary:#e3b341; --primary-hover:#f0c75e; --primary-tint:#3a3011; --primary-tint-2:#2b2a1c; --on-primary:#1a1300;
}

/* ---- 3. the menu: navy and gold in both modes ---- */
#hubNav{
  --hub-sidebar:#0a1423;
  --hub-surface:#15243d;
  --hub-surface-2:#1b2d4b;
  --hub-text:#e9eef7;
  --hub-text-muted:#a7b4c9;
  --hub-text-faint:#7484a0;
  --hub-border:rgba(150,180,255,.12);
  --hub-border-strong:rgba(150,180,255,.22);
  --hub-hover:rgba(150,180,255,.07);
  --hub-active:rgba(150,180,255,.13);
  --hub-accent:#e3b341;
  --hub-accent-tint:rgba(227,179,65,.16);
  --hub-on-accent:#1a1300;
  --hub-focus:0 0 0 2px rgba(227,179,65,.50);
}

/* the one shared rule that puts white words on the accent colour: white on gold can't be read */
.hub-arrange-tip button{color:var(--hub-on-accent);}

/* "Checking your sign-in…": the first thing the app shows, before any screen */
#pocoGate{background:#0e1a2e;color:#e9eef7;}
#pocoGate h1{color:#e3b341;}
