/* GENERATED by tools/build_design.py from design/shell.css. Edit design/ and rebuild; never edit this copy. */
/* ==========================================================================
   Redimo shell: header, toolbar menus and footer for every Redimo ID surface
   (client portal and the Keycloak login theme). The one definition; the
   copies in redimo_portal/static and the theme are generated by
   tools/build_design.py.

   Values follow redimo.sk (HS current_v2): Header.astro, Footer.astro,
   AppSwitcher.astro, ThemeToggle.astro and globals.css, as delivered in PR #6
   (reference package ceaa59ee…). Colours come only from tokens.css.
   HS sizes its rem values against an html font-size of 17 px, 18 px from
   768 px; the shell keeps those pixel results in --rd-shell-rem instead of
   changing the root font-size, which would rescale PatternFly in Keycloak.
   ========================================================================== */
:root {
  --rd-shell-rem: 17px;
  --rd-shell-footer-height: 44px;
  --rd-shell-glass-filter: blur(24px) saturate(180%);
  --rd-shell-line: color-mix(in srgb, var(--rd-border) 40%, transparent);
  --rd-shell-hairline: color-mix(in srgb, var(--rd-border-subtle) 30%, transparent);
}
@media (min-width: 768px) { :root { --rd-shell-rem: 18px; } }
@media (max-width: 640px) { :root { --rd-shell-footer-height: 92px; } }

.rd-shell-body { padding-block-end: var(--rd-shell-footer-height); }
/* The sticky header and the fixed footer must never cover the focused control or
   an anchor target (WCAG 2.4.11). shell.js sets --rd-shell-header-block to the
   measured header height; the fallbacks cover the header without JavaScript,
   including its three rows at 320 px. */
html {
  scroll-padding-block-start: calc(var(--rd-shell-header-block, 96px) + var(--rd-space-sm));
  scroll-padding-block-end: calc(var(--rd-shell-footer-height) + var(--rd-space-sm));
}
@media (max-width: 640px) { html { scroll-padding-block-start: calc(var(--rd-shell-header-block, 176px) + var(--rd-space-sm)); } }
.rd-shell-container {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: var(--rd-container-wide);
  margin-inline: auto;
  padding-inline: var(--rd-space-lg);
}
.rd-shell-icon { display: inline-flex; inline-size: 18px; block-size: 18px; flex-shrink: 0; }
.rd-shell-icon svg { inline-size: 100%; block-size: 100%; }
.rd-shell-sr {
  position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- Header ----------------------------------------------------------- */
.rd-shell-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--rd-glass-smoke);
  -webkit-backdrop-filter: var(--rd-shell-glass-filter);
  backdrop-filter: var(--rd-shell-glass-filter);
  border-block-end: 1px solid var(--rd-shell-line);
  box-shadow: 0 1px 0 0 var(--rd-shell-hairline);
}
.rd-shell-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-lg);
  padding-block: var(--rd-space-md);
  min-block-size: 64px;
}

.rd-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--rd-space-sm);
  flex-shrink: 0;
  color: var(--rd-text);
  font-family: "Inter Variable", "Inter", "Manrope Variable", "Manrope", system-ui, sans-serif;
  font-size: var(--rd-h2-size);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}
