/* === lil.business Blog — blog.css === */
/* Design system: matches lil.business brand exactly */

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Brand colors — identical to lil.business */
  --black:       #0a0a0a;
  --dark:        #111111;
  --card:        #161616;
  --card-hover:  #1a1a1a;
  --border:      #222222;
  --border-soft: #1c1c1c;
  --text:        #ffffff;
  --text-muted:  #d4d4d4;
  --text-dim:    #a0a0a0;
  --cyan:        #00e5ff;
  --cyan-dim:    rgba(0,229,255,0.08);
  --cyan-glow:   rgba(0,229,255,0.15);
  --red:         #ff4444;
  --purple:      #a855f7;
  --green:       #22c55e;
  --orange:      #f97316;

  /* Typography */
  --font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --nav-h:  72px;
  --radius: 10px;
  --radius-sm: 6px;

  /* Transitions */
  --t-fast:  0.15s ease;
  --t-base:  0.25s ease;
  --t-slow:  0.4s ease;
}

/* Light theme override */
[data-theme="light"] {
  --black:       #ffffff;
  --dark:        #f8f8f8;
  --card:        #ffffff;
  --card-hover:  #fafafa;
  --border:      #e5e5e5;
  --border-soft: #eeeeee;
  --text:        #111111;
  --text-muted:  #555555;
  --text-dim:    #777777;
  --cyan:        #0077aa;
  --cyan-dim:    rgba(0,119,170,0.06);
  --cyan-glow:   rgba(0,119,170,0.12);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--t-slow), color var(--t-slow);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ============================================================
   Layout
   ============================================================ */
.container       { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-wide  { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.container-narrow{ max-width: 720px;  margin: 0 auto; padding: 0 2rem; }

/* ============================================================
   Skip Link (Accessibility)
   ============================================================ */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--cyan); color: var(--black);
  padding: .5rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; font-size: .875rem; z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  padding-top: 8px;
  background: transparent;
  transition: background var(--t-base), backdrop-filter var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--border);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(255,255,255,.92);
}

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.nav-logo {
  font-weight: 700; font-size: 1.125rem;
  color: var(--text); white-space: nowrap;
  display: flex; align-items: center; gap: .375rem;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: .85; text-decoration: none; }
.nav-logo .badge {
  font-family: var(--mono); font-size: .65rem;
  color: var(--cyan); background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,.2);
  padding: .15rem .4rem; border-radius: 4px;
  letter-spacing: .05em; text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: .25rem;
}
.nav-links a {
  color: var(--text-muted); font-size: .875rem; font-weight: 500;
  padding: .375rem .75rem; border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.nav-links a.active { color: var(--text); }

/* Categories dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  color: var(--text-muted); font-size: .875rem; font-weight: 500;
  padding: .375rem .75rem; border-radius: var(--radius-sm);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: .375rem;
  font-family: var(--font);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-dropdown-toggle:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-dropdown-toggle svg { width: 12px; height: 12px; transition: transform var(--t-fast); }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%);
  min-width: 200px;
  background: var(--dark); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .375rem;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .85rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.05); color: var(--text); text-decoration: none; }
.nav-dropdown-menu a .cat-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

/* Nav CTA */
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--cyan); color: var(--black) !important;
  font-size: .8rem !important; font-weight: 700 !important;
  padding: .45rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: opacity var(--t-fast), transform var(--t-fast) !important;
  white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { opacity: .9 !important; transform: translateY(-1px); text-decoration: none !important; }

/* Theme toggle */
.theme-toggle {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; flex-shrink: 0;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.theme-toggle:hover { border-color: var(--text-muted); color: var(--text); }

/* Mobile hamburger */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,10,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: .5rem;
  }
  .nav-mobile-open .nav-links a { padding: .875rem 1rem; border-radius: var(--radius-sm); }
  .nav-mobile-open .nav-dropdown-menu {
    position: static; opacity: 1; pointer-events: auto;
    transform: none; box-shadow: none;
    border: none; background: rgba(255,255,255,.03);
    margin-top: .25rem;
  }
  .nav-mobile-open .nav-cta {
    display: flex; margin: .5rem 1rem 1rem;
    justify-content: center; padding: .75rem !important;
  }
}

