/* R78 — structural mobile/header/footer reset.
   This layer intentionally replaces the accumulated mobile header/footer rules
   instead of adding more micro-patches to R71–R77. */

.r78-mobile-header,.r78-mobile-footer{display:none}

/* One robust phone-number primitive. */
.r78-phone-number{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:.32em!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
  white-space:nowrap!important;
  font-family:"Plus Jakarta Sans",Arial,sans-serif!important;
  font-variant-numeric:tabular-nums!important;
  letter-spacing:0!important;
}
.r78-phone-number>span{
  display:inline-block!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
}
.r67-header-call,
.r67-mobile-call,
body.home .r67-primary-call,
.coverage-r69-call{direction:ltr!important;unicode-bidi:isolate!important}

/* Never force an Arabic label itself into LTR. */
html[dir="rtl"] body.home .urgent-panel a.r78-urgent-call{
  direction:rtl!important;
  unicode-bidi:normal!important;
}
html[dir="rtl"] body.home .urgent-panel .r78-urgent-label{
  direction:rtl!important;
  unicode-bidi:isolate!important;
  text-align:right!important;
}

/* Arabic shaping reset for all small UI labels that had inherited Latin tracking. */
html[dir="rtl"] body.home :where(
  .eyebrow,
  .r66-hero-eyebrow,
  .coverage-r69-copy .eyebrow,
  .visit-heading .eyebrow,
  .map-details p small,
  .map-topbar small,
  .urgent-copy span,
  .urgent-panel a small,
  .voices-label .eyebrow,
  .doctor-content .eyebrow,
  .footer-motto strong
){
  font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,Arial,sans-serif!important;
  font-style:normal!important;
  text-transform:none!important;
  letter-spacing:0!important;
  word-spacing:0!important;
  white-space:normal!important;
  word-break:normal!important;
  text-rendering:optimizeLegibility!important;
  font-feature-settings:"liga" 1,"calt" 1!important;
}

/* Arabic desktop brand and microcopy should remain readable too. */
html[dir="rtl"] .r67-brand .r67-brand-name{
  font-family:"Noto Naskh Arabic","Alexandria",Tahoma,serif!important;
  font-size:22px!important;
  line-height:1.12!important;
  letter-spacing:0!important;
}
html[dir="rtl"] .r67-brand .r67-brand-practice b{
  font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;
  font-size:10px!important;
  letter-spacing:0!important;
}
html[dir="rtl"] .r67-brand .r67-brand-location{
  font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;
  font-size:9px!important;
  letter-spacing:0!important;
}
html[dir="rtl"] body.home .r66-hero-eyebrow{
  font-size:12px!important;
  line-height:1.5!important;
  letter-spacing:0!important;
}
html[dir="rtl"] .coverage-r69-copy h3{
  font-family:"Noto Naskh Arabic","Alexandria",Tahoma,serif!important;
  letter-spacing:0!important;
  line-height:1.16!important;
}
html[dir="rtl"] .coverage-r69-copy h3 em{
  font-family:inherit!important;
  letter-spacing:0!important;
}
html[dir="rtl"] .coverage-r69-copy p,
html[dir="rtl"] .urgent-copy small{
  font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;
  letter-spacing:0!important;
  word-spacing:0!important;
  line-height:1.8!important;
}

