/* ==========================================================================
   common solutions brand layer for the PatternFly 5 consoles
   (account keycloak.v3 + admin keycloak.v2 — the admin theme links this file).
   Tokens mirror login/resources/css/login.css; only PatternFly variables and a
   few component hooks are overridden, the console layout stays stock.
   ========================================================================== */

/* Fonts live in the login theme: /resources/<v>/login/common-solutions/fonts */
@font-face { font-family: 'Satoshi'; src: url('../../../login/common-solutions/fonts/Satoshi-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../../../login/common-solutions/fonts/Satoshi-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../../../login/common-solutions/fonts/Satoshi-MediumItalic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../../../login/common-solutions/fonts/Satoshi-Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --cs-newnight:   #0A001A;
  --cs-offwhite:   #FAF7FF;
  --cs-muteviolet: #780AFF;
  --cs-pureviolet: #953FFF;
  --cs-muteaqua:   #16D4C2;
  --cs-night-700:  #231733;
  --cs-night-500:  #5A4E69;
  --cs-night-200:  #DCD7E3;
  --cs-night-100:  #EFEBF5;

  /* Typography — Satoshi only ships 300/500/900, so map PF weights onto them. */
  --pf-v5-global--FontFamily--text: 'Satoshi', -apple-system, 'Segoe UI', sans-serif;
  --pf-v5-global--FontFamily--heading: 'Satoshi', -apple-system, 'Segoe UI', sans-serif;
  --pf-v5-global--FontWeight--light: 300;
  --pf-v5-global--FontWeight--normal: 500;
  --pf-v5-global--FontWeight--semi-bold: 900;
  --pf-v5-global--FontWeight--bold: 900;

  /* Colours */
  --pf-v5-global--primary-color--100: var(--cs-muteviolet);
  --pf-v5-global--primary-color--200: var(--cs-pureviolet);
  --pf-v5-global--primary-color--dark-100: var(--cs-pureviolet);
  /* active-color--400 marks the current item on dark surfaces (sidebar nav). */
  --pf-v5-global--active-color--400: var(--cs-muteaqua);
  --pf-v5-global--active-color--100: var(--cs-muteviolet);
  --pf-v5-global--link--Color: var(--cs-muteviolet);
  --pf-v5-global--link--Color--hover: var(--cs-pureviolet);
  --pf-v5-global--Color--100: var(--cs-newnight);
  --pf-v5-global--Color--200: var(--cs-night-500);
  --pf-v5-global--BorderColor--100: var(--cs-night-200);
  --pf-v5-global--BackgroundColor--200: var(--cs-offwhite);
  --pf-v5-global--success-color--100: #0E8C7F;
  --pf-v5-global--danger-color--100: #E5484D;

  /* Shape: surfaces stay square, controls become pills (as on the login page). */
  --pf-v5-global--BorderRadius--sm: 4px;
  --pf-v5-global--BorderRadius--lg: 0;
}

/* Component rules carry a :root prefix: the consoles lazy-load PatternFly
   component CSS after this file, so equal specificity would lose. */

/* Masthead in NewNight, carrying the white logo. */
:root .pf-v5-c-masthead {
  --pf-v5-c-masthead--BackgroundColor: var(--cs-newnight);
  --pf-v5-c-masthead--item-border-color--base: var(--cs-night-700);
}

/* Sidebar one step lighter than the masthead instead of PatternFly grey. */
:root .pf-v5-c-page__sidebar {
  --pf-v5-c-page__sidebar--BackgroundColor: #150A26;
}

/* Buttons: violet pill. */
:root .pf-v5-c-button {
  --pf-v5-c-button--BorderRadius: 999px;
  --pf-v5-c-button--FontWeight: 900;
}
:root .pf-v5-c-button.pf-m-primary {
  --pf-v5-c-button--m-primary--BackgroundColor: var(--cs-muteviolet);
  --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--cs-pureviolet);
  --pf-v5-c-button--m-primary--focus--BackgroundColor: var(--cs-pureviolet);
  --pf-v5-c-button--m-primary--active--BackgroundColor: var(--cs-pureviolet);
  --pf-v5-c-button--m-primary--Color: var(--cs-offwhite);
}
:root .pf-v5-c-button.pf-m-secondary {
  --pf-v5-c-button--m-secondary--Color: var(--cs-newnight);
  --pf-v5-c-button--m-secondary--BorderColor: var(--cs-newnight);
  --pf-v5-c-button--m-secondary--hover--Color: var(--cs-offwhite);
  --pf-v5-c-button--m-secondary--hover--BackgroundColor: var(--cs-newnight);
  --pf-v5-c-button--m-secondary--hover--BorderColor: var(--cs-newnight);
}

/* Navigation: current item marked in aqua. */
:root .pf-v5-c-nav {
  --pf-v5-c-nav__link--m-current--BackgroundColor: #231733;
}

/* Focus ring in brand aqua. */
:focus-visible { outline-color: var(--cs-muteaqua); }
