/* Important declarations in this named layer outrank legacy unlayered page
   rules. All font values come from the WordPress Customizer, not page IDs. */
@layer tew-typography {
  body.tew-serif-body :is(p,li,td,label,input,select,textarea,figcaption,.tew-guide-note,.tew-guide .element,.tew-palaces span) {font-weight:500!important;}
  body.tew-global-typography {font-family:var(--tew-body-font)!important;}
  body.tew-global-typography :is(p,li,td,th,label,input,select,textarea,figcaption,.elementor-widget-text-editor,.tew-meta,.tew-card-meta) {
    font-family:var(--tew-body-font)!important;
  }
  body.tew-global-typography :is(p,li,td,th,label,figcaption) :is(span,strong,em,a) {font-family:inherit!important;}
  body.tew-global-typography :is(h1,h2,h3,h4,h5,h6,.elementor-heading-title,.tew-site-brand,.tew-site-nav a,.elementor-button,.elementor-button-text,.tew-solid-link,.tew-read-more) {
    font-family:var(--tew-heading-font)!important;font-weight:400!important;text-transform:none!important;
  }
  body.tew-global-typography :is(h1,h2,h3,h4,h5,h6,.elementor-heading-title) :is(a,span,strong,em) {font-family:inherit!important;}
  body.tew-global-typography .calc-experience :is(div,span,button) {font-family:var(--tew-body-font)!important;}
  body.tew-global-typography :is(.tew-sign-title,.tew-pillar-name,.tew-btn,.calc-number) {font-family:var(--tew-heading-font)!important;}
  body.tew-global-typography .calc-experience :is(.tew-sign-title,.tew-pillar-name,.tew-btn) {font-family:var(--tew-heading-font)!important;}
  body.tew-global-typography .elementor-heading-title .journal-kicker {font-family:var(--tew-body-font)!important;font-size:12px!important;}
  body.tew-global-typography .elementor-widget-text-editor,
  body.tew-global-typography .elementor-widget-text-editor :is(p,li) {
    font-size:var(--tew-body-size)!important;line-height:1.65!important;
  }
  body.tew-global-typography .elementor-widget-text-editor :is(p,li) :is(span,strong,em,a) {font-size:inherit!important;line-height:inherit!important;}
  body.tew-global-typography .elementor-widget-text-editor:is([class*="kicker"],[class*="eyebrow"],[class*="trust"],[class*="caption"],[class*="best"],[class*="meta"]) p,
  body.tew-global-typography :is(.tew-footer,.tew-site-footer) p {font-size:12px!important;line-height:1.6!important;}
  body.tew-global-typography :is(.tew-eyebrow,.tew-trust,.tew-card-link,.tew-footer) :is(span,a,.elementor-button,.elementor-button-text) {font-family:var(--tew-body-font)!important;}
  body.tew-global-typography .tew-post-content :is(p,li,td,th) {font-size:var(--tew-body-size)!important;line-height:1.75!important;}
  body.tew-global-typography .tew-post-content :is(h2,h3) {font-size:clamp(29px,3.2vw,39px)!important;line-height:1.2!important;letter-spacing:-.3px!important;}
  body.tew-global-typography .tew-journal-card p {font-family:var(--tew-body-font)!important;font-size:calc(var(--tew-body-size) - 2px)!important;line-height:1.65!important;}
  body.tew-global-typography :is(.tew-meta,.tew-card-meta,.tew-kicker,.tew-share,.tew-site-footer,figcaption) {font-family:var(--tew-body-font)!important;}
  @media(max-width:767px) {
    body.tew-global-typography .elementor-widget-text-editor,
    body.tew-global-typography .elementor-widget-text-editor :is(p,li),
    body.tew-global-typography .tew-post-content :is(p,li,td,th) {font-size:var(--tew-mobile-body-size)!important;}
    body.tew-global-typography .elementor-widget-text-editor:is([class*="kicker"],[class*="eyebrow"],[class*="trust"],[class*="caption"],[class*="best"],[class*="meta"]) p,
    body.tew-global-typography :is(.tew-footer,.tew-site-footer) p {font-size:12px!important;}
  }
}
.tew-post-content p:empty {display:none;}
.tew-post-content .elementor>.e-con,.tew-post-content .elementor>.e-con>.e-con-inner {padding-left:0;padding-right:0;}
.tew-post-content figure {margin:32px 0;}
.tew-post-content figcaption {color:#53666b;font-size:13px;line-height:1.6;margin-top:10px;}
.tew-featured-image {aspect-ratio:3/2;object-fit:cover;max-height:none;}
.tew-journal-card-image {aspect-ratio:3/2;}
