/* ==========================================================================
   Cyber Dilmeth — Threat Intel Hub  ·  v5.0
   Palette matches cyberdilmeth.com: navy headings, blue interactive,
   status colours for severity. Green (#16A34A) stays reserved for
   Subscribe/Confirm and is deliberately NOT used here.
   All classes are cd- prefixed to avoid theme clashes.
   ========================================================================== */

.cd-hub{
  --navy:#0B1E3C; --body-text:#41506B; --muted:#8A93A6;
  --blue:#2463EB; --blue-dark:#1746A0; --blue-tint:#EAF1FE; --blue-tint-2:#DCE7FD;
  --border:#E6EAF1; --border-hover:#B9CDFB; --section-bg:#F4F7FB; --white:#fff;
  --sev-critical:#B42318; --sev-high:#D92D20; --sev-medium:#DC6803; --sev-low:#CA8504; --sev-exploited:#0B1E3C;
  --radius:16px;
  --font-display:'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:'Inter', system-ui, sans-serif;
  --font-mono:'JetBrains Mono', ui-monospace, monospace;
  font-family: var(--font-body); color: var(--body-text);
  max-width: 1220px; margin: 0 auto; padding: 40px 24px 72px;
}
.cd-hub *{ box-sizing: border-box; }
.cd-hub button{ all: unset; box-sizing: border-box; cursor:pointer; font-family: inherit; }

.cd-eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:12px; letter-spacing:0.09em;
  text-transform:uppercase; color:var(--blue); background:var(--blue-tint); border:1px solid var(--blue-tint-2);
  padding:6px 13px 6px 9px; border-radius:999px; margin-bottom:14px;
}
.cd-eyebrow .cd-dot{ width:6px; height:6px; border-radius:50%; background:var(--blue); box-shadow:0 0 0 4px rgba(36,99,235,.16); }
.cd-h1{ font-family:var(--font-display); font-weight:800; font-size:clamp(28px,3.4vw,38px); color:var(--navy); margin:0 0 12px; letter-spacing:-0.02em; }

.cd-section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.cd-hub-heading{ font-family:var(--font-display); font-weight:800; font-size:clamp(22px,2.4vw,28px); color:var(--navy); margin:0; letter-spacing:-0.02em; }
.cd-view-all{
  font-weight:700; font-size:13px; color:var(--blue); background:#fff; border:1.5px solid var(--border);
  padding:10px 18px; border-radius:999px; text-decoration:none; white-space:nowrap;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.cd-view-all:hover{ border-color:var(--blue); background:var(--blue-tint); transform:translateY(-1px); }
.cd-hub-empty{ font-size:14px; color:var(--muted); padding:24px 0; }

/* ==========================================================================
   THREAT CARDS  (home section + dashboard)
   ========================================================================== */
.cd-tcard-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:980px){ .cd-tcard-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .cd-tcard-grid{ grid-template-columns:1fr; } }

