/* Marchenholm — tables.css : monthly-audit, payment-methods matrix, compare grid. */

.mh-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-stone);
  border-radius: var(--r-md);
  background: var(--c-paper);
}

.mh-table {
  width: 100%;
  min-width: 640px; /* forces horizontal scroll in .mh-table-wrap below 640px viewport */
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: var(--f-body-s);
}
/* Wider matrices (payment-methods: 9 cols) need more floor. */
.mh-table--wide { min-width: 860px; }
.mh-table caption {
  text-align: left;
  padding: 16px 20px;
  font-family: var(--f-mono);
  font-size: var(--f-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.mh-table thead th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: var(--f-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-stone);
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-stone);
  background: var(--c-paper-alt);
}
.mh-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-stone);
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.mh-table tbody tr:last-child td { border-bottom: 0; }

.mh-table th:last-child,
.mh-table td:last-child { text-align: left; }

.mh-table td.mh-cell-num { text-align: right; font-variant-numeric: tabular-nums; }
.mh-table td.mh-cell-op  { font-family: var(--f-body); font-weight: 500; }

/* Payment-methods matrix cells */
.mh-cell-supported    { color: var(--c-score-hi); font-weight: 600; text-align: center; }
.mh-cell-unsupported  { color: var(--c-stone);    text-align: center; }
.mh-cell-partial      { color: var(--c-secondary); text-align: center; }

/* Compare grid — 2 columns with divider */
.mh-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-ink);
  border-radius: var(--r-md);
  overflow: hidden;
}
.mh-compare-grid__divider {
  background: var(--c-stone);
  min-height: 100%;
}
.mh-compare-col {
  padding: var(--space-item);
}
.mh-compare-col__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
  line-height: 1.1;
}
.mh-compare-col__score {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--f-score-xl);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 10px 0 8px;
  color: var(--c-ink);
}
.mh-compare-col__licence {
  font-family: var(--f-mono);
  font-size: var(--f-label);
  color: var(--c-stone);
  margin-bottom: var(--space-item);
}
.mh-compare-col__pillars { display: flex; flex-direction: column; gap: 12px; }
.mh-compare-col__pillar-row {
  display: grid;
  grid-template-columns: 90px 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--c-stone);
}
.mh-compare-col__pillar-row:last-child { border-bottom: 0; }
.mh-compare-col__pillar-label { font-weight: 500; font-size: var(--f-body-s); }
.mh-compare-col__pillar-score {
  font-family: var(--f-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mh-compare-col__offer {
  background: var(--c-paper-alt);
  border: 1px solid var(--c-stone);
  padding: 14px 16px;
  margin-top: var(--space-item);
  font-family: var(--f-mono);
  font-size: var(--f-caption);
  line-height: 1.5;
}

/* Alternative matchups band */
.mh-matchups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: var(--space-item);
}
.mh-matchup-tile {
  border: 1px solid var(--c-stone);
  border-radius: var(--r-md);
  padding: 16px;
  background: var(--c-paper);
  transition: border-color 0.15s;
}
.mh-matchup-tile:hover { border-color: var(--c-accent); }
.mh-matchup-tile a {
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.01em;
}
.mh-matchup-tile a:hover { color: var(--c-accent); }
.mh-matchup-tile__meta {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--f-label);
  color: var(--c-stone);
  margin-top: 6px;
}

/* Welcome-offers list */
.mh-offers-list { display: flex; flex-direction: column; }
.mh-offer-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-stone);
}
.mh-offer-row:last-child { border-bottom: 0; }
.mh-offer-row__op { font-weight: 700; color: var(--c-ink); text-transform: uppercase; letter-spacing: 0.02em; }
.mh-offer-row__op a { color: inherit; }
.mh-offer-row__op a:hover { color: var(--c-accent); }
.mh-offer-row__summary { font-size: var(--f-body-s); color: var(--c-ink); }
.mh-offer-row__summary a { color: var(--c-accent); border-bottom: 1px solid transparent; }
.mh-offer-row__summary a:hover { border-bottom-color: var(--c-accent); }
.mh-offer-row__cta { white-space: nowrap; }
