/* ═══ Exposure Management page (2026-04-23) ═══
   Deep drill-down for the unified Digital Exposure Score.
   Score ring + peer benchmark up top, then one card per active
   component (Uptime / Certificates / Domains / Brand) with their
   individual score, bar, and per-risk detail. */

.exp-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 28px 80px;
}

.exp-hero-header { margin-bottom: 22px; }
.exp-hero-header h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
}
.exp-hero-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 680px;
  line-height: 1.5;
  margin: 0;
}

/* Sign-in / loading gates */
.exp-signin, .exp-loading {
  max-width: 440px;
  margin: 100px auto;
  padding: 40px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.exp-signin h2, .exp-loading p { margin: 0 0 16px; }
.exp-signin-btn {
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* ── Summary: score ring + peer panel ── */
.exp-summary {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr);
  gap: 22px;
  margin-bottom: 22px;
}
@media (max-width: 860px) {
  .exp-summary { grid-template-columns: 1fr; }
}

.exp-summary-score {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.exp-ring-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.exp-ring { width: 100%; height: 100%; display: block; }
.exp-ring-track { stroke: var(--line); }
.exp-ring-arc { stroke: var(--ok); transition: stroke-dashoffset 0.6s ease, stroke 0.2s; }
.exp-ring-arc.w { stroke: var(--warn); }
.exp-ring-arc.x { stroke: var(--danger); }

.exp-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.exp-ring-score {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.exp-ring-denom {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--ink-3);
}

.exp-summary-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.exp-summary-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  font-size: 28px;
  font-weight: 700;
  font-family: var(--serif, Georgia, serif);
  background: var(--surface-2);
  color: var(--ink);
  line-height: 1;
}
.exp-summary-grade.exp-a { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.exp-summary-grade.exp-b { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
.exp-summary-grade.exp-c { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.exp-summary-grade.exp-x { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.exp-summary-cap {
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--mono);
}

/* Peer benchmark panel */
.exp-summary-peer {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exp-summary-peer-lab {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.exp-summary-peer-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}
.exp-peer-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.exp-peer-stat-lab {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--mono);
}
.exp-peer-stat-val {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.exp-peer-stat-val.exp-up   { color: var(--ok); }
.exp-peer-stat-val.exp-down { color: var(--danger); }

/* ── Component cards ── */
.exp-components {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.exp-comp {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exp-comp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.exp-comp-lab {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.exp-comp-score {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.exp-comp-score .exp-comp-denom {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 2px;
}
.exp-comp-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}
.exp-comp-fill {
  height: 100%;
  background: var(--ok);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.exp-comp-fill.w { background: var(--warn); }
.exp-comp-fill.x { background: var(--danger); }

.exp-comp-detail {
  font-size: 12.5px;
  color: var(--ink-3);
  font-family: var(--mono);
  line-height: 1.5;
}
.exp-comp-weight {
  font-size: 11px;
  color: var(--ink-4);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exp-comp-inactive {
  opacity: 0.6;
  border-style: dashed;
  background: transparent;
}
.exp-comp-inactive .exp-comp-score { color: var(--ink-3); }

/* Empty state */
.exp-empty {
  text-align: center;
  padding: 60px 32px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.exp-empty h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.exp-empty p {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0 0 20px;
}
.exp-empty-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.exp-empty-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
}
.exp-empty-btn:hover { background: var(--line); }
