/* WANO brand on Keycloak's account and administration consoles (PatternFly 5). The consoles
   are Keycloak's own React apps; this sheet only re-points PatternFly's design variables
   and the masthead, so console upgrades keep working. Brand values as the sign-in pages:
   Marine Blue #003865, Pacific #26d8ff, Crimson #af0b1c, Montserrat. The same file is used
   by the account and admin themes. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-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;
}

:root {
  --wano-marine: #003865;
  --wano-marine-dark: #00274a;
  --wano-marine-80: #1a4c74;
  --wano-marine-20: #e6ebf0;
  --wano-pacific: #26d8ff;
  --wano-crimson: #af0b1c;

  --pf-v5-global--FontFamily--text: "Montserrat", "Noto Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --pf-v5-global--FontFamily--heading: "Montserrat", "Noto Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --pf-v5-global--FontFamily--redhat-updated--heading: var(--pf-v5-global--FontFamily--heading);
  --pf-v5-global--FontFamily--redhat-updated--text: var(--pf-v5-global--FontFamily--text);

  --pf-v5-global--primary-color--100: var(--wano-marine);
  --pf-v5-global--primary-color--200: var(--wano-marine-dark);
  --pf-v5-global--primary-color--light-100: var(--wano-marine-20);
  --pf-v5-global--link--Color: var(--wano-marine);
  --pf-v5-global--link--Color--hover: var(--wano-marine-80);
  --pf-v5-global--link--Color--visited: var(--wano-marine);
  --pf-v5-global--active-color--100: var(--wano-marine-80);
  --pf-v5-global--active-color--400: var(--wano-pacific);
  --pf-v5-global--danger-color--100: var(--wano-crimson);
  --pf-v5-global--BorderRadius--sm: 6px;
}

/* Masthead: Marine Blue bar with the white logo (img/wano-logo-white.png), like the portal's rail */
.pf-v5-c-masthead {
  --pf-v5-c-masthead--BackgroundColor: var(--wano-marine);
  --pf-v5-c-masthead--m-display-inline__main--BorderRightColor: transparent;
  background-color: var(--wano-marine);
}
.pf-v5-c-masthead .pf-v5-c-brand,
.pf-v5-c-masthead__brand img,
.pf-v5-c-masthead img.pf-v5-c-brand {
  height: 30px;
  width: auto;
  max-width: 180px;
}

/* Primary actions and selected items in the brand colour */
.pf-v5-c-button.pf-m-primary {
  --pf-v5-c-button--m-primary--BackgroundColor: var(--wano-marine);
  --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--wano-marine-dark);
  --pf-v5-c-button--m-primary--focus--BackgroundColor: var(--wano-marine-dark);
  --pf-v5-c-button--m-primary--active--BackgroundColor: var(--wano-marine-dark);
  font-weight: 600;
}
.pf-v5-c-button.pf-m-secondary {
  --pf-v5-c-button--m-secondary--Color: var(--wano-marine);
  --pf-v5-c-button--m-secondary--BorderColor: var(--wano-marine);
  --pf-v5-c-button--m-secondary--hover--Color: var(--wano-marine-dark);
  --pf-v5-c-button--m-secondary--hover--BorderColor: var(--wano-marine-dark);
}
.pf-v5-c-button.pf-m-link {
  --pf-v5-c-button--m-link--Color: var(--wano-marine);
  --pf-v5-c-button--m-link--hover--Color: var(--wano-marine-80);
}
.pf-v5-c-nav {
  --pf-v5-c-nav__link--m-current--after--BorderColor: var(--wano-pacific);
}
.pf-v5-c-tabs {
  --pf-v5-c-tabs__link--after--BorderColor: transparent;
  --pf-v5-c-tabs__item--m-current__link--after--BorderColor: var(--wano-marine);
}
.pf-v5-c-switch {
  --pf-v5-c-switch__input--checked__toggle--BackgroundColor: var(--wano-marine);
}
.pf-v5-c-check__input, .pf-v5-c-radio__input { accent-color: var(--wano-marine); }

/* Keyboard focus in Pacific, as on the sign-in pages */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--wano-pacific);
  outline-offset: 2px;
}

/* Headings in Marine Blue */
.pf-v5-c-title, .pf-v5-c-page__main-section h1 { color: var(--wano-marine); }

/* Side navigation: Marine Blue with white text, the current item a lighter Marine tint and a
   Pacific marker, as the portal's rail */
.pf-v5-c-page__sidebar {
  --pf-v5-c-page__sidebar--BackgroundColor: var(--wano-marine);
  background-color: var(--wano-marine);
}
.pf-v5-c-page__sidebar .pf-v5-c-nav {
  --pf-v5-c-nav--BackgroundColor: var(--wano-marine);
  --pf-v5-c-nav__link--Color: #ffffff;
  --pf-v5-c-nav__link--hover--Color: #ffffff;
  --pf-v5-c-nav__link--BackgroundColor: transparent;
  --pf-v5-c-nav__link--hover--BackgroundColor: var(--wano-marine-80);
  --pf-v5-c-nav__link--focus--BackgroundColor: var(--wano-marine-80);
  --pf-v5-c-nav__link--active--BackgroundColor: var(--wano-marine-80);
  --pf-v5-c-nav__link--m-current--BackgroundColor: var(--wano-marine-80);
  --pf-v5-c-nav__link--m-current--Color: #ffffff;
  --pf-v5-c-nav__section-title--Color: #ccd7e0;
  --pf-v5-c-nav__section--section--before--BorderColor: rgba(255, 255, 255, 0.18);
  --pf-v5-c-nav__item--before--BorderColor: rgba(255, 255, 255, 0.18);
  --pf-v5-c-nav__link--m-current--after--BorderColor: var(--wano-pacific);
}
.pf-v5-c-page__sidebar .pf-v5-c-nav__section-title { color: #ccd7e0; }
