.intel-page {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px) 100px;
  --acc: var(--accent, #a0ff70);
  --ink: var(--ink-muted, #8a9a8a);
  --panel: rgba(0, 0, 0, 0.35);
  --border: rgba(160, 255, 112, 0.12);
  --border-hi: rgba(160, 255, 112, 0.35);
}

.hero {
  padding: clamp(16px, 2.5vh, 32px) 0 clamp(10px, 1.5vh, 20px);
  max-height: 300px;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.35s ease, padding 0.35s ease;
}
.hero.hidden {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0; font-weight: 700; }

/* Filter bar */
.filter-bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 15, 10, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0; margin-bottom: 8px;
}
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  background: transparent; border: 1px solid var(--border); border-radius: 4px;
  color: var(--ink); font-family: var(--font-mono, monospace); font-size: 0.78rem;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 12px;
  cursor: pointer; transition: all .15s ease;
}
.filter-pill:hover { border-color: var(--border-hi); color: var(--acc); }
.filter-pill.active { background: rgba(160, 255, 112, 0.08); border-color: var(--acc); color: var(--acc); }
.filter-pill .chev { opacity: 0.5; margin-left: 4px; }
.filter-options { display: none; gap: 6px; flex-wrap: wrap; padding: 10px 0 4px; }
.filter-options.open { display: flex; }
.filter-options .opt {
  background: transparent; border: 1px solid var(--border); border-radius: 3px;
  color: var(--ink); font-family: var(--font-mono, monospace); font-size: 0.75rem;
  padding: 4px 10px; cursor: pointer; transition: all .15s;
}
.filter-options .opt:hover { border-color: var(--border-hi); color: var(--acc); }
.filter-options .opt.on { background: rgba(160, 255, 112, 0.12); border-color: var(--acc); color: var(--acc); }
.filter-active {
  display: none; gap: 6px; flex-wrap: wrap; padding-top: 8px;
  border-top: 1px solid var(--border); margin-top: 8px;
}
.filter-active.on { display: flex; }
.filter-active .chip {
  background: rgba(160, 255, 112, 0.1); border: 1px solid var(--border-hi);
  border-radius: 3px; color: var(--acc); font-family: var(--font-mono, monospace);
  font-size: 0.72rem; padding: 3px 8px; cursor: pointer;
}
.filter-active .clear-all {
  margin-left: auto; background: transparent; border: none; color: var(--ink);
  font-family: var(--font-mono, monospace); font-size: 0.72rem; cursor: pointer;
  text-decoration: underline;
}

/* Search (moved up) */
.search-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.search-input {
  width: 100%; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border);
  border-radius: 6px; color: inherit; font-family: var(--font-mono, monospace);
  font-size: 1rem; padding: 14px 18px; outline: none; transition: border-color .15s;
}
.search-input:focus { border-color: var(--acc); box-shadow: 0 0 12px rgba(160,255,112,0.15); }
.search-results {
  margin-top: 12px;
  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 255, 112, 0.4) transparent;
}
.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb {
  background: rgba(160, 255, 112, 0.35);
  border-radius: 3px;
}
.search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 255, 112, 0.6);
}
/* bottom fade */
.search-results:has(.search-hit:nth-child(6))::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to bottom, rgba(160,255,112,0.25), transparent);
  position: sticky;
  bottom: 0;
  margin-top: -1px;
}
.search-results:empty { display: none; }
.search-hit {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  cursor: pointer; font-size: 0.88rem;
}
.search-hit:hover { background: rgba(160, 255, 112, 0.04); }
.search-hit-type {
  font-family: var(--font-mono, monospace); font-size: 0.68rem;
  color: var(--acc); margin-right: 8px; opacity: 0.9;
}

