/* ============================================================
   Cyber Insight — Cybersecurity Research & Threat Intel
   All vector SVG visuals · No stock photos · Clean editorial
   ============================================================ */

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

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

:root {
  /* Core palette */
  --ink:      #0F172A;
  --ink-2:    #1E293B;
  --ink-3:    #334155;
  --ink-4:    #64748B;
  --ink-5:    #94A3B8;
  --bg:       #FFFFFF;
  --bg-2:     #F8FAFC;
  --bg-3:     #F1F5F9;
  --border:   #E2E8F0;
  --border-2: #CBD5E1;

  --blue:     #1D4ED8;
  --blue-2:   #2563EB;
  --blue-3:   #3B82F6;
  --blue-bg:  rgba(29,78,216,.07);
  --blue-bdr: rgba(29,78,216,.2);

  --red:      #EF4444;
  --amber:    #F59E0B;
  --green:    #10B981;
  --li:       #0A66C2;

  /* Pastel gradient — hero background */
  --grad: radial-gradient(ellipse at 75% 40%, rgba(186,230,255,.5) 0%, transparent 55%),
          radial-gradient(ellipse at 15% 85%, rgba(254,243,199,.5) 0%, transparent 50%),
          radial-gradient(ellipse at 50% 10%, rgba(219,234,254,.4) 0%, transparent 50%),
          #FAFBFF;

  /* Shadows */
  --sh-xs: 0 1px 3px rgba(0,0,0,.05);
  --sh-sm: 0 2px 8px rgba(0,0,0,.07);
  --sh-md: 0 6px 20px rgba(0,0,0,.09);
  --sh-lg: 0 16px 40px rgba(0,0,0,.1);
  --sh-xl: 0 28px 64px rgba(0,0,0,.12);

  --nav-h:  66px;
  --max-w:  1160px;
  --r:      14px;
  --r-sm:   8px;
  --f-d:    'Space Grotesk', system-ui, sans-serif;
  --f-b:    'Inter', system-ui, sans-serif;
  --ease:   cubic-bezier(.16,1,.3,1);
  --t:      .22s var(--ease);
}

[data-theme="dark"] {
  /* Core dark palette */
  --ink:      #F8FAFC;
  --ink-2:    #E2E8F0;
  --ink-3:    #CBD5E1;
  --ink-4:    #94A3B8;
  --ink-5:    #64748B;
  --bg:       #0A0F1D;
  --bg-2:     #111827;
  --bg-3:     #1E293B;
  --border:   #1E293B;
  --border-2: #334155;

  --blue:     #3B82F6;
  --blue-2:   #60A5FA;
  --blue-3:   #93C5FD;
  --blue-bg:  rgba(59,130,246,.15);
  --blue-bdr: rgba(59,130,246,.3);

  --grad: radial-gradient(ellipse at 75% 40%, rgba(30,58,138,.35) 0%, transparent 55%),
          radial-gradient(ellipse at 15% 85%, rgba(180,83,9,.25) 0%, transparent 50%),
          radial-gradient(ellipse at 50% 10%, rgba(30,58,138,.3) 0%, transparent 50%),
          #0A0F1D;

  --sh-xs: 0 1px 3px rgba(0,0,0,.35);
  --sh-sm: 0 2px 8px rgba(0,0,0,.45);
  --sh-md: 0 6px 20px rgba(0,0,0,.55);
  --sh-lg: 0 16px 40px rgba(0,0,0,.65);
  --sh-xl: 0 28px 64px rgba(0,0,0,.75);
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--f-b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: var(--nav-h);
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* ── READING PROGRESS ── */
#reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-3));
  z-index: 3000; transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── TOAST ── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: 9px;
  font-size: .84rem; box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 9px;
  animation: t-up .2s var(--ease) both;
}
@keyframes t-up { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:none } }

/* ── NAV ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.nav-in {
  max-width: var(--max-w); margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--blue); color: #fff;
  font-family: var(--f-d); font-size: .86rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t); letter-spacing: -.02em;
}
.brand:hover .brand-mark { background: #1e40af; transform: rotate(-5deg) scale(1.06); }
.brand-name { font-family: var(--f-d); font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -.025em; }
.brand-sub  { font-size: .68rem; font-weight: 600; color: var(--ink-4); letter-spacing: .07em; text-transform: uppercase; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 7px 13px; border-radius: var(--r-sm);
  font-size: .87rem; font-weight: 500; color: var(--ink-4);
  text-decoration: none; transition: var(--t);
}
.nav-links a:hover { color: var(--blue); background: var(--blue-bg); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-links .cta { background: var(--blue); color: #fff !important; font-weight: 600; padding: 8px 16px; border-radius: var(--r-sm); }
.nav-links .cta:hover { background: #1e40af; }

/* ── THEME TOGGLE ── */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: var(--t);
  font-family: inherit;
  line-height: 1;
}

.theme-toggle-btn:hover {
  border-color: var(--blue-bdr);
  color: var(--blue);
  background: var(--blue-bg);
  transform: translateY(-1px);
}

[data-theme="dark"] .theme-toggle-btn {
  background: #1E293B;
  border-color: #334155;
  color: #E2E8F0;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: #334155;
  color: #fff;
}

.fb-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: var(--t);
  font-family: inherit;
}

.fb-theme-toggle:hover {
  border-color: var(--border-2);
  color: var(--ink);
  background: var(--bg-2);
}

[data-theme="dark"] .fb-theme-toggle {
  background: #1E293B;
  border-color: #334155;
  color: #CBD5E1;
}

[data-theme="dark"] .fb-theme-toggle:hover {
  border-color: var(--ink-4);
  color: #fff;
  background: #334155;
}

[data-theme="dark"] .navbar {
  background: rgba(10, 15, 29, 0.94);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .nav-links a:hover {
  color: var(--blue-2);
  background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .nav-links a.active {
  color: var(--blue-2);
}


/* ── Next Episode Banner ── */
.next-episode-banner {
  margin: 44px 0 0;
  border: 1.5px solid var(--blue-bdr);
  border-radius: var(--r);
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 60%, #DBEAFE 100%);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--sh-sm);
  transition: var(--t);
}
.next-episode-banner:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-md);
}
.next-ep-left {
  flex: 1;
}
.next-ep-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 6px;
}
.next-ep-title {
  font-family: var(--f-d);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 6px;
}
.next-ep-summary {
  font-size: .86rem;
  color: var(--ink-4);
  line-height: 1.5;
  max-width: 560px;
}
.next-ep-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  font-size: .88rem;
  padding: 12px 22px;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--t);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}
.next-ep-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
}

/* ── Enhanced Footer & Legal Framework ── */
.site-footer {
  background: #0B1120;
  color: #94A3B8;
  border-top: 1px solid #1E293B;
  padding: 48px 0 36px;
  font-size: .82rem;
}
.foot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.foot-brand-col {
  max-width: 440px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}
.foot-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--f-d);
  font-weight: 800;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.foot-brand-text {
  font-family: var(--f-d);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.foot-desc {
  font-size: .8rem;
  line-height: 1.6;
  color: #64748B;
  margin-bottom: 14px;
}
.foot-nav-cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-col-title {
  font-family: var(--f-d);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #E2E8F0;
  margin-bottom: 12px;
}
.foot-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-nav-list a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.foot-nav-list a:hover {
  color: #38BDF8;
}
.foot-disclaimer {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: .74rem;
  line-height: 1.6;
  color: #64748B;
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  font-size: .76rem;
  color: #64748B;
}
.foot-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-bottom-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--t);
}
.foot-bottom-links a:hover {
  color: #fff;
}
.foot-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 600;
  text-decoration: none;
}

.m-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink); border-radius: var(--r-sm); transition: var(--t); }
.m-btn:hover { background: var(--bg-3); }

/* ── WRAP ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ────────────────────────────────────
   HOME PAGE
──────────────────────────────────── */

