/* GrayC brand tokens and PatternFly 5 overrides, shared by the login and the
   account theme. Copied into both by the Dockerfile; edit only this file. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }

:root {
    --grayc-orange: #FD8E4A;
    --grayc-orange-hover: #E57A36;
    --grayc-orange-text: #B25A14;   /* orange for text on light: 4.8:1 on white */
    --grayc-petrol: #2E4656;
    --grayc-petrol-deep: #1E2E39;
    --grayc-on-orange: #1B2B36;     /* text on orange: 6.3:1 */
    --grayc-wash: #F5F6F7;
    --grayc-font-heading: "Montserrat", "Roboto", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --grayc-font-text: "Roboto", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

    --pf-v5-global--FontFamily--text: var(--grayc-font-text);
    --pf-v5-global--FontFamily--heading: var(--grayc-font-heading);
    --pf-v5-global--primary-color--100: var(--grayc-petrol);
    --pf-v5-global--primary-color--200: var(--grayc-petrol-deep);
    --pf-v5-global--link--Color: var(--grayc-orange-text);
    --pf-v5-global--link--Color--hover: #8F4810;
}

/* PatternFly declares its dark tokens under :where(.pf-v5-theme-dark), which
   has no specificity, so these win. White on orange fails contrast: dark mode
   buttons are orange with petrol text. */
:root.pf-v5-theme-dark {
    --pf-v5-global--primary-color--100: var(--grayc-orange);
    --pf-v5-global--primary-color--200: var(--grayc-orange-hover);
    --pf-v5-global--link--Color: var(--grayc-orange);
    --pf-v5-global--link--Color--hover: #FFB585;
    --pf-v5-c-button--m-primary--Color: var(--grayc-on-orange);
    --pf-v5-c-button--m-primary--hover--Color: var(--grayc-on-orange);
    --pf-v5-c-button--m-primary--focus--Color: var(--grayc-on-orange);
    --pf-v5-c-button--m-primary--active--Color: var(--grayc-on-orange);
}

/* PatternFly 5 redeclares the button variables on .pf-v5-c-button itself in
   dark mode, which a :root declaration cannot beat; set them on the button. */
:root.pf-v5-theme-dark .pf-v5-c-button.pf-m-primary {
    --pf-v5-c-button--m-primary--BackgroundColor: var(--grayc-orange);
    --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--grayc-orange-hover);
    --pf-v5-c-button--m-primary--focus--BackgroundColor: var(--grayc-orange-hover);
    --pf-v5-c-button--m-primary--active--BackgroundColor: var(--grayc-orange-hover);
    --pf-v5-c-button--m-primary--Color: var(--grayc-on-orange);
    --pf-v5-c-button--m-primary--hover--Color: var(--grayc-on-orange);
    --pf-v5-c-button--m-primary--focus--Color: var(--grayc-on-orange);
    --pf-v5-c-button--m-primary--active--Color: var(--grayc-on-orange);
}

h1, h2, h3, .pf-v5-c-title {
    font-family: var(--grayc-font-heading);
}