.cd-tcard{
  position:relative; display:flex; flex-direction:column; gap:9px; overflow:hidden;
  background:#fff; border:1.5px solid var(--border); border-radius:16px; padding:20px 20px 18px;
  text-decoration:none; color:inherit; box-shadow:0 4px 16px rgba(11,30,60,.04);
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cd-tcard::before{ content:""; position:absolute; top:0; left:0; right:0; height:3px; background:var(--accent,var(--border)); }
.cd-tcard:hover{ border-color:var(--border-hover); box-shadow:0 18px 38px rgba(36,99,235,.13); transform:translateY(-4px); }
.cd-accent-critical{ --accent:var(--sev-critical); } .cd-accent-high{ --accent:var(--sev-high); }
.cd-accent-medium{ --accent:var(--sev-medium); } .cd-accent-low{ --accent:var(--sev-low); }
.cd-accent-exploited{ --accent:var(--sev-exploited); }

.cd-tcard-top{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.cd-tcard-cvss{ font-family:var(--font-mono); font-size:11px; font-weight:500; color:var(--navy); background:var(--section-bg); border:1px solid var(--border); padding:3px 8px; border-radius:6px; }
.cd-tcard-date{ margin-left:auto; font-family:var(--font-mono); font-size:11px; color:var(--muted); }
.cd-tcard-cve{ font-family:var(--font-mono); font-size:11.5px; font-weight:500; color:var(--blue); letter-spacing:0.01em; }
.cd-tcard h3{ font-family:var(--font-display); font-weight:700; font-size:15.5px; color:var(--navy); margin:0; line-height:1.35; }
.cd-tcard p{ font-size:13px; line-height:1.55; color:var(--body-text); margin:0; flex:1; }
.cd-tcard-foot{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:4px; padding-top:12px; border-top:1px solid var(--border); }
.cd-tcard-read{ font-size:12.5px; font-weight:700; color:var(--blue); }
.cd-tcard-ransom{ font-size:11.5px; font-weight:700; color:var(--sev-high); }

/* Severity badges (shared) */
.cd-sev-badge{
  display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; letter-spacing:0.03em;
  text-transform:uppercase; padding:4px 11px; border-radius:999px; color:#fff;
}
.cd-sev-critical{ background:var(--sev-critical); } .cd-sev-high{ background:var(--sev-high); }
.cd-sev-medium{ background:var(--sev-medium); } .cd-sev-low{ background:var(--sev-low); }
.cd-sev-exploited{ background:var(--sev-exploited); color:#E7ECF5; }
.cd-sev-pulse{ width:7px; height:7px; border-radius:50%; background:var(--sev-high); animation:cd-pulse 1.6s infinite; }
@keyframes cd-pulse{ 0%{ box-shadow:0 0 0 0 rgba(217,45,32,.6);} 70%{ box-shadow:0 0 0 7px rgba(217,45,32,0);} 100%{ box-shadow:0 0 0 0 rgba(217,45,32,0);} }

/* ==========================================================================
   GLOBAL TICKER  (sitewide, above the theme header)
   ========================================================================== */
.cd-global-ticker{ width:100%; position:relative; z-index:60; }
.cd-global-ticker .cd-ticker-bar{
  display:flex; align-items:stretch; margin:0; overflow:hidden;
  background:linear-gradient(135deg,#0B1E3C 0%, #12294F 100%);
  box-shadow:0 2px 12px rgba(11,30,60,.16);
}
.cd-ticker-toggle{
  all:unset; cursor:pointer; flex-shrink:0; width:40px; display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.55); font-size:11px; border-right:1px solid rgba(255,255,255,.09); transition:color .15s ease;
}
.cd-ticker-toggle:hover{ color:#fff; }
.cd-ticker-label{
  display:flex; align-items:center; gap:9px; flex-shrink:0; padding:0 18px;
  background:rgba(255,255,255,.05); border-right:1px solid rgba(255,255,255,.09);
  font-family:var(--font-display,'Plus Jakarta Sans',sans-serif); font-weight:700; font-size:12px; letter-spacing:0.04em;
  color:#fff; white-space:nowrap;
}
.cd-live-dot{ width:7px; height:7px; border-radius:50%; background:var(--sev-high,#D92D20); animation:cd-pulse 1.6s infinite; }
.cd-ticker-track-wrap{ overflow:hidden; flex:1; padding:11px 0; }
.cd-ticker-track{ display:flex; gap:12px; width:max-content; animation-name:cd-scroll; animation-timing-function:linear; animation-iteration-count:infinite; }
@keyframes cd-scroll{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
.cd-ticker-track-wrap:hover .cd-ticker-track,
.cd-ticker-track-wrap.paused .cd-ticker-track{ animation-play-state:paused; }

.cd-ticker-item{
  display:flex; align-items:center; gap:9px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.09);
  padding:6px 15px 6px 6px; border-radius:999px; white-space:nowrap; font-size:12.5px; color:#fff;
  text-decoration:none; transition:background .18s ease, border-color .18s ease;
}
.cd-global-ticker a.cd-ticker-item,
.cd-global-ticker a.cd-ticker-item:link,
.cd-global-ticker a.cd-ticker-item:visited{ color:#fff !important; }
a.cd-ticker-item:hover{ background:rgba(255,255,255,.13); border-color:rgba(255,255,255,.24); }
.cd-ticker-item .cd-sev{
  font-family:var(--font-mono,monospace); font-size:9.5px; font-weight:600; letter-spacing:0.03em;
  padding:3px 9px; border-radius:999px; text-transform:uppercase; color:#fff;
}
.cd-ticker-item .cd-sev-critical{ background:var(--sev-critical,#B42318); }
.cd-ticker-item .cd-sev-high{ background:var(--sev-high,#D92D20); }
.cd-ticker-item .cd-sev-medium{ background:var(--sev-medium,#DC6803); }
.cd-ticker-item .cd-sev-low{ background:var(--sev-low,#CA8504); }
.cd-ticker-item .cd-sev-exploited{ background:rgba(255,255,255,.14); color:#fff; }
@media (max-width:640px){ .cd-ticker-label span:not(.cd-live-dot){ display:none; } }

/* Auto-offset a fixed/sticky/absolute theme header below the ticker while
   it is in view, so the bar and the menu never overlap. */
body.cd-ticker-in-view [data-cd-header-offset]{ top:var(--cd-ticker-h,0px) !important; }

/* ==========================================================================
   DETAIL PAGE  (recommended CISO format)
   ========================================================================== */
.cd-threat-dashboard{
  font-family:var(--font-body,'Inter',sans-serif); color:var(--body-text,#41506B);
  max-width:1120px; margin:0 auto 40px;
  --navy:#0B1E3C; --blue:#2463EB; --border:#E6EAF1; --muted:#8A93A6; --section-bg:#F4F7FB;
  --sev-critical:#B42318; --sev-high:#D92D20; --sev-medium:#DC6803; --sev-low:#CA8504;
  --font-display:'Plus Jakarta Sans',system-ui,sans-serif; --font-mono:'JetBrains Mono',ui-monospace,monospace;
}
.cd-threat-dashboard *{ box-sizing:border-box; }
.cd-t-back{ display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--blue); text-decoration:none; margin-bottom:16px; }
.cd-t-back:hover{ text-decoration:underline; }

.cd-t-hero{
  padding:26px 28px; border-radius:18px; margin-bottom:18px; color:#fff;
  background:linear-gradient(135deg,#0B1E3C 0%, #14284C 60%, #1B366B 100%);
  box-shadow:0 18px 40px rgba(11,30,60,.22); position:relative; overflow:hidden;
}
.cd-t-hero::after{ content:""; position:absolute; top:-40%; right:-10%; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(36,99,235,.35), transparent 70%); pointer-events:none; }
.cd-t-hero-badges{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:16px; position:relative; }
.cd-t-badge{
  display:inline-flex; align-items:center; gap:7px; font-family:var(--font-display); font-weight:700; font-size:13px;
  color:#fff; padding:7px 16px; border-radius:999px; letter-spacing:0.02em; background:var(--sev-high);
}
.cd-t-critical .cd-t-badge{ background:var(--sev-critical); }
.cd-t-high .cd-t-badge{ background:var(--sev-high); }
.cd-t-medium .cd-t-badge{ background:var(--sev-medium); }
.cd-t-low .cd-t-badge{ background:var(--sev-low); }
.cd-t-exploited .cd-t-badge{ background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28); }
.cd-t-cvss{ font-family:var(--font-mono); font-size:12.5px; color:#fff; background:rgba(255,255,255,.12); padding:6px 14px; border-radius:999px; }
.cd-t-ransom{ font-size:12.5px; font-weight:600; color:#FFDBD7; background:rgba(217,45,32,.28); border:1px solid rgba(217,45,32,.5); padding:6px 14px; border-radius:999px; }
.cd-t-title{ font-family:var(--font-display); font-weight:800; font-size:clamp(24px,3vw,32px); color:#fff; margin:0 0 12px; letter-spacing:-0.02em; position:relative; }
.cd-t-hero-meta{ display:flex; align-items:center; gap:8px 18px; flex-wrap:wrap; font-size:13px; color:#C6D2EA; position:relative; }
.cd-t-hero-meta .cd-t-cve{ font-family:var(--font-mono); color:#fff; }
.cd-t-due-flag{ font-weight:700; color:#FFD8A8; }

.cd-t-tldr{ display:flex; gap:14px; align-items:flex-start; background:var(--blue-tint,#EAF1FE); border:1px solid var(--blue-tint-2,#DCE7FD); border-radius:14px; padding:16px 20px; margin-bottom:22px; }
.cd-t-tldr-tag{ flex-shrink:0; font-family:var(--font-display); font-weight:800; font-size:12px; letter-spacing:0.05em; color:var(--blue); background:#fff; border:1px solid var(--blue-tint-2,#DCE7FD); padding:5px 11px; border-radius:8px; }
.cd-t-tldr p{ margin:0; font-size:14.5px; line-height:1.6; color:var(--navy); }

.cd-t-grid{ display:grid; grid-template-columns:1fr 320px; gap:26px; align-items:start; }
@media (max-width:860px){ .cd-t-grid{ grid-template-columns:1fr; } }

.cd-t-section{ background:#fff; border:1.5px solid var(--border); border-radius:16px; padding:24px 26px; margin-bottom:16px; }
.cd-t-section h2{ font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--navy); margin:0 0 12px; }
.cd-t-section p{ font-size:14.5px; line-height:1.65; margin:0 0 10px; }
.cd-t-section p:last-child{ margin-bottom:0; }
.cd-t-vector code{ background:var(--section-bg); border:1px solid var(--border); padding:3px 8px; border-radius:6px; font-size:12.5px; font-family:var(--font-mono); color:var(--navy); }

.cd-t-action{ background:#FFF6F5; border:1.5px solid #F3C7C1; border-left:4px solid var(--sev-high); border-radius:14px; padding:18px 22px; margin-bottom:16px; }
.cd-t-action-tag{ display:inline-block; font-family:var(--font-display); font-weight:800; font-size:11.5px; letter-spacing:0.06em; text-transform:uppercase; color:var(--sev-high); margin-bottom:6px; }
.cd-t-action p{ margin:0; font-size:14.5px; line-height:1.6; color:var(--navy); font-weight:500; }

.cd-t-checklist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.cd-t-checklist li{ position:relative; padding-left:28px; font-size:14.5px; line-height:1.55; }
.cd-t-checklist li::before{
  content:"✓"; position:absolute; left:0; top:1px; width:19px; height:19px; border-radius:50%;
  background:var(--blue-tint,#EAF1FE); color:var(--blue); font-size:11px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
}
.cd-t-source-credit{ font-size:12px; color:var(--muted); line-height:1.6; }

.cd-t-facts{ background:#fff; border:1.5px solid var(--border); border-radius:16px; padding:22px; position:sticky; top:24px; }
.cd-t-meter-box{ margin-bottom:18px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.cd-t-meter-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.cd-t-meter-head span{ font-size:12px; color:var(--muted); font-weight:600; }
.cd-t-meter-score{ font-family:var(--font-display); font-weight:800; font-size:22px; color:var(--navy); }
.cd-t-meter{ height:8px; border-radius:999px; background:var(--section-bg); overflow:hidden; }
.cd-t-meter-fill{ display:block; height:100%; border-radius:999px; }
.cd-t-meterfill-critical{ background:var(--sev-critical); } .cd-t-meterfill-high{ background:var(--sev-high); }
.cd-t-meterfill-medium{ background:var(--sev-medium); } .cd-t-meterfill-low{ background:var(--sev-low); }
.cd-t-meter-scale{ display:flex; justify-content:space-between; margin-top:6px; font-size:11px; color:var(--muted); }
.cd-t-facts h3{ font-family:var(--font-display); font-weight:700; font-size:15px; color:var(--navy); margin:0 0 14px; }
.cd-t-facts dl{ margin:0; }
.cd-t-facts dl > div{ display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.cd-t-facts dl > div:last-child{ border-bottom:none; }
.cd-t-facts dt{ font-size:12px; color:var(--muted); }
.cd-t-facts dd{ margin:0; font-size:12.5px; font-weight:600; color:var(--navy); text-align:right; }

/* ==========================================================================
   DASHBOARD  (/threat-intel/)
   ========================================================================== */
.cd-dashboard-page{ padding-top:40px; }
.cd-dash-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:wrap; margin-bottom:28px; }
.cd-dash-sub{ font-size:15px; color:var(--body-text); max-width:640px; margin:0; line-height:1.6; }
.cd-dash-levelchip{ flex-shrink:0; text-align:right; background:#fff; border:1.5px solid var(--border); border-top:3px solid var(--lvl,var(--blue)); border-radius:14px; padding:14px 20px; min-width:180px; }
.cd-dash-levelchip-label{ display:block; font-size:11px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.cd-dash-levelchip-name{ font-family:var(--font-display); font-weight:800; font-size:22px; color:var(--lvl,var(--blue)); }

.cd-stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:28px; }
@media (max-width:760px){ .cd-stat-row{ grid-template-columns:repeat(2,1fr); } }
.cd-stat-card{ background:#fff; border:1.5px solid var(--border); border-radius:14px; padding:20px; display:flex; flex-direction:column; gap:4px; }
.cd-stat-num{ font-family:var(--font-display); font-weight:800; font-size:30px; color:var(--navy); }
.cd-stat-label{ font-size:12.5px; color:var(--muted); font-weight:600; }
.cd-stat-critical .cd-stat-num{ color:var(--sev-critical); }
.cd-stat-ransom .cd-stat-num{ color:var(--sev-high); }
.cd-mono-sm{ font-family:var(--font-mono); font-size:22px !important; }

/* Stream tabs */
.cd-stream-tabs{ display:flex; gap:8px; margin-bottom:22px; flex-wrap:wrap; }
.cd-stream-tab{
  display:inline-flex; align-items:center; gap:9px; font-family:var(--font-display); font-weight:700; font-size:14.5px;
  color:var(--body-text); background:#fff; border:1.5px solid var(--border); padding:11px 20px; border-radius:12px;
  transition:border-color .16s ease, color .16s ease, background .16s ease;
}
.cd-stream-tab:hover{ border-color:var(--border-hover); color:var(--navy); }
/* Per-section colours. Hover = light tint + coloured text (always readable);
   active = solid fill + readable text. */
.cd-tab-green:hover{ background:#E9FFF1; border-color:#2AE361; color:var(--navy); }
.cd-tab-green.active{ background:#2AE361; border-color:#2AE361; color:#0B1E3C; }
.cd-tab-blue:hover{ background:var(--blue-tint); border-color:var(--blue); color:var(--blue-dark); }
.cd-tab-blue.active{ background:var(--blue); border-color:var(--blue); color:#fff; }
.cd-tab-red:hover{ background:#FDECEA; border-color:var(--sev-high); color:var(--sev-critical); }
.cd-tab-red.active{ background:var(--sev-high); border-color:var(--sev-high); color:#fff; }
.cd-tab-amber:hover{ background:#FEF3E2; border-color:var(--sev-medium); color:#B45309; }
.cd-tab-amber.active{ background:var(--sev-medium); border-color:var(--sev-medium); color:#fff; }
.cd-tab-navy:hover{ background:#EEF1F6; border-color:var(--navy); color:var(--navy); }
.cd-tab-navy.active{ background:var(--navy); border-color:var(--navy); color:#fff; }
.cd-tab-count{ font-family:var(--font-mono); font-size:12px; font-weight:500; padding:2px 9px; border-radius:999px; background:var(--section-bg); color:var(--muted); }
.cd-stream-tab.active .cd-tab-count{ background:rgba(255,255,255,.18); color:#fff; }
.cd-tab-green.active .cd-tab-count{ background:rgba(11,30,60,.14); color:#0B1E3C; }

/* Severity pills: coloured hover tint per section, text stays visible */
#cd-dash-severity .cd-filter-pill[data-severity="all"]:hover{ background:var(--blue-tint); border-color:var(--blue); color:var(--blue-dark); }
.cd-pill-critical:hover{ background:#FDECEA; border-color:var(--sev-critical); color:var(--sev-critical); }
.cd-pill-high:hover{ background:#FDECEA; border-color:var(--sev-high); color:var(--sev-high); }
.cd-pill-medium:hover{ background:#FEF3E2; border-color:var(--sev-medium); color:#B45309; }
.cd-pill-low:hover{ background:#FEF7E0; border-color:var(--sev-low); color:#8A6D0B; }
.cd-pill-exploited:hover{ background:#EEF1F6; border-color:var(--navy); color:var(--navy); }

/* Hide the "Unscored" severity pill while on the Recently Disclosed tab (all disclosed entries are scored) */
.cd-dash-disclosed .cd-pill-exploited{ display:none; }

/* Detail hero: stream/source chip */
.cd-t-stream-chip{ font-size:12px; font-weight:600; color:#C6D2EA; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.2); padding:6px 13px; border-radius:999px; }

/* Filter card */
.cd-filter-card{ background:#fff; border:1.5px solid var(--border); border-radius:18px; padding:20px 22px; margin-bottom:26px; box-shadow:0 6px 20px rgba(11,30,60,.05); display:flex; flex-direction:column; gap:18px; }
.cd-filter-row{ display:flex; flex-wrap:wrap; gap:18px 24px; align-items:flex-end; }
.cd-filter-row-top{ align-items:flex-end; }
.cd-filter-label{ display:block; font-size:11px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--muted); margin:0 0 9px; }
.cd-filter-search-wrap{ position:relative; flex:1 1 280px; display:flex; align-items:center; }
.cd-filter-search-wrap svg{ position:absolute; left:15px; width:17px; height:17px; color:var(--muted); pointer-events:none; }
.cd-dash-search{ width:100%; font-family:inherit; font-size:14px; padding:12px 16px 12px 42px; border:1.5px solid var(--border); border-radius:12px; outline:none; color:var(--navy); background:var(--section-bg); transition:border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.cd-dash-search::placeholder{ color:var(--muted); }
.cd-dash-search:focus{ border-color:var(--blue); background:#fff; box-shadow:0 0 0 4px rgba(36,99,235,.12); }
.cd-filter-field{ flex:0 1 240px; min-width:200px; }
.cd-select-wrap{ position:relative; }
.cd-select-wrap::after{ content:""; position:absolute; right:16px; top:50%; width:9px; height:9px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:translateY(-70%) rotate(45deg); pointer-events:none; }
.cd-dash-select{ width:100%; -webkit-appearance:none; appearance:none; font-family:inherit; font-size:13.5px; font-weight:600; color:var(--navy); padding:12px 40px 12px 16px; border-radius:12px; border:1.5px solid var(--border); background:var(--section-bg); cursor:pointer; transition:border-color .18s ease, background .18s ease; }
.cd-dash-select:focus{ outline:none; border-color:var(--blue); background:#fff; }
.cd-filter-group-block{ display:flex; flex-direction:column; }
.cd-filter-pill-group{ display:flex; gap:8px; flex-wrap:wrap; }
.cd-filter-pill{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:var(--body-text); background:#fff; border:1.5px solid var(--border); padding:8px 15px; border-radius:999px; transition:background .16s ease, border-color .16s ease, color .16s ease; }
.cd-filter-pill:hover{ border-color:var(--border-hover); color:var(--navy); }
.cd-pill-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.cd-pill-critical .cd-pill-dot{ background:var(--sev-critical); }
.cd-pill-high .cd-pill-dot{ background:var(--sev-high); }
.cd-pill-medium .cd-pill-dot{ background:var(--sev-medium); }
.cd-pill-low .cd-pill-dot{ background:var(--sev-low); }
.cd-pill-exploited .cd-pill-dot{ background:var(--navy); }
.cd-filter-pill.active{ background:var(--blue); border-color:var(--blue); color:#fff; }
.cd-filter-pill.active .cd-pill-dot{ background:#fff; }
.cd-pill-critical.active{ background:var(--sev-critical); border-color:var(--sev-critical); color:#fff; }
.cd-pill-high.active{ background:var(--sev-high); border-color:var(--sev-high); color:#fff; }
.cd-pill-medium.active{ background:var(--sev-medium); border-color:var(--sev-medium); color:#fff; }
.cd-pill-low.active{ background:var(--sev-low); border-color:var(--sev-low); color:#fff; }
.cd-pill-exploited.active{ background:var(--navy); border-color:var(--navy); color:#fff; }
.cd-filter-foot{ display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; border-top:1px solid var(--border); padding-top:16px; }
.cd-result-count{ font-size:13px; font-weight:600; color:var(--muted); }
.cd-filter-clear{ font-size:12.5px; font-weight:700; color:var(--blue); background:var(--blue-tint); border:1px solid var(--blue-tint-2); padding:8px 16px; border-radius:999px; transition:background .16s ease; }
.cd-filter-clear:hover{ background:var(--blue-tint-2); }

.cd-tcard.cd-dash-hidden{ display:none !important; }
.cd-dash-empty{ text-align:center; padding:40px 0; color:var(--muted); font-size:14px; }

/* ==========================================================================
   GLOBAL THREAT MAP  [cyberdilmeth_threat_map]
   ========================================================================== */
.cd-tm{ --lvl:var(--blue); }
.cd-tm-grid{ display:grid; grid-template-columns:1.55fr 1fr; gap:22px; align-items:stretch; }
@media (max-width:900px){ .cd-tm-grid{ grid-template-columns:1fr; } }

.cd-tm-globe-card{
  position:relative; overflow:hidden; border-radius:20px; padding:24px 26px;
  background:radial-gradient(120% 120% at 78% 18%, #16305C 0%, #0B1E3C 55%, #081428 100%);
  box-shadow:0 20px 46px rgba(11,30,60,.28); color:#fff;
  display:flex; flex-direction:column;
}
.cd-tm-globe-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; position:relative; z-index:2; }
.cd-tm-globe-head h3{ font-family:var(--font-display); font-weight:800; font-size:20px; color:#fff; margin:0 0 4px; letter-spacing:-0.01em; }
.cd-tm-globe-head p{ font-size:13px; color:#A9BAD8; margin:0; max-width:340px; }
.cd-tm-live{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:11px; font-weight:600; letter-spacing:0.08em; color:#fff; background:rgba(217,45,32,.18); border:1px solid rgba(217,45,32,.4); padding:5px 12px; border-radius:999px; }
.cd-tm-live-dot{ width:7px; height:7px; border-radius:50%; background:var(--sev-high); animation:cd-pulse 1.6s infinite; }

.cd-tm-canvas-wrap{ position:relative; flex:1; min-height:300px; margin:6px 0; }
.cd-tm-globe{ position:absolute; inset:0; width:100%; height:100%; display:block; cursor:grab; touch-action:none; }
.cd-tm-globe.cd-dragging{ cursor:grabbing; }

.cd-tm-globe-foot{ display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; position:relative; z-index:2; padding-top:8px; border-top:1px solid rgba(255,255,255,.1); }
.cd-tm-legend{ display:flex; align-items:center; gap:10px; font-size:12.5px; color:#C6D2EA; flex-wrap:wrap; }
.cd-tm-legend strong{ color:#fff; font-family:var(--font-display); }
.cd-tm-legend-dot{ width:3px; height:3px; border-radius:50%; background:rgba(255,255,255,.35); }
.cd-tm-link{ font-size:13px; font-weight:700; color:#9EC0FF; text-decoration:none; white-space:nowrap; }
.cd-tm-link:hover{ color:#fff; }

/* Threat level card */
.cd-tm-level-card{ background:#fff; border:1.5px solid var(--border); border-top:4px solid var(--lvl); border-radius:20px; padding:24px 26px; display:flex; flex-direction:column; box-shadow:0 10px 30px rgba(11,30,60,.06); }
.cd-lvl-low{ --lvl:var(--blue); } .cd-lvl-guarded{ --lvl:var(--blue-dark); }
.cd-lvl-elevated{ --lvl:var(--sev-medium); } .cd-lvl-high{ --lvl:var(--sev-high); } .cd-lvl-severe{ --lvl:var(--sev-critical); }
.cd-tm-level-eyebrow{ font-size:12px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; color:var(--muted); }
.cd-tm-level-name{ font-family:var(--font-display); font-weight:800; font-size:34px; color:var(--lvl); line-height:1.05; margin:6px 0 8px; letter-spacing:-0.02em; }
.cd-tm-level-caption{ font-size:14px; line-height:1.55; color:var(--body-text); margin:0 0 18px; }
.cd-tm-meter{ display:flex; gap:6px; }
.cd-tm-seg{ flex:1; height:10px; border-radius:999px; background:var(--section-bg); border:1px solid var(--border); }
.cd-tm-seg.filled{ background:var(--lvl); border-color:var(--lvl); }
.cd-tm-meter-scale{ display:flex; justify-content:space-between; margin-top:7px; font-size:11px; color:var(--muted); }
.cd-tm-level-stats{ list-style:none; margin:18px 0 0; padding:18px 0 0; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:10px; }
.cd-tm-level-stats li{ font-size:13.5px; color:var(--body-text); }
.cd-tm-stat-num{ font-family:var(--font-display); font-weight:800; font-size:16px; color:var(--navy); margin-right:4px; }
.cd-tm-level-card .cd-tm-link{ color:var(--blue); margin-top:18px; }
.cd-tm-level-card .cd-tm-link:hover{ color:var(--blue-dark); }
.cd-tm-note{ font-size:11.5px; color:var(--muted); line-height:1.5; margin:12px 0 0; }

/* ==========================================================================
   THREAT INTELLIGENCE CENTER  (enterprise dashboard layout)
   ========================================================================== */
.cd-tic{ }
.cd-tic-head{ display:flex; justify-content:space-between; align-items:stretch; gap:20px; flex-wrap:wrap; background:#fff; border:1.5px solid var(--border); border-radius:18px; padding:24px 26px; margin-bottom:18px; box-shadow:0 6px 20px rgba(11,30,60,.05); }
.cd-tic-title{ font-family:var(--font-display); font-weight:800; font-size:clamp(24px,3vw,32px); color:var(--navy); margin:0 0 8px; letter-spacing:-0.02em; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.cd-tic-live{ display:inline-flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:11px; font-weight:600; letter-spacing:0.08em; color:var(--sev-high); background:#FDECEA; border:1px solid #F6CFC9; padding:4px 11px; border-radius:999px; }
.cd-tic-sub{ font-size:14.5px; color:var(--body-text); margin:0; max-width:640px; line-height:1.55; }
.cd-tic-level{ flex:0 0 240px; border:1.5px solid var(--border); border-left:4px solid var(--lvl,var(--blue)); border-radius:14px; padding:16px 18px; display:flex; flex-direction:column; gap:8px; }
.cd-tic-level-label{ font-size:11px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:var(--muted); }
.cd-tic-level-name{ font-family:var(--font-display); font-weight:800; font-size:26px; color:var(--lvl,var(--blue)); line-height:1; }
.cd-tic-level-cap{ font-size:12px; color:var(--body-text); line-height:1.4; }

.cd-tic-stats{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:18px; }
@media (max-width:900px){ .cd-tic-stats{ grid-template-columns:repeat(2,1fr); } }
.cd-tic-stat{ background:#fff; border:1.5px solid var(--border); border-radius:14px; padding:18px 20px; display:flex; flex-direction:column; gap:3px; position:relative; overflow:hidden; }
.cd-tic-stat::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--accent,var(--blue)); }
.cd-tic-stat-red{ --accent:var(--sev-high); } .cd-tic-stat-blue{ --accent:var(--blue); }
.cd-tic-stat-num{ font-family:var(--font-display); font-weight:800; font-size:30px; color:var(--navy); line-height:1; }
.cd-tic-stat-red .cd-tic-stat-num{ color:var(--sev-critical); } .cd-tic-stat-blue .cd-tic-stat-num{ color:var(--blue); }
.cd-tic-stat-pct{ font-size:17px; }
.cd-tic-stat-label{ font-size:12.5px; color:var(--muted); font-weight:600; }
.cd-tic-stat-hint{ font-weight:500; opacity:.8; }

.cd-tic-mid{ display:grid; grid-template-columns:1.5fr 1fr; gap:18px; margin-bottom:18px; align-items:stretch; }
@media (max-width:900px){ .cd-tic-mid{ grid-template-columns:1fr; } }
.cd-tic-globe{ margin:0; }
.cd-tic-timeline{ background:#fff; border:1.5px solid var(--border); border-radius:18px; padding:20px 22px; box-shadow:0 6px 20px rgba(11,30,60,.05); }
.cd-tic-card-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.cd-tic-card-head h3{ font-family:var(--font-display); font-weight:700; font-size:16px; color:var(--navy); margin:0; }
.cd-tl{ list-style:none; margin:0; padding:0; }
.cd-tl-item{ display:grid; grid-template-columns:52px 14px 1fr; align-items:start; gap:10px; padding:11px 0; border-bottom:1px solid var(--border); }
.cd-tl-item:last-child{ border-bottom:none; }
.cd-tl-when{ font-family:var(--font-mono); font-size:11px; color:var(--muted); padding-top:2px; }
.cd-tl-dot{ width:9px; height:9px; border-radius:50%; margin-top:5px; }
.cd-tl-critical{ background:var(--sev-critical); } .cd-tl-high{ background:var(--sev-high); }
.cd-tl-body{ text-decoration:none; display:flex; flex-direction:column; gap:2px; }
.cd-tl-title{ font-size:13.5px; font-weight:600; color:var(--navy); line-height:1.35; }
.cd-tl-sub{ font-family:var(--font-mono); font-size:11.5px; color:var(--muted); }
.cd-tl-body:hover .cd-tl-title{ color:var(--blue); }

/* Card additions: category, tags, metrics, EPSS */
.cd-tcard-cat{ font-size:11.5px; font-weight:600; color:var(--muted); margin-top:-4px; }
.cd-tcard-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.cd-tag{ font-size:10.5px; font-weight:700; letter-spacing:0.02em; padding:3px 9px; border-radius:999px; }
.cd-tag-red{ background:#FDECEA; color:var(--sev-critical); } .cd-tag-navy{ background:var(--section-bg); color:var(--navy); }
.cd-tag-blue{ background:var(--blue-tint); color:var(--blue-dark); } .cd-tag-amber{ background:#FEF3E2; color:#B45309; }
.cd-tcard-metrics{ display:flex; gap:8px; }
.cd-tcard-cvss{ font-family:var(--font-mono); font-size:11px; font-weight:500; color:var(--navy); background:var(--section-bg); border:1px solid var(--border); padding:3px 8px; border-radius:6px; }
.cd-tcard-epss{ font-family:var(--font-mono); font-size:11px; font-weight:500; color:var(--blue-dark); background:var(--blue-tint); border:1px solid var(--blue-tint-2); padding:3px 8px; border-radius:6px; }

/* Analytics: donut + bars + tech + sources */
.cd-tic-analytics{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:22px 0 18px; }
@media (max-width:900px){ .cd-tic-analytics{ grid-template-columns:1fr; } }
.cd-tic-panel{ background:#fff; border:1.5px solid var(--border); border-radius:18px; padding:20px 22px; box-shadow:0 6px 20px rgba(11,30,60,.05); }
.cd-donut-wrap{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.cd-donut{ width:120px; height:120px; border-radius:50%; position:relative; flex-shrink:0; }
.cd-donut-hole{ position:absolute; inset:26px; background:#fff; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.cd-donut-hole span{ font-family:var(--font-display); font-weight:800; font-size:24px; color:var(--navy); line-height:1; }
.cd-donut-hole small{ font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; }
.cd-donut-legend{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; flex:1; min-width:150px; }
.cd-donut-legend li{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--body-text); }
.cd-lg-dot{ width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.cd-lg-val{ margin-left:auto; font-weight:600; color:var(--navy); font-size:12.5px; }
.cd-bars{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.cd-bars li{ display:grid; grid-template-columns:1fr 90px auto; align-items:center; gap:10px; }
.cd-bar-label{ font-size:13px; color:var(--body-text); }
.cd-bar-track{ height:8px; border-radius:999px; background:var(--section-bg); overflow:hidden; }
.cd-bar-fill{ display:block; height:100%; border-radius:999px; background:var(--sev-high); }
.cd-bars-navy .cd-bar-fill{ background:var(--blue); }
.cd-bar-val{ font-family:var(--font-display); font-weight:700; font-size:13px; color:var(--navy); text-align:right; min-width:22px; }
.cd-bar-empty{ font-size:12.5px; color:var(--muted); }
.cd-tic-tech{ background:#fff; border:1.5px solid var(--border); border-radius:18px; padding:20px 22px; margin-bottom:18px; box-shadow:0 6px 20px rgba(11,30,60,.05); }
.cd-tech-row{ display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
@media (max-width:760px){ .cd-tech-row{ grid-template-columns:repeat(3,1fr); } }
.cd-tech-tile{ background:var(--section-bg); border:1px solid var(--border); border-radius:12px; padding:16px 10px; text-align:center; display:flex; flex-direction:column; gap:4px; }
.cd-tech-name{ font-size:12.5px; font-weight:600; color:var(--navy); }
.cd-tech-count{ font-family:var(--font-display); font-weight:800; font-size:20px; color:var(--blue); }
.cd-tic-sources{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:16px 0 4px; }
.cd-tic-sources-label{ font-size:11px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:var(--muted); }
.cd-src-badge{ font-size:12px; font-weight:600; color:var(--navy); background:#fff; border:1.5px solid var(--border); padding:6px 13px; border-radius:999px; }
.cd-tic-sources-note{ font-size:11.5px; color:var(--muted); margin-left:auto; }

/* ==========================================================================
   HOME SECTION VARIANTS  ([cyberdilmeth_hub variant="list" | "feature"])
   ========================================================================== */
.cd-hlist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.cd-hlist-item{ position:relative; background:#fff; border:1.5px solid var(--border); border-radius:12px; overflow:hidden; transition:border-color .18s ease, box-shadow .18s ease; }
.cd-hlist-item::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--accent,var(--border)); }
.cd-hlist-item:hover{ border-color:var(--border-hover); box-shadow:0 8px 20px rgba(36,99,235,.10); }
.cd-hlist-item > a{ display:flex; align-items:center; gap:12px; padding:12px 16px; text-decoration:none; color:inherit; }
.cd-hlist-main{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.cd-hlist-title{ font-family:var(--font-display); font-weight:700; font-size:14px; color:var(--navy); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cd-hlist-cve{ font-family:var(--font-mono); font-size:11px; color:var(--blue); }
.cd-hlist-date{ font-family:var(--font-mono); font-size:11px; color:var(--muted); flex-shrink:0; }

.cd-hfeature{ display:grid; grid-template-columns:1.4fr 1fr; gap:18px; align-items:start; }
@media (max-width:820px){ .cd-hfeature{ grid-template-columns:1fr; } }
.cd-hfeature-lead{ position:relative; display:flex; flex-direction:column; gap:10px; overflow:hidden; background:#fff; border:1.5px solid var(--border); border-radius:16px; padding:24px; text-decoration:none; color:inherit; box-shadow:0 6px 20px rgba(11,30,60,.05); transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.cd-hfeature-lead::before{ content:""; position:absolute; top:0; left:0; right:0; height:3px; background:var(--accent,var(--border)); }
.cd-hfeature-lead:hover{ border-color:var(--border-hover); box-shadow:0 18px 38px rgba(36,99,235,.13); transform:translateY(-3px); }
.cd-hfeature-lead h3{ font-family:var(--font-display); font-weight:800; font-size:20px; color:var(--navy); margin:0; line-height:1.3; }
.cd-hfeature-lead p{ font-size:14px; line-height:1.6; color:var(--body-text); margin:0; }
.cd-hfeature-list{ gap:8px; }

/* ==========================================================================
   MOTION SAFETY
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  .cd-ticker-track{ animation:none; } .cd-live-dot,.cd-tm-live-dot,.cd-sev-pulse{ animation:none; }
  .cd-tcard,.cd-filter-pill,.cd-view-all{ transition:none; }
}

/* ==========================================================================
   v7.0 — Threat Intelligence Center (enterprise dashboard) + home variants
   ========================================================================== */

/* Header */
.cd-tic{ padding-top:36px; }
.cd-tic-head{ display:flex; justify-content:space-between; align-items:stretch; gap:22px; flex-wrap:wrap; margin-bottom:22px; }
.cd-tic-title{ font-family:var(--font-display); font-weight:800; font-size:clamp(24px,3vw,32px); color:var(--navy); margin:0 0 8px; letter-spacing:-0.02em; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.cd-tic-live{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:11px; font-weight:600; letter-spacing:0.06em; color:var(--sev-high); background:#FDECEA; border:1px solid #F5C6C0; padding:4px 11px; border-radius:999px; }
.cd-tic-sub{ font-size:14.5px; color:var(--body-text); margin:0; max-width:640px; line-height:1.6; }
.cd-tic-level{ flex:0 0 260px; background:#fff; border:1.5px solid var(--border); border-top:4px solid var(--lvl,var(--blue)); border-radius:16px; padding:16px 20px; display:flex; flex-direction:column; gap:6px; }
.cd-tic-level-label{ font-size:11px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:var(--muted); }
.cd-tic-level-name{ font-family:var(--font-display); font-weight:800; font-size:26px; color:var(--lvl,var(--blue)); line-height:1; }
.cd-tic-level .cd-tm-meter{ margin:4px 0 2px; }
.cd-tic-level-cap{ font-size:12px; color:var(--muted); line-height:1.4; }

/* Stat row (5) */
.cd-tic-stats{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:22px; }
@media (max-width:1000px){ .cd-tic-stats{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:600px){ .cd-tic-stats{ grid-template-columns:repeat(2,1fr); } }
.cd-tic-stat{ background:#fff; border:1.5px solid var(--border); border-radius:14px; padding:18px 20px; display:flex; flex-direction:column; gap:3px; position:relative; overflow:hidden; }
.cd-tic-stat::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--accent,var(--blue)); }
.cd-tic-stat-red{ --accent:var(--sev-high); } .cd-tic-stat-blue{ --accent:var(--blue); }
.cd-tic-stat-num{ font-family:var(--font-display); font-weight:800; font-size:30px; color:var(--navy); line-height:1.1; }
.cd-tic-stat-red .cd-tic-stat-num{ color:var(--sev-critical); } .cd-tic-stat-blue .cd-tic-stat-num{ color:var(--blue); }
.cd-tic-stat-pct{ font-size:17px; }
.cd-tic-stat-label{ font-size:12.5px; color:var(--muted); font-weight:600; }
.cd-tic-stat-hint{ font-weight:500; opacity:.8; }

/* Mid row: globe + timeline */
.cd-tic-mid{ display:grid; grid-template-columns:1.35fr 1fr; gap:20px; margin-bottom:22px; align-items:stretch; }
@media (max-width:900px){ .cd-tic-mid{ grid-template-columns:1fr; } }
.cd-tic-globe{ min-height:340px; }
.cd-tic-timeline{ background:#fff; border:1.5px solid var(--border); border-radius:18px; padding:20px 22px; }
.cd-tic-card-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.cd-tic-card-head h3{ font-family:var(--font-display); font-weight:700; font-size:15px; color:var(--navy); margin:0; }
.cd-tl{ list-style:none; margin:0; padding:0; }
.cd-tl-item{ display:flex; align-items:flex-start; gap:12px; padding:11px 0; border-bottom:1px solid var(--border); }
.cd-tl-item:last-child{ border-bottom:none; }
.cd-tl-when{ flex:0 0 46px; font-family:var(--font-mono); font-size:11px; color:var(--muted); padding-top:2px; }
.cd-tl-dot{ flex:0 0 9px; width:9px; height:9px; border-radius:50%; margin-top:5px; }
.cd-tl-critical{ background:var(--sev-critical); } .cd-tl-high{ background:var(--sev-high); }
.cd-tl-body{ text-decoration:none; display:flex; flex-direction:column; gap:2px; }
.cd-tl-title{ font-size:13.5px; font-weight:600; color:var(--navy); }
.cd-tl-sub{ font-size:12px; color:var(--muted); font-family:var(--font-mono); }
.cd-tl-body:hover .cd-tl-title{ color:var(--blue); }

/* Card additions: category + tags + metrics + epss */
.cd-tcard-cat{ font-size:12px; color:var(--muted); font-weight:600; margin-top:-2px; }
.cd-tcard-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.cd-tag{ font-size:10.5px; font-weight:700; letter-spacing:.02em; padding:3px 9px; border-radius:6px; }
.cd-tag-red{ color:var(--sev-critical); background:#FDECEA; } .cd-tag-navy{ color:#fff; background:var(--navy); }
.cd-tag-blue{ color:var(--blue); background:var(--blue-tint); } .cd-tag-amber{ color:#7A4A00; background:#FDF0D5; }
.cd-tcard-metrics{ display:flex; gap:8px; align-items:center; }
.cd-tcard-epss{ font-family:var(--font-mono); font-size:11px; font-weight:600; color:var(--blue); background:var(--blue-tint); padding:3px 8px; border-radius:6px; }

/* Analytics: donut + bars */
.cd-tic-analytics{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:26px 0 18px; }
@media (max-width:900px){ .cd-tic-analytics{ grid-template-columns:1fr; } }
.cd-tic-panel{ background:#fff; border:1.5px solid var(--border); border-radius:16px; padding:20px 22px; }
.cd-donut-wrap{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.cd-donut{ width:130px; height:130px; border-radius:50%; position:relative; flex:0 0 130px; }
.cd-donut-hole{ position:absolute; inset:26px; background:#fff; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.cd-donut-hole span{ font-family:var(--font-display); font-weight:800; font-size:26px; color:var(--navy); line-height:1; }
.cd-donut-hole small{ font-size:11px; color:var(--muted); }
.cd-donut-legend{ list-style:none; margin:0; padding:0; flex:1; min-width:150px; }
.cd-donut-legend li{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--body-text); padding:5px 0; }
.cd-lg-dot{ width:9px; height:9px; border-radius:2px; flex:0 0 9px; }
.cd-lg-val{ margin-left:auto; font-weight:600; color:var(--navy); font-size:12.5px; }
.cd-bars{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.cd-bars li{ display:grid; grid-template-columns:1fr 1.4fr auto; align-items:center; gap:10px; }
.cd-bar-label{ font-size:12.5px; color:var(--body-text); font-weight:600; }
.cd-bar-track{ height:8px; background:var(--section-bg); border-radius:999px; overflow:hidden; }
.cd-bar-fill{ display:block; height:100%; border-radius:999px; background:var(--sev-high); }
.cd-bars-navy .cd-bar-fill{ background:var(--blue); }
.cd-bar-val{ font-family:var(--font-mono); font-size:12px; color:var(--muted); }
.cd-bar-empty{ font-size:12.5px; color:var(--muted); }

/* Top technologies */
.cd-tic-tech{ background:#fff; border:1.5px solid var(--border); border-radius:16px; padding:20px 22px; margin-bottom:18px; }
.cd-tech-row{ display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
@media (max-width:800px){ .cd-tech-row{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:480px){ .cd-tech-row{ grid-template-columns:repeat(2,1fr); } }
.cd-tech-tile{ background:var(--section-bg); border:1px solid var(--border); border-radius:12px; padding:14px; text-align:center; display:flex; flex-direction:column; gap:4px; }
.cd-tech-name{ font-size:12.5px; font-weight:600; color:var(--navy); }
.cd-tech-count{ font-family:var(--font-display); font-weight:800; font-size:20px; color:var(--blue); }

/* Data sources */
.cd-tic-sources{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:16px 0 0; }
.cd-tic-sources-label{ font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.cd-src-badge{ font-size:12px; font-weight:600; color:var(--navy); background:#fff; border:1.5px solid var(--border); padding:6px 13px; border-radius:999px; }
.cd-tic-sources-note{ font-size:11.5px; color:var(--muted); margin-left:auto; }

/* Home variant 1: compact list */
.cd-hlist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.cd-hlist-item{ background:#fff; border:1.5px solid var(--border); border-radius:12px; position:relative; overflow:hidden; transition:border-color .18s ease, transform .18s ease; }
.cd-hlist-item::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--accent,var(--border)); }
.cd-hlist-item:hover{ border-color:var(--border-hover); transform:translateX(2px); }
.cd-hlist-item a{ display:flex; align-items:center; gap:14px; padding:13px 18px; text-decoration:none; color:inherit; }
.cd-hlist-main{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.cd-hlist-title{ font-family:var(--font-display); font-weight:700; font-size:14px; color:var(--navy); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cd-hlist-cve{ font-family:var(--font-mono); font-size:11px; color:var(--blue); }
.cd-hlist-date{ font-family:var(--font-mono); font-size:11px; color:var(--muted); flex:0 0 auto; }

/* Home variant 2: featured + mini list */
.cd-hfeature{ display:grid; grid-template-columns:1.2fr 1fr; gap:18px; align-items:start; }
@media (max-width:820px){ .cd-hfeature{ grid-template-columns:1fr; } }
.cd-hfeature-lead{ display:flex; flex-direction:column; gap:10px; background:#fff; border:1.5px solid var(--border); border-radius:16px; padding:24px; text-decoration:none; color:inherit; position:relative; overflow:hidden; box-shadow:0 6px 20px rgba(11,30,60,.05); transition:box-shadow .2s ease, transform .2s ease; }
.cd-hfeature-lead::before{ content:""; position:absolute; top:0; left:0; right:0; height:4px; background:var(--accent,var(--border)); }
.cd-hfeature-lead:hover{ box-shadow:0 18px 38px rgba(36,99,235,.13); transform:translateY(-3px); }
.cd-hfeature-lead h3{ font-family:var(--font-display); font-weight:800; font-size:20px; color:var(--navy); margin:0; }
.cd-hfeature-lead p{ font-size:14px; line-height:1.6; color:var(--body-text); margin:0; }
.cd-hfeature-list{ gap:8px; }
