/* ========== Global: Scaled root ========== */
:root {
  --brand-primary: #E95420;
  --brand-hover: #C34113;
  --brand-light: rgba(233, 84, 32, 0.06);
  --brand-lighter: rgba(233, 84, 32, 0.04);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --border-default: #e2e8f0;

  /* Semantic SVG theme variables */
  --svg-success-bg: rgba(16, 185, 129, 0.06);
  --svg-success-stroke: #10b981;
  --svg-success-text: #15803d;
  --svg-error-bg: rgba(239, 68, 68, 0.06);
  --svg-error-stroke: #ef4444;
  --svg-error-text: #b91c1c;
  --svg-warning-bg: rgba(245, 158, 11, 0.06);
  --svg-warning-stroke: #f59e0b;
  --svg-warning-text: #b45309;
  --svg-info-bg: rgba(99, 102, 241, 0.06);
  --svg-info-stroke: #6366f1;
  --svg-info-text: #4338ca;
  --svg-accent-bg: rgba(139, 92, 246, 0.06);
  --svg-accent-stroke: #8b5cf6;
  --svg-accent-text: #6d28d9;
}
html.dark {
  --brand-primary: #F5A389;
  --brand-hover: #E95420;
  --brand-light: rgba(233, 84, 32, 0.15);
  --brand-lighter: rgba(233, 84, 32, 0.1);
  --text-primary: #E8E8E8;
  --text-secondary: #A0A0A0;
  --text-muted: #94a3b8;
  --bg-primary: #0E1115;
  --bg-secondary: #0F1115;
  --border-default: rgba(255, 255, 255, 0.05);

  /* Semantic SVG theme variables */
  --svg-success-bg: rgba(52, 211, 153, 0.15);
  --svg-success-stroke: #34d399;
  --svg-success-text: #a7f3d0;
  --svg-error-bg: rgba(248, 113, 113, 0.15);
  --svg-error-stroke: #f87171;
  --svg-error-text: #fca5a5;
  --svg-warning-bg: rgba(251, 191, 36, 0.15);
  --svg-warning-stroke: #fbbf24;
  --svg-warning-text: #fde68a;
  --svg-info-bg: rgba(129, 140, 248, 0.15);
  --svg-info-stroke: #818cf8;
  --svg-info-text: #c7d2fe;
  --svg-accent-bg: rgba(167, 139, 250, 0.15);
  --svg-accent-stroke: #a78bfa;
  --svg-accent-text: #ddd6fe;
}
html { font-size: 14.4px; }
a { text-decoration: none; }
button, input { border: none; outline: none; font-family: inherit; }

/* ========== Search Modal Active Theme Styles ========== */
#search-modal .search-header-container:has(#modal-search-input:focus) {
  border-bottom-color: var(--brand-primary) !important;
  background-color: rgba(233, 84, 32, 0.02) !important;
}
html.dark #search-modal .search-header-container:has(#modal-search-input:focus) {
  background-color: rgba(233, 84, 32, 0.04) !important;
}
#search-modal .search-header-container:has(#modal-search-input:focus) .material-symbols-outlined {
  color: var(--brand-primary) !important;
}
#search-modal .search-header-container:has(#modal-search-input:focus) button {
  border-color: rgba(233, 84, 32, 0.3) !important;
}

/* ========== Search Split-Pane Supporting Styles ========== */
#modal-search-results::-webkit-scrollbar { width: 4px; }
#modal-search-preview::-webkit-scrollbar { width: 4px; }

.search-result.bg-brand-50, 
html.dark .search-result.dark\:bg-brand-500\/10 {
  background-color: var(--brand-light) !important;
  border-color: var(--brand-primary) !important;
}

.search-result.bg-brand-50 .material-symbols-outlined, 
html.dark .search-result.dark\:bg-brand-500\/10 .material-symbols-outlined {
  color: var(--brand-primary) !important;
}


