/* =============================================================
   CVEs / Patches / Resources / Team — structural restyling
   ============================================================= */

/* CVE cards */
.cve-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  height: 100%;
}
.cve-card.stage1 { border-top: 3px solid var(--green); }
.cve-card.stage2 { border-top: 3px solid var(--amber); }
.cve-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.cve-stage { color: var(--green); }
.cve-card.stage2 .cve-stage { color: var(--amber); }
.cve-score { color: var(--fg-dim); }
.cve-id {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.cve-sub { color: var(--fg-dim); margin-bottom: 22px; }
.cve-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 16px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 14px 0;
}
.cve-meta dt { color: var(--fg-mute); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; padding-top: 2px; }
.cve-meta dd { color: var(--fg); margin: 0; }
.cve-body { color: var(--fg-dim); font-size: 14.5px; line-height: 1.65; }

.link-group { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.btn-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--fg-dim);
  text-decoration: none !important;
  transition: all 0.12s;
}
.btn-link:hover { border-color: var(--green); color: var(--green); }

.chain-note {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.chain-note-bar { background: var(--green); border-radius: 2px; }
.chain-note-body { color: var(--fg-dim); font-size: 14.5px; line-height: 1.6; }
.chain-note-body strong { color: var(--fg); }

/* Patches (page-local styles override) */
.patch-card {
  background: var(--bg-1) !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  padding: 28px !important;
  margin-bottom: 18px !important;
  box-shadow: none !important;
}
.patch-head { margin-bottom: 8px; }
.patch-cve {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--amber) !important;
  background: var(--bg-2) !important;
  padding: 4px 10px !important;
  border-radius: 3px !important;
  border: 1px solid var(--amber-faint);
  letter-spacing: 0.04em;
}
.patch-title {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg) !important;
  letter-spacing: -0.01em;
}
.patch-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-mute) !important;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  margin-top: 10px !important;
}
.patch-meta code {
  background: var(--bg-2) !important;
  color: var(--amber) !important;
  border: 1px solid var(--border-dim);
}
.patch-body { color: var(--fg-dim); font-size: 14.5px; line-height: 1.7; }
.patch-diff {
  background: var(--bg) !important;
  border: 1px solid var(--border);
  border-radius: 4px !important;
  font-size: 12.5px !important;
  color: var(--fg) !important;
}
.patch-diff .add { color: var(--green) !important; background: oklch(0.82 0.19 140 / 0.08) !important; }
.patch-diff .del { color: var(--danger) !important; background: oklch(0.68 0.22 25 / 0.08) !important; }
.patch-diff .hunk { color: var(--amber) !important; }
.patch-diff .ctx { color: var(--fg-dim) !important; }
.patch-diff .meta { color: var(--fg-mute) !important; }

.patch-takeaway {
  background: var(--bg-2) !important;
  border-left: 2px solid var(--green) !important;
  border-radius: 0 !important;
  color: var(--fg-dim);
  font-size: 13.5px !important;
  padding: 12px 16px !important;
}
.patch-takeaway strong { color: var(--fg); }
