/* GFSC brand colors */
:root > * {
    --md-primary-fg-color: #ea5b0c;
    --md-primary-fg-color--light: #f58442;
    --md-primary-fg-color--dark: #c44a08;
    --md-accent-fg-color: #ea5b0c;

    /* Mermaid diagram colors */
    --md-mermaid-edge-color: #ea5b0c;
    --md-mermaid-node-bg-color: #f1f4d1;
    --md-mermaid-node-fg-color: #565544;
}

/* GFSC custom vars for reuse */
:root {
    --gfsc-primary: #ea5b0c;
    --gfsc-secondary: #f1f4d1;
    --gfsc-tertiary: #565544;
}

/* Make table headers stand out with GFSC colors */
.md-typeset table:not([class]) th {
    background-color: var(--gfsc-primary);
    color: white;
    font-weight: 700;
}

/* Alternating row colors for readability */
.md-typeset table:not([class]) tr:nth-child(even) td {
    background-color: var(--gfsc-secondary);
}

/* Dark mode overrides */
[data-md-color-scheme="slate"] {
    --gfsc-secondary: #3d3a2e;
    --md-mermaid-node-bg-color: #3d3a2e;
    --md-mermaid-node-fg-color: #f1f4d1;
}

/* Fix table text color in dark mode */
[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr:nth-child(even) td {
    color: var(--md-typeset-color);
}
