/* ==========================================================================
   NEON ON SECURITY — Dark Neon Cybersecurity Theme
   ========================================================================== */

:root {
  --bg-void: #06080f;
  --bg-surface: #0b101d;
  --bg-card: #101728;
  --bg-card-hover: #141d33;
  --bg-elevated: #17213b;

  --text-bright: #f8fafc;
  --text-body: #e2e8f0;
  --text-muted: #94a3b8;

  --neon-cyan: #00f0ff;
  --neon-magenta: #ff2a85;
  --neon-lime: #39ff14;
  --neon-purple: #a855f7;
  --neon-amber: #ffb703;

  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-cyan: rgba(0, 240, 255, 0.35);
  --border-magenta: rgba(255, 42, 133, 0.4);

  --glow-cyan: 0 0 18px rgba(0, 240, 255, 0.28);
  --glow-magenta: 0 0 18px rgba(255, 42, 133, 0.25);
  --glow-lime: 0 0 14px rgba(57, 255, 20, 0.25);

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container-max: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-void);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle dark cyber-grid background */
.neon-grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(0, 240, 255, 0.08), transparent 36%),
    radial-gradient(circle at 85% 20%, rgba(255, 42, 133, 0.07), transparent 38%),
    radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.06), transparent 42%),
    linear-gradient(to right, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

a:hover {
  color: #7df9ff;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Threat Ticker Top Bar
   ========================================================================== */
.threat-ticker {
  background: rgba(6, 8, 15, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.45rem 0;
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-lime);
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-lime);
  box-shadow: 0 0 10px var(--neon-lime);
  animation: neon-pulse 1.8s infinite ease-in-out;
}

@keyframes neon-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.ticker-msg strong {
  color: var(--text-bright);
}

.ticker-rss {
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 42, 133, 0.45);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 700;
}

.ticker-rss:hover {
  color: #fff;
  background: rgba(255, 42, 133, 0.2);
  box-shadow: var(--glow-magenta);
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 29, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-cyan);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.35));
}

.brand-neon {
  color: var(--neon-cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.75);
}

.brand-rest {
  color: var(--text-bright);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.nav-link:hover {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
}

.nav-link.is-active {
  color: var(--bg-void);
  background: var(--neon-cyan);
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.25rem 0.35rem 0.25rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  width: 185px;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search button {
  background: rgba(0, 240, 255, 0.14);
  color: var(--neon-cyan);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.header-search button:hover {
  background: var(--neon-cyan);
  color: var(--bg-void);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--neon-cyan);
}

.site-main {
  flex: 1;
  padding-bottom: 4rem;
}

/* ==========================================================================
   Badges & Pills
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.pill-cyan {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.45);
}

.badge-critical {
  color: #ff6fa8;
  background: rgba(255, 42, 133, 0.15);
  border: 1px solid rgba(255, 42, 133, 0.55);
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.22);
}

.badge-high {
  color: #ffd166;
  background: rgba(255, 183, 3, 0.14);
  border: 1px solid rgba(255, 183, 3, 0.5);
}

.badge-advisory {
  color: var(--neon-lime);
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.45);
}

.badge-medium {
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.tag-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  transition: all 0.16s ease;
}

.tag-chip:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bg-void);
  background: linear-gradient(90deg, var(--neon-cyan), #4dffdf);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--glow-cyan);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-neon:hover {
  color: var(--bg-void);
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.55);
}

/* ==========================================================================
   Google AdSense Placeholder System
   ========================================================================== */
.ad-banner-wrap {
  margin: 1.5rem 0;
}

.ad-slot {
  background: linear-gradient(145deg, rgba(16, 23, 40, 0.92), rgba(10, 14, 26, 0.96));
  border: 1px dashed rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem 1rem;
  position: relative;
  overflow: hidden;
}

.ad-slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-purple));
  opacity: 0.75;
}

.ad-slot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.ad-badge {
  color: var(--neon-magenta);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ad-spec {
  color: var(--text-muted);
}

.ad-placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(0, 240, 255, 0.03),
      rgba(0, 240, 255, 0.03) 10px,
      rgba(255, 42, 133, 0.025) 10px,
      rgba(255, 42, 133, 0.025) 20px
    );
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 1rem;
  min-height: 92px;
}

.ad-format-rectangle .ad-placeholder-box {
  min-height: 250px;
}

.ad-format-vertical .ad-placeholder-box {
  min-height: 360px;
}

.ad-format-fluid .ad-placeholder-box {
  min-height: 120px;
}

.ad-placeholder-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

