/* ═══════════════════════════════════════════════
   LATEST INTEL — Global Stylesheet
   Dark military OSINT aesthetic
   Fonts: Rajdhani + JetBrains Mono + Barlow
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ─── Variables ─── */
:root {
  --bg:          #080b0f;
  --bg-2:        #0d1117;
  --bg-3:        #111820;
  --surface:     #131b24;
  --surface-2:   #1a2535;
  --border:      #1e2d3d;
  --border-2:    #253447;
  --text:        #d8e4f0;
  --text-dim:    #6b8299;
  --text-muted:  #3d5068;
  --accent:      #c8922a;
  --accent-2:    #e0a832;
  --accent-dim:  #8a611a;
  --red:         #b83232;
  --red-bright:  #e04040;
  --green:       #2a7a4a;
  --green-bright:#3aad68;
  --yellow:      #b89020;
  --yellow-bright:#ddb030;
  --blue:        #2a5a8a;
  --blue-bright: #4a9ad4;

  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --display: 'Rajdhani', 'Impact', sans-serif;
  --body: 'Barlow', -apple-system, sans-serif;

  --max-width: 780px;
  --radius: 3px;

  --transition: 0.18s ease;
}

/*
  Light mode overrides
  When the body element has data-theme="light", these variables
  redefine the palette to provide higher contrast on a light
  background. We keep the accent colours consistent but lighten
  backgrounds and surfaces and darken text for readability. The
  theme toggle script will set this attribute on the <body> element.
*/
body[data-theme="light"] {
  --bg:          #fdfdfd;
  --bg-2:        #f5f6f7;
  --bg-3:        #eceff2;
  --surface:     #ffffff;
  --surface-2:   #f0f2f5;
  --border:      #d5d9df;
  --border-2:    #c5ccd8;
  --text:        #1a2433;
  --text-dim:    #5a6b80;
  --text-muted:  #8e9bb1;
  --accent:      #c8922a;
  --accent-2:    #a0751e;
  --accent-dim:  #e0a832;
  --red:         #b83232;
  --red-bright:  #e04040;
  --green:       #2a7a4a;
  --green-bright:#3aad68;
  --yellow:      #b89020;
  --yellow-bright:#ddb030;
  --blue:        #2a5a8a;
  --blue-bright: #4a9ad4;
}

/*
  Theme toggle button
  Positioned in the header next to the navigation. This button
  displays a sun/moon icon depending on the active theme. It is
  styled minimally so it doesn’t compete with the navigation.
*/
.theme-toggle {
  margin-left: 0.75rem;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--accent);
  background: var(--surface-2);
}

