/* v0.7: fewer labels, wider editorial headings, simpler reform explorer.
   Existing forest and cream color tokens are deliberately unchanged. */

/* Headings take the width of their sections rather than a separate, narrow
   text column. Body copy retains its reading measure. */
#app h1, #app h2, #app h3, #app h4 { text-wrap: pretty; }
.argument-story .story-section-head {
  max-width: var(--max-app);
  width: 100%;
  margin-bottom: 28px;
}
.argument-story .story-section-head h2 {
  max-width: none;
  width: 100%;
  line-height: 1.13;
  font-size: clamp(29px, 3.3vw, 45px);
  margin-bottom: 16px;
}
.argument-story .story-section-head > p:last-child { max-width: 63ch; }
#app .page-head, #app .section-head {
  display: block;
  grid-template-columns: none;
  max-width: none;
}
#app .page-head h1, #app .section-head h2 {
  max-width: none;
  width: 100%;
  margin-bottom: 12px;
}
#app .page-head > p:not(.eyebrow), #app .section-head > p:not(.eyebrow) {
  margin: 10px 0 0;
  max-width: 60ch;
  line-height: 1.55;
}
.story-lane h3, .story-function-grid h3,
.story-capability-group h3, .story-last-grid h2,
.story-finding-grid .finding-card h3,
.story-institution-grid .institution-card h3,
.change-explorer h1, .change-explorer h2,
.change-lever-grid h4, .detail-panel h2 {
  max-width: none;
  white-space: normal;
}
.story-hero-argument h2 { max-width: none; }
.story-opening-grid .story-identity h1 { max-width: none; }
.story-finding-grid .finding-card h3 { white-space: normal; }
.story-lane h3 { max-width: none; }

/* Read the regional mechanism as a path, not a ranked three-item list. */
.story-chain-step { position: relative; }
.story-chain-step b { margin-top: 4px; }
.story-chain-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 40%;
  right: -15px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--deep);
  color: var(--deep-accent);
  font-size: 24px;
  font-weight: 400;
}

/* A text-size button for an actual action, not a status banner. */
.change-explorer .change-continue {
  display: block;
  margin-top: 20px;
  padding-top: 20px;
  text-align: center;
}
.change-explorer .change-submit {
  width: min(100%, 760px);
  min-height: 64px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  border-radius: 12px;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  padding: 16px 24px;
  white-space: normal;
}
.change-explorer .change-submit:disabled,
.change-explorer .change-submit:disabled:hover {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
  opacity: 1;
  cursor: not-allowed;
}
.change-explorer .change-result-toolbar {
  justify-content: flex-end;
  margin-bottom: 14px;
}
.change-explorer .change-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.change-explorer .change-result-head h2 {
  flex: 1 1 520px;
  max-width: none;
  margin: 0;
}
.change-results-actor {
  display: inline-flex;
  width: fit-content;
  flex: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.25;
  margin: 0;
}
.reform-ideas-eyebrow { margin: 0 0 18px; }
.change-explorer .change-evidence-head { margin-bottom: 16px; }
.change-explorer .change-evidence-head .eyebrow { margin: 0; }
.change-explorer .change-evidence { margin-top: 38px; }
.change-explorer .reform-example .episode-toggle {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 20px;
}
.reform-example-location {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
}
.reform-example .episode-toggle h4 {
  font-size: 18px;
  line-height: 1.33;
}

/* Removing explanatory padding associated with now-deleted eyebrow and caption
   elements keeps chapter interiors balanced. */
#app .change-page-head { margin-bottom: 23px; }
#app .change-page-head h1 { margin-bottom: 0; }
#app .change-step-label h2 { margin-bottom: 0; }
#app .matrix-intro { margin-bottom: 14px; }
#app .method-grid { margin-top: 0; }

@media (max-width: 940px) {
  .argument-story .story-section-head h2 { font-size: clamp(28px, 4.7vw, 38px); }
}
@media (max-width: 620px) {
  .story-chain-step:not(:last-child)::after {
    content: '↓';
    top: auto;
    bottom: -17px;
    right: 12px;
    font-size: 19px;
    width: 27px;
    height: 27px;
  }
  .change-explorer .change-submit { min-height: 61px; font-size: 16px; }
  .change-explorer .change-result-head { display: block; }
  .change-explorer .change-result-head h2 { margin-bottom: 15px; }
  .reform-example-location { font-size: 12px; }
}

/* v0.8: keep both homepage actions in one desktop row. At smaller widths
   ordinary wrapping is preferable to clipping either action. */
@media screen and (min-width: 1051px) {
  .story-hero-argument .btn-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 9px;
  }
  .story-hero-argument .btn-row > .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: clamp(11px, 1vw, 13px);
    padding: 10px clamp(8px, .85vw, 12px);
    gap: 6px;
  }
}

/* Results headings use the full card measure, not the earlier 26ch cap. */
.change-explorer .change-lever-grid .lever-main h4 {
  max-width: none;
  width: 100%;
  font-size: clamp(20px, 1.65vw, 23px);
  line-height: 1.23;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: pretty;
}

/* Ideas and case examples are peer labels, with the same quieter size. */
.change-explorer .reform-ideas-eyebrow,
.change-explorer .change-evidence-head .eyebrow {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}
