/* Slobal type layer and theme block, round 12 design (owner approved the mockup on 1 Dec 2026).
 *
 * Linked LAST on every Home/site page. It declares the brand faces (owner decision, 2026-11-22): headlines in
 * Inter 700, body and interface text in Krub 400 and 600, each self-hosted from ../fonts (SIL OFL, licences beside the
 * files), latin only, split into a basic and an accents file, with metric-matched local fallbacks so the swap does not
 * move text. font-family-check.mjs fails any other UI face. Headings, tabs, buttons, menu items and footer links are
 * written in Title Case in the HTML (owner, 1 Dec 2026).
 *
 * The theme block at the end is the dark palette, Slate (owner, 1 Dec 2026), held by Home/scripts/theme-rule.mjs.
 * The one-primary gate (docs/audit/scripts/primary-check.mjs) reads this file. No rule here gives a button a
 * var(--primary) ground.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-basic-700-f15170f70944.woff2") format("woff2");
  unicode-range: U+0000-00BF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-accents-700-79cb8a5ca3d7.woff2") format("woff2");
  unicode-range: U+00C0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2215;
}

@font-face {
  font-family: "Krub";
  font-style: normal;
  font-weight: 100 500;
  font-display: swap;
  src: url("/assets/fonts/krub-basic-400-22627d2d4d61.woff2") format("woff2");
  unicode-range: U+0000-00BF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Krub";
  font-style: normal;
  font-weight: 100 500;
  font-display: swap;
  src: url("/assets/fonts/krub-accents-400-f97564f12d0a.woff2") format("woff2");
  unicode-range: U+00C0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2215;
}

@font-face {
  font-family: "Krub";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/assets/fonts/krub-basic-600-ddbe19342844.woff2") format("woff2");
  unicode-range: U+0000-00BF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Krub";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/assets/fonts/krub-accents-600-4d892e3ecdaf.woff2") format("woff2");
  unicode-range: U+00C0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2215;
}

/* Metric-matched fallbacks: Arial (Liberation Sans on Linux) scaled to the
 * web face's average advance, with its vertical metrics, so the text keeps
 * its lines and wraps while the web face loads. size-adjust is the width ratio
 * of the site's own body and heading text set in each face and in Liberation
 * Sans (Arial's metric twin); the overrides are the face's typo metrics over
 * that ratio. Measured 2026-11-22. */
@font-face {
  font-family: "Inter Fallback";
  font-weight: 100 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  size-adjust: 101.88%;
  ascent-override: 95.09%;
  descent-override: 23.68%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Krub Fallback";
  font-weight: 100 500;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
  size-adjust: 105.30%;
  ascent-override: 95.63%;
  descent-override: 27.83%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Krub Fallback";
  font-weight: 600 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  size-adjust: 99.70%;
  ascent-override: 101.00%;
  descent-override: 29.39%;
  line-gap-override: 0%;
}

:root,
[data-ds] {
  --sans: "Krub", "Krub Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --head: "Inter", "Inter Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: var(--sans);
  --font-display: var(--head);
  /* --mono stays Geist Mono, for code and data only. */
}

body, .ds-page { font-family: var(--sans); }
h1, h2, h3, h4, .ds-h1, .ds-h2, .ds-h3, .ds-card-title {
  font-family: var(--head);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: -0.02em;
}

/* Theme rule (owner, 28 Nov 2026 and 1 Dec 2026; Home/scripts/theme-rule.mjs). The square shows on every page but the
   home page, which carries none; the dark palette is Slate and applies only from the visitor's own choice, which the
   theme boot reads from the slobal-theme cookie before the first paint. A first visit is light. */
/* theme-rule:start */
.site-head .themetoggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;padding:0;margin:0 4px 0 0;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);cursor:pointer;transition:border-color 150ms ease}.site-head .themetoggle:hover{border-color:var(--ink)}.site-head .themetoggle:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.site-head .themetoggle svg{width:16px;height:16px;display:block}@media (max-width:640px){.site-head .themetoggle{width:32px;height:32px;margin:0}}html[data-theme="dark"]{color-scheme:dark;
  --bg:#17191D;--bg-2:#1C1F24;--surface:#22262C;--ink:#ECEDEF;--muted:#A3A8B0;--faint:#737882;--line:#30353C;--bezel:#3E444C;
  --shadow:rgba(0,0,0,.55);--glow:0;--teal-hover:#11849F;--link:#5BC0D6;
  --tint-teal:linear-gradient(160deg,#10262B 0%,#0C3A42 100%);--tint-green:linear-gradient(160deg,#0F2420 0%,#0C3A31 100%);
  --tint-sand:linear-gradient(160deg,#241E14 0%,#3A2E18 100%);--tint-ice:linear-gradient(160deg,#111C2C 0%,#142C4A 100%);
  --tint-blue:linear-gradient(160deg,#101B2E 0%,#0F2747 100%);
  --wash:radial-gradient(60% 70% at 85% 70%,rgba(6,182,212,.16),transparent 70%),radial-gradient(50% 60% at 55% 95%,rgba(185,143,82,.14),transparent 70%),radial-gradient(40% 50% at 100% 20%,rgba(99,102,241,.16),transparent 70%);
  --tag-ok-bg:#163029;--tag-ok-ink:#7FD8C4;--dev-ink:#FBBF24;--dev-line:#F59E0B;--tick:#5FD4C2;
  --paper:#17191D;--paper-dark:#1C1F24;--neutral-bg:#1C1F24;--ink-soft:#C9CCD1;--heading:#ECEDEF;
  --text-ink:#ECEDEF;--text-grey:#C3C7CE;--text-light:#A3A8B0;--chrome-muted:#737882;
  --primary:#5BC0D6;--primary-hover:#7FD0E2;--primary-tint:#1C2A30;
  --ok:#86EFAC;--ok-bg:#1C1F24;--warn:#FBBF24;--warn-bg:#1C1F24;--bad:#EE8272;--bad-bg:#1C1F24;
  --menu-shadow:0 20px 40px -18px rgba(0,0,0,.55);}html[data-theme="dark"] .pri{background:var(--teal);color:var(--on-teal)}html[data-theme="dark"] .pri:hover{background:var(--teal-hover)}html[data-theme="dark"] .x-f{box-shadow:0 18px 40px -20px rgba(0,0,0,.6)}html[data-theme="dark"] img.lg-a,html[data-theme="dark"] .mi img.ag{filter:brightness(1.9) saturate(.8)}html[data-theme="dark"] img.lg-b,html[data-theme="dark"] .mi img.bo{filter:invert(1) hue-rotate(180deg)}@media (min-width:641px){html[data-theme="dark"] .site-head .brand img{content:url(/assets/slobal-wordmark-white-0a28d1fe9087.svg)}}
/* theme-rule:end */
