/* PEARL heatmap grade tokens. Use only on measured matrix cells (not mentions). */
:root {
  --pearl-hm-good-4: #2f9e44;
  --pearl-hm-good-3: #84cc16;
  --pearl-hm-mid-2: #facc15;
  --pearl-hm-risk-1: #f97316;
  --pearl-hm-risk-0: #dc3b32;
  /* Volume is intensity, not a performance judgement; legends say so. */
  --pearl-hm-teal-1: #d9f99d;
  --pearl-hm-teal-2: #facc15;
  --pearl-hm-teal-3: #fb923c;
  --pearl-hm-teal-4: #dc3b32;
}
.pearl-hm-cell { font-variant-numeric: tabular-nums; font-weight: 750; }
.pearl-hm--good-4 { background: var(--pearl-hm-good-4) !important; color: #fff !important; }
.pearl-hm--good-3 { background: var(--pearl-hm-good-3) !important; color: #18320d !important; }
.pearl-hm--mid-2 { background: var(--pearl-hm-mid-2) !important; color: #342900 !important; }
.pearl-hm--risk-2 { background: #facc15 !important; color: #342900 !important; }
.pearl-hm--risk-1 { background: var(--pearl-hm-risk-1) !important; color: #3b1b08 !important; }
.pearl-hm--risk-0 { background: var(--pearl-hm-risk-0) !important; color: #fff !important; }
.pearl-hm-legend .r1 { background: var(--pearl-hm-mid-2); }
.pearl-hm-legend .r2 { background: var(--pearl-hm-risk-1); }
.pearl-hm-legend .r3 { background: var(--pearl-hm-risk-0); }
.pearl-hm--volume-1 { background: var(--pearl-hm-teal-1) !important; color: #16382f !important; }
.pearl-hm--volume-2 { background: var(--pearl-hm-teal-2) !important; color: #16382f !important; }
.pearl-hm--volume-3 { background: var(--pearl-hm-teal-3) !important; color: #10392f !important; }
.pearl-hm--volume-4 { background: var(--pearl-hm-teal-4) !important; color: #fff !important; }
.pearl-hm--ungraded { background: transparent !important; color: #687782 !important; }
.pearl-hm-legend { display:flex; flex-wrap:wrap; align-items:center; gap:5px 9px; margin:6px 0 9px; color:#4c5d65; font-size:10px; line-height:1.3; }
.pearl-hm-legend span { display:inline-flex; align-items:center; gap:4px; }
.pearl-hm-legend i { display:inline-block; width:12px; height:12px; border:1px solid rgba(20,40,40,.2); border-radius:2px; }
.pearl-hm-legend .s1 { background:var(--pearl-hm-good-4); }
.pearl-hm-legend .s2 { background:var(--pearl-hm-good-3); }
.pearl-hm-legend .s3 { background:var(--pearl-hm-mid-2); }
.pearl-hm-legend .s4 { background:var(--pearl-hm-risk-1); }
.pearl-hm-legend .s5 { background:var(--pearl-hm-risk-0); }
.pearl-hm-legend .v1 { background:var(--pearl-hm-teal-1); }
.pearl-hm-legend .v2 { background:var(--pearl-hm-teal-2); }
.pearl-hm-legend .v3 { background:var(--pearl-hm-teal-3); }
.pearl-hm-legend .v4 { background:var(--pearl-hm-teal-4); }
.hm-tbl td.hm-cell.pearl-hm--ungraded { background:transparent !important; }
.overview-share-heatmap__table .pearl-hm-cell { font-weight:800; }
@media(max-width:640px) {
  .pearl-hm-legend { gap:4px 7px; font-size:9.5px; }
}
