/* Global mobile header normalization */
:root {
  --site-header-height: 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
}

.site-header .brand {
  min-width: 0;
}

.site-header .brand > span:last-child {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-mobile-actions,
.site-drawer-overlay,
.site-drawer {
  display: none;
}

@media (max-width: 768px) {
  html.drawer-open,
  html.drawer-open body {
    overflow: hidden;
  }

  .site-header .nav-inner {
    min-height: var(--site-header-height) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    position: relative;
  }

  .site-header .brand {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 1 52vw !important;
    max-width: 52vw !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .site-header .brand > span:last-child {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .site-header .nav-actions,
  .site-header .menu-shell,
  .site-header .menu-trigger,
  .site-header .menu-panel,
  .site-header .nav-links {
    display: none !important;
  }

  .site-header .nav-inner > a:not(.brand),
  .site-header .nav-inner > button,
  .site-header .nav-inner > details {
    display: none !important;
  }

  .site-mobile-actions {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .site-primary-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    max-width: 34vw;
    padding: 0.52rem 0.8rem;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 999px;
    border: 1px solid rgba(201, 166, 99, 0.52);
    color: #f5e6c6;
    background: rgba(201, 166, 99, 0.2);
    text-decoration: none;
    font-weight: 700;
  }

  .site-primary-cta.is-hidden {
    display: none !important;
  }

  .site-hamburger {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 16, 28, 0.82);
    color: #f7f8fb;
    display: inline-grid;
    place-items: center;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
  }

  .site-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 15, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 130;
  }

  .site-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(84vw, 340px);
    background: linear-gradient(180deg, #0b1221 0%, #121a2d 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 220ms ease;
    z-index: 131;
    padding: 16px 14px 20px;
    overflow-y: auto;
    color: #e9ecf5;
  }

  html.drawer-open .site-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
    display: block;
  }

  html.drawer-open .site-drawer {
    transform: translateX(0);
    display: block;
  }

  .site-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .site-drawer-title {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    cursor: pointer;
  }

  .site-drawer-nav,
  .site-drawer-cta {
    display: grid;
    gap: 8px;
  }

  .site-drawer-nav {
    margin: 8px 0 14px;
  }

  .site-drawer .site-drawer-link {
    display: block;
    width: 100%;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8edf8;
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.92rem;
  }

  .site-drawer .site-drawer-link.site-drawer-primary {
    border-color: rgba(201, 166, 99, 0.58);
    background: rgba(201, 166, 99, 0.22);
    color: #f8ebcf;
    font-weight: 700;
  }
}

@media (min-width: 769px) {
  .site-mobile-actions,
  .site-drawer,
  .site-drawer-overlay {
    display: none !important;
  }
}
