/* Lucent brand foundation: Petrol palette, Meridian mark, Archivo + IBM Plex Mono.
   Loaded before every other application stylesheet. The canonical PDF keeps its
   own independent styles (report.css, site-review-report.css, ultra-document.css)
   and must not consume anything declared here. The face is named Lucent Grotesk
   rather than Lucent Sans on purpose: the PDF pipeline already publishes a
   Lucent Sans (Manrope) that is injected into the in-app report preview, and a
   shared name would let the document's font leak into the interface.

   Colour lives in the ground, not in an accent. The reading - the measurement
   under discussion - is always the highest-contrast element on the surface:
   ink on chalk, white on night. */

@font-face{font-family:Lucent Grotesk;src:url('../fonts/archivo.woff2') format('woff2');font-weight:400 600;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Lucent Grotesk;src:url('../fonts/archivo-ext.woff2') format('woff2');font-weight:400 600;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Lucent Mono;src:url('../fonts/ibm-plex-mono-400.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Lucent Mono;src:url('../fonts/ibm-plex-mono-400-ext.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Lucent Mono;src:url('../fonts/ibm-plex-mono-500.woff2') format('woff2');font-weight:500;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Lucent Mono;src:url('../fonts/ibm-plex-mono-500-ext.woff2') format('woff2');font-weight:500;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- chalk: the default, and the mode the report lives in ---------- */
:root{
  color-scheme:light;

  --bg:#edf2f1;
  --bg-2:#e4ecea;
  --surface:#fff;
  --surface-2:#f6f9f8;
  --border:#d5e0de;
  --border-strong:#bdccca;

  --text:#0a1a1d;
  --text-2:#3c5457;
  --text-3:#5a6d70;

  --accent:#0a1a1d;
  --accent-2:#143034;
  --on-accent:#fff;
  --focus:#0a1a1d;

  --mark-ring:#3c5457;
  --mark-tick:#bdccca;
  --mark-dot:#0a1a1d;

  --good:#1f6b4f; --good-bg:#e2efe9;
  --warn:#8a5a17; --warn-bg:#f4ebdb;
  --bad:#9c3a2e;  --bad-bg:#f6e5e2;

  --shadow:0 1px 2px rgba(10,26,29,.06),0 8px 24px -16px rgba(10,26,29,.32);
  --shadow-lg:0 2px 4px rgba(10,26,29,.06),0 22px 48px -26px rgba(10,26,29,.45);
  --radius:10px;
  --radius-sm:6px;

  --font-sans:"Lucent Grotesk","Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  --font-mono:"Lucent Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  /* Legacy names kept as aliases so every existing stylesheet rebrands with
     the tokens above instead of carrying the retired blue. */
  --ink:var(--text);
  --muted:var(--text-3);
  --line:var(--border);
  --paper:var(--bg);
  --white:var(--surface);
  --accent-dark:var(--accent-2);
  --wash:var(--bg-2);
  --amber:var(--warn);
  --danger:var(--bad);
  --m-ink:var(--text);
  --m-muted:var(--text-3);
  --m-line:var(--border);
  --m-canvas:var(--bg-2);
  --m-accent:var(--accent);
  --m-ray:var(--text-3);
}

/* ---------- night: the workspace after dark ---------- */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;

    --bg:#0a1a1d;
    --bg-2:#0e2226;
    --surface:#102529;
    --surface-2:#163035;
    --border:#1b343a;
    --border-strong:#2f5a61;

    --text:#e6efee;
    --text-2:#a8c0c2;
    --text-3:#8ca5a8;

    --accent:#fff;
    --accent-2:#d9e6e4;
    --on-accent:#0a1a1d;
    --focus:#fff;

    --mark-ring:#6b8387;
    --mark-tick:#22383c;
    --mark-dot:#fff;

    --good:#5fc79b; --good-bg:#0f2f28;
    --warn:#d9a55c; --warn-bg:#31260f;
    --bad:#e58374;  --bad-bg:#35201c;

    --shadow:0 1px 2px rgba(0,0,0,.4),0 14px 34px -18px rgba(0,0,0,.75);
    --shadow-lg:0 2px 6px rgba(0,0,0,.5),0 26px 60px -28px rgba(0,0,0,.9);
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;

  --bg:#0a1a1d;
  --bg-2:#0e2226;
  --surface:#102529;
  --surface-2:#163035;
  --border:#1b343a;
  --border-strong:#2f5a61;

  --text:#e6efee;
  --text-2:#a8c0c2;
  --text-3:#8ca5a8;

  --accent:#fff;
  --accent-2:#d9e6e4;
  --on-accent:#0a1a1d;
  --focus:#fff;

  --mark-ring:#6b8387;
  --mark-tick:#22383c;
  --mark-dot:#fff;

  --good:#5fc79b; --good-bg:#0f2f28;
  --warn:#d9a55c; --warn-bg:#31260f;
  --bad:#e58374;  --bad-bg:#35201c;

  --shadow:0 1px 2px rgba(0,0,0,.4),0 14px 34px -18px rgba(0,0,0,.75);
  --shadow-lg:0 2px 6px rgba(0,0,0,.5),0 26px 60px -28px rgba(0,0,0,.9);
}

/* ---------- the mark ---------- */
.brand-mark{display:inline-flex;flex:none}
.brand-mark svg{display:block;width:100%;height:100%;overflow:visible}
.mark-ring{stroke:var(--mark-ring)}
.mark-tick{stroke:var(--mark-tick)}
.mark-dot{fill:var(--mark-dot)}

/* Data, labels and metadata are set in mono; prose never is. */
.mono,.metric,time.measured{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.label{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-3)}

/* ---------- theme toggle ---------- */
.theme-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);background:var(--surface);color:var(--text-2);
  font-family:var(--font-mono);font-size:10px;letter-spacing:.11em;text-transform:uppercase;padding:7px 11px;border-radius:999px;cursor:pointer}
.theme-toggle:hover{color:var(--text);border-color:var(--border-strong)}
.theme-toggle svg{width:13px;height:13px;flex:none}

:where(a,button,summary,[tabindex]):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
