/* Keep explanatory copy on the heading's text axis, not its number axis.
   Only reading blocks are inset: photos, cards, tables and side-by-side
   editorial spreads retain their own layouts. */
.guide-section { --reading-inset: 58px; }
.source-guide .guide-section { --reading-inset: 48px; }
.nbox-guide .guide-section { --reading-inset: 50px; }
.product-feature { --chapter-reading-inset: 113px; }

html body.magazine:not(.camp-journal, .guide-selection) .guide-section:has(> .guide-heading) > :is(
  p, .brand-introduction, .brand-essay, .directory-copy,
  .guide-purchase-note, .vintage-copy, .retro-copy, .hustler-copy
),
html body.magazine .guide-section > .canbus-reading,
html body.magazine .guide-section > .material-block:not(:has(> h3)) > .source-copy,
html body.magazine .guide-section > .material-intro > .material-block > .source-copy {
  margin-inline: var(--reading-inset) 0;
}

/* Numbered product chapters also have a rule and padding before the title. */
html body.magazine :is(.product-section, .article-dark-inner):has(> .article-chapter-heading, > .feature-scene-visual > .article-chapter-heading) > :is(
  .article-copy-block, .article-color-copy, .product-install-intro, .product-install-summary
) {
  margin-inline: var(--chapter-reading-inset) 0;
}
html body.magazine .feature-opening > .article-copy-block {
  margin-inline: 0;
}

/* Unnumbered vehicle stories: remove the independent centered text column. */
html body.magazine .story-section:has(> .story-section-heading) > .story-copy {
  margin-inline: var(--story-reading-inset, 0px) 0;
}
.story-engineering { --story-reading-inset: 48px; }
.heritage-dark-heading { --story-reading-inset: 40px; }

/* Event reports have full-width headings and narrower reading paragraphs. */
html body.magazine .event-approved-damd > :is(p, h3),
html body.magazine .event-snap-story > p:not(.photo-caption) {
  margin-inline: 0;
}

@media (max-width: 1100px) {
  /* Once photo/copy spreads stack, their copy returns to the heading axis. */
  html body.magazine .heritage-spread > .story-copy {
    margin-inline: 0;
  }
}

@media (max-width: 1080px) {
  html body.magazine .feature-editorial-spread > .article-copy-block,
  html body.magazine .product-lineup-grid > .product-spec-copy {
    margin-inline: var(--chapter-reading-inset) 0;
  }
}

@media (max-width: 760px) {
  .guide-section { --reading-inset: 38px; }
  .source-guide .guide-section,
  .guide-directory .guide-section,
  .nbox-guide .guide-section { --reading-inset: 36px; }
  .product-feature { --chapter-reading-inset: 0px; }
  .story-engineering { --story-reading-inset: 0px; }
  .heritage-dark-heading { --story-reading-inset: 24px; }

  html body.magazine .product-design-spread > .product-design-copy {
    margin-inline: var(--chapter-reading-inset) 0;
  }
  html body.magazine .brand-craft-spread > p {
    margin-inline: var(--reading-inset) 0;
  }

  /* Split lead paragraphs must occupy successive rows, never implicit
     columns beside one another after the introduction photo. */
  html body.magazine .article-intro-split .article-lead > * {
    grid-column: 1;
  }
  html body.magazine .article-intro-split .article-lead-copy {
    grid-row: auto;
    order: 4;
  }
  html body.magazine .article-intro-split .product-intro-description {
    grid-row: auto;
    order: 5;
  }
}
