/* ================================================================
   MusicProductionWiki.com ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ Style v3


/* ----------------------------------------------------------------
   DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  --bg-void:        #080b0f;
  --bg-base:        #0d1117;
  --bg-surface:     #131920;
  --bg-elevated:    #1a2332;
  --bg-hover:       #1f2c3d;
  --bg-input:       #0f1823;

  --border-subtle:  rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong:  rgba(255,255,255,0.18);

  --text-primary:   #f0f4f8;
  --text-secondary: #8a9bb0;
  --text-muted:     #4a5a70;
  --text-inverse:   #0d1117;

  --teal:           #00d4a8;
  --teal-dim:       #00b892;
  --teal-glow:      rgba(0,212,168,0.15);
  --teal-subtle:    rgba(0,212,168,0.08);

  --purple:         #a78bfa;
  --purple-dim:     #8b6ef0;
  --purple-subtle:  rgba(167,139,250,0.08);

  --cat-daws:       #00d4a8;
  --cat-plugins:    #a78bfa;
  --cat-gear:       #f59e0b;
  --cat-techniques: #06b6d4;
  --cat-business:   #f472b6;
  --cat-glossary:   #34d399;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-pill: 999px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.6);
  --shadow-teal:   0 0 24px rgba(0,212,168,0.20);
  --shadow-purple: 0 0 24px rgba(167,139,250,0.20);

  --max-w:     1360px;
  : 860px;
  --sidebar-w: 300px;

  --header-h: 64px;
}

/* ----------------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-hover); }

img { max-width: 100%; display: block; height: auto; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--teal-dim); }

/* External links get a subtle indicator */
a[href^="http"]::after,
a[href^="https"]::after {
  content: ' ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ';
  font-size: 0.75em;
  opacity: 0.55;
  vertical-align: super;
}

ul, ol { padding-left: 1.5rem; }

/* ----------------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
p:last-child { margin-bottom: 0; }

strong { color: var(--text-primary); font-weight: 600; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
  padding: 0.15em 0.45em;
  color: var(--teal);
}

/* ----------------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.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;
}

/* ================================================================
   READING PROGRESS BAR
   ================================================================ */
#readingProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* ================================================================
   BACK TO TOP BUTTON
   ================================================================ */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--teal);
  color: var(--text-inverse);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, box-shadow 0.2s;
  pointer-events: none;
  z-index: 200;
  box-shadow: var(--shadow-md);
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTop:hover {
  background: var(--teal-dim);
  box-shadow: var(--shadow-teal);
}

/* ================================================================
   HEADER & NAVIGATION
   ================================================================ */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--bg-void);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 0.75rem;
  /* FIX: prevent overflow by not letting actions crush nav */
  overflow: hidden;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  max-width: 220px;
  min-width: 0;
  gap: 1px;
}
.site-logo::after { display: none !important; }

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-wordmark span { color: var(--teal); }

.logo-tagline {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-body);
}

/* Primary nav ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ centered, allows shrinking */
.primary-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
  flex-wrap: nowrap;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-list a::after { display: none !important; }
.nav-list a:hover { color: var(--text-primary); background: var(--bg-elevated); }
.nav-list a.active { color: var(--teal); }

/* Header actions ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ right side, constrained width */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Search */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 130px;
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--r-pill);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.2s, width 0.3s, box-shadow 0.2s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-subtle);
  width: 180px;
}

.search-btn {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.search-btn:hover { color: var(--teal); }

/* Subscribe button ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ compact */
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.85rem;
  background: var(--teal);
  color: var(--text-inverse) !important;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: var(--font-display);
}
.btn-subscribe::after { display: none !important; }
.btn-subscribe:hover {
  background: var(--teal-dim);
  color: var(--text-inverse) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 10px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.menu-toggle:hover { background: var(--bg-hover); }
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem 1.5rem;
  animation: slideDown 0.2s ease;
}
.mobile-nav.open { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav .nav-list {
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
}
.mobile-nav .nav-list a {
  padding: 0.85rem 0.25rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  min-height: 44px;
}

.mobile-search { margin-bottom: 1rem; }
.mobile-search .search-input { width: 100%; border-radius: var(--r-md); }
.mobile-search .search-input:focus { width: 100%; }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
  padding: 0.85rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  align-items: center;
}

.breadcrumb li::after { content: '/'; margin-left: 0.3rem; color: var(--text-muted); }
.breadcrumb li:last-child::after { display: none; }