/* ========== Shared: Scrollbar ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }
html.dark ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); }
html.dark ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ========== Shared: Navigation ========== */
.glass-nav {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
}
html.dark .glass-nav {
  background-color: rgba(15, 17, 21, 0.8);
  border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-sections { display: flex; flex-direction: column; gap: 2px; }
.sidebar-section { margin-bottom: 2px; }
.sidebar-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 0 3px 10px;
}
.sidebar-subheader {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  padding: 10px 0 2px 10px;
  margin-top: 4px;
}
.sidebar-link {
  display: block;
  padding: 4px 8px 4px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all 0.15s;
  line-height: 1.4;
}
.sidebar-link:hover {
  color: var(--brand-primary);
  background: var(--brand-lighter);
}
.active-doc-link {
  color: var(--brand-primary) !important;
  border-left-color: var(--brand-primary) !important;
  background: var(--brand-light) !important;
  font-weight: 500;
}
.outline-link {
  display: block;
  padding: 4px 0 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.outline-link:hover { color: var(--brand-primary); }
.outline-link.active-outline { color: var(--brand-primary); border-left-color: var(--brand-primary); }

/* ========== Shared: Brand Colors ========== */
.text-brand-500, .dark\:text-brand-500, .hover\:text-brand-500:hover, .group-hover\:text-brand-500 {
  color: var(--brand-primary) !important;
}
.bg-brand-500, .hover\:bg-brand-600:hover {
  background-color: var(--brand-primary) !important;
  color: #FFFFFF !important;
}
.hover\:border-brand-500:hover {
  border-color: var(--brand-primary) !important;
}

/* ========== Shared: Dark Mode Theme ========== */
html.dark body {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark p, html.dark label, html.dark input {
  color: var(--text-primary);
}
html.dark .text-slate-900, html.dark .text-slate-800, html.dark .dark\:text-white {
  color: var(--text-primary) !important;
}
html.dark .text-slate-600, html.dark .text-slate-500, html.dark .text-slate-400, html.dark .dark\:text-slate-400 {
  color: var(--text-secondary) !important;
}
html.dark .border, html.dark .border-b, html.dark .border-t, html.dark .border-r, html.dark .border-l,
html.dark .border-slate-200, html.dark .dark\:border-slate-800 {
  border-color: var(--border-default) !important;
}
html.dark .bg-white, html.dark .bg-slate-50, html.dark .dark\:bg-slate-900, html.dark .dark\:bg-slate-800\/40, html.dark .bg-slate-50\/50, html.dark .bg-slate-100 {
  background-color: var(--bg-primary) !important;
}

/* ========== Shared: Animation Physics ========== */
.ease-physics { transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1); }
.ease-spring { transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ========== Shared: Fullscreen Canvas ========== */
#fullscreen-canvas:fullscreen,
#fullscreen-canvas:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  aspect-ratio: unset !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
}

html.dark #fullscreen-canvas:fullscreen,
html.dark #fullscreen-canvas:-webkit-full-screen {
  background-color: var(--bg-secondary);
}

.fullscreen-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#fullscreen-canvas:fullscreen .fullscreen-stage,
#fullscreen-canvas:-webkit-full-screen .fullscreen-stage {
  position: relative;
  width: 100vw;
  height: 56.25vw;
  max-height: 100vh;
  max-width: 177.78vh;
  flex-shrink: 0;
}

/* ========== Animation Pages: Typing Effect ========== */
.typing-cursor::after { content: '|'; animation: blink 1s step-end infinite; }
@keyframes blink { from, to { color: transparent } 50% { color: #E95420 } }

/* ========== Animation Pages: Accent Nodes ========== */
.accent-node { background-color: var(--bg-primary); border: 1.5px solid var(--brand-primary); color: var(--brand-primary); }
.accent-node-fill { background-color: var(--brand-light); border: 1.5px solid var(--brand-primary); color: var(--brand-primary); }
html.dark .accent-node { border-color: var(--brand-primary); }
html.dark .accent-node-fill { background-color: var(--brand-light); border-color: var(--brand-primary); }

/* ========== Index: Hero Rings & Animations ========== */
.hero-ring {
  position: absolute;
  border-radius: 9999px;
  border: 1px solid rgba(233, 84, 32, 0.06);
  pointer-events: none;
}
html.dark .hero-ring {
  border-color: rgba(233, 84, 32, 0.12);
}

@keyframes logo-hero-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(233, 84, 32, 0.25)) saturate(1);
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(233, 84, 32, 0.6)) saturate(1.15);
    transform: scale(1.03);
  }
}
.logo-hero-pulse {
  animation: logo-hero-pulse 4s ease-in-out infinite;
}

.sparkle-gradient {
  background: linear-gradient(135deg, #FF8A65 0%, #E95420 50%, #BF360C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

@keyframes twinkle-sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(233, 84, 32, 0.35));
  }
  33% {
    transform: scale(1.1) rotate(12deg);
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(233, 84, 32, 0.75));
  }
  66% {
    transform: scale(0.93) rotate(-8deg);
    opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(233, 84, 32, 0.2));
  }
}

