:root {
  --primary-blue: #1d44b8;
}

/* ==========================================================================
   Shared hamburger and menu foundation
   Layout-specific menu styles live in:
   - css/menu-scroll.css
   - css/menu-popover.css
   ========================================================================== */

/* --- Animated hamburger toggle --- */
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.main-nav-toggle {
  position: relative;
  display: block;
  width: 28px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.main-nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #111;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.15s ease,
    top 0.25s ease,
    background-color 0.2s ease;
}

.main-nav-toggle span:nth-child(1) {
  top: 0;
}

.main-nav-toggle span:nth-child(2) {
  top: 9px;
}

.main-nav-toggle span:nth-child(3) {
  top: 18px;
}

.main-nav-toggle.active-menu span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.main-nav-toggle.active-menu span:nth-child(2) {
  opacity: 0;
}

.main-nav-toggle.active-menu span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.main-nav-toggle:hover span,
.main-nav-toggle:focus-visible span {
  background-color: #006b8f;
}

/* --- Shared menu states --- */
.overlay {
  box-sizing: border-box;
}

.overlay-content {
  box-sizing: border-box;
}

.overlay a {
  box-sizing: border-box;
}

.overlay a.disabled,
a.disabled {
  cursor: not-allowed;
}

.overlay a.current,
a.current {
  pointer-events: none;
}

/* Open Passage is intentionally available in the menu at every size.
   The navbar button may also be visible, but the menu remains the stable
   navigation home. */
.overlay .mobile-passage-link {
  display: inherit;
}

.menu-current-passage {
  box-sizing: border-box;
}

.menu-current-passage-title,
.menu-current-passage-value {
  display: block;
  box-sizing: border-box;
}

.menu-current-passage-title {
  font-weight: 700;
}

.menu-current-passage-value {
  font-weight: 700;
}

/* --- Language dropdown, shared legacy styles --- */
.custom-combobox {
  display: inline-flex;
  align-items: flex-start;
  vertical-align: middle;
}

#langInput {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 130px;
  height: 34px;
  padding: 0 30px 0 10px;
  line-height: 34px;
  box-sizing: border-box;
  color: #222;
  border: 1px solid #2f9ae0;
  border-radius: 4px;
  background:
    #fff
    url('data:image/svg+xml;utf8,<svg fill="%23000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
    no-repeat
    right 10px
    center;
  background-size: 24px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  cursor: pointer;
}

.language-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.language-label {
  font-size: 25px;
  font-weight: bold;
  color: #555;
  white-space: nowrap;
  font-family: Arima, sans-serif;
}

#langInput:focus {
  outline: none;
  border-color: #1f7fc2;
  box-shadow: 0 0 0 2px rgba(47, 154, 224, 0.15);
}