.breadcrumb a { color: var(--text-muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb a::after { display: none !important; }

.breadcrumb [aria-current="page"] { color: var(--text-secondary); }

/* ================================================================
   SHARED BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn::after { display: none !important; }

.btn-primary {
  background: var(--teal);
  color: var(--text-inverse) !important;
}
.btn-primary:hover {
  background: var(--teal-dim);
  color: var(--text-inverse) !important;
  box-shadow: var(--shadow-teal);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-strong);
}
.btn-outline-white:hover {
  background: var(--bg-elevated);
  border-color: var(--teal);
  color: var(--text-primary) !important;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-default);
}
.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--teal);
  color: var(--teal) !important;
}

/* ================================================================
   TAGS & PILLS
   ================================================================ */
.article-tag {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal-subtle);
  color: var(--teal);
  border: 1px solid rgba(0,212,168,0.2);
  width: fit-content;
}
.article-tag::after { display: none !important; }

.article-tag.teal   { background: var(--teal-subtle);   color: var(--teal);   border-color: rgba(0,212,168,0.2); }
.article-tag.purple { background: var(--purple-subtle); color: var(--purple); border-color: rgba(167,139,250,0.2); }
.article-tag.gold   { background: rgba(245,158,11,0.1); color: #f59e0b;       border-color: rgba(245,158,11,0.2); }
.article-tag.pink   { background: rgba(244,114,182,0.1);color: #f472b6;       border-color: rgba(244,114,182,0.2); }

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-default);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  font-family: var(--font-body);
}
.tag-pill:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-subtle); }
.tag-pill::after { display: none !important; }

/* ================================================================
   HOMEPAGE ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ HERO
   ================================================================ */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: var(--bg-void);
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,168,0.12) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.10) 0%, transparent 70%);
  bottom: -100px; left: -50px;
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,168,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,168,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(0,212,168,0.25);
  background: var(--teal-subtle);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.5rem;
}

.hero-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-lead p { color: var(--text-secondary); margin-bottom: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s, gap 0.2s;
  min-height: 44px;
}
.section-link:hover { color: var(--teal-dim); gap: 0.5rem; }
.section-link::after { display: none !important; }

/* ================================================================
   CATEGORY CARDS ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ HOMEPAGE
   ================================================================ */
.categories-section {
  padding: 4rem 0;
  background: var(--bg-base);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.category-card {
  background: var(--bg-surface);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  z-index: 1;
}
.category-card:hover::after { transform: scaleX(1); }

.category-card[data-cat="daws"]       { --card-accent: var(--cat-daws); }
.category-card[data-cat="plugins"]    { --card-accent: var(--cat-plugins); }
.category-card[data-cat="gear"]       { --card-accent: var(--cat-gear); }
.category-card[data-cat="techniques"] { --card-accent: var(--cat-techniques); }
.category-card[data-cat="business"]   { --card-accent: var(--cat-business); }
.category-card[data-cat="glossary"]   { --card-accent: var(--cat-glossary); }

.category-icon { font-size: 1.65rem; line-height: 1; }

.category-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.category-desc p { color: var(--text-secondary); font-size: inherit; }

.category-count {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-accent, var(--teal));
}

/* ================================================================
   ARTICLE CARDS ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ FEATURED
   ================================================================ */
.featured-section {
  padding: 4rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.article-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}
.article-card::after { display: none !important; }

.article-card-img {
  height: 130px;
  background: var(--bg-elevated);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,17,23,0.6) 100%);
}
.article-card-img-inner { font-size: 2.75rem; opacity: 0.3; }

.article-card[data-cat="techniques"] .article-card-img { background: linear-gradient(135deg, rgba(0,212,168,0.08), rgba(0,182,146,0.04)); }
.article-card[data-cat="daws"]       .article-card-img { background: linear-gradient(135deg, rgba(167,139,250,0.08), rgba(139,110,240,0.04)); }
.article-card[data-cat="business"]   .article-card-img { background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(217,119,6,0.04)); }

