/* SigExData public heatmap — everything is scoped; no WordPress global overrides. */
#sigex-heatmap {
  --sx-bg: #0b182a;
  --sx-panel: #102238;
  --sx-panel2: #132a43;
  --sx-line: #264059;
  --sx-text: #e9f1fa;
  --sx-muted: #90a7bc;
  --sx-accent: #6ac9f8;
  --sx-up: #35d4a1;
  --sx-down: #fa7387;
  font-family: inherit;
  color: var(--sx-text);
  background: var(--sx-bg);
  border: 1px solid var(--sx-line);
  border-radius: 16px;
  padding: clamp(14px, 2.5vw, 28px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.45;
}
#sigex-heatmap *, #sigex-heatmap *::before, #sigex-heatmap *::after { box-sizing: border-box; }
#sigex-heatmap .sx-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin: 0 0 18px; }
#sigex-heatmap .sx-sticky-header { position: sticky; top: var(--sx-sticky-top, 0px); z-index: 20; background: var(--sx-bg); padding: 1px 0 12px; margin-bottom: 12px; box-shadow: 0 8px 10px -12px rgba(0, 0, 0, .9); }
#sigex-heatmap .sx-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--sx-accent); font-weight: 750; }
#sigex-heatmap h2 { color: var(--sx-text); margin: 4px 0 6px; padding: 0; font-size: clamp(22px, 3vw, 32px); line-height: 1.18; font-weight: 750; }
#sigex-heatmap h3 { color: var(--sx-text); font-size: 14px; padding: 0; margin: 0; font-weight: 700; }
#sigex-heatmap .sx-subtitle, #sigex-heatmap .sx-meta, #sigex-heatmap .sx-footnote { color: var(--sx-muted); font-size: 12px; margin: 0; }
#sigex-heatmap .sx-calculation-footnote { margin-top: 8px; font-size: 10px; font-style: italic; line-height: 1.4; }
#sigex-heatmap .sx-state { font-size: 12px; border: 1px solid var(--sx-line); color: var(--sx-muted); padding: 6px 10px; border-radius: 50px; white-space: nowrap; }
#sigex-heatmap .sx-state[data-status=ok] { color: var(--sx-up); }
#sigex-heatmap .sx-state[data-status=error] { color: var(--sx-down); }
#sigex-heatmap .sx-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-bottom: 12px; }
#sigex-heatmap .sx-heading .sx-header-controls { margin-left: auto; max-width: 760px; }
#sigex-heatmap .sx-heading .sx-toolbar { margin: 0; }
#sigex-heatmap .sx-header-controls .sx-meta { margin: 7px 0 0; }
#sigex-heatmap .sx-field { display: flex; gap: 5px; flex-direction: column; min-width: 145px; }
#sigex-heatmap label { color: var(--sx-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
#sigex-heatmap select, #sigex-heatmap button { font: inherit; }
#sigex-heatmap select { background: var(--sx-panel); color: var(--sx-text); border: 1px solid var(--sx-line); border-radius: 8px; padding: 9px 12px; min-height: 41px; width: 100%; cursor: pointer; }
#sigex-heatmap button { background: var(--sx-panel2); border: 1px solid var(--sx-line); color: var(--sx-text); border-radius: 8px; padding: 7px 11px; line-height: 1.3; cursor: pointer; }
#sigex-heatmap button:hover, #sigex-heatmap button:focus-visible { border-color: var(--sx-accent); color: var(--sx-accent); }
#sigex-heatmap button[aria-pressed=true] { background: #204b63; color: #e7f8ff; border-color: var(--sx-accent); }
#sigex-heatmap .sx-meta { margin-bottom: 12px; overflow-wrap: anywhere; }
#sigex-heatmap .sx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
#sigex-heatmap .sx-card { min-width: 0; background: var(--sx-panel); border: 1px solid var(--sx-line); border-radius: 12px; padding: 14px; }
#sigex-heatmap .sx-card-title { color: var(--sx-muted); font-size: 12px; font-weight: 650; margin-bottom: 9px; }
#sigex-heatmap .sx-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
#sigex-heatmap .sx-stat-label { font-size: 10px; color: var(--sx-muted); margin-bottom: 3px; }
#sigex-heatmap .sx-stat-value { font-size: clamp(14px,2vw,20px); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2; }
#sigex-heatmap .sx-up { color: var(--sx-up); }
#sigex-heatmap .sx-down { color: var(--sx-down); }
#sigex-heatmap .sx-muted { color: var(--sx-muted); }
#sigex-heatmap .sx-bigline { font-size: 12px; border-top: 1px solid var(--sx-line); padding-top: 9px; margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; }
#sigex-heatmap .sx-sector-bar { display: flex; flex-wrap: nowrap; gap: 5px; margin-bottom: 12px; }
#sigex-heatmap .sx-sector-btn, #sigex-heatmap .sx-sector-total { box-sizing: border-box; flex: 1 1 0; min-width: 0; height: 112px; font-size: 11px; padding: 8px 10px; text-align: left; }
#sigex-heatmap .sx-sector-total { background: var(--sx-panel2); border: 2px solid var(--sx-accent); border-radius: 8px; box-shadow: 0 0 0 1px rgba(106, 201, 248, .28); }
#sigex-heatmap .sx-sector-total .sx-sector-name { color: var(--sx-accent); font-weight: 750; }
#sigex-heatmap .sx-sector-name { display: block; color: var(--sx-muted); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sigex-heatmap .sx-sector-value { font-weight: 750; font-variant-numeric: tabular-nums; }
#sigex-heatmap .sx-sector-delta { display: block; margin-top: 3px; }
#sigex-heatmap .sx-sector-details { display: block; margin-top: 3px; font-size: 10px; line-height: 1.35; }
#sigex-heatmap .sx-chart-card { background: var(--sx-panel); border: 1px solid var(--sx-line); border-radius: 12px; padding: 12px; margin-bottom: 12px; overflow: hidden; }
#sigex-heatmap .sx-chart-top { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
#sigex-heatmap .sx-chart-wrap { position: relative; height: min(68vw, 665px); min-height: 450px; width: 100%; }
#sigex-heatmap .sx-chart-wrap canvas { width: 100% !important; height: 100% !important; }
#sigex-heatmap .sx-impact-card { margin-top: 16px; }
#sigex-heatmap .sx-impact-net { position: absolute; z-index: 2; color: var(--sx-accent); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; transform: translateX(-50%); }
#sigex-heatmap .sx-impact-scroll { overflow: hidden; }
#sigex-heatmap .sx-impact-wrap { position: relative; height: 360px; min-height: 300px; width: 100%; }
#sigex-heatmap .sx-impact-wrap.sx-impact-company canvas { cursor: zoom-out; }
#sigex-heatmap .sx-impact-wrap canvas { width: 100% !important; height: 100% !important; }
#sigex-heatmap .sx-table-wrap { overflow: hidden; border: 1px solid var(--sx-line); border-radius: 10px; }
#sigex-heatmap table { width: 100%; min-width: 0; table-layout: fixed; margin: 0; border-collapse: collapse; font-size: clamp(8px, .85vw, 12px); color: var(--sx-text); background: var(--sx-panel); }
#sigex-heatmap th, #sigex-heatmap td { width: auto; padding: 8px 6px; border-bottom: 1px solid var(--sx-line); border-left: none; border-right: none; text-align: left; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; vertical-align: middle; }
#sigex-heatmap th { color: var(--sx-muted); font-size: clamp(8px, .8vw, 11px); font-weight: 600; line-height: 1.25; background: var(--sx-panel2); }
#sigex-heatmap th:not(:first-child), #sigex-heatmap td:not(:first-child) { text-align: right; }
#sigex-heatmap th[data-sort] { cursor: pointer; user-select: none; }
#sigex-heatmap th[data-sort]:hover { color: var(--sx-accent); }
#sigex-heatmap .sx-table-selectable { cursor: pointer; }
#sigex-heatmap .sx-table-selectable:hover { background: #17324a; }
#sigex-heatmap .sx-company-table td:first-child { white-space: normal; }
#sigex-heatmap tfoot { background: #183149; font-weight: 700; }
#sigex-heatmap .sx-section-title { display: flex; align-items: center; gap: 9px; margin: 16px 0 9px; flex-wrap: wrap; }
#sigex-heatmap .sx-note { border-left: 2px solid var(--sx-accent); padding: 7px 10px; background: #152d42; color: var(--sx-muted); font-size: 12px; margin: 0 0 12px; }
#sigex-heatmap .sx-device-note { display: none; border-left: 2px solid #00D7F5; padding: 8px 10px; margin: 0 0 12px; background: #152d42; color: #00D7F5; font-size: 12px; font-weight: 750; }
#sigex-heatmap .sx-footer { margin-top: 12px; color: var(--sx-muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 700px) {
  #sigex-heatmap .sx-stats { grid-template-columns: 1fr; }
  #sigex-heatmap .sx-chart-wrap { height: 110vw; min-height: 410px; max-height: 560px; }
  #sigex-heatmap .sx-impact-wrap { min-height: 330px; }
  #sigex-heatmap .sx-sector-bar { flex-wrap: wrap; gap: 7px; }
  #sigex-heatmap .sx-sector-btn, #sigex-heatmap .sx-sector-total { flex: 1 1 calc(33.333% - 5px); width: auto; min-width: 0; height: 112px; }
  #sigex-heatmap .sx-field { flex: 1 1 42%; min-width: 120px; }
  #sigex-heatmap .sx-stat-value { font-size: 18px; }
}

@media (max-width: 1024px) {
  #sigex-heatmap .sx-sticky-header { position: static; top: auto; z-index: auto; }
  #sigex-heatmap .sx-device-note { display: block; }
}