.sparkle-hero-animate {
  animation: twinkle-sparkle 4.5s ease-in-out infinite;
  transform-origin: center;
  display: inline-block;
}

.sparkle-hero-container {
  width: 12rem;
  height: 12rem;
}

.sparkle-hero-icon {
  font-size: 10rem !important;
}

@media (min-width: 768px) {
  .sparkle-hero-container {
    width: 16rem;
    height: 16rem;
  }
  .sparkle-hero-icon {
    font-size: 14rem !important;
  }
}



/* ========== Index: Grid Background ========== */
.grid-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}
html.dark .grid-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.02) 1px, transparent 0) !important;
}

/* ========== Player Pages: Canvas Base ========== */
#fullscreen-canvas {
  background-color: var(--bg-primary);
  border-color: rgba(0, 0, 0, 0.08);
}
html.dark #fullscreen-canvas {
  background-color: var(--bg-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ========== Player Pages: Scene Marker (shared) ========== */
.scene-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 9999px;
  background-color: rgba(156,163,175,0.5);
  z-index: 10;
  pointer-events: none;
}
html.dark .scene-marker {
  background-color: rgba(255,255,255,0.3);
}

/* ========== Player: Compiler Page ========== */
#ast-svg text { fill: var(--text-primary); }
#ast-svg line { stroke: var(--brand-primary); }
html.dark #ast-svg text { fill: var(--text-primary); }
.pipeline-node { transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); }

.runner-glow { animation: runnerPulse 1.5s ease-in-out infinite; }
@keyframes runnerPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}

.flow-arrow { animation: arrowDash 0.6s linear forwards; stroke-dasharray: 8; }
@keyframes arrowDash { to { stroke-dashoffset: -16; } }

.node-active .accent-node {
  background-color: var(--brand-light);
  box-shadow: 0 0 10px rgba(233, 84, 32, 0.25);
}
html.dark .node-active .accent-node {
  background-color: var(--brand-light);
  box-shadow: 0 0 12px rgba(233, 84, 32, 0.35);
}
html.dark .node-active span:not(.material-symbols-outlined) {
  color: var(--brand-primary) !important;
}

/* ========== Player: Interpreter Page ========== */
.flow-pulse { animation: flowPulse 0.5s ease-in-out 2; }
@keyframes flowPulse {
  0% { opacity: 0.3; transform: translateX(-2px); }
  50% { opacity: 1; transform: translateX(3px); }
  100% { opacity: 0.7; transform: translateX(0); }
}

/* ========== Player: GIL Page ========== */
:root {
  --gil-page-bg: #f8fafc;
  --gil-card-bg: #ffffff;
  --gil-text: #1e293b;
  --gil-muted: #64748b;
  --gil-border: #e2e8f0;
}
html.dark {
  --gil-page-bg: #0F1115;
  --gil-card-bg: #1A1D25;
  --gil-text: #E8E8E8;
  --gil-muted: #A0A0A0;
  --gil-border: #374151;
}

.gil-text { color: var(--gil-text); }
.gil-muted { color: var(--gil-muted); }
.gil-page-bg { background-color: var(--gil-page-bg); }
.gil-card-bg { background-color: var(--gil-card-bg); }
.gil-border { border-color: var(--gil-border); }
.gil-glow { box-shadow: 0 0 20px rgba(233, 84, 32, 0.3); }

/* ========== Interactive Pages: Text Colors ========== */
.text-ink { color: var(--text-primary); }
.text-inkMuted { color: var(--text-muted); }
.text-inkLight { color: var(--text-secondary); }

/* ========== Scene Container ========== */
.scene-container {
  perspective: 1000px;
}

/* ========== Timeline Layout ========== */
.timeline-track {
  display: flex;
  flex-direction: column;
}

.timeline-entry {
  display: flex;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  animation: timelineEntryUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: 3.25rem;
  top: 2.25rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--brand-primary), transparent);
}

.timeline-entry:last-child::before { display: none; }

@keyframes timelineEntryUp {
  to { opacity: 1; transform: translateY(0); }
}

.timeline-dot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 3.25rem;
  padding-top: 0.25rem;
}

.timeline-dot-year {
  font-size: 12px;
  font-weight: 700;
  font-family: 'Ubuntu Mono', monospace;
  color: var(--brand-primary);
  white-space: nowrap;
  background: var(--brand-light);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: -0.02em;
}

.timeline-dot-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 2px solid var(--brand-light);
  transition: all 0.3s;
}

