/* Shared measurements for the public site, independent of booking form fields. */
:root {
  --site-gutter: clamp(1rem, 4vw, 2.5rem);
  --site-section-space: clamp(1.25rem, 3vw, 2.25rem);
  --site-title: clamp(1.95rem, 1.35rem + 2.25vw, 3.2rem);
  --site-heading: clamp(1.35rem, 1.12rem + 1vw, 1.9rem);
  --site-card-heading: clamp(1rem, .95rem + .24vw, 1.16rem);
  --site-copy: clamp(1rem, .95rem + .23vw, 1.125rem);
}
body.interior-page main:is(.subpage-main, .article-main, .document-main) {
  padding-inline: var(--site-gutter);
  padding-block: clamp(1rem, 2.8vw, 2rem) clamp(2rem, 5vw, 4rem);
}
body.interior-page main :is(.page-back, .article-back) { margin-bottom: clamp(.5rem, 2vw, 1rem); }
body.interior-page main :is(.consult-heading, .interior-heading, .journal-heading, .article-heading) {
  margin-bottom: var(--site-section-space);
  padding-block: .5rem clamp(.9rem, 2.2vw, 1.6rem);
}
body.interior-page main :is(.consult-heading, .interior-heading, .journal-heading)::after { margin-top: .9rem; }
body.interior-page main:is(.subpage-main, .article-main, .document-main) h1 {
  font-size: var(--site-title) !important;
  line-height: 1.15 !important;
  text-wrap: balance;
}
body.interior-page main :is(.guide-panel, .corporate-block, .faq-guide-group, .article-body) > h2,
body.home-page main .guide-panel > h2 {
  font-size: var(--site-heading);
  line-height: 1.25;
  margin-bottom: .9rem;
  text-wrap: balance;
}
body.interior-page main :is(.guide-panel, .corporate-block, .journal-card-copy, .profile-experience-grid) :is(h3, h4),
body.home-page main .guide-panel h3 {
  font-size: var(--site-card-heading);
  line-height: 1.35;
}
body.interior-page main :is(.guide-panel, .corporate-block, .consult-about-intro, .profile-background-copy, .profile-unified-copy) p,
body.home-page main .guide-panel p {
  font-size: var(--site-copy) !important;
  line-height: 1.65 !important;
  text-align: start !important;
  text-align-last: auto !important;
  overflow-wrap: break-word;
}
body.home-page main .home-hero :is(.hero-heading, .home-lead p),
body.interior-page main.individual-page .service-art-copy > p {
  text-align: start !important;
  text-align-last: auto !important;
}
body.interior-page main .guide-panel { border-radius: 8px; }
body.interior-page main .guide-panel .guide-actions,
body.home-page main .guide-actions { gap: .65rem; }
body main .guide-actions .guide-button {
  max-width: 100%;
  min-height: 44px;
  padding: .6rem .9rem;
  font-size: .9375rem;
  line-height: 1.3;
  white-space: normal;
}
body main .guide-actions .guide-button:focus-visible,
body main .faq-grid summary:focus-visible {
  outline: 2px solid #91692c;
  outline-offset: 3px;
}
body.interior-page main.faq-redesign .faq-grid > details > summary {
  min-height: 44px;
  line-height: 1.4;
}
body.interior-page main .faq-guide-group > .guide-panel { margin-bottom: 1rem; }
body.interior-page main .corporate-block { padding-block: var(--site-section-space); }
body.home-page main .guide-services .consult-card { grid-column: auto; min-width: 0; }
body.home-page main .guide-services .consult-card h3 { overflow-wrap: break-word; }
@media (max-width: 620px) {
  body main .guide-actions .guide-button { flex: 1 1 12rem; }
}
@media (orientation: landscape) and (max-height: 540px) {
  body.interior-page main :is(.consult-heading, .interior-heading, .journal-heading, .article-heading) { padding-block: .35rem .8rem; }
}

/* Keep equal nav targets and give translated labels room on mid-width screens. */
:is(#siteMasthead,#bookingSiteHeader):not(#mastheadStyleGuard).home-header.site-header.unified-site-header :is(nav > a, nav > .articles-menu > summary) {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  line-height: 1.25 !important;
  letter-spacing: .05em !important;
  word-spacing: normal !important;
}
:is(#siteMasthead,#bookingSiteHeader) :is(.compact-home-menu summary, nav a, nav summary, .masthead-booking):focus-visible {
  outline: 2px solid #e2c38a !important;
  outline-offset: 2px;
}
@media (min-width: 701px) and (max-width: 1024px) {
  :is(#siteMasthead,#bookingSiteHeader):not(#mastheadStyleGuard).home-header.site-header.unified-site-header:not(.has-compact-home-nav) > nav {
    column-gap: clamp(.25rem, .7vw, .65rem) !important;
    padding-inline-end: 148px !important;
  }
  :is(#siteMasthead,#bookingSiteHeader):not(#mastheadStyleGuard).home-header.site-header.unified-site-header :is(nav > a, nav > .articles-menu > summary) {
    font-size: 12px !important;
    padding-inline: .3rem !important;
    letter-spacing: .015em !important;
  }
  :is(#siteMasthead,#bookingSiteHeader):not(#mastheadStyleGuard).home-header.site-header.unified-site-header:not(.has-compact-home-nav) > .masthead-booking {
    min-width: 0;
    width: 138px !important;
    font-size: 12px !important;
  }
}
body.home-page main .guide-services .consult-card.forensic-consult-card { grid-column: auto; }

:is(#siteMasthead,#bookingSiteHeader):not(#mastheadStyleGuard).home-header.site-header.unified-site-header
  nav > .articles-menu > summary > span {
  font: inherit !important;
  letter-spacing: inherit !important;
}
body.interior-page main.forensic-consultancy .forensic-hero .consult-about-intro { background: transparent; }
body.interior-page main.forensic-consultancy .forensic-hero .consult-about-intro > h1 {
  margin-bottom: .9rem;
}
body.interior-page main.forensic-consultancy .forensic-hero .consult-about-intro > p { margin: 0; }

@media (orientation: landscape) and (max-height: 540px) and (min-width: 701px) {
  :is(#siteMasthead,#bookingSiteHeader):not(#mastheadStyleGuard).home-header.site-header.unified-site-header > .brand {
    --brand-logo-height: 56px;
  }
  :is(#siteMasthead,#bookingSiteHeader):not(#mastheadStyleGuard).home-header.site-header.unified-site-header > .brand .brand-name {
    font-size: clamp(23px, 3.2vw, 32px) !important;
  }
  :is(#siteMasthead,#bookingSiteHeader):not(#mastheadStyleGuard).home-header.site-header.unified-site-header > .brand .brand-professional {
    font-size: clamp(14px, 2vw, 18px) !important;
  }
}
