/*
 * R5-C — the console's brand override, hand-written against the Incus
 * UI's Vanilla 4.50 markup. R5-H1 replaces this file with the theme
 * the Style Dictionary + Vanilla build generates; until then it does
 * the two things the console cannot ship without: hide the nav entries
 * for the pages the proxy 302s away, and put the brand accent on the
 * chrome so the page does not read as someone else's product.
 *
 * The selectors mirror console_hidden_ui_paths. Confirm the li/a
 * structure in the browser during the manual check and adjust here if
 * the UI package changes it.
 */

li.p-side-navigation__item:has(a[href="/ui/settings"]),
li.p-side-navigation__item:has(a[href^="/ui/warnings"]),
li.p-side-navigation__item:has(a[href="/ui/server"]),
li.p-side-navigation__item:has(a[href^="/ui/cluster"]),
li.p-side-navigation__item:has(a[href^="/ui/permissions"]),
li.p-side-navigation__item:has(a[href^="/ui/os"]),
li.p-side-navigation__item:has(a[href^="/ui/image-registr"]),
li.p-side-navigation__item:has(a[href$="/storage/pools"]),
li.p-side-navigation__item:has(a[href^="https://discuss.linuxcontainers.org"]),
li.p-side-navigation__item:has(a[href*="incus-ui-canonical/issues"]),
a[href="/ui/projects/create"],
a[href$="/storage/pools/create"] {
  display: none !important;
}

/* Brand minimum. The hexes are the byte-locked brand values (accent
 * #fbbf24, page #0b0d17, text #f7f8fb) — declared literally here
 * because this sheet is loaded into someone else's cascade. */
.p-panel__logo-image {
  max-height: 2.25rem;
  width: auto;
}

.p-side-navigation__link:hover,
.p-side-navigation__link:focus {
  color: #fbbf24 !important;
}

.p-side-navigation__item.is-active > .p-side-navigation__link,
.p-side-navigation__link[aria-current="page"] {
  border-left-color: #fbbf24 !important;
  color: #fbbf24 !important;
}

a:not([class]):hover,
a:not([class]):focus {
  color: #fbbf24;
}