/* Pulse */
.pulse-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  max-height: 1000px;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.25s ease, margin-bottom 0.25s ease;
}
.pulse-band.searching,
.pulse-band.view-hidden {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}
@media (max-width: 900px) { .pulse-band { grid-template-columns: repeat(2, 1fr); } }
.pulse-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 18px; cursor: pointer; transition: all .2s ease;
  min-height: 140px; display: flex; flex-direction: column; justify-content: space-between;
}
.pulse-card:hover { border-color: var(--border-hi); background: rgba(160, 255, 112, 0.04); transform: translateY(-2px); }
.pulse-label { font-family: var(--font-mono, monospace); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc); opacity: 0.85; }
.pulse-value { font-size: 2rem; font-weight: 700; line-height: 1; margin: 6px 0; }
.pulse-sub { font-size: 0.82rem; color: var(--ink); }

/* Breadcrumb */
.breadcrumb { padding: 12px 0; font-family: var(--font-mono, monospace); font-size: 0.8rem; color: var(--ink); }
.breadcrumb:empty { display: none; }
.breadcrumb a, .breadcrumb .crumb { color: var(--ink); text-decoration: none; cursor: pointer; border-bottom: 1px dotted transparent; }
.breadcrumb a:hover, .breadcrumb .crumb:hover { color: var(--acc); border-bottom-color: var(--acc); }
.breadcrumb .sep { opacity: 0.4; margin: 0 8px; }
.breadcrumb .current { color: var(--acc); }

/* Full-width card */
.full-card { margin-bottom: 14px; }

/* Card base */
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card-head {
  padding: 14px 18px 10px; display: flex; align-items: baseline;
  justify-content: space-between; border-bottom: 1px solid var(--border);
}
.card-head h2 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }
.card-meta { font-family: var(--font-mono, monospace); font-size: 0.72rem; color: var(--ink); opacity: 0.85; }
.card-body { padding: 14px 18px; flex: 1; min-height: 0; }

