/* Matrix finding — the range-plan / channel tables.
   A heatmap where the colour IS the argument: the reader is meant to scan for
   where the green clusters by column, not to read every number. Tones are
   banded on each table's own distribution (see tones() in tools/emit_gsc.py). */
.ap-mx{margin-top:10px}
.ap-mx__sub{font-size:12px;color:#636c79;margin:0 0 8px}
.ap-mx__scroll{overflow-x:auto;border:1px solid #e5ebf1;border-radius:10px;background:#fff}
.ap-mx table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}
.ap-mx th,.ap-mx td{padding:0;text-align:center;vertical-align:middle}
.ap-mx thead th{background:#3f4635;color:#fff;font-weight:600;font-size:10.5px;line-height:1.25;
  letter-spacing:.03em;padding:8px 8px;border-right:1px solid rgba(255,255,255,.14);white-space:pre-line}
.ap-mx thead th:last-child{border-right:none}
.ap-mx thead th.ap-mx__rowhead{text-align:left;background:#2c3126}
.ap-mx tbody tr:nth-child(even) td{box-shadow:inset 0 0 0 999px rgba(246,250,253,.5)}
.ap-mx td{border-right:1px solid #fff;border-bottom:1px solid #fff;font-variant-numeric:tabular-nums;
  font-weight:600;color:#050301;height:34px}
.ap-mx td.t-good{background:#3d7a1c;color:#fff}
.ap-mx td.t-mid{background:#8d99a8;color:#fff}
.ap-mx td.t-weak{background:#e3c536;color:#3a3305}
.ap-mx td.t-text{background:#fff;color:#636c79;font-weight:400;text-align:left;
  padding:7px 10px;font-size:11.5px;line-height:1.4;min-width:180px}
.ap-mx td.t-text.is-slot{font-weight:600;color:#050301;text-align:center;padding:7px 8px}
.ap-mx__rowhead{text-align:left;padding:5px 10px 5px 6px;background:#fff;font-weight:600;
  white-space:nowrap;position:sticky;left:0;z-index:1;box-shadow:1px 0 0 #eef2f6}
.ap-mx tbody tr:nth-child(even) .ap-mx__rowhead{background:#fbfcfd}
.ap-mx__cell{display:flex;align-items:center;gap:8px;min-width:0}
.ap-mx__thumb{width:32px;height:26px;flex:none;border-radius:5px;background:#fafcfe;
  border:1px solid #eef2f6;overflow:hidden;display:flex;align-items:center;justify-content:center}
.ap-mx__thumb img{width:100%;height:100%;object-fit:contain;display:block}
.ap-mx__lab{font-size:11.5px;line-height:1.25;color:#050301;text-align:left;
  overflow:hidden;text-overflow:ellipsis}
.ap-mx__slot{font-size:11.5px;font-weight:700;color:#050301}
.ap-mx__note{margin-top:9px;background:#dfeed3;border-left:3px solid #3a8518;border-radius:0 8px 8px 0;
  padding:9px 12px;font-size:11.5px;line-height:1.5;color:#28341c}
.ap-mx__legend{display:flex;align-items:center;gap:14px;margin-top:8px;font-size:11px;color:#636c79}
.ap-mx__legend b{display:inline-flex;align-items:center;gap:5px;font-weight:500}
.ap-mx__sw{width:11px;height:11px;border-radius:3px;display:block}
.ap-mx__sw--good{background:#3d7a1c}
.ap-mx__sw--mid{background:#8d99a8}
.ap-mx__sw--weak{background:#e3c536}

/* Inside a report slide the table has to shrink into the slot, not scroll. */
.rp-viz .ap-mx__scroll{overflow:visible}
.rp-viz .ap-find__head,.rp-viz .ap-seg{display:none}
.rp-viz .ap-mx{margin-top:0}
