/* NMR Page Design Studio v1.4.5 — low-risk consistency layer.
   Keep MSA/Legacy topic cards, People CMS, donation widgets and slider independent. */
body.nmrpd-v145-consistent {
  --nmr-v145-heading: #2d2038;
  --nmr-v145-text: #514b59;
  --nmr-v145-accent: #6b3785;
  --nmr-v145-green: #21774e;
  --nmr-v145-rule: #e8ddea;
  --nmr-v145-radius: 18px;
}
/* Same clear typography across the three established guide styles. */
body.nmrpd-v145-consistent main :is(.nmrpd-sw-article,.nmrpd-msa-article,.nmrpd-legacy-article) > h1 {
  font-size:clamp(2rem,3.55vw,3.08rem);font-weight:760;letter-spacing:-.027em;
  line-height:1.14;text-wrap:balance;margin-top:0;color:var(--nmr-v145-heading);
}
body.nmrpd-v145-consistent main :is(.nmrpd-sw-article,.nmrpd-msa-article,.nmrpd-legacy-article) > h2 {
  font-size:clamp(1.45rem,2.5vw,2.03rem);font-weight:740;
  letter-spacing:-.016em;line-height:1.25;text-wrap:balance;
  color:var(--nmr-v145-heading);scroll-margin-top:112px;
}
body.nmrpd-v145-consistent main :is(.nmrpd-sw-article,.nmrpd-msa-article,.nmrpd-legacy-article) > h3 {
  font-size:clamp(1.18rem,1.8vw,1.45rem);font-weight:720;line-height:1.32;
  text-wrap:pretty;color:var(--nmr-v145-heading);
}
/* Unwrapped Gutenberg information pages (not dynamic forms/CMS) share the same rhythm. */
body.nmrpd-v145-consistent:not(.nmrpd-v145-special) main :is(.wp-block-post-content,.entry-content,.page-content) > :is(h1,h2,h3) {
  max-width:100%;overflow-wrap:break-word;color:var(--nmr-v145-heading);
  text-wrap:balance;letter-spacing:-.018em;
}
body.nmrpd-v145-consistent:not(.nmrpd-v145-special) main :is(.wp-block-post-content,.entry-content,.page-content) > h1 {
  font-size:clamp(2rem,3.55vw,3.08rem);line-height:1.14;margin-block:0 1.1rem;
}
body.nmrpd-v145-consistent:not(.nmrpd-v145-special) main :is(.wp-block-post-content,.entry-content,.page-content) > h2 {
  font-size:clamp(1.45rem,2.5vw,2.03rem);line-height:1.25;margin-block:2.05rem .8rem;
}
body.nmrpd-v145-consistent:not(.nmrpd-v145-special) main :is(.wp-block-post-content,.entry-content,.page-content) > h3 {
  font-size:clamp(1.18rem,1.8vw,1.45rem);line-height:1.32;margin-block:1.4rem .55rem;
}
body.nmrpd-v145-consistent main :is(.nmrpd-sw-article,.nmrpd-msa-article,.nmrpd-legacy-article) > :is(p,ul,ol) {
  line-height:1.72;text-wrap:pretty;overflow-wrap:break-word;
}
body.nmrpd-v145-consistent:not(.nmrpd-v145-special) main :is(.wp-block-post-content,.entry-content,.page-content) > p {
  line-height:1.72;text-wrap:pretty;margin-block:0 1.12em;max-width:85ch;
}
body.nmrpd-v145-consistent main :is(.nmrpd-sw-article,.nmrpd-msa-article,.nmrpd-legacy-article) :is(.wp-block-buttons,.nmrpd-cta-button) {
  gap:11px;flex-wrap:wrap;
}
body.nmrpd-v145-consistent main :is(.wp-block-button__link,.nmrpd-sw-related-card,.nmrpd-msa-topic-card,.nmrpd-legacy-button):focus-visible {
  outline:3px solid var(--nmr-v145-green);outline-offset:3px;
}
body.nmrpd-v145-consistent:not(.nmrpd-v145-special) main :is(.wp-block-post-content,.entry-content,.page-content) > :is(ul,ol) {
  padding-inline-start:1.55em;margin-block:.6em 1.5em;
}
body.nmrpd-v145-consistent main .wp-block-table {max-width:100%;overflow-x:auto}
body.nmrpd-v145-consistent main :is(.nmrpd-sw-article,.nmrpd-msa-article,.nmrpd-legacy-article) :is(.wp-block-table,table) {max-width:100%}
body.nmrpd-v145-consistent main .wp-block-image img {max-width:100%;height:auto}
/* The public People CMS cards must not show WordPress's generic image-empty-state artwork. */
body.nmrpd-v145-consistent main .nmr-card-people .nmr-card-image:has(img[src*="Image-empty-state"]) {
  display:none!important;
}
body.nmrpd-v145-consistent main .nmr-card-people:has(img[src*="Image-empty-state"]) .nmr-card-body {
  padding-top:clamp(18px,2.4vw,28px);
}
body.nmrpd-v145-consistent main .nmrpd-v145-directory-intro {margin:12px auto 23px;max-width:1120px}
body.nmrpd-v145-consistent main .nmrpd-v145-directory-intro h1 {font-size:clamp(2rem,3.55vw,3.08rem);letter-spacing:-.027em;line-height:1.14;margin:0;color:var(--nmr-v145-heading)}
/* The compact homepage slider and its arrows are expressly excluded. The two
   informational H2s stay visually prominent after their semantic correction. */
body.nmrpd-v145-consistent.home main .wp-block-post-content > h2.wp-block-heading {
  font-size:clamp(2rem,3.4vw,3.05rem);line-height:1.17;letter-spacing:-.024em;
}
@media (max-width:720px) {
 body.nmrpd-v145-consistent main :is(.nmrpd-sw-article,.nmrpd-msa-article,.nmrpd-legacy-article) > :is(h1,h2,h3) {text-wrap:pretty}
 body.nmrpd-v145-consistent main :is(.nmrpd-sw-article,.nmrpd-msa-article,.nmrpd-legacy-article) > :is(p,ul,ol) {line-height:1.68}
 body.nmrpd-v145-consistent:not(.nmrpd-v145-special) main :is(.wp-block-post-content,.entry-content,.page-content) > :is(p,ul,ol) {line-height:1.68}
}
@media print {body.nmrpd-v145-consistent main :is(h1,h2,h3,h4) {break-after:avoid}}

/* Heading-only treatments for the two payment/support pages, without touching forms. */
body.nmrpd-v145-consistent main .nmrpd-v145-donate-heading {margin:6px 0 22px;max-width:1120px}
body.nmrpd-v145-consistent main .nmrpd-v145-donate-heading h1 {color:var(--nmr-v145-heading);font-size:clamp(1.85rem,3.2vw,2.85rem);line-height:1.17;margin:0;letter-spacing:-.024em}
body.nmrpd-v145-consistent main .nmrpd-v145-eyebrow {color:var(--nmr-v145-accent);text-transform:uppercase;letter-spacing:.13em;font-size:.77rem;font-weight:750;margin:0 0 12px!important}
