/* codejs-chrome-body.css — nav strip CSS, generated by scripts/generate-mu-plugin.js (v1.1.0). Do not edit by hand. */
/* Hide Astra's stock header so our glass strip is the only top chrome,
   AND zero out every wrapper Astra reserves space for above the content. */
header.site-header,
#masthead.site-header,
#masthead,
.ast-above-header-wrap,
.ast-main-header-wrap,
.ast-below-header-wrap { display: none !important; }

/* Zero CSS-variable-based header height reservations */
:root, body {
  --ast-header-height: 0px !important;
  --ast-above-header-height: 0px !important;
  --ast-below-header-height: 0px !important;
  --astra-content-margin-top: 0px !important;
}

/* Kill any inherited padding/margin from Astra's main wrappers */
html, body, #page, .site, #main, #primary,
.site-content, .ast-container, .ast-container-fluid,
.ast-archive-description,
.ast-page-header, .entry-header,
article.type-post, article.type-page,
.post, .page, .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.home main#main article,
body.page main#main article,
body.single-post main#main article {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.home #content,
body.single-post #content,
body.cj-articles-page #content,
body.page #content { padding-top: 0 !important; margin-top: 0 !important; }
body { padding-top: 0 !important; margin-top: 0 !important; }

/* Astra adds a transparent top-bar reserve on some themes — kill it */
.ast-above-header,
.ast-primary-header-bar,
.ast-below-header { height: 0 !important; min-height: 0 !important; }

.cj-top-strip {
  position: sticky; top: 0; z-index: 100;
  padding: 11px 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 28px -10px rgba(15, 23, 42, 0.10), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  font-family: var(--cj-font-sans);
}
.cj-top-strip > .cj-row {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 18px;
}
.cj-brand {
  display: inline-flex; align-items: center;
  font-size: 1.32em; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #ec4899 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.22));
  padding: 2px 0;
  flex-shrink: 0;
}
.cj-brand .cj-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #ec4899 100%);
  margin-right: 9px; vertical-align: middle;
  position: relative;
  /* Static glow stays — only the pulsing halo animates. */
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.55);
}
/* Pulse halo: a sibling layer that scales — transform is GPU-composited
   so it never touches the main thread or layout. The previous version
   animated box-shadow, which is paint-only and CLS-flagged by Lighthouse
   as a non-composited animation. */
.cj-brand .cj-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.18);
  animation: cj-pulse 2.4s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
@keyframes cj-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .cj-brand .cj-dot::after { animation: none; }
}

.cj-nav {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; flex-wrap: wrap;
}
.cj-nav a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 999px;
  text-decoration: none; font-size: 0.85em; font-weight: 600;
  color: var(--cj-muted); background: transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.cj-nav a.is-text:hover { background: rgba(15, 23, 42, 0.05); color: var(--cj-text); }