/* ============================================================
   Reading Progress Bar
   ============================================================ */
.reading-progress {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  height: 3px; background: transparent; z-index: 99;
  opacity: 0; transition: opacity var(--t-base);
}
.reading-progress-bar {
  height: 100%; width: 0%;
  background: var(--cyan);
  transition: width 0.1s linear;
}
body.is-post .reading-progress { opacity: 1; }

/* ============================================================
   Hero — Index
   ============================================================ */
.blog-hero {
  padding: calc(var(--nav-h) + 4rem) 1.5rem 3.5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,229,255,.05) 0%, transparent 65%);
  border-bottom: 1px solid var(--border-soft);
}
.blog-hero-eyebrow {
  font-family: var(--mono); font-size: .75rem;
  color: var(--cyan); text-transform: uppercase; letter-spacing: .2em;
  margin-bottom: 1.25rem;
}
.blog-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 1rem;
}
.blog-hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Search bar */
.search-wrap {
  max-width: 480px; margin: 0 auto;
  position: relative;
}
.search-wrap svg {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none;
  width: 16px; height: 16px;
}
.search-input {
  width: 100%; padding: .75rem 1rem .75rem 2.75rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text); font-size: .9rem;
  font-family: var(--font);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

/* ============================================================
   Category Filters
   ============================================================ */
.category-filters {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .5rem;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.filter-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); font-size: .8rem; font-weight: 500;
  padding: .4rem .9rem; border-radius: 999px;
  cursor: pointer; font-family: var(--font);
  display: flex; align-items: center; gap: .4rem;
  transition: all var(--t-fast);
}
.filter-btn .cat-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.filter-btn:hover { border-color: var(--text-muted); color: var(--text); }
.filter-btn.active {
  background: var(--cyan); border-color: var(--cyan);
  color: var(--black); font-weight: 600;
}

/* Category color system */
.cat-cybersecurity { --cat-color: #00e5ff; }
.cat-ai-savings    { --cat-color: #22c55e; }
.cat-ai-management { --cat-color: #a855f7; }
.cat-why-lilmonster, .cat-why-lilmonster-cybersecurity { --cat-color: #f97316; }
.cat-uncategorized { --cat-color: #b0b0b0; }

.cat-dot { background: var(--cat-color, #b0b0b0); }

/* ============================================================
   Post Grid
   ============================================================ */
.post-grid-section { padding: 3rem 0 5rem; }
.post-grid-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem; padding: 0 1.5rem;
}
.post-grid-header h2 {
  font-size: 1.1rem; font-weight: 600; color: var(--text-muted);
}
.post-count { font-size: .8rem; color: var(--text-dim); font-family: var(--mono); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  padding: 0 1.5rem;
}

/* No results */
.no-results {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-muted); font-size: 1rem;
  grid-column: 1 / -1;
}
.no-results strong { color: var(--text); }

/* ============================================================
   Post Card
   ============================================================ */
.post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: .875rem;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  cursor: pointer;
}
.post-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  opacity: 0; transition: opacity var(--t-base);
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,255,.2);
  box-shadow: 0 12px 36px rgba(0,0,0,.35), 0 0 0 1px rgba(0,229,255,.05);
  text-decoration: none;
}
.post-card:hover::before { opacity: 1; }
.post-card:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}

/* Card top row */
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
}
.card-category {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--cat-color, var(--cyan));
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.06);
  padding: .2rem .55rem; border-radius: 4px;
}
.card-reading-time {
  font-size: .75rem; color: var(--text-dim); white-space: nowrap;
}