.timeline-entry:hover .timeline-dot-ring {
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(233, 84, 32, 0.35);
}

.timeline-body {
  flex: 1;
  padding-top: 0;
}

.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color 0.2s;
}

.timeline-entry:hover .timeline-title { color: var(--brand-primary); }

.timeline-tag {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.timeline-event {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 2px;
}

/* ========== README Page ========== */
.readme-content {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.readme-content h1 { font-size: 1.75rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: var(--text-primary); }
.readme-content h1:first-child { margin-top: 0; }
.readme-content h2 { font-size: 1.35rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: var(--text-primary); border-bottom: 1px solid var(--border-default); padding-bottom: 0.3rem; }
.readme-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1rem 0 0.4rem; color: var(--text-primary); }
.readme-content p { margin: 0.5rem 0; }
.readme-content ul, .readme-content ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.readme-content li { margin: 0.25rem 0; }
.readme-content code {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 13px;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--brand-primary);
}
.readme-content pre {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 1rem !important;
  overflow-x: auto;
  margin: 0.75rem 0;
}
.readme-content pre code {
  background: none !important;
  padding: 0 !important;
  color: inherit !important;
}
#docs-dynamic-content a { color: var(--brand-primary); font-weight: 600; }
#docs-dynamic-content a:hover { color: var(--brand-hover); }
.readme-content a { color: var(--brand-primary); }
.readme-content a:hover { color: var(--brand-hover); }
.readme-content blockquote {
  border-left: 3px solid var(--brand-primary);
  margin: 0.75rem 0;
  padding: 0.5rem 1rem;
  background: var(--brand-lighter);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}
.readme-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 14px;
}
.readme-content th, .readme-content td {
  border: 1px solid var(--border-default);
  padding: 8px 12px;
  text-align: left;
}
.readme-content th { font-weight: 600; background: var(--bg-secondary); }
.readme-content hr { border: none; border-top: 1px solid var(--border-default); margin: 1.5rem 0; }
.readme-content img { max-width: 100%; border-radius: 8px; }