/* Tinted chip pills — soft filled background per category */
.cj-nav a.is-chip { font-weight: 700; font-size: 0.84em; padding: 7px 12px; gap: 6px; }
.cj-nav .cj-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.cj-nav a.cj-ai      { background: #f3e8ff; color: #7c3aed; }
.cj-nav a.cj-js      { background: #fef3c7; color: #92400e; }
.cj-nav a.cj-angular { background: #fee2e2; color: #b91c1c; }
.cj-nav a.cj-ts      { background: #dbeafe; color: #1e40af; }
.cj-nav a.cj-rxjs    { background: #fce7f3; color: #9d174d; }
.cj-nav a.is-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.12);
}
.cj-nav a.cj-ai:hover      { background: #e9d5ff; }
.cj-nav a.cj-js:hover      { background: #fde68a; }
.cj-nav a.cj-angular:hover { background: #fecaca; }
.cj-nav a.cj-ts:hover      { background: #bfdbfe; }
.cj-nav a.cj-rxjs:hover    { background: #fbcfe8; }

.cj-nav .cj-divider { width: 1px; height: 18px; background: rgba(15, 23, 42, 0.10); margin: 0 4px; }

@supports not (backdrop-filter: blur(20px)) {
  .cj-top-strip { background: rgba(255, 255, 255, 0.96); }
}

@media (max-width: 920px) {
  .cj-top-strip > .cj-row { gap: 12px; }
  .cj-nav { gap: 4px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .cj-nav::-webkit-scrollbar { display: none; }
  .cj-nav a { padding: 6px 11px; font-size: 0.8em; }
  .cj-brand { font-size: 1.15em; }
  .cj-nav .cj-divider { display: none; }
}
@media (max-width: 540px) {
  .cj-top-strip > .cj-row { padding: 0 14px; }
  .cj-nav a.is-text { display: none; }
}

/* === DARK-THEME ADAPTATION (applies on every Code-JS page) === */
/* At top of page: top strip merges with body gradient */
body.home .cj-top-strip,
body.single-post .cj-top-strip,
body.cj-articles-page .cj-top-strip,
body.cj-topics-hub .cj-top-strip,
body[class*="cj-topic-"] .cj-top-strip {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}
/* On scroll past hero: strip gets glass tint + bottom shadow */
body.home .cj-top-strip.is-scrolled,
body.single-post .cj-top-strip.is-scrolled,
body.cj-articles-page .cj-top-strip.is-scrolled,
body.cj-topics-hub .cj-top-strip.is-scrolled,
body[class*="cj-topic-"] .cj-top-strip.is-scrolled {
  background: rgba(15, 13, 38, 0.55) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.55) !important;
}
/* Top-strip nav text on dark canvas (all Code-JS pages) */
body.home .cj-nav a, body.single-post .cj-nav a, body.cj-articles-page .cj-nav a, body.cj-topics-hub .cj-nav a, body[class*="cj-topic-"] .cj-nav a { color: rgba(255, 255, 255, 0.7) !important; }
body.home .cj-nav a.is-text:hover, body.single-post .cj-nav a.is-text:hover, body.cj-articles-page .cj-nav a.is-text:hover, body.cj-topics-hub .cj-nav a.is-text:hover, body[class*="cj-topic-"] .cj-nav a.is-text:hover { background: rgba(255, 255, 255, 0.08) !important; color: #fff !important; }
body.home .cj-nav .cj-divider, body.single-post .cj-nav .cj-divider, body.cj-articles-page .cj-nav .cj-divider, body.cj-topics-hub .cj-nav .cj-divider, body[class*="cj-topic-"] .cj-nav .cj-divider { background: rgba(255, 255, 255, 0.12) !important; }

/* Tinted category chips — translucent dark-friendly variants on every Code-JS page */
body.home .cj-nav a.cj-ai, body.single-post .cj-nav a.cj-ai, body.cj-articles-page .cj-nav a.cj-ai, body.cj-topics-hub .cj-nav a.cj-ai, body[class*="cj-topic-"] .cj-nav a.cj-ai { background: rgba(168, 85, 247, 0.22) !important; color: #e9d5ff !important; }
body.home .cj-nav a.cj-js, body.single-post .cj-nav a.cj-js, body.cj-articles-page .cj-nav a.cj-js, body.cj-topics-hub .cj-nav a.cj-js, body[class*="cj-topic-"] .cj-nav a.cj-js { background: rgba(234, 179, 8, 0.22) !important; color: #fef08a !important; }
body.home .cj-nav a.cj-angular, body.single-post .cj-nav a.cj-angular, body.cj-articles-page .cj-nav a.cj-angular, body.cj-topics-hub .cj-nav a.cj-angular, body[class*="cj-topic-"] .cj-nav a.cj-angular { background: rgba(221, 0, 49, 0.22) !important; color: #fecaca !important; }
body.home .cj-nav a.cj-ts, body.single-post .cj-nav a.cj-ts, body.cj-articles-page .cj-nav a.cj-ts, body.cj-topics-hub .cj-nav a.cj-ts, body[class*="cj-topic-"] .cj-nav a.cj-ts { background: rgba(49, 120, 198, 0.25) !important; color: #bfdbfe !important; }
body.home .cj-nav a.cj-rxjs, body.single-post .cj-nav a.cj-rxjs, body.cj-articles-page .cj-nav a.cj-rxjs, body.cj-topics-hub .cj-nav a.cj-rxjs, body[class*="cj-topic-"] .cj-nav a.cj-rxjs { background: rgba(183, 23, 140, 0.22) !important; color: #fbcfe8 !important; }