/* Card title */
.card-title {
  font-size: 1.1rem; font-weight: 600; line-height: 1.35;
  color: var(--text);
  transition: color var(--t-fast);
}
.post-card:hover .card-title { color: #ffffff; }

/* Card excerpt */
.card-excerpt {
  font-size: .9rem; color: var(--text-muted);
  line-height: 1.6; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer */
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; border-top: 1px solid var(--border-soft);
  margin-top: auto;
}
.card-date { font-size: .78rem; color: var(--text-dim); }
.card-arrow {
  font-size: .75rem; color: var(--cyan);
  transition: transform var(--t-fast);
  display: flex; align-items: center; gap: .25rem;
}
.post-card:hover .card-arrow { transform: translateX(4px); }

/* ELI10 badge */
.card-eli10-badge {
  font-size: .68rem; font-weight: 600;
  background: rgba(168,85,247,.12); color: var(--purple);
  border: 1px solid rgba(168,85,247,.25);
  padding: .15rem .45rem; border-radius: 4px;
  font-family: var(--mono);
}

/* ============================================================
   Category Page Hero
   ============================================================ */
.cat-hero {
  padding: calc(var(--nav-h) + 3.5rem) 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.cat-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .15em; color: var(--cat-color, var(--cyan));
  margin-bottom: 1rem;
}
.cat-hero-badge .cat-dot { width: 8px; height: 8px; }
.cat-hero h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; margin-bottom: .75rem; }
.cat-hero p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* ============================================================
   Post Page Layout
   ============================================================ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr min(720px, 100%) 1fr;
  gap: 0;
  padding-top: calc(var(--nav-h) + 2.5rem);
}
.post-layout > * { grid-column: 2; }

/* Full-width slots */
.post-layout .post-hero  { grid-column: 1 / -1; }
.post-layout .post-footer { grid-column: 1 / -1; }

/* Post with sidebar */
.post-with-toc {
  display: grid;
  grid-template-columns: min(720px, 100%) 260px;
  gap: 4rem;
  max-width: 1060px; margin: 0 auto;
  padding: calc(var(--nav-h) + 2.5rem) 1.5rem 0;
  align-items: start;
}

/* ============================================================
   Breadcrumb Navigation
   ============================================================ */
.breadcrumb {
  padding: calc(var(--nav-h) + .75rem) 1.5rem .75rem;
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  font-size: .8rem;
  font-family: var(--mono);
  color: var(--text-muted);
}
.breadcrumb-item {
  display: flex;
  align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin: 0 .5rem;
  color: var(--border-soft);
  font-weight: 400;
}
.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.breadcrumb-item a:hover { color: var(--cyan); }
.breadcrumb-item[aria-current="page"] {
  color: var(--text);
  max-width: 40ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Post Hero
   ============================================================ */
.post-hero {
  padding: 1.25rem 1.5rem 2.5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,229,255,.04) 0%, transparent 55%);
  border-bottom: 1px solid var(--border-soft);
}
.post-hero-category {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--cat-color, var(--cyan));
  margin-bottom: .75rem;
}
.post-hero-category .cat-dot { width: 7px; height: 7px; }

.post-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
  max-width: 800px; margin: 0 auto 1.5rem;
}
.post-hero-meta {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1.25rem;
  font-size: .82rem; color: var(--text-dim);
}
.post-hero-meta span { display: flex; align-items: center; gap: .375rem; }

/* ELI10 Toggle */
.eli10-toggle-wrap {
  margin: 1rem auto 0; max-width: 640px;
}
.eli10-toggle-wrap p {
  font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem;
}
.eli10-toggle-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.3);
  color: var(--purple); font-size: .85rem; font-weight: 600;
  padding: .5rem 1.25rem; border-radius: var(--radius-sm);
  cursor: pointer; font-family: var(--font);
  transition: all var(--t-fast);
}
.eli10-toggle-btn:hover { background: rgba(168,85,247,.18); }
.eli10-toggle-btn.active {
  background: var(--purple); color: #fff; border-color: var(--purple);
}
.eli10-toggle-btn svg { width: 16px; height: 16px; }

/* ============================================================
   Article Content Typography
   ============================================================ */