/* Hero */
.h-hero { background: var(--grad); padding: 72px 0 60px; border-bottom: 1px solid var(--border); }
.h-hero-in { display: grid; grid-template-columns: 1fr 440px; gap: 52px; align-items: center; }

.h-eye {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-bg); border: 1px solid var(--blue-bdr);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.h-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }

.h-title {
  font-family: var(--f-d);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.035em;
  color: var(--ink); margin-bottom: 18px;
  text-wrap: balance;
}
.h-title .h-line { display: inline-block; }
.h-title em {
  font-style: normal;
  display: inline-block;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.h-desc { font-size: 1.05rem; color: var(--ink-4); max-width: 500px; line-height: 1.72; margin-bottom: 36px; }

.h-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.h-stat-n { font-family: var(--f-d); font-size: 1.65rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.h-stat-l { font-size: .72rem; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* Hero Creative Visual Showcase */
.h-hero-visual, .h-hero-svg {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(29, 78, 216, 0.22), 0 0 0 1px rgba(29, 78, 216, 0.1);
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  aspect-ratio: 4/3;
  position: relative;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.h-hero-visual:hover, .h-hero-svg:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 32px 64px -14px rgba(29, 78, 216, 0.32), 0 0 0 1px rgba(96, 165, 250, 0.3);
}

.h-visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.h-hero-visual:hover .h-visual-img {
  transform: scale(1.04);
}

.h-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.4) 100%);
  pointer-events: none;
}

.h-visual-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--f-d);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.h-visual-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.h-visual-tags {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.h-vtag {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #0F172A;
  font-family: var(--f-d);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.h-vtag:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Section head */
.sec-h { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.sec-lbl { font-family: var(--f-d); font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); white-space: nowrap; }
.sec-rule { flex: 1; height: 1px; background: var(--border); }
.sec-meta { font-size: .77rem; color: var(--ink-4); white-space: nowrap; }

/* Featured card */
.feat-section { padding: 60px 0 0; }
.feat-card {
  display: grid; grid-template-columns: 1fr 380px; gap: 0;
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; text-decoration: none; background: var(--bg);
  box-shadow: var(--sh-sm); transition: var(--t);
}
.feat-card:hover { box-shadow: var(--sh-xl); transform: translateY(-2px); border-color: var(--blue-bdr); }

.feat-body { padding: 44px; display: flex; flex-direction: column; }
.feat-chip {
  display: inline-block; align-self: flex-start;
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: 4px 10px; border-radius: 5px; margin-bottom: 16px;
}
.feat-chip::after { content: ' · PUBLISHED'; color: rgba(255,255,255,.6); }
.feat-h2 {
  font-family: var(--f-d); font-size: 1.7rem; font-weight: 800;
  line-height: 1.18; color: var(--ink); letter-spacing: -.03em; margin-bottom: 12px; transition: var(--t);
}
.feat-card:hover .feat-h2 { color: var(--blue); }
.feat-deck { font-size: .97rem; color: var(--ink-4); line-height: 1.7; flex: 1; margin-bottom: 24px; font-style: italic; }
.feat-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feat-av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  font-family: var(--f-d); font-weight: 800; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feat-aname { font-size: .84rem; font-weight: 600; color: var(--ink); }
.feat-adate { font-size: .77rem; color: var(--ink-4); margin-top: 1px; }
.feat-cta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue); color: #fff; padding: 8px 15px; border-radius: 8px;
  font-size: .83rem; font-weight: 700; transition: var(--t);
}
.feat-card:hover .feat-cta { background: #1e40af; }

/* Featured card SVG panel */
.feat-svg {
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}

/* Article grid (upcoming) */
.more-section { padding: 40px 0 80px; }
.art-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.art-card {
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; background: var(--bg);
  text-decoration: none; display: flex; flex-direction: column;
  box-shadow: var(--sh-xs); transition: var(--t); cursor: default;
}
.art-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--blue-bdr); }

/* SVG thumbnail area */
.card-svg {
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.card-svg-label {
  position: absolute; top: 10px; left: 10px;
  font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-2); background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px); padding: 3px 9px; border-radius: 5px;
}

.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-h3 {
  font-family: var(--f-d); font-size: .99rem; font-weight: 700;
  line-height: 1.3; color: var(--ink); margin-bottom: 9px; transition: var(--t);
}
.art-card:hover .card-h3 { color: var(--blue); }
.card-ex { font-size: .83rem; color: var(--ink-4); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: .75rem; color: var(--ink-5);
}
.soon {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-4); background: var(--bg-3); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 6px;
}

/* About strip */
.about-strip { background: var(--ink); color: #fff; padding: 52px 0; }
.about-in { display: flex; align-items: center; gap: 32px; }
.about-av {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); border: 2px solid rgba(255,255,255,.2);
  font-family: var(--f-d); font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.about-info { flex: 1; }
.about-title { font-family: var(--f-d); font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.about-desc { font-size: .87rem; color: rgba(255,255,255,.65); line-height: 1.65; max-width: 580px; }
.about-btns { display: flex; flex-direction: column; gap: 9px; flex-shrink: 0; }
.about-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px;
  font-size: .83rem; font-weight: 600; text-decoration: none; transition: var(--t); white-space: nowrap;
}
.about-btn.w { background: #fff; color: var(--ink); }
.about-btn.w:hover { background: var(--bg-3); }
.about-btn.li { background: var(--li); color: #fff; }
.about-btn.li:hover { background: #084b8a; }

/* ────────────────────────────────────
   ARTICLE PAGE
──────────────────────────────────── */

/* Hero zone */
.art-hero {
  background: var(--grad);
  border-bottom: 1px solid var(--border);
  padding: 44px 0 0;
}
.art-hero-in {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 52px; align-items: center; padding-bottom: 44px;
}

/* Breadcrumb */
.bc { display: flex; align-items: center; gap: 6px; font-size: .79rem; color: var(--ink-4); margin-bottom: 20px; }
.bc a { color: var(--blue); text-decoration: none; transition: var(--t); }
.bc a:hover { text-decoration: underline; }
.bc-sep { color: var(--border-2); font-size: .72rem; }

/* Article meta */
.art-meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-4); margin-bottom: 14px; }
.art-cat { font-weight: 700; color: var(--blue); }
.art-dot { color: var(--border-2); }

.art-h1 {
  font-family: var(--f-d);
  font-size: clamp(1.85rem, 3.8vw, 2.95rem);
  font-weight: 800; line-height: 1.11; letter-spacing: -.04em;
  color: var(--ink); margin-bottom: 16px;
}

/* Byline */
.art-byline { display: flex; align-items: center; gap: 12px; font-size: .83rem; }
.art-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: var(--f-d); font-weight: 800; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.art-aname { font-weight: 600; color: var(--ink); font-size: .84rem; }
.art-arole { font-size: .76rem; color: var(--ink-4); margin-top: 1px; }

/* Hero SVG panel */
.art-hero-svg {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--sh-xl);
  background: #EEF2FF;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}

/* Layout: Desktop 2-column layout with sticky left TOC side line */
.art-layout {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.art-center {
  width: 100%;
  max-width: 860px;
  min-width: 0;
  flex: 1 1 860px;
}

/* ── DESKTOP STICKY TOC SIDEBAR WITH VERTICAL SIDE LINE ── */
.art-toc-sidebar {
  width: 205px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 8px 20px 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.art-toc-sidebar::-webkit-scrollbar {
  width: 3px;
}
.art-toc-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.art-toc-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.toc-sticky-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.toc-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-icon {
  color: var(--blue);
  flex-shrink: 0;
}

.toc-eyebrow {
  font-family: var(--f-d);
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-3);
}

.toc-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-progress-pill {
  font-family: var(--f-d);
  font-size: .63rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-bdr);
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.toc-mobile-badge {
  display: none !important;
}

.toc-nav {
  position: relative;
  padding-left: 15px;
}

/* Continuous vertical side line track */
.toc-line-track {
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

/* Active progress fill on the vertical side line */
.toc-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--blue), #38BDF8);
  border-radius: 2px;
  transition: height .15s ease-out;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-item {
  position: relative;
}

.toc-link {
  display: flex;
  align-items: flex-start;
  padding: 3px 4px 3px 0;
  font-size: .73rem;
  line-height: 1.34;
  color: var(--ink-4);
  text-decoration: none;
  border-radius: 5px;
  transition: color .15s ease, transform .15s ease;
  position: relative;
}

.toc-link:hover {
  color: var(--blue);
  transform: translateX(2px);
}

/* Dot on the side line */
.toc-dot {
  position: absolute;
  left: -15px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  transition: all .2s cubic-bezier(.4,0,.2,1);
  transform: translate(2px, 0);
  z-index: 2;
  box-sizing: border-box;
}

.toc-link:hover .toc-dot {
  border-color: var(--blue);
  background: var(--blue-bg);
  transform: translate(2px, 0) scale(1.25);
}

.toc-link.active {
  color: var(--ink);
  font-weight: 700;
}

.toc-link.active .toc-dot {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 2.5px rgba(2, 132, 199, .25);
  transform: translate(2px, 0) scale(1.35);
}

.toc-link.passed .toc-dot {
  border-color: var(--blue);
  background: var(--blue);
}

.toc-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

.toc-footer-link {
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--t);
}
.toc-footer-link:hover {
  color: var(--blue);
}

.toc-top-btn {
  font-size: .66rem;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 7px;
  cursor: pointer;
  transition: var(--t);
}
.toc-top-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-bg);
}