.ad-placeholder-copy {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ad-in-article {
  margin: 2rem 0;
}

.article-grid-ad {
  grid-column: 1 / -1;
}

/* ==========================================================================
   Hero Featured Article
   ========================================================================== */
.hero-feature {
  margin: 1.5rem 0 2rem;
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 23, 40, 0.98), rgba(11, 16, 29, 0.98));
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 0 40px rgba(0, 240, 255, 0.04);
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(0, 240, 255, 0.6), rgba(255, 42, 133, 0.45), rgba(168, 85, 247, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.meta-sep {
  color: rgba(148, 163, 184, 0.4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
  line-height: 1.18;
  margin: 0 0 1rem;
  color: var(--text-bright);
}

.hero-title a {
  color: var(--text-bright);
}

.hero-title a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.hero-summary {
  font-size: 1.08rem;
  color: var(--text-body);
  max-width: 78ch;
  margin: 0 0 1.65rem;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ==========================================================================
   Filter Bar & Index Grid Layout
   ========================================================================== */
.filter-bar {
  margin-bottom: 1.75rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: all 0.16s ease;
}

.filter-pill .count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.05rem 0.42rem;
  border-radius: 999px;
}

.filter-pill:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.filter-pill.is-active {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--neon-cyan);
  color: var(--text-bright);
  box-shadow: var(--glow-cyan);
}

.active-filter-banner {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-left: 3px solid var(--neon-magenta);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.clear-filter {
  color: var(--neon-magenta);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.index-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), var(--glow-cyan);
}

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

.card-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.32;
  margin: 0 0 0.75rem;
}

.card-title a {
  color: var(--text-bright);
}

.card-title a:hover {
  color: var(--neon-cyan);
}

.card-summary {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-read-link {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--neon-lime);
}

.card-read-link:hover {
  color: #8dff75;
  text-shadow: var(--glow-lime);
}

/* ==========================================================================
   Sidebar Panels
   ========================================================================== */
.sidebar-column,
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.sidebar-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.sidebar-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
}

.watchlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.watchlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.watch-label {
  color: var(--text-muted);
}

.watch-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
}

.text-cyan { color: var(--neon-cyan); }
.text-magenta { color: var(--neon-magenta); }
.text-lime { color: var(--neon-lime); }
.text-purple { color: var(--neon-purple); }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ==========================================================================
   Article Page & Markdown Typography
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.5rem;
}

.crumb-current {
  color: var(--text-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 48ch;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2.25rem;
  align-items: start;
}

.article-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.static-page-wrap {
  max-width: 860px;
  margin: 1rem auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.article-header {
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.18;
  color: var(--text-bright);
  margin: 0.5rem 0 1rem;
}

.article-dek {
  font-size: 1.12rem;
  color: #cbd5e1;
  margin: 0 0 1.25rem;
}

.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.byline-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.author-badge strong {
  color: var(--neon-cyan);
}

.btn-copy-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-copy-link:hover {
  background: var(--neon-cyan);
  color: var(--bg-void);
}

/* Rendered Markdown Styles */
.markdown-body {
  font-size: 1.03rem;
  line-height: 1.78;
  color: var(--text-body);
}

.markdown-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-bright);
  margin: 2.2rem 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  scroll-margin-top: 90px;
}

.markdown-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--neon-cyan);
  margin: 1.65rem 0 0.7rem;
  scroll-margin-top: 90px;
}

.markdown-body p {
  margin: 0 0 1.2rem;
}

.markdown-body strong {
  color: var(--text-bright);
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 1.35rem;
  padding-left: 1.45rem;
}

.markdown-body li {
  margin-bottom: 0.45rem;
}

.markdown-body li::marker {
  color: var(--neon-cyan);
}

.neon-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(0, 240, 255, 0.06);
  border-left: 4px solid var(--neon-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.neon-callout-alert {
  background: rgba(255, 42, 133, 0.08);
  border-left-color: var(--neon-magenta);
}

.neon-callout p:last-child {
  margin-bottom: 0;
}

.code-block {
  margin: 1.5rem 0;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #04060c;
}

.code-header {
  background: rgba(0, 240, 255, 0.08);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
}

.code-block pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #7df9ff;
  font-size: 0.88rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.markdown-body th {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  font-family: var(--font-display);
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-cyan);
}

.markdown-body td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.markdown-body tr:last-child td {
  border-bottom: none;
}

.neon-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
  margin: 2rem 0;
}

.article-footer-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.source-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.source-header-line {
  margin-bottom: 0.5rem;
}

.source-label {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--neon-lime);
  margin-right: 0.45rem;
}

.source-links-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.source-links-list a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
}

.source-links-list a:hover {
  text-decoration: underline;
}

.editorial-disclaimer {
  background: rgba(168, 85, 247, 0.07);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.editorial-disclaimer strong {
  color: #d8b4fe;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.87rem;
}

.toc-level-3 {
  padding-left: 0.85rem;
  font-size: 0.82rem;
}

.toc-list a {
  color: var(--text-body);
}

.toc-list a:hover {
  color: var(--neon-cyan);
}

.sticky-ad-wrap {
  position: sticky;
  top: 90px;
}

/* Related Articles */
.related-section {
  margin-top: 3rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-bright);
  margin: 0 0 1.25rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-cyan);
  padding: 2.5rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 44ch;
  margin: 0;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--neon-cyan);
  margin: 0 0 0.8rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-col a {
  color: var(--text-body);
}

.footer-col a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-mono {
  font-family: var(--font-mono);
  color: var(--neon-lime);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .index-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-ad-wrap {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--border-subtle);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-search {
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .article-grid,
  .related-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .article-main,
  .static-page-wrap {
    padding: 1.35rem;
  }
}
