@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Reset main content to full width ─── */
main#content {
  width: 100vw;
  max-width: none;
  margin: 64px 0 0;
  padding: 0;
}

/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
.db {
  --db-bg:       #06091a;
  --db-panel:    #0c1327;
  --db-panel-2:  #111d36;
  --db-border:   rgba(255, 255, 255, 0.07);
  --db-border-2: rgba(255, 255, 255, 0.12);

  --db-blue:     #3b82f6;
  --db-blue-dim: rgba(59, 130, 246, 0.15);
  --db-purple:   #8b5cf6;
  --db-cyan:     #06b6d4;
  --db-red:      #ef4444;
  --db-red-dim:  rgba(239, 68, 68, 0.12);
  --db-amber:    #f59e0b;
  --db-green:    #10b981;

  --db-text:     #e8edf5;
  --db-muted:    #8b99b5;
  --db-dim:      #5a6a88;

  --db-radius:   12px;
  --db-radius-sm: 8px;
  --db-radius-lg: 16px;
  --db-gap:      1rem;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-3:  0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--db-bg);
  color: var(--db-text);
  padding: 1.5rem 1.5rem 3rem;
  min-height: calc(100vh - 64px);
}

/* ══════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
══════════════════════════════════════════════ */
.db-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--db-muted);
  margin: 0 0 0.35rem;
}

.db-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}

.db-muted { color: var(--db-muted); }

/* ══════════════════════════════════════════════
   THREAT BAND — top status strip
══════════════════════════════════════════════ */
.threat-band {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem;
  background: var(--db-panel);
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  margin-bottom: 1.25rem;
}

.threat-band-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--db-muted);
  white-space: nowrap;
}

.threat-stats {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  flex: 1;
}

.threat-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.threat-stat strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.threat-stat.red  strong { color: var(--db-red); }
.threat-stat.blue strong { color: var(--db-blue); }
.threat-stat.amber strong { color: var(--db-amber); }
.threat-stat.green strong { color: var(--db-green); }

.threat-verdict {
  margin-left: auto;
}

/* ══════════════════════════════════════════════
   VERDICT CHIP
══════════════════════════════════════════════ */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.verdict::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.last-updated {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--db-muted);
  letter-spacing: 0.02em;
}

.last-updated-unknown {
  color: var(--db-dim);
}

/* ══════════════════════════════════════════════
   PANEL — base card
══════════════════════════════════════════════ */
.db-panel {
  background: var(--db-panel);
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius-lg);
  padding: var(--space-md) var(--space-lg);
}

.db-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.db-pill {
  flex-shrink: 0;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--db-border-2);
  color: var(--db-muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   BRIEFING PANEL
══════════════════════════════════════════════ */
.briefing-panel {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,130,246,0.06));
  border-color: rgba(139,92,246,0.2);
}

.briefing-summary {
  color: #d1d9f0;
  line-height: 1.7;
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.briefing-watch {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.briefing-watch li {
  padding: 0.5rem 0.85rem 0.5rem 1rem;
  background: rgba(245,158,11,0.07);
  border-radius: var(--db-radius-sm);
  border-left: 3px solid var(--db-amber);
  color: var(--db-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   MAIN GRID LAYOUT
══════════════════════════════════════════════ */
.db-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--db-gap);
  margin-bottom: var(--db-gap);
}

.db-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--db-gap);
  margin-bottom: var(--db-gap);
}

.db-full { grid-column: 1 / -1; }

/* ══════════════════════════════════════════════
   CVE LIST
══════════════════════════════════════════════ */
.cve-list {
  display: grid;
  gap: 0.45rem;
}

.cve-item {
  padding: var(--space-sm) 0.75rem;
  border-radius: var(--db-radius-sm);
  border: 1px solid var(--db-border);
  background: rgba(255,255,255,0.02);
  transition: border-color 100ms;
}

.cve-item:hover { border-color: var(--db-border-2); }

.cve-item.cve-critical {
  border-color: rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.04);
}

.cve-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.cve-id {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--db-text);
}

.score-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  line-height: 1.4;
}

