/* ============================================================
   PRC WIRE — Global Stylesheet
   ============================================================ */

:root {
  --bg: #111318;
  --surface: #181c24;
  --surface-alt: #1e2330;
  --border: #282e3a;
  --text: #e4e8ee;
  --text-secondary: #9ca3b4;
  --accent: #e5a93c;
  --accent-hover: #cc932e;
  --seal-red: #bd2828;
  --seal-red-border: #ef4444;
  --link: #7fb3e0;
  --link-hover: #a8cfe9;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  font-size: 17px;
}

/* Keyboard-only focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  text-decoration: underline;
}

/* ==========  Header  ========== */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 32px 0 24px;
  background: var(--bg);
}
.header-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.site-brand {
  display: flex;
  align-items: center;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.brand-link:hover {
  text-decoration: none;
}
.brand-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 9px;
  box-shadow: 0 3px 12px rgba(189, 40, 40, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.brand-link:hover .brand-seal {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 5px 16px rgba(189, 40, 40, 0.65);
}
.brand-seal svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: 2px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.site-title-wire {
  color: var(--accent);
  transition: color 0.15s ease;
}
.brand-link:hover .site-title-wire {
  color: var(--accent-hover);
}
.site-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--text-secondary);
}
.site-domain {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.site-tagline {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 50ch;
  line-height: 1.5;
}
.site-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a {
  color: var(--text-secondary);
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.site-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* ==========  Main  ========== */

.site-main {
  padding: 32px 0 64px;
}

/* ========== Feed Filter Tabs ========== */
.feed-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.feed-tab {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.feed-tab:hover {
  color: var(--text);
  border-color: var(--text-secondary);
  text-decoration: none;
}
.feed-tab.active {
  color: #111318;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.feed-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

/* ==========  Story Cards (Slashdot-style story stream)  ========== */

.story-card {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
}
.story-card:first-child {
  padding-top: 0;
}
.story-card:last-child {
  border-bottom: none;
}
.story-card.single-story {
  padding: 8px 0 32px;
  border-bottom: none;
}

.story-header {
  margin-bottom: 18px;
}

/* ==========  Story Headings  ========== */

.story-title {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-wrap: balance;
}
.story-title a {
  color: var(--text);
  transition: color 0.15s ease;
}
.story-title a:hover {
  color: var(--accent);
  text-decoration: none;
}
.story-title.single {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

/* Legacy alias for other pages */
.post-title {
  margin: 0 0 8px;
  line-height: 1.35;
  font-weight: 700;
}
.post-title a {
  color: var(--text);
}
.post-title a:hover {
  color: var(--accent);
  text-decoration: none;
}
.post-title.single {
  font-size: 30px;
  margin-bottom: 14px;
}

/* ==========  Story Byline / Metadata  ========== */

.story-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.byline-sep {
  color: #4b5563;
  font-size: 11px;
  user-select: none;
}
.story-date {
  color: var(--text-secondary);
}
.byline-scope {
  color: #94a3b8;
  font-weight: 600;
  text-decoration: none;
}
a.byline-scope:hover {
  color: var(--text);
  text-decoration: underline;
}
.byline-category {
  color: #cbd5e1;
  font-weight: 600;
  text-decoration: none;
}
a.byline-category:hover {
  color: var(--accent);
  text-decoration: underline;
}
.byline-source {
  color: #94a3b8;
  font-style: italic;
}

/* Legacy post-meta */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.post-meta.top {
  margin-bottom: 8px;
}
.post-date {
  color: var(--text-secondary);
}
.post-source {
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========  Story Body / Prose  ========== */

.prose {
  font-size: 17px;
  line-height: 1.75;
}
.prose p {
  margin: 0 0 20px;
  text-wrap: pretty;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose strong {
  font-weight: 700;
}
.prose a {
  color: var(--link);
}
.prose a:hover {
  color: var(--link-hover);
}
.prose h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  text-wrap: balance;
}
.prose h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  text-wrap: balance;
}
.prose ul,
.prose ol {
  padding-left: 24px;
  margin: 0 0 20px;
}
.prose li {
  margin-bottom: 8px;
}
.prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}

/* ==========  Story Footer (Landing Page & Listing Streams)  ========== */

.story-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
}
.story-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.story-permalink {
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}
.story-permalink:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.story-source-link {
  color: var(--text-secondary);
  text-decoration: none;
}
.story-source-link:hover {
  color: var(--text);
  text-decoration: underline;
}
.story-search-excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 10px 0 14px;
}

/* ==========  Story Details & Subtle Tags (Permalink Page)  ========== */

.story-source-block {
  margin: 28px 0 0;
}
.story-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.story-source-btn:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.story-tags-section {
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.story-tags-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.story-tags-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
  min-width: 68px;
}
.subtle-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.subtle-tag {
  font-size: 12.5px;
  color: #9ca3b4;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 9px;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.15s ease;
}
a.subtle-tag:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.back-nav {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-sep {
  color: #4b5563;
}

/* Subdued styles for legacy tags/badges to ensure no distracting colored blocks remain */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.tag {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a.tag:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  text-decoration: none;
}
.tactics-container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 12px;
}
.tactics-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
  font-weight: 600;
  margin-right: 2px;
}
.tactic-badge {
  font-size: 11.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  transition: all 0.15s ease;
}
a.tactic-badge:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  text-decoration: none;
}

