/**
 * PM Media — two-row primary nav + MedSync PM standout pill
 */
.site-header .header-inner--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding-bottom: 0.65rem;
}

.site-header .header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.nav-main--two-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
}

.nav-main--two-row .nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.42rem 0.55rem;
}

.nav-main--two-row .nav-row-affiliates {
  justify-content: flex-end;
  padding-top: 0.1rem;
}

.nav-main--two-row .nav-row a {
  min-height: 38px;
}

/* MedSync PM — thin white pill, wordmark only (Med navy · Sync cyan · PM navy) */
.nav-medsync-pm {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px !important;
  padding: 0.28rem 0.95rem !important;
  border-radius: 6px !important;
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 4px 18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 180, 220, 0.18) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-medsync-pm:hover,
.nav-medsync-pm:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 28px rgba(0, 180, 220, 0.22),
    0 0 0 1px rgba(0, 200, 232, 0.35) !important;
  text-shadow: none !important;
}

.nav-medsync-pm .ms-med,
.nav-medsync-pm .ms-pm {
  color: #0b2d4a;
}

.nav-medsync-pm .ms-sync {
  color: #00b4dc;
}

.nav-medsync-pm .ms-tm {
  font-size: 0.55em;
  vertical-align: super;
  color: #6a8094;
  margin-left: 1px;
}

/* Mobile menu — MedSync PM row */
.neon-menu-links .neon-medsync-item a {
  background: #fff !important;
  color: #0b2d4a !important;
  border-color: rgba(0, 180, 220, 0.35) !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-weight: 700 !important;
}

.neon-menu-links .neon-medsync-item a .ms-sync {
  color: #00b4dc;
}

@media (max-width: 768px) {
  .site-header .header-inner--stacked {
    padding-bottom: 0.5rem;
  }
  .header-actions .nav-toggle {
    display: inline-flex !important;
    pointer-events: auto !important;
  }
}

@media (min-width: 769px) {
  .nav-main--two-row {
    padding-inline: 0.25rem;
  }
}
