/* MMM table census fix v1.0.0 (2026-11-18)
   Class-wide fix for content tables that had NO table CSS and rendered as
   squeezed native tables on phones (columns crushed toward min-content,
   wide tables pushing the page sideways):
   - hub pages (healthcare, housing, safety): tables in .mmm-hero-intro and
     .mmm-tablewrap carried no rules at all.
   - dataset pages (consulates, /compare/*): .mmm-data-body had no table rules.
   - tools index: its .tk-tablewrap sits outside .mmm-tool-body, so the tool
     table rules never applied.
   - ten default-template pages (IDs listed below): entry-content tables had
     no rules in the child theme or in twentytwentyfive.
   Grammar mirrors the site's own designed content-table system
   (.mmm-post-body table, style.css s.102): the table is its own phone
   scroller, cells keep minimum widths, headers keep the mono/sand/ink
   treatment. No word-break tricks: nothing breaks mid-word, the page never
   scrolls sideways, wide tables scroll inside their own box.
   Rollback: delete this file and mu-plugins/mmm-table-census-fix.php, purge. */

body.page-template-templateshub-php .mmm-wrap table,
.mmm-data-body table,
.mmm-index-body table,
body.page-id-3007 .entry-content table,
body.page-id-3008 .entry-content table,
body.page-id-3029 .entry-content table,
body.page-id-3030 .entry-content table,
body.page-id-4750 .entry-content table,
body.page-id-4841 .entry-content table,
body.page-id-4842 .entry-content table,
body.page-id-4843 .entry-content table,
body.page-id-4873 .entry-content table,
body.page-id-4874 .entry-content table {
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-collapse: collapse; width: 100%; margin: 24px 0;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-img); font-size: 15px; line-height: 1.55; color: var(--ink-text);
}
body.page-template-templateshub-php .mmm-wrap th,
.mmm-data-body th,
.mmm-index-body th,
body.page-id-3007 .entry-content th,
body.page-id-3008 .entry-content th,
body.page-id-3029 .entry-content th,
body.page-id-3030 .entry-content th,
body.page-id-4750 .entry-content th,
body.page-id-4841 .entry-content th,
body.page-id-4842 .entry-content th,
body.page-id-4843 .entry-content th,
body.page-id-4873 .entry-content th,
body.page-id-4874 .entry-content th {
  font: 600 11px "IBM Plex Mono", monospace; letter-spacing: .14em;
  text-transform: uppercase; color: #07382A; text-align: left; white-space: nowrap;
  padding: 13px 16px; border-bottom: 3px solid var(--ink); background: var(--sand);
}
body.page-template-templateshub-php .mmm-wrap td,
.mmm-data-body td,
.mmm-index-body td,
body.page-id-3007 .entry-content td,
body.page-id-3008 .entry-content td,
body.page-id-3029 .entry-content td,
body.page-id-3030 .entry-content td,
body.page-id-4750 .entry-content td,
body.page-id-4841 .entry-content td,
body.page-id-4842 .entry-content td,
body.page-id-4843 .entry-content td,
body.page-id-4873 .entry-content td,
body.page-id-4874 .entry-content td {
  padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top;
}
body.page-template-templateshub-php .mmm-wrap th,
body.page-template-templateshub-php .mmm-wrap td,
.mmm-data-body th, .mmm-data-body td,
.mmm-index-body th, .mmm-index-body td,
body.page-id-3007 .entry-content th, body.page-id-3007 .entry-content td,
body.page-id-3008 .entry-content th, body.page-id-3008 .entry-content td,
body.page-id-3029 .entry-content th, body.page-id-3029 .entry-content td,
body.page-id-3030 .entry-content th, body.page-id-3030 .entry-content td,
body.page-id-4750 .entry-content th, body.page-id-4750 .entry-content td,
body.page-id-4841 .entry-content th, body.page-id-4841 .entry-content td,
body.page-id-4842 .entry-content th, body.page-id-4842 .entry-content td,
body.page-id-4843 .entry-content th, body.page-id-4843 .entry-content td,
body.page-id-4873 .entry-content th, body.page-id-4873 .entry-content td,
body.page-id-4874 .entry-content th, body.page-id-4874 .entry-content td {
  min-width: 120px;
}
/* Tables carried in a Gutenberg figure on the scoped default-template pages
   scroll by the figure instead, mirroring the post-body figure treatment. */
