/* Phase 7B — flagship article hero heading refinement
   Fixes long launch insight titles being forced into narrow, word-stacked columns. */

.article-page--editorial .article-hero--editorial {
  padding-top: clamp(3.6rem, 6vw, 5.6rem);
  padding-bottom: clamp(3.2rem, 5.4vw, 5rem);
}

.article-page--editorial .article-hero__inner--editorial.shell--wide {
  max-width: min(calc(100% - 2rem), 1180px);
}

.article-page--editorial .article-hero__layout {
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem);
  gap: clamp(2rem, 4vw, 4.2rem);
  align-items: center;
}

.article-page--editorial .article-hero__main {
  max-width: 48rem;
}

.article-page--editorial .article-hero__main h1,
.article-page--editorial .article-hero--editorial h1 {
  max-width: 16ch;
  font-size: clamp(2.65rem, 4.25vw, 4.65rem);
  line-height: 1.04;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.article-page--editorial .article-hero__excerpt {
  max-width: 42rem;
  margin-top: clamp(1.1rem, 2vw, 1.45rem);
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.62;
}

.article-page--editorial .article-hero__aside--flagship {
  align-self: center;
}

@media (max-width: 1100px) {
  .article-page--editorial .article-hero__layout {
    grid-template-columns: 1fr;
    gap: clamp(1.8rem, 4vw, 3rem);
  }

  .article-page--editorial .article-hero__main,
  .article-page--editorial .article-hero__aside--flagship {
    max-width: 46rem;
  }

  .article-page--editorial .article-hero__main h1,
  .article-page--editorial .article-hero--editorial h1 {
    max-width: 15.5ch;
  }
}

@media (max-width: 640px) {
  .article-page--editorial .article-hero--editorial {
    padding-top: clamp(2.7rem, 11vw, 3.6rem);
    padding-bottom: clamp(2.5rem, 10vw, 3.4rem);
  }

  .article-page--editorial .article-hero__main h1,
  .article-page--editorial .article-hero--editorial h1 {
    max-width: 13.5ch;
    font-size: clamp(2.2rem, 10.4vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
  }
}

/* Phase 8p — Article page: hero and visual aids fixes */

/* ── Hero h1 — remove 15ch constraint, allow full column width ── */
.article-hero--editorial h1 {
  max-width: 100% !important;
  font-size: clamp(2rem, 4.5vw, 3.8rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
}

/* ── Hero layout — give main column more room ── */
.article-hero__layout {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 18rem) !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  align-items: start !important;
}

/* ── Hero visual (SVG) — show and constrain within aside ── */
.article-hero__visual {
  display: block !important;
  margin: 0 0 1rem !important;
}

.article-hero__visual img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 0.5rem !important;
}

/* ── Inline supporting visuals ── */
.td-insight-visual--inline {
  margin: clamp(2rem, 4vw, 3rem) 0 !important;
  padding: clamp(0.75rem, 1.5vw, 1rem) !important;
  border: 1px solid rgba(11,37,69,0.10) !important;
  border-radius: 0.5rem !important;
  background: var(--telstar-surface-low, #F4F6F8) !important;
  box-shadow: 0 1px 3px rgba(11,37,69,0.07) !important;
}

.td-insight-visual--inline img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 0.25rem !important;
}

.td-insight-visual--inline figcaption {
  margin: 0.65rem 0.25rem 0.15rem !important;
  color: var(--telstar-slate, #5C6B73) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

/* ── Article section heading ── */
.article-section-heading {
  margin-bottom: 1.5rem !important;
}

.article-section-heading h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem) !important;
  margin: 0.35rem 0 0.5rem !important;
}