.score-critical { background: var(--db-red);   color: #fff; }
.score-high     { background: #ea580c;          color: #fff; }
.score-med      { background: var(--db-amber);  color: #0b0d13; }
.score-low      { background: #6b7280;          color: #fff; }

.cve-desc {
  font-size: 0.875rem;
  color: var(--db-muted);
  line-height: 1.5;
  margin: 0;
}

/* ══════════════════════════════════════════════
   KEV CARDS
══════════════════════════════════════════════ */
.kev-list {
  display: grid;
  gap: 0.5rem;
}

.kev-card {
  padding: 0.75rem var(--space-md);
  border-radius: var(--db-radius-sm);
  border: 1px solid rgba(239,68,68,0.2);
  background: linear-gradient(135deg, rgba(239,68,68,0.06), rgba(239,68,68,0.02));
}

.kev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.kev-id {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--db-text);
}

.kev-date {
  font-size: 0.75rem;
  color: var(--db-muted);
  white-space: nowrap;
}

.kev-product {
  font-size: 0.8rem;
  color: var(--db-muted);
  margin-bottom: 0.3rem;
}

.kev-desc {
  font-size: 0.875rem;
  color: #c5cde5;
  line-height: 1.5;
  margin: 0;
}

/* ══════════════════════════════════════════════
   THREAT ACTOR BARS
══════════════════════════════════════════════ */
.actor-list {
  display: grid;
  gap: 0.55rem;
}

.actor-item {
  display: grid;
  grid-template-columns: minmax(80px, 130px) 1fr 36px;
  align-items: center;
  gap: 0.75rem;
}

.actor-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actor-bar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.actor-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--db-purple), var(--db-blue));
  border-radius: 999px;
}

.actor-count {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
  color: var(--db-muted);
}

.actor-descs {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.4rem;
}

.actor-desc {
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius-sm);
}

.actor-desc-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--db-text);
  margin-bottom: 0.15rem;
}

.actor-desc-text {
  font-size: 0.82rem;
  color: var(--db-muted);
  line-height: 1.45;
}

/* ══════════════════════════════════════════════
   NEWS ACCORDION FEED
══════════════════════════════════════════════ */
.feed-list {
  display: grid;
  gap: 0.5rem;
}

.feed-item {
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius-sm);
  background: rgba(255,255,255,0.015);
  overflow: hidden;
  transition: border-color 100ms;
}

.feed-item[open],
.feed-item:hover {
  border-color: var(--db-border-2);
}

.feed-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-sm) 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.75rem;
  align-items: start;
}

.feed-item summary::-webkit-details-marker { display: none; }

.feed-source-line {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  grid-row: 1 / 3;
}

.feed-source {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--db-blue);
  white-space: nowrap;
}

.feed-date {
  font-size: 0.7rem;
  color: var(--db-dim);
  white-space: nowrap;
}

.feed-headline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--db-text);
  line-height: 1.4;
}

.feed-body {
  padding: 0.5rem 0.85rem 0.85rem;
  border-top: 1px solid var(--db-border);
}

.feed-body-text {
  font-size: 0.875rem;
  color: #c5cde5;
  line-height: 1.6;
  margin: 0 0 0.6rem;
}

.feed-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--db-cyan);
  text-decoration: none;
}

.feed-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   DARK WEB / OTX PULSES
══════════════════════════════════════════════ */
.urlhaus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.urlhaus-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--db-muted);
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--db-border);
}

.urlhaus-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}

.urlhaus-table tr:last-child td { border-bottom: none; }

.urlhaus-url {
  word-break: break-all;
  font-size: 0.76rem;
  color: var(--db-muted);
}

.status-chip {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-online  { background: rgba(239,68,68,0.2);  color: var(--db-red);   border: 1px solid rgba(239,68,68,0.4); }
.status-offline { background: rgba(107,114,128,0.2); color: #9ca3af;         border: 1px solid rgba(107,114,128,0.3); }


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.cr-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--db-border);
  font-size: 0.75rem;
  color: var(--db-dim);
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--db-bg);
}

.cr-footer-brand {
  font-weight: 700;
  color: var(--db-text);
  letter-spacing: -0.01em;
}

.cr-footer-sep {
  color: var(--db-border-2);
}

.cr-footer-sources {
  color: var(--db-dim);
}