/* ── NUMBERED TOC CARD (EDITORIAL CARD WITH CIRCULAR BADGES) ── */
.art-toc-sidebar.toc-numbered {
  width: 260px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  padding: 16px 12px 18px;
  box-sizing: border-box;
}

.art-toc-sidebar.toc-numbered .toc-sticky-wrap {
  gap: 6px;
}

.art-toc-sidebar.toc-numbered .toc-header {
  border-bottom: none;
  padding: 0 4px 10px 4px;
  margin-bottom: 2px;
}

.art-toc-sidebar.toc-numbered .toc-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.art-toc-sidebar.toc-numbered .toc-icon-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.art-toc-sidebar.toc-numbered .toc-eyebrow {
  font-family: var(--f-d);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #3B4B75;
}

.art-toc-sidebar.toc-numbered .toc-nav {
  position: relative;
  padding-left: 0;
}

.art-toc-sidebar.toc-numbered .toc-line-track {
  display: none !important;
}

.art-toc-sidebar.toc-numbered .toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.art-toc-sidebar.toc-numbered .toc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 12px;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  transition: all .16s ease;
  position: relative;
}

.art-toc-sidebar.toc-numbered .toc-num {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #3B82F6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-d);
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all .16s ease;
}

.art-toc-sidebar.toc-numbered .toc-text {
  font-family: var(--f-b);
  font-size: .83rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.32;
  transition: color .16s ease;
}

/* Hover state */
.art-toc-sidebar.toc-numbered .toc-link:hover:not(.active) {
  background: #F8FAFC;
  transform: none;
}

.art-toc-sidebar.toc-numbered .toc-link:hover:not(.active) .toc-num {
  background: #DBEAFE;
  color: #1D4ED8;
}

.art-toc-sidebar.toc-numbered .toc-link:hover:not(.active) .toc-text {
  color: #1D4ED8;
}

/* Active state (matches Item 1 in specification) */
.art-toc-sidebar.toc-numbered .toc-link.active {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 600;
}

.art-toc-sidebar.toc-numbered .toc-link.active .toc-num {
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .32);
}

.art-toc-sidebar.toc-numbered .toc-link.active .toc-text {
  color: #2563EB;
  font-weight: 600;
}

/* Footer in numbered card */
.art-toc-sidebar.toc-numbered .toc-footer {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── RESPONSIVE TABLE OF CONTENTS (<= 1024px) ── */
@media (max-width: 1024px) {
  .art-toc-sidebar.toc-numbered {
    width: 100% !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .art-toc-sidebar.toc-numbered .toc-header {
    padding: 12px 14px;
    margin: 0;
  }

  .art-toc-sidebar.toc-numbered .toc-nav {
    padding: 10px 12px 14px 12px;
  }
  .art-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 860px;
    padding: 0 16px;
    gap: 0;
  }

  .art-toc-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0 0 20px 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: block !important;
  }

  .toc-sticky-wrap {
    gap: 0;
  }

  .toc-header {
    padding: 12px 14px;
    margin: 0;
    border-bottom: none;
    cursor: pointer;
    user-select: none;
    background: var(--bg-2);
    transition: background .15s ease;
  }

  .toc-header:hover, .toc-header:focus-visible {
    background: var(--bg-3);
  }

  .toc-eyebrow {
    font-size: .72rem;
  }

  .toc-header-right {
    gap: 8px;
  }

  .toc-mobile-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-bg);
    border: 1px solid var(--blue-bdr);
    padding: 3px 8px;
    border-radius: 6px;
    transition: background .15s ease, border-color .15s ease;
  }

  .toc-badge-chevron {
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  }

  /* Default mobile state: Collapsed */
  .toc-nav {
    display: none;
    padding: 12px 14px 14px 26px;
    max-height: 350px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    background: var(--bg);
  }

  .toc-footer {
    display: none;
    padding: 10px 14px 12px;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
  }

  /* Open / Expanded state */
  .art-toc-sidebar.is-open .toc-header {
    border-bottom: 1px solid var(--border);
  }

  .art-toc-sidebar.is-open .toc-badge-chevron {
    transform: rotate(180deg);
  }

  .art-toc-sidebar.is-open .toc-mobile-badge {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
  }

  .art-toc-sidebar.is-open .toc-nav {
    display: block;
  }

  .art-toc-sidebar.is-open .toc-footer {
    display: flex;
  }
}

@media (max-width: 768px) {
  .art-layout {
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .art-layout {
    padding: 0 12px;
  }
}

/* Horizontal Action & Meta Strip (above content) */
.art-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.art-act-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.art-act-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.art-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--t);
  font-family: inherit;
}

.art-act-btn:hover {
  border-color: var(--blue-bdr);
  background: var(--blue-bg);
  color: var(--blue);
  transform: translateY(-1px);
}

.art-act-btn.liked {
  border-color: #FCA5A5;
  background: #FEF2F2;
  color: #DC2626;
}

.art-act-btn.clapped {
  border-color: #FDE68A;
  background: #FFFBEB;
  color: #D97706;
}

.art-act-btn.li-btn {
  background: var(--li);
  border-color: var(--li);
  color: #fff;
}

.art-act-btn.li-btn:hover {
  background: #084b8a;
  border-color: #084b8a;
  color: #fff;
}

.art-act-cnt {
  font-size: .74rem;
  font-weight: 700;
  opacity: .85;
}

/* Floating Bottom Dock Bar (Modern Medium/Substack Style) */
.floating-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: var(--t);
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--t);
  font-family: inherit;
}

.dock-btn:hover {
  background: var(--bg-2);
  color: var(--blue);
}

.dock-btn.liked {
  color: #DC2626;
  background: #FEF2F2;
}

.dock-btn.clapped {
  color: #D97706;
  background: #FFFBEB;
}

.dock-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.dock-series-pill {
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-bg);
  padding: 4px 10px;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dock-series-pill:hover {
  background: #DBEAFE;
}

/* Series Curriculum Card (placed down at the bottom of the article) */
.series-nav-card {
  margin: 44px 0 0;
  border: 1px solid var(--blue-bdr);
  border-radius: var(--r);
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  padding: 24px 28px;
  box-shadow: var(--sh-xs);
}

.series-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(29, 78, 216, 0.12);
}

.series-nav-title {
  font-family: var(--f-d);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.series-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.series-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .8rem;
  color: var(--ink-3);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  transition: var(--t);
}

.series-nav-item:hover {
  background: #fff;
  border-color: var(--blue-bdr);
  color: var(--blue);
}

.series-nav-item.active {
  background: #fff;
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.08);
}

