/* MyPunter 1.2 — shared front-end typography, loaded after both design styles.
   Target headings rather than every descendant: keep icons, odds, table data,
   inputs and payment controls legible. No layout/access/visibility rules. */
body:is(.mpds-home,.mpds-site) {
  --mpds-serif: Georgia, 'Times New Roman', serif;
  --mpds-sans: Arial, Helvetica, sans-serif;
  font-family: var(--mpds-sans);
}
/* Older shortcode styles can load inline after the design stylesheet.
   Deliberate specificity + !important on font-family only. */
body:is(.mpds-home,.mpds-site):is(.mpds-home,.mpds-site) :is(h1,h2,h3,h4,h5,h6,[role="heading"],.entry-title,.widget-title,.wp-block-post-title,.pmpro_card_title,.pmpro_section_title,.mptp-hero-title,.mp220-venue,.mp220-race-name,.mpd-card > strong,.mpr26 summary,.tip > b) {
  font-family: var(--mpds-serif) !important;
}
/* Links/spans in known title components, not icon glyphs. */
body:is(.mpds-home,.mpds-site):is(.mpds-home,.mpds-site) :is(.entry-title,.wp-block-post-title,.widget-title,.mprn-story h3) > a,
body:is(.mpds-home,.mpds-site):is(.mpds-home,.mpds-site) .mptp-hero-title > strong {
  font-family: inherit !important;
}
body:is(.mpds-home,.mpds-site) .mptp-board :is(.mptp-hero-title,.mptp-meeting h3) {
  font-style: normal;
  font-weight: 700;
}
/* Match the homepage's editorial hierarchy; retain existing hero size. */
body.mpds-home .section-head h2,
body.mpds-home #calculator > h2,
body.mpds-home .panel-bar h2 {
  font-size: clamp(18px, 1.65vw, 23px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-transform: none;
}
/* Consistent UI text without changing icon fonts or embedded checkout frames. */
body:is(.mpds-home,.mpds-site) :is(.mpd,.mp-team,.mp-members,.mpa-shell,.mpt-shell,.mptp-board,.mp-ratings,.mp21,.mprn,.mpcalc,.mp-support-cta) {
  font-family: var(--mpds-sans);
}
body:is(.mpds-home,.mpds-site) :is(button,input,select,textarea,label,table,.mpr26-metric strong,.mpr26-rank strong,.mpcalc-results td,.mpcalc-results th) {
  font-family: var(--mpds-sans);
}
body.mpds-site .mpd .mpr26-metric strong {font-family: var(--mpds-sans);}
/* Keep heading wraps readable on narrow screens. */
body:is(.mpds-home,.mpds-site) :is(.mp-support-cta h2,.mprn-story h3,.mptp-meeting h3,.mp220-venue,.mp220-race-name,.mpd-card > strong) {
  overflow-wrap: anywhere;
}