/* ══════════════════════════════════════════════
   SECTION DIVIDER
══════════════════════════════════════════════ */
.db-section {
  margin-bottom: var(--db-gap);
}

.db-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .db-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .db {
    padding: 1rem 0.85rem 2rem;
  }

  main#content {
    margin-top: 56px;
  }

  .db-grid,
  .db-grid-3 {
    grid-template-columns: 1fr;
  }

  .db-full { grid-column: 1; }

  .actor-item {
    grid-template-columns: minmax(60px, 100px) 1fr 32px;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .threat-band {
    gap: 0.75rem;
  }

  .threat-stats {
    gap: 0.75rem;
  }
}

/* ══════════════════════════════════════════════
   TERMINAL LOGO
══════════════════════════════════════════════ */
.cr-logo {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--db-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.cr-logo-prompt {
  color: var(--db-cyan);
}

.cr-logo-path {
  color: var(--db-muted);
}

.cr-logo-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--db-cyan);
  margin-left: 2px;
  animation: cursor-blink 1s steps(1) infinite;
  vertical-align: text-bottom;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.cr-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.cr-nav-links {
  display: flex;
  gap: 0.25rem;
}

.cr-nav-link {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--db-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--db-radius-sm);
  transition: color 150ms ease, background 150ms ease;
}

.cr-nav-link:hover {
  color: var(--db-text);
  background: rgba(255, 255, 255, 0.05);
}

.cr-nav-active {
  color: var(--db-text);
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 768px) {
  .cr-nav { padding: 0 1rem; }
  .cr-nav-links { display: none; }
}

@media (min-width: 769px) {
  .cr-hamburger { display: none; }
}

/* ══════════════════════════════════════════════
   DESIGN TOKENS (additions)
══════════════════════════════════════════════ */
.db {
  /* Source badge colors */
  --src-cisa:         #f59e0b;
  --src-bleeping:     #3b82f6;
  --src-rapid7:       #06b6d4;
  --src-krebs:        #ef4444;
  --src-darkreading:  #8b5cf6;
  --src-hackernews:   #f97316;
  --src-sans:         #10b981;
  --src-talos:        #06b6d4;
  --src-microsoft:    #0ea5e9;
  --src-default:      #6b7280;

  /* CVSS severity tokens */
  --cvss-critical-bg: rgba(239, 68, 68, 0.12);
  --cvss-high-bg:     rgba(234, 88, 12, 0.12);

  /* KEV urgency */
  --kev-urgent-bg:     rgba(239, 68, 68, 0.06);
  --kev-urgent-border: rgba(239, 68, 68, 0.25);
  --kev-urgent-glow:   0 0 14px rgba(239, 68, 68, 0.12);

  /* Section divider */
  --section-rule: rgba(255, 255, 255, 0.05);
  --digest-date:  var(--db-cyan);
}

/* ══════════════════════════════════════════════
   TYPOGRAPHY ADDITIONS
══════════════════════════════════════════════ */
.dt-page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--db-text);
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.dt-date {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--digest-date);
  margin: 0 0 0.4rem;
}

.dt-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--db-text);
  margin: 0 0 1rem;
}

.dt-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--db-text);
  line-height: 1.45;
  margin: 0;
}

.dt-body {
  font-size: 0.875rem;
  font-weight: 400;
  color: #c8d2e8;
  line-height: 1.7;
  margin: 0;
}

.dt-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--db-text);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .dt-page-title { font-size: 1.5rem; }
  .dt-date { font-size: 0.8rem; }
  .dt-section-title { font-size: 1.05rem; }
}

/* ══════════════════════════════════════════════
   DAILY DIGEST LAYOUT
══════════════════════════════════════════════ */
.digest {
  max-width: 1080px;
  margin: 0 auto;
}

.digest-header {
  margin-bottom: 1.5rem;
}

.digest-subtitle {
  font-size: 0.9rem;
  color: var(--db-muted);
  margin: 0.25rem 0 0;
  font-weight: 400;
}

.digest-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--section-rule);
}

.digest-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.db-section-head {
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════
   INTEL PAGE LAYOUT
══════════════════════════════════════════════ */
.intel {
  max-width: 1280px;
  margin: 0 auto;
}

.intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--db-gap);
  margin-bottom: var(--db-gap);
}

