/* ============================================================
   ARTICLE PAGE — WORLD CLASS RESEARCH EDITORIAL
   axivora/css/article.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── ARTICLE ROOT VARIABLES ── */
:root {
  --art-max:        760px;
  --art-wide:       1100px;
  --art-sidebar:    260px;
  --lora:           'Lora', Georgia, serif;
  --art-line:       1.85;
  --art-gap:        40px;
}

/* ── ARTICLE HERO ── */
.art-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.art-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Animated medical/AI gradient canvas */
.art-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Layered visual overlays */
.art-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.art-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(11,17,32,0.3) 0%,
    rgba(11,17,32,0.2) 40%,
    rgba(11,17,32,0.85) 75%,
    rgba(11,17,32,1.0) 100%
  );
}

/* Scan lines effect */
.art-hero-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(37,99,235,0.015) 3px,
    rgba(37,99,235,0.015) 4px
  );
}

/* Floating medical icons */
.art-hero-float {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.art-float-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0;
  animation: floatIconUp 12s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(37,99,235,0.4));
}
.art-float-icon:nth-child(1)  { left: 8%;  animation-delay: 0s;   font-size: 1.8rem; }
.art-float-icon:nth-child(2)  { left: 18%; animation-delay: 2s;   font-size: 2.2rem; }
.art-float-icon:nth-child(3)  { left: 30%; animation-delay: 4s;   font-size: 1.6rem; }
.art-float-icon:nth-child(4)  { left: 55%; animation-delay: 1s;   font-size: 2rem;   }
.art-float-icon:nth-child(5)  { left: 70%; animation-delay: 3s;   font-size: 1.9rem; }
.art-float-icon:nth-child(6)  { left: 82%; animation-delay: 5s;   font-size: 2.1rem; }
.art-float-icon:nth-child(7)  { left: 92%; animation-delay: 1.5s; font-size: 1.7rem; }
.art-float-icon:nth-child(8)  { left: 44%; animation-delay: 3.5s; font-size: 2.3rem; }

@keyframes floatIconUp {
  0%   { bottom: -5%;  opacity: 0;    transform: translateY(0)   rotate(0deg);   }
  10%  { opacity: 0.25; }
  80%  { opacity: 0.15; }
  100% { bottom: 105%; opacity: 0;    transform: translateY(-20px) rotate(15deg); }
}

/* Hero content */
.art-hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-bottom: 72px;
}
.art-hero-content .container {
  max-width: var(--art-wide);
}

.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.art-breadcrumb a { color: var(--blue-light); transition: 0.2s; }
.art-breadcrumb a:hover { color: var(--cyan); }
.art-breadcrumb span { opacity: 0.4; }

.art-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.35);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.art-category-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-light);
  animation: pulse 2s infinite;
}

.art-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 820px;
  margin-bottom: 24px;
}
.art-hero-title .highlight {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.art-hero-subtitle {
  font-family: var(--lora);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-style: italic;
  color: rgba(156,163,175,0.9);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* Author + meta row */
.art-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.art-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.art-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 0 16px rgba(37,99,235,0.4);
  flex-shrink: 0;
}
.art-author-info .name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.art-author-info .role {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1px;
}
.art-meta-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }
.art-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.art-meta-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.art-meta-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* Share buttons on hero */
.art-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.art-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-gray);
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}
.art-action-btn:hover {
  border-color: rgba(37,99,235,0.4);
  background: rgba(37,99,235,0.1);
  color: #fff;
}
.art-action-btn.primary {
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(37,99,235,0.3);
}
.art-action-btn.primary:hover {
  box-shadow: 0 0 32px rgba(37,99,235,0.5);
  transform: translateY(-1px);
}

/* ── PROGRESS BAR (reading progress) ── */
#art-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563EB, #7C3AED, #22D3EE);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(37,99,235,0.6);
}

