/* NAD Solutions — clean typography layer (loaded last).
   One font family everywhere (DM Sans), all body text 16px, one consistent heading scale. */

:root{
  --nad-font:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --nad-text:16px;
  --nad-h1:clamp(34px,4.2vw,50px);
  --nad-h2:clamp(28px,3vw,34px);
  --nad-h3:22px;
  --nad-h4:18px;
  --nad-ink:#243440;
  --nad-muted:#5b6a76;
}

/* ---------- one font family ---------- */
html body,
body :where(*:not(#wpadminbar):where(:not(#wpadminbar *)):not(svg):not(svg *)),
body input, body select, body textarea, body button, body option{
  font-family:var(--nad-font)!important;
}

/* ---------- 16px for all text ---------- */
html{font-size:16px;-webkit-text-size-adjust:100%}
body{font-size:var(--nad-text)!important;line-height:1.65;color:var(--nad-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body :is(p,li,dt,dd,a,span,strong,b,em,i,small,label,input,select,option,textarea,button,summary,td,th,
  blockquote,figcaption,cite,time,address,div,nav,ul,ol,dl,legend,caption,mark,abbr,sup,sub):where(:not(#wpadminbar *)){
  font-size:var(--nad-text)!important;
  letter-spacing:normal!important;
}
/* small print stays readable, not tiny */
body :is(small,sup,sub,.review-note,figcaption):where(:not(#wpadminbar *)){font-size:var(--nad-text)!important}

/* ---------- one heading scale ---------- */
body :is(h1,h2,h3,h4,h5,h6):where(:not(#wpadminbar *)){
  font-family:var(--nad-font)!important;
  font-weight:700!important;
  line-height:1.2!important;
  letter-spacing:-.01em!important;
  text-transform:none!important;
  margin-top:0;
}
body h1:where(:not(#wpadminbar *)){font-size:var(--nad-h1)!important}
body h2:where(:not(#wpadminbar *)){font-size:var(--nad-h2)!important}
body h3:where(:not(#wpadminbar *)){font-size:var(--nad-h3)!important;line-height:1.3!important}
body h4:where(:not(#wpadminbar *)){font-size:var(--nad-h4)!important;line-height:1.35!important}
body :is(h5,h6):where(:not(#wpadminbar *)){font-size:var(--nad-text)!important;line-height:1.4!important}
/* text inside a heading follows the heading size */
body :is(h1,h2,h3,h4,h5,h6) :is(*):where(:not(#wpadminbar *)){font-size:inherit!important;font-weight:inherit;line-height:inherit!important}

/* ---------- calmer, cleaner details ---------- */
/* paragraphs and lists: comfortable reading */
body :is(p,li):where(:not(#wpadminbar *)){line-height:1.7}
body p.direct-answer{font-weight:500}
/* eyebrows / badges: no shouting, no wide tracking */
body :is(.eyebrow,.studio-eyebrow,.mega-label,.ref-service-badge,.studio-post-badge,[class*="eyebrow"],[class*="badge"]){
  letter-spacing:.04em!important;font-weight:600!important;
}
/* buttons: same size, sentence case, consistent weight */
body :is(.button,.wp-block-button__link,button,input[type="submit"]):where(:not(#wpadminbar *)):not(#nadcb *){
  font-size:var(--nad-text)!important;font-weight:600!important;text-transform:none!important;letter-spacing:normal!important;line-height:1.3!important;
}
/* form fields: labels above inputs, roomy inputs */
body form label:where(:not(#wpadminbar *)){display:block;font-weight:600!important;margin-bottom:6px;color:var(--nad-ink)}
body form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea):not(#nadcb *){
  font-size:var(--nad-text)!important;line-height:1.4!important;min-height:46px;
}
body form textarea:not(#nadcb *){min-height:110px}
/* FAQ toggles */
body summary:where(:not(#wpadminbar *)){font-weight:600!important;line-height:1.45!important}
/* links in running text */
body :is(p,li) a:not(.button):not(.wp-block-button__link){text-underline-offset:3px}
/* muted helper text keeps contrast */
body :is(.menu-description,.studio-meta,.form-note,.review-note){color:var(--nad-muted)!important}

/* ---------- navigation menus at 16px ---------- */
body :is(.menu-title,.menu-description){line-height:1.35!important}
body .menu-description{font-weight:400!important}

/* ---------- mobile ---------- */
@media (max-width:700px){
  :root{--nad-h1:32px;--nad-h2:26px;--nad-h3:20px;--nad-h4:18px}
}

/* ---------- stats bar: numbers are figures, not text ---------- */
body .ref-stat{display:flex;flex-direction:column;gap:2px;align-items:flex-start;justify-content:flex-start}
body .ref-stat strong{font-size:var(--nad-h2)!important;line-height:1.1!important;font-weight:700!important}
body .ref-stat span{text-transform:none!important;line-height:1.3!important;opacity:.85}
/* labels in caps read as shouting at 16px — keep them in sentence case */
body :is(.ref-service-badge,.studio-post-badge,dt,.mega-label){text-transform:none!important}
body .ref-stat{align-self:flex-start}
/* class-based small print from older stylesheets */
body :is(p,span,small,div,a,li):is(.studio-eyebrow,.scope-note,.last-updated,.small-note,.review-note,.form-note,.studio-meta,.eyebrow){font-size:var(--nad-text)!important}
/* mega menu: never taller than the screen */
@media (min-width:701px){body .mega-panel{max-height:calc(100vh - 170px);overflow-y:auto;overscroll-behavior:contain}}
/* mobile: one clean line in the top bar, no wrapping in the sticky call bar */
@media (max-width:700px){
  body .utility .container{display:flex;justify-content:center;gap:12px;flex-wrap:nowrap}
  body .utility .container>span:first-child{display:none}
  body .utility .container>span{white-space:nowrap}
  body .utility .container>span:only-child{display:inline}
  body .mobile-cta a{white-space:nowrap}
  body .mobile-cta>a:not(.button){font-size:15px!important}
}
