/* Diagnex layout corrections: No backend, price, or brand palette changes. */
/* Keep dropdown fully opaque and independent of page photographs. */
.site-header.site-header--uniform .nav-item .dx-services-mega{
  background:#fff !important; backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important; opacity:0; isolation:isolate;
  box-shadow:0 25px 65px rgba(5,14,53,.18);
  z-index:250 !important;
}
.site-header.site-header--uniform .nav-item.open .dx-services-mega{opacity:1!important;visibility:visible!important}
.site-header.site-header--uniform .dx-services-mega .mega-grid,
.site-header.site-header--uniform .dx-services-mega .mega-col{background:#fff!important}
.site-header.site-header--uniform .dx-services-mega .mega-label.dx-directory-heading-link{
  display:flex!important;align-items:center;justify-content:space-between;
  padding:8px 10px!important;border-radius:9px;letter-spacing:.09em!important;
  font-size:11px!important;font-weight:800!important;text-transform:uppercase;
  color:var(--slate,#5e6b82)!important;text-decoration:none;
}
.site-header.site-header--uniform .dx-services-mega .mega-label.dx-directory-heading-link:hover,
.site-header.site-header--uniform .dx-services-mega .mega-label.dx-directory-heading-link:focus-visible{
  background:var(--veil,#eaf0ff)!important;color:var(--cobalt,#3156c8)!important;
}
/* About: legacy section now appears before the separate navy care-pathway section. */
.dxa-compact .dxc-foundation{position:relative;isolation:isolate}
.dxa-compact .dxc-services{position:relative;isolation:isolate}
/* Elder Care: keep photograph and illustrative visit-update card separate. */
.ec-page.dx-refresh .dx-elder-hero-visual{display:flex!important;flex-direction:column!important;max-width:600px!important;padding-bottom:0!important;gap:15px}
.ec-page.dx-refresh .dx-elder-hero-image{width:100%;margin:0!important;align-self:stretch}
.ec-page.dx-refresh .dx-elder-hero-image img{
  width:100%!important;height:auto!important;aspect-ratio:3/2!important;
  object-fit:contain!important;object-position:center!important;transform:none!important;
}
.ec-page.dx-refresh .update{
  margin:0!important;position:static!important;transform:none!important;
  max-width:100%!important;width:100%!important;box-shadow:0 12px 34px rgba(3,10,40,.14);
}
/* Home Hemodialysis: place original pricing data BELOW the complete photo. */
.hhd-root.dx-refresh .hd-hero-media{
  display:flex!important;flex-direction:column!important;gap:12px!important;
  padding:10px!important;max-width:100%;min-width:0;
}
.hhd-root.dx-refresh .hd-hero-media>img{
  position:relative!important;display:block!important;width:100%!important;
  height:auto!important;aspect-ratio:3/2!important;object-fit:contain!important;
  object-position:center!important;transform:none!important;
}
.hhd-root.dx-refresh .hd-mode-float{
  position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%!important;max-width:none!important;margin:0!important;
  border-radius:18px!important;box-shadow:none!important;
}
.hhd-root.dx-refresh .hd-mode-float>div{padding:14px 16px!important}
.hhd-root.dx-refresh .hd-mode-float>div+div{border:0!important;border-left:1px solid rgba(255,255,255,.2)!important}
/* Home ICU: show entire care-planning photograph, then card beneath instead of over the image. */
.hicu-root.dx-refresh .hero-visual{
  min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;
  overflow:hidden!important;gap:0!important;background:#f7f9fd;
}
.hicu-root.dx-refresh .hero-visual picture{
  display:block!important;position:relative!important;inset:auto!important;
  width:100%!important;height:auto!important;
}
.hicu-root.dx-refresh .hero-visual img{
  display:block!important;position:relative!important;inset:auto!important;
  width:100%!important;height:auto!important;aspect-ratio:3/2!important;
  object-fit:contain!important;object-position:center!important;transform:none!important;
}
.hicu-root.dx-refresh .hero-visual-card{
  position:static!important;inset:auto!important;width:100%!important;
  border-radius:0 0 24px 24px!important;padding:17px 20px!important;
  background:var(--navy,#071658)!important;backdrop-filter:none!important;
}
/* Image fidelity: remove forced image zoom on primary visuals only. */
.dx-procedures.dx-refresh .pah-real-photo>img,
.dx-directory-hero-photo>img{
  object-fit:contain!important;object-position:center!important;transform:none!important;
}
/* Ensure menu, cards and overlays never exceed the viewport. */
.dx-services-mega{max-width:calc(100vw - 32px)!important}
.hhd-root .hd-hero-media,.ec-page .dx-elder-hero-visual,.hicu-root .hero-visual{min-width:0}
@media(max-width:760px){
  .ec-page.dx-refresh .dx-elder-hero-visual{max-width:100%!important;gap:12px}
  .ec-page.dx-refresh .update{padding:14px!important}
  .hhd-root.dx-refresh .hd-hero-media{gap:7px!important}
  .hhd-root.dx-refresh .hd-mode-float>div{padding:11px!important}
  .hicu-root.dx-refresh .hero-visual-card{padding:15px!important}
}
@media(max-width:390px){
  .hhd-root.dx-refresh .hd-mode-float{grid-template-columns:1fr!important}
  .hhd-root.dx-refresh .hd-mode-float>div+div{border-left:0!important;border-top:1px solid rgba(255,255,255,.2)!important}
}

/* Solid directory navigation above all page media, even in browsers with backdrop filters. */
.site-header.site-header--uniform .nav-item.has-mega #servicesMega.dx-services-mega{
  background:#ffffff!important;
  background-color:#ffffff!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  transition:opacity .15s ease,visibility .15s ease,transform .15s ease!important;
  z-index:900!important;
}
@media(max-width:760px){
  /* Keep the WhatsApp help bubble clear of fixed service booking controls. */
  .page-home-hemodialysis .dx-whatsapp-float,
  .page-advanced-care-at-home .dx-whatsapp-float,
  .page-elder-care .dx-whatsapp-float{
    bottom:calc(94px + env(safe-area-inset-bottom))!important;
    right:13px!important;
    width:50px!important;height:50px!important;
  }
}


/* Final photography consistency pass. Captions are moved away from photos;
   the unified disclosure is shown in the footer. Never hide clinical details. */
.dx-site-photo-disclosure{
 margin:0 0 12px; padding-top:14px; border-top:1px solid rgba(255,255,255,.13);
 color:rgba(255,255,255,.64); font-size:12px; line-height:1.6;
}
.dx-photo-information-note{padding:11px 5px 4px; margin:0; color:var(--slate,#5e6b82); font-size:13px;line-height:1.6;}
.dx-a4-hero-figure figcaption,
.dxa-compact .dxc-hero-media figcaption,
.dx-directory-hero-photo .dx-directory-image-note,
.dx-elder-hero-image figcaption,
.home-hero-media .home-image-credit,
.home-cm-media .home-cm-caption,
.pah-real-photo figcaption,
.hd-hero-media .dx-hd-photo-note,
.hicu-root .dx-photo-disclaimer{display:none!important;}
/* Fuller framing for Elder Care's two different, context-specific photos. */
.ec-page.dx-refresh .door .photo-slot.ec-photo{
 aspect-ratio:1.92/1!important; background:#f6f7fb; overflow:hidden;
}
.ec-page.dx-refresh .door .photo-slot.ec-photo img{
 object-fit:contain!important; object-position:center center!important;
 transform:none!important; width:100%;height:100%;
}
