/*
 * Nimbus Edge design tokens and base helpers.
 * Copied from nimbus-desk/frontend/src/styles/nimbus.css (via nimbus-ssl-scan); the fonts are
 * declared here because this project has no bundler.
 * Dark mode: body[data-bs-theme="dark"] redefines the same names.
 */
@font-face { font-family: "Red Hat Display Variable"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("../fonts/red-hat-display-latin-ext.woff2") format("woff2-variations");
  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: "Red Hat Display Variable"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("../fonts/red-hat-display-latin.woff2") format("woff2-variations");
  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: "Red Hat Mono Variable"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("../fonts/red-hat-mono-latin-ext.woff2") format("woff2-variations");
  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: "Red Hat Mono Variable"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("../fonts/red-hat-mono-latin.woff2") format("woff2-variations");
  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; }

:root {
  --n-font: "Red Hat Display Variable", "Red Hat Display", system-ui, sans-serif;
  --n-mono: "Red Hat Mono Variable", "Red Hat Mono", ui-monospace, monospace;

  /* brand */
  --n-petrol: #0b9291;
  --n-petrol-strong: #087574;
  --n-slate: #23313c;
  --n-grey: #68707a;

  /* surfaces and text (light) */
  --n-bg: #eef2f3;
  --n-surface: #ffffff;
  --n-surface-2: #f6f9fa;
  --n-chip: #dfe6e9;
  --n-band: #23313c;
  --n-band-2: #2c3b46;
  --n-band-text: #e9f0f3;
  --n-band-muted: #a9b7bf;
  --n-border: #e1e8eb;
  --n-text: #18242c;
  --n-muted: #5b6a73;
  --n-selected: #e3f3f2;

  /* status: they differ in lightness too, not hue alone */
  --n-ok: #0a7d5c;
  --n-warn: #985a00;
  --n-bad: #c0392b;
  --n-off: #7f8b93;
  --n-ok-soft: #dff3f2;
  --n-ok-on-soft: #076463;
  --n-warn-soft: #fbefd9;
  --n-bad-soft: #fbe5e2;
  --n-accent: var(--n-petrol);
  --n-on-accent: #ffffff;

  --n-cut: 12px;
  --n-cut-s: 7px;
  --n-shadow: 0 1px 2px rgba(15, 30, 40, 0.06), 0 8px 24px rgba(15, 30, 40, 0.06);
}

body[data-bs-theme="dark"] {
  --n-bg: #0d1418;
  --n-surface: #141e25;
  --n-surface-2: #18242c;
  --n-chip: #1e2b34;
  --n-band: #101920;
  --n-band-2: #1b2832;
  --n-border: #24323b;
  --n-text: #e6edf0;
  --n-muted: #93a4ae;
  --n-selected: #18323a;
  --n-ok: #3fd3ad;
  --n-warn: #f3b64c;
  --n-bad: #ff7b70;
  --n-off: #6f818b;
  --n-ok-soft: #173a3d;
  --n-ok-on-soft: #5fe0d6;
  --n-warn-soft: #3f3015;
  --n-bad-soft: #3a1f22;
  --n-accent: #14a3a1;
  --n-shadow: none;
}

/* the logo's cut corner */
.n-cut { clip-path: polygon(var(--n-cut) 0, 100% 0, 100% calc(100% - var(--n-cut)), calc(100% - var(--n-cut)) 100%, 0 100%, 0 var(--n-cut)); }
.n-cut-s { clip-path: polygon(var(--n-cut-s) 0, 100% 0, 100% calc(100% - var(--n-cut-s)), calc(100% - var(--n-cut-s)) 100%, 0 100%, 0 var(--n-cut-s)); }

.n-mono { font-family: var(--n-mono); }
.n-eyebrow { font: 800 11px/1.2 var(--n-font); letter-spacing: 0.3em; text-transform: uppercase; color: var(--n-accent); }
.n-label { font: 800 10px/1.2 var(--n-font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--n-muted); }
.n-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
