/* Preserve the approved layout when its content is edited as native blocks. */
body .forge-home-content > *, body .forge-hero-copy > *,
body .forge-hero-art > *, body .forge-topics > *, body .forge-topic > *,
body .forge-contact-card > *, body .forge-contact-aside > *,
body .forge-section-heading > *, body .forge-cta > * { margin-block-start: 0; }
body .forge-hero-art .wp-block-image { margin: 0; }
body .forge-fantasy-art img { border-radius: 8px; }
body .forge-fantasy-art .forge-art-caption { margin-top: 14px; padding: 0; flex-wrap: wrap; gap: 6px 15px; }
body .forge-topic .forge-topic-number { color: #8d9790; margin: 0; }
body .forge-topic .forge-topic-icon { color: var(--forge-accent); margin-top: 0; margin-bottom: 35px; line-height: 1; }
body .forge-secondary .wp-block-button__link { background: transparent; border-color: transparent; color: var(--forge-ink); padding-inline: 0; }
body .forge-secondary .wp-block-button__link:hover { color: var(--forge-accent); background: transparent; }
body .forge-cta .wp-block-button { flex-shrink: 0; }
body .forge-home-content .forge-shell { margin-inline: auto; }
body .forge-hero-copy > p:not(.forge-eyebrow) { margin-bottom: 32px; }
body .forge-hero-copy .forge-eyebrow { margin-bottom: 24px; }
body .forge-contact-card .forge-contact-note { margin-top: 25px; }
body .forge-contact-card > p { margin-bottom: 20px; }
body .forge-section-heading .forge-eyebrow { margin-bottom: 12px; }
body .forge-contact-aside .forge-eyebrow { margin-bottom: 9px; }
/* Match the article's text column without cropping or affecting list thumbnails. */
body .forge-article-image { width: 100%; max-width: 760px; margin-inline: auto; }
body .forge-article-image img { display: block; width: 100%; height: auto; }
body .forge-prose > .forge-model-link { max-width: 760px; margin: 28px auto; }
body .forge-model-link .forge-button { color: var(--forge-bg); max-width: 100%; }
/* Only rows with a featured image gain a thumbnail column. */
body .forge-post-row:has(> .forge-project-thumbnail) {
  grid-template-columns: 112px 130px minmax(0, 1fr) 30px;
  gap: 24px;
}
body .forge-post-row > .forge-project-thumbnail { margin: 0; width: 112px; }
body .forge-project-thumbnail a {
  display: block;
  border: 1px solid var(--forge-line);
  border-radius: 5px;
}
body .forge-project-thumbnail a:hover { border-color: var(--forge-accent); }
body .forge-project-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
@media (min-width: 701px) and (max-width: 1000px) {
  body .forge-post-row:has(> .forge-project-thumbnail) {
    grid-template-columns: 96px 100px minmax(0, 1fr) 25px;
    gap: 18px;
  }
  body .forge-post-row > .forge-project-thumbnail { width: 96px; }
}
@media (max-width: 700px) {
  body .forge-topic .forge-topic-icon { margin-bottom: 22px; }
  body .forge-post-row:has(> .forge-project-thumbnail) {
    grid-template-columns: 84px minmax(0, 1fr) 25px;
    gap: 16px;
  }
  body .forge-post-row > .forge-project-thumbnail { width: 84px; grid-column: 1; grid-row: 1; }
  body .forge-post-row:has(> .forge-project-thumbnail) > .forge-post-meta {
    grid-column: 2 / -1;
    grid-row: 1;
    display: block;
    margin: 0;
  }
  body .forge-post-row:has(> .forge-project-thumbnail) > .forge-post-body { grid-column: 1 / 3; grid-row: 2; }
  body .forge-post-row:has(> .forge-project-thumbnail) > .forge-post-arrow { grid-column: 3; grid-row: 2; }
}