.series-nav-num {
  font-family: var(--f-d);
  font-weight: 800;
  font-size: .75rem;
  color: var(--ink-4);
}

.series-nav-item.active .series-nav-num {
  color: var(--blue);
}

/* Center content */
.art-center {
  padding: 32px 0 64px;
  width: 100%;
  min-width: 0;
}

/* Stats */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; margin-bottom: 44px; box-shadow: var(--sh-xs);
}
.stat-c { padding: 18px 14px; text-align: center; background: var(--bg); transition: background var(--t); }
.stat-c:not(:last-child) { border-right: 1px solid var(--border); }
.stat-c:hover { background: var(--bg-2); }
.stat-n { font-family: var(--f-d); font-size: 1.5rem; font-weight: 800; color: var(--blue); line-height: 1.1; margin-bottom: 4px; }
.stat-l { font-size: .74rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.stat-s { font-size: .67rem; color: var(--ink-4); }

/* Article body text */
.art-text, .art-body {
  font-family: var(--f-b);
  font-size: 1.08rem; line-height: 1.84; color: var(--ink-3);
}
.art-text p, .art-body p { margin-bottom: 1.6rem; }
.art-text strong, .art-body strong { color: var(--ink); font-weight: 600; }
.art-text a, .art-body a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; }
.art-text a:hover, .art-body a:hover { text-decoration-thickness: 2px; }

.art-text h2, .art-body h2 {
  font-family: var(--f-d);
  font-size: 1.45rem; font-weight: 800;
  color: var(--ink); letter-spacing: -.03em;
  margin: 2.8rem 0 1.1rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.art-text ul, .art-body ul { padding-left: 1.4rem; margin-bottom: 1.6rem; }
.art-text li, .art-body li { margin-bottom: .6rem; }

/* Section illustration box */
.sec-svg {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--grad); padding: 32px;
  display: flex; align-items: center; justify-content: center;
  margin: 2rem 0;
}

/* Pull quote */
.pq {
  border-left: 4px solid var(--blue);
  padding: 15px 22px; margin: 2rem 0;
  background: var(--blue-bg); border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.08rem; font-style: italic; color: var(--ink); line-height: 1.64;
}

/* Table */
.t-wrap { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-xs); }
.t { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
.t th { background: var(--bg-3); font-family: var(--f-d); font-size: .76rem; font-weight: 700; color: var(--ink); padding: 11px 16px; border-bottom: 2px solid var(--border); }
.t td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink-3); }
.t tr:last-child td { border-bottom: none; }
.t tr:hover td { background: var(--bg-2); }

/* Checklist */
.ck-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px; margin: 2rem 0; }
.ck-title { font-family: var(--f-d); font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ck-row { display: flex; gap: 12px; margin-bottom: 11px; }
.ck-dot { width: 21px; height: 21px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .69rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* Homepage sections scroll alignment */
#series,
#behind-the-breach,
#about {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

/* Sources */
.sources-section { border-top: 2px solid var(--border); padding-top: 44px; margin-top: 44px; scroll-margin-top: 80px; }
.src-h { font-family: var(--f-d); font-size: 1.12rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; letter-spacing: -.02em; }
.src-sub { font-size: .83rem; color: var(--ink-4); margin-bottom: 22px; }
.src-list { display: flex; flex-direction: column; gap: 9px; }
.src-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); transition: var(--t);
  scroll-margin-top: 90px;
}
.src-card:hover { border-color: var(--blue-bdr); background: var(--blue-bg); }
.src-ico { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.src-name { font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.src-desc { font-size: .76rem; color: var(--ink-4); line-height: 1.5; }
.src-link { font-size: .75rem; color: var(--blue); text-decoration: none; font-weight: 600; margin-top: 3px; display: inline-block; }
.src-link:hover { text-decoration: underline; }

/* Author card */
.auth-card { margin: 48px 0 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.auth-top { background: var(--blue); padding: 22px 28px; display: flex; align-items: center; gap: 16px; }
.auth-av {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  font-family: var(--f-d); font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.28); flex-shrink: 0;
}
.auth-name { font-family: var(--f-d); font-size: 1.06rem; font-weight: 800; color: #fff; line-height: 1.3; }
.auth-role { font-size: .78rem; color: rgba(255,255,255,.68); margin-top: 3px; }
.auth-body { padding: 18px 28px; background: var(--bg-2); }
.auth-desc { font-size: .86rem; color: var(--ink-3); line-height: 1.65; margin-bottom: 14px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 9px; }
.au-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px;
  font-size: .79rem; font-weight: 600; text-decoration: none; transition: var(--t);
}
.au-btn.pf { background: var(--blue); color: #fff; }
.au-btn.pf:hover { background: #1e40af; }
.au-btn.li { background: var(--li); color: #fff; }
.au-btn.li:hover { background: #084b8a; }
.au-btn.gh { background: var(--bg); border: 1px solid var(--border-2); color: var(--ink); }
.au-btn.gh:hover { border-color: var(--blue); color: var(--blue); }

/* ────────────────────────────────────
   FEEDBACK & DISCUSSION SECTION
──────────────────────────────────── */
.feedback-section {
  margin: 44px 0 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-xs);
}

.fb-header {
  padding: 28px 32px 22px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
  border-bottom: 1px solid var(--border);
}

.fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-bdr);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.fb-title {
  font-family: var(--f-d);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.fb-sub {
  font-size: .88rem;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 620px;
}

/* Reaction bar */
.fb-reactions-box {
  padding: 22px 32px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.fb-react-prompt {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-4);
  margin-bottom: 12px;
}

.fb-reactions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fb-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 7px 15px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: var(--t);
  font-family: inherit;
}

.fb-react-btn:hover {
  border-color: var(--blue-bdr);
  background: var(--blue-bg);
  color: var(--blue);
  transform: translateY(-1px);
}

.fb-react-btn.active {
  background: #EFF6FF;
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.12);
}

.fb-cnt {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: .74rem;
  font-weight: 700;
}

.fb-react-btn.active .fb-cnt {
  background: var(--blue);
  color: #fff;
}

/* Feedback Form */
.fb-form-box {
  padding: 26px 32px 30px;
  background: #fff;
}

.fb-form-title {
  font-family: var(--f-d);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.fb-chip-opt {
  font-size: .76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--ink-3);
  cursor: pointer;
  transition: var(--t);
}

.fb-chip-opt:hover {
  border-color: var(--border-2);
  color: var(--ink);
}

.fb-chip-opt.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.fb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.fb-input, .fb-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-family: var(--f-b);
  font-size: .84rem;
  color: var(--ink);
  transition: var(--t);
}

.fb-input:focus, .fb-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.fb-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
  margin-bottom: 14px;
}

.fb-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.fb-anon-note {
  font-size: .75rem;
  color: var(--ink-5);
  display: flex;
  align-items: center;
  gap: 5px;
}

.fb-submit-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--t);
  font-family: inherit;
}

.fb-submit-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