.scope-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s ease;
}
.scope-badge.scope-local,
.scope-badge.scope-international {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.scope-badge:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.post-category {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  transition: all 0.15s ease;
}
a.post-category:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.badge-latest {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.3);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.post-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.post-card,
.post-list-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.post-list-item:last-child {
  border-bottom: none;
}
.post-list-excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 8px 0 12px;
  line-height: 1.6;
}
.read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.read-more:hover {
  color: var(--accent-hover);
}
.source-link {
  margin: 32px 0;
}
.back-link {
  margin-top: 48px;
  font-size: 14px;
}

/* ==========  Search UI  ========== */

.search-container {
  margin: 0 0 32px;
}
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 44px 12px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.12);
}
.search-input::placeholder {
  color: var(--text-secondary);
}
.search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  display: none;
}
.search-clear:hover {
  color: var(--text);
}
.search-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.search-shortcut {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-secondary);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
}
.popular-tags {
  margin: 16px 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.popular-tags-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.no-results {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

/* ==========  Pagination  ========== */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.pagination-btn {
  color: var(--link);
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.pagination-btn:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.pagination-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
  color: var(--text-secondary);
}
.pagination-info {
  color: var(--text-secondary);
}

/* ==========  Footer  ========== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}
.footer-links a {
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--text);
}

/* ==========  404  ========== */

.error-page {
  text-align: center;
  padding: 64px 24px;
}
.error-page h1 {
  font-size: 48px;
  margin: 0 0 16px;
  color: var(--text-secondary);
}
.error-page p {
  color: var(--text-secondary);
  margin: 0 0 8px;
}

/* ==========  Responsive — Tablet  ========== */

@media (max-width: 768px) {
  .site-title {
    font-size: 24px;
  }
  .story-title {
    font-size: 21px;
  }
  .story-title.single,
  .post-title.single {
    font-size: 26px;
  }
  .prose h2 {
    font-size: 22px;
  }
  .story-card {
    padding: 28px 0 22px;
  }
}

/* ==========  Responsive — Phone  ========== */

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 16px;
  }
  .site-header {
    padding: 24px 0 16px;
  }
  .brand-seal {
    width: 36px;
    height: 36px;
  }
  .site-title {
    font-size: 20px;
    letter-spacing: 1.5px;
  }
  .site-sub {
    font-size: 8.5px;
    letter-spacing: 1.2px;
  }
  .story-title {
    font-size: 19px;
  }
  .story-title.single,
  .post-title.single {
    font-size: 23px;
  }
  .post-title {
    font-size: 18px;
  }
  .story-card {
    padding: 22px 0 18px;
  }
  .story-byline {
    font-size: 12.5px;
  }
  .story-footer {
    font-size: 13px;
  }
  .site-nav {
    gap: 16px;
  }
  .pagination {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ==========  Print  ========== */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .site-header,
  .site-footer,
  .site-nav,
  .search-container,
  .pagination,
  .source-link,
  .back-link,
  .tags {
    display: none;
  }
  .post-card,
  .featured-card {
    border: none;
    background: none;
    padding: 0;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .post-category {
    background: none;
    border: 1px solid #999;
    color: #333;
  }
}

/* ============================================================
   PRC WIRE INTELLIGENCE FEED STYLING
   ============================================================ */

/* Header Search Bar Trigger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.header-search-trigger:hover {
  background: var(--surface-alt);
  border-color: #3a4457;
  color: var(--text);
  text-decoration: none;
}

.search-trigger-text {
  font-size: 13px;
}

.search-kbd {
  font-family: var(--mono);
  font-size: 11px;
  background: #232a38;
  border: 1px solid #364154;
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Discover Feed Wrapper */
.discover-feed-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ============================================================
   DISCOVER HERO FEATURED CARD
   ============================================================ */

.discover-hero-wrapper {
  margin-bottom: 12px;
}

.discover-hero-card {
  position: relative;
  background: linear-gradient(135deg, #171b25 0%, #12151d 100%);
  border: 1px solid #283142;
  border-radius: 14px;
  padding: 24px 26px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.discover-hero-card:hover {
  border-color: #3d4a63;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.hero-visual-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(229, 169, 60, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
}

.hero-glow-accent {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.12) 0%, transparent 70%);
  filter: blur(20px);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.hero-category-label,
.discover-category-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.discover-scope-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 2px 7px;
  border-radius: 4px;
  color: #94a3b8;
  background: #181d28;
  border: 1px solid #2a3344;
}

.badge-local,
.badge-intl {
  color: #94a3b8;
  background: #181d28;
  border: 1px solid #2a3344;
}

.hero-timestamp,
.discover-card-time {
  font-size: 12px;
  color: #717d96;
  font-family: var(--mono);
}

.hero-title {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.hero-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 20px;
  max-width: 85ch;
}

/* Takeaways Box in Hero & Single */
.hero-takeaways-box,
.detail-takeaways-callout {
  background: rgba(24, 28, 36, 0.85);
  border: 1px solid #2d3648;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 24px;
}

.takeaways-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.takeaways-icon {
  color: var(--accent);
  font-size: 14px;
}

.takeaways-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #e2e8f0;
}

.takeaways-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
}