.rd-shell-brand:hover, .rd-shell-brand:focus-visible { text-decoration: none; }
.rd-shell-brand:focus-visible {
  outline: var(--rd-focus-ring-width) solid var(--rd-accent);
  outline-offset: var(--rd-focus-ring-offset);
  border-radius: var(--rd-radius-sm);
}
.rd-shell-brand img {
  inline-size: 40px;
  block-size: 40px;
  object-fit: contain;
  border-radius: var(--rd-radius-sm);
  flex-shrink: 0;
}
.rd-shell-word { display: inline-flex; align-items: baseline; }
.rd-shell-redi { color: var(--rd-text); }
.rd-shell-mo {
  background: var(--rd-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* ID addition to the HS wordmark: the product badge. */
.rd-shell-badge {
  align-self: center;
  padding: 4px 6px;
  border: 1px solid var(--rd-border-subtle);
  border-radius: var(--rd-radius-xs);
  color: var(--rd-text-muted);
  font-size: 12px;
  font-weight: var(--rd-weight-semibold);
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Navigation: icon + label links (HS .rd-icon-link). */
.rd-shell-nav { flex: 1; display: flex; justify-content: center; min-inline-size: 0; }
.rd-shell-nav-list { display: flex; align-items: center; gap: var(--rd-space-xs); list-style: none; margin: 0; padding: 0; }
.rd-shell-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rd-space-xs);
  padding-inline: var(--rd-space-md);
  block-size: 48px;
  min-block-size: 48px;
  box-sizing: border-box;
  background: var(--rd-surface-muted);
  border: 1px solid var(--rd-border-subtle);
  border-radius: var(--rd-radius-md);
  color: var(--rd-text-muted);
  text-decoration: none;
  transition: background-color var(--rd-transition-fast), border-color var(--rd-transition-fast), color var(--rd-transition-fast);
}
.rd-shell-link-label { font-size: var(--rd-body-sm-size); font-weight: var(--rd-weight-medium); line-height: 1; white-space: nowrap; }
.rd-shell-link:hover, .rd-shell-link:focus-visible {
  background: var(--rd-surface);
  border-color: var(--rd-border);
  color: var(--rd-text);
  text-decoration: none;
}
.rd-shell-link:focus-visible { outline: var(--rd-focus-ring-width) solid var(--rd-accent); outline-offset: var(--rd-focus-ring-offset); }
.rd-shell-link[aria-current="page"] {
  color: #ffffff;
  background: var(--rd-gradient-brand);
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15), 0 4px 14px rgba(99, 102, 241, 0.25);
}
.rd-shell-link[aria-current="page"]:hover { box-shadow: 0 2px 6px rgba(15, 23, 42, 0.20), 0 6px 20px rgba(99, 102, 241, 0.35); }

/* Toolbar: ecosystem, appearance, sign in / sign out. */
.rd-shell-toolbar { display: flex; align-items: center; gap: var(--rd-space-sm); flex-shrink: 0; }
.rd-shell-toolbar form { margin: 0; }
.rd-shell-menu { position: relative; }
.rd-shell-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--rd-shell-rem) * 0.25);
  padding-inline: calc(var(--rd-shell-rem) * 0.5);
  padding-block: 0;
  block-size: 48px;
  box-sizing: border-box;
  background: var(--rd-surface-muted);
  color: var(--rd-text-muted);
  border: 1px solid var(--rd-border-subtle);
  border-radius: var(--rd-radius-md);
  font-family: var(--rd-font-sans);
  font-size: var(--rd-body-sm-size);
  font-weight: var(--rd-weight-semibold);
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--rd-transition-fast), border-color var(--rd-transition-fast), color var(--rd-transition-fast);
}
.rd-shell-trigger::-webkit-details-marker { display: none; }
.rd-shell-trigger:hover, .rd-shell-menu[open] > .rd-shell-trigger { background: var(--rd-surface); border-color: var(--rd-border); color: var(--rd-text); }
/* An open listbox menu marks its trigger like HS (ThemeToggle, LocaleSwitcher): accent border. */
.rd-shell-trigger[aria-expanded="true"] { background: var(--rd-surface); border-color: var(--rd-accent); color: var(--rd-text); }
.rd-shell-trigger:focus-visible { outline: var(--rd-focus-ring-width) solid var(--rd-accent); outline-offset: var(--rd-focus-ring-offset); }
.rd-shell-chevron { display: inline-flex; inline-size: 14px; block-size: 14px; color: var(--rd-text-subtle); transition: transform var(--rd-transition-fast); }
.rd-shell-chevron svg { inline-size: 100%; block-size: 100%; }
.rd-shell-menu[open] .rd-shell-chevron, .rd-shell-trigger[aria-expanded="true"] .rd-shell-chevron { transform: rotate(180deg); }
.rd-shell-flag { display: block; inline-size: 22px; block-size: 22px; border-radius: 50%; flex-shrink: 0; }
.rd-shell-theme-glyph { display: none; }
[data-theme-choice="light"] .rd-shell-theme-glyph[data-for="light"],
[data-theme-choice="dark"] .rd-shell-theme-glyph[data-for="dark"],
[data-theme-choice="hc"] .rd-shell-theme-glyph[data-for="hc"],
[data-theme-choice="system"] .rd-shell-theme-glyph[data-for="system"],
:root:not([data-theme-choice]) .rd-shell-theme-glyph[data-for="dark"] { display: inline-flex; }

