/* GENERATED by scripts/portal-shell/build-theme.mjs from brand/tokens.css. Do not edit by hand. */
@font-face {
    font-family: Roboto;
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/roboto-300-italic.woff2) format('woff2');
}
@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/roboto-400-normal.woff2) format('woff2');
}
@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(fonts/roboto-500-normal.woff2) format('woff2');
}
@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/roboto-700-normal.woff2) format('woff2');
}

/* Light (default) */
:root,
[data-theme='light'] {
    /* brand */
    --gt-navy: #1d2136;
    --gt-slate: #334a5e;
    --gt-steel: #496a87;
    --gt-blue: #5c86ab; /* never body text, never a button fill with white text (3.85) */
    --gt-sky: #75aad9; /* not text on light surfaces */
    --gt-royal: #2c497f;
    --gt-purple: #4f4789;
    --gt-plum: #3d2b56;
    --gt-lime: #ccf5ac; /* not text on light surfaces */
    --gt-sage: #bad29f;
    --gt-gradient-hero: linear-gradient(90deg, #4f4789, #496a87, #2c497f); /* white text OK on all stops */
    --gt-gradient-deep: linear-gradient(135deg, #5c86ab, #1d2136, #3d2b56, #756db4);
    --gt-gradient-fresh: linear-gradient(135deg, #ccf5ac, #5c86ab); /* decorative; navy text at lime end only */
    --gt-gradient-pale: linear-gradient(135deg, #e0e0e0, #ccf5ac, #496a87); /* decorative */
    
    /* surfaces */
    --surface-page: #f4f6f9; /* derived */
    --surface-card: #ffffff;
    --surface-subtle: #ebeef3; /* derived: column wells, table headers */
    --surface-inverse: #1d2136;
    
    /* text */
    --text-primary: #1d2136; /* 15.87 on card */
    --text-secondary: #334a5e; /* 9.20 */
    --text-muted: #5b667a; /* derived; 5.79 */
    --text-link: #2c497f; /* 8.87 */
    --text-on-brand: #ffffff; /* on steel 5.68, royal 8.87, purple 8.09 */
    --text-on-accent: #1d2136; /* on lime 13.02, on sky 6.43 */
    
    /* actions */
    --action-primary: #496a87;
    --action-primary-hover: #334a5e;
    --action-accent: #ccf5ac;
    --focus-ring: #2c497f;
    
    /* borders */
    --border-subtle: #c6cacc; /* decorative dividers only */
    --border-control: #6b7790; /* derived; 4.50 on card */
    
    /* status pills and kanban column headers: fg on bg */
    --status-backlog-fg: #334a5e;
    --status-backlog-bg: #e9ecf0;
    --status-todo-fg: #2c497f;
    --status-todo-bg: #e4eef8;
    --status-progress-fg: #4f4789;
    --status-progress-bg: #eceaf6;
    --status-review-fg: #3d2b56;
    --status-review-bg: #efe8f7;
    --status-blocked-fg: #a12a22;
    --status-blocked-bg: #fde8e6;
    --status-done-fg: #2d6a1e;
    --status-done-bg: #e8f9dc;
    --status-warning-fg: #7a4f00;
    --status-warning-bg: #fff0cc;
    
    /* RAG indicators: non-text, always paired with a label or icon */
    --rag-green: #3f8f2b;
    --rag-amber: #ad7300;
    --rag-red: #c2372f;
    
    /* gantt */
    --gantt-planned: #808a9f; /* baseline bar; keep rows white */
    --gantt-actual: #496a87;
    --gantt-late: #c2372f;
    --gantt-milestone: #4f4789;
    --gantt-today: #2c497f;
    --gantt-link: #6b7790;
    
    --radius-card: 12px;
    --radius-control: 8px;
    --radius-pill: 999px;
    --font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    --surface-header: #1d2136;
    --text-on-header: #ffffff; /* 15.87 on header */
    --text-on-header-muted: #c6cacc; /* 9.7 on header */
    --header-hover: rgba(255, 255, 255, 0.1);
    --surface-overlay: #ffffff; /* menus, popovers */
    --scrim: rgba(29, 33, 54, 0.45);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --content-max: 1280px;
    color-scheme: light;
}

/* Dark: chosen in the user menu (data-theme on <html>) ... */
[data-theme='dark'] {
    --surface-page: #161a2b; /* derived */
    --surface-card: #262b45; /* derived */
    --surface-subtle: #30375a; /* derived */
    --surface-inverse: #e0e0e0;
    --text-primary: #f2f3f5;
    --text-secondary: #c6cacc;
    --text-muted: #a3a7aa;
    --text-link: #75aad9;
    --text-on-brand: #161a2b;
    --text-on-accent: #161a2b;
    --action-primary: #75aad9;
    --action-primary-hover: #9cc4e8;
    --action-accent: #ccf5ac;
    --focus-ring: #75aad9;
    --border-subtle: #4a5378;
    --border-control: #808a9f;
    --status-backlog-fg: #c6cacc;
    --status-backlog-bg: #30375a;
    --status-todo-fg: #9cc4e8;
    --status-todo-bg: #1f3350;
    --status-progress-fg: #b9b3ea;
    --status-progress-bg: #322c5c;
    --status-review-fg: #d4bdf0;
    --status-review-bg: #3d2b56;
    --status-blocked-fg: #ffa59e;
    --status-blocked-bg: #45201f;
    --status-done-fg: #ccf5ac;
    --status-done-bg: #23381f;
    --status-warning-fg: #ffd27a;
    --status-warning-bg: #3d2f12;
    --rag-green: #8fd46a;
    --rag-amber: #f2b33d;
    --rag-red: #f0655c;
    --gantt-planned: #808a9f;
    --gantt-actual: #75aad9;
    --gantt-late: #f0655c;
    --gantt-milestone: #9c93e0;
    --gantt-today: #ccf5ac;
    --gantt-link: #a3a7aa;
    --surface-header: #1d2136;
    --text-on-header: #f2f3f5;
    --text-on-header-muted: #c6cacc;
    --header-hover: rgba(255, 255, 255, 0.1);
    --surface-overlay: #30375a;
    --scrim: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
}

/* ... or the device setting, until the user chooses. Keep in step with the block above. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --surface-page: #161a2b; /* derived */
        --surface-card: #262b45; /* derived */
        --surface-subtle: #30375a; /* derived */
        --surface-inverse: #e0e0e0;
        --text-primary: #f2f3f5;
        --text-secondary: #c6cacc;
        --text-muted: #a3a7aa;
        --text-link: #75aad9;
        --text-on-brand: #161a2b;
        --text-on-accent: #161a2b;
        --action-primary: #75aad9;
        --action-primary-hover: #9cc4e8;
        --action-accent: #ccf5ac;
        --focus-ring: #75aad9;
        --border-subtle: #4a5378;
        --border-control: #808a9f;
        --status-backlog-fg: #c6cacc;
        --status-backlog-bg: #30375a;
        --status-todo-fg: #9cc4e8;
        --status-todo-bg: #1f3350;
        --status-progress-fg: #b9b3ea;
        --status-progress-bg: #322c5c;
        --status-review-fg: #d4bdf0;
        --status-review-bg: #3d2b56;
        --status-blocked-fg: #ffa59e;
        --status-blocked-bg: #45201f;
        --status-done-fg: #ccf5ac;
        --status-done-bg: #23381f;
        --status-warning-fg: #ffd27a;
        --status-warning-bg: #3d2f12;
        --rag-green: #8fd46a;
        --rag-amber: #f2b33d;
        --rag-red: #f0655c;
        --gantt-planned: #808a9f;
        --gantt-actual: #75aad9;
        --gantt-late: #f0655c;
        --gantt-milestone: #9c93e0;
        --gantt-today: #ccf5ac;
        --gantt-link: #a3a7aa;
        --surface-header: #1d2136;
        --text-on-header: #f2f3f5;
        --text-on-header-muted: #c6cacc;
        --header-hover: rgba(255, 255, 255, 0.1);
        --surface-overlay: #30375a;
        --scrim: rgba(0, 0, 0, 0.6);
        color-scheme: dark;
    }
}

html:root {
    --dxp-g-root: var(--surface-page);
    --dxp-g-root-1: var(--surface-subtle);
    --dxp-g-root-2: var(--border-subtle);
    --dxp-g-root-3: var(--border-control);
    --dxp-g-root-contrast: var(--text-primary);
    --dxp-g-root-contrast-1: var(--text-primary);
    --dxp-g-root-contrast-2: var(--text-primary);
    --dxp-g-root-contrast-3: var(--text-primary);
    --dxp-g-brand: var(--action-primary);
    --dxp-g-brand-1: var(--action-primary-hover);
    --dxp-g-brand-contrast: var(--text-on-brand);
    --dxp-g-brand-contrast-1: var(--text-on-brand);
    --dxp-g-neutral: var(--surface-subtle);
    --dxp-g-neutral-1: var(--border-subtle);
    --dxp-g-neutral-2: var(--border-control);
    --dxp-g-neutral-3: var(--border-control);
    --dxp-g-neutral-contrast: var(--text-primary);
    --dxp-g-neutral-contrast-1: var(--text-primary);
    --dxp-g-destructive: var(--rag-red);
    --dxp-g-success: var(--rag-green);
    --dxp-g-warning: var(--rag-amber);
    --dxp-g-root-font-family: var(--font-family);
    --dxp-s-html-font-family: var(--font-family);
    --dxp-s-link-text-color: var(--text-link);
    --dxp-s-link-text-color-1: var(--text-link);
    --dxp-s-button-radius-border: var(--radius-control);
    --dxp-s-form-element-radius-border: var(--radius-control);
    --dxp-s-form-element-color-background: var(--surface-card);
    --dxp-s-form-element-color-border: var(--border-control);
    --dxp-s-form-element-text-color: var(--text-primary);
    --dxp-s-form-element-label-color: var(--text-secondary);
}

html {
    background: var(--surface-page);
}

body {
    margin: 0;
    background: var(--surface-page);
    color: var(--text-primary);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}
