/**
 * DEFCON Level, Current Level Page
 * Current DEFCON level hero, card grids, quick facts, alert blips, command cards, breaking alert banner, and related page links.
 *
 * Part of the Defcon site CSS (builds on engine base theme).
 * Load order managed by config/site.php → site_css array.
 */

/* ================================================================
   CURRENT PAGE LAYOUT
   ================================================================ */
.current-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Quick Facts grid, fixed 2-column with clean breakpoint instead of auto-fit */
.info-grid--qf {
  grid-template-columns: 1fr 1fr;
}

/* Prevent margin+gap compounding, flex gap handles all vertical spacing */
.current-layout > section,
.current-layout > .info-grid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.map-panel {
  display: block;
}

.map-panel__img {
  width: 100%;
  border-radius: 8px;
}


/* Quick Facts List */
.quick-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.quick-facts li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Snapshot Group Labels */
.snapshot-group-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 var(--space-2) 0;
  font-weight: 600;
}

.snapshot-group-label--border {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.snapshot-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.snapshot-link:hover {
  color: var(--accent-primary);
}

.snapshot-links {
  font-size: var(--text-xs);
  margin: var(--space-2) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0;
}

.snapshot-sep {
  color: var(--text-secondary);
  margin: 0 0.25em;
}

.snapshot-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-3);
  margin-bottom: 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

/* ================================================================
   QUICK FACTS PANEL, redesigned card for level info + snapshot
   Consistent typography, clean rows, consolidated CTAs
   ================================================================ */
.qf-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--border-subtle);
}