/* ── ARTICLE BODY LAYOUT ── */
.art-body {
  background: var(--bg-primary);
  padding: 72px 0 100px;
}
.art-layout {
  display: grid;
  grid-template-columns: 1fr var(--art-sidebar);
  gap: 64px;
  max-width: var(--art-wide);
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

/* ── MAIN CONTENT ── */
.art-content {
  min-width: 0;
}

/* TL;DR Key Takeaways card */
.art-tldr {
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 20, 0.5);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(0, 194, 255, 0.2);
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 48px rgba(0, 194, 255, 0.08),
    0 0 80px rgba(37, 99, 235, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.art-tldr::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, #2563EB, #7C3AED, #22D3EE);
  border-radius: 3px 0 0 3px;
}
.art-tldr-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.art-tldr-title::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.art-tldr ol {
  list-style: none;
  counter-reset: tldr;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.art-tldr li {
  counter-increment: tldr;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.art-tldr li::before {
  content: counter(tldr, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--blue-light);
  background: rgba(37,99,235,0.15);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Section headings inside article */
.art-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 60px 0 20px;
  line-height: 1.2;
  position: relative;
  padding-left: 20px;
}
.art-content h2::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 3px;
  height: calc(100% - 8px);
  background: linear-gradient(180deg, #2563EB, #7C3AED);
  border-radius: 2px;
}

.art-content h3 {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-content h3::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
}

/* Body text */
.art-content p {
  font-family: var(--lora);
  font-size: 1.05rem;
  color: rgba(156,163,175,0.95);
  line-height: var(--art-line);
  margin-bottom: 24px;
}
.art-content strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.art-content em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

/* Pull quote */
.art-pullquote {
  margin: 52px 0;
  padding: 34px 42px;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #00C2FF, #7B2FFF, #0066FF) 1;
  background: rgba(12, 12, 20, 0.5);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(37, 99, 235, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.art-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -12px; left: 24px;
  font-family: var(--lora);
  font-size: 6.5rem;
  line-height: 1;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #818CF8 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.45;
  animation: quoteGlow 4s ease-in-out infinite;
}
@keyframes quoteGlow {
  0%, 100% { background-position: 0% 50%; opacity: 0.35; }
  50% { background-position: 100% 50%; opacity: 0.55; }
}
.art-pullquote blockquote {
  font-family: var(--lora);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.art-pullquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

/* Stat callout cards */
.art-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 52px 0;
}
.art-stat-card {
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(37,99,235,0.18);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.art-stat-card:hover {
  border-color: rgba(0, 194, 255, 0.5);
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 40px rgba(0, 194, 255, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 0 30px rgba(0, 194, 255, 0.03);
}
.art-stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #7C3AED, #22D3EE);
  background-size: 200% 100%;
  animation: statBarShimmer 3s ease infinite;
}
@keyframes statBarShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.art-stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563EB, #818CF8, #22D3EE);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  transition: filter 0.3s ease;
}
.art-stat-card:hover .art-stat-num {
  filter: brightness(1.15);
}
.art-stat-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
  font-family: var(--font-body);
}

/* Info box */
.art-infobox {
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: rgba(34,211,238,0.05);
  border: 1px solid rgba(34,211,238,0.2);
  margin: 40px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.art-infobox-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.art-infobox p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(156,163,175,0.9);
  margin: 0;
  line-height: 1.7;
}
.art-infobox strong { color: var(--cyan); }

/* Warning box */
.art-warnbox {
  background: rgba(245,158,11,0.05);
  border-color: rgba(245,158,11,0.2);
}
.art-warnbox p strong { color: #F59E0B; }

/* Comparison table */
.art-table-wrap {
  overflow-x: auto;
  margin: 40px 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(37,99,235,0.2);
}
.art-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.art-table thead tr {
  background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(124,58,237,0.08));
}
.art-table th {
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  border-bottom: 1px solid rgba(37,99,235,0.18);
  white-space: nowrap;
}
.art-table td {
  padding: 14px 20px;
  color: rgba(156,163,175,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-body);
  line-height: 1.55;
  vertical-align: top;
  transition: background 0.2s ease;
}
.art-table tr:last-child td { border-bottom: none; }
.art-table tr:hover td { background: rgba(37,99,235,0.03); }
.art-table .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-green  { background: rgba(16,185,129,0.12); color: #10B981; border: 1px solid rgba(16,185,129,0.2); }
.badge-blue   { background: rgba(37,99,235,0.12);  color: var(--blue-light); border: 1px solid rgba(37,99,235,0.25); }
.badge-violet { background: rgba(124,58,237,0.12); color: var(--violet-light); border: 1px solid rgba(124,58,237,0.25); }
.badge-cyan   { background: rgba(34,211,238,0.1);  color: var(--cyan); border: 1px solid rgba(34,211,238,0.2); }
.badge-amber  { background: rgba(245,158,11,0.1);  color: #F59E0B; border: 1px solid rgba(245,158,11,0.2); }

/* Code block */
.art-code {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 36px 0;
  overflow-x: auto;
  position: relative;
}
.art-code-label {
  position: absolute;
  top: 10px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.art-code pre {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: rgba(156,163,175,0.9);
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}
.art-code .kw  { color: #7C3AED; }
.art-code .fn  { color: #22D3EE; }
.art-code .str { color: #10B981; }
.art-code .cm  { color: rgba(156,163,175,0.4); font-style: italic; }
.art-code .num { color: #F59E0B; }

/* Section divider */
.art-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0;
}
.art-divider::before, .art-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.3), transparent);
}
.art-divider-icon {
  font-size: 1rem;
  opacity: 0.5;
}

/* References list */
.art-references {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}
.art-references h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.art-ref-list { display: flex; flex-direction: column; gap: 10px; }
.art-ref-item {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.art-ref-item:last-child { border-bottom: none; padding-bottom: 0; }
.art-ref-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--blue-light);
  padding: 2px 7px;
  background: rgba(37,99,235,0.1);
  border-radius: 4px;
  flex-shrink: 0;
  height: fit-content;
  margin-top: 2px;
}
.art-ref-item a { color: var(--blue-light); transition: 0.2s; }
.art-ref-item a:hover { color: var(--cyan); }

/* Tags */
.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.art-tag {
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  transition: 0.3s;
  cursor: pointer;
}
.art-tag:hover {
  border-color: rgba(37,99,235,0.4);
  color: var(--blue-light);
  background: rgba(37,99,235,0.08);
}

/* ── SIDEBAR ── */
.art-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.art-toc {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.art-toc-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.art-toc-list { display: flex; flex-direction: column; gap: 3px; }
.art-toc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.4;
  text-decoration: none;
  position: relative;
  border-left: 2px solid transparent;
}
.art-toc-item:hover {
  background: rgba(37,99,235,0.06);
  color: rgba(255,255,255,0.85);
  border-left-color: rgba(37,99,235,0.3);
}
.art-toc-item.active {
  background: rgba(37,99,235,0.1);
  color: var(--blue-light);
  border-left-color: var(--blue-light);
  box-shadow: 0 0 16px rgba(37,99,235,0.06);
}
.art-toc-item .toc-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Sidebar info card */
.art-sidebar-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.art-sidebar-card h5 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.art-sidebar-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
}
.art-sidebar-stat:last-child { border-bottom: none; }
.art-sidebar-stat .label { color: var(--text-dim); }
.art-sidebar-stat .value { color: rgba(255,255,255,0.8); font-weight: 600; }
.art-sidebar-stat .value.green { color: #10B981; }
.art-sidebar-stat .value.cyan  { color: var(--cyan); }

/* Sidebar share */
.art-share { padding: 20px; }
.art-share h5 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.art-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.art-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-gray);
  cursor: pointer;
  transition: 0.3s;
}
.art-share-btn:hover {
  border-color: rgba(37,99,235,0.4);
  background: rgba(37,99,235,0.1);
  color: #fff;
}

/* ── RELATED ARTICLES ── */
.art-related {
  padding: 80px 0 100px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .art-layout {
    grid-template-columns: 1fr;
  }
  .art-sidebar {
    display: none;
  }
  .art-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .art-hero-title { font-size: 2.1rem; }
  .art-stats-grid { grid-template-columns: 1fr; }
  .art-related-grid { grid-template-columns: 1fr; }
  .art-meta-row { gap: 16px; }
  .art-meta-divider { display: none; }
  .art-hero-actions { display: none; }
  .art-pullquote blockquote { font-size: 1.1rem; }
  .art-table { font-size: 0.78rem; }
  .art-table th, .art-table td { padding: 10px 12px; }
}

/* ============================================================
   ULTRA-PREMIUM DYNAMIC TOPOGRAPHY BACKGROUND & GLASSMORPHISM
   ============================================================ */

/* ── 1. BACKGROUND CANVAS ── */
.topo-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #FAF9F6; /* Premium Alabaster Off-White base */
}

.topo-svg {
  width: 100%;
  height: 100%;
  opacity: 0.98;
}

/* ── 2. TOPOGRAPHIC CONTOUR PATHS ── */
.topo-path {
  transform-origin: 1440px 0px;
  filter: drop-shadow(-8px 12px 24px rgba(0, 0, 0, 0.07)); /* Extremely soft, tactile gray shadows */
  will-change: transform;
  
  /* Force hardware GPU acceleration layers to prevent micro-stutters during filter recalculations */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

/* Asynchronous wavy organic float cycles - extended durations for extremely elegant, slow liquid drift */
.topo-path-7 {
  animation: topo-float-7 54s ease-in-out infinite alternate;
}
.topo-path-6 {
  animation: topo-float-6 48s ease-in-out infinite alternate;
  animation-delay: -3s;
}
.topo-path-5 {
  animation: topo-float-5 42s ease-in-out infinite alternate;
  animation-delay: -6s;
}
.topo-path-4 {
  animation: topo-float-4 36s ease-in-out infinite alternate;
  animation-delay: -9s;
}
.topo-path-3 {
  animation: topo-float-3 30s ease-in-out infinite alternate;
  animation-delay: -12s;
}
.topo-path-2 {
  animation: topo-float-2 24s ease-in-out infinite alternate;
  animation-delay: -15s;
}
.topo-path-1 {
  animation: topo-float-1 18s ease-in-out infinite alternate;
  animation-delay: -18s;
}

/* Concentric liquid morphing keyframes */
@keyframes topo-float-7 {
  0% { transform: scale(1) rotate(0deg) translate(0, 0); }
  50% { transform: scale(1.05) rotate(1.2deg) translate(-25px, 15px); }
  100% { transform: scale(0.97) rotate(-0.8deg) translate(10px, -20px); }
}
@keyframes topo-float-6 {
  0% { transform: scale(1) rotate(0deg) translate(0, 0); }
  50% { transform: scale(1.04) rotate(-1.5deg) translate(20px, 25px); }
  100% { transform: scale(0.96) rotate(1deg) translate(-15px, -15px); }
}
@keyframes topo-float-5 {
  0% { transform: scale(1) rotate(0deg) translate(0, 0); }
  50% { transform: scale(1.06) rotate(2deg) translate(-20px, -10px); }
  100% { transform: scale(0.95) rotate(-1.2deg) translate(25px, 20px); }
}
@keyframes topo-float-4 {
  0% { transform: scale(1) rotate(0deg) translate(0, 0); }
  50% { transform: scale(1.03) rotate(-1.4deg) translate(15px, -25px); }
  100% { transform: scale(0.98) rotate(1.5deg) translate(-20px, 15px); }
}
@keyframes topo-float-3 {
  0% { transform: scale(1) rotate(0deg) translate(0, 0); }
  50% { transform: scale(1.05) rotate(2.2deg) translate(-30px, 20px); }
  100% { transform: scale(0.96) rotate(-1.8deg) translate(15px, -12px); }
}
@keyframes topo-float-2 {
  0% { transform: scale(1) rotate(0deg) translate(0, 0); }
  50% { transform: scale(1.04) rotate(-1.8deg) translate(20px, -20px); }
  100% { transform: scale(0.98) rotate(1.4deg) translate(-15px, 18px); }
}
@keyframes topo-float-1 {
  0% { transform: scale(1) rotate(0deg) translate(0, 0); }
  50% { transform: scale(1.07) rotate(2.8deg) translate(-20px, 25px); }
  100% { transform: scale(0.95) rotate(-2.2deg) translate(18px, -10px); }
}

/* ── 3. HIGH-SPECIFICITY LIGHT THEME OVERRIDES ── */
body.art-page-topo {
  background: #FAF9F6 !important;
  color: #1F2937 !important; /* Deep charcoal text */
}

body.art-page-topo .art-body,
body.art-page-topo .art-hero,
body.art-page-topo .art-hero-bg,
body.art-page-topo .art-hero-biz-bg,
body.art-page-topo .art-hero-llm-bg {
  background: transparent !important;
}

body.art-page-topo .art-hero-veil {
  background: linear-gradient(
    to bottom,
    rgba(250, 249, 246, 0.1) 0%,
    rgba(250, 249, 246, 0.3) 40%,
    rgba(250, 249, 246, 0.8) 75%,
    #FAF9F6 100%
  ) !important;
}

body.art-page-topo .art-hero-grid {
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.04) 1px, transparent 1px) !important;
  opacity: 0.6 !important;
}

body.art-page-topo .art-hero-scan {
  display: none !important;
}

body.art-page-topo .art-float-icon {
  filter: drop-shadow(0 0 6px rgba(79, 70, 229, 0.2)) !important;
  color: #4F46E5 !important;
  opacity: 0.35 !important;
}

body.art-page-topo #navbar,
body.art-page-topo #navbar.scrolled {
  background: rgba(250, 249, 246, 0.72) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Ensure global links and logo text align to light mode */
body.art-page-topo nav .nav-links a,
body.art-page-topo nav .logo-text {
  color: #374151 !important;
}
body.art-page-topo nav .nav-links a:hover,
body.art-page-topo nav .nav-links a.active {
  color: var(--accent) !important;
}
body.art-page-topo nav .logo-text span {
  color: var(--accent) !important;
}

/* Ensure float animations are behind content and styled cleanly */
body.art-page-topo #data-nodes,
body.art-page-topo .token-stream {
  z-index: 1 !important;
  opacity: 0.15 !important; /* Extremely soft and subtle nodes for high-end look */
}

/* ── 4. PREMIUM FROSTED LIGHT GLASSMORPHISM SYSTEM ── */
body.art-page-topo .art-content {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  padding: 48px 52px !important;
  border-radius: 24px !important;
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.05),
    0 8px 16px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  position: relative;
  z-index: 10;
  color: #27272A !important;
  
  /* Optimize scroll and paint threads using GPU hardware layers */
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

body.art-page-topo .art-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  z-index: 10;
}

