/* The reading columns keep their 2:1 relationship, then center their actual measures within it. */
@media (min-width: 901px) {
  .article-shell {
    --article-main-measure: 75ch;
    --article-aside-measure: 24rem;
    --article-column-gap: clamp(2.75rem, 5.5vw, 6.5rem);
    width: min(1680px, calc(100% - 5rem));
  }
  .article-sheet {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    column-gap: var(--article-column-gap);
  }
  .article-content,
  .article-foot {
    justify-self: center;
    width: min(var(--article-main-measure), 100%);
  }
  .article-outline:not([hidden]) {
    justify-self: center;
    width: min(var(--article-aside-measure), 100%);
  }
}

/* No outline (short article): collapse to a single centered column so the
   aside rail never sits empty beside the reading track. */
.article-shell:has(.article-outline[hidden]) {
  width: min(980px, calc(100% - 2.5rem));
}
.article-shell:has(.article-outline[hidden]) .article-sheet {
  grid-template-columns: minmax(0, 1fr);
}
.article-shell:has(.article-outline[hidden]) .article-content,
.article-shell:has(.article-outline[hidden]) .article-foot {
  grid-column: 1;
  justify-self: center;
}