/* Discussion Stream */
.fb-discussion-box {
  padding: 24px 32px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.fb-disc-title {
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-4);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fb-comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fb-comment {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  transition: var(--t);
}

.fb-comment:hover {
  border-color: var(--border-2);
}

.fb-comment.is-author {
  border-color: #BFDBFE;
  background: #F8FAFF;
}

@keyframes commentFlash {
  0% { background: #EFF6FF; border-color: #3B82F6; }
  100% { background: #fff; border-color: var(--border); }
}

.fb-comment.is-new {
  animation: commentFlash 2s ease-out;
  border-color: #3B82F6;
}

.fb-c-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fb-c-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-c-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 800;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-bdr);
  flex-shrink: 0;
}

.fb-comment.is-author .fb-c-av {
  background: var(--blue);
  color: #fff;
}

.fb-c-name {
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
}

.fb-c-role {
  font-size: .72rem;
  color: var(--ink-4);
}

.fb-c-badge {
  background: #EFF6FF;
  color: var(--blue);
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #BFDBFE;
  text-transform: uppercase;
}

.fb-c-time {
  font-size: .72rem;
  color: var(--ink-5);
}

.fb-c-body {
  font-size: .84rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ────────────────────────────────────
   SERIES: CYBERSECURITY FOR EVERYONE
──────────────────────────────────── */
.series-section {
  padding: 56px 0 88px;
  background: var(--bg);
}

.series-hero-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 60%, #EEF2FF 100%);
  border: 1px solid var(--blue-bdr);
  border-radius: var(--r);
  padding: 34px 38px;
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.series-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid var(--blue-bdr);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.series-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.series-title {
  font-family: var(--f-d);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}

.series-desc {
  font-size: .98rem;
  color: var(--ink-3);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.series-tracker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.series-tracker-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
}

.series-tracker-top span.stat {
  color: var(--blue);
  font-weight: 700;
}

.series-progress-bar {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 99px;
  overflow: hidden;
}

.series-progress-fill {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, #3B82F6 100%);
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* Series filter pills */
.series-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.series-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.series-tab-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: var(--t);
  font-family: inherit;
}

.series-tab-btn:hover {
  border-color: var(--blue-bdr);
  color: var(--blue);
}

.series-tab-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Episode Card */
.ep-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-xs);
  transition: var(--t);
  text-decoration: none;
  position: relative;
}

.ep-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  border-color: var(--blue-bdr);
}

.ep-card.is-published {
  border-color: #BFDBFE;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.08);
  background: #FFFFFF;
}

.ep-card.is-published:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.16);
}

.ep-svg-thumb {
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ep-badge-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--ink-2);
}

.ep-card.is-published .ep-badge-pill {
  background: #EFF6FF;
  color: var(--blue);
  border-color: #BFDBFE;
}

.ep-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ep-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue);
}

.ep-num {
  font-family: var(--f-d);
  font-size: .75rem;
  font-weight: 800;
}

.ep-topic {
  color: var(--ink-4);
  font-weight: 600;
}

.ep-title {
  font-family: var(--f-d);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 9px;
  transition: var(--t);
}

.ep-card:hover .ep-title {
  color: var(--blue);
}

.ep-summary {
  font-size: .83rem;
  color: var(--ink-4);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.ep-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .76rem;
  color: var(--ink-5);
}

.ep-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 9px;
  border-radius: 6px;
}

.ep-status-tag.published {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.ep-status-tag.upcoming {
  background: var(--bg-3);
  color: var(--ink-4);
  border: 1px solid var(--border);
}

.ep-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-weight: 700;
  font-size: .78rem;
}

/* Series Callout Banner inside article.html */
.art-series-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid var(--blue-bdr);
  border-radius: var(--r-sm);
  padding: 12px 18px;
  margin-bottom: 24px;
}

.art-series-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--ink-2);
}

.art-series-tag {
  background: var(--blue);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 4px;
}

.art-series-link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.art-series-link:hover {
  text-decoration: underline;
}

/* Sidebar series widget */
.sb-series-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 20px;
}

.sb-series-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-4);
  margin-bottom: 8px;
}

.sb-ep-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--ink-3);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

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

.sb-ep-item.active {
  color: var(--blue);
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .h-hero-in { grid-template-columns: 1fr; gap: 36px; }
  .h-hero-svg, .h-hero-visual { max-width: 420px; margin: 0 auto; }
  .art-hero-in { grid-template-columns: 1fr; gap: 36px; }
  .art-hero-svg { max-width: 420px; margin: 0 auto; }
  .feat-card { grid-template-columns: 1fr; }
  .feat-svg { min-height: 200px; }
  .series-grid { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .series-nav-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .nav-in { padding: 0 18px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px;
    gap: 4px;
    box-shadow: var(--sh-md);
    z-index: 999;
    animation: slide-down .18s ease both;
  }
  @keyframes slide-down { from { opacity:0; transform:translateY(-8px) } to { opacity:1; transform:none } }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; font-size: .94rem; }
  .nav-links .cta { text-align: center; margin-top: 6px; }
  .m-btn { display: flex; }

  /* Wrap */
  .wrap { padding: 0 18px; }

  /* Hero */
  .h-hero { padding: 44px 0 36px; }
  .h-hero-in { grid-template-columns: 1fr; gap: 28px; }
  .h-hero-svg, .h-hero-visual { max-width: 100%; border-radius: 14px; }
  .h-hero-svg svg, .h-hero-visual img { width: 100% !important; height: auto !important; }
  .h-title { font-size: clamp(2rem, 8vw, 3rem); }
  .h-desc { font-size: .97rem; }
  .h-stats { gap: 20px; }

  /* Featured card */
  .feat-card { grid-template-columns: 1fr; }
  .feat-body { padding: 26px 22px; }
  .feat-h2 { font-size: 1.4rem; }
  .feat-svg { min-height: 180px; }
  .feat-cta { margin-left: 0; margin-top: 8px; }

  /* Series */
  .series-section { padding: 40px 0 56px; }
  .series-hero-card { padding: 22px 20px; }
  .series-grid { grid-template-columns: 1fr; gap: 16px; }
  .series-controls { flex-direction: column; align-items: flex-start; }
  .series-tracker { max-width: 100%; }

  /* Article grid */
  .art-grid { grid-template-columns: 1fr; }
  .more-section { padding: 28px 0 52px; }

  /* About strip */
  .about-in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .about-btns { flex-direction: row; flex-wrap: wrap; }

  /* Footer */
  .foot-in { flex-direction: column; gap: 12px; text-align: center; }
  .foot-links { justify-content: center; flex-wrap: wrap; gap: 10px; }

  /* Article hero */
  .art-hero { padding: 28px 0 0; }
  .art-hero-in { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .art-hero-svg { max-width: 100%; }
  .art-hero-svg svg { width: 100% !important; height: auto !important; }
  .art-h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .art-meta { flex-wrap: wrap; gap: 5px; }
  .bc { flex-wrap: wrap; }

  /* Article layout */
  .art-layout { padding: 0 18px; }

  /* Action strip */
  .art-action-strip { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 0; }
  .art-act-left, .art-act-right { flex-wrap: wrap; gap: 6px; }
  .art-act-right { width: 100%; }

  /* Stats */
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-c:nth-child(odd):last-child { grid-column: 1 / -1; }
  .stat-c { border-right: none !important; border-bottom: 1px solid var(--border); }
  .stat-c:last-child { border-bottom: none; }

  /* Section SVGs — allow scroll */
  .sec-svg { padding: 18px; overflow-x: auto; }
  .sec-svg svg { min-width: 340px; }

  /* Feedback section */
  .fb-header, .fb-reactions-box, .fb-form-box, .fb-discussion-box { padding-left: 18px; padding-right: 18px; }
  .fb-form-grid { grid-template-columns: 1fr; }
  .fb-form-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .fb-submit-btn { width: 100%; justify-content: center; }
  .fb-reactions-bar { gap: 7px; }
  .fb-c-top { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Auth card */
  .auth-top { padding: 16px 18px; }
  .auth-body { padding: 14px 18px; }
  .auth-links { flex-wrap: wrap; }

  /* Series nav card */
  .series-nav-grid { grid-template-columns: 1fr; }
  .series-nav-card { padding: 18px 16px; }

  /* Floating dock — narrower on mobile */
  .floating-dock {
    bottom: 12px;
    padding: 5px 10px;
    gap: 2px;
    font-size: .75rem;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .floating-dock::-webkit-scrollbar { display: none; }
  .dock-btn { padding: 5px 8px; font-size: .74rem; }
  .dock-btn span:first-child { font-size: .9rem; }

  /* Series banner */
  .art-series-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 420px)
══════════════════════════════════════════════ */
@media (max-width: 420px) {
  .h-title { font-size: 1.9rem; }
  .art-h1 { font-size: 1.55rem; }
  .feat-h2 { font-size: 1.25rem; }
  .series-title { font-size: 1.6rem; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-c { border-right: none !important; }
  .art-act-btn { font-size: .74rem; padding: 5px 10px; }
  .fb-title { font-size: 1.15rem; }
  .floating-dock { gap: 0; }
  .dock-sep { display: none; }
}

/* ══════════════════════════════════════════════
   LANGUAGE TRANSLATOR MODULE & GOOGLE OVERRIDES
══════════════════════════════════════════════ */

/* Clean Google Translate Suppression */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}

body {
  top: 0px !important;
  position: static !important;
}

#google_translate_element {
  position: absolute;
  top: -1000px;
  left: -1000px;
  width: 220px;
  height: 50px;
  overflow: hidden;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Navbar Switcher */
.lang-nav-item {
  list-style: none;
  display: flex;
  align-items: center;
}

.lang-switcher-wrap {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--f-b);
  font-size: .83rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}

.lang-btn:hover {
  background: var(--blue-bg);
  border-color: var(--blue-bdr);
  color: var(--blue);
  transform: translateY(-1px);
}

.lang-btn[aria-expanded="true"] {
  background: var(--blue-bg);
  border-color: var(--blue);
  color: var(--blue);
}

.current-lang-flag {
  font-size: .95rem;
  line-height: 1;
}

.current-lang-label {
  font-weight: 600;
  letter-spacing: -.01em;
}

.lang-arrow {
  color: var(--ink-4);
  transition: transform .2s ease;
}

.lang-btn[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
  color: var(--blue);
}

.lang-active-indicator {
  color: #10B981;
  font-size: 1.1rem;
  line-height: 0;
  font-weight: 800;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.3); }
}

