/* Restore the original compact header, keeping the current LEGA artwork. */
.topbar.lega-values-header {
  position: sticky;
  inset: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px;
  height: 76px;
  min-height: 76px;
  padding: 0 22px;
  background: #030303;
}
.lega-values-header .lega-brand-mark {
  flex-shrink: 0;
  max-width: 100%;
}
.topbar.lega-values-header nav {
  min-width: 0;
  flex: 1;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 12px;
}
.topbar.lega-values-header nav a { min-height: 44px; }
.lega-values-page :is(main, section)[id] {
  scroll-margin-top: calc(var(--lega-header-height, 76px) + 16px);
}
/* The sticky header occupies its own space, keeping the hero artwork clear. */
.lega-values-page .original-hero { height: 36.1vw; padding-top: 0; }
.lega-values-page .original-actions { top: 21.9vw; }
@media (min-width: 961px) and (max-width: 1250px) {
  .topbar.lega-values-header {
    height: auto;
    padding-block: 10px;
    gap: 20px;
  }
  .topbar.lega-values-header nav { flex-wrap: wrap; gap: 0 12px; }
  .topbar.lega-values-header nav a { min-height: 26px; }
}
@media (max-width: 960px) {
  .topbar.lega-values-header {
    gap: 16px;
    padding: 0 16px;
  }
  .lega-values-header .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    flex-shrink: 0;
  }
  .topbar.lega-values-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    max-height: calc(100dvh - var(--lega-header-height, 76px) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    background: #050505;
    border: 1px solid var(--line);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
  }
  .menu-open .topbar.lega-values-header nav { display: flex; }
  .topbar.lega-values-header nav a {
    width: 100%;
    min-height: 44px;
    font-size: 12px;
  }
}
@media (max-width: 820px) {
  .lega-values-page .original-hero { height: auto; }
  .lega-values-page .original-actions { top: auto; }
}
