/* =========================================================================
 * Article tables: wide layout and wrapping headers (October 2026)
 * Overrides article-tables.css, which the CDN edge-caches by path.
 *
 * - Column headers wrap inside their column instead of forcing the table
 *   wider than the text column (6-column tables were mostly off-screen).
 * - On desktop the table breaks out of the 720px text column, centred on it,
 *   up to 1040px or the viewport minus a 2rem gutter on each side.
 * ========================================================================= */

.article-content .article-table thead th {
  white-space: normal;
  vertical-align: bottom;
  letter-spacing: 0.1em;
  line-height: 1.45;
  min-width: 6.5rem;
}

.article-content .article-table thead th:first-child {
  min-width: 0;
}

@media (min-width: 901px) {
  .article-content .article-table-wrap {
    position: relative;
    left: 50%;
    width: min(1040px, calc(100vw - 4rem));
    transform: translateX(-50%);
  }

  .article-content .article-table {
    min-width: 0;
  }
}

@media print {
  .article-content .article-table-wrap {
    left: auto;
    width: auto;
    transform: none;
  }
}