/*
  Subscription form feedback
  Displays validation or success messages beneath the email input.
*/
.subscribe-message {
  font-family: var(--mono);
  font-size: 0.65rem;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/*
  Visually hidden utility class
  Hides an element visually while keeping it accessible to screen readers.
*/
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Subtle grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,146,42,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,146,42,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Layout ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Alert Banner / Ticker ─── */
.alert-banner {
  background: var(--red);
  color: #fff;
  padding: 0.4rem 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.alert-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.alert-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: rgba(0,0,0,0.3);
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.ticker {
  display: flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker span {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ticker span::before {
  content: '▸ ';
  opacity: 0.7;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Header ─── */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8,11,15,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 90;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-top {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}

.logo-main {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

.logo-main span {
  color: var(--accent);
}

.logo:hover .logo-main {
  color: var(--accent-2);
  transition: color var(--transition);
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

nav a:hover {
  color: var(--text);
  background: var(--surface);
}

nav a.active {
  color: var(--accent);
  background: rgba(200,146,42,0.08);
}

nav .nav-cta {
  margin-left: 0.5rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  transition: background var(--transition);
}

nav .nav-cta:hover {
  background: var(--accent-2);
  color: #000;
}

/* ─── Hero ─── */
.hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: 'INTEL';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 12rem;
  font-weight: 700;
  color: rgba(200,146,42,0.03);
  letter-spacing: -0.05em;
  pointer-events: none;
  white-space: nowrap;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 400;
  max-width: 480px;
  line-height: 1.6;
}

/* ─── Stats Bar ─── */
.stats-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.stat-item {
  flex: 1;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-item:hover::before { opacity: 1; }

.stat-value {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Section ─── */
section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/*
  Section icons
  Small emoji or icon glyphs preceding section labels. These icons
  help users quickly identify the type of content in each section.
*/
.section-label .section-icon {
  font-size: 0.9rem;
  line-height: 1;
  margin-right: 0.3rem;
}

.section-label::after {
  content: '';
  display: inline-block;
  flex: 1;
  height: 1px;
  width: 40px;
  background: var(--border-2);
}

.section-link {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

/* ─── Briefs ─── */
.brief {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.25rem;
  align-items: start;
  transition: background var(--transition);
  cursor: pointer;
  border-radius: var(--radius);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.brief:last-child { border-bottom: none; }

.brief:hover {
  background: var(--bg-2);
}

.brief-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.15rem;
}

.brief-content {}

.brief-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.brief-time {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Badges */
.badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.badge-flash    { background: var(--red-bright); color: #fff; }
.badge-priority { background: var(--yellow-bright); color: #000; }
.badge-routine  { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border-2); }
.badge-analysis { background: var(--blue); color: var(--blue-bright); border: 1px solid var(--blue); }

/* Branch Badges */
.branch {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  border: 1px solid;
  flex-shrink: 0;
}

.branch-usn   { color: #4a90d9; border-color: rgba(74,144,217,0.4); background: rgba(74,144,217,0.06); }
.branch-usa   { color: #6b8e23; border-color: rgba(107,142,35,0.4); background: rgba(107,142,35,0.06); }
.branch-usaf  { color: #87ceeb; border-color: rgba(135,206,235,0.4); background: rgba(135,206,235,0.06); }
.branch-usmc  { color: #cd5c5c; border-color: rgba(205,92,92,0.4); background: rgba(205,92,92,0.06); }
.branch-socom { color: #a0a0d0; border-color: rgba(160,160,208,0.4); background: rgba(160,160,208,0.06); }
.branch-cyber { color: #da70d6; border-color: rgba(218,112,214,0.4); background: rgba(218,112,214,0.06); }
.branch-joint { color: var(--accent); border-color: rgba(200,146,42,0.4); background: rgba(200,146,42,0.06); }

.brief h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color var(--transition);
}

.brief:hover h3 { color: var(--accent-2); }

.brief p {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.brief-sources {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.brief-sources a {
  color: var(--accent-dim);
  transition: color var(--transition);
}

.brief-sources a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ─── Confidence Score ─── */
.confidence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.cs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
}

.cs-label {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cs-10 { background: #1a6b3a; color: #3aed82; border: 1px solid #2a8a4a; }
.cs-9  { background: #1a5e30; color: #38d474; border: 1px solid #289050; }
.cs-8  { background: #2a5a20; color: #68c840; border: 1px solid #3a7a28; }
.cs-7  { background: #3a5010; color: #90c030; border: 1px solid #508020; }
.cs-6  { background: #4a3a10; color: var(--accent-2); border: 1px solid #6a5020; }
.cs-5  { background: #4a2e10; color: #d08030; border: 1px solid #6a4020; }
.cs-4  { background: #4a2010; color: #e07030; border: 1px solid #7a3010; }
.cs-3  { background: #4a1818; color: #e05030; border: 1px solid #7a2020; }
.cs-2  { background: #3a1010; color: #d04040; border: 1px solid #6a1818; }
.cs-1  { background: #300808; color: #c03030; border: 1px solid #5a1010; }

/* ─── Topics ─── */
.topic-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: var(--transition);
}

.topic-card:last-child { border-bottom: none; }

.topic-card:hover .topic-title { color: var(--accent-2); }

.topic-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.topic-updated {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 0.75rem;
}

.topic-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  transition: color var(--transition);
}

.topic-summary {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
  max-width: 580px;
}

.topic-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topic-stat {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.topic-arrow {
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  transition: color var(--transition), transform var(--transition);
}

.topic-card:hover .topic-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ─── Source List ─── */
.source-category {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.source-category:last-child { border-bottom: none; }

.source-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.source-category h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.source-warning {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
  padding: 0.6rem 1rem;
  border-left: 2px solid var(--red);
  background: rgba(184,50,50,0.05);
}

.source-list {
  list-style: none;
}

.source-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(30,45,61,0.5);
  transition: var(--transition);
}

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

.source-list li:hover { padding-left: 0.5rem; }

.source-list a {
  font-size: 0.875rem;
  color: var(--text);
  transition: color var(--transition);
}

.source-list li:hover a { color: var(--accent); }

.source-type {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── Reliability Key ─── */
.reliability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.rel-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.rel-grade {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.rel-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.rel-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ─── Subscribe ─── */
.subscribe-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.subscribe-section::before {
  content: '⬡';
  position: absolute;
  font-size: 12rem;
  color: rgba(200,146,42,0.03);
  right: -2rem;
  top: -2rem;
  pointer-events: none;
}

.subscribe-section h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.subscribe-section p {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-right: none;
  color: var(--text);
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-family: var(--body);
  outline: none;
  transition: border-color var(--transition);
}

.subscribe-form input:focus {
  border-color: var(--accent);
}

.subscribe-form input::placeholder { color: var(--text-muted); }

.subscribe-form button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0.7rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.subscribe-form button:hover { background: var(--accent-2); }

/* ─── Timeline ─── */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 62px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: 56px;
  top: 1.6rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  z-index: 1;
}

.timeline-entry:last-child { border-bottom: none; }

.timeline-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.1rem;
  text-align: right;
}

.timeline-content h4 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ─── Key Players ─── */
.player {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.player:last-child { border-bottom: none; }

.player-rank {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.5rem;
  white-space: nowrap;
  line-height: 1.4;
}

.player h4 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.player .role {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.player p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ─── Article ─── */
.article-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.article-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.article-body {
  padding: 2rem 0;
}

.article-body h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}

.article-body p {
  font-size: 0.925rem;
  margin-bottom: 1rem;
  color: var(--text-dim);
}

.article-body ul, .article-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.article-body li { margin-bottom: 0.4rem; }

.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-2);
  font-style: italic;
  color: var(--text-dim);
}

/* ─── Status indicator ─── */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  margin-right: 0.4rem;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ─── Page load animation ─── */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .header-inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
  nav { flex-wrap: wrap; gap: 0.1rem; }
  .subscribe-form { flex-direction: column; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .reliability-grid { grid-template-columns: 1fr 1fr; }
  .brief { grid-template-columns: 1fr; }
  .brief-left { flex-direction: row; align-items: center; }
  .topic-card { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline-entry { grid-template-columns: 1fr; gap: 0.25rem; }
  .timeline-entry::before { display: none; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ─── Enhanced States ─── */
.loading-state, .empty-state, .error-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 8px;
  margin: 1rem 0;
}

.error-state { color: #ef4444; }

/* ─── Section Meta ─── */
.section-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── Stat Source ─── */
.stat-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ─── Hero Stats ─── */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
}

.hero-stat .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ─── Feed Items ─── */
.feed-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.feed-item:last-child { border-bottom: none; }

.feed-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 2rem;
}

.feed-content h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.feed-content h4 a {
  color: var(--text);
  text-decoration: none;
}

.feed-content h4 a:hover {
  color: var(--accent);
}

.feed-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.feed-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.feed-source {
  color: var(--accent);
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline-content h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.timeline-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ─── Players Grid ─── */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.player-card {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.player-status {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.status-active { background: #22c55e20; color: #22c55e; }
.status-unconfirmed { background: #f59e0b20; color: #f59e0b; }
.status-deceased { background: #ef444420; color: #ef4444; }

.player-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.player-role {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.player-source {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0;
  font-style: italic;
}

/* ─── Methodology Note ─── */
.methodology-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.methodology-note strong {
  color: var(--text);
}

/* ─── Topics Grid ─── */
.topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ─── Topic Card Improvements ─── */
.topic-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.topic-card-content {
  flex: 1;
}

.topic-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.topic-preview {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.topic-arrow {
  font-size: 0.85rem;
  color: var(--accent-2);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  align-self: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.topic-arrow:hover {
  background: var(--accent-2);
  color: var(--bg);
}

.topic-full {
  clear: both;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  width: 100%;
}

.assessment-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.assessment-body h2, .assessment-body h3, .assessment-body h4 {
  color: var(--text);
  margin-top: 1.2rem;
}

.assessment-body a {
  color: var(--accent-2);
}

/* ─── Confidence Badge ─── */
.confidence-badge {
  background: var(--accent);
  color: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ─── US Source Highlight ─── */
a.us-source {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Article Count ─── */
#article-count {
  color: var(--accent);
  font-weight: 600;
}

#last-update {
  color: var(--text-muted);
}

/* ─── Sources Bar ─── */
.sources-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.sources-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sources-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.source-dot.confirmed { background: #22c55e; }
.source-dot.wire { background: #3b82f6; }
.source-dot.defense { background: #8b5cf6; }
.source-dot.regional { background: #f59e0b; }
.source-dot.osint { background: #ec4899; }

/* ─── Inline Source Badge ─── */
.source-badge-inline {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.source-badge-inline.confirmed { background: #22c55e20; color: #22c55e; }
.source-badge-inline.wire { background: #3b82f620; color: #3b82f6; }
.source-badge-inline.defense { background: #8b5cf620; color: #8b5cf6; }
.source-badge-inline.regional { background: #f59e0b20; color: #f59e0b; }
.source-badge-inline.osint { background: #ec489920; color: #ec4899; }

/* ─── Confidence Score Legend ─── */
.confidence-legend {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.confidence-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.confidence-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--bg);
}

.cs-10 { background: #22c55e; }
.cs-9 { background: #22c55e; }
.cs-8 { background: #84cc16; }
.cs-7 { background: #eab308; }
.cs-6 { background: #f97316; }
.cs-5 { background: #ef4444; }
.cs-4 { background: #ef4444; }

/* ─── Threat Assessment ─── */
.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.threat-card {
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid;
}

.threat-card.high { border-left-color: #ef4444; }
.threat-card.medium { border-left-color: #f59e0b; }
.threat-card.low { border-left-color: #22c55e; }

.threat-level {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.threat-card.high .threat-level { background: #ef444420; color: #ef4444; }
.threat-card.medium .threat-level { background: #f59e0b20; color: #f59e0b; }
.threat-card.low .threat-level { background: #22c55e20; color: #22c55e; }

.threat-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.threat-card p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.threat-sources {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Analysis Section ─── */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.analysis-card {
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--border);
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.analysis-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.analysis-level {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.analysis-level.high { background: #ef444420; color: #ef4444; }
.analysis-level.critical { background: #dc262620; color: #dc2626; }
.analysis-level.medium { background: #f59e0b20; color: #f59e0b; }
.analysis-level.low { background: #22c55e20; color: #22c55e; }

.analysis-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.analysis-card p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.analysis-sources {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Source Diversity ─── */
.diversity-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.diversity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.diversity-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.diversity-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.diversity-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.diversity-fill.confirmed { background: #22c55e; }
.diversity-fill.wire { background: #3b82f6; }
.diversity-fill.defense { background: #8b5cf6; }
.diversity-fill.regional { background: #f59e0b; }
.diversity-fill.osint { background: #ec4899; }

.diversity-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 80px;
}

.diversity-pct {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.diversity-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Map Placeholder ─── */
.theater-map {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.theater-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.theater-map h3 {
  margin: 0;
  font-size: 1.1rem;
}

.theater-map-placeholder {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 8px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.theater-map-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.map-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.map-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.map-dot.us { background: #3b82f6; }
.map-dot.ir { background: #ef4444; }
.map-dot.isr { background: #22c55e; }
.map-dot.proxy { background: #f59e0b; }

/* ─── Hero Section ─── */
.hero-section {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 1rem;
  line-height: 1.6;
}

/* ─── Stats Grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Main Content ─── */
.main-content {
  padding-top: 2rem;
}

/* ─── Section Header ─── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-label {
  font-size: 1.1rem;
  font-weight: 600;
}

.section-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   Topics page — preview cards with "Read Full Assessment" CTA
   ═══════════════════════════════════════════════════════════ */

.topics-page-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.topics-page-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-2, #60a5fa);
}

/* Make the card-content section fill available width */
.topics-page-card .topic-card-content {
  flex: 1;
}

/* Row containing the CTA button */
.topic-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* "Read Full Assessment →" button */
.topic-read-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2, #60a5fa);
  border: 1px solid var(--accent-2, #60a5fa);
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.topic-read-btn:hover {
  background: var(--accent-2, #60a5fa);
  color: var(--bg, #0f1117);
}

/* Topics grid — single column; could be 2-col on wide screens */
.topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .topics-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Make the last card span both columns if count is odd */
  .topics-page-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* visually-hidden utility (for sr-only labels) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
