/* =========================================================
   V48 — Waafa final feedback: typography, RTL, FAQ, header and contact QA.
   Final additive layer; preserves the approved visual identity.
   ========================================================= */

/* Public phone/email details are intentionally plain text, not actions. */
.contact-plain-ltr{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  display:inline-block;
  max-width:100%;
  overflow-wrap:anywhere;
  text-decoration:none!important;
  cursor:text;
}

/* Clear site-wide type hierarchy. Specific branded hero styles remain free to be larger. */
#main .page-hero h1,
#main .contact-page-hero-v5 h1,
#main .article-title,
#main .team-page-title-grid-v27 h1{
  font-size:clamp(3rem,4vw,3.5rem)!important;
  line-height:1.1!important;
}
#main .section-head h2,
#main h2.display,
#main .team-v29-heading h2,
#main .contact-band-v5 h2{
  font-size:clamp(2.125rem,3vw,2.625rem)!important;
  line-height:1.2!important;
}
#main h3{
  font-size:clamp(1.375rem,1.5vw,1.75rem)!important;
  line-height:1.35!important;
}
#main p,
#main li,
#main .field input,
#main .field textarea,
#main .field select{
  font-size:clamp(1rem,.98rem + .12vw,1.125rem)!important;
  line-height:1.75!important;
}

/* Readable paragraph measure and natural alignment. */
#main p{
  max-width:68ch;
  text-align:left;
  text-wrap:pretty;
  overflow-wrap:break-word;
}
#main .section-head>p,
#main .page-hero .shell>p,
#main .contact-hero-inner-v5>p,
#main .form-intro-v5,
#main .enquiry-routing-note{
  max-width:64ch!important;
}
html[dir="rtl"] #main p,
html[dir="rtl"] #main li,
html[dir="rtl"] #main .field label{
  direction:rtl;
  text-align:right!important;
}
html[dir="rtl"] #main p,
html[dir="rtl"] #main li{
  line-height:1.95!important;
}
html[dir="rtl"] #main h1,
html[dir="rtl"] #main h2,
html[dir="rtl"] #main h3{
  text-align:right;
  letter-spacing:0!important;
}
html[dir="rtl"] #main .page-hero h1,
html[dir="rtl"] #main .contact-page-hero-v5 h1,
html[dir="rtl"] #main .team-page-title-grid-v27 h1{
  font-size:clamp(2.7rem,3.6vw,3.3rem)!important;
  line-height:1.42!important;
}

/* FAQ stays within the existing design system and is keyboard/touch friendly. */
.home-faq-v48 .faq-list-v48{max-width:940px;margin-inline:auto}
.faq button{min-height:56px;align-items:center;text-align:start!important;cursor:pointer}
.faq button>span:first-child{min-width:0}
.faq button>span:last-child{flex:0 0 auto}
.faq-panel[hidden]{display:none!important}
.faq.open .faq-panel:not([hidden]){display:block}
html[dir="rtl"] .faq button{text-align:right!important}

/* Direct navigation items added in place of the former grouping. */
@media(min-width:1101px){
  .site-header .main-nav{gap:clamp(10px,.85vw,18px)!important}
  .site-header .main-nav>a{font-size:12.25px!important}
}
@media(min-width:1101px) and (max-width:1280px){
  .site-header .nav-shell{gap:10px!important}
  .site-header .main-nav{gap:10px!important}
  .site-header .main-nav>a{font-size:11.35px!important}
  .site-header .consult-btn{padding-inline:11px!important;font-size:11px!important}
  .site-header .language-switch a{min-width:28px!important}
}

