/* RESCU v87 - 2026-10-19. Correct legacy generic <nav> rules conflicting with the v86 shell. */
/* Old service pages style ALL nav elements as fixed, with top:0. The bottom CTA then
   inherits both top:0 and bottom:0 and obscures the ENTIRE mobile viewport. */
body[data-rescu-astra-v86] nav.v86-bottom-bar {
  top:auto !important;
  right:0 !important;
  bottom:0 !important;
  left:0 !important;
  inset:auto 0 0 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:calc(105px + env(safe-area-inset-bottom)) !important;
  width:100% !important;
  max-width:100vw !important;
  margin:0 !important;
  transform:none !important;
  align-items:center !important;
  justify-content:initial !important;
  overflow:visible !important;
  z-index:1200 !important;
}
/* The navigation inside the new header must NOT inherit the fixed legacy nav. */
body[data-rescu-astra-v86] .v86-shell nav.v86-links,
body[data-rescu-astra-v86] .v86-shell nav.v86-mobile {
  position:static !important;
  inset:auto !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  width:auto !important;
  height:auto !important;
  max-height:none !important;
  margin:0 !important;
  transform:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
body[data-rescu-astra-v86] .v86-shell nav.v86-links {
  padding:0 !important; background:transparent !important; box-shadow:none !important;
  border:0 !important;
}
body[data-rescu-astra-v86] .v86-shell nav.v86-mobile {
  padding:12px 22px 24px !important; background:#fff9f6 !important;
}
/* A SINGLE persistent booking rail. The older plan button/concierge and quiz bubble
   duplicated CTAs and sat above mobile content. Links remain available in site nav/footer. */
body[data-rescu-astra-v86]:not(.astra-body) .rescu-concierge,
body[data-rescu-astra-v86]:not(.astra-body) .rescu-conversion-rail,
body[data-rescu-astra-v86]:not(.astra-body) #mob-cta-bar,
body[data-rescu-astra-v86]:not(.astra-body) #rescu-quiz-fab {
  display:none !important;
}
body[data-rescu-astra-v86] .v86-identity { clear:both; }
body[data-rescu-astra-v86] .v86-shell { width:100%; max-width:100%; }
@media(max-width:850px) {
  body[data-rescu-astra-v86] .v86-shell nav.v86-links { display:none !important; }
  body[data-rescu-astra-v86] .v86-shell nav.v86-mobile:not([hidden]) { display:flex !important; }
  body[data-rescu-astra-v86] .v86-shell nav.v86-mobile[hidden] { display:none !important; }
}
@media(max-width:610px) {
  body[data-rescu-astra-v86] nav.v86-bottom-bar {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:9px !important;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom)) !important;
    background:#fffaf7 !important;
  }
  body[data-rescu-astra-v86] nav.v86-bottom-bar a {
    font-size:clamp(10px,2.75vw,12px) !important;
    text-align:center !important;
    min-height:47px !important;
    line-height:1.25 !important;
    white-space:normal !important;
  }
  body[data-rescu-astra-v86]:not(.astra-body) {padding-bottom:calc(71px + env(safe-area-inset-bottom)) !important;}
  /* Fail open: an interrupted animation must never leave headings and cards invisible. */
  body[data-rescu-astra-v86] :is(.rv,.rev) { opacity:1 !important; transform:none !important; }
  body[data-rescu-astra-v86] .v86-identity .v86-width {min-height:0 !important;}
}
/* Real Rescu leadership photography - preserve supplied source; crop only in layout. */
.rescu-v87-leadership {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:22px !important;max-width:1100px;margin:32px auto 0 !important;}
.rescu-v87-person {overflow:hidden;border:1px solid rgba(72,27,46,.15);border-radius:16px;background:#fff9f6;color:#481B2E;box-shadow:0 12px 32px rgba(40,15,26,.09);}
.rescu-v87-person img {display:block;width:100%;height:335px;object-fit:cover;object-position:50% 26%;}
.rescu-v87-person img.rescu-v87-founder-image {object-position:50% 86%;}
.rescu-v87-person .rescu-v87-person-text {padding:24px 26px 28px;}
.rescu-v87-person .rescu-v87-role {font-family:'Montserrat',sans-serif;font-size:11px;letter-spacing:.14em;font-weight:800;color:#ad583e;text-transform:uppercase;margin:0 0 8px;}
.rescu-v87-person h3 {font-family:'Montserrat',sans-serif !important;font-size:clamp(21px,3vw,30px) !important;line-height:1.18 !important;letter-spacing:-.035em !important;color:#481B2E !important;margin:0 0 10px !important;}
.rescu-v87-person p {font-family:'Montserrat',sans-serif;font-size:14px;line-height:1.68;color:#583d4c;margin:0 0 13px;}
.rescu-v87-person a {font-family:'Montserrat',sans-serif;color:#9e4229;font-size:13px;font-weight:800;text-decoration:underline;text-underline-offset:4px;}
.rescu-v87-founder-feature img{object-position:50% 85% !important;}
.rescu-v87-founder-backdrop {object-position:50% 74% !important;}
@media(max-width:720px) {
  .rescu-v87-leadership {grid-template-columns:minmax(0,1fr) !important;gap:18px !important;margin-top:24px !important;}
  .rescu-v87-person img {height:290px;}
  .rescu-v87-person .rescu-v87-person-text{padding:20px 20px 24px;}
}
