@media (max-width: 700px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) and (pointer: coarse) and (hover: none) {
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header {
    --nvm-h-main: 72px;
    --nvm-bar-bottom: calc(72px + env(safe-area-inset-top, 0px));
    position: fixed; inset: 0 0 auto; width: 100%;
    background-color: rgb(41 42 39 / var(--nvm-detail-header-alpha, 1));
    transition: background-color 180ms ease-out;
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-main {
    background: transparent; border: 0;
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-main__row {
    display: flex; flex-wrap: nowrap; height: 100%; gap: 10px;
    transform: translateY(var(--nvm-detail-header-lift, 0px));
    transition: transform 180ms ease-out;
    padding-inline: max(22px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px));
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-logo {
    min-height: 44px; min-width: 0; flex: 0 1 auto;
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-logo__image {
    width: 154px; height: auto; max-height: 44px; filter: brightness(0) invert(1);
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-tools {
    margin-inline-start: auto;
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-menu-trigger {
    flex: none; width: 44px; height: 44px; color: #f8f3eb;
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-menu-trigger__bars {
    width: 26px; height: 26px;
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-cta {
    color: white; min-height: 44px; padding-inline: 16px; font-size: 13px;
    border-radius: var(--nvm-radius-control);
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-cta::before {
    background: #b9534c;
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-main :focus-visible {
    outline: 2px solid #fff1d9; outline-offset: 2px;
  }
  /* Keep the space so the menu doesn't jump; the duplicate is neither
     tappable nor tabbable. Never take the currently focused link away. */
  #nvm-site-header[data-nvm-detail-booking="in-hero"]:not(.is-menu-open) .nvm-header-cta:not(:focus) {
    visibility: hidden;
  }
}
@media (max-width: 360px) {
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-main__row {
    padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px)); gap: 5px;
  }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-logo__image { width: 130px; }
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-cta { padding-inline: 12px; }
}

@media (max-width: 700px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) and (pointer: coarse) and (hover: none) {
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header.is-menu-open {
    background-color: #292a27;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 700px), (prefers-reduced-motion: reduce) and (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) and (pointer: coarse) and (hover: none) {
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header,
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-header-main__row {
    transition: none; transform: none;
  }
}
/* Two confirmed geometric fixes; never replace the original site-wide styles. */
@media (width < 768px) {
  body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) .nvm-related-services__link {
    grid-template-columns: 2ch 56px minmax(0, 1fr) minmax(20px, max-content);
  }
}
@media (max-width: 340px) {
  body.nvm-page--drug[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) .nvm-pl {
    --nvm-price-head-padding: var(--nvm-ed-s5) var(--nvm-ed-s3) 0;
  }
}

/* Preserve compact phone controls on a rotated touch handset, not on desktops. */
@media (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) and (pointer: coarse) and (hover: none) {
 body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-menu-trigger { margin-inline-start:0; padding:0; }
 body[data-nvm-atlas-v2]:has(#nvm-main [data-nvm-detail-hero]) #nvm-site-header .nvm-menu-trigger__label { display:none; }
}
