/* Shared by the two current guide pages. Keep the hero and dark scenes separate. */
.source-article {
  --article-title-size: 36px;
  --article-body-size: 17px;
  --article-leading: 28px;
}

.source-article h2 {
  font-size: var(--article-title-size);
  line-height: 1.23;
}

.source-article :is(.source-copy, .work-outputs dd) {
  font-size: var(--article-body-size);
  line-height: var(--article-leading);
}

.source-article .source-copy h2 {
  margin-bottom: 18px;
}

.source-article .source-copy p + p {
  margin-top: 13px;
}

/* A shared text row supplies first baselines even when the title wraps. */
#changing-the-record .source-editorial {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "title ." "copy example" "scope scope";
  row-gap: 18px;
}

#change-title { grid-area: title; }
#changing-the-record .source-editorial > .source-copy { grid-area: copy; }
#changing-the-record .scope-note { grid-area: scope; }

#changing-the-record .source-editorial > :is(.source-copy, .change-sample) {
  align-self: first baseline;
}

#changing-the-record .change-sample {
  grid-area: example;
  padding: 0;
  border: 0;
  background: transparent;
}

#changing-the-record .change-sample :is(figcaption, dl, dl > div, dt, dd, p) {
  background: transparent;
}

#changing-the-record .change-sample figcaption {
  padding-bottom: 8px;
  font-size: 15px;
  line-height: var(--article-leading);
}

#changing-the-record .change-sample dl > div {
  padding: 10px 0;
  border-top: 1px solid var(--note-rule);
}

#changing-the-record .change-sample dd {
  font-size: var(--article-body-size);
  line-height: 1.5;
}

#changing-the-record .change-sample > p {
  padding-top: 9px;
  line-height: 1.6;
}

@media (max-width: 740px) {
  .source-article {
    --article-title-size: 26px;
    --article-body-size: 16px;
    --article-leading: 26px;
  }

  .source-article .source-copy h2 { margin-bottom: 14px; }

  #changing-the-record .source-editorial {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "copy" "example" "scope";
    row-gap: 16px;
  }

  #changing-the-record .source-editorial > :is(.source-copy, .change-sample) {
    align-self: start;
  }

  #changing-the-record .change-sample { margin-top: 4px; }
}


.case-question {
  max-inline-size: 26em;
  margin-top: 16px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
.comparison-jump {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-block-size: 44px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 620;
  color: var(--ink);
}
.agent-examples a:is(:hover, :focus-visible),
.comparison-jump:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .18em; }
.agent-examples dt a { display: inline-flex; gap: .4em; align-items: baseline; }
.agent-examples dt span { color: var(--muted); font-size: .75em; }
#agents-and-memory + .source-article { padding-top: 0; }

/* Keep the related comparison and reread examples on their section surface. */
.source-article .work-outputs dt { font-size: 16.667px; }
.source-article .work-outputs dd { font-size: max(15px, calc(var(--article-body-size) - 1.333px)); }
#changing-the-record .change-sample dd { font-size: 16.667px; }
#fit .comparison h2 { font-size: calc(clamp(24px, 2.3vw, 32px) - 1.333px); }
#fit .comparison dl { gap: 0; }
#fit .comparison dl > div { padding-block: 10px; border-block-start: 1px solid var(--rule); }
#fit .comparison dd { font-size: max(15px, 0.94em); }
#reread .reread-card {
  border-radius: 0;
  border-block-start: 1px solid #525550;
  background: none;
  box-shadow: none;
}
#reread .reread-card::before { content: none; }
#reread .reread-copy h3 { font-size: 15.667px; }
