/* wwwroot/css/base.css */

/* Poppins, self-hosted (SIL OFL 1.1). Files: wwwroot/fonts/poppins/poppins-{latin|latin-ext}-{400|500|600|700}-normal.woff2
   (e.g. from the @fontsource/poppins package) + OFL.txt. No CDN. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/poppins/poppins-latin-ext-400-normal.woff2") format("woff2");
  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: Poppins; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/poppins/poppins-latin-400-normal.woff2") format("woff2");
  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: Poppins; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/poppins/poppins-latin-ext-500-normal.woff2") format("woff2");
  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: Poppins; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/poppins/poppins-latin-500-normal.woff2") format("woff2");
  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: Poppins; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/poppins/poppins-latin-ext-600-normal.woff2") format("woff2");
  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: Poppins; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/poppins/poppins-latin-600-normal.woff2") format("woff2");
  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: Poppins; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/poppins/poppins-latin-ext-700-normal.woff2") format("woff2");
  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: Poppins; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/poppins/poppins-latin-700-normal.woff2") format("woff2");
  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; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--color-bg); scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font-family); font-size: var(--text-sm); line-height: var(--lh-body);
  font-weight: var(--weight-regular); color: var(--color-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--color-accent); text-underline-offset: 3px; }

/* canvas atmosphere: blurred glows + faint network line-art; decorative only */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vw 44vh at 0% 48%, var(--color-bg-glow-1), transparent 70%),
    radial-gradient(34vw 40vh at 0% 100%, var(--color-bg-glow-2), transparent 70%),
    radial-gradient(36vw 40vh at 100% 100%, var(--color-bg-glow-2), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background: url("/img/bg-network.svg") center / cover no-repeat;
}

/* typography roles */
.ds-display  { font-size: clamp(2rem, 2.6vw, var(--text-display)); line-height: var(--lh-display); font-weight: var(--weight-bold); }
.ds-hero     { font-size: var(--text-hero); line-height: 1.25; font-weight: var(--weight-bold); text-transform: uppercase; }
.ds-h1       { font-size: var(--text-xl); line-height: 1.33; font-weight: var(--weight-bold); }
.ds-h2       { font-size: var(--text-lg); line-height: 1.4; font-weight: var(--weight-bold); text-transform: uppercase; }
.ds-card-title { font-size: var(--text-md); line-height: 1.47; font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: var(--tracking-card-title); }
.ds-body     { font-size: var(--text-sm); line-height: var(--lh-body); color: var(--color-text-body); }
.ds-strong   { font-weight: var(--weight-bold); color: var(--color-text); }
.ds-caption  { font-size: var(--text-xs); line-height: 1.5; }
.ds-muted    { color: var(--color-text-muted); }
.ds-subtle   { color: var(--color-text-subtle); }
.ds-upper    { text-transform: uppercase; letter-spacing: var(--tracking-upper); }
.ds-num      { font-variant-numeric: tabular-nums; text-align: right; }
.ds-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* focus: always visible, never removed without a replacement */
:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

.ds-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ds-skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-dialog); padding: var(--space-3) var(--space-5); background: var(--color-surface-3); color: var(--color-text); border-radius: var(--radius-pill); }
.ds-skip-link:focus { top: var(--space-4); }

/* thin overlay scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--color-scrollbar-thumb) transparent; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--color-scrollbar-thumb); border-radius: var(--radius-pill); }
::-webkit-scrollbar-track { background: transparent; }

/* signed values: sign stays in the text, colour is the second cue */
.ds-delta--pos { color: var(--color-positive); }
.ds-delta--neg { color: var(--color-negative); }
.ds-delta--zero { color: var(--color-text-muted); }
.on-surface-3 .ds-delta--pos, .ds-report .ds-delta--pos { color: var(--color-positive-strong); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  body::before, body::after { display: none; }
}
