/*
 * Expresia brand on Keycloak's keycloak.v3 account console (PatternFly 5).
 * Same palette and type as the sign-in theme (login/resources/css): the dark
 * masthead carries the light wordmark over the site's aurora, and the actions
 * use its purple-to-magenta gradient. DM Sans and Space Grotesk are SIL OFL
 * 1.1, see fonts/.
 */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --xpr-page: #090914;
  --xpr-panel: #13101f;
  --xpr-purple: #9333ea;
  --xpr-violet: #8328d5;
  --xpr-magenta: #a4027b;
  --xpr-blue: #3b83f1;
  --xpr-primary: linear-gradient(110deg, var(--xpr-violet), var(--xpr-magenta));
  --xpr-primary-hover: linear-gradient(110deg, #9538e5, #b5108c);

  --pf-v5-global--FontFamily--text: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --pf-v5-global--FontFamily--heading: "Space Grotesk", "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --pf-v5-global--primary-color--100: var(--xpr-violet);
  --pf-v5-global--primary-color--200: var(--xpr-magenta);
  --pf-v5-global--link--Color: var(--xpr-violet);
  --pf-v5-global--link--Color--hover: var(--xpr-magenta);
  --pf-v5-global--active-color--100: var(--xpr-purple);
}

/* The masthead carries the light wordmark on the site's dark aurora. */
.pf-v5-c-masthead {
  --pf-v5-c-masthead--BackgroundColor: var(--xpr-page);
  background:
    radial-gradient(at 10% 0%, rgba(147, 51, 234, 0.3), transparent 60%),
    radial-gradient(at 90% 0%, rgba(164, 2, 123, 0.22), transparent 60%),
    var(--xpr-page);
}
/* The toolbar inside it paints its own background, which would cut the glow
   off after the logo. */
.pf-v5-c-masthead .pf-v5-c-toolbar {
  --pf-v5-c-toolbar--BackgroundColor: transparent;
  background-color: transparent;
}
.pf-v5-c-masthead .pf-v5-c-brand,
.pf-v5-c-masthead img {
  height: 24px;
}

/* Sidebar on the site's panel colour, with the current item marked in purple
   instead of PatternFly's light blue. */
.pf-v5-c-page__sidebar {
  --pf-v5-c-page__sidebar--BackgroundColor: var(--xpr-panel);
}
.pf-v5-c-nav {
  --pf-v5-c-nav__link--m-current--BackgroundColor: rgba(147, 51, 234, 0.2);
  --pf-v5-c-nav__link--hover--BackgroundColor: rgba(147, 51, 234, 0.12);
  --pf-v5-c-nav__link--m-current--after--BorderColor: var(--xpr-purple);
  --pf-v5-c-nav__link--hover--after--BorderColor: var(--xpr-purple);
  --pf-v5-c-nav__link--focus--after--BorderColor: var(--xpr-purple);
  --pf-v5-c-nav__link--active--after--BorderColor: var(--xpr-purple);
}

.pf-v5-c-title {
  letter-spacing: -0.01em;
}

/* Primary actions are the site's "Try Expresia" button. */
.pf-v5-c-button.pf-m-primary {
  background: var(--xpr-primary);
  border-radius: 8px;
  font-weight: 500;
}
.pf-v5-c-button.pf-m-primary:hover,
.pf-v5-c-button.pf-m-primary:focus {
  background: var(--xpr-primary-hover);
}
.pf-v5-c-button.pf-m-primary::after,
.pf-v5-c-button.pf-m-secondary,
.pf-v5-c-button.pf-m-secondary::after {
  border-radius: 8px;
}
