/* ─── Threat matrix + defense stack (remote-desktop-security-guide.html) ─── */
.threat-matrix-wrap {
  margin: 36px 0 44px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow-x: auto;
  background: var(--ink-700);
}
.threat-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}
.threat-matrix thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-base);
  background-color: rgba(255, 255, 255, 0.025);
  vertical-align: middle;
}
.threat-matrix thead th.threat-col-risk { width: 132px; }
.threat-matrix tbody td {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg-secondary);
  vertical-align: top;
  line-height: 1.55;
}
.threat-matrix tbody tr:last-child td { border-bottom: none; }
.threat-matrix tbody td:first-child { color: var(--fg-primary); }
.threat-matrix .threat-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--fg-primary);
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  line-height: 1.3;
}
.threat-id {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-tertiary);
  padding: 2px 7px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.threat-muted { color: var(--fg-tertiary); }
.threat-risk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px 5px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  line-height: 1;
  white-space: nowrap;
}
.threat-risk .threat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}
.threat-risk.high {
  color: var(--state-error);
  background: rgba(255, 92, 60, 0.08);
}
.threat-risk.medium {
  color: var(--state-warning);
  background: rgba(255, 176, 112, 0.08);
}
.threat-risk.low {
  color: var(--state-online);
  background: rgba(64, 214, 144, 0.08);
}

.defense-stack {
  margin: 36px 0 44px;
  background: var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.defense-stack-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  padding: 14px 24px;
  background: var(--ink-700);
}
.defense-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  background: var(--ink-700);
  padding: 22px 24px;
  gap: 20px;
  align-items: start;
}
.defense-level {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--ember-300);
  letter-spacing: 0.04em;
  line-height: 1;
  padding-top: 2px;
}
.defense-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--fg-primary);
  letter-spacing: -0.005em;
}
.defense-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0;
}
.defense-body a {
  color: var(--accent-base);
  border-bottom: 1px solid var(--accent-tint);
}
.defense-body a:hover { border-bottom-color: var(--accent-base); }

.essay-prose .threat-matrix-wrap,
.essay-prose .defense-stack { margin-left: 0; margin-right: 0; }
