/* Sixth line: inherits the site's palette, typography and article layout. */
.article-sixth-page .article-hero-image {
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--paper);
}
.article-sixth-page .article-hero-image img {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630;
  object-fit: contain; background: var(--ink-deep);
}
.sixth-stages { margin: 3rem 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--accent-dark); }
.sixth-stages figcaption { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; color: var(--ink); }
.sixth-stages ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 2rem 0 1.5rem; list-style: none; }
.sixth-stages li { position: relative; display: flex; flex-direction: column; padding: 0 1rem 0 0; font-size: .93rem; line-height: 1.5; }
.sixth-stages li::before { content: ''; position: absolute; top: 1rem; left: 1rem; right: -1rem; height: 1px; background: var(--accent-dark); }
.sixth-stages li:last-child::before { display: none; }
.sixth-stage-number { position: relative; display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 1.2rem; border: 1px solid var(--accent-dark); border-radius: 50%; background: var(--paper); color: var(--accent-dark); font-size: .65rem; }
.sixth-stages li:nth-child(2) .sixth-stage-number { background: var(--accent-dark); color: var(--paper); }
.sixth-stages strong { display: block; margin-bottom: .35rem; color: var(--ink); font-size: 1.1rem; font-weight: 600; }
.article-body .sixth-stages-note { margin: 0; padding-top: 1rem; border-top: 1px solid rgba(17,21,27,.18); font-size: .8rem; line-height: 1.5; color: #50555e; }
.sixth-profiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 2rem 0; padding: 0; }
.article-body .sixth-profiles li { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; border: 1px solid rgba(17,21,27,.18); font-size: 1rem; line-height: 1.4; }
.sixth-profile-number { color: var(--accent-dark); font-family: var(--serif); font-size: 3rem; line-height: 1; letter-spacing: -.035em; }
@media (max-width: 600px) {
  .sixth-stages ol { grid-template-columns: 1fr; gap: 0; }
  .sixth-stages li { min-height: 7rem; padding: 0 0 1.75rem 3.25rem; }
  .sixth-stage-number { position: absolute; top: 0; left: 0; }
  .sixth-stages li::before { top: 1rem; bottom: -1rem; left: 1rem; right: auto; width: 1px; height: auto; }
  .sixth-stages li:last-child { min-height: auto; padding-bottom: 0; }
  .sixth-profiles { gap: .6rem; }
  .article-body .sixth-profiles li { padding: 1rem; font-size: .9rem; }
}
@media (max-width: 359px) { .sixth-profiles { grid-template-columns: 1fr; } }
/* Keep the long supplied title balanced with the illustration. */
.article-sixth-page .article-hero { padding-top: clamp(8rem, 10vw, 9rem); padding-bottom: clamp(2.5rem, 4vw, 4rem); }
.article-sixth-page .article-hero h1 { font-size: clamp(2.9rem, 5.5vw, 5.8rem); }
.article-sixth-page .footer-links { flex-wrap: wrap; }
.article-sixth-page .site-footer > * { min-width: 0; }
@media (max-width: 767px) {
  .article-sixth-page .article-hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.8rem); }
}

/* Let the painted scene breathe on small screens; retain its focal figure. */
.article-sixth-page .article-hero-image picture { display: block; }
@media (max-width: 767px) {
  .article-sixth-page .article-hero-image img {
    aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: 43% 50%;
  }
}
