/* Body Content only. Shared UI and global heading/body styles are independent. */
main.pb-main {
 --pb-content-h1:1.75rem;
 --pb-content-h2:1.5rem;
 --pb-content-h3:1.25rem;
 --pb-content-h4:1.125rem;
 --pb-content-h5:1.0625rem;
 --pb-content-h6:1rem;
}
@media (min-width:600px) {
 main.pb-main {
  --pb-content-h1:2rem;
  --pb-content-h2:1.75rem;
  --pb-content-h3:1.5rem;
  --pb-content-h4:1.25rem;
  --pb-content-h5:1.125rem;
  --pb-content-h6:1rem;
 }
}
/* Single articles use a compact heading scale, retaining the shared H1 and prose. */
main.pb-main.pb-article {
 --pb-content-h2:1.25rem;
 --pb-content-h3:1.125rem;
 --pb-content-h4:1.0625rem;
 --pb-content-h5:1rem;
 --pb-content-h6:1rem;
}
@media (min-width:600px) {
 main.pb-main.pb-article {
  --pb-content-h2:1.375rem;
  --pb-content-h3:1.25rem;
  --pb-content-h4:1.125rem;
 }
}
/* Legal reading profile; the native lead class also scopes the Page editor canvas. */
main.pb-main:has(.pb-legal-lead) {
 --pb-content-h1:1.5rem;
 --pb-content-h2:1.125rem;
 --pb-content-h3:1.0625rem;
}
@media (min-width:600px) {
 main.pb-main:has(.pb-legal-lead) {
  --pb-content-h1:1.75rem;
  --pb-content-h2:1.25rem;
  --pb-content-h3:1.125rem;
 }
}
/* Leave annotations, navigation and form UI on their existing type rules. */
main.pb-main :is(h1,h2,h3,h4,h5,h6,p):not(:where(nav *,header *,footer *,form *,.wp-block-buttons *,.pb-placeholder,.pb-eyebrow,.pb-local-note)) {
 font-family:var(--wp--preset--font-family--system);
 margin-block-end:0;
 overflow:visible;
}
main.pb-main h1:not(:where(nav *,header *,footer *,form *)) { font-size:var(--pb-content-h1); line-height:1.3; font-weight:600; }
main.pb-main h2:not(:where(nav *,header *,footer *,form *)) { font-size:var(--pb-content-h2); line-height:1.35; font-weight:600; }
main.pb-main h3:not(:where(nav *,header *,footer *,form *)) { font-size:var(--pb-content-h3); line-height:1.4; font-weight:600; }
main.pb-main h4:not(:where(nav *,header *,footer *,form *)) { font-size:var(--pb-content-h4); line-height:1.4; font-weight:600; }
main.pb-main h5:not(:where(nav *,header *,footer *,form *)) { font-size:var(--pb-content-h5); line-height:1.45; font-weight:600; }
main.pb-main h6:not(:where(nav *,header *,footer *,form *)) { font-size:var(--pb-content-h6); line-height:1.45; font-weight:600; }
main.pb-main p:not(:where(nav *,header *,footer *,form *,.wp-block-buttons *,.pb-placeholder,.pb-eyebrow,.pb-local-note)) { font-size:1rem; line-height:1.6; font-weight:400; }
main.pb-main p:not(:where(nav *,header *,footer *,form *,.wp-block-buttons *,.pb-placeholder,.pb-eyebrow,.pb-local-note)) :is(strong,b) { font-weight:600; }
/* One margin owns text rhythm; Group/Grid/Section spacing is left alone. */
main.pb-main :is(h1,h2,h3,h4,h5,h6,p) + :is(h1,h2,h3,h4,h5,h6,p):not(:where(nav *,header *,footer *,form *,.wp-block-buttons *,.pb-placeholder,.pb-eyebrow,.pb-local-note)) { margin-block-start:1rem; }
main.pb-main > .wp-block-post-title + .wp-block-post-content { margin-block-start:1rem; }
main.pb-main .wp-block-post-content > :first-child { margin-block-start:0; }