.article-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.article-excerpt {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.article-excerpt p { color: var(--text-secondary); font-size: inherit; }

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-read-time { display: flex; align-items: center; gap: 0.3rem; }

/* ================================================================
   LATEST ARTICLES + QUICK GLOSSARY
   ================================================================ */
.latest-section {
  padding: 4rem 0;
  background: var(--bg-base);
}

.latest-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.latest-feed { display: flex; flex-direction: column; }

.latest-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  min-height: 44px;
  transition: padding-left 0.2s;
}
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { padding-left: 0.35rem; color: var(--text-primary); }
.latest-item::after { display: none !important; }

.latest-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 0.2rem;
  width: 1.75rem;
  text-align: right;
}

.latest-content { flex: 1; }

.latest-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  transition: color 0.15s;
}
.latest-item:hover .latest-title { color: var(--teal); }

.latest-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* ================================================================
   QUICK GLOSSARY WIDGET
   ================================================================ */
.quick-ref-item {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.quick-ref-item:last-child { border-bottom: none; }

.quick-ref-term {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--teal);
  flex-shrink: 0;
}

.quick-ref-def {
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-align: right;
  line-height: 1.4;
}

/* ================================================================
   SIDEBAR WIDGETS
   ================================================================ */
.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

/* FIX: Support BOTH .sidebar-widget-header AND .sidebar-widget-label */
.sidebar-widget-header,
.sidebar-widget-label {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
}

.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sidebar-widget-body { padding: 0.5rem 0; }

/* FIX: Support .sidebar-list, .sidebar-nav-list, and .sidebar-quick-list */
.sidebar-list,
.sidebar-nav-list {
  list-style: none;
  padding: 0;
}

.sidebar-list a,
.sidebar-nav-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sidebar-list a::after,
.sidebar-nav-list a::after { display: none !important; }
.sidebar-list a:hover,
.sidebar-nav-list a:hover { background: var(--bg-elevated); color: var(--teal); }

/* Related articles sidebar widget */
.sidebar-widget .sidebar-list a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: color 0.15s;
}
.sidebar-widget .sidebar-list a:hover { color: var(--teal); }
.sidebar-widget .sidebar-list li:last-child a { border-bottom: none; }


/* FIX: Quick settings list ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ styled properly */
.sidebar-quick-list {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.sidebar-quick-list li {
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
}
.sidebar-quick-list li:last-child { border-bottom: none; }
.sidebar-quick-list li strong {
  color: var(--teal);
  font-weight: 600;
  display: inline;
}

.sidebar-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.1rem 0.5rem;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}

/* ================================================================
   NEWSLETTER SECTION
   ================================================================ */
.newsletter-section {
  position: relative;
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--purple), var(--teal));
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.newsletter-section::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,168,0.08) 0%, transparent 65%);
  top: -300px; right: -200px;
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.newsletter-badge::before { content: 'ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ'; font-size: 0.6em; }

.newsletter-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.15;
}

.newsletter-heading em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-desc { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.65; }
.newsletter-desc p { color: var(--text-secondary); }

