/* Original-ship Nocturne lockup, measured against the native desktop/mobile header. */
/* Remove only the old bitmap's white mat, never the fallback logo styling. */
body.design_modern.velas-nocturne-space .rh_header .rh_logo a:has(.velas-logo-lockup),
body.velas-nocturne-surface .rh_logo a:has(.velas-logo-lockup) {
  background: transparent;
  padding: 0;
}
.velas-logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  inline-size: 260px;
  max-inline-size: 100%;
  color: #f4efe9;
  vertical-align: middle;
}
.velas-logo-lockup__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  inline-size: 100%;
}
.velas-logo-lockup__word {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 23px;
  white-space: nowrap;
  text-transform: uppercase;
}
.velas-logo-lockup__word:first-child { text-align: end; }
.velas-logo-lockup__word:last-child { text-align: start; }
.velas-logo-lockup__ship {
  display: block;
  inline-size: auto;
  block-size: 56px;
  aspect-ratio: 150 / 190;
  flex: none;
}
.velas-logo-lockup__descriptor {
  margin-block-start: 2px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: .3px;
  color: #e9ad9c;
  text-align: center;
}
.velas-logo-lockup--compact { inline-size: 220px; }
.velas-logo-lockup--compact .velas-logo-lockup__line { display: flex; gap: 4px; }
.velas-logo-lockup--compact .velas-logo-lockup__ship { block-size: 48px; }
.velas-logo-lockup--compact .velas-logo-lockup__word { font-size: 18px; line-height: 22px; }
.velas-logo-lockup--compact .velas-logo-lockup__descriptor { display: none; }
@media (max-width: 640px) {
  .velas-logo-lockup { inline-size: 220px; }
  .velas-logo-lockup__line { display: flex; gap: 4px; }
  .velas-logo-lockup__ship { block-size: 48px; }
  .velas-logo-lockup__word { font-size: 18px; line-height: 22px; }
  .velas-logo-lockup__descriptor { display: none; }
}

/* The retained shared-shell MU uses its own palette and absolute controls.
 * Scope its variables to the Nocturne header, keeping article/card tokens intact. */
body.codex-velas-shared-shell.velas-nocturne-space header.rh_header {
  --vp-surface: #100e1a;
  --vp-ink: #f4efe9;
  --vp-muted: #c7b9c8;
  --vp-line: rgba(255, 239, 231, .18);
  --vp-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_menu__responsive,
body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .sub-menu {
  background: #100e1a !important;
  border: 1px solid rgba(255, 239, 231, .18);
}
body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .main-menu a:focus-visible,
body.codex-velas-shared-shell.velas-nocturne-space header.rh_header [role="button"]:focus-visible {
  outline: 2px solid #ffb6ab !important;
  outline-offset: 2px !important;
}
body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .hamburger-inner,
body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .hamburger-inner::before,
body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .hamburger-inner::after {
  background-color: #f4efe9 !important;
}
/* Reserve the actual lockup width, not the retired bitmap's 120px flex basis.
 * Long translated navigation wraps inside its own column, never under the logo. */
@media (min-width: 1140px) {
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_header__wrap {
    width: min(100%, 1440px) !important;
    max-width: 1440px !important;
    column-gap: 24px;
  }
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_logo {
    flex: 0 0 260px;
    width: 260px !important;
    min-width: 260px !important;
  }
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_menu {
    flex: 1 1 0%;
    min-width: 0 !important;
  }
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .main-menu {
    flex: 1 1 auto;
    min-width: 0;
  }
}
@media (max-width: 1139px) {
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_logo {
    max-width: calc(100% - 8px);
  }
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .velas-logo-lockup {
    inline-size: 220px;
  }
}
@media (max-width: 640px) {
  /* Give the brand its own row; language and menu retain full tap targets. */
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_header__wrap {
    min-height: 116px !important;
    padding: 8px 16px 58px !important;
  }
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_logo {
    width: 100% !important;
    max-width: 100%;
  }
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_menu__hamburger {
    top: auto !important;
    bottom: 8px !important;
    left: 16px !important;
    right: auto !important;
    transform: none !important;
    width: 44px !important;
    height: 44px !important;
  }
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_wrapper_language_switcher {
    top: auto !important;
    bottom: 8px !important;
    right: 16px !important;
    transform: none !important;
  }
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_menu__responsive {
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    max-height: calc(100dvh - 124px);
    overflow-y: auto;
  }
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_menu__responsive_show {
    transform: none !important;
  }
  body.codex-velas-shared-shell.velas-nocturne-space header.rh_header .rh_menu__responsive a {
    min-height: 44px;
    padding: 10px 16px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
}
