/* Aslan headline typography: PP Editorial Old upright. */
@font-face {
  font-family: "PP Editorial Old";
  src: url("./fonts/pp-editorial-old-upright-v11.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --aslan-font-headline: "PP Editorial Old", Georgia, "Times New Roman", serif;
}

/* Beat legacy page-specific heading rules without changing body or UI fonts. */
body.aslan-editorial-headlines.aslan-editorial-headlines :is(h1, h2, h3, h4, h5, h6, [role="heading"], .hg-offer-headline, legend) {
  font-family: var(--aslan-font-headline) !important;
  font-style: normal !important;
  font-weight: 100 !important;
  font-synthesis: none;
  font-kerning: normal;
  font-feature-settings: "blwf" 1, "cv09" 1, "cv03" 1, "cv04" 1, "cv11" 1;
  letter-spacing: -.025em !important;
  line-height: 1.14 !important;
}

body.aslan-editorial-headlines.aslan-editorial-headlines :is(h1, h2, h3, h4, h5, h6, [role="heading"], .hg-offer-headline, legend) :is(span, em, strong, b, a) {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
}

body.aslan-editorial-headlines.aslan-editorial-headlines :is(h3, h4, h5, h6, legend) {
  font-weight: 300 !important;
  letter-spacing: -.012em !important;
  line-height: 1.25 !important;
}

body.aslan-editorial-headlines :is(h1, h2) {
  text-wrap: balance;
}

body.aslan-editorial-headlines.aslan-editorial-headlines :is(.aj-card:not(.aj-featured), .aj-prose, .aj-section-label, .aj-sidebar-inner) h2 {
  font-weight: 300 !important;
}

body.aslan-editorial-headlines.aslan-editorial-headlines summary {
  font-family: var(--aslan-font-headline) !important;
  font-style: normal !important;
  font-weight: 300 !important;
  font-feature-settings: "blwf" 1, "cv09" 1, "cv03" 1, "cv04" 1, "cv11" 1;
  letter-spacing: -.01em !important;
  line-height: 1.4 !important;
}

body.aslan-editorial-headlines legend small {
  font-family: var(--font-body, ui-sans-serif, system-ui, sans-serif);
}

/* Small captions need more room when set in the editorial face. */
body.aslan-editorial-headlines .aslan-interior :is(.case-copy, .landing-proof-card) h4 {
  font-size: 18px;
}

body.aslan-editorial-headlines .outbound-experience .obp-premium-faq summary {
  font-size: 18px;
}

body.aslan-editorial-headlines .outbound-experience :is(.obp-managed-layers, .obp-process-flow) h3 {
  font-size: 20px;
}

@media (max-width: 700px) {
  body.aslan-editorial-headlines.aslan-editorial-headlines :is(h1, h2) {
    letter-spacing: -.02em !important;
    line-height: 1.16 !important;
  }
}
