/* =============================================
   RATScanner — KEYDAL Güvenlik Araştırmaları
   Complete Stylesheet
   ============================================= */

/* ---- CSS Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ---- Root Variables ---- */
:root {
  --bg: #08090f;
  --surface: #0e1018;
  --card: #12151f;
  --card-hover: #161a26;
  --border: rgba(255,255,255,.06);
  --border-strong: rgba(255,255,255,.12);
  --red: #e83b3b;
  --red-dim: #b02e2e;
  --red-glow: rgba(232,59,59,.15);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-subtle: #475569;
  --green: #22c55e;
  --yellow: #eab308;
  --blue: #3b82f6;
  --orange: #f97316;
  --purple: #a855f7;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.6);
  --transition: 0.2s ease;
}

/* ---- Base ---- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Container ---- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { color: var(--text); line-height: 1.75; }
code { font-family: var(--font-mono); font-size: 0.85em; }
.mono { font-family: var(--font-mono); }
.small { font-size: 0.8em; }
.accent { color: var(--red); }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,9,15,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-accent { color: var(--red); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 5px 9px;
  border-radius: var(--radius);
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.nav-cta {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--red);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--red-dim); transform: translateY(-1px); }

/* ---- Hero / Site Header ---- */
.site-header {
  padding: 80px 0 60px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,59,59,.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.header-content { max-width: 700px; margin: 0 auto; }
.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(232,59,59,.1);
  border: 1px solid rgba(232,59,59,.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.site-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.site-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.header-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ---- Threat Ticker ---- */
.threat-ticker {
  display: flex;
  align-items: center;
  height: 38px;
  background: rgba(8,9,15,.92);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  user-select: none;
}
.threat-ticker--pinned {
  position: sticky;
  top: 60px;
  z-index: 90;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.ticker-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f87171;
  border-right: 1px solid var(--border);
  height: 100%;
  white-space: nowrap;
  background: rgba(239,68,68,.08);
}
.ticker-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  flex-shrink: 0;
  animation: ticker-dot-pulse 1.4s ease-in-out infinite;
}
@keyframes ticker-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(248,113,113,.6); }
  50% { opacity: .6; box-shadow: 0 0 0 4px rgba(248,113,113,0); }
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
}
.ticker-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--text-muted);
  will-change: transform;
  animation: ticker-run var(--ticker-dur, 60s) linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }
@keyframes ticker-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.t-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 32px;
}
.t-tag {
  font-size: .62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.t-tag--critical { background: rgba(239,68,68,.2);   color: #f87171; }
.t-tag--high     { background: rgba(249,115,22,.18); color: #fb923c; }
.t-tag--medium   { background: rgba(234,179,8,.18);  color: #fbbf24; }
.t-tag--low      { background: rgba(107,114,128,.2); color: #9ca3af; }
.t-tag--danger   { background: rgba(239,68,68,.25);  color: #f87171; }
.t-tag--cve      { background: rgba(139,92,246,.18); color: #a78bfa; }
.t-sep {
  color: rgba(255,255,255,.12);
  margin-left: 16px;
  font-size: .55rem;
}
.ticker-content a {
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}
.ticker-content a:hover { color: var(--red); }

/* ════════════════════════════════════════════
   C2 SUNUCU LİSTESİ
   ════════════════════════════════════════════ */

/* Header */
.page-header--c2 {
  background: linear-gradient(160deg,#08090f 0%,#0d0a0a 100%);
  padding: 48px 0 0;
}

/* Stats grid */
.c2-header-stats-row {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  min-width: 260px;
}
.c2-hs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2,#1e1e2e);
  border: 1px solid var(--border,#313244);
  border-radius: 10px;
  padding: 14px 16px;
}
.c2-hs-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.c2-hs-num--sinkhole { color: #eab308; }
.c2-hs-label {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Distribution bar */
.c2-dist-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.c2-dist-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  font-size: .71rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.c2-dist-bar {
  position: relative;
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.c2-dist-fill {
  position: absolute;
  top: 0; bottom: 0;
  transition: width .6s ease;
}
.c2-dist-fill--active { left: 0; background: #22c55e; border-radius: 4px 0 0 4px; }
.c2-dist-fill--sink   { background: #eab308; }
.c2-dist-legend {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.c2-dist-legend span { font-size: .68rem; color: var(--text-muted); }
.dl-active { color: #22c55e !important; }
.dl-sink   { color: #eab308 !important; }

/* ── Filter bar ─────────────────────────────────────────── */
.c2-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.c2-filter-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.c2-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.c2-tag:hover { border-color: rgba(255,255,255,.2); color: var(--text); }
.c2-tag.active                { border-color: rgba(232,59,59,.4);  background: rgba(232,59,59,.1);  color: var(--red); }
.c2-tag--active.active        { border-color: rgba(34,197,94,.4);  background: rgba(34,197,94,.1);  color: #22c55e; }
.c2-tag--sinkhole.active      { border-color: rgba(234,179,8,.35); background: rgba(234,179,8,.08); color: #eab308; }
.c2-tag--inactive.active      { border-color: rgba(107,114,128,.3);background: rgba(107,114,128,.1);color: #9ca3af; }
.c2-tag-count {
  font-size: .63rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.c2-tag-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: currentColor; }
.c2-tag-dot--muted { background: var(--text-muted); }
.c2-tag-dot--warn  { background: #eab308; }
.c2-filter-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.view-controls {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 6px 9px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.view-btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.view-btn.active { background: rgba(255,255,255,.09); color: var(--text); }
.view-btn + .view-btn { border-left: 1px solid var(--border); }

/* ── Family tag row ─────────────────────────────────────── */
.c2-family-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 16px;
}
.c2-family-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 16px;
  font-size: .71rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.c2-family-tag:hover { border-color: rgba(255,255,255,.2); color: var(--text); background: rgba(255,255,255,.03); }
.c2-family-tag.active { border-color: rgba(232,59,59,.35); background: rgba(232,59,59,.09); color: var(--text); }
.c2-ftag-count { font-size: .6rem; opacity: .5; font-weight: 700; }

/* ── Pill card grid ─────────────────────────────────────── */
.c2-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 10px;
  margin-bottom: 32px;
}
.c2-pill-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px 10px;
  background: var(--surface,#181825);
  border: 1px solid var(--border,#313244);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  position: relative;
}
.c2-pill-card--active   { border-left-color: #22c55e; }
.c2-pill-card--sinkholed { border-left-color: #eab308; }
.c2-pill-card:hover { border-color: rgba(255,255,255,.16); box-shadow: 0 4px 16px rgba(0,0,0,.3); transform: translateY(-1px); }
.c2-pill-card--active:hover   { border-color: rgba(34,197,94,.35); }
.c2-pill-card--sinkholed:hover{ border-color: rgba(234,179,8,.35); }
.c2-pill-card--open { border-color: rgba(232,59,59,.3); box-shadow: 0 0 0 1px rgba(232,59,59,.12); }
.c2-pill-status { grid-column: 1; grid-row: 1; display: flex; align-items: flex-start; padding-top: 2px; }
.c2-pill-body   { grid-column: 2; grid-row: 1; min-width: 0; }
.c2-pill-detail { grid-column: 1/-1; grid-row: 2; }
.c2-pill-addr {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
.c2-pill-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.c2-pill-tag {
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  background: rgba(255,255,255,.06);
  color: var(--text-muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.c2-pill-tag--family  { background: rgba(203,166,247,.13); color: #cba6f7; }
.c2-pill-tag--proto   { background: rgba(148,226,213,.1);  color: #94e2d5; }
.c2-pill-tag--port    { background: rgba(249,226,175,.1);  color: #f9e2af; font-family: var(--font-mono); }
.c2-pill-tag--country { background: rgba(255,255,255,.05); color: var(--text-muted); }
.c2-pill-detail {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 4px;
}
.c2-pill-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.c2-dl {
  display: block;
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.c2-dv { font-size: .79rem; color: var(--text); word-break: break-all; }
.c2-detail-item--full { grid-column: 1/-1; }
.c2-pill-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.c2-pill-action-btn {
  font-size: .68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
  cursor: pointer;
}
.c2-pill-action-btn:hover { border-color: rgba(255,255,255,.2); color: var(--text); background: rgba(255,255,255,.04); }
.c2-pill-action-btn--primary { background: rgba(232,59,59,.1); border-color: rgba(232,59,59,.28); color: var(--red); }
.c2-pill-action-btn--primary:hover { background: rgba(232,59,59,.18); }

/* ── Table view ─────────────────────────────────────────── */
.c2-status { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.c2-active   { color: #22c55e; }
.c2-inactive { color: var(--text-muted); }
.c2-sinkhole { color: #eab308; }
.c2-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; display: inline-block; }
.c2-td-icon    { width: 32px; }
.c2-td-addr    { max-width: 220px; word-break: break-all; font-size: .82rem; }
.c2-td-resolved{ color: var(--text-muted); font-size: .79rem; }
.c2-td-sm      { width: 72px; }
.c2-td-md      { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2-td-date    { white-space: nowrap; font-size: .76rem; color: var(--text-muted); }
.c2-td-dash    { color: var(--text-subtle,#45475a); }
.c2-td-target  { max-width: 200px; word-break: break-all; font-size: .82rem; }
.c2-family-link {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.15);
  transition: color .15s, border-color .15s;
}
.c2-family-link:hover { color: var(--red); border-color: rgba(232,59,59,.4); }
.c2-chevron { transition: transform .2s; flex-shrink: 0; opacity: .5; }
.c2-main-row { cursor: pointer; }
.c2-main-row:hover td { background: rgba(255,255,255,.025); }
.c2-detail-row { background: var(--surface,#181825); }
.c2-detail-cell { padding: 16px 20px !important; }
.c2-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.c2-detail-item { display: flex; flex-direction: column; gap: 3px; }
.c2-detail-item--full { grid-column: 1/-1; }
.c2-detail-label {
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 700;
}
.c2-detail-val { font-size: .83rem; color: var(--text); line-height: 1.55; }
.c2-detail-val--red { color: var(--red); }
.c2-action-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.c2-check-meta { font-size: .7rem; color: var(--text-muted); margin-top: 10px; }
.c2-table-empty { padding: 32px; text-align: center; color: var(--text-muted); font-size: .88rem; }
.c2-status-svg { display: block; }

/* ── Abuse section ──────────────────────────────────────── */
.c2-abuse-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.c2-report-link { color: var(--text-muted); text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.15); transition: color .15s; }
.c2-report-link:hover { color: var(--text); }
.c2-report-note { color: var(--text-muted); font-size: .76rem; max-width: 180px; }
.c2-report-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width:860px) {
  .c2-header-stats-row { min-width: 0; width: 100%; }
  .c2-pill-grid { grid-template-columns: 1fr; }
}
@media (max-width:640px) {
  .c2-filter-bar { flex-direction: column; align-items: flex-start; }
  .c2-filter-right { width: 100%; }
  .search-input-wrap { flex: 1; }
}

/* ════════════════════════════════════════════
   END C2
   ════════════════════════════════════════════ */

/* ---- Main Layout ---- */
.main { padding: 48px 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-strong); }

/* ---- Research Report Cards ---- */
.research-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.research-report-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
}
.research-report-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.research-report-card h3 {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}
.research-report-card h3 a {
  color: var(--text);
  transition: color var(--transition);
}
.research-report-card h3 a:hover { color: var(--red); }
.research-report-card > p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ---- Scroll-reveal animation ---- */
.will-appear {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.will-appear.appeared {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Featured Card ---- */
.featured-card {
  padding: 32px;
  margin-bottom: 40px;
  border-color: rgba(232,59,59,.2);
  background: linear-gradient(135deg, rgba(232,59,59,.04) 0%, var(--card) 60%);
  animation: fadeInUp 0.5s ease both;
}
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.featured-meta time { font-size: 0.82rem; color: var(--text-muted); margin-left: auto; }
.featured-card h2 { font-size: 1.45rem; margin-bottom: 14px; line-height: 1.35; }
.featured-card h2 a { color: var(--text); transition: color var(--transition); }
.featured-card h2 a:hover { color: var(--red); }
.featured-card > p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.75; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ---- Section Title ---- */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
}

/* ---- Post List ---- */
.post-list { }
.post-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.5s ease both;
}
.post-item:last-child { border-bottom: none; }
.post-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(232,59,59,.3);
  line-height: 1;
  padding-top: 4px;
}
.post-content {}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.post-meta time { font-size: 0.8rem; color: var(--text-muted); }
.post-read-time { font-size: 0.8rem; color: var(--text-subtle); }
.post-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.post-item h3 a { color: var(--text); transition: color var(--transition); }
.post-item h3 a:hover { color: var(--red); }
.post-item p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.65; }
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.read-more:hover { gap: 8px; }

/* ---- Sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; }
.sidebar-card { padding: 20px; }
.sidebar-card-header {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.see-all {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.see-all:hover { text-decoration: underline; }
.sidebar-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.keydal-links { display: flex; flex-direction: column; gap: 8px; }

/* ---- Stats Grid Mini ---- */
.stats-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}
.stat-mini .stat-num { font-size: 1.4rem; }
.stat-mini .stat-label { font-size: 0.72rem; }

/* ---- Family List ---- */
.family-list { display: flex; flex-direction: column; gap: 8px; }
.family-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.family-list li:last-child { border-bottom: none; }
.family-count {
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---- CVE List ---- */
.cve-list { display: flex; flex-direction: column; gap: 10px; }
.cve-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}
.cve-id { font-family: var(--font-mono); color: var(--text); font-size: 0.78rem; }

/* ---- Tag Cloud ---- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  cursor: default;
}
.tag:hover {
  color: var(--text);
  background: rgba(255,255,255,.1);
  border-color: var(--border-strong);
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Pill / Badge ---- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-critical { background: rgba(232,59,59,.15); color: #ff6b6b; border: 1px solid rgba(232,59,59,.3); }
.pill-high { background: rgba(249,115,22,.15); color: #fb923c; border: 1px solid rgba(249,115,22,.3); }
.pill-medium { background: rgba(234,179,8,.15); color: #fbbf24; border: 1px solid rgba(234,179,8,.3); }
.pill-low { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.pill-info { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.pill-family { background: rgba(168,85,247,.15); color: #c084fc; border: 1px solid rgba(168,85,247,.3); }
.pill-version { background: rgba(255,255,255,.08); color: var(--text-muted); border: 1px solid var(--border); }

/* ---- CVSS Badge ---- */
.cvss-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(232,59,59,.12);
  color: var(--red);
  border: 1px solid rgba(232,59,59,.25);
}
.cvss-critical { background: rgba(232,59,59,.12); color: #ff6b6b; }
.cvss-high { background: rgba(249,115,22,.12); color: #fb923c; }
.cvss-medium { background: rgba(234,179,8,.12); color: #fbbf24; }
.cvss-low { background: rgba(34,197,94,.12); color: #4ade80; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dim); box-shadow: 0 4px 20px rgba(232,59,59,.3); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.05); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.filter-chip:focus-visible,
.c2-tag:focus-visible,
.c2-family-tag:focus-visible,
.share-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.nav-links a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 3px; }
.search-input:focus-visible { outline: none; border-color: rgba(232,59,59,.5); }
tr[role="link"]:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

/* ---- Code Block ---- */
.code-block {
  background: #0a0b10;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.code-lang {
  background: rgba(255,255,255,.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-subtle);
}
.code-block pre { padding: 20px; overflow-x: auto; }
.code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #a8b8d8;
  line-height: 1.75;
  white-space: pre;
}

/* ---- IOC Terminal ---- */
.ioc-terminal {
  background: #050607;
  border: 1px solid rgba(34,197,94,.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
  font-family: var(--font-mono);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(34,197,94,.05);
  border-bottom: 1px solid rgba(34,197,94,.1);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
  font-size: 0.75rem;
  color: rgba(34,197,94,.6);
  margin-left: 4px;
}
.terminal-body { padding: 20px; overflow-x: auto; }
.terminal-body code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #22c55e;
  line-height: 1.8;
  white-space: pre;
}

/* ---- Tables ---- */
.info-table-wrapper { overflow-x: auto; margin: 20px 0; border-radius: var(--radius-lg); }
.info-table, .ioc-table, .mitre-table, .cve-main-table, .hash-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.info-table th, .ioc-table th, .mitre-table th, .cve-main-table th, .hash-table th, .hash-table th {
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.info-table td, .ioc-table td, .mitre-table td, .cve-main-table td, .hash-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.info-table tr:last-child td, .ioc-table tr:last-child td, .hash-table tr:last-child td,
.mitre-table tr:last-child td, .cve-main-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even), .ioc-table tr:nth-child(even), .hash-table tr:nth-child(even),
.mitre-table tr:nth-child(even), .cve-main-table tr:nth-child(even) {
  background: rgba(255,255,255,.02);
}
.info-table, .ioc-table, .mitre-table, .cve-main-table, .hash-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
td.mono { font-family: var(--font-mono); font-size: 0.78rem; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cve-id-cell { white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.cve-id-link { white-space: nowrap; }

/* ---- MITRE Table ---- */
.mitre-table .mitre-tactic { color: var(--blue); font-weight: 600; }
.mitre-table .mitre-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ---- C2 Detail Expand Row ---- */
.c2-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 24px;
  padding: 4px 0 8px;
}
.c2-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.c2-detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.c2-detail-val {
  font-size: 0.85rem;
  color: var(--text);
  word-break: break-word;
}
.c2-detail-val.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
}

/* ---- Process Tree ---- */
.process-tree {
  background: #0a0b10;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.process-item { padding: 4px 0; color: #a8b8d8; }
.process-item.level-0 { padding-left: 0; }
.process-item.level-1 { padding-left: 24px; color: var(--text-muted); }
.process-item.level-2 { padding-left: 48px; }
.process-item.level-3 { padding-left: 72px; color: var(--text-muted); }
.process-item.level-1::before { content: '└─ '; color: var(--border-strong); }
.process-item.level-2::before { content: '└─ '; color: var(--border-strong); }
.process-item.level-3::before { content: '├─ '; color: var(--border-strong); }
.process-item:contains('MALICIOUS') { color: var(--red); }

/* ---- Post Layout ---- */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 40px 0 80px;
  align-items: start;
}
.post-article {}

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--text); }
.breadcrumb svg { color: var(--text-subtle); flex-shrink: 0; }

/* ---- Post Header ---- */
.post-header { margin-bottom: 32px; }
.post-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.post-header h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 24px; letter-spacing: -0.02em; }
.post-byline {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(232,59,59,.15);
  border: 1px solid rgba(232,59,59,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.author-name { display: block; font-weight: 600; font-size: 0.9rem; }
.author-role { display: block; font-size: 0.78rem; color: var(--text-muted); }
.post-info-pills {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.post-info-pills span { display: flex; align-items: center; gap: 5px; }
.share-buttons { display: flex; gap: 8px; margin-left: auto; }
.share-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.share-btn:hover { background: rgba(255,255,255,.1); color: var(--text); border-color: var(--border-strong); }

/* ---- Threat Summary Card ---- */
.threat-summary-card {
  background: rgba(232,59,59,.04);
  border: 1px solid rgba(232,59,59,.2);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 32px;
}
.threat-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.threat-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.ts-item {
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.ts-label { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.ts-val { display: block; font-size: 0.88rem; color: var(--text); font-weight: 500; }
.ts-val.mono { font-family: var(--font-mono); font-size: 0.75rem; word-break: break-all; }
.ts-val.small { font-size: 0.7rem; }

/* ---- TOC ---- */
.toc-inline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.toc-list { counter-reset: toc; }
.toc-list > li {
  counter-increment: toc;
  font-size: 0.88rem;
  padding: 4px 0;
}
.toc-list a { color: var(--text-muted); transition: color var(--transition); }
.toc-list a:hover { color: var(--red); }
.toc-list ol { padding-left: 20px; margin-top: 4px; }
.toc-list ol li { font-size: 0.82rem; }

/* ---- Article Body ---- */
.article-body { line-height: 1.8; }
.article-body section { margin-bottom: 48px; }
.article-body h2 {
  font-size: 1.55rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.article-body h2::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--red);
}
.article-body h3 { font-size: 1.15rem; margin: 24px 0 14px; color: var(--text); }
.article-body h4 { font-size: 0.95rem; margin: 18px 0 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; color: var(--text); line-height: 1.7; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

/* ---- Post Sidebar ---- */
.post-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; }
.toc-nav-list { display: flex; flex-direction: column; gap: 4px; }
.toc-nav-list a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition), border-left-color var(--transition), padding-left var(--transition);
  border-left: 2px solid transparent;
}
.toc-nav-list a:hover {
  color: var(--red);
  background: rgba(232,59,59,.06);
  border-left-color: var(--red);
  padding-left: 14px;
}

/* ---- Threat Score Meter ---- */
.threat-meter { text-align: center; padding: 8px 0; }
.meter-value { font-size: 3rem; font-weight: 700; color: var(--red); line-height: 1; font-variant-numeric: tabular-nums; }
.meter-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--red); text-transform: uppercase; margin-bottom: 16px; }
.meter-bar {
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 16px;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(to right, var(--yellow), var(--red));
  border-radius: 999px;
  transition: width 1s ease;
}
.meter-breakdown { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.meter-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.meter-row:last-child { border-bottom: none; }
.meter-row span:first-child { color: var(--text-muted); }
.meter-row span:last-child { color: var(--text); font-weight: 500; }

/* ---- Related Posts ---- */
.related-posts { display: flex; flex-direction: column; gap: 12px; }
.related-post-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.related-post-item:last-child { border-bottom: none; }
.related-post-item a { font-size: 0.85rem; color: var(--text); transition: color var(--transition); display: block; margin-bottom: 6px; }
.related-post-item a:hover { color: var(--red); }
.related-post-meta { display: flex; align-items: center; gap: 8px; }
.related-post-meta time { font-size: 0.75rem; color: var(--text-subtle); }

/* ---- Post Navigation ---- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-nav--simple { display: flex; gap: 16px; margin-top: 40px; padding-top: 24px; }
.btn--flex1 { flex: 1; justify-content: center; }
.post-nav-prev, .post-nav-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition);
}
.post-nav-prev:hover, .post-nav-next:hover {
  border-color: rgba(232,59,59,.3);
  background: rgba(232,59,59,.04);
}
.post-nav-next { text-align: right; }
.nav-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}
.post-nav-next .nav-label { justify-content: flex-end; }
.nav-title { font-size: 0.9rem; color: var(--text); font-weight: 500; }

/* ---- Families Page ---- */
.page-header {
  padding: 60px 0 48px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232,59,59,.07) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2.25rem; margin-bottom: 12px; }
.page-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.search-input-wrap { position: relative; flex: 1; min-width: 240px; }
.search-input-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-input::placeholder { color: var(--text-subtle); }
.search-input:focus { border-color: rgba(232,59,59,.4); }
.filter-group { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.filter-label { font-size: 0.78rem; color: var(--text-muted); margin-right: 4px; }
.filter-btn {
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(232,59,59,.1);
  border-color: rgba(232,59,59,.3);
  color: var(--red);
}

/* ---- View Radio Toggle ---- */
.view-radio { display: none; }
.view-toggle { display: flex; gap: 4px; margin-left: auto; }
.view-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
#view-grid:checked ~ .families-content #grid-view { display: grid; }
#view-grid:checked ~ .families-content #table-view { display: block; }
#view-table:checked ~ .families-content #grid-view { display: none; }
#view-table:checked ~ .families-content #table-view { display: block; }
#view-grid:checked ~ .view-controls label[for="view-grid"],
#view-table:checked ~ .view-controls label[for="view-table"] {
  background: rgba(232,59,59,.1);
  border-color: rgba(232,59,59,.3);
  color: var(--red);
}

/* ---- Family Card Grid ---- */
#grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
#table-view { display: block; margin-bottom: 48px; }
.family-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp 0.4s ease both;
}
.family-card:hover {
  border-color: rgba(232,59,59,.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.family-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.family-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.family-lang {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255,255,255,.06);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.family-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }
.family-capabilities { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 4px;
  font-size: 0.72rem;
  color: #60a5fa;
}
.family-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.family-cvss { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.family-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.family-link:hover { gap: 8px; }

/* ---- CVE Page ---- */
.cve-stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cve-stat-card {
  flex: 1;
  min-width: 140px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.cve-stat-card .stat-num { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.cve-stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); display: block; text-transform: uppercase; letter-spacing: 0.07em; }
.cve-stat-card.critical .stat-num { color: #ff6b6b; }
.cve-stat-card.high .stat-num { color: #fb923c; }
.cve-stat-card.recent .stat-num { color: var(--blue); }
.cve-table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); }
.cve-main-table { width: 100%; }
.cve-rat-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.cve-rat-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 4px;
  color: #c084fc;
  white-space: nowrap;
  font-family: var(--font-mono);
}

/* ---- About Page ---- */
.about-hero {
  padding: 80px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(232,59,59,.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.about-hero h1 { font-size: 2.75rem; margin-bottom: 20px; letter-spacing: -0.03em; }
.about-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.about-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.about-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.about-section:last-child { border-bottom: none; }
.about-section h2 { font-size: 1.75rem; margin-bottom: 24px; }
.about-section > .container > p { color: var(--text-muted); max-width: 740px; line-height: 1.8; margin-bottom: 16px; }

/* ---- Feature Boxes ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
  animation: fadeInUp 0.4s ease both;
}
.feature-box:hover { border-color: rgba(232,59,59,.2); transform: translateY(-2px); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(232,59,59,.1);
  border: 1px solid rgba(232,59,59,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 18px;
}
.feature-box h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-box p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ---- Team Cards ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  animation: fadeInUp 0.4s ease both;
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(232,59,59,.1);
  border: 2px solid rgba(232,59,59,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 16px;
}
.team-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.82rem; color: var(--red); font-weight: 500; margin-bottom: 12px; }
.team-bio { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ---- Methodology Steps ---- */
.methodology-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.method-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  animation: fadeInUp 0.4s ease both;
}
.method-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(232,59,59,.1);
  border: 1px solid rgba(232,59,59,.2);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 12px;
}
.method-step h4 { font-size: 0.92rem; margin-bottom: 8px; }
.method-step p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

/* ---- Contact Box ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.contact-link-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}
.contact-link-box:hover { border-color: rgba(232,59,59,.3); background: rgba(232,59,59,.04); }
.contact-link-box .link-desc { font-size: 0.82rem; color: var(--text-muted); font-weight: 400; }

/* ---- Disclosure Box ---- */
.disclosure-box {
  background: rgba(59,130,246,.05);
  border: 1px solid rgba(59,130,246,.2);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 24px;
}
.disclosure-box h3 { font-size: 1rem; color: #60a5fa; margin-bottom: 12px; }
.disclosure-box p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.disclosure-box p:last-child { margin-bottom: 0; }

/* ---- Progress / Meter ---- */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--red-dim), var(--red));
  border-radius: 999px;
}

/* ---- Footer ---- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-logo strong { color: var(--red); }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; max-width: 280px; }
.footer-links-inline { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.footer-links-inline a { color: var(--text-muted); transition: color var(--transition); }
.footer-links-inline a:hover { color: var(--red); }
.footer-links-inline span { color: var(--text-subtle); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.85rem; color: var(--text-subtle); transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-subtle); }
.footer-bottom a { color: var(--text-muted); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--red); }
.footer-disclaimer { font-size: 0.75rem !important; max-width: 400px; text-align: right; }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Utilities ---- */
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-yellow { color: var(--yellow); }
.text-blue { color: var(--blue); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ---- Hamburger Menu ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.nav-hamburger:hover span { background: var(--text); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: rgba(8,9,15,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.nav-mobile a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.nav-mobile a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: var(--border);
}
.nav-mobile .nav-cta {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  padding: 14px 20px;
  background: var(--red);
  color: #fff !important;
  border-color: transparent;
}
.nav-mobile .nav-cta:hover { background: var(--red-dim); }

/* JS toggle — .open class added by inline script */
.nav-mobile.open { display: flex; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Structural / Layout Helpers ---- */
.posts-column { min-width: 0; } /* grid child, implicit 1fr sizing */
.toc-nav { }                    /* TOC sidebar modifier hook */
.author-text { display: flex; flex-direction: column; gap: 2px; }

/* ---- Page-level Layouts ---- */
.families-page { padding: 40px 0 80px; }
.cve-page { padding: 40px 0 80px; }
.page-header .header-badge { margin-bottom: 16px; }
.about-hero .header-badge { margin-bottom: 20px; }

/* ---- Families Filters ---- */
.filter-section { margin-bottom: 32px; }
.filter-section .search-input-wrap { max-width: 340px; }
.filter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.view-controls { display: flex; gap: 4px; margin-left: auto; }
.family-lang-group { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.family-identity { display: flex; flex-direction: column; }
.table-name-cell { font-weight: 700; }

/* ---- CVE Page ---- */
.cve-search-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.cve-search-bar .search-input-wrap { flex: 1; min-width: 280px; max-width: 480px; }
.cve-year-filter { display: flex; gap: 4px; flex-wrap: wrap; }
.cve-id-link { font-family: var(--font-mono); font-size: 0.82rem; color: var(--blue); font-weight: 600; }
.cve-id-link:hover { text-decoration: underline; }
.cve-main-table td { vertical-align: middle; }
.cve-name { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.section-intro { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; max-width: 700px; }

/* ---- About Page ---- */
.mission-text { font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 18px; max-width: 760px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--text);
  margin-top: 12px;
}
.contact-email-wrap { margin-top: 24px; }
.contact-label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.contact-link-box svg { color: var(--red); }
.contact-icon { color: var(--red); }

/* ---- Utility Modifiers ---- */
.mono-sm { font-family: var(--font-mono); font-size: 0.75rem; word-break: break-all; }
.pill-xs { font-size: 0.65rem !important; padding: 2px 7px !important; }
.process-threat-label { color: var(--red); }
.text-orange { color: #fb923c; }
.toc-nav-sub { padding-left: 22px; font-size: 0.78rem; }
.read-more-sm { font-size: 0.78rem; }
.sidebar-header-icon-label { display: flex; align-items: center; gap: 6px; }

/* ---- Responsive — 1024px (tablet landscape) ---- */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr 280px; gap: 28px; }
  .post-layout { grid-template-columns: 1fr 260px; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  #grid-view { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ---- Responsive — 768px (tablet portrait / large mobile) ---- */
@media (max-width: 768px) {
  /* Container padding */
  .container { padding: 0 16px; }

  /* Nav */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { gap: 12px; }
  .brand-text { font-size: 1rem; }

  /* Typography scale-down */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .site-title { font-size: 2rem; }
  .about-hero h1 { font-size: 1.9rem; }
  .page-header h1 { font-size: 1.7rem; }
  .post-header h1 { font-size: 1.5rem; }

  /* Site header */
  .site-header { padding: 48px 0 36px; }
  .header-stats { gap: 20px; }
  .stat-num { font-size: 1.6rem; }

  /* Main layout: drop sidebar to bottom */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .sidebar .sidebar-card:first-child { grid-column: 1 / -1; }

  /* Post layout */
  .post-layout { grid-template-columns: 1fr; gap: 0; padding: 24px 0 48px; }
  .post-sidebar { display: none; }

  /* Featured card */
  .featured-card { padding: 20px; }
  .featured-card h2 { font-size: 1.2rem; }
  .card-footer { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Post items */
  .post-item { grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 0; }
  .post-num { font-size: 1.2rem; }

  /* Byline wrap on mobile */
  .post-byline { flex-direction: column; gap: 14px; align-items: flex-start; }
  .share-buttons { margin-left: 0; }
  .post-meta-top { gap: 6px; }

  /* Threat summary */
  .threat-summary-grid { grid-template-columns: 1fr 1fr; }

  /* IOC terminal — horizontal scroll */
  .ioc-terminal { border-radius: var(--radius); }
  .terminal-body { padding: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .terminal-body code { font-size: 0.72rem; }

  /* Code blocks */
  .code-block pre { padding: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .code-block code { font-size: 0.75rem; }

  /* Tables — horizontal scroll wrapper */
  .info-table-wrapper,
  .cve-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
  .info-table, .ioc-table, .mitre-table, .cve-main-table {
    min-width: 540px;
    font-size: 0.78rem;
  }
  .info-table th, .ioc-table th, .mitre-table th, .cve-main-table th, .hash-table th,
  .info-table td, .ioc-table td, .mitre-table td, .cve-main-table td, .hash-table td {
    padding: 10px 12px;
  }

  /* Process tree */
  .process-tree { padding: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 0.75rem; }

  /* Post nav */
  .post-nav { grid-template-columns: 1fr; gap: 12px; }

  /* Families page */
  .filter-bar { gap: 8px; }
  .search-input-wrap { min-width: 100%; }
  .filter-group { width: 100%; }
  .view-toggle { margin-left: 0; }
  #grid-view { grid-template-columns: 1fr; gap: 16px; }

  /* CVE page */
  .cve-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  /* About page */
  .about-hero { padding: 48px 0 36px; }
  .about-hero p { font-size: 0.95rem; }
  .about-hero-ctas { flex-direction: column; align-items: center; }
  .about-hero-ctas .btn { width: 100%; max-width: 300px; justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .methodology-steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .about-section { padding: 40px 0; }

  /* Footer */
  .footer { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-disclaimer { text-align: left; }

  /* Ticker — hide label on very small */
  .ticker-label { padding: 0 10px; font-size: 0.65rem; }

  /* C2 table — hide low-value columns, keep: dot, Adres, Port, Malware */
  #c2-table { min-width: auto; }
  #c2-table th:nth-child(2), #c2-table td:nth-child(2),
  #c2-table th:nth-child(4), #c2-table td:nth-child(4),
  #c2-table th:nth-child(5), #c2-table td:nth-child(5),
  #c2-table th:nth-child(7), #c2-table td:nth-child(7),
  #c2-table th:nth-child(9), #c2-table td:nth-child(9),
  #c2-table th:nth-child(10), #c2-table td:nth-child(10) { display: none; }
}

/* ---- Responsive — 480px (small phones) ---- */
@media (max-width: 480px) {
  .container { padding: 0 12px; }

  /* Typography */
  h1 { font-size: 1.4rem; }
  .site-title { font-size: 1.65rem; }
  .about-hero h1 { font-size: 1.55rem; }
  .page-header h1 { font-size: 1.45rem; }
  .post-header h1 { font-size: 1.3rem; }

  /* Nav brand */
  .brand-text { font-size: 0.9rem; }

  /* Header stats — 2 per row */
  .header-stats { gap: 16px; }
  .header-stats .stat { flex: 1 1 40%; }
  .stat-num { font-size: 1.4rem; }

  /* Sidebar: stack to 1 column */
  .sidebar { grid-template-columns: 1fr; }
  .sidebar .sidebar-card:first-child { grid-column: auto; }

  /* Featured card */
  .featured-card { padding: 16px; }
  .featured-meta { gap: 6px; }
  .featured-meta time { margin-left: 0; width: 100%; }

  /* Post meta pills — wrap tighter */
  .post-meta { gap: 5px; }

  /* Threat summary — single column */
  .threat-summary-grid { grid-template-columns: 1fr; }

  /* Methodology — 1 column */
  .methodology-steps { grid-template-columns: 1fr; }

  /* CVE stats — 1 column */
  .cve-stats-row { grid-template-columns: 1fr; }

  /* Buttons full width in hero */
  .about-hero-ctas .btn { width: 100%; max-width: 100%; }

  /* TOC inline — smaller padding */
  .toc-inline { padding: 14px 16px; }

  /* Ticker label hidden — no space */
  .ticker-label { display: none; }

  /* Table scroll hint */
  .info-table-wrapper::before,
  .cve-table-wrapper::before {
    content: '← kaydır';
    display: block;
    font-size: 0.7rem;
    color: var(--text-subtle);
    text-align: right;
    padding: 0 4px 4px;
    font-family: var(--font-mono);
  }
}

/* ---- Print ---- */
@media print {
  .nav, .footer, .sidebar, .post-sidebar, .threat-ticker, .share-buttons { display: none !important; }
  body { background: white; color: black; }
  .card, .code-block, .ioc-terminal { border: 1px solid #ccc; }
  .container { max-width: 100%; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Utility & component classes — replaces inline styles in EJS templates
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---- Pill size variants ---- */
.pill--sm  { font-size: .75rem !important; }
.pill--xs  { font-size: .68rem !important; padding: 2px 6px !important; }
.pill--patched { background: rgba(34,197,94,.1); color: #22c55e; border: 1px solid rgba(34,197,94,.2); }
.cvss-badge--xs { font-size: .7rem !important; }

/* ---- Button variants ---- */
.btn--full   { width: 100%; justify-content: center; }
.btn--full-mt { width: 100%; justify-content: center; margin-top: 8px; }
.btn--xs  { font-size: .72rem; }
.btn--mt  { margin-top: 12px; }
.btn-copy { background: none; border: 1px solid var(--border); border-radius: 5px; padding: 3px 8px; cursor: pointer; color: var(--text-muted); font-size: .72rem; white-space: nowrap; transition: border-color var(--transition), color var(--transition); }
.btn-copy:hover { border-color: rgba(255,255,255,.2); color: var(--text); }

/* ---- Color utilities ---- */
.text-green   { color: var(--green); }
.text-faint   { opacity: .4; }
.text-default { color: var(--text); }
.text-default-bold { font-weight: 600; color: var(--text); }
.text-red-bold { font-weight: 700; color: var(--red); }
.link-red      { color: var(--red); }
.link-sm-red   { font-size: .78rem; color: var(--red); }
.link-default  { color: var(--text); }
.link-muted-underline { color: var(--text-muted); text-decoration: underline; }
.mono--red     { color: var(--red); font-family: var(--font-mono); }
.mono--sm-muted { font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); }

/* ---- Spacing utilities ---- */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.hidden { display: none; }
.icon-no-shrink { flex-shrink: 0; }
.flex-heading { display: flex; align-items: center; gap: 8px; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 64px 0; color: var(--text-muted); }
.empty-state__icon { opacity: .3; margin-bottom: 12px; }
.empty-list-item { color: var(--text-muted); font-size: .82rem; padding: 8px 0; }
.empty-notice-text { color: var(--text-muted); font-size: .95rem; }
.empty-notice-subtext { color: var(--text-muted); font-size: .85rem; }

/* ---- Toast ---- */
.copy-toast { position: fixed; bottom: 24px; right: 24px; background: #22c55e; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: .85rem; font-weight: 600; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 9999; }

/* ---- Footer / Header ---- */
.footer-legal-note { color: var(--text-subtle); font-size: .8em; }
.header-cta-group  { display: flex; gap: 12px; margin-top: 24px; justify-content: center; }

/* ---- Heading patterns ---- */
.detail-section { margin-top: 40px; }
.detail-section-heading { font-size: 1.2rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.heading-count { font-size: .8rem; font-weight: 400; color: var(--text-muted); margin-left: 8px; }
.section-subheading { margin: 0 0 12px; font-size: .95rem; color: var(--red); }
.section-subheading--spaced { margin-top: 24px; }
.section-heading-centered { text-align: center; margin-bottom: 32px; }
.ioc-heading { font-size: 1.4rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ---- ts-item / ts-val ---- */
.ts-item--full { grid-column: 1 / -1; }
.ts-val--sm { font-size: .9rem; }
.ts-val-mono-red { font-size: .88rem; color: var(--red); font-family: var(--font-mono); }

/* ---- Sidebar ---- */
.sidebar-body-text { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ---- Tables ---- */
.td-year    { color: var(--text-muted); font-size: .85rem; }
.td-targets { font-size: .82rem; color: var(--text-muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-center  { text-align: center; }
.td-chevron { width: 24px; color: var(--text-muted); }
.td-address { color: var(--red); font-weight: 600; font-size: .82rem; font-family: var(--font-mono); }
.td-resolved-ip { font-size: .8rem; color: var(--text-muted); font-family: var(--font-mono); }
.td-date    { font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted); }
.td-sm      { font-size: .82rem; }
.td-sm-muted { font-size: .82rem; color: var(--text-muted); }
.td-notes   { font-size: .78rem; color: var(--text-muted); max-width: 240px; }
.td-target  { color: var(--red); font-size: .82rem; font-family: var(--font-mono); }
.td-detail-content { padding: 14px 16px 18px 44px; }
.td-desc    { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.td-software { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--text-muted); }
.td-ioc-value { font-family: var(--font-mono); font-size: .82rem; word-break: break-all; }
.td-note    { color: var(--text-muted); font-size: .82rem; }
.col-actions { width: 80px; }

/* ---- Families page ---- */
.filter-btn-group   { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; }
.family-link-icon   { margin-left: 3px; vertical-align: middle; opacity: .5; }
.malware-card-type-row { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.malware-card-stats { display: flex; gap: 16px; }
.malware-card-meta--accent { color: var(--red); }
.purpose-pills--card { margin-top: 8px; }
.purpose-pill--overflow { opacity: .6; }

/* ---- CVE page ---- */
.cve-stat-card--patched  { border-color: rgba(34,197,94,.25) !important; }
.stat-num--patched       { color: #22c55e !important; }
.mini-dot--critical { background: #ef4444; }
.mini-dot--high     { background: #f97316; }
.mini-dot--medium   { background: #eab308; }
.rat-pill-group { display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; max-width: 200px; }
.cve-rat-pill--overflow { opacity: .6; }
.exploit-warning-icon { color: #ef4444; font-size: .7rem; }
.cve-id--link { text-decoration: none; }
.cve-detail-heading { font-size: 2rem; font-weight: 800; color: var(--red); font-family: var(--font-mono); }
.cve-description { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; margin-top: 10px; }
.exploit-badge--sm { font-size: .78rem; padding: 3px 8px; }
.cve-main-table--sm { font-size: .82rem; }
.cve-table-wrapper--mb { margin-bottom: 32px; }
.mitre-technique-display { font-size: .82rem; font-family: var(--font-mono); color: var(--red); word-break: break-word; }
.related-fam-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.related-fam-desc   { font-size: .8rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.related-fam-link   { margin-top: 8px; font-size: .78rem; color: var(--red); font-weight: 600; }
.desc-text { font-size: .82rem; color: var(--text-muted); flex: 1; }
.cve-id-cell { display: flex; align-items: center; gap: 5px; }

/* ---- About page ---- */
.about-section--surface          { background: var(--surface); border-bottom: 1px solid var(--border); }
.about-section--surface-bordered { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.org-lineage-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(232,59,59,.06); border: 1px solid rgba(232,59,59,.15); border-radius: 8px; padding: 10px 16px; margin-top: 12px; font-size: .85rem; color: var(--text-muted); }
.threat-type-icon--rat        { background: rgba(249,115,22,.1); border-color: rgba(249,115,22,.25); }
.threat-type-icon--infostealer { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.25);  }
.threat-type-icon--backdoor   { background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.25); }
.threat-type-icon--loader     { background: rgba(59,130,246,.1);  border-color: rgba(59,130,246,.25);  }
.threat-type-icon--botnet     { background: rgba(234,179,8,.1);   border-color: rgba(234,179,8,.25);   }
.threat-type-icon--ransomware { background: rgba(239,68,68,.1);   border-color: rgba(239,68,68,.25);   }
.c2-detail-label--open     { color: #22c55e; }
.c2-detail-label--internal { color: #eab308; }
.c2-detail-label--private  { color: #ef4444; }
.disclosure-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(232,59,59,.2); font-size: .85rem; color: var(--text-muted); }
.c2-detail-grid--mb { margin-bottom: 32px; }
.c2-detail-val--red { color: var(--red); }
.c2-detail-item--full { grid-column: 1 / -1; }
.c2-action-btns { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Family detail ---- */
.family-description  { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-top: 12px; }
.family-aka          { margin-top: 8px; font-size: .82rem; color: var(--text-muted); }
.section-block       { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.block-heading       { font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 10px; }
.block-content       { font-size: .9rem; line-height: 1.75; color: var(--text-muted); }
.attribution-badge   { margin-top: 12px; padding: 10px 14px; background: rgba(232,59,59,.06); border: 1px solid rgba(232,59,59,.15); border-radius: 8px; display: inline-block; }
.attribution-label   { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.attribution-value   { font-size: .9rem; color: var(--red); font-weight: 600; margin-top: 2px; }
.purpose-block       { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.report-card-meta-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.report-card-date    { color: var(--text-muted); font-size: .75rem; margin-left: auto; }

/* ---- Post page ---- */
.tags-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.tags-label   { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; }

/* ---- c2-detail-val base (removes repeated inline font-size/line-height) ---- */
.c2-detail-val { font-size: .85rem; line-height: 1.6; }

/* ---- header-badge scoped margins ---- */
.about-section .header-badge,
.page-header .header-badge { margin-bottom: 12px; }


/* Grid layouts baked in (avoids inline grid-template-columns) */
.feature-grid      { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.methodology-steps { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.threat-type-grid  { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }

/* c2-status size already small; bake font-size */
.c2-status { font-size: .72rem; }

/* cvss-badge always bold */
.cvss-badge { font-weight: 700; }

/* c2-main-row clickable */
.c2-main-row { cursor: pointer; }

/* c2-chevron transition */
.c2-chevron { transition: transform .2s; }

/* ts-label spacing */
.ts-label { margin-bottom: 10px; }

/* section-block variant with 20px spacing */
.section-block-20 { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ioc section top margin */
.ioc-section { margin-top: 48px; }

/* post pill link red */
.link-red-family { color: var(--red); }

/* c2-detail-grid column variants for about.ejs */
.c2-detail-grid--240 { grid-template-columns: repeat(auto-fill, minmax(min(240px,100%), 1fr)); }
.c2-detail-grid--260 { grid-template-columns: repeat(auto-fill, minmax(min(260px,100%), 1fr)); }

/* meter-bar margin */
.meter-bar { margin: 8px 0; }

/* c2-detail-row background (static) */
.c2-detail-row { background: var(--surface); }

/* c2-detail-val normalised to .82rem (actual usage) */
.c2-d

/* ── Blog Grid & Cards (cleanup / blog listing) ─────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #181825);
  border: 1px solid var(--border, #313244);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.blog-card:hover {
  border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.blog-card-header {
  padding: 20px 20px 14px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.blog-card-date {
  font-size: .72rem;
  color: var(--text-muted, #6c7086);
  white-space: nowrap;
}

.blog-card-title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text, #cdd6f4);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: .8rem;
  color: var(--text-muted, #6c7086);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.blog-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border, #313244);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   LIVE SEARCH OVERLAY
   ═══════════════════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,9,15,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #313244);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform .18s ease;
}
.search-overlay.open .search-overlay-inner {
  transform: translateY(0);
}
.search-overlay-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #313244);
}
.search-overlay-input-wrap svg {
  flex-shrink: 0;
  color: var(--text-muted, #6c7086);
}
#search-overlay-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text, #cdd6f4);
  font-size: 1rem;
  font-family: inherit;
}
#search-overlay-input::placeholder {
  color: var(--text-muted, #6c7086);
}
.search-overlay-close {
  background: none;
  border: 1px solid var(--border, #313244);
  border-radius: 6px;
  color: var(--text-muted, #6c7086);
  font-size: .75rem;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: border-color .15s, color .15s;
}
.search-overlay-close:hover {
  border-color: var(--red, #e83b3b);
  color: var(--text, #cdd6f4);
}
.search-overlay-close kbd {
  font-family: inherit;
  font-size: .7rem;
  background: var(--surface2, #313244);
  border-radius: 3px;
  padding: 1px 4px;
}
#search-overlay-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
}
.search-results-section {
  padding: 4px 0 8px;
}
.search-results-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted, #6c7086);
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 16px 6px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  color: var(--text, #cdd6f4);
  text-decoration: none;
  transition: background .12s;
}
.search-result-item:hover,
.search-result-item:focus {
  background: var(--surface2, #313244);
  outline: none;
}
.search-result-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-result-title {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text, #cdd6f4);
  line-height: 1.3;
}
.search-result-sub {
  font-size: .75rem;
  margin-top: 2px;
  color: var(--text-muted, #6c7086);
}
.search-empty {
  text-align: center;
  color: var(--text-muted, #6c7086);
  font-size: .88rem;
  padding: 24px 16px;
}
.search-shortcut {
  text-align: center;
  font-size: .72rem;
  color: var(--text-muted, #6c7086);
  padding: 10px 16px;
  border-top: 1px solid var(--border, #313244);
  margin: 0;
}
.search-shortcut kbd {
  font-family: inherit;
  background: var(--surface2, #313244);
  border: 1px solid var(--border, #313244);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: .68rem;
}
/* Nav search icon button */
.nav-search-icon {
  background: none;
  border: 1px solid var(--border, #313244);
  border-radius: 6px;
  color: var(--text-muted, #6c7086);
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s;
}
.nav-search-icon:hover {
  border-color: var(--red, #e83b3b);
  color: var(--text, #cdd6f4);
}
@media (max-width: 768px) {
  .search-overlay {
    padding-top: 60px;
    align-items: flex-start;
  }
  .search-overlay-inner {
    margin: 0 8px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   ABOUT PAGE — DOCUMENT STYLE
   ═══════════════════════════════════════════════════════════════════════ */

/* Wrapper & topbar */
.about-doc-wrapper {
  min-height: 100vh;
}
.about-doc-topbar {
  background: var(--surface, #1e1e2e);
  border-bottom: 1px solid var(--border, #313244);
  padding: 10px 0;
  position: sticky;
  top: 56px;
  z-index: 40;
}
.about-doc-topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.about-tlp-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: #22c55e;
  letter-spacing: .04em;
  white-space: nowrap;
}
.about-doc-meta {
  font-size: .78rem;
  color: var(--text-muted, #6c7086);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.about-doc-sep {
  color: var(--border, #45475a);
  margin: 0 2px;
}
.about-doc-actions {
  margin-left: auto;
}
.about-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border, #313244);
  border-radius: 6px;
  background: none;
  color: var(--text-muted, #6c7086);
  font-size: .78rem;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.about-print-btn:hover {
  border-color: var(--red, #e83b3b);
  color: var(--text, #cdd6f4);
}

/* Layout: TOC sidebar + content */
.about-doc-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-doc-layout {
    grid-template-columns: 1fr;
  }
  .about-toc {
    display: none;
  }
}

/* Table of contents */
.about-toc {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-toc-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted, #6c7086);
  margin-bottom: 6px;
}
.about-toc-link {
  font-size: .78rem;
  color: var(--text-muted, #6c7086);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 5px;
  border-left: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.about-toc-link:hover,
.about-toc-link.active {
  color: var(--text, #cdd6f4);
  border-left-color: var(--red, #e83b3b);
  background: rgba(232,59,59,.06);
}
.about-toc-link--cta {
  color: var(--red, #e83b3b) !important;
  font-weight: 600;
}
.about-toc-divider {
  height: 1px;
  background: var(--border, #313244);
  margin: 6px 0;
}

/* Document title block */
.about-doc-title-block {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--border, #313244);
  margin-bottom: 36px;
}
.about-doc-shield {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(232,59,59,.08);
  border: 1px solid rgba(232,59,59,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-doc-h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text, #cdd6f4);
  margin: 0 0 4px;
  line-height: 1.1;
}
.about-doc-subtitle {
  font-size: 1rem;
  color: var(--text-secondary, #bac2de);
  margin: 0 0 4px;
}
.about-doc-org {
  font-size: .8rem;
  color: var(--text-muted, #6c7086);
  margin: 0;
}

/* Chapter sections */
.about-chapter {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border, #313244);
}
.about-chapter:last-child {
  border-bottom: none;
}
.about-chapter-num {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--red, #e83b3b);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.about-chapter-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text, #cdd6f4);
  margin: 0 0 12px;
}
.about-chapter-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--red, #e83b3b) 0%, transparent 60%);
  margin-bottom: 24px;
  border-radius: 1px;
}
.about-chapter-body {
  color: var(--text-secondary, #bac2de);
  line-height: 1.75;
}
.about-chapter-body p {
  margin-bottom: 1rem;
}

/* Executive summary pills */
.about-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.about-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 20px;
  font-size: .8rem;
  color: #86efac;
  font-weight: 500;
}

/* Stats grid */
.about-stats-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}
.about-stat-doc {
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #313244);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.about-stat-doc-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text, #cdd6f4);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}
.about-stat-doc-label {
  font-size: .75rem;
  color: var(--text-muted, #6c7086);
}
.about-stat-doc-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--red, #e83b3b);
  opacity: .5;
  border-radius: 0 1px 1px 0;
}

/* Methodology timeline */
.about-method-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  border-left: 2px solid var(--border, #313244);
  padding-left: 20px;
}
.about-method-step {
  display: flex;
  gap: 16px;
  padding: 0 0 28px;
  position: relative;
}
.about-method-step:last-child {
  padding-bottom: 0;
}
.about-method-step-marker {
  position: absolute;
  left: -31px;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface, #1e1e2e);
  border: 2px solid var(--red, #e83b3b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  color: var(--red, #e83b3b);
  flex-shrink: 0;
}
.about-method-step-content h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text, #cdd6f4);
  margin: 0 0 4px;
}
.about-method-step-content p {
  font-size: .85rem;
  color: var(--text-muted, #6c7086);
  margin: 0;
  line-height: 1.6;
}

/* Coverage grid */
.about-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.about-coverage-card {
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #313244);
  border-radius: 8px;
  padding: 16px;
  transition: border-color .15s;
}
.about-coverage-card:hover {
  border-color: var(--red, #e83b3b);
}
.about-coverage-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.about-coverage-icon--red    { background: rgba(239,68,68,.1); }
.about-coverage-icon--orange { background: rgba(249,115,22,.1); }
.about-coverage-icon--purple { background: rgba(139,92,246,.1); }
.about-coverage-icon--blue   { background: rgba(59,130,246,.1); }
.about-coverage-icon--yellow { background: rgba(234,179,8,.1); }
.about-coverage-card h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text, #cdd6f4);
  margin: 0 0 6px;
}
.about-coverage-card p {
  font-size: .8rem;
  color: var(--text-muted, #6c7086);
  line-height: 1.5;
  margin: 0 0 10px;
}
.about-coverage-tag {
  display: inline-block;
  font-size: .68rem;
  color: var(--text-muted, #6c7086);
  background: var(--surface2, #313244);
  border-radius: 4px;
  padding: 2px 8px;
}

/* Org chain */
.about-org-chain {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 16px;
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #313244);
  border-radius: 8px;
}
.about-org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--border, #313244);
  text-align: center;
  font-size: .82rem;
  color: var(--text-secondary, #bac2de);
}
.about-org-node--active {
  border-color: var(--red, #e83b3b);
  background: rgba(232,59,59,.05);
  color: var(--text, #cdd6f4);
}
.about-org-arrow {
  font-size: 1.4rem;
  color: var(--text-muted, #6c7086);
}
.about-org-sub {
  font-size: .68rem;
  color: var(--text-muted, #6c7086);
}

/* Contact cards */
.about-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.about-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #313244);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text, #cdd6f4);
  transition: border-color .15s, background .15s;
}
.about-contact-card:hover {
  border-color: var(--red, #e83b3b);
  background: rgba(232,59,59,.04);
}
.about-contact-card svg:first-child {
  flex-shrink: 0;
  color: var(--text-muted, #6c7086);
}
.about-contact-card strong {
  display: block;
  font-size: .9rem;
}
.about-contact-card span {
  font-size: .78rem;
  color: var(--text-muted, #6c7086);
}
.about-contact-card .icon-external {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-muted, #6c7086);
}

/* Tools sections */
.about-tools-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #cdd6f4);
  margin: 20px 0 6px;
}
.about-tools-heading--spaced {
  margin-top: 36px;
}
.text-muted-sm {
  font-size: .82rem;
  color: var(--text-muted, #6c7086);
  margin: 0 0 14px;
}
.about-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 6px;
}
.about-tool-card {
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #313244);
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color .15s;
}
.about-tool-card:hover {
  border-color: rgba(232,59,59,.4);
}
.about-tool-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.about-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.about-tool-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text, #cdd6f4);
}
.about-tool-card p {
  font-size: .8rem;
  color: var(--text-muted, #6c7086);
  line-height: 1.55;
  margin: 0 0 10px;
}
.about-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.purpose-pill {
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface2, #313244);
  color: var(--text-muted, #6c7086);
  border: 1px solid var(--border, #45475a);
}
.pill--xs {
  font-size: .65rem;
  padding: 1px 6px;
}

/* Disclosure box */
.about-disclosure-box {
  background: rgba(234,179,8,.05);
  border: 1px solid rgba(234,179,8,.25);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.about-disclosure-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.about-disclosure-header h3 {
  font-size: .95rem;
  font-weight: 600;
  color: #fef08a;
  margin: 0;
}
.about-disclosure-box p {
  font-size: .85rem;
  color: var(--text-secondary, #bac2de);
  line-height: 1.7;
  margin: 0 0 8px;
}
.about-disclosure-box p:last-child { margin: 0; }

.about-disclosure-cta-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.about-disclosure-info {
  flex: 1;
  min-width: 240px;
}
.about-disclosure-info h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text, #cdd6f4);
  margin: 0 0 8px;
}
.about-disclosure-info p {
  font-size: .85rem;
  color: var(--text-secondary, #bac2de);
  line-height: 1.65;
  margin: 0 0 12px;
}
.about-disclosure-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .8rem;
  color: var(--text-muted, #6c7086);
}
.about-disclosure-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.about-disclosure-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Scope grid */
.about-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .about-scope-grid { grid-template-columns: 1fr; }
}
.about-scope-block {
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #313244);
  border-radius: 8px;
  padding: 16px 18px;
}
.about-scope-block--in  { border-left: 3px solid #22c55e; }
.about-scope-block--out { border-left: 3px solid #6c7086; }
.about-scope-block h5 {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 10px;
  color: var(--text, #cdd6f4);
}
.about-scope-block--in  h5 { color: #86efac; }
.about-scope-block--out h5 { color: var(--text-muted, #6c7086); }
.about-scope-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-scope-block li {
  font-size: .82rem;
  color: var(--text-secondary, #bac2de);
  padding-left: 14px;
  position: relative;
}
.about-scope-block--in  li::before { content: "✓"; position: absolute; left: 0; color: #22c55e; font-size: .75rem; }
.about-scope-block--out li::before { content: "✗"; position: absolute; left: 0; color: #6c7086; font-size: .75rem; }

/* Section subheading */
.section-subheading {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text, #cdd6f4);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, #313244);
}
.section-subheading--spaced {
  margin-top: 28px;
}

/* Print styles */
@media print {
  .about-doc-topbar { position: static; }
  .about-toc { display: none; }
  .about-doc-layout { grid-template-columns: 1fr; }
  .nav, .nav-mobile, footer { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SHARED PAGE COMPONENTS
   ═══════════════════════════════════════════════════════════════════════ */

.page-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.header-badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #6c7086);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.search-form {
  position: relative;
  display: flex;
  gap: 8px;
}
.search-form input {
  padding-left: 36px;
}
.info-notice {
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .82rem;
  color: var(--text-secondary, #bac2de);
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════
   WEEKLY REPORTS PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.weekly-card {
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #313244);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 16px;
  transition: border-color .15s;
}
.weekly-card:hover {
  border-color: rgba(232,59,59,.35);
}
.weekly-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.weekly-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.weekly-card-date {
  font-size: .78rem;
  color: var(--text-muted, #6c7086);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.weekly-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.35;
}
.weekly-card-title a {
  color: var(--text, #cdd6f4);
  text-decoration: none;
}
.weekly-card-title a:hover {
  color: var(--red, #e83b3b);
}
.weekly-card-summary {
  font-size: .85rem;
  color: var(--text-muted, #6c7086);
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.weekly-card-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border, #313244);
}
.weekly-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
}
.weekly-metric:first-child {
  padding-left: 0;
}
.weekly-metric-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text, #cdd6f4);
  font-variant-numeric: tabular-nums;
}
.weekly-metric-num--red    { color: #f87171; }
.weekly-metric-num--yellow { color: #fbbf24; }
.weekly-metric-num--muted  { color: var(--text-muted, #6c7086); }
.weekly-metric-label {
  font-size: .68rem;
  color: var(--text-muted, #6c7086);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.weekly-metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border, #313244);
  flex-shrink: 0;
}
.weekly-card-cta {
  margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════════════
   TOOLS PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.tool-card {
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #313244);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #cdd6f4);
  margin: 0;
}
.tool-card p {
  font-size: .83rem;
  color: var(--text-muted, #6c7086);
  line-height: 1.6;
  margin: 0;
}
.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tool-input {
  flex: 1;
  background: var(--bg, #08090f);
  border: 1px solid var(--border, #313244);
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--text, #cdd6f4);
  font-size: .85rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.tool-input:focus {
  border-color: var(--red, #e83b3b);
}
.tool-input::placeholder {
  color: var(--text-muted, #6c7086);
}
.tool-result {
  background: var(--bg, #08090f);
  border: 1px solid var(--border, #313244);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: .82rem;
  color: var(--text-secondary, #bac2de);
  min-height: 44px;
  display: none;
  font-family: 'JetBrains Mono', monospace;
}
.tool-result.show {
  display: block;
}
.tool-ext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tool-ext-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border, #313244);
  border-radius: 7px;
  color: var(--text-secondary, #bac2de);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.tool-ext-link:hover {
  border-color: rgba(232,59,59,.4);
  background: rgba(232,59,59,.04);
  color: var(--text, #cdd6f4);
}

/* ═══════════════════════════════════════════════════════════════════════
   FAMILIES PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.fam-group {
  margin-bottom: 10px;
  border: 1px solid var(--border, #313244);
  border-radius: 8px;
  overflow: hidden;
}
.fam-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--surface, #1e1e2e);
  transition: background .12s;
  user-select: none;
}
.fam-group-header:hover {
  background: var(--surface2, #313244);
}
.fam-group-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text, #cdd6f4);
  flex: 1;
}
.fam-group-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text, #cdd6f4);
}
.fam-group-count {
  font-size: .72rem;
  color: var(--text-muted, #6c7086);
  background: var(--surface2, #313244);
  padding: 2px 8px;
  border-radius: 10px;
}
.fam-group-year {
  font-size: .72rem;
  color: var(--text-muted, #6c7086);
}
.fam-group-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fam-group-chevron {
  color: var(--text-muted, #6c7086);
  transition: transform .2s;
  flex-shrink: 0;
}
.fam-group.open .fam-group-chevron {
  transform: rotate(180deg);
}
.fam-group-body {
  display: none;
  padding: 8px 0;
  background: rgba(0,0,0,.15);
  border-top: 1px solid var(--border, #313244);
}
.fam-group.open .fam-group-body {
  display: block;
}
.fam-group-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  transition: background .1s;
  text-decoration: none;
  color: var(--text, #cdd6f4);
}
.fam-group-item:hover {
  background: var(--surface2, #313244);
}
.fam-group-item-name {
  font-size: .85rem;
  color: var(--text, #cdd6f4);
  flex: 1;
}
.fam-group-item-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.family-name-link {
  color: var(--text, #cdd6f4);
  text-decoration: none;
  font-weight: 500;
}
.family-name-link:hover {
  color: var(--red, #e83b3b);
}
.purpose-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.purpose-pill--more {
  font-size: .65rem;
  color: var(--text-muted, #6c7086);
  background: var(--surface2, #313244);
  border-radius: 3px;
  padding: 1px 6px;
}
.fam-targets {
  font-size: .75rem;
  color: var(--text-muted, #6c7086);
}
.malware-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, #313244);
  transition: background .1s;
}
.malware-row:last-child {
  border-bottom: none;
}
.malware-row:hover {
  background: var(--surface2, #313244);
}
.report-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  background: rgba(232,59,59,.1);
  color: var(--red, #e83b3b);
  border: 1px solid rgba(232,59,59,.2);
  border-radius: 4px;
  padding: 2px 7px;
}
.critical-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
}
.filter-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-header--families .page-header-inner {
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   CVE DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.cve-score-display {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 12px 0;
}
.cve-score-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text, #cdd6f4);
}
.cve-score-label {
  font-size: .75rem;
  color: var(--text-muted, #6c7086);
  margin-bottom: 6px;
}
.cvss-score-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #313244);
  border-radius: 8px;
}
.cvss-score-unit {
  font-size: .75rem;
  color: var(--text-muted, #6c7086);
  margin-left: 2px;
  align-self: flex-end;
  margin-bottom: 4px;
}
.cve-article-body {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-secondary, #bac2de);
}
.cve-article-body h2, .cve-article-body h3 {
  color: var(--text, #cdd6f4);
  margin-top: 1.5rem;
}
.cve-article-body code {
  background: var(--surface2, #313244);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: .85em;
}
.cve-no-content-notice {
  padding: 24px;
  background: var(--surface, #1e1e2e);
  border: 1px dashed var(--border, #313244);
  border-radius: 8px;
  color: var(--text-muted, #6c7086);
  font-size: .85rem;
  text-align: center;
}
.exploit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: .75rem;
  font-weight: 600;
}
.exploit-badge--yes { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.exploit-badge--no  { background: rgba(34,197,94,.1);  color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
}
.status-indicator::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.ts-val--bold {
  font-weight: 700;
}
.related-cve-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.related-cve-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface2, #313244);
  border-radius: 6px;
  font-size: .82rem;
  text-decoration: none;
  color: var(--text, #cdd6f4);
  transition: background .12s;
}
.related-cve-item:hover {
  background: rgba(232,59,59,.1);
}
.related-families-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.related-fam-card {
  background: var(--surface2, #313244);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: .82rem;
  text-decoration: none;
  color: var(--text, #cdd6f4);
  transition: background .12s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.related-fam-card:hover {
  background: rgba(232,59,59,.1);
}
.btn--full-mt6 {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE ADDITIONS
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr; }
  .fam-group-body { padding: 4px 0; }
  .weekly-card { padding: 14px 16px; }
  .cve-score-num { font-size: 2.2rem; }
  .related-families-grid { grid-template-columns: 1fr 1fr; }
  .tool-ext-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .weekly-card-header { flex-direction: column; align-items: flex-start; }
  .weekly-card-metrics { flex-wrap: wrap; gap: 12px; }
  .weekly-metric-divider { display: none; }
  .page-header-inner { flex-direction: column; }
}
/* skip-link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--red, #e83b3b);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  transition: top .15s;
}
.skip-link:focus {
  top: 0;
  outline: none;
}
/* ── Lang Switcher ──────────────────────────────────────────────── */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--text-secondary, #ccc);
  font-size: .78rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lang-btn:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.lang-btn .lang-flag { font-size: 1rem; line-height: 1; }
.lang-btn .lang-code { font-weight: 600; letter-spacing: .03em; }
.lang-btn svg { opacity: .6; transition: transform .15s; }
.lang-switcher.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1a1a1e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  z-index: 1000;
  min-width: 140px;
  padding: 4px;
  max-height: 280px;
  overflow-y: auto;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: .8rem;
  color: #ccc;
  text-decoration: none;
  transition: background .1s, color .1s;
}
.lang-option:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang-option--active { color: var(--accent, #e83b3b); font-weight: 600; pointer-events: none; }
.lang-option .lang-flag { font-size: .95rem; }
/* ── Translation notice banner ─────────────────────────────────── */
.lang-notice {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--surface-1, #1a1a2e);
  border: 1px solid var(--accent, #6366f1);
  border-radius: .5rem;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  color: var(--text-2, #a1a1aa);
}
.lang-notice svg { flex-shrink: 0; color: var(--accent, #6366f1); }
.lang-notice a { color: var(--accent, #6366f1); }
@media (prefers-color-scheme: light) {
  .lang-notice { background: #f0f0ff; border-color: #6366f1; color: #4a4a6a; }
}