body.page-id-3007 .entry-content figure.wp-block-table,
body.page-id-3008 .entry-content figure.wp-block-table,
body.page-id-3029 .entry-content figure.wp-block-table,
body.page-id-3030 .entry-content figure.wp-block-table,
body.page-id-4750 .entry-content figure.wp-block-table,
body.page-id-4841 .entry-content figure.wp-block-table,
body.page-id-4842 .entry-content figure.wp-block-table,
body.page-id-4843 .entry-content figure.wp-block-table,
body.page-id-4873 .entry-content figure.wp-block-table,
body.page-id-4874 .entry-content figure.wp-block-table {
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0; max-width: 100%;
}
body.page-id-3007 .entry-content figure.wp-block-table table,
body.page-id-3008 .entry-content figure.wp-block-table table,
body.page-id-3029 .entry-content figure.wp-block-table table,
body.page-id-3030 .entry-content figure.wp-block-table table,
body.page-id-4750 .entry-content figure.wp-block-table table,
body.page-id-4841 .entry-content figure.wp-block-table table,
body.page-id-4842 .entry-content figure.wp-block-table table,
body.page-id-4843 .entry-content figure.wp-block-table table,
body.page-id-4873 .entry-content figure.wp-block-table table,
body.page-id-4874 .entry-content figure.wp-block-table table {
  display: table; margin: 0; border: 0; border-radius: 0; box-shadow: none; min-width: 560px;
}
@media (max-width: 640px) {
  body.page-template-templateshub-php .mmm-wrap table,
  .mmm-data-body table,
  .mmm-index-body table,
  body.page-id-3007 .entry-content table,
  body.page-id-3008 .entry-content table,
  body.page-id-3029 .entry-content table,
  body.page-id-3030 .entry-content table,
  body.page-id-4750 .entry-content table,
  body.page-id-4841 .entry-content table,
  body.page-id-4842 .entry-content table,
  body.page-id-4843 .entry-content table,
  body.page-id-4873 .entry-content table,
  body.page-id-4874 .entry-content table { font-size: 14.5px; }
  body.page-template-templateshub-php .mmm-wrap th,
  body.page-template-templateshub-php .mmm-wrap td,
  .mmm-data-body th, .mmm-data-body td,
  .mmm-index-body th, .mmm-index-body td,
  body.page-id-3007 .entry-content th, body.page-id-3007 .entry-content td,
  body.page-id-3008 .entry-content th, body.page-id-3008 .entry-content td,
  body.page-id-3029 .entry-content th, body.page-id-3029 .entry-content td,
  body.page-id-3030 .entry-content th, body.page-id-3030 .entry-content td,
  body.page-id-4750 .entry-content th, body.page-id-4750 .entry-content td,
  body.page-id-4841 .entry-content th, body.page-id-4841 .entry-content td,
  body.page-id-4842 .entry-content th, body.page-id-4842 .entry-content td,
  body.page-id-4843 .entry-content th, body.page-id-4843 .entry-content td,
  body.page-id-4873 .entry-content th, body.page-id-4873 .entry-content td,
  body.page-id-4874 .entry-content th, body.page-id-4874 .entry-content td {
    min-width: 104px;
  }
  body.page-template-templateshub-php .mmm-wrap th,
  .mmm-data-body th,
  .mmm-index-body th,
  body.page-id-3007 .entry-content th,
  body.page-id-3008 .entry-content th,
  body.page-id-3029 .entry-content th,
  body.page-id-3030 .entry-content th,
  body.page-id-4750 .entry-content th,
  body.page-id-4841 .entry-content th,
  body.page-id-4842 .entry-content th,
  body.page-id-4843 .entry-content th,
  body.page-id-4873 .entry-content th,
  body.page-id-4874 .entry-content th { padding: 11px 12px; }
  body.page-template-templateshub-php .mmm-wrap td,
  .mmm-data-body td,
  .mmm-index-body td,
  body.page-id-3007 .entry-content td,
  body.page-id-3008 .entry-content td,
  body.page-id-3029 .entry-content td,
  body.page-id-3030 .entry-content td,
  body.page-id-4750 .entry-content td,
  body.page-id-4841 .entry-content td,
  body.page-id-4842 .entry-content td,
  body.page-id-4843 .entry-content td,
  body.page-id-4873 .entry-content td,
  body.page-id-4874 .entry-content td { padding: 10px 12px; }
  body.page-id-3007 .entry-content figure.wp-block-table table,
  body.page-id-3008 .entry-content figure.wp-block-table table,
  body.page-id-3029 .entry-content figure.wp-block-table table,
  body.page-id-3030 .entry-content figure.wp-block-table table,
  body.page-id-4750 .entry-content figure.wp-block-table table,
  body.page-id-4841 .entry-content figure.wp-block-table table,
  body.page-id-4842 .entry-content figure.wp-block-table table,
  body.page-id-4843 .entry-content figure.wp-block-table table,
  body.page-id-4873 .entry-content figure.wp-block-table table,
  body.page-id-4874 .entry-content figure.wp-block-table table { min-width: 520px; }
}