@media (max-width: 768px) {
  .intel { padding: 1rem 0.85rem 2rem; }
  .intel-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   EXPANDABLE CARD (xcard) — zero JS
══════════════════════════════════════════════ */
.xcard {
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius-sm);
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.xcard:hover {
  border-color: var(--db-border-2);
}

.xcard[open] {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.06);
}

.xcard-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  transition: background 150ms ease;
  user-select: none;
}

.xcard-summary::-webkit-details-marker { display: none; }
.xcard-summary::marker { display: none; }

.xcard-summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* chevron */
.xcard-summary::after {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b99b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 200ms ease;
}

.xcard[open] > .xcard-summary::after {
  transform: rotate(180deg);
}

.xcard-primary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.xcard-label {
  font-size: 0.8rem;
  color: var(--db-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xcard-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.xcard-date {
  font-size: 0.72rem;
  color: var(--db-dim);
  white-space: nowrap;
}

.xcard-body {
  padding: 0.75rem 0.85rem 1rem;
  border-top: 1px solid var(--db-border);
  font-size: 0.875rem;
  color: #c5cde5;
  line-height: 1.65;
}

.xcard-body p { margin: 0 0 0.5rem; }
.xcard-body p:last-child { margin-bottom: 0; }

.xcard-list {
  display: grid;
  gap: 0.4rem;
}

/* KEV variant */
.xcard--kev {
  border-color: var(--kev-urgent-border);
  background: var(--kev-urgent-bg);
}

.xcard--kev[open] {
  box-shadow: var(--kev-urgent-glow);
  border-color: rgba(239, 68, 68, 0.35);
}

/* CVE severity variants */
.xcard--critical {
  border-color: rgba(239, 68, 68, 0.2);
  background: var(--cvss-critical-bg);
}

.xcard--high {
  border-color: rgba(234, 88, 12, 0.15);
  background: var(--cvss-high-bg);
}

/* Field grid inside expanded body */
.xcard-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.65rem 0 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--db-radius-sm);
  border: 1px solid var(--db-border);
}

.xcard-field-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--db-dim);
  margin-bottom: 0.15rem;
}

.xcard-field-value {
  font-size: 0.83rem;
  color: var(--db-text);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .xcard-summary { padding: 0.5rem 0.65rem; }
  .xcard-fields  { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   KEV BADGE
══════════════════════════════════════════════ */
.kev-exploited-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.2);
  color: var(--db-red);
  border: 1px solid rgba(239, 68, 68, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   VIDEO GRID (Daily Digest) — may be removed if video grid removed from index.html
══════════════════════════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.video-card {
  background: var(--db-panel);
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}

.video-card:hover {
  border-color: var(--db-border-2);
  transform: translateY(-2px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #040610;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 200ms ease;
}

.video-card:hover .video-thumb img {
  opacity: 0.85;
}

.video-info {
  padding: 0.85rem 1rem 1rem;
}

.video-channel {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--db-cyan);
  display: block;
  margin-bottom: 0.3rem;
}

.video-info .dt-card-title a {
  color: var(--db-text);
  text-decoration: none;
}

.video-info .dt-card-title a:hover {
  color: var(--db-cyan);
}

.video-summary {
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   NEWS DIGEST LIST (Daily Digest)
══════════════════════════════════════════════ */
.news-digest-list {
  display: grid;
  gap: 0.5rem;
}

.news-digest-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--db-panel);
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius-sm);
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.news-digest-item:hover {
  border-color: var(--db-border-2);
  background: var(--db-panel-2);
}

.news-source-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 0.1rem;
  line-height: 1.6;
}

