/* Sign-in page and the private desk.
   BRAND: every colour and both typefaces are the tokens in this first block. Change them here (and the --c-* tokens at
   the top of the calls desk's own calls.css) and nothing else; a test checks that no colour is written anywhere below.
   The typefaces load from Google Fonts in the <head> of each page.
   DARK MODE (CysecIn, added on the owner's request, 2026-10-28): the second block below repeats the colour tokens for
   a device set to dark. Four tokens were added so the dark set works: --panel, --solid, --solid-hover and --on-ink,
   used below in place of --ink and --white where those meant "a filled button or panel" and "text on it". */
:root{
  /* CysecIn, SECURE pillar: the four blues and CysecIn Orange (Business Plan v7.3, colour tokens). Where a colour
     carries small text it is a deeper shade of the same hue, so it passes WCAG AA. */
  --ink:#0A3161;              /* headings: Old Glory Navy, the SECURE pillar */
  --deep:#041E42;             /* top bar, the sign-in panel: Deep Navy (SpecOps) */
  --panel:#0A3161;            /* where the sign-in panel's gradient starts */
  --solid:#0A3161;            /* the main button, the chosen tab and nav item */
  --solid-hover:#041E42;
  --on-ink:#FAFAFA;           /* text on the top bar, the panel and filled buttons */
  --accent:#D96500;           /* focus outlines: CysecIn Orange, deep enough to show on the page */
  --accent-ink:#3A6B98;       /* links, small labels: Steel Blue (Specialized Projects), deepened for text */
  --accent-light:#FF7900;     /* text on the dark panel, the reach chart: CysecIn Orange */
  --paper:#F1F4F8;            /* page background: a cool paper */
  --white:#FAFAFA;            /* cards, fields: Paper White */
  --text:#1A1D24;             /* running text: Architect Charcoal */
  --muted:#4A5160;            /* secondary text: Atlas Slate */
  --line:rgba(10,49,97,.18);  /* borders of controls */
  --line2:rgba(10,49,97,.09); /* hairlines */
  --hover-line:rgba(10,49,97,.34);
  --shadow:rgba(4,30,66,.09);
  --focus:rgba(70,130,180,.28); /* glow round a focused field: Steel Blue */
  --call:#165CD6;             /* call buttons: Operational Blue (MSS) */
  --red:#B31942;              /* errors: Old Glory Crimson */
  --err-bg:#FBEAEF; --err-line:rgba(179,25,66,.25);
  --ok-bg:#E8F0F7;  --ok-line:rgba(58,107,152,.25);
  --pill-line:rgba(255,121,0,.55);
  --on-dark:rgba(250,250,250,.68); --on-dark-line:rgba(250,250,250,.28); --on-dark-hover:rgba(250,250,250,.08);
  --spin-track:rgba(250,250,250,.35);
  /* the desk's list pages (assets/pages.css): a row's hover and chosen tint, won and "seen before" marks, the shade
     behind a side sheet */
  --tint:#E8EEF6; --green:#1E6B45; --amber:#B35400; --scrim:rgba(4,30,66,.32);
  --r:10px;
  --sans:"Montserrat","Helvetica Neue",Arial,sans-serif;--mono:"JetBrains Mono",Menlo,Consolas,monospace;color-scheme:light}