.post-main { padding: 3rem 1.5rem 5rem; }
.post-content {
  max-width: 720px; margin: 0 auto;
  font-size: 1.0625rem; line-height: 1.8;
  color: var(--text);
}
.post-eli10-content {
  display: none;
}
.post-eli10-content.visible {
  display: block;
}
.post-tech-content.hidden {
  display: none;
}

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
  color: var(--text);
}
.post-content h2 {
  font-size: 1.625rem; margin: 2.75rem 0 1rem;
  padding-top: .5rem;
}
.post-content h3 {
  font-size: 1.25rem; margin: 2rem 0 .75rem;
}
.post-content h4 {
  font-size: 1.05rem; margin: 1.5rem 0 .5rem;
  color: var(--text-muted);
}

/* Anchor links on headings */
.post-content h2 a.heading-anchor,
.post-content h3 a.heading-anchor {
  margin-left: .5rem; opacity: 0; font-size: .8em;
  color: var(--text-dim); text-decoration: none;
  transition: opacity var(--t-fast);
}
.post-content h2:hover a.heading-anchor,
.post-content h3:hover a.heading-anchor { opacity: 1; }

/* Paragraphs */
.post-content p { margin-bottom: 1.5rem; }
.post-content p:last-child { margin-bottom: 0; }

/* Lists */
.post-content ul, .post-content ol {
  margin: 0 0 1.5rem 1.5rem;
}
.post-content li { margin-bottom: .5rem; color: var(--text); }
.post-content li::marker { color: var(--cyan); }
.post-content ul li::marker { content: '→  '; font-size: .8em; }

/* Strong/em */
.post-content strong { color: var(--text); font-weight: 600; }
.post-content em { color: var(--text-muted); font-style: italic; }

/* Links inside content */
.post-content a {
  color: var(--cyan); border-bottom: 1px solid rgba(0,229,255,.25);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.post-content a:hover { border-bottom-color: var(--cyan); text-decoration: none; }

/* Blockquote */
.post-content blockquote {
  margin: 2rem 0; padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--cyan);
  background: var(--cyan-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content blockquote p {
  color: var(--text); font-style: italic; margin: 0;
  font-size: 1.025rem;
}

/* Inline code */
.post-content code:not(pre code) {
  font-family: var(--mono); font-size: .875em;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  color: var(--cyan); padding: .15em .4em;
  border-radius: 4px;
}

/* Horizontal rule */
.post-content hr {
  border: none; border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Tables */
.post-content table {
  width: 100%; border-collapse: collapse;
  margin: 2rem 0; font-size: .9rem;
}
.post-content th {
  background: var(--card); padding: .75rem 1rem;
  font-weight: 600; text-align: left;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}
.post-content td {
  padding: .625rem 1rem; border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
}
.post-content tr:hover td { background: rgba(255,255,255,.02); }

/* Images in posts */
.post-content img {
  max-width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border); margin: 2rem 0;
}
.post-content figure { margin: 2rem 0; }
.post-content figcaption {
  text-align: center; font-size: .82rem;
  color: var(--text-dim); margin-top: .5rem;
}

/* ============================================================
   Code Blocks
   ============================================================ */
.post-content pre {
  margin: 2rem 0; border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden; position: relative;
}

.code-block-wrap { position: relative; }
.code-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .875rem .5rem 1rem;
  background: var(--card); border-bottom: 1px solid var(--border);
}
.code-lang {
  font-family: var(--mono); font-size: .7rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em;
}
.code-copy-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); font-size: .72rem; font-family: var(--font);
  padding: .2rem .6rem; border-radius: 4px; cursor: pointer;
  display: flex; align-items: center; gap: .3rem;
  transition: all var(--t-fast);
}
.code-copy-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.code-copy-btn.copied { color: var(--green); border-color: var(--green); }
.code-copy-btn svg { width: 12px; height: 12px; }

.post-content pre code {
  display: block; padding: 1.25rem;
  font-family: var(--mono); font-size: .875rem; line-height: 1.65;
  overflow-x: auto; tab-size: 2;
  background: #0d0d0d !important;
}

