/*
 * DHV Theme 13.78.133 — Editorial Heading & Display Restraint Convergence
 * Presentation-only typography contract. Body/UI typography remains unchanged.
 */
:root {
  --dhv-editorial-font: "Merriweather", Georgia, "Times New Roman", serif;
  --dhv-serif: var(--dhv-editorial-font);
}

/* Semantic editorial headings use the same readable serif family site-wide.
 * Keep this late in the cascade because older surface styles intentionally
 * carried local sans/Times overrides before the global typography convergence. */
html body[class] h1,
html body[class] h2,
html body[class] h3,
html body[class] h4 {
  font-family: var(--dhv-editorial-font) !important;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-synthesis: none;
  font-feature-settings: "pnum" 1, "lnum" 1;
  text-rendering: optimizeLegibility;
}

/* Vietnamese headlines read more cleanly with restrained tracking. */
html body[class] h1 { letter-spacing: -.012em !important; }
html body[class] h2 { letter-spacing: -.008em !important; }
html body[class] h3 { letter-spacing: -.003em !important; }
html body[class] h4 { letter-spacing: 0 !important; }

/* Historical two-class !important exceptions that otherwise outrank the
 * semantic contract above. These remain heading-only; body/control text stays sans. */
.dhv-author-box.is-collective h2,
body.dhv-public-surface .dhv-reaction-block h2 {
  font-family: var(--dhv-editorial-font) !important;
}

/* 13.78.133 display restraint: shrink only the deliberately oversized display
 * headings. Article-body H2/H3/H4 and compact component headings keep their
 * route-owned sizes, so this is not another blanket font-size override. */
.dhvx-reader h1,
.dhv-creator-portfolio__intro h1 {
  font-size:clamp(34px,3.5vw,48px) !important;
  line-height:1.08 !important;
}
.dhv-trust-hero h1,
body.dhv-institutional-page .dhv-page-head h1,
.dhvx-info-hero h1 {
  font-size:clamp(34px,3.8vw,46px) !important;
  line-height:1.08 !important;
}
.dhv-support-hero-copy h2,
.dhv-collab-hero h2 {
  font-size:clamp(30px,3.45vw,41px) !important;
  line-height:1.09 !important;
}
.dhv-support-system h2,
.dhv-support-ending h2 {
  font-size:clamp(26px,2.9vw,34px) !important;
  line-height:1.12 !important;
}
@media (max-width:767px) {
  .dhvx-reader h1,
  .dhv-creator-portfolio__intro h1,
  .dhv-trust-hero h1,
  body.dhv-institutional-page .dhv-page-head h1,
  .dhvx-info-hero h1 {
    font-size:clamp(29px,8.6vw,36px) !important;
    line-height:1.1 !important;
  }
  .dhv-support-hero-copy h2,
  .dhv-collab-hero h2 {
    font-size:clamp(27px,8vw,33px) !important;
  }
}
