/* Nubi Trans design tokens: the one place for brand colour, type, spacing and corner radius.
   Every page loads this file first. Colours have a real dark value here, so styles that use them
   need no guessing by the generated dark palette (scripts/theme-palette.mjs). */

/* Manrope, SIL OFL 1.1; local variable subsets. Chinese falls through to the system's CJK face. */
@font-face{font-family:'Nubi Sans';src:url('/assets/fonts/manrope-latin-variable.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0000-024F,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+1E00-1EFF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nubi Sans';src:url('/assets/fonts/manrope-cyrillic-variable.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-052F,U+0490-0491,U+04B0-04B1,U+2116,U+2DE0-2DFF,U+A640-A69F}

:root{
 --nt-ease:cubic-bezier(.2,.75,.1,1);
 /* Type */
 --nt-font:'Nubi Sans','PingFang SC','Microsoft YaHei','Noto Sans SC',system-ui,-apple-system,'Segoe UI',sans-serif;
 --nt-font-mono:ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;
 --nt-text-xs:.75rem;--nt-text-sm:.875rem;--nt-text-md:1rem;--nt-text-lg:1.125rem;--nt-text-xl:1.375rem;--nt-text-2xl:1.75rem;--nt-text-3xl:2.5rem;--nt-text-4xl:3.5rem;
 --nt-leading-tight:1.15;--nt-leading-body:1.6;

 /* Spacing: a 4px base */
 --nt-space-1:4px;--nt-space-2:8px;--nt-space-3:12px;--nt-space-4:16px;--nt-space-5:24px;--nt-space-6:32px;--nt-space-7:48px;--nt-space-8:64px;

 /* Shared content rhythm */
 --nt-cta-space:var(--nt-space-5);--nt-stack-space:var(--nt-space-3);--nt-field-space:var(--nt-space-4);

 /* Corners */
 --nt-radius-xs:4px;--nt-radius-sm:8px;--nt-radius-md:12px;--nt-radius-lg:16px;--nt-radius-xl:24px;--nt-radius-pill:999px;

 /* Colour, by role. Text on a surface, surfaces behind content, lines between them. */
 --nt-panel:#efece2;--nt-night-muted:#b9cbc6;--nt-success-bg:#dcefe9;--nt-warning:#a8431f;--nt-warning-bg:#fbe5da;--nt-info-bg:#e1e9f7;
 --nt-ink:#15344d;          /* headings and body text */
 --nt-ink-muted:#556b7c;    /* secondary text */
 --nt-link:#265dd7;         /* informational blue */
 --nt-success:#146244;      /* positive status text */
 --nt-surface:#ffffff;      /* cards, panels, inputs */
 --nt-paper:#f5f7fa;        /* page background behind cards */
 --nt-line:#dde4eb;         /* borders and dividers */
 --nt-accent:#ffca28;       /* brand yellow: primary actions and highlights */
 --nt-on-accent:#15344d;    /* text on brand yellow, in both themes */
 --nt-night:#10263e;        /* dark brand panels; stays dark in both themes */
 --nt-on-night:#ffffff;
}

/* Dark theme: the same roles with their own values. */
:root[data-theme="dark"]{
 --nt-panel:#1b3640;--nt-success-bg:#16403b;--nt-warning:#f3a07c;--nt-warning-bg:#4a2a1f;--nt-info-bg:#1f3352;
 --nt-ink:#e0e9f2;
 --nt-ink-muted:#b0c2d2;
 --nt-link:#9cc1ff;
 --nt-success:#88d7c4;
 --nt-surface:#192b3d;
 --nt-paper:#111f2e;
 --nt-line:#3a5268;
 color-scheme:dark;
}