.rd-shell-menu:not([open]) > .rd-shell-panel { display: none; }
.rd-shell-panel {
  position: absolute;
  inset-block-start: calc(100% + var(--rd-space-sm));
  inset-inline-end: 0;
  z-index: 60;
  inline-size: min(420px, calc(100vw - var(--rd-space-lg) * 2));
  max-block-size: 70vh;
  overflow-y: auto;
  background: var(--rd-surface);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius-lg);
  box-shadow: var(--rd-elevation-xl);
}
.rd-shell-panel-title {
  margin: 0;
  padding: var(--rd-space-md) var(--rd-space-lg);
  border-block-end: 1px solid var(--rd-border-subtle);
  background: var(--rd-surface-muted);
  border-start-start-radius: var(--rd-radius-lg);
  border-start-end-radius: var(--rd-radius-lg);
  color: var(--rd-text-muted);
  font-size: var(--rd-caption-size);
  font-weight: var(--rd-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.rd-shell-panel-list { list-style: none; margin: 0; padding: var(--rd-space-xs); }
.rd-shell-item {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-xs);
  min-block-size: 56px;
  padding: var(--rd-space-md);
  border: 0;
  border-radius: var(--rd-radius-md);
  background: none;
  color: var(--rd-text);
  font: inherit;
  text-align: start;
  text-decoration: none;
  transition: background-color var(--rd-transition-fast);
  box-sizing: border-box;
  inline-size: 100%;
}
.rd-shell-item:hover, .rd-shell-item:focus { background: var(--rd-surface-muted); color: var(--rd-text); text-decoration: none; }
.rd-shell-item:focus-visible { outline: var(--rd-focus-ring-width) solid var(--rd-accent); outline-offset: -2px; }
.rd-shell-item strong { display: flex; justify-content: space-between; gap: var(--rd-space-md); font-size: var(--rd-body-sm-size); }
.rd-shell-item > span { color: var(--rd-text-muted); font-size: var(--rd-caption-size); }

/* Listbox menus: appearance and language, after HS ThemeToggle.astro and LocaleSwitcher.astro.
   button[aria-haspopup=listbox] + ul[role=listbox] > li[role=option][aria-selected]; no panel title.
   Behaviour (keys, focus, choice) is in shell.js. */
.rd-shell-listbox {
  position: absolute;
  inset-block-start: calc(100% + 4px);
  inset-inline-end: 0;
  z-index: 60;
  min-inline-size: 14rem;
  margin: 0;
  padding: var(--rd-space-xs);
  list-style: none;
  background: var(--rd-surface);
  border: 1px solid var(--rd-border-subtle);
  border-radius: var(--rd-radius-md);
  box-shadow: var(--rd-elevation-lg);
}
.rd-shell-listbox[hidden] { display: none; }
.rd-shell-listbox-form { margin: 0; }
.rd-shell-option {
  display: flex;
  align-items: center;
  gap: var(--rd-space-sm);
  padding: var(--rd-space-sm);
  min-block-size: 44px;
  box-sizing: border-box;
  border-radius: var(--rd-radius-sm);
  color: var(--rd-text);
  font-family: var(--rd-font-sans);
  font-size: var(--rd-body-sm-size);
  font-weight: var(--rd-weight-medium);
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--rd-transition-fast);
}
.rd-shell-option:hover, .rd-shell-option:focus-visible { background: var(--rd-surface-muted); }
.rd-shell-option:focus-visible { outline: var(--rd-focus-ring-width) solid var(--rd-accent); outline-offset: -1px; }
.rd-shell-option > .rd-shell-option-label { flex: 1 1 auto; min-inline-size: 0; text-align: start; white-space: nowrap; }
/* Idle check keeps its 18px slot so labels do not shift. visibility hides it in normal and forced-colours modes. */
.rd-shell-option > .rd-shell-option-check { flex: 0 0 18px; inline-size: 18px; block-size: 18px; visibility: hidden; }
.rd-shell-option[aria-selected="true"] { background: var(--rd-accent-light); color: var(--rd-accent-text); font-weight: var(--rd-weight-semibold); }
.rd-shell-option[aria-selected="true"] > .rd-shell-option-check { visibility: visible; }

