/* =========================================================
   V43 — CLIENT NOTES COMPLETION / FINAL TYPOGRAPHY QA
   Loaded after all legacy styles. Keeps headings distinct,
   paragraphs readable and mobile/RTL sizing consistent.
   ========================================================= */

/* Secondary heading hierarchy across inner pages. */
#main .practice-panel h2,
#main .privacy-section h2,
#main .team-directory-copy-v27 h2,
#main .office-panel-v5 h2,
#main .resource-empty-copy h3,
#main .article-media-card h2{
  font-size:clamp(1.55rem,2.15vw,2.35rem)!important;
  line-height:1.2!important;
  text-wrap:balance;
  overflow-wrap:break-word;
}
#main .practice-panel h3,
#main .goal-box h3,
#main .ops-row h3,
#main .team-profile-facts-v27 h3,
#main .journal-card h3,
#main .empty-state h3{
  font-size:clamp(1.08rem,1rem + .42vw,1.42rem)!important;
  line-height:1.36!important;
  text-wrap:balance;
  overflow-wrap:break-word;
}

/* Readable body-copy rhythm without forcing card text into one width. */
#main .practice-panel .summary,
#main .practice-panel .description,
#main .why-box p,
#main .privacy-content p,
#main .team-directory-copy-v27>p,
#main .team-profile-bio-v27,
#main .resource-empty-copy p,
#main .article-disclaimer p,
#main .map-copy-v5 p,
#main .form-privacy-note{
  max-width:64ch!important;
  line-height:1.78!important;
  text-wrap:pretty;
  overflow-wrap:break-word;
}
#main .journal-card-body p,
#main .testimonial-card-v15 p{
  line-height:1.68!important;
  text-wrap:pretty;
  overflow-wrap:break-word;
}
#main .goal-box li,#main .ops-row li,#main .team-profile-facts-v27 li{
  line-height:1.72!important;
  overflow-wrap:break-word;
}

/* Keep short lead copy visually intentional instead of stretched. */
#main .page-hero .shell>p,
#main .contact-hero-inner-v5>p{max-width:60ch!important}
#main .section-head>p{justify-self:end}
html[dir="rtl"] #main .section-head>p{justify-self:start}

/* Forms: labels and supporting copy remain subordinate to headings. */
#main .field label{font-size:.88rem!important;line-height:1.35!important}
#main .form-privacy-note{font-size:.8rem!important}

/* Arabic typography: no compressed lines, especially cards/profiles. */
html[dir="rtl"] #main .practice-panel h2,
html[dir="rtl"] #main .privacy-section h2,
html[dir="rtl"] #main .team-directory-copy-v27 h2,
html[dir="rtl"] #main .office-panel-v5 h2{line-height:1.5!important}
html[dir="rtl"] #main .practice-panel h3,
html[dir="rtl"] #main .goal-box h3,
html[dir="rtl"] #main .ops-row h3,
html[dir="rtl"] #main .journal-card h3{line-height:1.55!important}

/* Mobile: strong but restrained hierarchy and clean paragraph measure. */
@media(max-width:767px){
  #main .practice-panel h2,#main .privacy-section h2,#main .team-directory-copy-v27 h2,
  #main .office-panel-v5 h2,#main .resource-empty-copy h3,#main .article-media-card h2{
    font-size:clamp(1.38rem,6.2vw,1.82rem)!important;
    line-height:1.28!important;
  }
  html[dir="rtl"] #main .practice-panel h2,html[dir="rtl"] #main .privacy-section h2,
  html[dir="rtl"] #main .team-directory-copy-v27 h2,html[dir="rtl"] #main .office-panel-v5 h2{
    line-height:1.55!important;
  }
  #main .practice-panel h3,#main .goal-box h3,#main .ops-row h3,#main .team-profile-facts-v27 h3,
  #main .journal-card h3,#main .empty-state h3{font-size:1.08rem!important;line-height:1.42!important}
  #main .practice-panel .summary,#main .practice-panel .description,#main .why-box p,#main .privacy-content p,
  #main .team-directory-copy-v27>p,#main .team-profile-bio-v27,#main .resource-empty-copy p,
  #main .article-disclaimer p,#main .map-copy-v5 p{max-width:100%!important;font-size:.92rem!important;line-height:1.72!important}
  html[dir="rtl"] #main .practice-panel .summary,html[dir="rtl"] #main .practice-panel .description,
  html[dir="rtl"] #main .privacy-content p,html[dir="rtl"] #main .team-profile-bio-v27{line-height:1.92!important}
  #main .section-head>p{justify-self:auto}
}

/* Extra-small phones: avoid any headline clipping/overflow. */
@media(max-width:390px){
  #main h1,#main h2,#main h3{overflow-wrap:anywhere}
  #main .field label{font-size:.82rem!important}
}


/* V45 — inner pages use the approved black header from the first paint.
   Home retains the flat white top state and turns black after scrolling. */
#siteHeader.is-inner-page,
#siteHeader.is-inner-page.is-scrolled{
  background:#141410!important;
  border:0!important;
  box-shadow:none!important;
  color:#f1ede2!important;
}
@media(min-width:1101px){
  #siteHeader.is-inner-page .main-nav>a,
  #siteHeader.is-inner-page .nav-dropdown>button,
  #siteHeader.is-inner-page.is-scrolled .main-nav>a,
  #siteHeader.is-inner-page.is-scrolled .nav-dropdown>button{
    color:#f1ede2!important;
  }
  #siteHeader.is-inner-page .main-nav>a:hover,
  #siteHeader.is-inner-page .main-nav>a.active,
  #siteHeader.is-inner-page .main-nav>a[aria-current="page"],
  #siteHeader.is-inner-page .nav-dropdown>button:hover{
    color:#e6c471!important;
  }
  #siteHeader.is-inner-page .nav-utilities .language-switch{
    background:#24231d!important;
    border-color:#454032!important;
  }
  #siteHeader.is-inner-page .nav-utilities .language-switch a{color:#e8e0cd!important}
  #siteHeader.is-inner-page .nav-utilities .language-switch a.active{color:#2a220f!important}
}
@media(max-width:1100px){
  #siteHeader.is-inner-page .nav-toggle,
  #siteHeader.is-inner-page.is-scrolled .nav-toggle{
    background:#28251c!important;
    border-color:#675631!important;
  }
  #siteHeader.is-inner-page .nav-toggle span,
  #siteHeader.is-inner-page.is-scrolled .nav-toggle span{background:#e4c372!important}
}
