/* Content tables — shared by the public article page and the TinyMCE editor.
   Class-based only (no #newsArticle scope) so the same file styles both.
   Hex values are the agreed palette; adjust against brand tokens if needed. */

.pif-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 1.4em 0;
}

.pif-table {
  border-collapse: collapse;
  width: 100%;
  font: inherit;
  font-variant-numeric: lining-nums tabular-nums;
  color: #1F1B17;
  font-size: 0.95rem;
  line-height: 1.4;
}
.pif-table th,
.pif-table td { padding: 9px 12px; text-align: left; vertical-align: top; }
.pif-table thead th { font-weight: 700; }

/* Width / alignment toggles */
.pif-table.pif-table--auto { width: auto; }
.pif-table.pif-table--center { margin-left: auto; margin-right: auto; }

/* Preset: editorial (default) */
.pif-table--editorial thead th { border-bottom: 2px solid #BD2701; }
.pif-table--editorial td { border-bottom: 1px solid rgba(10, 10, 10, 0.14); }
.pif-table--editorial tbody tr:last-child td { border-bottom: 0; }

/* Preset: boxed grid */
.pif-table--grid th,
.pif-table--grid td { border: 1px solid #D9D3C7; }
.pif-table--grid thead th { background: #EFE7D3; }

/* Preset: minimal / stat */
.pif-table--minimal { font-size: 0.9rem; }
.pif-table--minimal th,
.pif-table--minimal td { padding: 6px 10px; }
.pif-table--minimal thead th { border-bottom: 1.5px solid #0A0A0A; }
.pif-table--minimal tbody tr:last-child td { border-bottom: 1.5px solid #0A0A0A; }

/* Toggle: striped rows */
.pif-table--striped tbody tr:nth-child(odd) { background: #F3EDE0; }

/* Row highlights (specificity 0,1,1 via the child element) */
.pif-row--hl-brand    > td, .pif-row--hl-brand    > th { background: #F7E4DF; color: #7A1A0B; }
.pif-row--hl-tint     > td, .pif-row--hl-tint     > th { background: #EFE7D3; color: #1F1B17; }
.pif-row--hl-grey     > td, .pif-row--hl-grey     > th { background: #ECEAE3; color: #1F1B17; }
.pif-row--hl-positive > td, .pif-row--hl-positive > th { background: #E7F1E0; color: #2E5012; }
.pif-row--hl-caution  > td, .pif-row--hl-caution  > th { background: #FBEEDA; color: #7A4A0B; }

/* Cell highlights — .pif-table prefix lifts specificity above row rules so a
   cell highlight always wins over its row's highlight. */
.pif-table td.pif-cell--hl-brand,    .pif-table th.pif-cell--hl-brand    { background: #F7E4DF; color: #7A1A0B; }
.pif-table td.pif-cell--hl-tint,     .pif-table th.pif-cell--hl-tint     { background: #EFE7D3; color: #1F1B17; }
.pif-table td.pif-cell--hl-grey,     .pif-table th.pif-cell--hl-grey     { background: #ECEAE3; color: #1F1B17; }
.pif-table td.pif-cell--hl-positive, .pif-table th.pif-cell--hl-positive { background: #E7F1E0; color: #2E5012; }
.pif-table td.pif-cell--hl-caution,  .pif-table th.pif-cell--hl-caution  { background: #FBEEDA; color: #7A4A0B; }
