/* Independent preview only. Load after the page's existing stylesheets.
   Retain font families, sizes and colors; balance only restored long headlines.
   Target text explicitly so logo artwork, SVG paths and icon glyphs stay intact. */

body {
  font-weight: 400 !important;
}

/* Reading copy, navigation, controls, captions and ordinary emphasis.
   !important intentionally overrides the older 600–900 weight declarations,
   including the more specific course/archive/detail selectors. */
body :is(
  p, li, dt, dd, figcaption, label, legend, input, textarea, select, option,
  button, a, small, em, strong, b, summary, th, td
),
body :is(
  .eyebrow, .step-index, .reading-brand, .can, .text-link,
  .portal-label, .portal-label-on, .core-caption
),
body .brand-hero-art > span,
body .course-photo-pending > span {
  font-weight: 400 !important;
}

/* All semantic headings: section openings, reading pages, course archives,
   course stories, process steps, FAQ headings and dynamically opened dialogs. */
body :is(h1, h2, h3, h4, h5, h6, [role="heading"]),
body :is(.brand-hero-lead, .project-question, .question-text),
body :is(.faq, .type-more) > summary,
body .faq details > summary,
body .stage-more > summary > span:first-child,
body .category-meta strong,
body .case-caption strong,
body .home-doors strong,
body .belief-cta strong,
body .river-stop strong,
body .socials strong {
  font-weight: 300 !important;
}

/* A linked or emphasized phrase inside a heading remains as light as its
   heading, instead of picking up the regular-weight text rule above. */
body :is(h1, h2, h3, h4, h5, h6, [role="heading"])
  :is(a, button, span, strong, b, em, small, mark),
body :is(.brand-hero-lead, .project-question)
  :is(a, span, strong, b, em, small, mark) {
  font-weight: inherit !important;
}

/* Prevent a restored long headline leaving a single character on its own. */
.visual-redesign :is(.brand-hero-about, .brand-hero-plus) h1 {
  text-wrap: balance;
}
.visual-redesign .brand-hero h1 .title-phrase {
  display: inline-block;
}

/* No rule targets *, SVG text/paths, images, pseudo-elements or icon spans.
   Existing light +/arrow controls keep their own explicit 200/300/400 weights. */