/* Dropdown Window */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 330px;
  max-height: 500px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.16);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
  animation: langDrop .2s cubic-bezier(.16,1,.3,1) both;
}

@keyframes langDrop {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-dropdown.active {
  display: flex;
}

.lang-dropdown-header {
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-dd-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-dd-title strong {
  font-size: .88rem;
  color: var(--ink);
  font-family: var(--f-d);
}

.lang-count-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 7px;
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid var(--blue-bdr);
  border-radius: 6px;
}

/* Region Chips Bar */
.lang-region-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: #FAFAFA;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.lang-region-chips::-webkit-scrollbar {
  display: none;
}

.lang-chip {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-3);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
  flex-shrink: 0;
}

.lang-chip:hover {
  background: var(--blue-bg);
  border-color: var(--blue-bdr);
  color: var(--blue);
}

.lang-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 700;
}

.lang-search-box {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.lang-search-box svg {
  color: var(--ink-5);
  flex-shrink: 0;
}

.lang-search-input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: .82rem;
  font-family: var(--f-b);
  color: var(--ink);
  outline: none;
  transition: all .15s ease;
}

.lang-search-input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.lang-list {
  padding: 6px;
  overflow-y: auto;
  max-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-list::-webkit-scrollbar {
  width: 4px;
}

.lang-list::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 4px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all .15s ease;
}

.lang-option:hover {
  background: var(--bg-3);
}

.lang-option.active {
  background: var(--blue-bg);
  border: 1px solid var(--blue-bdr);
}

.lang-opt-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.lang-opt-names {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lang-opt-name {
  font-size: .84rem;
  color: var(--ink);
  font-weight: 600;
}

.lang-option.active .lang-opt-name {
  color: var(--blue);
  font-weight: 700;
}

.lang-opt-native {
  font-size: .73rem;
  color: var(--ink-4);
  font-weight: 500;
}

.lang-opt-check {
  color: var(--blue);
  font-weight: 800;
  font-size: .85rem;
}

.lang-no-match {
  padding: 24px 16px;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-4);
}

.lang-dropdown-footer {
  padding: 8px 12px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
}

.lang-reset-btn {
  background: none;
  border: none;
  color: var(--ink-4);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .15s ease;
  width: 100%;
}

.lang-reset-btn:hover {
  background: var(--bg-3);
  color: var(--blue);
}

/* Floating Translator Widget (Bottom Left) */
.lang-floating-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2500;
}

.lang-floating-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--f-b);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all .2s cubic-bezier(.16,1,.3,1);
}

.lang-floating-btn:hover {
  background: var(--blue);
  border-color: var(--blue-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.35);
}

.lang-floating-btn.has-translation {
  background: var(--blue);
  border-color: rgba(255, 255, 255, 0.3);
}

.floating-dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  right: auto;
}

.lang-close-float {
  background: none;
  border: none;
  font-size: .9rem;
  color: var(--ink-4);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.lang-close-float:hover {
  color: var(--ink);
}

/* Mobile Adjustments for Translator */
@media (max-width: 768px) {
  .lang-nav-item {
    width: 100%;
    margin-top: 4px;
  }
  .lang-switcher-wrap {
    width: 100%;
  }
  .lang-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--r-sm);
  }
  .lang-dropdown {
    width: 100%;
    position: static;
    box-shadow: none;
    margin-top: 8px;
    max-height: 320px;
  }
  .lang-floating-wrap {
    display: none !important;
  }
}


/* Preserve native hidden semantics even on styled counters and form panels. */
[hidden] { display: none !important; }
#fbForm label, #fbEmailPreview label { display: block; margin: 16px 0 6px; font-weight: 600; }
#fbStatus { margin: 16px 0; line-height: 1.6; }
#fbEmailBody { min-height: 180px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Feedback inputs stay legible without focus zoom on small screens. */
#feedback .fb-input, #feedback .fb-textarea { font-size: 1rem; min-height: 44px; }
#feedback .fb-submit-btn, #feedback .au-btn, #feedback .fb-clear-btn { min-height: 44px; }
.fb-draft-note { font-size: .82rem; line-height: 1.55; color: var(--ink-3); margin: 10px 0; }
.fb-clear-btn {
  padding: 10px 18px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fb-clear-btn:hover {
  border-color: var(--ink-3);
  color: var(--ink);
  background: var(--bg-2);
}
.cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
}
.cta-outline:hover {
  border-color: var(--ink-3);
  color: var(--ink);
  background: var(--bg-2);
}
/* Behind the Breach feedback theme styling */
[data-page="behind-the-breach"] #feedback .fb-header {
  background: linear-gradient(135deg, #FEF2F2 0%, #F8FAFC 100%);
  border-bottom: 1px solid #FECACA;
}
[data-page="behind-the-breach"] #feedback .fb-badge {
  color: #DC2626;
  background: #FEF2F2;
  border-color: #FCA5A5;
}
[data-page="behind-the-breach"] #feedback .fb-submit-btn,
[data-page="behind-the-breach"] #feedback .au-btn.pf {
  background: #DC2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}
[data-page="behind-the-breach"] #feedback .fb-submit-btn:hover,
[data-page="behind-the-breach"] #feedback .au-btn.pf:hover {
  background: #B91C1C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}
[data-page="behind-the-breach"] #feedback .fb-input:focus,
[data-page="behind-the-breach"] #feedback .fb-textarea:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
@media (max-width: 480px) {
  #feedback .fb-form-box, #feedback .fb-header { padding: 20px 16px; }
  #feedback .fb-form-foot > * { flex: 1 1 auto; text-align: center; justify-content: center; }
}

/* ── DARK THEME COMPONENT OVERRIDES ── */
[data-theme="dark"] .feedback-section {
  background: var(--bg);
  border-color: var(--border);
}

[data-theme="dark"] .fb-header {
  background: linear-gradient(135deg, #131E35 0%, #111827 100%);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .fb-badge {
  color: #60A5FA;
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .fb-form-box,
[data-theme="dark"] .fb-reactions-box {
  background: var(--bg);
}

[data-theme="dark"] [data-page="behind-the-breach"] #feedback .fb-header {
  background: linear-gradient(135deg, #221114 0%, #111827 100%);
  border-bottom-color: #7F1D1D;
}

[data-theme="dark"] [data-page="behind-the-breach"] #feedback .fb-badge {
  color: #F87171;
  background: rgba(220, 38, 38, 0.18);
  border-color: #991B1B;
}

[data-theme="dark"] #feedback .fb-input,
[data-theme="dark"] #feedback .fb-textarea {
  background: #111827;
  color: var(--ink);
  border-color: var(--border-2);
}

