/* VisWoX design tokens. The ONLY stylesheet allowed to hold raw colours: app.css uses
 * var(--vx-*) exclusively. Light is the default; dark is redefined in two identical blocks
 * (explicit data-theme="dark", and the OS preference unless the user chose light). */

@font-face {
    font-family: "Hanken Grotesk";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Hanken Grotesk";
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/latin-500-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Hanken Grotesk";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/latin-700-normal.woff2") format("woff2");
}
/* Figures (.vx-num): condensed with tabular digits so columns line up. OFL, see OFL-barlow-condensed.txt. */
@font-face {
    font-family: "Barlow Condensed";
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}

:root {
    color-scheme: light;
    /* Brand, exact */
    --vx-navy: #2C3E50;
    --vx-orange: #FF8C00;
    --vx-grey: #A8A8A8;
    --vx-font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --vx-font-display: "Barlow Condensed", "Hanken Grotesk", sans-serif;
    --vx-bg: #F5F6F7;
    --vx-surface: #FFFFFF;
    --vx-surface-muted: #EEF0F2;
    --vx-row-hover: #EAF0F5;
    --vx-text: #1B2633;
    --vx-text-muted: #5B6773;
    --vx-border: #DADDE0;
    --vx-rail-bg: #2C3E50;
    --vx-rail-text: #DFE5EC;
    --vx-rail-text-strong: #FFFFFF;
    --vx-rail-hover: #3A4F63;
    --vx-primary: #FF8C00;
    --vx-primary-hover: #E07B00;
    --vx-primary-text: #1B2633;
    --vx-link: #2C3E50;
    --vx-focus: #FF8C00;
    --vx-on-dark: #FFFFFF;
    --vx-success: #2F8F5B;
    --vx-success-soft: #E3F3EA;
    --vx-warning: #D9A400;
    --vx-warning-soft: #FBF1CC;
    --vx-danger: #C8372D;
    --vx-danger-soft: #FBE6E4;
    --vx-ring-0: #C9DA5B;
    --vx-ring-1: #BAD664;
    --vx-ring-2: #ACD16C;
    --vx-ring-3: #9CCD73;
    --vx-ring-4: #8DC979;
    --vx-ring-5: #7CC47F;
    --vx-ring-6: #6BB573;
    --vx-ring-7: #59A668;
    --vx-ring-8: #47975C;
    --vx-ring-9: #348851;
    --vx-ring-10: #1E7A46;
    --vx-shadow: rgba(27, 38, 51, 0.16);
    --vx-overlay: rgba(14, 20, 28, 0.55);
    /* Import guide: the accent (orange, "now/next"), the dark button and the sheet picture */
    --vx-orange-soft: #FFF4E5;
    --vx-btn-dark: #2C3E50;
    --vx-btn-dark-hover: #3A4F63;
    --vx-sheet-head: #2C3E50;
    --vx-sheet-head-optional: #5D6D7E;
    --vx-sheet-section: #EEF3F8;
    --vx-sheet-text: #FFFBE6;
    /* Gantt: "on track" bars, links and brackets (navy; lifted in dark mode to read on the
     * dark surface), its soft tint, and text on a solid bar fill */
    --vx-gantt-ok: #2C3E50;
    --vx-gantt-ok-soft: #E4EAF0;
    --vx-gantt-fill-text: #FFFFFF;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --vx-navy: #2C3E50;
    --vx-orange: #FF8C00;
    --vx-grey: #A8A8A8;
    --vx-font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --vx-font-display: "Barlow Condensed", "Hanken Grotesk", sans-serif;
    --vx-bg: #131B25;
    --vx-surface: #1C2735;
    --vx-surface-muted: #172130;
    --vx-row-hover: #243244;
    --vx-text: #E8ECF0;
    --vx-text-muted: #A8A8A8;
    --vx-border: #2A394A;
    --vx-rail-bg: #0E141C;
    --vx-rail-text: #A8A8A8;
    --vx-rail-text-strong: #FFFFFF;
    --vx-rail-hover: #1A2431;
    --vx-primary: #FF8C00;
    --vx-primary-hover: #FFA033;
    --vx-primary-text: #1B2633;
    --vx-link: #9DB6CC;
    --vx-focus: #FF8C00;
    --vx-on-dark: #FFFFFF;
    --vx-success: #3FAE75;
    --vx-success-soft: #1B3A2C;
    --vx-warning: #D9A400;
    --vx-warning-soft: #3A3217;
    --vx-danger: #E0584D;
    --vx-danger-soft: #3F1F1D;
    --vx-ring-0: #B9CC4E;
    --vx-ring-1: #ABCA57;
    --vx-ring-2: #9DC75F;
    --vx-ring-3: #8EC566;
    --vx-ring-4: #7EC26C;
    --vx-ring-5: #6DBF72;
    --vx-ring-6: #63BA70;
    --vx-ring-7: #59B66D;
    --vx-ring-8: #4FB16B;
    --vx-ring-9: #43AD68;
    --vx-ring-10: #36A866;
    --vx-shadow: rgba(0, 0, 0, 0.5);
    --vx-overlay: rgba(0, 0, 0, 0.65);
    --vx-orange-soft: #3A2A14;
    --vx-btn-dark: #3A4F63;
    --vx-btn-dark-hover: #4A6178;
    --vx-sheet-head: #3A4F63;
    --vx-sheet-head-optional: #56687A;
    --vx-sheet-section: #243244;
    --vx-sheet-text: #3A3420;
    --vx-gantt-ok: #7F9DBA;
    --vx-gantt-ok-soft: #26384C;
    --vx-gantt-fill-text: #0E141C;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --vx-navy: #2C3E50;
        --vx-orange: #FF8C00;
        --vx-grey: #A8A8A8;
        --vx-font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
        --vx-font-display: "Barlow Condensed", "Hanken Grotesk", sans-serif;
        --vx-bg: #131B25;
        --vx-surface: #1C2735;
        --vx-surface-muted: #172130;
        --vx-row-hover: #243244;
        --vx-text: #E8ECF0;
        --vx-text-muted: #A8A8A8;
        --vx-border: #2A394A;
        --vx-rail-bg: #0E141C;
        --vx-rail-text: #A8A8A8;
        --vx-rail-text-strong: #FFFFFF;
        --vx-rail-hover: #1A2431;
        --vx-primary: #FF8C00;
        --vx-primary-hover: #FFA033;
        --vx-primary-text: #1B2633;
        --vx-link: #9DB6CC;
        --vx-focus: #FF8C00;
        --vx-on-dark: #FFFFFF;
        --vx-success: #3FAE75;
        --vx-success-soft: #1B3A2C;
        --vx-warning: #D9A400;
        --vx-warning-soft: #3A3217;
        --vx-danger: #E0584D;
        --vx-danger-soft: #3F1F1D;
        --vx-ring-0: #B9CC4E;
        --vx-ring-1: #ABCA57;
        --vx-ring-2: #9DC75F;
        --vx-ring-3: #8EC566;
        --vx-ring-4: #7EC26C;
        --vx-ring-5: #6DBF72;
        --vx-ring-6: #63BA70;
        --vx-ring-7: #59B66D;
        --vx-ring-8: #4FB16B;
        --vx-ring-9: #43AD68;
        --vx-ring-10: #36A866;
        --vx-shadow: rgba(0, 0, 0, 0.5);
        --vx-overlay: rgba(0, 0, 0, 0.65);
        --vx-orange-soft: #3A2A14;
        --vx-btn-dark: #3A4F63;
        --vx-btn-dark-hover: #4A6178;
        --vx-sheet-head: #3A4F63;
        --vx-sheet-head-optional: #56687A;
        --vx-sheet-section: #243244;
        --vx-sheet-text: #3A3420;
        --vx-gantt-ok: #7F9DBA;
        --vx-gantt-ok-soft: #26384C;
        --vx-gantt-fill-text: #0E141C;
    }
}