.rd-shell-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--rd-space-xs);
  padding-inline: var(--rd-space-md);
  padding-block: var(--rd-space-sm);
  min-block-size: 48px;
  box-sizing: border-box;
  background: var(--rd-gradient-brand);
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: var(--rd-radius-md);
  font-family: var(--rd-font-sans);
  font-size: var(--rd-body-sm-size);
  font-weight: var(--rd-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15), 0 4px 14px rgba(99, 102, 241, 0.20);
  transition: transform var(--rd-transition-fast), box-shadow var(--rd-transition-normal);
}
.rd-shell-cta:hover { color: #ffffff; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.20), 0 6px 20px rgba(99, 102, 241, 0.30); text-decoration: none; }
.rd-shell-cta:focus-visible { outline: var(--rd-focus-ring-width) solid var(--rd-accent); outline-offset: var(--rd-focus-ring-offset); }

/* --- Footer: fixed, smoked glass like the header ------------------------- */
.rd-shell-footer {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 50;
  block-size: var(--rd-shell-footer-height);
  box-sizing: border-box;
  background: var(--rd-glass-smoke);
  -webkit-backdrop-filter: var(--rd-shell-glass-filter);
  backdrop-filter: var(--rd-shell-glass-filter);
  color: var(--rd-text-muted);
  border-block-start: 1px solid var(--rd-shell-line);
  box-shadow: 0 -1px 0 0 var(--rd-shell-hairline);
  font-size: calc(var(--rd-shell-rem) * 0.8125);
}
.rd-shell-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  block-size: 100%;
  gap: 0 var(--rd-space-md);
}
.rd-shell-copy { margin: 0; display: inline-flex; align-items: baseline; gap: 0.4em; white-space: nowrap; color: var(--rd-text-muted); font-size: inherit; }
.rd-shell-copy-symbol { color: var(--rd-text-subtle); }
.rd-shell-copy a { color: var(--rd-text); font-weight: var(--rd-weight-semibold); text-decoration: none; transition: color var(--rd-transition-normal); }
.rd-shell-copy a:hover, .rd-shell-copy a:focus-visible { color: var(--rd-accent); text-decoration: underline; text-underline-offset: 4px; }
.rd-shell-footer-nav { flex: 1 1 auto; min-inline-size: 0; }
.rd-shell-footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--rd-space-xs) var(--rd-space-md); }
.rd-shell-footer-list li { display: inline-flex; align-items: center; }
.rd-shell-footer-list li + li::before {
  content: "";
  display: inline-block;
  inline-size: 1px;
  block-size: 0.85em;
  background: var(--rd-border-subtle);
  margin-inline-end: var(--rd-space-md);
  transform: translateY(0.05em);
}
.rd-shell-footer-list a {
  display: inline-flex;
  align-items: center;
  min-block-size: 28px;
  color: var(--rd-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--rd-transition-normal);
}
.rd-shell-footer-list a:hover, .rd-shell-footer-list a:focus-visible { color: var(--rd-text); text-decoration: underline; text-underline-offset: 4px; }
.rd-shell-copy a:focus-visible, .rd-shell-footer-list a:focus-visible {
  outline: var(--rd-focus-ring-width) solid var(--rd-accent);
  outline-offset: var(--rd-focus-ring-offset);
  border-radius: var(--rd-radius-sm);
}

