/* Mobile nav: flush icon in header; minimal sheet from top */

body.centrum-mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Hamburger — no card, no shadow; reads as part of the white header bar */
.centrum-mobile-nav-trigger {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  touch-action: manipulation;
  appearance: none;
  -webkit-appearance: none;
  accent-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  color-scheme: light;
}

.centrum-mobile-nav-trigger:hover,
.centrum-mobile-nav-trigger:active {
  box-shadow: none;
  background: transparent !important;
  outline: none !important;
}

.centrum-mobile-nav-trigger:focus {
  outline: none;
}

.centrum-mobile-nav-trigger:focus:not(:focus-visible) {
  background: transparent !important;
}

.centrum-mobile-nav-trigger:focus-visible {
  outline: 2px solid #005cb9;
  outline-offset: 2px;
}

.centrum-mobile-nav-trigger__bars {
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
  border-radius: 0;
  position: relative;
  opacity: 0.85;
}

.centrum-mobile-nav-trigger__bars::before,
.centrum-mobile-nav-trigger__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #000;
  border-radius: 0;
  opacity: 0.85;
}

.centrum-mobile-nav-trigger__bars::before {
  top: -7px;
}

.centrum-mobile-nav-trigger__bars::after {
  top: 7px;
}

.centrum-mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}

.centrum-mobile-nav-overlay.is-open {
  pointer-events: auto;
}

.centrum-mobile-nav-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.centrum-mobile-nav-overlay.is-open .centrum-mobile-nav-overlay__backdrop {
  opacity: 1;
}

/* Sheet: drops from top edge, full width, minimal */
.centrum-mobile-nav-overlay__panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  max-height: min(85vh, 520px);
  background: #fafbfc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.centrum-mobile-nav-overlay.is-open .centrum-mobile-nav-overlay__panel {
  transform: translateY(0);
}

/* Minimal close — no header bar */
.centrum-mobile-nav-overlay__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent !important;
  color: #6b7280;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  touch-action: manipulation;
  appearance: none;
  -webkit-appearance: none;
  accent-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  color-scheme: light;
}

.centrum-mobile-nav-overlay__close:hover {
  color: #111;
  background: transparent !important;
}

.centrum-mobile-nav-overlay__close:active,
.centrum-mobile-nav-overlay__close:focus {
  outline: none !important;
  background: transparent !important;
  color: #6b7280 !important;
}

.centrum-mobile-nav-overlay__close:focus:not(:focus-visible) {
  color: #6b7280 !important;
}

.centrum-mobile-nav-overlay__close:focus-visible {
  outline: 2px solid #005cb9;
  outline-offset: -4px;
}

.centrum-mobile-nav-overlay__nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 48px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.centrum-mobile-nav-overlay__link {
  display: block;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  padding: 14px 16px;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1f2937;
  text-decoration: none;
  border: none;
  background: transparent;
  transition: color 0.2s ease;
}

.centrum-mobile-nav-overlay__link + .centrum-mobile-nav-overlay__link {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.centrum-mobile-nav-overlay__link:hover,
.centrum-mobile-nav-overlay__link:focus {
  color: #005cb9;
  outline: none;
}

.centrum-mobile-nav-overlay__link:active {
  color: #004a9a;
}

@media (min-width: 768px) {
  .centrum-mobile-nav-overlay {
    display: none !important;
  }
}
