:root {
  --hbf-shell-bg: rgba(7, 5, 18, 0.97);
  --hbf-shell-panel: #110c2b;
  --hbf-shell-line: rgba(167, 139, 250, 0.36);
  --hbf-shell-text: #f4f0ff;
  --hbf-shell-muted: #c9c1dc;
  --hbf-shell-accent: #b8a1ff;
  --hbf-shell-ok: #70e6aa;
  --hbf-shell-warn: #ffd27a;
}

.hbf-skip-link {
  position: fixed;
  left: 0.75rem;
  top: -8rem;
  z-index: 10001;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #080515;
  background: #fff;
  font: 700 0.95rem/1.2 system-ui, sans-serif;
}

.hbf-skip-link:focus { top: 0.75rem; }

#hbf-global-shell {
  position: relative;
  z-index: 1000;
  color: var(--hbf-shell-text);
  background: var(--hbf-shell-bg);
  border-bottom: 1px solid var(--hbf-shell-line);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.hbf-immersive #hbf-global-shell {
  position: fixed;
  top: 0.5rem;
  right: 0.5rem;
  width: min(32rem, calc(100vw - 1rem));
  border: 1px solid var(--hbf-shell-line);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.55);
}

.hbf-shell-bar {
  min-height: 3.25rem;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hbf-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--hbf-shell-text);
  text-decoration: none;
  font-weight: 750;
}

.hbf-shell-brand img { width: 1.75rem; height: 1.75rem; }
.hbf-shell-brand span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.hbf-shell-menu-button {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  color: var(--hbf-shell-text);
  background: #211451;
  border: 1px solid var(--hbf-shell-line);
  border-radius: 0.55rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hbf-shell-panel {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.hbf-shell-panel[hidden] { display: none; }

.hbf-shell-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.hbf-shell-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 0.5rem;
  color: var(--hbf-shell-muted);
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
}

.hbf-shell-nav a:hover,
.hbf-shell-nav a:focus-visible,
.hbf-shell-nav a[aria-current="page"] {
  color: #fff;
  border-color: var(--hbf-shell-accent);
  background: rgba(124, 92, 255, 0.18);
}

.hbf-shell-evidence {
  margin-top: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-left: 3px solid var(--hbf-shell-warn);
  border-radius: 0.35rem;
  color: var(--hbf-shell-muted);
  background: rgba(255, 210, 122, 0.07);
  font-size: 0.82rem;
}

.hbf-shell-evidence strong { color: var(--hbf-shell-text); }
.hbf-shell-evidence a { color: var(--hbf-shell-accent); }

.hbf-canonical .nav { display: none !important; }

.hbf-canonical :focus-visible {
  outline: 3px solid #ffd27a !important;
  outline-offset: 3px !important;
}

.hbf-canonical footer.hbf-release-footer {
  max-width: 76rem;
  margin: 2rem auto 0;
  padding: 1rem;
  border-top: 1px solid var(--hbf-shell-line);
  color: var(--hbf-shell-muted);
  font: 0.82rem/1.5 system-ui, sans-serif;
}

.hbf-immersive footer.hbf-release-footer { display: none; }

@media (max-width: 760px) {
  .hbf-shell-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbf-shell-bar { padding-inline: 0.65rem; }
  .hbf-shell-panel { padding-inline: 0.65rem; }
}

@media (max-width: 360px) {
  .hbf-shell-brand span { max-width: 10rem; }
  .hbf-shell-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hbf-canonical *, .hbf-canonical *::before, .hbf-canonical *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  #hbf-global-shell, .hbf-skip-link { display: none !important; }
}