/* Dedicated mobile structure. */
@media(max-width:860px){
  /* Stop all previous header layouts from participating. */
  .site-header .r67-header-inner{display:none!important}
  .r78-mobile-header{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    width:calc(100% - 24px)!important;
    min-height:66px!important;
    padding:7px 0!important;
    direction:ltr!important;
  }
  html[dir="rtl"] .r78-mobile-header{direction:ltr!important}
  .r78-mobile-actions{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    flex:0 0 auto!important;
  }
  html[dir="rtl"] .r78-mobile-actions{order:1!important}
  html[dir="rtl"] .r78-mobile-brand{order:2!important}

  /* Compact language chooser. */
  .r78-mobile-language{position:relative!important;margin:0!important}
  .r78-mobile-language>summary{
    list-style:none!important;
    min-width:66px!important;
    height:44px!important;
    padding:0 9px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    border:1px solid rgba(255,255,255,.18)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.055)!important;
    color:#fff!important;
    cursor:pointer!important;
  }
  .r78-mobile-language>summary::-webkit-details-marker{display:none!important}
  .r78-mobile-language>summary img{width:24px!important;height:16px!important;object-fit:cover!important;border-radius:3px!important}
  .r78-mobile-language>summary span{font:700 10px/1 "Plus Jakarta Sans",Arial,sans-serif!important;letter-spacing:.04em!important}
  .r78-mobile-language>summary i{font-style:normal!important;color:#e2b65c!important;font-size:12px!important}
  .r78-language-panel{
    position:absolute!important;
    z-index:1000!important;
    top:50px!important;
    left:0!important;
    width:156px!important;
    display:grid!important;
    gap:4px!important;
    padding:7px!important;
    border-radius:14px!important;
    background:#062a4b!important;
    border:1px solid rgba(255,255,255,.14)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.28)!important;
  }
  .r78-language-panel button{
    min-height:38px!important;
    padding:0 10px!important;
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    border:0!important;
    border-radius:9px!important;
    background:transparent!important;
    color:#fff!important;
    font:600 11px/1.2 "Plus Jakarta Sans","Alexandria",sans-serif!important;
    text-align:left!important;
  }
  .r78-language-panel button:hover,.r78-language-panel button.is-active{background:rgba(255,255,255,.09)!important}
  .r78-language-panel button img{width:25px!important;height:17px!important;object-fit:cover!important;border-radius:3px!important}

  .r78-menu-toggle{
    display:grid!important;
    place-items:center!important;
    align-content:center!important;
    gap:5px!important;
    width:44px!important;
    height:44px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.18)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.055)!important;
  }
  .r78-menu-toggle span:not(.screen-reader-text){display:block!important;width:20px!important;height:1px!important;background:#fff!important;margin:0!important}

  /* Mobile brand: clean two/three-line lockup, independent of old r67 rules. */
  .r78-mobile-brand{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 54px!important;
    align-items:center!important;
    gap:10px!important;
    min-width:0!important;
    max-width:264px!important;
    color:#fff!important;
    text-decoration:none!important;
    direction:ltr!important;
  }
  .r78-mobile-brand-mark{
    grid-column:2!important;
    width:54px!important;
    height:54px!important;
    border-radius:50%!important;
    overflow:hidden!important;
    background:#f6f0df!important;
    box-shadow:0 8px 20px rgba(0,0,0,.18)!important;
  }
  .r78-mobile-brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important}
  .r78-mobile-brand-copy{
    grid-column:1!important;
    min-width:0!important;
    display:block!important;
  }
  .r78-brand-lang{display:none!important}
  html[lang^="de"] .r78-brand-de,
  html[lang^="en"] .r78-brand-en,
  html[lang^="ar"] .r78-brand-ar{display:grid!important}
  .r78-mobile-brand .r78-brand-lang{gap:2px!important;min-width:0!important}
  .r78-mobile-brand b{
    margin:0!important;
    font:600 13px/1.05 "DM Serif Display",Georgia,serif!important;
    color:#fff!important;
    white-space:nowrap!important;
  }
  .r78-mobile-brand b em{font:700 .72em/1 "Plus Jakarta Sans",Arial,sans-serif!important;color:#e4b85f!important}
  .r78-mobile-brand small{
    font:800 6.8px/1.2 "Plus Jakarta Sans",Arial,sans-serif!important;
    letter-spacing:.14em!important;
    text-transform:uppercase!important;
    color:#e4b85f!important;
  }
  .r78-mobile-brand i{
    font:700 6.5px/1.2 "Plus Jakarta Sans",Arial,sans-serif!important;
    font-style:normal!important;
    letter-spacing:.18em!important;
    text-transform:uppercase!important;
    color:#cbd8e2!important;
  }
  html[dir="rtl"] .r78-mobile-brand-copy{text-align:right!important;direction:rtl!important}
  html[dir="rtl"] .r78-mobile-brand .r78-brand-ar{justify-items:end!important;gap:1px!important}
  html[dir="rtl"] .r78-mobile-brand .r78-brand-ar b{
    font-family:"Noto Naskh Arabic","Alexandria",Tahoma,serif!important;
    font-size:18px!important;
    font-weight:700!important;
    line-height:1.05!important;
    white-space:normal!important;
    letter-spacing:0!important;
  }
  html[dir="rtl"] .r78-mobile-brand .r78-brand-ar b em{
    font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;
    font-size:.58em!important;
    font-style:normal!important;
    letter-spacing:0!important;
  }
  html[dir="rtl"] .r78-mobile-brand .r78-brand-ar small{
    font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;
    font-size:9px!important;
    line-height:1.2!important;
    letter-spacing:0!important;
    text-transform:none!important;
  }
  html[dir="rtl"] .r78-mobile-brand .r78-brand-ar i{
    font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;
    font-size:8px!important;
    line-height:1.15!important;
    letter-spacing:0!important;
    text-transform:none!important;
  }

  /* Mobile hero: reduce vertical footprint, overlay controls, no rail/phantom box. */
  body.home .r67-hero{padding-top:0!important;padding-bottom:0!important}
  body.home .r66-hero-layout{gap:14px!important;padding-top:18px!important;padding-bottom:0!important}
  body.home .r66-hero-copy{padding-bottom:0!important}
  body.home .r66-hero-eyebrow{margin-bottom:9px!important}
  body.home .r66-hero-copy h1{margin:7px 0 12px!important;font-size:43px!important;line-height:.98!important}
  body.home .hero-intro{margin-bottom:0!important;font-size:13px!important;line-height:1.6!important}
  body.home .r66-hero-actions{margin-top:14px!important;gap:8px!important}
  body.home .r67-primary-call{min-height:46px!important}
  body.home .r66-secondary-link{min-height:46px!important}
  body.home .r66-hero-media,
  html[dir="rtl"] body.home .r66-hero-media{
    position:relative!important;
    margin-top:2px!important;
    margin-bottom:0!important;
    padding:6px!important;
    border-radius:20px!important;
    overflow:hidden!important;
  }
  body.home .r66-hero-stage.r67-hero-stage{
    aspect-ratio:1.52/1!important;
    border-radius:16px!important;
  }
  body.home .r66-hero-rail{
    position:absolute!important;
    z-index:8!important;
    left:12px!important;
    right:12px!important;
    bottom:12px!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    display:flex!important;
    justify-content:flex-end!important;
    pointer-events:none!important;
  }
  body.home .r66-slide-copy,
  body.home .r66-slide-progress{display:none!important}
  body.home .r66-hero-controls{display:flex!important;gap:7px!important;pointer-events:auto!important}
  body.home .r66-hero-controls button{
    width:34px!important;height:34px!important;min-width:34px!important;border-radius:50%!important;
    background:rgba(5,34,58,.78)!important;border:1px solid rgba(255,255,255,.22)!important;color:#fff!important;
    backdrop-filter:blur(8px)!important;
  }
  body.home .hero.r66-hero + .services{margin-top:0!important;padding-top:22px!important}

  html[dir="rtl"] body.home .r66-hero-copy h1{
    font-family:"Noto Naskh Arabic","Alexandria",Tahoma,serif!important;
    font-size:48px!important;
    line-height:1.12!important;
    letter-spacing:0!important;
    margin-top:5px!important;
  }
  html[dir="rtl"] body.home .hero-intro{
    font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;
    font-size:14px!important;
    line-height:1.75!important;
  }
  html[dir="rtl"] body.home .r66-hero-eyebrow{
    font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;
    font-size:10.5px!important;
    line-height:1.35!important;
    letter-spacing:0!important;
    word-spacing:0!important;
  }

  /* Insurance and urgent labels: Arabic shaping and calmer proportions. */
  html[dir="rtl"] .coverage-r69-copy .eyebrow,
  html[dir="rtl"] .visit-heading .eyebrow,
  html[dir="rtl"] .map-details p small,
  html[dir="rtl"] .urgent-copy span{
    font-size:12px!important;
    line-height:1.45!important;
    letter-spacing:0!important;
  }
  html[dir="rtl"] .coverage-r69-copy h3{font-size:38px!important;line-height:1.2!important;margin:0!important}
  html[dir="rtl"] .coverage-r69-copy p{font-size:14px!important;line-height:1.8!important}
  html[dir="rtl"] .urgent-copy strong{font-family:"Noto Naskh Arabic","Alexandria",Tahoma,serif!important;font-size:25px!important;line-height:1.3!important;letter-spacing:0!important}
  html[dir="rtl"] .urgent-copy small{font-size:13px!important;line-height:1.7!important}
  html[dir="rtl"] .urgent-panel .r78-urgent-call{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    direction:rtl!important;
  }
  html[dir="rtl"] .urgent-panel .r78-phone-number{justify-self:center!important;font-size:22px!important}

  /* Doctor after stat removal: tighter and calmer. */
  body.home .doctor-content{padding-bottom:42px!important}
  body.home .doctor .button{margin-top:16px!important}

  /* Kill old home footer main and replace it with one dedicated mobile footer. */
  .home .site-footer .footer-main{display:none!important}
  .home .site-footer .r78-mobile-footer{display:block!important;background:#031d38!important;color:#fff!important}
  .r78-mobile-footer-inner{width:calc(100% - 32px)!important;margin:0 auto!important;padding:26px 0 20px!important}
  .r78-footer-brand{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 70px!important;
    align-items:center!important;
    gap:14px!important;
    width:min(100%,350px)!important;
    margin:0 auto!important;
    padding-bottom:22px!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
    color:#fff!important;
    direction:ltr!important;
  }
  .r78-footer-brand-copy{grid-column:1!important;min-width:0!important}
  .r78-footer-brand-mark{grid-column:2!important;width:70px!important;height:70px!important;border-radius:50%!important;overflow:hidden!important;background:#f6f0df!important}
  .r78-footer-brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important}
  .r78-footer-brand .r78-brand-lang{gap:3px!important}
  .r78-footer-brand b{font:600 16px/1.05 "DM Serif Display",Georgia,serif!important;color:#fff!important}
  .r78-footer-brand b em{font:700 .68em/1 "Plus Jakarta Sans",Arial,sans-serif!important;color:#e2b65c!important}
  .r78-footer-brand small{font:800 7.5px/1.2 "Plus Jakarta Sans",Arial,sans-serif!important;text-transform:uppercase!important;letter-spacing:.15em!important;color:#e2b65c!important}
  .r78-footer-brand i{font:700 7px/1.2 "Plus Jakarta Sans",Arial,sans-serif!important;font-style:normal!important;text-transform:uppercase!important;letter-spacing:.16em!important;color:#c7d5df!important}
  html[dir="rtl"] .r78-footer-brand-copy{text-align:right!important;direction:rtl!important}
  html[dir="rtl"] .r78-footer-brand .r78-brand-ar{display:grid!important;justify-items:end!important}
  html[dir="rtl"] .r78-footer-brand .r78-brand-ar b{
    font-family:"Noto Naskh Arabic","Alexandria",Tahoma,serif!important;
    font-size:24px!important;line-height:1.1!important;letter-spacing:0!important;
  }
  html[dir="rtl"] .r78-footer-brand .r78-brand-ar b em{font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;font-size:.55em!important;font-style:normal!important;letter-spacing:0!important}
  html[dir="rtl"] .r78-footer-brand .r78-brand-ar small{font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;font-size:11px!important;text-transform:none!important;letter-spacing:0!important}
  html[dir="rtl"] .r78-footer-brand .r78-brand-ar i{font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;font-size:10px!important;text-transform:none!important;letter-spacing:0!important}

  .r78-footer-social{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    align-items:center!important;
    gap:18px!important;
    padding:20px 0!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
  }
  html[dir="rtl"] .r78-footer-social{direction:rtl!important}
  .r78-footer-motto{display:grid!important;gap:4px!important}
  .r78-footer-motto strong{font:800 10px/1.2 "Plus Jakarta Sans","Alexandria",sans-serif!important;text-transform:uppercase!important;letter-spacing:.12em!important;color:#e2b65c!important}
  .r78-footer-motto span{font:500 20px/1.1 "DM Serif Display","Noto Naskh Arabic",serif!important;color:#fff!important}
  .r78-footer-motto em{font:500 18px/1.1 "DM Serif Display","Noto Naskh Arabic",serif!important;color:#e2b65c!important}
  html[dir="rtl"] .r78-footer-motto strong{font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;text-transform:none!important;letter-spacing:0!important;font-size:13px!important}
  html[dir="rtl"] .r78-footer-motto span,html[dir="rtl"] .r78-footer-motto em{font-family:"Noto Naskh Arabic","Alexandria",Tahoma,serif!important;font-size:21px!important;letter-spacing:0!important}
  .r78-footer-social .social-links{display:flex!important;gap:9px!important;margin:0!important}
  .r78-footer-social .social-links a,.r78-footer-social .social-links>span{width:42px!important;height:42px!important;border-radius:50%!important;display:grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.18)!important}
  .r78-footer-social .social-links svg{width:17px!important;height:17px!important;stroke:#e2b65c!important;fill:none!important}

  .r78-footer-legal{display:grid!important;justify-items:center!important;gap:11px!important;padding-top:16px!important;text-align:center!important;color:#bac9d5!important}
  .r78-footer-legal>span{font:500 10px/1.5 "Plus Jakarta Sans","Alexandria",sans-serif!important}
  .r78-footer-legal>span b{color:#fff!important}
  .r78-footer-legal nav{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:8px 20px!important}
  .r78-footer-legal nav a{font:500 12px/1.4 "Plus Jakarta Sans","Alexandria",sans-serif!important;color:#d6e0e7!important}
  html[dir="rtl"] .r78-footer-legal>span,html[dir="rtl"] .r78-footer-legal nav a{font-family:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif!important;letter-spacing:0!important}
}

@media(max-width:420px){
  .r78-mobile-header{width:calc(100% - 18px)!important;gap:7px!important}
  .r78-mobile-actions{gap:5px!important}
  .r78-mobile-language>summary{min-width:60px!important;height:42px!important;padding:0 7px!important}
  .r78-menu-toggle{width:42px!important;height:42px!important}
  .r78-mobile-brand{grid-template-columns:minmax(0,1fr) 48px!important;gap:8px!important;max-width:236px!important}
  .r78-mobile-brand-mark{width:48px!important;height:48px!important}
  .r78-mobile-brand b{font-size:12px!important}
  html[dir="rtl"] .r78-mobile-brand .r78-brand-ar b{font-size:16px!important}
  html[dir="rtl"] .r78-mobile-brand .r78-brand-ar small{font-size:8px!important}
  html[dir="rtl"] .r78-mobile-brand .r78-brand-ar i{font-size:7.4px!important}
  body.home .r66-hero-copy h1{font-size:39px!important}
  html[dir="rtl"] body.home .r66-hero-copy h1{font-size:43px!important}
  body.home .r66-hero-stage.r67-hero-stage{aspect-ratio:1.45/1!important}
  .r78-footer-brand{grid-template-columns:minmax(0,1fr) 62px!important;gap:11px!important}
  .r78-footer-brand-mark{width:62px!important;height:62px!important}
  html[dir="rtl"] .r78-footer-brand .r78-brand-ar b{font-size:21px!important}
  .r78-footer-social{gap:12px!important}
}