/* Source badge color variants */
.news-src-cisa        { background: rgba(245,158,11,0.15);  color: var(--src-cisa); }
.news-src-bleeping    { background: rgba(59,130,246,0.15);  color: var(--src-bleeping); }
.news-src-rapid7      { background: rgba(6,182,212,0.15);   color: var(--src-rapid7); }
.news-src-krebs       { background: rgba(239,68,68,0.15);   color: var(--src-krebs); }
.news-src-darkreading { background: rgba(139,92,246,0.15);  color: var(--src-darkreading); }
.news-src-hackernews  { background: rgba(249,115,22,0.15);  color: var(--src-hackernews); }
.news-src-sans        { background: rgba(16,185,129,0.15);  color: var(--src-sans); }
.news-src-talos       { background: rgba(6,182,212,0.15);   color: var(--src-talos); }
.news-src-microsoft   { background: rgba(14,165,233,0.15);  color: var(--src-microsoft); }
.news-src-default     { background: rgba(107,114,128,0.15); color: var(--src-default); }

.news-digest-content {
  flex: 1;
  min-width: 0;
}

.news-snippet {
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-arrow {
  flex-shrink: 0;
  color: var(--db-dim);
  font-size: 1.1rem;
  margin-top: 0.05rem;
  transition: color 150ms ease, transform 150ms ease;
  font-family: system-ui, sans-serif;
}

.news-digest-item:hover .news-arrow {
  color: var(--db-cyan);
  transform: translateX(3px);
}

/* ══════════════════════════════════════════════
   DIGEST ARTICLE (editorial)
══════════════════════════════════════════════ */

/* Article title */
.digest-article-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--db-text);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

/* Article meta line */
.digest-article-meta {
  font-size: 13px;
  color: var(--db-muted);
  margin: 0 0 2rem;
}

/* Verdict inline chip */
.verdict-inline {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.verdict-inline.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.verdict-inline.elevated {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.verdict-inline.guarded {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.verdict-inline.normal {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* Article body — reading column */
.digest-article {
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 17px;
  line-height: 1.8;
  color: #d4daf0;
}

/* Article headings */
.digest-article h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--db-text);
  margin: 2rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--db-border);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* First h2 should not have top border (header already provides separation) */
.digest-article h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Article paragraphs */
.digest-article p {
  margin: 0 0 1.25rem;
  color: #c8d4ec;
}

/* Article links */
.digest-article a {
  color: var(--db-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease;
}

.digest-article a:hover {
  color: var(--db-cyan);
}

/* YouTube embed container */
.digest-article .youtube-container {
  position: relative;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--db-radius-lg);
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--db-border);
  background: #040610;
}

.digest-article .youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Quick reads section within digest */
.digest-section.quick-reads {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ── DIGEST ARTICLE — responsive ── */
@media (max-width: 768px) {
  .digest-article-title {
    font-size: 24px;
  }

  .digest-article {
    padding: 0;
    font-size: 16px;
  }
}

/* ══════════════════════════════════════════════
   DIGEST ACTION WATCH STRIP
══════════════════════════════════════════════ */
.digest-watch-strip {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.25rem;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--db-radius);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.digest-watch-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--db-blue);
  white-space: nowrap;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

.digest-watch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.digest-watch-list li {
  font-size: 0.85rem;
  color: var(--db-text);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.digest-watch-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--db-blue);
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   DIGEST ARCHIVE
══════════════════════════════════════════════ */
.digest-archive-list {
  display: grid;
  gap: 0.4rem;
}

.digest-archive-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--db-panel);
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius-sm);
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.digest-archive-item:hover {
  border-color: var(--db-border-2);
  background: var(--db-panel-2);
}