.takeaways-list li {
  margin-bottom: 6px;
}

.takeaways-list li:last-child {
  margin-bottom: 0;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #232b3a;
}

.hero-sources-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-sources-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-sources-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
}

.hero-source-pill:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #111318;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-read-btn:hover {
  background: var(--accent-hover);
  transform: translateX(2px);
  text-decoration: none;
  color: #111318;
}

/* ============================================================
   DISCOVER BENTO GRID & STORY CARDS
   ============================================================ */

.discover-grid-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discover-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.discover-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.section-indicator {
  color: var(--accent);
  font-size: 11px;
}

.discover-feed-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--mono);
}

.discover-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discover-card-wrapper {
  display: flex;
  width: 100%;
}

.discover-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #151821;
  border: 1px solid #222938;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.discover-card:hover {
  transform: translateY(-2px);
  border-color: #384358;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.discover-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.discover-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.discover-card-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.discover-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.discover-card-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.discover-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discover-card-tactics,
.hero-tactics-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.hero-tactics-cluster {
  margin-bottom: 20px;
}

.tactic-tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  background: #161b26;
  border: 1px solid #283245;
  padding: 2.5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tactic-tag-pill:hover {
  color: #f1f5f9;
  background: #1e2536;
  border-color: #3b4861;
  text-decoration: none;
}

.discover-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #1e2433;
  font-size: 12px;
}

.discover-sources-stack {
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-icons-group {
  display: flex;
  align-items: center;
}

.source-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1e2330;
  border: 2px solid #151821;
  margin-left: -6px;
  overflow: hidden;
  flex-shrink: 0;
}

.source-icon-wrap:first-child {
  margin-left: 0;
}

.source-icon-wrap img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.sources-count-label {
  color: var(--text-secondary);
  font-size: 12px;
}

.discover-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.discover-card:hover .discover-card-action {
  transform: translateX(2px);
  text-decoration: none;
}

/* ============================================================
   SOURCES RIBBON / CAROUSEL (Story Deep-Dive)
   ============================================================ */

.sources-ribbon-section {
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sources-ribbon-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sources-ribbon-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #e2e8f0;
}

.sources-ribbon-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.sources-cards-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 6px;
}

.source-detail-card {
  flex: 0 0 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
}

.source-detail-card:hover {
  background: var(--surface-alt);
  border-color: #3b465a;
  transform: translateY(-1px);
  text-decoration: none;
}

.source-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.source-card-num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}

.source-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.source-card-link-hint {
  font-size: 11px;
  color: var(--link);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* ============================================================
   EDITORIAL INTELLIGENCE PANELS (Story Deep-Dive)
   ============================================================ */

.story-intel-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0;
}

.intel-panel {
  background: #161b24;
  border: 1px solid #252e3e;
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color 0.15s ease;
}

.intel-panel:hover {
  border-color: #38455c;
}

.intel-panel.panel-censorship {
  border-left: 3px solid #ef4444;
}

.intel-panel.panel-reactions {
  border-left: 3px solid #38bdf8;
}

.intel-panel.panel-context {
  border-left: 3px solid var(--accent);
}

.intel-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.intel-panel-icon {
  font-size: 14px;
}

.intel-panel-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #e2e8f0;
}

.intel-panel-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
.citation-index {
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   RELATED BRIEFINGS GRID
   ============================================================ */

.related-briefings-section {
  margin: 40px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.related-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.related-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ============================================================
   SEARCH AI SYNTHESIS CARD (search.astro)
   ============================================================ */

.search-ai-synthesis {
  background: linear-gradient(135deg, #181d28 0%, #131721 100%);
  border: 1px solid #2b3548;
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.synthesis-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.synthesis-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
}

.synthesis-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--mono);
}

.synthesis-headline {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.synthesis-body p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5e1;
}

.synthesis-takeaways {
  margin: 8px 0 14px 18px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.55;
}

.synthesis-sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #242d3c;
}

.synthesis-sources-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.synthesis-sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.synthesis-source-chip {
  font-size: 11px;
  background: #1e2533;
  border: 1px solid #2d384d;
  color: #cbd5e1;
  padding: 2px 8px;
  border-radius: 4px;
}

.search-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.search-card {
  height: 100%;
}

.discover-detail-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.discover-read-time {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--mono);
  margin-left: auto;
}

@media (max-width: 768px) {
  .discover-grid,
  .search-cards-grid,
  .related-cards-grid {
    grid-template-columns: 1fr;
  }
  .discover-hero-card {
    padding: 20px;
  }
  .hero-title {
    font-size: 22px;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .header-search-trigger {
    flex-grow: 1;
  }
}