/* Bento row: Top Threats (2fr) + Orbit (1fr) */
.bento-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.news-vendors-row.no-news { grid-template-columns: 1fr; }
@media (max-width: 900px) { .bento-row { grid-template-columns: 1fr; } }
.scroll-body { max-height: 520px; overflow-y: auto; }
.orbit-card .card-body { padding: 0; }
.technique-row {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.technique-row:hover { background: rgba(160, 255, 112, 0.04); }
.technique-row:last-child { border-bottom: none; }
.tech-name {
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.35;
}
.tech-tactic {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: var(--acc);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Timeline (full width, only when filtered or in region) */
.timeline-card { margin-top: 24px; }
.timeline-card .card-body { padding: 20px 24px 30px; }
#timeline-svg { display: block; height: 320px; }

/* Vendors list */
.vendor-row { display: grid; grid-template-columns: 1fr 3fr 60px; gap: 12px; align-items: center; padding: 8px 0; cursor: pointer; font-size: 0.9rem; }
.vendor-row:hover { color: var(--acc); }
.vendor-name { font-weight: 500; }
.vendor-bar { height: 8px; background: rgba(160, 255, 112, 0.08); border-radius: 4px; overflow: hidden; }
.vendor-bar-fill { height: 100%; background: var(--acc); }
.vendor-count { text-align: right; font-family: var(--font-mono, monospace); font-size: 0.75rem; opacity: 0.8; }

/* CVE card */
.cve-card {
  padding: 12px 14px; background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px;
  cursor: pointer; transition: all .15s ease;
}
.cve-card:hover { border-color: var(--border-hi); background: rgba(160, 255, 112, 0.04); }
.cve-sev {
  display: inline-block; font-family: var(--font-mono, monospace); font-size: 0.65rem;
  letter-spacing: 0.08em; padding: 2px 6px; border-radius: 2px; margin-right: 6px; text-transform: uppercase;
}
.cve-sev.crit { background: rgba(255, 68, 68, 0.15); color: #ff6b6b; }
.cve-sev.high { background: rgba(255, 140, 60, 0.15); color: #ff9a4a; }
.cve-sev.med { background: rgba(255, 200, 60, 0.15); color: #ffc83c; }
.cve-sev.low { background: rgba(120, 200, 255, 0.15); color: #7ac8ff; }
.cve-sev.unk { background: rgba(160, 160, 160, 0.15); color: #aaa; }
.cve-title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cve-desc { font-size: 0.8rem; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.cve-meta { font-family: var(--font-mono, monospace); font-size: 0.68rem; color: var(--ink); opacity: 0.7; }
.cve-badges { margin-top: 6px; }
.cve-badge { display: inline-block; font-family: var(--font-mono, monospace); font-size: 0.65rem; padding: 2px 6px; border-radius: 2px; margin-right: 4px; letter-spacing: 0.05em; }
.cve-badge.kev { background: rgba(255, 68, 68, 0.15); color: #ff6b6b; }
.cve-badge.rans { background: rgba(255, 68, 68, 0.25); color: #ff8888; }
.cve-badge.high-epss { background: rgba(255, 200, 60, 0.15); color: #ffc83c; }
.cve-badge.new { background: rgba(160, 255, 112, 0.15); color: var(--acc); }

/* Region view */
.region-head { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 24px 28px; margin-bottom: 16px; }
.region-head h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
.region-head .region-count { font-family: var(--font-mono, monospace); font-size: 0.82rem; color: var(--acc); }
.region-head .region-explanation { font-size: 0.95rem; color: var(--ink); margin-top: 10px; line-height: 1.5; max-width: 800px; }
.region-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }

/* Item view */
.item-body { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 32px clamp(20px, 4vw, 48px); max-width: 900px; margin: 0 auto; }
.item-body .item-sev { display: inline-block; margin-bottom: 12px; }
.item-body h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 16px; line-height: 1.25; letter-spacing: -0.01em; }
.item-body .item-desc { font-size: 1rem; line-height: 1.6; color: var(--ink); margin-bottom: 24px; }
.item-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 28px; }
.item-metric { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: 6px; padding: 12px; }
.item-metric .metric-label { font-family: var(--font-mono, monospace); font-size: 0.68rem; color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase; }
.item-metric .metric-val { font-family: var(--font-mono, monospace); font-size: 1.15rem; color: var(--acc); margin-top: 4px; }
.item-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.item-section h3 { font-size: 0.82rem; font-family: var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc); margin: 0 0 10px; }
.item-section p { color: var(--ink); line-height: 1.55; margin: 0; }
.item-link { color: var(--acc); cursor: pointer; border-bottom: 1px dotted var(--acc); }
.remediation-box { background: rgba(160, 255, 112, 0.05); border-left: 3px solid var(--acc); padding: 16px 18px; border-radius: 4px; margin-top: 8px; }
.remediation-box p { color: #dde6dd; line-height: 1.6; }
.remediation-box p b { color: var(--acc); }

/* News */
#news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.news-item {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .15s;
}
.news-item:hover { border-color: var(--border-hi); }
.news-date {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: var(--acc);
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.news-title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 4px;
  color: inherit;
  text-decoration: none;
  display: block;
}
a.news-title:hover { color: var(--acc); }
.news-preview {
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Trust */
.trust-hint {
  margin-top: 60px; padding: 20px; text-align: center;
  font-family: var(--font-mono, monospace); font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--ink); opacity: 0.5;
}
.trust { opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.8s ease, max-height 0.8s ease, margin-top 0.8s ease; pointer-events: none; margin-top: 0; }
.trust.revealed { opacity: 1; max-height: 4000px; pointer-events: auto; margin-top: 40px; }
.trust-inner { border-top: 1px solid var(--border); padding-top: 40px; }
.trust h2 { margin-bottom: 14px; }
.trust h3 { margin-top: 32px; margin-bottom: 10px; font-size: 1.05rem; }
.trust p, .trust li { color: var(--ink); font-size: 0.9rem; line-height: 1.6; }
.trust ul { padding-left: 20px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
@media (max-width: 720px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.trust-card .badge { display: inline-block; font-family: var(--font-mono, monospace); font-size: 0.68rem; padding: 3px 8px; border-radius: 3px; background: rgba(255, 180, 80, 0.15); color: #ffb450; margin-bottom: 10px; }
.trust-card b { display: block; margin-bottom: 6px; }