/* Prism overrides for dark theme consistency */
code[class*="language-"], pre[class*="language-"] {
  font-family: var(--mono) !important; font-size: .875rem;
  background: #0d0d0d !important;
}
pre[class*="language-"] { background: #0d0d0d !important; margin: 0 !important; }
:not(pre) > code[class*="language-"] { padding: .15em .4em; }

/* ============================================================
   FAQ Sections (accordions)
   ============================================================ */
.faq-list { margin: 1.5rem 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: .625rem; overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item:hover { border-color: rgba(0,229,255,.2); }
.faq-question {
  width: 100%; background: var(--card); border: none;
  padding: 1rem 1.25rem; text-align: left;
  color: var(--text); font-size: .95rem; font-weight: 500;
  font-family: var(--font); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background var(--t-fast);
}
.faq-question:hover { background: var(--card-hover); }
.faq-question[aria-expanded="true"] { color: var(--cyan); }
.faq-chevron {
  flex-shrink: 0; width: 18px; height: 18px; color: var(--text-dim);
  transition: transform var(--t-base);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--cyan); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer.open { max-height: 600px; }
.faq-answer-inner {
  padding: 1rem 1.25rem 1.25rem;
  color: var(--text-muted); font-size: .925rem; line-height: 1.7;
  border-top: 1px solid var(--border-soft);
}
.faq-answer-inner p { margin-bottom: .75rem; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ============================================================
   TL;DR Box
   ============================================================ */
.tldr-box {
  background: var(--cyan-dim); border: 1px solid rgba(0,229,255,.15);
  border-radius: var(--radius); padding: 1.5rem;
  margin: 0 0 2.5rem;
}
.tldr-box h2 {
  font-family: var(--mono); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--cyan); margin: 0 0 1rem !important; padding: 0 !important;
  font-size: .8rem !important;
}
.tldr-box ul { margin-left: 1.25rem; }
.tldr-box li { color: var(--text); font-size: .9rem; }

/* ============================================================
   Table of Contents
   ============================================================ */
.toc-sidebar {
  position: sticky; top: calc(var(--nav-h) + 2rem);
  max-height: calc(100vh - var(--nav-h) - 4rem);
  overflow-y: auto;
}
.toc-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.toc-title {
  font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--text-dim); margin-bottom: 1rem;
}
.toc-list { list-style: none; }
.toc-list li { padding: .125rem 0; }
.toc-list a {
  font-size: .82rem; color: var(--text-muted);
  display: block; padding: .25rem .5rem;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  line-height: 1.4;
}
.toc-list a:hover {
  color: var(--text); border-left-color: var(--text-dim); text-decoration: none;
  background: rgba(255,255,255,.03);
}
.toc-list a.active {
  color: var(--cyan); border-left-color: var(--cyan);
  background: var(--cyan-dim);
}
.toc-list .toc-h3 { padding-left: 1rem; }
.toc-list .toc-h3 a { font-size: .78rem; }

/* ============================================================
   Author Card
   ============================================================ */
.author-card {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  margin-top: 3.5rem;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cyan-dim); border: 2px solid rgba(0,229,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.author-bio { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.author-link {
  display: inline-flex; align-items: center; gap: .375rem;
  margin-top: .5rem; font-size: .82rem; font-weight: 600;
  color: var(--cyan);
}

/* ============================================================
   Social Share
   ============================================================ */
.share-section {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.share-title {
  font-size: .82rem; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: .1em; font-family: var(--mono); margin-bottom: 1rem;
}
.share-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem 1rem; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-muted); font-family: var(--font);
  transition: all var(--t-fast); text-decoration: none;
}
.share-btn:hover { text-decoration: none; }
.share-btn svg { width: 15px; height: 15px; }
.share-btn-x:hover      { border-color: #ccc; color: #fff; background: #111; }
.share-btn-li:hover     { border-color: #0a66c2; color: #0a66c2; background: rgba(10,102,194,.08); }
.share-btn-copy:hover   { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.share-btn-copy.copied  { border-color: var(--green); color: var(--green); background: rgba(34,197,94,.08); }

/* ============================================================
   Related Posts
   ============================================================ */
.related-posts {
  padding: 3rem 0;
  border-top: 1px solid var(--border-soft);
}
.related-posts-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.related-posts h2 {
  font-size: 1.1rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,229,255,.07) 0%, rgba(0,229,255,.02) 100%);
  border: 1px solid rgba(0,229,255,.15);
  border-radius: var(--radius); padding: 2.5rem;
  text-align: center; margin: 3.5rem 0;
}
.cta-banner h3 {
  font-size: 1.375rem; font-weight: 700; margin-bottom: .75rem;
}
.cta-banner p {
  color: var(--text-muted); font-size: .95rem; max-width: 460px;
  margin: 0 auto 1.5rem; line-height: 1.65;
}
a.btn-cta, .btn-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--cyan); color: var(--black) !important;
  font-weight: 700; font-size: .95rem;
  padding: .75rem 1.75rem; border-radius: var(--radius-sm);
  transition: opacity var(--t-fast), transform var(--t-fast);
  text-decoration: none;
}
a.btn-cta:hover, .btn-cta:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; color: var(--black) !important; }
.btn-cta svg { width: 16px; height: 16px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand { font-weight: 700; font-size: 1.1rem; margin-bottom: .375rem; }
.footer-tagline { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.footer-col h4 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dim); font-family: var(--mono); margin-bottom: .875rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .875rem; color: var(--text-muted); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 1.5rem; border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
  font-size: .78rem; color: var(--text-dim);
}

