/* Chapter section headers follow Money's plain heading and introduction.
   Sizes are ramp steps: the statement's clamp ends at 7xl (76px) and the
   support is set at the 17px body step at every width, since 18px and 16px
   were the two off-ramp values left in the shared header until 1 October.
   Section names remain in the archive rail; no duplicate capsule or sticky
   section label precedes the heading. Complete headings need no JavaScript.
   Visual authority: Final 2.1, extended by the current Money chapter. */

.mhc-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 90px);
  align-items: end;
  margin: 0 0 66px;
  padding: 0;
  border: 0;
  background: transparent;
}

.mhc-section-statement {
  max-width: 13ch;
  min-width: 0;
  margin: 0;
  color: var(--mhc-ink);
  font: 400 clamp(34px, 5.4vw, 76px)/1.04 var(--sans, Helvetica, "Helvetica Neue", Arial, sans-serif);
  letter-spacing: -.04em;
  text-wrap: balance;
}

.mhc-section-statement em {
  color: var(--mhc-section-field-ink, var(--mhc-accent-ink));
  font-style: normal;
}

.mhc-section-support {
  max-width: 48ch;
  min-width: 0;
  margin: 0;
  color: var(--mhc-ink-3);
  font-size: var(--mhc-type-xl, 17px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Scope notes and return controls belong beneath the introduction. */
.mhc-section-aside {
  grid-column: 2;
  justify-self: start;
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--mhc-hairline-strong);
  color: var(--mhc-ink-3);
  font: 500 var(--mhc-type-2xs, 10px)/1.45 var(--mono, "Geist Mono", ui-monospace, monospace);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: transparent;
}

button.mhc-section-aside {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--mhc-hairline-strong);
  border-radius: 999px;
  color: var(--mhc-ink);
  cursor: pointer;
  transition: background .18s ease-out, color .18s ease-out, border-color .18s ease-out;
}

button.mhc-section-aside:hover,
button.mhc-section-aside:focus-visible {
  border-color: var(--mhc-ink);
  background: var(--mhc-ink);
  color: var(--mhc-ground);
  outline-color: var(--mhc-ink);
}

.mhc-section-head:not(:has(> .mhc-section-support)) {
  grid-template-columns: minmax(0, 1fr);
}

.mhc-section-head:not(:has(> .mhc-section-support)) .mhc-section-statement {
  max-width: 20ch;
}

@media (max-width: 760px) {
  .mhc-section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    margin-bottom: 44px;
  }
  .mhc-section-statement,
  .mhc-section-head:not(:has(> .mhc-section-support)) .mhc-section-statement {
    max-width: 100%;
  }
  .mhc-section-support { max-width: 54ch; }
  .mhc-section-aside { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  button.mhc-section-aside { transition: none; }
}