/* ========== Syntax Highlighting (Prism overrides) ========== */
.token.keyword { color: #E95420 !important; }
.token.string { color: #57D38C !important; }
.token.number { color: #FFB454 !important; }
.token.comment { color: #6B7280 !important; font-style: italic !important; }
.token.function { color: #5DA9FF !important; }
.token.class-name { color: #FFB454 !important; }
.token.builtin { color: #B38CFF !important; }
.token.operator { color: #374151 !important; }
.token.punctuation { color: #6B7280 !important; }
.token.boolean { color: #E95420 !important; }
.token.none { color: #E95420 !important; }
pre[class*="language-"] {
  background: #f8fafc !important;
  color: #374151 !important;
  font-family: 'Ubuntu Mono', monospace !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  padding: 1.25rem !important;
  margin: 1.5rem 0 !important;
  box-shadow: none !important;
  overflow-x: auto;
}
html.dark pre[class*="language-"] {
  background: #0E1115 !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.05);
}
#section-syntax pre[class*="language-"] {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
code[class*="language-"] { text-shadow: none !important; color: inherit !important; font-family: 'Ubuntu Mono', monospace !important; font-size: inherit !important; }
:not(pre) > code[class*="language-"] { background: transparent !important; padding: 0 !important; }

.token {
  background: transparent !important;
}

html.dark .token.operator { color: #E8E8E8 !important; }
html.dark .token.punctuation { color: #A0A0A0 !important; }
html.dark .token.comment { color: #6B7280 !important; }

/* ========== Docs Content Animations ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.docs-section {
  opacity: 0;
}
.docs-section.anim-ready {
  animation: fadeUp 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#section-syntax {
  opacity: 0;
  transform: translateY(12px);
}
#section-syntax.anim-ready {
  animation: fadeUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.15s forwards;
}

/* Deep Dive box — left accent bar */
#section-dive {
  position: relative;
  overflow: hidden;
  opacity: 0;
}
#section-dive.anim-ready {
  animation: fadeUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}
#section-dive::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: #E95420;
  border-radius: 0 3px 3px 0;
  transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
}
#section-dive.anim-ready::before {
  height: 100%;
}

/* Deep Dive paragraph transition rules removed to prevent unwanted hide transitions */

/* ========== Search highlight ========== */
mark { background: transparent; color: inherit; }
.search-result mark { background-color: rgba(233, 84, 32, 0.15); }

/* ========== ANN Diagram Animations ========== */
@keyframes annPulse { 0%,100% { opacity:.6 } 50% { opacity:1 } }
@keyframes annFlow { to { stroke-dashoffset:-10 } }

.ann-diagram svg { display:block }
.ann-diagram .ann-node-pulse { animation:annPulse 2s ease-in-out infinite }
.ann-diagram .ann-edge-flow { stroke-dasharray:6 4; animation:annFlow .8s linear infinite }
.ann-diagram .ann-node { fill:var(--bg-secondary); stroke:var(--brand-primary); stroke-width:2; rx:8 }
.ann-diagram .ann-conn { stroke:var(--text-muted); stroke-width:1.5; fill:none }
.ann-diagram .ann-label { font:11px system-ui,sans-serif; fill:var(--text-secondary) }
.ann-diagram .ann-title { font:13px system-ui,sans-serif; font-weight:600; fill:var(--text-primary) }

/* ========== Tag Badges ========== */
/* ponytail: colors applied via JS (colorizeTags) using data-tag attribute + hash palette */
.tag-badge {
  background: var(--tag-bg, #f1f5f9) !important;
  color: var(--tag-color, #64748b) !important;
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark .tag-badge {
  background: var(--tag-bg, rgba(148,163,184,0.1)) !important;
  color: var(--tag-color, #94a3b8) !important;
  border-color: rgba(255, 255, 255, 0.02);
}
.tag-badge:hover {
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
html.dark .tag-badge:hover {
  filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========== References & Further Reading ========== */
.references-section {
  margin-top: 12px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
}
.references-section h3 {
  font-size: 1rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary) !important;
}
.references-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.references-section ul a {
  color: var(--brand-primary);
  font-size: 13px;
  text-decoration: none;
}
.references-section ul a:hover {
  text-decoration: underline;
}

/* ========== Linux sidebar path: orange hierarchy ========== */
.linux-section > .sidebar-label {
  color: var(--brand-primary);
}
.linux-section > .sidebar-subheader {
  color: var(--brand-primary);
}
.linux-section > .sidebar-link {
  color: var(--text-secondary);
  border-left-color: transparent;
}

/* ========== Sidebar section active state ========== */
.section-active > .sidebar-label {
  color: var(--brand-primary) !important;
}
.section-active {
  position: relative;
}
.section-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-primary);
  border-radius: 0 3px 3px 0;
  opacity: 0.5;
}

/* ========== Study tracks diagram animation ========== */
@keyframes trackFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
#section-dive .not-prose.grid > div {
  animation: trackFadeIn 0.5s ease-out both;
}
#section-dive .not-prose.grid > div:nth-child(1) { animation-delay: 0s; }
#section-dive .not-prose.grid > div:nth-child(2) { animation-delay: 0.15s; }
#section-dive .not-prose.grid > div:nth-child(3) { animation-delay: 0.3s; }

/* ========== Utility buttons: blend into background ========== */
.theme-toggle-btn, .open-share-btn, #sidebar-toggle {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
}


/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== Light Mode Color Overrides for Hardcoded HTML Content ========== */
html:not(.dark) #docs-dynamic-content .text-slate-300,
html:not(.dark) .readme-content .text-slate-300,
html:not(.dark) #docs-dynamic-content .text-slate-400,
html:not(.dark) .readme-content .text-slate-400 {
  color: var(--text-primary) !important;
}

html:not(.dark) #docs-dynamic-content .text-sky-300,
html:not(.dark) .readme-content .text-sky-300 {
  color: var(--brand-primary) !important;
  font-weight: 600 !important;
}

html:not(.dark) #docs-dynamic-content .bg-slate-800\/60,
html:not(.dark) #docs-dynamic-content .bg-slate-800\/80,
html:not(.dark) #docs-dynamic-content .bg-slate-800,
html:not(.dark) .readme-content .bg-slate-800\/60,
html:not(.dark) .readme-content .bg-slate-800\/80,
html:not(.dark) .readme-content .bg-slate-800 {
  background-color: var(--bg-secondary) !important;
}

html:not(.dark) #docs-dynamic-content .border-slate-700,
html:not(.dark) #docs-dynamic-content .divide-slate-700\/50,
html:not(.dark) .readme-content .border-slate-700,
html:not(.dark) .readme-content .divide-slate-700\/50 {
  border-color: var(--border-default) !important;
}

html:not(.dark) #docs-dynamic-content tr.hover\:bg-slate-800\/40:hover,
html:not(.dark) .readme-content tr.hover\:bg-slate-800\/40:hover {
  background-color: rgba(0, 0, 0, 0.02) !important;
}

html:not(.dark) #docs-dynamic-content td,
html:not(.dark) .readme-content td {
  color: var(--text-primary) !important;
}

html:not(.dark) #docs-dynamic-content th,
html:not(.dark) .readme-content th {
  color: var(--text-primary) !important;
  background-color: var(--bg-secondary) !important;
}

html:not(.dark) #docs-dynamic-content .bg-slate-900\/60,
html:not(.dark) .readme-content .bg-slate-900\/60 {
  background-color: var(--bg-secondary) !important;
}

/* ========== Table Styling and Alignment Fixes ========== */
#docs-dynamic-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

#docs-dynamic-content th,
#docs-dynamic-content td {
  padding: 8px 12px !important;
  text-align: left !important;
  border: 1px solid var(--border-default) !important;
}

#docs-dynamic-content thead tr {
  background-color: var(--bg-secondary) !important;
}

#docs-dynamic-content tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.01) !important;
}
html.dark #docs-dynamic-content tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

/* ========== Deep Dive Container Overrides ========== */
.deep-dive-box {
  background-color: var(--brand-light) !important;
  border: 1px solid rgba(233, 84, 32, 0.2) !important;
  color: var(--text-secondary) !important;
}
html.dark .deep-dive-box {
  border-color: rgba(233, 84, 32, 0.35) !important;
}
.deep-dive-box h4 {
  color: var(--text-primary) !important;
}

/* ========== Dark Mode Button Contrast Fix ========== */
html.dark .bg-brand-500,
html.dark .hover\:bg-brand-600:hover {
  color: #0E1115 !important;
}

/* ========== Polyfills for missing Tailwind brand opacity classes ========== */
html.dark .dark\:bg-brand-500\/10 {
  background-color: rgba(233, 84, 32, 0.12) !important;
}
html.dark .dark\:bg-brand-500\/20 {
  background-color: rgba(233, 84, 32, 0.2) !important;
}
html.dark .dark\:bg-brand-500\/30 {
  background-color: rgba(233, 84, 32, 0.3) !important;
}
html.dark .dark\:border-brand-500\/10 {
  border-color: rgba(233, 84, 32, 0.1) !important;
}
html.dark .dark\:border-brand-500\/20 {
  border-color: rgba(233, 84, 32, 0.2) !important;
}
html.dark .dark\:border-brand-500\/30 {
  border-color: rgba(233, 84, 32, 0.3) !important;
}

/* ========== Global Smooth Theme Transitions ========== */
body, header, aside, nav, main, article, section, footer, .glass-nav, .sidebar-link, .outline-link, .tag-badge, .search-result, table, th, td, pre, code, .deep-dive-box,
h1, h2, h3, h4, h5, h6, p, li, a, span, label, input, textarea, select, button,
.learning-svg, .learning-diagram, .visual-hint-wrapper,
.meta-item, .difficulty-badge, .why-box, .analogy-box,
.icon-heading, .lcm-section, .timeline-entry, .timeline-dot, .timeline-body,
.prereq-chip, .mistake-item, .lab-box, .ts-item, .quiz-item,
.sidebar-section, .sidebar-subheader, .sidebar-label,
.ann-diagram, .ann-node, .ann-conn, .ann-label, .ann-desc {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

html {
  transition: color-scheme 0.25s ease;
}

/* ========== Sidebar Progress & Bookmarks Styling ========== */
#sidebar-progress-container {
  background-color: var(--bg-secondary);
}
#sidebar-bookmarks-list .sidebar-link {
  font-weight: 500;
}
.sidebar-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.completion-indicator {
  font-size: 13px !important;
  color: #10b981;
  flex-shrink: 0;
  margin-left: auto;
  animation: scaleIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ========== Collapsible Summary Accordion (details) ========== */
details.group summary::-webkit-details-marker {
  display: none !important;
}
details.group summary {
  list-style: none !important;
  outline: none;
}
details.group[open] summary {
  background-color: var(--brand-light);
}


/* ========== Related Topic Cards Custom Styles ========== */
.related-topic-card {
  border-left-width: 4px !important;
  border-left-color: rgba(233, 84, 32, 0.6) !important;
  transition: all 0.2s ease-in-out;
}
html.dark .related-topic-card {
  border-left-color: rgba(245, 163, 137, 0.6) !important;
}
.related-topic-card:hover {
  border-color: var(--brand-primary) !important;
  border-left-color: var(--brand-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}
html.dark .related-topic-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

/* ========== SVG Text Rendering and Overflow Fixes ========== */
/* Enforce Ubuntu or Ubuntu Mono on all SVG texts */
svg text,
svg tspan {
  font-family: 'Ubuntu', sans-serif !important;
}

svg text[class*="-lbl"]:not([class*="-title"]),
svg text[font-family="monospace"],
svg text[class*="mono"],
svg text.monospace,
svg text.l,
svg text.co-lbl,
svg text.ll-lbl,
svg text.sq-lbl,
svg text.tr-lbl,
svg text.hp-lbl,
svg text.sr-lbl,
svg text.ha-lbl,
svg text.mu-lbl,
svg text.db-lbl,
svg text.sys-lbl,
svg text.sec-lbl,
svg text.net-lbl,
svg text.oop-lbl,
svg text.prod-lbl,
svg text.prg-lbl,
svg text.pattern-lbl,
svg text.os-lbl,
svg text.faang-lbl,
svg text.mc-lbl,
svg text.td-lbl,
svg text.fg-lbl {
  font-family: 'Ubuntu Mono', monospace !important;
  letter-spacing: -0.04em !important;
  text-rendering: optimizeLegibility !important;
}

/* Ensure clean sizes for monospace data labels inside SVG boxes */
svg text.ll-lbl-val, 
svg text.sq-lbl-val, 
svg text.tr-lbl-val,
svg text.hp-lbl-val {
  font-size: 10px !important;
}

/* Let titles and non-monospace elements render in their native styles and sizes */
svg text.sq-lbl-title,
svg text.co-lbl-title,
svg text.tr-lbl-title,
svg text.mc-lbl-title,
svg text.ha-lbl-title,
svg text.mu-lbl-title,
svg text.db-lbl-title,
svg text.sys-lbl-title,
svg text.sec-lbl-title,
svg text.net-lbl-title,
svg text.oop-lbl-title,
svg text.prod-lbl-title,
svg text.prg-lbl-title,
svg text.pattern-lbl-title,
svg text.os-lbl-title,
svg text.faang-lbl-title {
  font-family: 'Ubuntu', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: -0.01em !important;
}

/* ========== Learning SVG diagrams ========== */
.learning-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}
.visual-hint-wrapper .learning-svg {
  margin: 0;
}
.learning-diagram {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
  border-radius: 8px;
  margin: 1.5rem auto;
  background: #0f172a;
  border: 1px solid rgba(233, 84, 32, 0.15);
}
html.dark .learning-diagram {
  border-color: rgba(233, 84, 32, 0.25);
}

/* ====================================================
   Phase A.5: Design System — Reusable Content Components
   ==================================================== */

/* ── Icon Headings ── */
.icon-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.icon-heading .material-symbols-outlined {
  font-size: 18px;
}
.icon-heading-objectives { color: #6366f1; }
.icon-heading-objectives .material-symbols-outlined { color: #6366f1; }
.icon-heading-why { color: var(--text-primary); }
.icon-heading-analogy { color: #f59e0b; }
.icon-heading-analogy .material-symbols-outlined { color: #f59e0b; }
.icon-heading-mistakes { color: #ef4444; }
.icon-heading-mistakes .material-symbols-outlined { color: #ef4444; }
.icon-heading-lab { color: #10b981; }
.icon-heading-lab .material-symbols-outlined { color: #10b981; }
.icon-heading-reference { color: #6366f1; }
.icon-heading-reference .material-symbols-outlined { color: #6366f1; }
.icon-heading-troubleshooting { color: #f97316; }
.icon-heading-troubleshooting .material-symbols-outlined { color: #f97316; }
.icon-heading-quiz { color: #a855f7; }
.icon-heading-quiz .material-symbols-outlined { color: #a855f7; }
.icon-heading-interview { color: #ec4899; }
.icon-heading-interview .material-symbols-outlined { color: #ec4899; }
.icon-heading-production { color: #0ea5e9; }
.icon-heading-production .material-symbols-outlined { color: #0ea5e9; }
.icon-heading-practice { color: #10b981; }
.icon-heading-practice .material-symbols-outlined { color: #10b981; }
.icon-heading-enterprise { color: #8b5cf6; }
.icon-heading-enterprise .material-symbols-outlined { color: #8b5cf6; }

/* ── Learning Objectives Checklist ── */
.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.objective-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.objective-item .material-symbols-outlined {
  font-size: 16px;
  color: #6366f1;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Why This Matters ── */
.why-box {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 8px 0;
}

/* ── Analogy Callout ── */
.analogy-box {
  background: rgba(245, 158, 11, 0.04);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 8px 0;
  break-inside: avoid;
}
.analogy-box .analogy-title {
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  margin-bottom: 4px;
}
.analogy-box .analogy-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Common Mistakes ── */
.mistakes-box {
  background: rgba(239, 68, 68, 0.03);
  border-left: 3px solid #ef4444;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 8px 0;
}
.mistake-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-default);
}
.mistake-item:last-child { border-bottom: none; }
.mistake-text {
  font-size: 13px;
  font-weight: 500;
  color: #ef4444;
}
.mistake-solution {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Practice Lab ── */
.lab-box {
  background: rgba(16, 185, 129, 0.04);
  border-left: 3px solid #10b981;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 8px 0;
}
.lab-title {
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
  margin-bottom: 6px;
}
.lab-task {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  white-space: pre-wrap;
  font-family: 'Ubuntu Mono', monospace;
}
.lab-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.lab-expected {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Quick Reference Table ── */
.quickref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 8px 0;
}
.quickref-table th {
  text-align: left;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
}
.quickref-table td {
  padding: 6px 10px;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  font-family: 'Ubuntu Mono', monospace;
  font-size: 11px;
}
.quickref-table tr:hover td {
  background: var(--brand-lighter);
}

/* ── Troubleshooting ── */
.troubleshooting-box {
  background: rgba(249, 115, 22, 0.03);
  border-left: 3px solid #f97316;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 8px 0;
}
.ts-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-default);
}
.ts-item:last-child { border-bottom: none; }
.ts-symptom {
  font-size: 13px;
  font-weight: 500;
  color: #f97316;
}
.ts-cause {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0;
}
.ts-solution {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Quiz ── */
.quiz-section {
  margin: 8px 0;
}
.quiz-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.quiz-question {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.quiz-option:hover {
  background: var(--brand-lighter);
}
.quiz-option .radio-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  transition: all 0.15s;
}
.quiz-option:hover .radio-circle {
  border-color: var(--brand-primary);
}
.quiz-answer {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.quiz-answer.revealed {
  display: block;
}
.quiz-answer .answer-label {
  font-weight: 600;
  color: #10b981;
}
.quiz-show-btn {
  margin-top: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-primary);
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.quiz-show-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand-primary);
}

/* ── Difficulty Badges ── */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.difficulty-beginner {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.difficulty-intermediate {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.difficulty-advanced {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ── Prerequisite Chips ── */
.prereq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.prereq-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  transition: all 0.15s;
  text-decoration: none;
}
.prereq-chip:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: var(--brand-light);
}
.prereq-chip .material-symbols-outlined {
  font-size: 12px;
}

/* ── Code Block Enhancements ── */
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 12px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-size: 10px;
  font-family: 'Ubuntu Mono', monospace;
}
.code-header .lang-label {
  font-weight: 600;
  color: var(--brand-primary);
}
.code-header .filename-label {
  color: #94a3b8;
}

/* Output box */
.output-box {
  background: #0f172a;
  color: #a8b2c1;
  border-radius: 0 0 8px 8px;
  padding: 12px 16px;
  font-family: 'Ubuntu Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Interview Tips ── */
.interview-box {
  background: rgba(236, 72, 153, 0.03);
  border-left: 3px solid #ec4899;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 8px 0;
}
.interview-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.interview-box li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}
.interview-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ec4899;
}

/* ── Production Tips ── */
.production-box {
  background: rgba(14, 165, 233, 0.03);
  border-left: 3px solid #0ea5e9;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 8px 0;
}
.production-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.production-box li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}
.production-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0ea5e9;
}

/* ── Enterprise Perspective ── */
.enterprise-box {
  background: rgba(139, 92, 246, 0.03);
  border-left: 3px solid #8b5cf6;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Best Practices ── */
.practice-box {
  background: rgba(16, 185, 129, 0.03);
  border-left: 3px solid #10b981;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 8px 0;
}
.practice-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}
.practice-item .material-symbols-outlined {
  font-size: 16px;
  color: #10b981;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Metadata Row ── */
.metadata-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.meta-item .material-symbols-outlined {
  font-size: 15px;
}

/* ── Section divider ── */
.lcm-section {
  scroll-margin-top: 100px;
}