@media (prefers-color-scheme:dark){:root{
  /* SECURE at night: deep navy surfaces, light ink, the same blues lifted for dark, CysecIn Orange as the accent */
  --ink:#EAF0F8;              /* headings */
  --deep:#041E42;             /* top bar, the sign-in panel: Deep Navy */
  --panel:#0A3161;            /* Old Glory Navy */
  --solid:#123A70;            /* Old Glory Navy, lifted so it shows on the dark page */
  --solid-hover:#1A4B8C;
  --on-ink:#FAFAFA;
  --accent:#FF7900;           /* focus outlines: CysecIn Orange */
  --accent-ink:#7EAAD6;       /* links, small labels: Steel Blue, lifted for dark */
  --accent-light:#FF7900;
  --paper:#06101E;            /* page */
  --white:#0C1A2E;            /* cards, fields */
  --text:#D3DBE6;
  --muted:#95A3B8;
  --line:rgba(160,185,220,.2);
  --line2:rgba(160,185,220,.1);
  --hover-line:rgba(160,185,220,.36);
  --shadow:rgba(0,0,0,.35);
  --focus:rgba(126,170,214,.35);
  --call:#165CD6;             /* Operational Blue */
  --red:#F0708C;              /* errors: Old Glory Crimson, lifted for text on dark */
  --err-bg:#2A0E18; --err-line:rgba(240,112,140,.35);
  --ok-bg:#10263D;  --ok-line:rgba(126,170,214,.35);
  --tint:#10233B; --green:#5CC28E; --amber:#FF9A3D; --scrim:rgba(0,0,0,.55);
  color-scheme:dark}}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--paper);color:var(--text);font:400 16px/1.55 var(--sans);-webkit-font-smoothing:antialiased}
a{color:var(--accent-ink)}
/* a call or text link rings only through a press the page checks: no long-press menu on a phone (its Call, Copy and
   Open in new tab would go round the check) */
a[href^="tel:"],a[href^="sms:"]{-webkit-touch-callout:none}
.eyebrow{font:500 .72rem/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink)}

/* ---------- sign-in ---------- */
.auth{min-height:100%;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.auth-art{position:relative;overflow:hidden;background:linear-gradient(160deg,var(--panel),var(--deep) 70%);color:var(--on-ink);
  display:flex;flex-direction:column;justify-content:space-between;padding:clamp(24px,4vw,48px)}
.brand{display:inline-flex;align-items:center;gap:12px;color:var(--on-ink);text-decoration:none;font-weight:600;font-size:1.15rem}
.auth-tag{min-width:0}
.auth-tag p{margin:0;font-size:clamp(1.1rem,2.45vw,2.3rem);line-height:1.22;font-weight:600}
.auth-tag p+p{color:var(--accent-light)}
.auth-tag small{display:block;margin-top:18px;font:500 .75rem/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--on-dark)}
.auth-main{display:grid;place-items:center;padding:clamp(28px,5vw,64px) 16px}
.auth-card{width:100%;max-width:25rem;display:grid;gap:22px}
.auth-card h1{margin:6px 0 0;font-size:2rem;line-height:1.15;color:var(--ink);letter-spacing:-.01em}
.auth-card .lede{margin:6px 0 0;color:var(--muted)}
form.signin{display:grid;gap:16px}
.field{display:grid;gap:6px}
.field label{font-weight:600;font-size:.9rem;color:var(--ink)}
.input{position:relative}
.input input{width:100%;font:inherit;font-size:1rem;color:var(--text);background:var(--white);border:1px solid var(--line);border-radius:var(--r);
  padding:13px 14px;transition:border-color .15s,box-shadow .15s}
.input input:hover{border-color:var(--hover-line)}
.input input:focus{outline:none;border-color:var(--accent-ink);box-shadow:0 0 0 4px var(--focus)}
.input.pw input{padding-right:74px}
.peek{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--accent-ink);font:600 .82rem var(--sans);padding:6px 8px;border-radius:6px;cursor:pointer}
.peek:hover{background:var(--line2)}
.hint{min-height:1.2em;font-size:.82rem;color:var(--muted)}
.go{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;text-decoration:none;border:0;border-radius:var(--r);background:var(--solid);color:var(--on-ink);
  font:600 1rem var(--sans);padding:14px 18px;cursor:pointer;transition:background .15s,transform .05s}