.qf-panel--level-1 { border-left-color: #dc2626; }
.qf-panel--level-2 { border-left-color: #ef4444; }
.qf-panel--level-3 { border-left-color: #eab308; }
.qf-panel--level-4 { border-left-color: #22c55e; }
.qf-panel--level-5 { border-left-color: #3b82f6; }
.qf-panel--accent  { border-left-color: #0ea5e9; }

.qf-panel__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.qf-panel__desc {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.6;
  margin: 0 0 0.25rem;
}

.qf-panel__section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.qf-panel__section:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.qf-panel__section-label {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 0.375rem;
}

.qf-panel__rows {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qf-panel__rows li {
  list-style: none;
}

.qf-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  flex-wrap: wrap;
}

.qf-panel__row:last-child {
  border-bottom: none;
}

a.qf-panel__row:hover {
  color: var(--accent-primary);
}

.qf-panel__row-label {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.qf-panel__row-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  min-width: 0;
  word-break: break-word;
}

.qf-panel__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.qf-panel__cta {
  font-size: var(--text-xs, 0.75rem);
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.qf-panel__cta:hover {
  color: var(--accent-hover, #38bdf8);
  text-decoration: underline;
}

.qf-panel__disclaimer {
  font-size: var(--text-xs, 0.75rem);
  color: var(--text-muted);
  margin: 0.625rem 0 0;
  line-height: 1.5;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 700px) {
  .info-grid--qf { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .qf-panel {
    padding: 1rem;
  }
  .qf-panel__title {
    font-size: 1rem;
  }
  .qf-panel__row {
    font-size: 1rem;
    gap: 0.5rem;
  }
}

/* Methodology / Info Card (boxed content sections) */
.info-card-box {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.info-card-box--secondary {
  background: var(--bg-secondary);
}

.info-card-box h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.info-card-box p:last-child {
  margin-bottom: 0;
}

/* DEFCON Watch teaser cards (current-level compact grid) */
.watch-card--teaser {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  padding: 1.25rem;
  border-radius: var(--radius, 0.5rem);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.watch-card--teaser:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
  background: rgba(14, 165, 233, 0.06);
}
.watch-card--teaser p {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

/* DEFCON Watch card BEM variants (current-level page) */
.watch-card--domestic {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, rgba(239,68,68,0.05), var(--bg-card));
}
.watch-card--global {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245,158,11,0.05), var(--bg-card));
}
.watch-card--missile {
  border-left: 4px solid #8b5cf6;
  background: linear-gradient(135deg, rgba(139,92,246,0.05), var(--bg-card));
}
.watch-card--intel {
  border-left: 4px solid var(--accent-primary);
  background: linear-gradient(135deg, rgba(14,165,233,0.05), var(--bg-card));
}
.watch-card__list {
  padding-left: 1.1rem;
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.watch-card__list li {
  font-size: var(--text-lg);
  line-height: 1.6;
}
.watch-card__list--developing li {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* Intel Flash card */
.watch-card__intel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.watch-card__intel-header h3 {
  margin: 0;
}
.watch-card__live-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: #ef4444;
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
}
.watch-card__all-link {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--accent-primary);
  white-space: nowrap;
}
.watch-card__alert-feed {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}
.watch-card__alert-feed li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-lg);
}
.watch-card__alert-feed li:last-child {
  border-bottom: none;
}
.watch-card__alert-feed li.priority-critical {
  border-left: 3px solid var(--priority-critical, #dc2626);
  padding-left: 0.5rem;
}
.watch-card__alert-feed li.priority-high {
  border-left: 3px solid var(--priority-high, #ef4444);
  padding-left: 0.5rem;
}
.watch-card__alert-feed li.priority-elevated {
  border-left: 3px solid var(--priority-elevated, #eab308);
  padding-left: 0.5rem;
}
.watch-card__alert-feed li.priority-standard {
  border-left: 3px solid var(--border-subtle, #334155);
  padding-left: 0.5rem;
}
.watch-card__alert-feed-wrap,
.developing-stories-teaser__wrap {
  position: relative;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.watch-card__alert-date {
  flex-shrink: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  min-width: 3.2rem;
}
.watch-card__alert-title {
  flex: 1;
  line-height: 1.4;
  color: var(--text-primary);
}
a.watch-card__alert-title {
  color: var(--accent-primary);
  text-decoration: none;
}
a.watch-card__alert-title:hover {
  color: var(--accent-hover);
}
.watch-card__developing-bar {
  margin: 0.75rem 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.watch-card__developing-bar::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.watch-card__developing-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Understand System Grid */
.understand-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Section center CTA */
.section-center {
  margin-top: 2rem;
  text-align: center;
}

/* Alert Card Content Wrapper */
.alert-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Breaking Alert Banner (homepage) */
.breaking-alert-banner {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  padding: var(--space-2) 0;
  text-align: center;
}

.breaking-alert-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.breaking-alert-banner a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.current-hero .breaking-label {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Homepage Section Modifiers, scoped to homepage context */
.home-understand {
  margin-top: var(--space-6);
}

.home-top-pages {
  margin-top: var(--space-6);
}

.current-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-tertiary), rgba(14, 165, 233, 0.06));
}

.current-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  align-self: center;
  margin-top: -1.5rem;
}

.current-badge-container a {
  line-height: 0;
}

.current-badge-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  transition: transform 0.2s;
}

.current-badge-img:hover {
  transform: scale(1.05);
}

.current-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Level-colored top accent + glow */
.current-badge.level-1 {
  border-top-color: #dc2626; color: #f8d7da;
  box-shadow: 0 -4px 20px rgba(220, 38, 38, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.current-badge.level-2 {
  border-top-color: #ef4444; color: #fca5a5;
  box-shadow: 0 -4px 20px rgba(239, 68, 68, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.current-badge.level-3 {
  border-top-color: #eab308; color: #fde68a;
  box-shadow: 0 -4px 20px rgba(234, 179, 8, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.current-badge.level-4 {
  border-top-color: #22c55e; color: #86efac;
  box-shadow: 0 -4px 20px rgba(34, 197, 94, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.current-badge.level-5 {
  border-top-color: #3b82f6; color: #93c5fd;
  box-shadow: 0 -4px 20px rgba(59, 130, 246, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Hero border color by level */
.current-hero[data-level="1"] { border-color: #dc2626; }
.current-hero[data-level="2"] { border-color: #ef4444; }
.current-hero[data-level="3"] { border-color: #eab308; }
.current-hero[data-level="4"] { border-color: #22c55e; }
.current-hero[data-level="5"] { border-color: #3b82f6; }

.badge-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.badge-number {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
}

.badge-codename {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.hero-raised-count {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--priority-critical, #dc2626);
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}

.current-hero-text h1 {
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-2) 0;
}

.current-hero-text .hero-summary,
.current-hero-text .hero-impact {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0 0 var(--space-4) 0;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin: 0 0 var(--space-2) 0;
}

.current-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.current-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.current-card h2,
.current-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.current-card p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.current-card .note {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

.current-card .link-muted {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  display: inline-block;
}

.current-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.current-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.current-list li:last-child {
  border-bottom: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-weight: 700;
}
/* DEFCON level colors: canonical source LevelDefinition::getColor / getTextColor */
.pill--level-1 { background: #ffffff; color: #0f172a; border-color: #ffffff; }
.pill--level-2 { background: #dc2626; color: #ffffff; border-color: #dc2626; }
.pill--level-3 { background: #eab308; color: #0f172a; border-color: #eab308; }
.pill--level-4 { background: #22c55e; color: #0f172a; border-color: #22c55e; }
.pill--level-5 { background: #3b82f6; color: #ffffff; border-color: #3b82f6; }

.current-alerts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.section-header h2 {
  margin: 0;
}


.blip-logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fix image loading on mobile - ensure images load properly */
.blip-command-logo {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  /* Prevent image flashing/glitching on mobile */
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.blip-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Prevent image flashing/glitching on mobile */
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.blip-content {
  flex: 1;
  min-width: 0;
  /* Ensure content doesn't get truncated */
  overflow: visible;
  width: auto;
}

.blip-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Prevent text flashing/glitching */
  will-change: auto;
  transform: translateZ(0);
  /* Prevent text truncation that causes flickering */
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  /* Ensure full text is visible - no width constraints */
  max-width: none;
  width: auto;
}

.blip-text {
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.7;
  font-size: var(--text-base);
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Prevent text flashing/glitching */
  will-change: auto;
  transform: translateZ(0);
  /* Prevent text truncation that causes flashing */
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  /* Ensure full text is visible - no width constraints */
  max-width: none;
  width: auto;
}

.blip-links {
  font-size: var(--text-sm);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.blip-note {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-style: italic;
  margin-top: var(--space-4);
}

/* ================================================================
   CURRENT LEVEL FALLBACK HERO
   ================================================================ */
.current-hero-fallback {
  display: flex;
  gap: var(--space-6, 24px);
  align-items: center;
  padding: var(--space-6, 24px);
  background: var(--bg-tertiary, #1a1a2e);
  border-radius: 12px;
  border: 1px solid var(--border-subtle, #333);
  margin-bottom: var(--space-6, 24px);
}

.current-hero-badge img {
  max-width: 150px;
  height: auto;
  border-radius: 12px;
}

.current-hero-info {
  flex: 1;
}

.current-hero-info h2 {
  margin: var(--space-2, 8px) 0;
  color: var(--level-3, #EAB308);
}

@media (max-width: 640px) {
  .current-hero-fallback {
    flex-direction: column;
    text-align: center;
  }
}

/* Level-specific command badge colors */
.command-level-badge--1 { background: #dc2626; color: #fff; }
.command-level-badge--2 { background: #ef4444; color: #fff; }
.command-level-badge--3 { background: #eab308; color: #000; }
.command-level-badge--4 { background: #22c55e; color: #fff; }
.command-level-badge--5 { background: #3b82f6; color: #fff; }

/* Accent-colored inline link */
.link-accent {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

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


/* Compact alert flash grid, 2 rows max with fade */
.alert-press-grid--compact {
  max-height: 820px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Compact command card grid, 2 rows max with fade */
.command-card-grid--compact {
  max-height: 480px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Watch card toggle, hybrid: plus/minus + hover + color-coded border */
.watch-card__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: inherit;
  text-align: left;
  transition: background 0.2s ease;
}

.watch-card__toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.watch-card__toggle h3 {
  margin: 0;
  flex: 1;
}

/* Plus/minus indicator circle */
.watch-card__toggle-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-primary);
}

.watch-card__toggle:hover .watch-card__toggle-indicator {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--accent-primary);
}

.watch-card__toggle[aria-expanded="true"] .watch-card__toggle-indicator {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--accent-primary);
}

/* Color-coded left border on collapsed toggle */
.watch-card--domestic .watch-card__toggle {
  border-left: 3px solid var(--priority-critical, #dc2626);
}
.watch-card--global .watch-card__toggle {
  border-left: 3px solid var(--priority-elevated, #eab308);
}
.watch-card--missile .watch-card__toggle {
  border-left: 3px solid var(--priority-high, #ef4444);
}

/* FAQ accordion, plus/minus with hover */
.faq-item__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 4px 4px 0 0;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: inherit;
  text-align: left;
  transition: background 0.2s ease;
}

.faq-item__toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.faq-item__toggle h3 {
  margin: 0;
  font-size: var(--text-base);
  flex: 1;
}

.faq-item__indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-primary);
  transition: all 0.2s ease;
}

.faq-item__toggle:hover .faq-item__indicator {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--accent-primary);
}

.faq-item__toggle[aria-expanded="true"] .faq-item__indicator {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--accent-primary);
}

.faq-item__toggle[aria-expanded="true"] + div {
  display: block !important;
  padding: 0.5rem 1rem 0.75rem 3.5rem;
}

@media (max-width: 768px) {
  .alert-press-grid--compact {
    max-height: 860px;
  }
  .command-card-grid--compact {
    max-height: 520px;
  }
}

/* Single-column mobile: remove compact constraint, cards need full height */
@media (max-width: 480px) {
  .alert-press-grid--compact {
    max-height: none;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ================================================================
   CYBER THREAT GAUGE (replaces full cyber map on /current-level)
   Severity class on .cyber-gauge sets --gauge-color; arc + dot + label inherit.
   ================================================================ */
.cyber-gauge-section > p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.cyber-gauge {
  --gauge-color: #f59e0b;
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 1.5rem;
  row-gap: 0;
  align-items: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.cyber-gauge--severe   { --gauge-color: #dc2626; }
.cyber-gauge--high     { --gauge-color: #ef4444; }
.cyber-gauge--elevated { --gauge-color: #f59e0b; }
.cyber-gauge--standard { --gauge-color: #22c55e; }

/* Visual spans both rows of the grid so the text paragraphs (now direct grid children
   after the __text wrapper was flattened, 2026-04-21) stack cleanly in the right column. */
.cyber-gauge__visual { position: relative; text-align: center; grid-row: span 2; align-self: center; }
.cyber-gauge__visual svg { width: 100%; height: auto; max-width: 200px; display: block; margin: 0 auto; }
.cyber-gauge__arc-fill { stroke: var(--gauge-color); }
.cyber-gauge__dot      { fill: var(--gauge-color); }
.cyber-gauge__label {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: -1.25rem;
  text-align: center;
  color: var(--gauge-color);
}
.cyber-gauge > p { margin: 0 0 0.75rem; line-height: 1.55; }
.cyber-gauge > p:last-of-type { margin-bottom: 0; }
.cyber-gauge__meta { font-size: 1rem; color: var(--text-primary); }
.cyber-gauge__hook { font-size: 0.9375rem; color: var(--text-muted); }
.cyber-gauge__cta-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.cyber-gauge__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .cyber-gauge { grid-template-columns: 1fr; text-align: center; }
}

/* ================================================================
   FAQ link-card grid (replaces accordion - drives spoke-page traffic)
   JSON-LD FAQPage schema preserved separately for rich snippets.
   ================================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (max-width: 720px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.faq-card:hover {
  border-color: var(--accent-primary);
  background: rgba(14, 165, 233, 0.06);
  transform: translateY(-1px);
}
.faq-card__q {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.faq-card__arrow {
  color: var(--accent-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-card:hover .faq-card__arrow { transform: translateX(3px); }

/* ================================================================
   HERO POLISH (2026-04-20): eyebrow + tight lead + driver + live signals
   ================================================================ */
.hero-eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.75rem;
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin: 0 0 0.5rem;
}
.hero-eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  display: inline-block; flex-shrink: 0;
  animation: hero-pulse 2s ease-in-out infinite;
}
.hero-eyebrow__live { color: #22c55e; font-weight: 700; }
.hero-eyebrow__sep { opacity: 0.4; }
.hero-eyebrow__verified { color: var(--text-secondary); }
.hero-eyebrow__verified--stale { color: #d97706; font-weight: 600; }

@keyframes hero-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-lead {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.hero-lead strong { color: var(--text-primary); }

/* Op J (2026-05-27): hero auto-populate from latest critical/high alerts.
   Jump link routes to /alert/<slug>; freshness pill shows alert age. Both
   appear ONLY when hero source is auto (never on manual editorial heroes). */
.hero-lead__jump {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hero-lead__jump:hover,
.hero-lead__jump:focus { text-decoration: underline; }
.hero-lead__fresh {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: 1px;
}

.hero-driver {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.hero-driver a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
}
.hero-driver a:hover { text-decoration: underline; }
.hero-driver__meta { color: var(--text-muted); font-size: 0.875rem; }
.hero-driver__secondary {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-driver__secondary:hover { text-decoration: underline; }

.hero-signals {
  margin: 0 0 0.75rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--text-secondary);
}
.hero-signals strong { color: var(--text-primary); margin-right: 0.25rem; }
.hero-signals__pill {
  display: inline-flex; align-items: baseline; gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 9999px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.8125rem;
  transition: background 0.15s, border-color 0.15s;
}
.hero-signals__pill:hover {
  background: rgba(14, 165, 233, 0.14);
  border-color: var(--accent-primary);
}
.hero-signals__label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-signals__trend {
  font-size: 0.7rem;
  line-height: 1;
  margin-left: 0.15rem;
}
.hero-signals__trend--up   { color: #22c55e; }
.hero-signals__trend--down { color: #ef4444; }

/* Offset for fragment-link anchors so jumped-to section isn't cut off by page chrome */
#conflict-map,
#command-filter { scroll-margin-top: 1rem; }

/* Since-last-visit strip: return-visitor engagement hook after hero */
.since-last-visit {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-left: 4px solid var(--accent-primary);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.since-last-visit__header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin: 0 0 0.5rem;
  font-weight: 700;
  border-bottom: none;
}
.since-last-visit__row {
  margin: 0.35rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.since-last-visit__row a {
  color: var(--text-primary);
  text-decoration: none;
}
.since-last-visit__row a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}
.since-last-visit__row strong { color: var(--text-primary); }

/* Cyber gauge count link (inline within gauge meta) */
.cyber-gauge__count-link {
  color: var(--accent-primary);
  text-decoration: none;
}
.cyber-gauge__count-link:hover { text-decoration: underline; }

/* Info-card with bottom button (What DEFCON N Means grid - dual anchor text for SEO) */
.info-card--button {
  display: flex;
  flex-direction: column;
}
.info-card--button .info-card__title a {
  color: var(--accent-primary);
  text-decoration: none;
}
.info-card--button .info-card__title a:hover { text-decoration: underline; }
.info-card--button .info-card__text { flex: 1; }
.info-card__btn {
  align-self: center;
  margin-top: 0.75rem;
}

/* Snapshot strip: compact 4-cell horizontal data row (replaces dense qf-grid panel) */
.snapshot-strip__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  font-weight: 700;
  border-bottom: none;
}
.snapshot-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin: 0;
}
.snapshot-strip__cell { min-width: 0; text-align: center; }
.snapshot-strip__cell dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.2rem;
  font-weight: 600;
}
.snapshot-strip__cell dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}
.snapshot-strip__cell dd a {
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.snapshot-strip__cell dd a:hover { color: var(--accent-primary); }
.snapshot-strip__codename {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* Center the DEFCON pill in its cell (codename removed) */
.snapshot-strip__cell--defcon dd { text-align: center; }
.snapshot-strip__defcon-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Financial Impact section (deep-page placement): centered CTA row + spaced pill grid */
.financial-impact__pills {
  justify-content: center;
  margin: 1rem 0 1.25rem !important;
}
.financial-impact__cta-row {
  text-align: center;
  margin: 0.75rem 0 0;
}
@media (max-width: 760px) { .snapshot-strip__grid { grid-template-columns: repeat(2, 1fr); } }

/* What DEFCON Means intro: condensed teaser with fade-to-bg cue inviting click-through. */
.what-defcon-means__intro {
  position: relative;
  margin-bottom: 1.25rem;
}
.what-defcon-means__intro::after {
  content: '';
  position: absolute;
  left: -0.5rem;
  right: -0.5rem;
  bottom: 0;
  height: 4.5rem;
  background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 15, 0.65) 55%, var(--bg-primary, #0a0a0f) 100%);
  pointer-events: none;
}

/* What DEFCON Means intro CTAs: centered button row. Primary CTA emphasized. */
.what-defcon-means__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* TOC strip: keyword-rich jump links after Snapshot. SEO sitelinks signal + UX anchor nav. */
.toc-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  background: rgba(14, 165, 233, 0.05);
  border-top: 1px solid rgba(14, 165, 233, 0.15);
  border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}
.toc-strip a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 9999px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.toc-strip a:hover {
  background: rgba(14, 165, 233, 0.20);
  border-color: var(--accent-primary);
  color: #ffffff;
}
@media (max-width: 700px) {
  .toc-strip {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .toc-strip::-webkit-scrollbar { display: none; }
  .toc-strip a { flex-shrink: 0; }
}
