/* Vantage Point brand tokens — see Vantage_Point_Brand_Guidelines v1.0.
   Shared by index.html (live feed) and summary.html (executive summary). */
:root {
  color-scheme: dark;
  --bg: #0B0E14;           /* Background (primary) */
  --panel: #151A23;        /* Background (secondary) */
  --border: #232b38;
  --text: #E6E9EF;         /* Text (primary) */
  --muted: #8B93A7;        /* Text (secondary) */
  --cyan: #2DD4FF;         /* Accent (primary) */
  --violet: #A855F7;       /* Accent (secondary) */
  --critical: #FF4D5E;     /* Critical severity only */
  --warning: #FFB020;      /* Medium severity */
  --success: #2ECC71;      /* Patched / resolved */
  --font-heading: "IBM Plex Sans", "Space Grotesk", sans-serif;
  --font-body: "Inter", "IBM Plex Sans", sans-serif;
  --font-mono: "Fira Code", "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}
#wrap { max-width: 1180px; margin: 0 auto; padding: 0 0 48px; }

header {
  padding: 28px 32px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.wordmark .dot { color: var(--cyan); }
.subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
#meta { color: var(--muted); font-size: 13px; }

/* Tab navigation between the live feed and the executive summary */
nav.tabs {
  display: flex;
  gap: 4px;
  padding: 14px 32px 0;
  border-bottom: 1px solid var(--border);
}
nav.tabs a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
nav.tabs a:hover { color: var(--text); text-decoration: none; }
nav.tabs a.active { color: var(--text); border-bottom-color: var(--cyan); }

/* Plain-English summary layer, per brand voice guidance:
   lead with a one/two sentence summary before the technical detail. */
#summary {
  margin: 20px 32px 0;
  padding: 14px 16px;
  background: var(--panel);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
}
#summary strong { color: var(--cyan); font-weight: 600; }

#controls {
  display: flex;
  gap: 12px;
  padding: 18px 32px 8px;
  flex-wrap: wrap;
}
select, input {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-body);
}
select:focus, input:focus {
  outline: none;
  border-color: var(--cyan);
}

#status { padding: 4px 32px 8px; color: var(--muted); font-size: 12px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: var(--bg);
}
th.sortable {
  cursor: pointer;
  user-select: none;
}
th.sortable:hover { color: var(--text); }
.sort-arrow {
  color: var(--cyan);
  font-size: 10px;
}

/* Severity badges: pill-shaped, colour + label per brand accessibility rule */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.high     { background: rgba(255,77,94,0.12);  color: var(--critical); }
.badge.medium   { background: rgba(255,176,32,0.12);  color: var(--warning); }
.badge.low      { background: rgba(46,204,113,0.12);  color: var(--success); }
/* Editorial/news content has no real severity — per brand guidelines the
   red/amber/green scale is reserved strictly for genuine threat severity,
   never decorative, so these get a plain neutral tag instead of a colour. */
.badge.none     { background: transparent; color: var(--muted); padding-left: 0; }
.badge.none::before { display: none; }

/* IOC / code cells: monospace on charcoal panel with cyan left border */
.indicator {
  font-family: var(--font-mono);
  font-size: 12.5px;
  word-break: break-all;
  background: var(--panel);
  border-left: 2px solid var(--cyan);
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
  display: inline-block;
}
.type-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.source-cell { color: var(--text); }
time.ts { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Description column: truncate visually rather than chopping the string
   server-side. Hover (title attribute) reveals the full text. */
td.description-cell {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}

/* Executive summary lede: allow a few lines rather than single-line
   ellipsis, since these are meant to be read, not just scanned. */
.cve-card .lede {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: help;
}

/* ── Executive summary cards ────────────────────────────────────────────── */
/* Alerts/callouts pattern per brand guide: charcoal panel, coloured LEFT
   border matching severity — never a full-colour background block. */
.cve-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 32px 24px;
}
.cve-card {
  background: var(--panel);
  border-left: 3px solid var(--border);
  border-radius: 4px;
  padding: 14px 18px;
}
.cve-card.high { border-left-color: var(--critical); }
.cve-card.medium { border-left-color: var(--warning); }

.cve-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cve-card .cve-id {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}
.cve-card .kev-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--critical);
  border: 1px solid rgba(255,77,94,0.4);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.02em;
}
.cve-card .cvss-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--warning);
  border: 1px solid rgba(255,176,32,0.4);
  border-radius: 4px;
  padding: 1px 6px;
}
.cve-card .reach-tag {
  font-size: 10.5px;
  color: var(--violet);
  border: 1px solid rgba(168,85,247,0.4);
  border-radius: 4px;
  padding: 1px 6px;
}
.cve-card .lede {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  margin: 4px 0 8px;
}
.cve-card .details {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cve-card .details a { color: var(--cyan); }

.section-note {
  margin: 18px 32px 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  margin-top: 32px;
  padding: 18px 32px 8px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.site-footer a { color: var(--muted); text-decoration: underline; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .footer-row + .footer-row { margin-top: 4px; }
