/* ===========================================================================
   RTG Pulse tokens: the Night bar look (Tio's pick, option A, 2026-11-09).
   The ONE place colors and fonts are written as values. Every other stylesheet,
   page and script reads these names. Loaded first by every layout (and by
   offline.html). Source: the public site's v3 tokens (RtgCore_svn
   RtgCore.Web\Layout\RTG\Public\assets\v3\css\site.css) and the brand kit.
   =========================================================================== */

/* Inter, self-hosted: Latin subset, variable weight 400 to 900 (SIL OFL, Inter-LICENSE.txt). */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/inter-latin-var.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;
}

/* Fraunces italic, one weight (500), Basic Latin: only for the one accent phrase of a headline (SIL OFL, Fraunces-OFL.txt). */
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/fraunces-latin-italic.woff2') format('woff2');
    unicode-range: U+0020-007E, U+00A0, U+2018-2019, U+201C-201D, U+2026;
}

:root {
    /* ---- type ---- */
    --pulse-font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --pulse-accent-font: 'Fraunces', Georgia, serif;     /* one phrase per headline, italic */
    --pulse-mono: ui-monospace, Consolas, Menlo, monospace;   /* counters and timestamps only */

    /* ---- night: the bars and the Today masthead ---- */
    --pulse-night: #0c1626;
    --pulse-night-2: #15233a;
    --pulse-night-line: #27395a;
    --pulse-night-ink: #9fb0c8;        /* quiet text on navy (closed tabs) */
    --pulse-night-soft: #c7d5e8;       /* secondary text on navy */
    --pulse-on-night: #ffffff;
    --pulse-glow-navy: #1b2944;        /* masthead glow */
    --pulse-glow-plum: #2a1a26;

    /* ---- reading surfaces ---- */
    --pulse-g: #f8fafc;                /* page ground */
    --pulse-surface: #ffffff;          /* cards */
    --pulse-white: #ffffff;            /* text and icons on a colored fill */
    --pulse-soft: #f1f5f9;
    --pulse-soft-2: #eef2f7;
    --pulse-line: #e2e8f0;
    --pulse-line-strong: #cbd5e1;
    --pulse-faint: #94a3b8;
    --pulse-mute: #64748b;
    --pulse-body: #475569;
    --pulse-ink-2: #334155;
    --pulse-ink: #0f172a;

    /* ---- brand slate (links, primary buttons, the change dot) ---- */
    --pulse-slate: #3d5a7a;
    --pulse-slate-deep: #2f4762;
    --pulse-slate-soft: #c5d3e3;
    --pulse-slate-tint: #e8eef5;

    /* ---- red: live, and nothing decorative ---- */
    --pulse-red: #dc2626;              /* on light */
    --pulse-red-lit: #ff5a5f;          /* on navy: the live dot, the open-tab tick */
    --pulse-bad: #b91c1c;              /* errors and destructive actions */
    --pulse-bad-tint: #fee2e2;
    --pulse-bad-wash: #fef2f2;

    /* ---- states (messages, not signals) ---- */
    --pulse-ok: #15803d;
    --pulse-ok-deep: #166534;
    --pulse-ok-tint: #dcfce7;
    --pulse-ok-lit: #86efac;           /* on navy */
    --pulse-warn: #b45309;
    --pulse-warn-deep: #92400e;
    --pulse-warn-tint: #fef3c7;
    --pulse-warn-wash: #fffbeb;
    --pulse-gold: #c9922a;             /* pulsemarks */
    --pulse-gold-deep: #96711f;
    --pulse-gold-lit: #f5c518;
    --pulse-violet: #6b46c1;
    --pulse-violet-tint: #f3e8ff;
    --pulse-rose: #be185d;

    /* ---- calendar kinds ---- */
    --pulse-ev-floor: #3d5a7a;
    --pulse-ev-committee: #15803d;
    --pulse-ev-fundraiser: #b45309;
    --pulse-ev-legcal: #6b46c1;

    /* ---- channels for rgba(var(--x-rgb), alpha) ---- */
    --pulse-shade-rgb: 15, 23, 42;
    --pulse-white-rgb: 255, 255, 255;
    --pulse-night-rgb: 12, 22, 38;
    --pulse-night-soft-rgb: 199, 213, 232;
    --pulse-slate-rgb: 61, 90, 122;
    --pulse-red-rgb: 220, 38, 38;
    --pulse-red-lit-rgb: 255, 90, 95;
    --pulse-ok-rgb: 21, 128, 61;
    --pulse-warn-rgb: 180, 83, 9;
    --pulse-gold-rgb: 201, 146, 42;
    --pulse-mute-rgb: 100, 116, 139;

    /* ---- pinned signals: the workspace's own position and priority pills (Cirkadia classes) and party.
            These keep the colors they had before the look changed; never restyle them. ---- */
    --sig-on: #ffffff;
    --sig-success: #2E7D32;
    --sig-primary: #355C7D;
    --sig-neutral: #5A6B7C;
    --sig-warning: #B45309;
    --sig-danger: #C62828;
    --sig-info: #01579B;
    --sig-yellow: #CC8D2B;
    --sig-teal: #00838F;
    --sig-kombu: #6B7A5A;
    --sig-red: #D32F2F;
    --sig-party-dem: #1D4ED8;
    --sig-party-dem-bg: #DBEAFE;
    --sig-party-rep: #B91C1C;
    --sig-party-rep-bg: #FEE2E2;
    --sig-party-other: #6B21A8;
    --sig-party-other-bg: #F3E8FF;

    /* ---- shape ---- */
    --pulse-card-r: 16px;
    --pulse-ctl-r: 12px;
    --pulse-header-h: 56px;
    --pulse-nav-h: 64px;

    /* ---- the names the older stylesheets use, pointed at the tokens above ---- */
    --rtg-primary: var(--pulse-slate);
    --rtg-primary-600: var(--pulse-slate);
    --rtg-primary-700: var(--pulse-slate-deep);
    --rtg-primary-100: var(--pulse-slate-tint);
    --rtg-accent: var(--pulse-slate);
    --rtg-bg: var(--pulse-g);
    --rtg-surface: var(--pulse-surface);
    --rtg-border: var(--pulse-line);
    --rtg-text-primary: var(--pulse-ink);
    --rtg-text-secondary: var(--pulse-mute);
    --rtg-success: var(--pulse-ok);
    --rtg-warning: var(--pulse-warn);
    --rtg-error: var(--pulse-bad);
    --rtg-info: var(--pulse-slate);
    --rtg-header-height: var(--pulse-header-h);
    --rtg-bottom-nav-height: var(--pulse-nav-h);
}
