/*
 * Shared roles from output/preview/local-typography.css.
 * Loaded after refinement and hero assets on managed pages only. Sizes remain
 * unchanged except service hero H1s aligned with the approved homepage scale.
 * Layout rules, SVG/logo artwork and the separately mounted consent UI remain.
 * Headline leading and emphasis follow the approved homepage's type roles.
 */
body.adsfine-managed-type .af-site.af-refined {
  --af-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.adsfine-managed-type .af-site.af-refined,
body.adsfine-managed-type .af-site.af-refined :where(*):not(:where(svg, svg *, .af-logo, .af-logo *, [data-af-privacy-root], [data-af-privacy-root] *)) {
  font-family: var(--af-font);
  font-weight: 400;
  letter-spacing: normal;
}

body.adsfine-managed-type .af-site.af-refined :is(h1, h2, h3, h4, h5, h6, legend) {
  font-weight: 700;
  letter-spacing: -.01em;
}

body.adsfine-managed-type .af-site.af-refined :is(h1, h2) {
  line-height: 1.1;
}

body.adsfine-managed-type .af-site.af-refined :is(h1, h2, h3, h4, h5, h6) em {
  font-style: normal;
  line-height: inherit;
}

body.adsfine-managed-type .af-site.af-refined :is(
  button, summary, strong, b, label, dt,
  .af-button, .af-nav a, .af-service-row-scope > a,
  .af-story-text-link, .af-story-read, .af-path-next > a,
  .af-service-row-label, .af-target-dot, .af-result-ring span,
  .af-brief-dock-action, [data-af-brief-title]
) {
  font-weight: 600;
}

body.adsfine-managed-type .af-site.af-refined :is(h1, h2, h3, h4, h5, h6, legend) :where(*):not(:where(svg, svg *)) {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

body.adsfine-managed-type .af-site.af-refined :is(.af-overline, .af-banner-eyebrow, .af-story-graphic-caption) {
  font-weight: 600;
  letter-spacing: .1em;
}

body.adsfine-managed-type .af-site.af-refined :is(.af-choice-disc, .af-ads-name) {
  font-weight: 700;
  letter-spacing: normal;
}

body.adsfine-managed-type .af-site.af-refined .af-target-title {
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.35;
}

body.adsfine-managed-type .af-site.af-refined :is(input, select, textarea) {
  font-family: var(--af-font);
  font-weight: 400;
  letter-spacing: normal;
}

body.adsfine-managed-type .af-site.af-refined :is(input[type="submit"], input[type="button"], .wpforms-submit) {
  font-weight: 600;
}

/* Match the native form structure to outrank refinement's submit weight. */
body.adsfine-managed-type .af-site.af-refined .af-wpforms-shell form.wpforms-form button.wpforms-submit[type="submit"] {
  font-weight: 600;
}

body.adsfine-managed-type .af-site.af-refined .af-detail-hero h1 {
  font-size: clamp(46px, 4.8vw, 68px);
}

@media (max-width: 720px) {
  body.adsfine-managed-type .af-site.af-refined .af-detail-hero h1 {
    font-size: clamp(39px, 9.8vw, 59px);
  }
}
