/* Shared site navigation dropdown and WhatsApp contacts for standalone pages. */
.shared-site-more{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;z-index:80;font:inherit}
.shared-site-more>summary{display:inline-flex;align-items:center;gap:7px;list-style:none;cursor:pointer;border:0;border-radius:10px;padding:9px 13px;color:#536477;background:transparent;font:inherit;font-size:.9rem;font-weight:700;line-height:1.4;white-space:nowrap;transition:background .18s ease,color .18s ease}
.shared-site-more>summary::-webkit-details-marker{display:none}
.shared-site-more>summary:after{content:"⌄";font-size:.85em;transition:transform .18s ease}
.shared-site-more[open]>summary:after{transform:rotate(180deg)}
.shared-site-more>summary:hover,.shared-site-more>summary:focus-visible,.shared-site-more[open]>summary{color:#147e81;background:#e9f7f6;outline:none}
.shared-site-panel{position:absolute;top:calc(100% + 9px);inset-inline-end:0;z-index:1000;display:grid;grid-template-columns:1fr;gap:3px;width:min(290px,calc(100vw - 32px));max-height:min(72vh,540px);overflow:auto;padding:9px;background:#fff;border:1px solid #e4ebf0;border-radius:14px;box-shadow:0 18px 45px rgba(16,35,62,.18)}
.shared-site-panel a{display:block;padding:9px 11px;border-radius:8px;color:#30445a;background:transparent;text-decoration:none;font-size:.86rem;font-weight:600;line-height:1.55;transition:background .16s ease,color .16s ease}
.shared-site-panel a:hover,.shared-site-panel a:focus-visible{background:#edf7f7;color:#117b7e;outline:none}
.shared-site-more[open] .shared-site-panel{animation:shared-menu-in .14s ease-out}
@keyframes shared-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.floating-contact{position:fixed!important;left:12px!important;bottom:16px!important;z-index:90!important;display:flex!important;flex-direction:column!important;gap:9px!important;max-width:calc(100vw - 24px)}
.floating-contact-item{display:flex;align-items:center;gap:8px}
.floating-contact-name{display:block;border:1px solid #e2e8f0;border-radius:9999px;background:#fff;padding:.3rem .6rem;color:#0b1930;font-size:.75rem;font-weight:700;line-height:1.2;white-space:nowrap;box-shadow:0 2px 10px rgba(11,25,48,.14)}
.floating-contact-button,.floating-contact-button:link,.floating-contact-button:visited{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 14px;border-radius:9999px;color:#fff!important;text-decoration:none!important;font-size:.83rem;font-weight:700;line-height:1.25;white-space:nowrap;box-shadow:0 8px 20px rgba(11,25,48,.18);transition:transform .18s ease,filter .18s ease}
.floating-contact-item:first-child .floating-contact-button{background:#16a34a;border:1px solid #15803d}
.floating-contact-item:nth-child(2) .floating-contact-button{background:#1d4ed8;border:1px solid #2563eb}
.floating-contact-button:hover{transform:translateY(-2px);filter:brightness(.94)}
.floating-contact-button:focus-visible{outline:3px solid #22b8b1;outline-offset:3px}
@media(max-width:520px){.shared-site-panel{inset-inline-end:auto;inset-inline-start:0}.floating-contact{left:9px!important;bottom:12px!important;gap:7px!important}.floating-contact-name{padding:.27rem .45rem;font-size:.62rem}.floating-contact-button,.floating-contact-button:link,.floating-contact-button:visited{min-height:39px;padding:8px 11px;font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.shared-site-more>summary:after,.floating-contact-button{transition:none}.shared-site-more[open] .shared-site-panel{animation:none}}

/* Small profile, legal and not-found pages without a conventional nav. */
.shared-page-menu-wrap{position:relative;z-index:80;display:flex;justify-content:flex-end;max-width:1152px;margin:0 auto;padding:12px 20px}
header.bg-navy .shared-site-more>summary,header[class*="bg-navy"] .shared-site-more>summary{color:#fff}
header.bg-navy .shared-site-more>summary:hover,header[class*="bg-navy"] .shared-site-more[open]>summary{background:rgba(255,255,255,.14);color:#fff}
@media(max-width:520px){.shared-page-menu-wrap{padding:10px 14px}}

/* Responsive consultation cards and a readable, stable mobile contact dock. */
.booking-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.booking-contact-card{min-width:0;padding:18px;border:1px solid #e1e8ee;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(11,25,48,.045)}
.booking-contact-card h3{margin:5px 0 0;color:#0b1930;font-size:1.05rem;font-weight:700;line-height:1.6}
.booking-contact-location{margin:0;color:#0f8a80;font-size:.8rem;font-weight:700}
.booking-location-blue{color:#2563eb}
.booking-contact-specialty{margin:4px 0 0;color:#64748b;font-size:.88rem;line-height:1.65}
.booking-contact-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
.booking-contact-button{display:inline-flex;flex:1 1 135px;min-height:46px;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border:1px solid transparent;border-radius:11px;color:#fff;text-decoration:none;font-size:.84rem;font-weight:700;line-height:1.35;text-align:center;transition:filter .16s ease,box-shadow .16s ease}
.booking-contact-button:hover{filter:brightness(.94);box-shadow:0 4px 12px rgba(11,25,48,.14)}
.booking-contact-button:focus-visible{outline:3px solid #22b8b1;outline-offset:3px}
.booking-whatsapp{background:#15803d}
.booking-phone{background:#0b1930}
.booking-form-link{margin:16px 0 0;color:#536477;font-size:.9rem;line-height:1.7}
.booking-form-link a{color:#087f78;font-weight:700;text-decoration:underline;text-underline-offset:3px}
@media(max-width:640px){.booking-contact-grid{grid-template-columns:1fr}.booking-contact-card{padding:16px}.booking-contact-actions{display:grid;grid-template-columns:1fr 1fr}.booking-contact-button{min-width:0;padding:10px 7px;font-size:.79rem}}
@media(max-width:600px){
  .floating-contact{position:fixed!important;inset-inline:10px!important;left:10px!important;right:10px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;z-index:90!important;display:flex!important;flex-direction:row!important;gap:8px!important;width:auto!important;max-width:none!important;padding:8px!important;border:1px solid #dfe7ed!important;border-radius:16px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 8px 28px rgba(11,25,48,.18)!important;backdrop-filter:blur(10px)}
  .floating-contact-item{display:flex!important;flex:1 1 0!important;min-width:0!important;flex-direction:row!important;align-items:stretch!important;gap:4px!important}
  .floating-contact-name{display:none!important}
  .floating-contact-button,.floating-contact-button:link,.floating-contact-button:visited{display:flex!important;flex:1 1 0!important;min-width:0!important;min-height:44px!important;height:auto!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:7px 4px!important;border-radius:11px!important;white-space:normal!important;text-align:center;font-size:.68rem!important;line-height:1.25!important;box-shadow:none!important}
  .floating-contact-button span{display:none!important}
  .floating-contact-item:first-child .floating-contact-button::after{content:"واتساب د. عدنان";margin-inline-start:4px}
  .floating-contact-item:nth-child(2) a[href*="wa.me"]::after{content:"واتساب د. معروف";margin-inline-start:4px}
  .floating-contact-item:nth-child(2) a[href^="tel:"]::after{content:"اتصال";margin-inline-start:4px}
}
@media(max-width:370px){.floating-contact{inset-inline:6px!important;right:6px!important;padding:6px!important;gap:5px!important}.floating-contact-button,.floating-contact-button:link,.floating-contact-button:visited{font-size:.61rem!important}}

/* Legal pages had two independently animated WhatsApp floats; align and label them consistently. */
.whatsapp-floating-btn,.surgeon-whatsapp-floating{animation:none!important}
body:has(.whatsapp-floating-btn){padding-bottom:82px}
@media(max-width:600px){
  .whatsapp-floating-btn,.surgeon-whatsapp-floating{position:fixed!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;width:calc(50vw - 15px)!important;max-width:230px!important;height:auto!important;min-height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:8px 10px!important;border:1px solid rgba(0,0,0,.08)!important;border-radius:12px!important;box-shadow:0 5px 18px rgba(11,25,48,.18)!important;text-align:center!important;text-decoration:none!important;animation:none!important;transition:filter .16s ease!important}
  .whatsapp-floating-btn{left:10px!important;right:auto!important;background:#15803d!important;color:#fff!important}
  .surgeon-whatsapp-floating{right:10px!important;left:auto!important;background:#128c7e!important;color:#fff!important}
  .whatsapp-floating-btn svg,.surgeon-whatsapp-floating svg{width:20px!important;height:20px!important;flex:0 0 20px!important}
  .whatsapp-floating-btn-text{display:flex!important;flex-direction:column;align-items:center;line-height:1.2}
  .whatsapp-floating-btn-label{font-size:.72rem;font-weight:700}
  .whatsapp-floating-btn-name{display:none!important}
  .surgeon-whatsapp-floating span{font-size:.7rem!important;line-height:1.2!important}
}
@media(max-width:350px){.whatsapp-floating-btn,.surgeon-whatsapp-floating{width:calc(50vw - 12px)!important;padding:7px 6px!important;font-size:.65rem!important}}

/* WCAG 1.4.1: inline links in body copy must not rely on colour alone. */
main p a,
main li a,
.footer-inner a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
main p a.rounded-xl,
main p a.inline-flex,
main p a.booking-contact-button,
main p a.floating-contact-button {
  text-decoration: none;
}

/* Keep page content clear of the fixed contact dock on small screens. */
@media (max-width: 600px) {
  body:has(.floating-contact) { padding-bottom: 84px; }
}

/* WCAG 1.4.1: روابط النصوص تُعرّف بغير اللون — تسطير دائم للروابط التي تكتفي بتسطير عند المرور */
main a.hover\:underline,
main p a[class*="text-teal"],
nav a.hover\:underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Desktop: keep the floating contact compact so it does not cover card text */
@media (min-width:1024px){
  .floating-contact-name{display:none!important}
  .floating-contact{gap:7px!important}
}
/* Mobile: reserve space for the fixed contact bar above the footer */
@media (max-width:768px){
  body:has(.floating-contact){padding-bottom:92px}
}
