/* =========================================================================
 * Article tables (October 2026)
 * Reusable comparison-table component for post bodies:
 *
 *   <div class="article-table-wrap">
 *     <table class="article-table">
 *       <caption>…</caption>
 *       <thead><tr><th scope="col">…</th>…</tr></thead>
 *       <tbody><tr><th scope="row">…</th><td>…</td>…</tr></tbody>
 *     </table>
 *   </div>
 *
 * Kept in its own NEW file because the CDN edge-caches existing CSS paths
 * (10-year max-age, ignores ?ver). Uses the variables from shared.css.
 * ========================================================================= */

.article-content .article-table-wrap {
  margin: 2.2rem 0 2.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(201, 169, 110, 0.2);
  background: rgba(201, 169, 110, 0.03);
}

.article-content .article-table-wrap:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.article-content .article-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cream-dark);
  text-align: left;
}

.article-content .article-table caption {
  caption-side: top;
  padding: 1rem 1.2rem 0.9rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--cream);
  text-align: left;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.article-content .article-table th,
.article-content .article-table td {
  padding: 0.85rem 1.2rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
}

.article-content .article-table thead th {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 169, 110, 0.06);
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  white-space: nowrap;
}

.article-content .article-table tbody th[scope="row"] {
  width: 22%;
  font-weight: 500;
  color: var(--white);
}

.article-content .article-table tbody tr:last-child th,
.article-content .article-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-content .article-table tbody tr:nth-child(even) {
  background: rgba(253, 250, 245, 0.02);
}

.article-content .article-table td p {
  margin: 0 0 0.6rem;
}

.article-content .article-table td p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .article-content .article-table-wrap {
    margin-left: 0;
    margin-right: 0;
  }

  .article-content .article-table {
    font-size: 0.85rem;
  }

  .article-content .article-table th,
  .article-content .article-table td {
    padding: 0.75rem 0.9rem;
  }

  .article-content .article-table caption {
    padding: 0.9rem 0.9rem 0.8rem;
    font-size: 1rem;
  }
}

@media print {
  .article-content .article-table-wrap {
    overflow: visible;
    border-color: #999;
    background: none;
  }

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

  .article-content .article-table thead th,
  .article-content .article-table tbody th[scope="row"],
  .article-content .article-table caption {
    color: #000;
  }
}