/* Sidebar and TOC high-specificity overrides to crush internal template !important style tags */
body.art-page-topo aside.art-sidebar div.art-toc,
body.art-page-topo aside.art-sidebar div.art-sidebar-card {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 24px !important;
  color: #27272A !important;
  
  /* GPU Layer promotion */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

/* Sidebar Title and Text Contrast */
body.art-page-topo aside.art-sidebar div.art-sidebar-card h5 {
  color: #09090B !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding-bottom: 10px !important;
  margin-bottom: 14px !important;
  font-weight: 700 !important;
}

/* Sidebar Stats and Metrics overrides */
body.art-page-topo aside.art-sidebar div.art-sidebar-stat {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.art-page-topo aside.art-sidebar div.art-sidebar-stat:last-child {
  border-bottom: none !important;
}
body.art-page-topo aside.art-sidebar div.art-sidebar-stat span.label {
  color: #52525B !important; /* Premium sandstone gray */
}
body.art-page-topo aside.art-sidebar div.art-sidebar-stat span.value {
  color: #1F2937 !important; /* Crisp charcoal for legibility */
  font-weight: 600 !important;
}
body.art-page-topo aside.art-sidebar div.art-sidebar-stat span.value.green {
  color: #059669 !important; /* Forest green */
  font-weight: 600 !important;
}
body.art-page-topo aside.art-sidebar div.art-sidebar-stat span.value.cyan {
  color: #4F46E5 !important; /* Premium Indigo */
  background: rgba(79, 70, 229, 0.06) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}

/* High-specificity TOC Link overrides to override template blue links */
body.art-page-topo aside.art-sidebar div.art-toc nav.art-toc-list a.art-toc-item {
  color: #4B5563 !important;
  border-left: 2px solid transparent !important;
  background: transparent !important;
}
body.art-page-topo aside.art-sidebar div.art-toc nav.art-toc-list a.art-toc-item:hover {
  background: rgba(79, 70, 229, 0.05) !important;
  color: #4F46E5 !important;
  border-left-color: rgba(79, 70, 229, 0.4) !important;
}
body.art-page-topo aside.art-sidebar div.art-toc nav.art-toc-list a.art-toc-item.active {
  background: rgba(79, 70, 229, 0.08) !important;
  color: #4F46E5 !important;
  border-left-color: #4F46E5 !important;
  box-shadow: 
    0 4px 12px rgba(79, 70, 229, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  font-weight: 600 !important;
}
body.art-page-topo aside.art-sidebar div.art-toc nav.art-toc-list a.art-toc-item .toc-num {
  color: #9CA3AF !important;
}
body.art-page-topo aside.art-sidebar div.art-toc nav.art-toc-list a.art-toc-item.active .toc-num {
  color: #4F46E5 !important;
  font-weight: 700 !important;
}

/* High-specificity Share buttons overrides */
body.art-page-topo aside.art-sidebar div.art-share div.art-share-btns button.art-share-btn {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #374151 !important;
}
body.art-page-topo aside.art-sidebar div.art-share div.art-share-btns button.art-share-btn:hover {
  background: rgba(79, 70, 229, 0.08) !important;
  border-color: rgba(79, 70, 229, 0.3) !important;
  color: #4F46E5 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.05) !important;
}

/* Typography, paragraphs, links overrides */
body.art-page-topo .art-content p {
  color: #27272A !important; /* Deep charcoal for excellent reading contrast */
  text-align: left !important;
  line-height: 1.85 !important;
  letter-spacing: -0.003em !important;
  margin-bottom: 24px !important;
}

body.art-page-topo .art-content li {
  color: #27272A !important;
  text-align: left !important;
  line-height: 1.75 !important;
  margin-bottom: 12px !important;
}

body.art-page-topo .art-content strong {
  color: #09090B !important; /* Bold, solid pitch-black for micro-emphasis */
  font-weight: 700 !important;
}

body.art-page-topo .art-content em {
  color: #3F3F46 !important;
  font-style: italic !important;
}

body.art-page-topo .art-content h2 {
  font-family: 'Sora', sans-serif !important;
  font-weight: 800 !important;
  color: #09090B !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  margin-top: 56px !important;
  margin-bottom: 20px !important;
  line-height: 1.25 !important;
  position: relative !important;
  padding-left: 20px !important;
}

body.art-page-topo .art-content h2::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 6px !important;
  width: 4px !important;
  height: calc(100% - 6px) !important;
  background: linear-gradient(180deg, #4F46E5, #7C3AED) !important;
  border-radius: 4px !important;
}

body.art-page-topo .art-content h3 {
  font-family: 'Sora', sans-serif !important;
  font-weight: 700 !important;
  color: #18181B !important;
  letter-spacing: -0.015em !important;
  text-align: left !important;
  margin-top: 40px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.art-page-topo .art-content h3::before {
  content: '' !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #06B6D4 !important;
  box-shadow: 0 0 8px #06B6D4 !important;
  flex-shrink: 0 !important;
}

/* Specific overrides for hardcoded inline HTML elements (e.g. breadcrumbs and badges) */
body.art-page-topo .art-breadcrumb,
body.art-page-topo .art-breadcrumb span,
body.art-page-topo .art-breadcrumb span[style] {
  color: #52525B !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
}

body.art-page-topo .art-breadcrumb a {
  color: #4F46E5 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

body.art-page-topo .art-breadcrumb a:hover {
  color: #06B6D4 !important;
}

body.art-page-topo .art-category-badge,
body.art-page-topo .art-category-badge[style] {
  background: rgba(79, 70, 229, 0.08) !important;
  border: 1px solid rgba(79, 70, 229, 0.22) !important;
  color: #4F46E5 !important;
  padding: 6px 16px !important;
  border-radius: 100px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 24px !important;
}

body.art-page-topo .art-category-badge span,
body.art-page-topo .art-category-badge span[style] {
  color: #4F46E5 !important;
  background: #4F46E5 !important;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.6) !important;
}

body.art-page-topo .art-category-badge::before {
  content: '' !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #4F46E5 !important;
  box-shadow: 0 0 8px #4F46E5 !important;
}

body.art-page-topo .art-hero-title {
  text-align: left !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  font-weight: 800 !important;
  color: #0F172A !important;
}

body.art-page-topo .art-hero-title .highlight {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.art-page-topo .art-hero-subtitle {
  color: #374151 !important;
  text-align: left !important;
  line-height: 1.75 !important;
}

/* Author + Meta row Light Alignment */
body.art-page-topo .art-meta-row {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding-top: 28px !important;
}

body.art-page-topo .art-meta-divider {
  background: rgba(0, 0, 0, 0.08) !important;
}

body.art-page-topo .art-meta-label {
  color: #6B7280 !important;
}

body.art-page-topo .art-meta-value {
  color: #1F2937 !important;
}

body.art-page-topo .art-author-info .name {
  color: #111827 !important;
}

body.art-page-topo .art-author-info .role {
  color: #4B5563 !important;
}

/* Premium Light Share Buttons Row */
body.art-page-topo .art-hero-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.art-page-topo .art-action-btn {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #4B5563 !important;
  border-radius: 100px !important;
  padding: 8px 16px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.art-page-topo .art-action-btn:hover {
  border-color: rgba(79, 70, 229, 0.3) !important;
  background: rgba(79, 70, 229, 0.05) !important;
  color: #4F46E5 !important;
  transform: translateY(-1px) !important;
}

body.art-page-topo .art-action-btn.primary {
  background: linear-gradient(135deg, #4F46E5, #7C3AED) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15) !important;
}

body.art-page-topo .art-action-btn.primary:hover {
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}

/* ── 5. LIGHT INNER COMPONENT OVERRIDES ── */

/* TL;DR card */
body.art-page-topo .art-tldr {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(79, 70, 229, 0.25) !important;
  box-shadow: 
    0 12px 32px rgba(79, 70, 229, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
body.art-page-topo .art-tldr-title {
  color: #4F46E5 !important;
}
body.art-page-topo .art-tldr li::before {
  color: #4F46E5 !important;
  background: rgba(79, 70, 229, 0.08) !important;
}

/* Pull Quotes */
body.art-page-topo .art-pullquote {
  background: rgba(255, 255, 255, 0.8) !important;
  border-left: 4px solid #4F46E5 !important;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
body.art-page-topo .art-pullquote blockquote {
  color: #09090B !important;
  font-size: 1.25rem !important;
}
body.art-page-topo .art-pullquote cite {
  color: #4F46E5 !important;
}

/* Stat Cards */
body.art-page-topo .art-stat-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
body.art-page-topo .art-stat-num {
  background: linear-gradient(135deg, #4F46E5, #06B6D4) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
body.art-page-topo .art-stat-desc {
  color: #6B7280 !important;
}

/* Info & Warning Boxes */
body.art-page-topo .art-infobox {
  background: rgba(224, 242, 254, 0.5) !important;
  border: 1px solid rgba(14, 165, 233, 0.3) !important;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.02) !important;
}
body.art-page-topo .art-infobox p {
  color: #0369A1 !important;
}
body.art-page-topo .art-infobox p strong {
  color: #0284C7 !important;
}

body.art-page-topo .art-warnbox {
  background: rgba(254, 243, 199, 0.5) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.02) !important;
}
body.art-page-topo .art-warnbox p {
  color: #B45309 !important;
}
body.art-page-topo .art-warnbox p strong {
  color: #D97706 !important;
}

/* Code Blocks - Styled dark obsidian for high contrast syntax parsing */
body.art-page-topo .art-code {
  background: #090B10 !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
body.art-page-topo .art-code-label {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Tables */
body.art-page-topo .art-table-wrap {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02) !important;
}
body.art-page-topo .art-table thead tr {
  background: rgba(79, 70, 229, 0.08) !important;
}
body.art-page-topo .art-table th {
  color: #4F46E5 !important;
  border-bottom: 1px solid rgba(79, 70, 229, 0.15) !important;
}
body.art-page-topo .art-table td {
  color: #374151 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.art-page-topo .art-table tr:hover td {
  background: rgba(79, 70, 229, 0.02) !important;
}

/* Tags & References */
body.art-page-topo .art-references {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.art-page-topo .art-references h4 {
  color: #4B5563 !important;
}
body.art-page-topo .art-ref-item {
  color: #4B5563 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.art-page-topo .art-ref-num {
  color: #4F46E5 !important;
  background: rgba(79, 70, 229, 0.08) !important;
}
body.art-page-topo .art-tag {
  background: rgba(79, 70, 229, 0.08) !important;
  border: 1px solid rgba(79, 70, 229, 0.2) !important;
  color: #4F46E5 !important;
}
body.art-page-topo .art-tag:hover {
  background: rgba(79, 70, 229, 0.15) !important;
  border-color: #4F46E5 !important;
  color: #312E81 !important;
}

/* ── 6. DYNAMIC WIDGETS & LIGHT INTERFACE ADAPTATION ── */
body.art-page-topo .decision-card,
body.art-page-topo .roi-card,
body.art-page-topo .case-study,
body.art-page-topo .framework-step,
body.art-page-topo .barrier-list,
body.art-page-topo .pipeline-step,
body.art-page-topo .benchmark-chart,
body.art-page-topo .method-card,
body.art-page-topo .industry-card,
body.art-page-topo .arch-diagram,
body.art-page-topo .maturity-bar {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 
    0 12px 36px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  color: #374151 !important;
}

body.art-page-topo .decision-name,
body.art-page-topo .roi-label,
body.art-page-topo .pipeline-title,
body.art-page-topo .fw-title,
body.art-page-topo .industry-name,
body.art-page-topo .case-title,
body.art-page-topo .maturity-title,
body.art-page-topo .method-title {
  color: #09090B !important;
}

body.art-page-topo .decision-desc,
body.art-page-topo .roi-source,
body.art-page-topo .pipeline-desc,
body.art-page-topo .fw-desc,
body.art-page-topo .industry-desc,
body.art-page-topo .case-body p,
body.art-page-topo .method-desc {
  color: #4B5563 !important;
}

body.art-page-topo .case-header {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.04)) !important;
  border-bottom: 1px solid rgba(79, 70, 229, 0.12) !important;
}
body.art-page-topo .case-body {
  background: rgba(255, 255, 255, 0.5) !important;
}
body.art-page-topo .case-result-item {
  background: rgba(79, 70, 229, 0.05) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.art-page-topo .case-result-item:hover {
  background: rgba(79, 70, 229, 0.08) !important;
}
body.art-page-topo .case-result-label {
  color: #4B5563 !important;
}

body.art-page-topo .pipeline-flow::before {
  background: linear-gradient(180deg, #4F46E5, #7C3AED, #06B6D4) !important;
  opacity: 0.3 !important;
}
body.art-page-topo .pipeline-num {
  background: linear-gradient(135deg, #4F46E5, #3B82F6) !important;
  border-color: rgba(79, 70, 229, 0.2) !important;
  color: #fff !important;
}
body.art-page-topo .fw-num {
  background: linear-gradient(135deg, #4F46E5, #7C3AED) !important;
  color: #fff !important;
}

/* Dynamic slider scales (Decision Maturity) */
body.art-page-topo .maturity-level {
  background: #E4E4E7 !important;
  color: #52525B !important;
}
body.art-page-topo .maturity-level:hover {
  background: #D4D4D8 !important;
}
body.art-page-topo .maturity-level.mat-2 { background: rgba(79, 70, 229, 0.1) !important; color: #4F46E5 !important; }
body.art-page-topo .maturity-level.mat-3 { background: rgba(124, 58, 237, 0.1) !important; color: #7C3AED !important; }
body.art-page-topo .maturity-level.mat-4 { background: rgba(5, 150, 105, 0.1) !important; color: #059669 !important; }
body.art-page-topo .maturity-level.mat-5 { background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(220, 38, 38, 0.1)); color: #D97706 !important; }

/* Table of Contents - Exclude blue color accents and implement premium off-white sandstone & indigo glass */
body.art-page-topo .art-toc-title {
  color: #1F2937 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding-bottom: 8px !important;
  font-weight: 700 !important;
}
body.art-page-topo .art-toc-item {
  color: #4B5563 !important;
  border-left: 2px solid transparent !important;
  background: transparent !important;
}
body.art-page-topo .art-toc-item:hover {
  background: rgba(79, 70, 229, 0.05) !important;
  color: #4F46E5 !important;
  border-left-color: rgba(79, 70, 229, 0.4) !important;
}
body.art-page-topo .art-toc-item.active {
  background: rgba(79, 70, 229, 0.08) !important;
  color: #4F46E5 !important;
  border-left-color: #4F46E5 !important;
  box-shadow: 
    0 4px 12px rgba(79, 70, 229, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  font-weight: 600 !important;
}
body.art-page-topo .art-toc-item .toc-num {
  color: #9CA3AF !important;
}
body.art-page-topo .art-toc-item.active .toc-num {
  color: #4F46E5 !important;
  font-weight: 700 !important;
}

/* Category Badge & References blue accent overrides */
body.art-page-topo .badge-blue {
  background: rgba(79, 70, 229, 0.08) !important;
  color: #4F46E5 !important;
  border: 1px solid rgba(79, 70, 229, 0.2) !important;
}
body.art-page-topo .art-breadcrumb a {
  color: #4F46E5 !important;
}
body.art-page-topo .art-breadcrumb a:hover {
  color: #4338CA !important;
}
body.art-page-topo .art-ref-item a {
  color: #4F46E5 !important;
}
body.art-page-topo .art-ref-item a:hover {
  color: #4338CA !important;
}

/* ── 6. PRODUCTION & ENTERPRISE SCALE OPTIMIZATIONS ── */

/* Reading Progress Indicator Override */
body.art-page-topo #art-progress {
  background: linear-gradient(90deg, #4F46E5, #7C3AED, #F472B6) !important;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.4) !important;
}

/* Category Badges high-contrast light overrides */
body.art-page-topo .badge-violet {
  background: rgba(124, 58, 237, 0.08) !important;
  color: #7C3AED !important;
  border: 1px solid rgba(124, 58, 237, 0.2) !important;
}
body.art-page-topo .badge-cyan {
  background: rgba(6, 182, 212, 0.08) !important;
  color: #0891B2 !important;
  border: 1px solid rgba(6, 182, 212, 0.2) !important;
}
body.art-page-topo .badge-amber {
  background: rgba(245, 158, 11, 0.08) !important;
  color: #D97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
}
body.art-page-topo .badge-green {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

/* Interactive Elements Accessibility Focus Rings (WCAG AA compliance) */
body.art-page-topo *:focus-visible {
  outline: 2px solid #4F46E5 !important;
  outline-offset: 4px !important;
}

/* Premium Custom Scrollbars for overflowing blocks (Tables & Code panels) */
body.art-page-topo .art-table-wrap::-webkit-scrollbar,
body.art-page-topo .art-code::-webkit-scrollbar {
  height: 6px !important;
  width: 6px !important;
}
body.art-page-topo .art-table-wrap::-webkit-scrollbar-track,
body.art-page-topo .art-code::-webkit-scrollbar-track {
  background: transparent !important;
}
body.art-page-topo .art-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08) !important;
  border-radius: 9999px !important;
}
body.art-page-topo .art-code::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 9999px !important;
}

/* Production-level print optimizations */
@media print {
  body.art-page-topo .topo-background {
    display: none !important; /* Hide moving vector shapes to save ink and maintain clean print */
  }
}

/* ── 7. RESPONSIVE POLISH ── */
@media (max-width: 1024px) {
  body.art-page-topo .art-content {
    padding: 36px 40px !important;
  }
}

@media (max-width: 768px) {
  body.art-page-topo .art-content {
    padding: 24px 28px !important;
    border-radius: 16px !important;
  }
  
  body.art-page-topo .art-toc,
  body.art-page-topo .art-sidebar-card {
    border-radius: 16px !important;
  }
  
  .topo-path {
    transform-origin: center right;
  }
}