.newsletter-perks {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.newsletter-perks li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.newsletter-perks li::before {
  content: 'ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ';
  color: var(--teal);
  font-weight: 800;
  font-size: 0.72rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--teal-subtle);
  border: 1px solid rgba(0,212,168,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.newsletter-form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.newsletter-form-sub { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.newsletter-form-sub p { color: var(--text-muted); font-size: inherit; }

.form-row { display: flex; flex-direction: column; gap: 0.7rem; }

.form-input {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-subtle);
}

.btn-newsletter {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  background: var(--teal);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.btn-newsletter:hover {
  background: var(--teal-dim);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

.form-privacy { font-size: 0.7rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }
.form-privacy p { color: var(--text-muted); font-size: inherit; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand .logo-wordmark { font-size: 1.2rem; }

.footer-desc {
  margin-top: 0.85rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 260px;
}
.footer-desc p { color: var(--text-muted); font-size: inherit; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.footer-col ul a:hover { color: var(--teal); }
.footer-col ul a::after { display: none !important; }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy { font-size: 0.76rem; color: var(--text-muted); }

.footer-links-bottom { display: flex; gap: 1.25rem; }
.footer-links-bottom a {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.footer-links-bottom a:hover { color: var(--teal); }
.footer-links-bottom a::after { display: none !important; }

/* ================================================================
   CATEGORY PAGE ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ HEADER
   ================================================================ */
.category-header {
  background: var(--bg-void);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0 2.25rem;
  position: relative;
  overflow: hidden;
}

.category-header::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  top: -150px; right: 0;
  pointer-events: none;
}

.category-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.category-icon-lg {
  width: 60px; height: 60px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
}

.category-header h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }

.category-header p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  max-width: 560px;
  line-height: 1.65;
}

.category-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.category-meta-bar span { font-size: 0.76rem; color: var(--text-muted); }

/* ================================================================
   CATEGORY PAGE ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ BODY
   ================================================================ */
.category-body { padding: 2.5rem 0; }

.category-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 2.5rem;
  align-items: start;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.filter-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.filter-tag {
  min-height: 36px;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-default);
  background: transparent;
  font-size: 0.76rem;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
}
.filter-tag:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-subtle); }
.filter-tag.active { background: var(--teal); border-color: var(--teal); color: var(--text-inverse); font-weight: 600; }

.article-list {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.article-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  min-height: 44px;
  transition: background 0.15s;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.article-list-item::after { display: none !important; }

.article-list-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.article-list-content { flex: 1; min-width: 0; }

.article-list-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.35;
  transition: color 0.15s;
}
.article-list-item:hover .article-list-title { color: var(--teal); }

.article-list-excerpt { font-size: 0.81rem; color: var(--text-secondary); line-height: 1.5; }

.article-list-foot {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.article-list-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
  font-size: 1rem;
  transition: transform 0.2s, color 0.2s;
  padding-left: 0.5rem;
}
.article-list-item:hover .article-list-arrow { transform: translateX(4px); color: var(--teal); }

.meta-divider { width: 1px; height: 14px; background: var(--border-default); flex-shrink: 0; }

.meta-item { font-size: 0.76rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 44px; min-height: 44px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-subtle); }
.page-btn.active { background: var(--teal); border-color: var(--teal); color: var(--text-inverse); font-weight: 700; }
.page-btn::after { display: none !important; }

/* ================================================================
   ARTICLE PAGE
   ================================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 3.5rem;
  padding: 2.5rem 0 5rem;  margin: 0 auto;  width: 100%;
  align-items: start;
}

.article-layout > article {
  min-width: 0;
  max-width: var(--content-w);
  width: 100%;
  align-self: start;
}

.article-main { max-width: var(--content-w); width: 100%; }

.article-header { margin-bottom: 2rem; }

.article-tags { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }

.article-header h1 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
  font-weight: 700;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.article-author { display: flex; align-items: center; gap: 0.6rem; }

.author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-inverse);
  flex-shrink: 0;
  font-family: var(--font-display);
}

.author-name { font-size: 0.83rem; font-weight: 500; color: var(--text-secondary); }

/* ================================================================
   TABLE OF CONTENTS (inline)
   ================================================================ */
.toc-inline {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.toc-inline-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.toc-inline-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toc-inline-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 28px;
  transition: color 0.15s;
}
.toc-inline-list a::before { content: 'ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¸'; color: var(--teal); font-size: 1em; flex-shrink: 0; }
.toc-inline-list a::after { display: none !important; }
.toc-inline-list a:hover { color: var(--teal); }

/* ================================================================
   ARTICLE BODY
   ================================================================ */
.article-body {
  font-size: 1.05rem;
  line-height: 1.82;
  margin-top: 2rem;
}

.article-body p {
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.82;
}
.article-body p:last-child { margin-bottom: 0; }

.article-body strong { color: var(--text-primary); }

.article-body h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--teal);
  color: var(--text-primary);
  line-height: 1.25;
}

