/* TCG CMS article layout patch 2026-09-08b */
.cms-article-body{max-width:980px;margin:0 auto;padding:72px 24px;}
.cms-article-body>p{max-width:820px;}
.cms-featured{margin:28px 0 0;max-width:980px}.cms-featured img{display:block;width:100%;max-height:560px;object-fit:cover;border-radius:8px;border:1px solid var(--line,#ddd8ce)}.cms-article-body>p{max-width:820px}.cms-article-body blockquote{margin:28px 0;padding:18px 22px;border-left:4px solid var(--gold,#d3ad67);background:#f6f2e9;font-family:Georgia,serif;font-size:1.08rem;line-height:1.65}.cms-article-body code{background:#f0eee8;padding:2px 5px;border-radius:4px}.cms-article-body hr{border:0;border-top:1px solid #ddd8ce;margin:34px 0}.listing-grid a h2{overflow-wrap:anywhere}@media(max-width:720px){.cms-featured{margin-top:20px}.cms-featured img{max-height:360px}}

/* =========================================================
   TCG — Article heading spacing fix — 2026-10-12
   The base stylesheet sets .article-body h2 margin-top to 0.
   These more specific rules restore editorial breathing room
   for CMS articles without changing service/static pages.
   ========================================================= */
.article-body.cms-article-body > h2 {
  margin: 64px 0 26px !important;
}
.article-body.cms-article-body > h3 {
  margin: 42px 0 20px !important;
}
@media (max-width: 720px) {
  .article-body.cms-article-body > h2 {
    margin: 42px 0 20px !important;
  }
  .article-body.cms-article-body > h3 {
    margin: 30px 0 16px !important;
  }
}


/* =========================================================
   TCG — Mobile article heading spacing hard fix — 2026-10-12
   Uses padding so spacing cannot collapse or be cancelled by
   mobile rules loaded later in the base stylesheet.
   ========================================================= */
@media (max-width: 720px) {
  .article-body.cms-article-body > h2:not(:first-child) {
    margin-top: 0 !important;
    padding-top: 42px !important;
    margin-bottom: 20px !important;
  }

  .article-body.cms-article-body > h3:not(:first-child) {
    margin-top: 0 !important;
    padding-top: 30px !important;
    margin-bottom: 16px !important;
  }
}

/* =========================================================
   TCG — Responsive article tables — 2026-10-12
   Keep editorial tables inside the mobile viewport and avoid
   horizontal left/right scrolling. Long labels wrap naturally.
   ========================================================= */
.article-body.cms-article-body table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}
.article-body.cms-article-body table th,
.article-body.cms-article-body table td {
  min-width: 0 !important;
  max-width: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  vertical-align: top;
}

@media (max-width: 720px) {
  .article-body.cms-article-body {
    overflow-x: hidden;
  }
  .article-body.cms-article-body table {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .article-body.cms-article-body table th,
  .article-body.cms-article-body table td {
    padding: 12px 10px !important;
    font-size: 0.92rem;
    line-height: 1.45;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word;
  }
}