[data-theme="dark"] #feedback .fb-input:focus,
[data-theme="dark"] #feedback .fb-textarea:focus {
  background: #0D1322;
}

[data-theme="dark"] .art-act-btn {
  background: #111827;
  border-color: var(--border-2);
  color: var(--ink-2);
}

[data-theme="dark"] .art-act-btn:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--blue-bdr);
  color: var(--blue-2);
}

[data-theme="dark"] .art-act-btn.liked {
  border-color: #991B1B;
  background: rgba(220, 38, 38, 0.22);
  color: #F87171;
}

[data-theme="dark"] .art-act-btn.clapped {
  border-color: #B45309;
  background: rgba(217, 119, 6, 0.22);
  color: #FBBF24;
}

[data-theme="dark"] .fb-clear-btn {
  background: #111827;
  border-color: var(--border-2);
  color: var(--ink-2);
}

[data-theme="dark"] .fb-clear-btn:hover {
  background: #1E293B;
  border-color: var(--ink-4);
  color: #fff;
}

[data-theme="dark"] #feedback #fbEmailPreview {
  background: #111827 !important;
  border-color: var(--border-2) !important;
}

[data-theme="dark"] .am-entry-card {
  background: linear-gradient(135deg, #111827 0%, #172554 100%);
  border-color: #1E40AF;
}

[data-theme="dark"] .attack-map-section {
  background: #0E1526;
  border-color: var(--border);
}

[data-theme="dark"] .am-node {
  background: #162035;
  border-color: var(--border-2);
}

[data-theme="dark"] .am-tab-btn {
  background: #111827;
  color: var(--ink-3);
  border-color: var(--border);
}

[data-theme="dark"] .am-tab-btn.active {
  background: #1D4ED8;
  color: #fff;
  border-color: #1D4ED8;
}

[data-theme="dark"] .am-drawer {
  background: #0F172A;
}

[data-theme="dark"] .am-drawer-section {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .am-drawer-explain-box {
  background: #1E293B;
}

[data-theme="dark"] .art-callout,
[data-theme="dark"] .art-card,
[data-theme="dark"] .art-stat-box,
[data-theme="dark"] .art-timeline-item {
  background: #111827;
  border-color: var(--border);
}

[data-theme="dark"] .about-strip {
  background: #070B14;
  border-top-color: var(--border);
}

[data-theme="dark"] .about-in {
  background: #111827;
  border-color: var(--border);
}

[data-theme="dark"] .about-btn.w {
  background: #1E293B;
  color: var(--ink);
  border-color: var(--border-2);
}

[data-theme="dark"] .about-btn.w:hover {
  background: #334155;
  color: #fff;
}

[data-theme="dark"] .site-footer {
  background: #05080E;
  border-top-color: var(--border);
}

/* ============================================================
   ATTACK MAP — MANCHESTER AIRPORTS GROUP (MAG) INTERACTIVE SYSTEM
   Specific to behind-the-breach-01.html · No generic pollution
   ============================================================ */

/* Entry Point Banner */
.am-entry-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1.5px solid #BFDBFE;
  border-left: 5px solid #1D4ED8;
  border-radius: var(--r);
  padding: 22px 26px;
  margin: 32px 0 24px;
  box-shadow: var(--sh-sm);
  transition: var(--t);
}
.am-entry-card:hover {
  border-color: #93C5FD;
  box-shadow: var(--sh-md);
}
.am-entry-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.am-entry-content {
  flex: 1;
}
.am-entry-tag {
  display: inline-block;
  font-family: var(--f-d);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1D4ED8;
  background: #DBEAFE;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.am-entry-title {
  font-family: var(--f-d);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.am-entry-desc {
  font-size: 0.92rem;
  color: var(--ink-3);
  margin-bottom: 12px;
  line-height: 1.5;
}
.am-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1D4ED8;
  color: #fff !important;
  font-family: var(--f-d);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: var(--t);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}
.am-explore-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

/* Attack Map Main Container */
.attack-map-section {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  margin: 40px 0;
  box-shadow: var(--sh-md);
  scroll-margin-top: calc(var(--nav-h) + 20px);
  position: relative;
}
.am-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.am-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.am-badge-pill {
  background: #1E293B;
  color: #F8FAFC;
  font-family: var(--f-d);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 6px;
}
.am-badge-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-4);
}
.am-h2 {
  font-family: var(--f-d);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 0 0 4px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}
.am-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1D4ED8;
  margin-bottom: 8px;
}
.am-intro-note {
  font-size: 0.9rem;
  color: var(--ink-4);
  line-height: 1.55;
  margin-bottom: 0 !important;
}
.attack-map-section p {
  margin-bottom: 0;
}

/* Tabs */
.am-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-2);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.am-tab-btn {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-family: var(--f-d);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}
.am-tab-btn:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.6);
}
.am-tab-btn.active {
  background: #FFFFFF;
  color: #1D4ED8;
  box-shadow: var(--sh-xs);
  border: 1px solid var(--border);
}