.article-body h3 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.4rem;
  padding-left: 1.75rem;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body blockquote {
  border-left: 4px solid var(--teal);
  margin: 2.25rem 0;
  padding: 1.1rem 1.5rem;
  background: var(--teal-subtle);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.article-body blockquote p { color: var(--text-secondary); margin-bottom: 0; font-size: 1.05rem; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

.article-body th,
.article-body td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.article-body th {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-family: var(--font-body);
}
.article-body td { color: var(--text-secondary); }
.article-body tr:hover td { background: var(--bg-elevated); }

.info-box {
  background: var(--teal-subtle);
  border: 1px solid rgba(0,212,168,0.25);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.info-box strong { color: var(--teal); }
.info-box p { color: var(--text-secondary); margin-bottom: 0; font-size: inherit; }

.warning-box {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.25);
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.warning-box strong { color: #f59e0b; }
.warning-box p { color: var(--text-secondary); margin-bottom: 0; font-size: inherit; }

/* ================================================================
   ARTICLE SIDEBAR (sticky TOC)
   ================================================================ */
.article-sidebar {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.toc-list { list-style: none; padding: 0; }

.toc-list li { border-left: 2px solid var(--border-default); transition: border-color 0.2s; }
.toc-list li.active { border-color: var(--teal); }

.toc-list a {
  display: block;
  padding: 0.32rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
  min-height: 28px;
}
.toc-list a:hover { color: var(--teal); }
.toc-list li.active a { color: var(--teal); }
.toc-list a::after { display: none !important; }

/* FIX: toc-sub ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ nested sub-items */
.toc-sub {
  list-style: none;
  padding: 0;
}
.toc-sub li { border-left: none; }
.toc-sub a {
  font-size: 0.75rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.toc-list .toc-h3 { border-left: none; padding-left: 1.5rem; }
.toc-list .toc-h3 a { font-size: 0.75rem; }

/* ================================================================
   SIDEBAR NEWSLETTER WIDGET (JS-injected)
   ================================================================ */
.sidebar-newsletter .sidebar-widget-inner {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--r-lg) !important;
  padding: 1.25rem !important;
  margin-top: 1.25rem !important;
}

.sidebar-newsletter h4 {
  font-family: var(--font-display);
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin: 0 0 0.5rem !important;
}

.sidebar-newsletter p {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin: 0 0 1rem !important;
  line-height: 1.5 !important;
}

.sidebar-newsletter input[type="email"] {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: var(--r-md) !important;
  color: var(--text-primary) !important;
  font-size: 0.82rem !important;
  padding: 0.55rem 0.85rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
}
.sidebar-newsletter input[type="email"]:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px var(--teal-subtle) !important;
}

.sidebar-newsletter button[type="submit"] {
  background: var(--teal) !important;
  border: none !important;
  border-radius: var(--r-md) !important;
  color: var(--text-inverse) !important;
  cursor: pointer !important;
  font-family: var(--font-display) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 0.6rem !important;
  width: 100% !important;
  transition: background 0.2s !important;
}
.sidebar-newsletter button[type="submit"]:hover {
  background: var(--teal-dim) !important;
}

/* ================================================================
   ARTICLE FOOTER
   ================================================================ */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.article-tags-footer { margin-bottom: 1.75rem; }

.tags-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.tags-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.author-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.author-card-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-inverse);
  flex-shrink: 0;
  font-family: var(--font-display);
}

.author-card-info strong { display: block; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.author-card-info p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.related-section { margin-top: 3rem; }

.related-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--teal);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

/* ================================================================
   404 PAGE
   ================================================================ */
.error-page { min-height: 60vh; display: flex; align-items: center; padding: 4rem 0; }
.error-inner { text-align: center; max-width: 460px; margin: 0 auto; }

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title { font-size: 1.65rem; margin-bottom: 0.65rem; }
.error-desc { color: var(--text-secondary); margin-bottom: 2rem; }
.error-desc p { color: var(--text-secondary); }
/* ================================================================
   RESPONSIVE ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ 1080px
   ================================================================ */
@media (max-width: 1080px) {
  .category-grid    { grid-template-columns: repeat(2, 1fr); }
  .article-grid     { grid-template-columns: repeat(2, 1fr); }
  .article-layout   { grid-template-columns: 1fr; gap: 2rem; }
  .article-sidebar  { position: static; max-height: none; }
  .toc-widget       { display: none; }
  .footer-main      { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .category-layout  { grid-template-columns: 1fr; }
  .latest-layout    { grid-template-columns: 1fr; }
  .related-grid     { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   RESPONSIVE ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ 768px
   ================================================================ */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .primary-nav { display: none; }
  .search-form, .search-input { display: flex !important; }
  .menu-toggle    { display: flex; margin-left: auto; }

  .hero                { padding: 3rem 0 2.5rem; }
  .hero-stats          { gap: 1.5rem; }
  .hero-actions        { flex-direction: column; }
  .hero-actions .btn   { width: 100%; justify-content: center; }

  .categories-section,
  .featured-section,
  .latest-section { padding: 3rem 0; }
  .newsletter-section { padding: 3.5rem 0; }

  .category-grid   { grid-template-columns: 1fr; }
  .article-grid    { grid-template-columns: 1fr; }
  .related-grid    { grid-template-columns: 1fr; }

  .footer-main         { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0 1.5rem; }
  .footer-bottom       { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .footer-desc         { max-width: 100%; }

  .newsletter-form-wrap { padding: 1.5rem; }
  .newsletter-inner    { gap: 2rem; }

  .article-header-meta { gap: 0.5rem; }
  .meta-divider        { display: none; }
  .article-layout      { padding: 2rem 0 3rem; }

  .category-header-inner { flex-direction: column; gap: 1rem; }

  #backToTop { bottom: 1.25rem; right: 1.25rem; }
}

/* ================================================================
   RESPONSIVE ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ 480px
   ================================================================ */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .btn-subscribe { display: none; }

  .hero h1 { font-size: 1.85rem; }
  .hero-stats { gap: 1.25rem; }

  .newsletter-form-wrap { padding: 1.25rem; }

  .article-body       { font-size: 1rem; }
  .article-body p     { font-size: 1rem; }
  .article-body li    { font-size: 1rem; }

  .related-grid { grid-template-columns: 1fr; }

  .footer-links-bottom { flex-wrap: wrap; gap: 0.75rem; }
}

/* ================================================================
   RESPONSIVE ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ 375px
   ================================================================ */
@media (max-width: 375px) {
  .logo-wordmark { font-size: 0.95rem; }
  .logo-tagline  { display: none; }

  .hero h1 { font-size: 1.65rem; }

  .article-header h1 { font-size: 1.5rem; }

  .toc-inline { padding: 1rem 1.1rem; }
}

/* ================================================================
   RESPONSIVE ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ 320px
   ================================================================ */
@media (max-width: 320px) {
  .container { padding: 0 0.85rem; }

  .hero h1 { font-size: 1.5rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }

  .error-code { font-size: 4.5rem; }
}

/* ============================================================
   SIDEBAR FIX ÃÂ¢ÃÂÃÂ handles both DOM structures
   ============================================================ */

main.container#main-content .article-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 3.5rem;
  align-items: start;
  width: 100%;
  margin: 0 auto;
}

main.container#main-content .article-layout > aside {
  position: sticky;
  top: 1.5rem;
  padding-top: 2.5rem;
  align-self: start;
}

main.container#main-content .article-layout > article {
  min-width: 0;
  max-width: var(--content-w);
  width: 100%;
}

@media (max-width: 900px) {
  main.container#main-content {
    display: block;
  }
  .article-layout,
  main.container#main-content .article-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 1.5rem 0 3rem;
    width: 100%;
    gap: 0 !important;
  }
  .article-layout > article,
  main.container#main-content .article-layout > article {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  main.container#main-content .article-layout > aside,
  main.container#main-content > aside,
  .article-layout > aside {
    display: none !important;
  }
}
@media (max-width: 768px) {

  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 500;
    padding: 0.75rem 1.5rem 1.5rem;
    animation: slideDown 0.2s ease;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .main-nav ul li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.85rem 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: color 0.15s;
  }
  .main-nav ul li a::after { display: none !important; }
  .main-nav ul li a:hover { color: var(--teal); }
  .main-nav ul li:last-child a { border-bottom: none; }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--r-sm);
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
  }
  .mobile-nav-toggle:hover {
    background: var(--bg-hover);
    color: var(--teal);
  }

  a.logo {
    font-size: 0.92rem !important;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    flex-shrink: 1;
    text-decoration: none;
    color: var(--text-primary);
  }
  a.logo::after { display: none !important; }
}

@media (min-width: 769px) {
  .main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
  }
  .main-nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    flex-wrap: wrap;
  }
  .main-nav ul li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: var(--r-sm);
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
    white-space: nowrap;
  }
  .main-nav ul li a::after { display: none !important; }
  .main-nav ul li a:hover { color: var(--text-primary); background: var(--bg-elevated); }
  .main-nav ul li a.active { color: var(--teal); }
  .mobile-nav-toggle { display: none !important; }
}


/* Mobile search always visible */
@media (max-width: 768px) {
  .search-toggle, .mobile-search { display: flex !important; }
}


/* Prevent mobile horizontal overflow */
@media (max-width: 768px) {
  body, .container, main { max-width: 100vw; overflow-x: hidden; }
  img, svg, table { max-width: 100%; }
}


/* ============================================================
   MOBILE ARTICLE FIXES Ã¢ÂÂ May 2026
   ============================================================ */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
    line-height: 1.2;
  }
  .article-layout > article {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .version-line {
    display: none;
  }
}