/* Admin consultation workflow controls remain compact on desktop/mobile. */
.consultation-admin-actions-v48{align-items:flex-end!important;flex-wrap:wrap!important}
.consultation-status-form-v48{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.consultation-status-form-v48 label{display:grid;gap:5px;font-size:.78rem}
.consultation-status-form-v48 select{min-height:38px;padding:6px 30px 6px 9px;border:1px solid #d8d2c4;border-radius:8px;background:#fff}

@media(max-width:767px){
  .shell{width:min(100% - 32px,var(--shell))!important}
  #main .page-hero h1,
  #main .contact-page-hero-v5 h1,
  #main .article-title,
  #main .team-page-title-grid-v27 h1{
    font-size:clamp(1.875rem,8.4vw,2.25rem)!important;
    line-height:1.16!important;
  }
  #main .section-head h2,
  #main h2.display,
  #main .team-v29-heading h2,
  #main .contact-band-v5 h2{
    font-size:clamp(1.625rem,7vw,1.875rem)!important;
    line-height:1.28!important;
  }
  #main h3{font-size:clamp(1.25rem,5.5vw,1.5rem)!important;line-height:1.38!important}
  #main p,#main li,#main .field input,#main .field textarea,#main .field select{
    font-size:1rem!important;
    line-height:1.78!important;
  }
  html[dir="rtl"] #main .page-hero h1,
  html[dir="rtl"] #main .contact-page-hero-v5 h1,
  html[dir="rtl"] #main .team-page-title-grid-v27 h1{
    font-size:clamp(1.875rem,8vw,2.2rem)!important;
    line-height:1.5!important;
  }
  html[dir="rtl"] #main .section-head h2,
  html[dir="rtl"] #main h2.display,
  html[dir="rtl"] #main .team-v29-heading h2{
    line-height:1.52!important;
  }
  .office-panel-v5,.form-panel-v5,.contact-band-v5,.map-copy-v5{padding-inline:clamp(20px,6vw,26px)!important}
  .faq button{padding-block:18px!important;gap:14px!important;font-size:1rem!important;line-height:1.5!important}
  .faq-panel{padding-bottom:20px!important}
  .faq-panel p{font-size:1rem!important;line-height:1.82!important}
}

@media(max-width:390px){
  .shell{width:min(100% - 28px,var(--shell))!important}
  #main h1,#main h2,#main h3{overflow-wrap:break-word!important;word-break:normal!important}
  .button,.site-header .mobile-nav-cta a{white-space:normal!important}
}

/* V48 mobile readability overrides for long-form/supporting copy that legacy layers made too small. */
@media(max-width:767px){
  html body #main .practice-panel .summary,
  html body #main .practice-panel .description,
  html body #main .why-box p,
  html body #main .privacy-content p,
  html body #main .team-directory-copy-v27>p,
  html body #main .team-profile-bio-v27,
  html body #main .resource-empty-copy p,
  html body #main .article-disclaimer p,
  html body #main .article-copy,
  html body #main .map-copy-v5 p,
  html body #main .form-intro-v5,
  html body #main .enquiry-routing-note,
  html body #main .section-head>p,
  html body #main .page-hero p,
  html body #main .lead,
  html body #main .article-lead{
    font-size:1rem!important;
    line-height:1.8!important;
    max-width:100%!important;
  }
  html[dir="rtl"] body #main .practice-panel .summary,
  html[dir="rtl"] body #main .practice-panel .description,
  html[dir="rtl"] body #main .privacy-content p,
  html[dir="rtl"] body #main .team-profile-bio-v27,
  html[dir="rtl"] body #main .article-copy,
  html[dir="rtl"] body #main .section-head>p,
  html[dir="rtl"] body #main .page-hero p{
    line-height:1.95!important;
  }
  .site-header .main-nav>a{font-size:1rem!important;line-height:1.45!important}
  .site-footer p,.site-footer .contact-plain-ltr{font-size:1rem!important;line-height:1.8!important}
  .contact-band-meta-v5>span.contact-plain-ltr{display:inline-flex!important;align-items:center!important}
  .contact-band-meta-v5>span:not(.contact-plain-ltr){display:none!important}
}

/* V51: phone/email embedded inside Arabic prose must stay visually LTR. */
.contact-inline-ltr{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  display:inline-block!important;
  white-space:nowrap;
  text-align:left!important;
  letter-spacing:normal!important;
}
html[dir="rtl"] .faq-panel .contact-inline-ltr{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  text-align:left!important;
}