/* View Panes */
.am-view-pane {
  display: none;
}
.am-view-pane.is-active {
  display: block;
  animation: amFadeIn 0.25s ease-out;
}
@keyframes amFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Legend */
.am-legend-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.82rem;
}
.am-legend-title {
  font-family: var(--f-d);
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  margin-bottom: 8px;
}
.am-legend-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.am-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.am-legend-line-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.am-legend-line-indicator span {
  display: inline-block;
  width: 28px;
  height: 2px;
}
.line-solid { background: #334155; }
.line-dashed { background: transparent; border-top: 2px dashed #D97706; }
.line-dotted { background: transparent; border-top: 2px dotted #64748B; }

/* Status Badges */
.am-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-d);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2.5px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.am-badge-confirmed {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}
.am-badge-verified {
  background: #DBEAFE;
  color: #1D4ED8;
  border: 1px solid #93C5FD;
}
.am-badge-claimed {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}
.am-badge-unknown {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

/* Attack Map Flow Grid */
.am-map-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.am-node {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--sh-xs);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  position: relative;
}
.am-node:hover, .am-node:focus-visible {
  border-color: #2563EB;
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.12);
  transform: translateY(-2px);
}
.am-node.is-selected {
  border-color: #1D4ED8;
  background: #F8FAFF;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}
.am-node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 10px;
}
.am-node-step {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-4);
}
.am-node-title {
  font-family: var(--f-d);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
}
.am-node-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-4);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.am-node-action {
  color: #1D4ED8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Edge Connector */
.am-edge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 48px;
  position: relative;
  width: 100%;
}
.am-edge-line {
  width: 2px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.am-edge-line.solid { background: #334155; }
.am-edge-line.dashed { background: transparent; border-left: 2px dashed #D97706; width: 0; }
.am-edge-line.dotted { background: transparent; border-left: 2px dotted #64748B; width: 0; }
.am-edge-pill {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-family: monospace;
  font-weight: 700;
  color: var(--ink-3);
  box-shadow: var(--sh-xs);
  text-transform: uppercase;
}
.am-edge-pill.dashed { color: #B45309; border-color: #FCD34D; background: #FFFBEB; }
.am-edge-arrow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #334155;
  z-index: 2;
}
.am-edge-arrow.dashed { border-top-color: #D97706; }

/* Side Drawer (Desktop) & Bottom Sheet (Mobile) */
.am-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.am-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.am-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 90vw;
  background: #FFFFFF;
  box-shadow: var(--sh-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.am-drawer.is-open {
  transform: translateX(0);
}
.am-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-2);
}
.am-drawer-close {
  background: #FFFFFF;
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink-3);
  transition: var(--t);
  flex-shrink: 0;
}
.am-drawer-close:hover {
  background: #F1F5F9;
  color: var(--ink);
}
.am-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.am-drawer-section {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.am-drawer-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.am-drawer-label {
  font-family: var(--f-d);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.am-drawer-explain-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}
.am-drawer-explain-box strong {
  display: block;
  font-size: 0.8rem;
  color: #1D4ED8;
  font-family: var(--f-d);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.am-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.am-drawer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--f-d);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--t);
  text-align: center;
}
.am-btn-primary {
  background: #1D4ED8;
  color: #fff !important;
}
.am-btn-primary:hover {
  background: #1e40af;
}
.am-btn-secondary {
  background: #FFFFFF;
  color: var(--ink) !important;
  border: 1.5px solid var(--border);
}
.am-btn-secondary:hover {
  border-color: #1D4ED8;
  color: #1D4ED8 !important;
}

/* Mobile Drawer as Bottom Sheet */
@media (max-width: 768px) {
  .am-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .am-drawer.is-open {
    transform: translateY(0);
  }
}

/* Timeline View */
.am-timeline-wrap {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding: 10px 0 20px 24px;
  border-left: 2px solid var(--border);
}
.am-tl-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 20px;
}
.am-tl-dot {
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1D4ED8;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 2px #93C5FD;
}
.am-tl-item.window .am-tl-dot {
  background: #D97706;
  box-shadow: 0 0 0 2px #FCD34D;
}
.am-tl-date {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1D4ED8;
  margin-bottom: 3px;
}
.am-tl-title {
  font-family: var(--f-d);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 2px;
}
.am-tl-desc {
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.am-tl-window-card {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0 24px;
  position: relative;
}
.am-tl-window-badge {
  font-family: var(--f-d);
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400E;
  background: #FEF3C7;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.am-tl-window-card strong {
  display: block;
  font-family: var(--f-d);
  font-size: 1.05rem;
  color: #78350F;
  margin-bottom: 6px;
}
.am-tl-window-card p {
  font-size: 0.88rem;
  color: #92400E;
  margin: 0;
  line-height: 1.55;
}

/* Evidence 3-Column Comparative Matrix */
.am-evidence-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .am-evidence-cols {
    grid-template-columns: 1fr;
  }
}
.am-ev-col {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px;
}
.am-ev-col.confirmed {
  border-color: #86EFAC;
  background: #F0FDF4;
}
.am-ev-col.verified {
  border-color: #93C5FD;
  background: #EFF6FF;
}
.am-ev-col.claimed {
  border-color: #FCD34D;
  background: #FFFBEB;
}
.am-ev-header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.am-ev-header h4 {
  font-family: var(--f-d);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.am-ev-header .am-badge {
  font-size: 0.68rem;
}
.am-ev-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.am-ev-list li {
  position: relative;
  padding-left: 18px;
}
.am-ev-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  font-weight: bold;
}
.am-ev-assessment-box {
  background: #0F172A;
  color: #F8FAFC;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
}
.am-ev-assessment-title {
  font-family: var(--f-d);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38BDF8;
  margin-bottom: 8px;
}
.am-ev-assessment-main {
  font-family: var(--f-d);
  font-size: 1.12rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
  line-height: 1.45;
}
.am-ev-assessment-sub {
  font-size: 0.88rem;
  color: #94A3B8;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Expandable Accordion (What We Still Don't Know) */
.am-accordion-wrap {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.am-acc-h3 {
  font-family: var(--f-d);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.am-acc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.am-acc-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  transition: var(--t);
}
.am-acc-item:hover {
  border-color: #94A3B8;
}
.am-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
  border: none;
  font-family: var(--f-d);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  gap: 12px;
}
.am-acc-header:hover {
  background: var(--bg-2);
}
.am-acc-icon {
  font-size: 0.9rem;
  color: var(--ink-4);
  transition: transform 0.2s ease;
}
.am-acc-item.is-open .am-acc-icon {
  transform: rotate(180deg);
}
.am-acc-body {
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--ink-3);
  line-height: 1.6;
  display: none;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.am-acc-item.is-open .am-acc-body {
  display: block;
}

/* Disclaimer Box */
.am-disclaimer-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 4px solid #64748B;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 28px;
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.6;
}
.am-disclaimer-title {
  font-family: var(--f-d);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  margin-bottom: 4px;
}

/* In-Article Cross Link Badges */
.am-intext-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-d);
  font-size: 0.75rem;
  font-weight: 700;
  color: #1D4ED8 !important;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 9px;
  border-radius: 6px;
  text-decoration: none !important;
  margin-left: 6px;
  vertical-align: middle;
  transition: var(--t);
}
.am-intext-badge:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
}

/* ── NEWS HIGHLIGHT & SOURCE MAPPING SYSTEM ── */
.news-alert-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 5px solid #DC2626;
  border-radius: 14px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  padding: 22px 24px;
  margin: 28px 0;
  position: relative;
}

.news-alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-d);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
}

.news-badge.breaking {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

.news-badge.verified {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #86EFAC;
}

.news-badge.telemetry {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.news-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DC2626;
  animation: newsPulse 1.8s infinite;
}

@keyframes newsPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.news-headline {
  font-family: var(--f-d);
  font-size: 1.18rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 12px;
}

.news-quote-lead {
  font-size: 0.96rem;
  color: #334155;
  line-height: 1.65;
  border-left: 3px solid #CBD5E1;
  padding: 12px 16px;
  margin: 12px 0 16px;
  background: #F8FAFC;
  border-radius: 0 8px 8px 0;
}

.news-sources-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.news-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #E2E8F0;
}

.news-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.news-meta-label {
  font-family: var(--f-d);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
}

.news-meta-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0F172A;
}

/* Inline Mapped Source Badges */
.src-cite {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--f-d);
  font-size: 0.74rem;
  font-weight: 700;
  color: #1D4ED8 !important;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  text-decoration: none !important;
  margin: 0 2px;
  vertical-align: middle;
  transition: all .16s ease;
  white-space: nowrap;
}

.src-cite:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
  color: #1E40AF !important;
  transform: translateY(-1px);
}

.src-cite-icon {
  font-size: 0.75rem;
}

/* Editorial Illustration / SVG Card */
.art-diagram-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  margin: 28px 0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.art-diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.art-diagram-title {
  font-family: var(--f-d);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
}

.art-diagram-caption {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 12px;
  line-height: 1.5;
  text-align: center;
}

/* Target highlight when jumped to via anchor */
:target {
  scroll-margin-top: 90px;
}

li:target {
  background: #FEF3C7;
  border-radius: 6px;
  padding: 4px 8px;
  transition: background .4s ease;
}

/* ── LIVE NEWS & INCIDENT UPDATE FEED ── */
.live-news-feed {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 26px;
  margin: 32px 0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.live-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.live-feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-d);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #DC2626;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  padding: 5px 12px;
  border-radius: 9999px;
}

.live-feed-timestamp {
  font-size: 0.82rem;
  color: var(--ink-4);
  font-weight: 600;
}

.live-feed-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.live-feed-filter-btn {
  font-family: var(--f-d);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.15s ease;
}

.live-feed-filter-btn:hover {
  background: var(--bg-3);
  color: var(--ink);
}

.live-feed-filter-btn[aria-pressed="true"] {
  background: #1E3A8A;
  color: #FFFFFF;
  border-color: #1E3A8A;
}

.live-feed-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.live-feed-item {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid #3B82F6;
  border-radius: var(--r-sm);
  padding: 16px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.live-feed-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.live-feed-item.type-official {
  border-left-color: #16A34A;
}

.live-feed-item.type-regulatory {
  border-left-color: #9333EA;
}

.live-feed-item.type-intel {
  border-left-color: #DC2626;
}

.live-feed-item.type-defense {
  border-left-color: #2563EB;
}

.live-feed-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.live-feed-item-pill {
  font-family: var(--f-d);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

.live-feed-item-time {
  font-size: 0.8rem;
  color: var(--ink-4);
  font-weight: 600;
}

.live-feed-item-title {
  font-family: var(--f-d);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.35;
}

.live-feed-item-desc {
  font-size: 0.91rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 12px;
}

.live-feed-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
}