.go:hover{background:var(--solid-hover)} .go:active{transform:translateY(1px)}
.go:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.go[disabled]{opacity:.7;cursor:progress}
.spin{width:16px;height:16px;border:2px solid var(--spin-track);border-top-color:var(--on-ink);border-radius:50%;animation:spin .8s linear infinite;display:none}
.go[disabled] .spin{display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
.msg{margin:0;padding:11px 14px;border-radius:var(--r);font-size:.92rem}
.msg:empty{display:none}
.msg.err{background:var(--err-bg);color:var(--red);border:1px solid var(--err-line)}
.msg.ok{background:var(--ok-bg);color:var(--accent-ink);border:1px solid var(--ok-line)}
.auth-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.85rem;color:var(--muted);border-top:1px solid var(--line2);padding-top:16px}
.lock{display:inline-flex;align-items:center;gap:6px}
.lock svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
@media (max-width:860px){
  .auth{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
  .auth-art{min-height:200px;gap:28px}
  .auth-tag p{font-size:min(1.45rem,5.2vw)}
}

/* ---------- desk ---------- */
.desk{min-height:100%;display:grid;grid-template-columns:240px minmax(0,1fr);grid-template-rows:auto 1fr}
.d-top{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--deep);color:var(--on-ink);padding:12px clamp(16px,2.5vw,28px)}
.d-top .brand{font-size:1rem}
.d-top .brand em{font-style:normal;font:500 .7rem/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--accent-light);border:1px solid var(--pill-line);border-radius:999px;padding:5px 9px}
.out{border:1px solid var(--on-dark-line);background:none;color:var(--on-ink);font:600 .86rem var(--sans);padding:8px 14px;border-radius:999px;cursor:pointer}
.out:hover{background:var(--on-dark-hover)}
.d-nav{background:var(--white);border-right:1px solid var(--line2);padding:20px 12px;display:grid;align-content:start;gap:4px}
.d-nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;color:var(--ink);text-decoration:none;font-weight:500}
.d-nav a:hover{background:var(--paper)}
.d-nav a[aria-current]{background:var(--solid);color:var(--on-ink)}
.d-nav svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.d-nav .sep{height:1px;background:var(--line2);margin:10px 6px}
.d-main{padding:clamp(20px,3vw,40px) clamp(16px,3vw,40px);display:grid;align-content:start;gap:28px;min-width:0}
.d-head h1{margin:6px 0 0;font-size:clamp(1.6rem,1.2rem + 1vw,2.1rem);color:var(--ink);line-height:1.15}
.d-head p{margin:6px 0 0;color:var(--muted)}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tile{background:var(--white);border:1px solid var(--line2);border-radius:14px;padding:22px;display:grid;gap:10px;align-content:start;min-width:0;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.tile.wide{grid-column:1/-1}
a.tile:hover{border-color:var(--line);box-shadow:0 6px 24px var(--shadow)}
.tile .ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--paper);color:var(--accent-ink)}
.tile .ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tile h2{margin:0;font-size:1.15rem;color:var(--ink)}
.tile p{margin:0;color:var(--muted);font-size:.95rem}
.chip{justify-self:start;font:500 .7rem/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;padding:6px 9px;border-radius:999px;background:var(--paper);color:var(--muted)}
.chip.live{background:var(--ok-bg);color:var(--accent-ink)}
@media (max-width:980px){.tiles{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){
  .desk{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr}
  .d-nav{border-right:0;border-bottom:1px solid var(--line2);padding:8px 12px;display:flex;gap:4px;overflow-x:auto}
  .d-nav a{white-space:nowrap;padding:8px 12px}
  .d-nav .sep{display:none}
}
/* Phones: the nav's words without their icons, so all three fit in Montserrat */
@media (max-width:440px){.d-nav svg{display:none}}

/* ---------- shared with the calls desk: a grid of labelled details, and a "nothing here" box ---------- */
.ps-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 18px;margin:0}
.ps-grid div{display:grid;gap:2px;min-width:0;align-content:start}
.ps-grid dt{font:500 .66rem/1.2 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.ps-grid dd{margin:0;color:var(--ink);font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ps-none{padding:28px;text-align:center;color:var(--muted);background:var(--white);border:1px dashed var(--line);border-radius:12px}
@media (max-width:820px){
  .ps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