/* ============================================================
   Utilities
   ============================================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-cyan { color: var(--cyan); }
.hidden { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .post-with-toc {
    grid-template-columns: 1fr;
  }
  .toc-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: calc(var(--nav-h) + 2.5rem) 1rem 2.5rem; }
  .post-hero  { padding: 1.5rem 1rem 2rem; }
  .breadcrumb { padding: calc(var(--nav-h) + .5rem) 1rem .5rem; }
  .post-main  { padding: 2rem 1rem 3rem; }
  .author-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .post-hero h1 { font-size: 1.625rem; }
}

@media (max-width: 480px) {
  .category-filters { gap: .375rem; }
  .filter-btn { font-size: .75rem; padding: .35rem .75rem; }
  .share-btns { gap: .375rem; }
  .cta-banner { padding: 1.75rem 1.25rem; }
}

/* ============================================================
   Inline CTA Blocks — injected per-post by build.js
   ============================================================ */
.inline-cta {
  margin: 2.5rem 0;
  border-radius: 10px;
  border-left: 3px solid var(--cyan);
  background: #0d1117;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.inline-cta--email   { border-left-color: #22c55e; }
.inline-cta--product { border-left-color: #00e5ff; }
.inline-cta--consult { border-left-color: #f97316; }

.inline-cta-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.inline-cta-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .15rem;
}
.inline-cta-body { flex: 1; min-width: 0; }

.inline-cta-label {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin: 0 0 .4rem;
}
.inline-cta--email   .inline-cta-label { color: #22c55e; }
.inline-cta--product .inline-cta-label { color: #00e5ff; }
.inline-cta--consult .inline-cta-label { color: #f97316; }

.inline-cta-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .15rem .55rem;
  border-radius: 4px;
  background: rgba(0,229,255,.12);
  color: #00e5ff;
  border: 1px solid rgba(0,229,255,.25);
  margin-bottom: .5rem;
}
.inline-cta-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--text);
  line-height: 1.35;
}
.inline-cta-text {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}
.inline-cta-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: .875rem;
  padding: .55rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.inline-cta-btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

a.inline-cta-btn--email,   .inline-cta-btn--email   { background: #22c55e; color: #000 !important; }
a.inline-cta-btn--product, .inline-cta-btn--product { background: #00e5ff; color: #000 !important; }
a.inline-cta-btn--consult, .inline-cta-btn--consult { background: #f97316; color: #000 !important; }

@media (max-width: 600px) {
  .inline-cta-inner { flex-direction: column; gap: .75rem; }
  .inline-cta-icon  { font-size: 1.4rem; }
}