/* --- Smaller screens ------------------------------------------------------ */
@media (max-width: 900px) {
  .rd-shell-link-label { display: none; }
  .rd-shell-link { inline-size: 48px; padding-inline: 0; }
}
@media (max-width: 640px) {
  .rd-shell-container { padding-inline: var(--rd-space-md); }
  .rd-shell-header-inner { flex-wrap: wrap; gap: var(--rd-space-sm); padding-block: var(--rd-space-sm); }
  .rd-shell-brand { margin-inline-end: auto; }
  .rd-shell-nav { order: 3; flex: 1 1 100%; }
  /* The toolbar never outgrows its row: a wide control inside it shrinks instead of the page. */
  .rd-shell-toolbar { flex-shrink: 1; min-inline-size: 0; max-inline-size: 100%; gap: var(--rd-space-xs); }
  /* Four toolbar menus (ecosystem, language, appearance, sign out) stay on the logo's row from 375 px:
     icons only, the open state is still shown by the accent border and aria-expanded. */
  .rd-shell-toolbar .rd-shell-chevron { display: none; }
  .rd-shell-menu { position: static; }
  .rd-shell-header-inner { position: relative; }
  .rd-shell-panel { inset-inline: var(--rd-space-md); inline-size: auto; }
  .rd-shell-listbox { inset-inline: auto var(--rd-space-md); }
  .rd-shell-signout-label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .rd-shell-footer-inner { flex-direction: column; flex-wrap: nowrap; justify-content: center; gap: 0.25rem; }
  .rd-shell-footer-nav { flex: 0 0 auto; inline-size: 100%; }
  .rd-shell-footer-list { justify-content: center; gap: 0 var(--rd-space-sm); }
  .rd-shell-footer-list a { font-size: calc(var(--rd-shell-rem) * 0.75); }
  .rd-shell-footer-list li + li::before { margin-inline-end: var(--rd-space-sm); }
}

/* --- High contrast, forced colours, motion, print --------------------- */
[data-theme="hc"] .rd-shell-header,
[data-theme="hc"] .rd-shell-footer { background: var(--rd-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-theme="hc"] .rd-shell-header { border-block-end-width: 3px; }
[data-theme="hc"] .rd-shell-footer { border-block-start-width: 3px; }
[data-theme="hc"] .rd-shell-redi { color: #ffffff; }
[data-theme="hc"] .rd-shell-mo { background: none; -webkit-text-fill-color: var(--rd-accent-text); color: var(--rd-accent-text); }
[data-theme="hc"] .rd-shell-footer-list li + li::before { background: CanvasText; inline-size: 2px; }
[data-theme="hc"] .rd-shell-listbox { border-width: 3px; }
[data-theme="hc"] .rd-shell-trigger[aria-haspopup="listbox"] { border-width: 3px; }
[data-theme="hc"] .rd-shell-option[aria-selected="true"] { outline: 2px solid currentColor; outline-offset: -2px; }
@supports not (backdrop-filter: blur(1px)) {
  .rd-shell-header, .rd-shell-footer { background: color-mix(in srgb, var(--rd-surface) 96%, transparent); }
}
@media (forced-colors: active) {
  .rd-shell-header, .rd-shell-footer, .rd-shell-panel, .rd-shell-listbox { background: Canvas; border-color: CanvasText; }
  .rd-shell-redi, .rd-shell-mo { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
  .rd-shell-badge { border-color: CanvasText; }
  .rd-shell-link[aria-current="page"], .rd-shell-option[aria-selected="true"] { border: 3px solid Highlight; }
  .rd-shell-option { color: CanvasText; }
  .rd-shell-option[aria-selected="true"] { background: Highlight; color: HighlightText; }
  .rd-shell-option[aria-selected="true"] > span,
  .rd-shell-option[aria-selected="true"] svg { color: HighlightText; stroke: HighlightText; }
  .rd-shell-option[aria-selected="true"] > .rd-shell-option-check { visibility: visible; }
  .rd-shell-option:not([aria-selected="true"]) > .rd-shell-option-check { visibility: hidden; color: Canvas; stroke: Canvas; }
  .rd-shell-footer-list li + li::before { background: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-shell-link, .rd-shell-trigger, .rd-shell-chevron, .rd-shell-cta, .rd-shell-item, .rd-shell-option { transition: none; }
  .rd-shell-cta:hover { transform: none; }
}
@media print {
  .rd-shell-nav, .rd-shell-toolbar, .rd-shell-footer { display: none !important; }
  .rd-shell-header { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rd-shell-body { padding-block-end: 0; }
}