.digest-archive-date {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--db-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.digest-archive-title {
  flex: 1;
  font-size: 0.9rem;
  color: var(--db-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   DIGEST ARTICLE NAV (prev / next)
══════════════════════════════════════════════ */
.digest-nav-strip {
  max-width: 720px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--db-border);
}

.digest-nav-link {
  font-size: 0.82rem;
  color: var(--db-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.digest-nav-link:hover {
  color: var(--db-blue);
}

/* ══════════════════════════════════════════════
   FOOTER — extended
══════════════════════════════════════════════ */
.cr-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--db-border);
  font-size: 0.78rem;
  color: var(--db-muted);
}

.cr-footer-brand {
  font-weight: 700;
  color: var(--db-text);
  letter-spacing: -0.01em;
}

.cr-logo-accent {
  color: var(--db-blue);
}

.cr-footer-sep {
  color: var(--db-dim);
  flex-shrink: 0;
}

.cr-footer-sources a,
.cr-footer-rss,
.cr-footer-archive {
  color: var(--db-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.cr-footer-sources a:hover,
.cr-footer-rss:hover,
.cr-footer-archive:hover {
  color: var(--db-blue);
}

.cr-footer-rss {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cr-footer-copy {
  margin-left: auto;
  color: var(--db-dim);
  font-size: 0.72rem;
}

/* ══════════════════════════════════════════════
   DESIGNER PASS — EDITORIAL REDESIGN
   Overrides placed at end for specificity win
══════════════════════════════════════════════ */

/* ── Masthead date — newspaper editorial style ── */
.dt-date {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--db-dim);
  margin: 0 0 1.75rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  display: block;
}

/* ── Article H2 — left accent border, not top rule ── */
.digest-article h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--db-text);
  margin: 2.5rem 0 0.85rem;
  padding: 0.1rem 0 0.1rem 1rem;
  border-top: none;
  border-left: 3px solid var(--db-cyan);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.digest-article h2:first-child {
  border-top: none;
  padding-top: 0.1rem;
  margin-top: 0;
}

/* ── Article meta row — flex for verdict chip ── */
.digest-article-meta {
  font-size: 13px;
  color: var(--db-muted);
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Verdict chip — more prominent ── */
.verdict-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.verdict-inline::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Inline code / CVE IDs in article body ── */
.digest-article code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background: rgba(6, 182, 212, 0.08);
  color: #67e8f9;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  white-space: nowrap;
}

.digest-article pre {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius-sm);
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.digest-article pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--db-text);
  font-size: 0.83rem;
  white-space: pre;
}

/* ── Blockquote styling ── */
.digest-article blockquote {
  border-left: 3px solid rgba(245, 158, 11, 0.5);
  padding-left: 1rem;
  margin: 1.5rem 0 1.5rem 0;
  color: var(--db-muted);
  font-style: italic;
}

/* ── Strong text — scan path bolding ── */
.digest-article strong {
  color: var(--db-text);
  font-weight: 700;
}

/* ── Watch strip — amber urgency redesign ── */
.digest-watch-strip {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 1.1rem 1.25rem 1.25rem 1.5rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-left: 3px solid var(--db-amber);
  border-radius: var(--db-radius);
  display: block;
}

.digest-watch-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--db-amber);
  margin-bottom: 0.75rem;
  padding-top: 0;
  white-space: nowrap;
  flex-shrink: unset;
}

.digest-watch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.digest-watch-list li {
  font-size: 0.875rem;
  color: #d4daf0;
  line-height: 1.5;
  padding-left: 1.25rem;
  position: relative;
}

.digest-watch-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--db-amber);
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1.5;
}

/* ── KEV exploited badge — more prominent ── */
.kev-exploited-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.12);
}

/* ── Live pulse indicator dot on threat band ── */
.threat-band-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.threat-band-label::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--db-red);
  animation: live-pulse 2.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
}

/* ══════════════════════════════════════════════
   DIGEST LAYOUT — article + sticky sidebar
══════════════════════════════════════════════ */

/* Mobile-first: single column, watch strip first */
.digest-layout {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

.digest-layout .digest-article {
  order: 2;
}

.digest-layout .digest-watch-strip {
  order: 1;
  max-width: none;
  margin: 0 0 1.5rem;
}

/* Desktop: two-column with sticky actions sidebar */
@media (min-width: 900px) {
  .digest-layout {
    grid-template-columns: 1fr 296px;
    gap: 2.75rem;
    align-items: start;
  }

  .digest-layout .digest-article {
    order: 1;
    max-width: none;
    margin: 0 0 3rem;
    grid-column: 1;
  }

  .digest-layout .digest-watch-strip {
    order: 2;
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    margin: 0;
    position: sticky;
    top: 76px;
  }
}

/* ── Quick reads below digest layout ── */
.digest-section.quick-reads {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ── Further reading section header ── */
.digest-section .db-section-head {
  margin-bottom: 1rem;
}

.digest-section .dt-section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--db-muted);
  margin: 0;
}

/* ── Article title — tighter tracking on mobile ── */
@media (max-width: 900px) {
  .digest-article-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .digest-article-title {
    font-size: 22px;
  }

  .dt-date {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }
}
