* { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --bg: #0e1116;
      --surface: #161b22;
      --surface-2: #1c2330;
      --surface-3: #232b3a;
      --border: #2a3240;
      --border-soft: #1e2532;
      --text: #e6edf3;
      --text-dim: #8b98a9;
      --text-faint: #5f6b7d;
      --accent: #58a6ff;
      --accent-2: #7ee787;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }

    a { color: var(--accent); text-decoration: none; }
    a:hover { text-decoration: underline; }

    .container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

    /* COMPACT HEADER */
    header.site-header {
      background: rgba(14, 17, 22, 0.96);
      backdrop-filter: blur(10px);
      position: sticky; top: 0; z-index: 100;
      border-bottom: 1px solid var(--border);
    }
    .header-inner {
      display: flex; justify-content: space-between; align-items: center;
      padding: 14px 0; flex-wrap: wrap; gap: 14px;
    }
    .brand {
      display: flex; align-items: center; gap: 10px;
      font-family: 'Merriweather', serif; font-weight: 700;
      font-size: 1.2rem; color: var(--text);
    }
    .brand .dot {
      width: 9px; height: 9px; border-radius: 50%;
      background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2);
    }
    .header-nav {
      display: flex; gap: 20px; font-size: 0.88rem;
      font-weight: 500; align-items: center;
    }
    .header-nav a { color: var(--text-dim); }
    .header-nav a:hover { color: var(--accent); text-decoration: none; }

    /* BREADCRUMBS */
    .breadcrumbs {
      padding: 26px 0 8px; font-size: 0.82rem; color: var(--text-faint);
      display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    }
    .breadcrumbs a { color: var(--text-dim); }
    .breadcrumbs a:hover { color: var(--accent); }
    .breadcrumbs .sep { opacity: 0.5; }
    .breadcrumbs .current { color: var(--text); font-weight: 500; }

    /* CATEGORY / PAGE HEADER */
    .category-header {
      padding: 20px 0 30px; border-bottom: 1px solid var(--border);
      margin-bottom: 32px;
    }
    .category-eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.1px;
      font-weight: 700; color: var(--accent); margin-bottom: 12px;
    }
    .category-header h1 {
      font-family: 'Merriweather', serif; font-size: 2.4rem;
      line-height: 1.2; letter-spacing: -0.5px; color: var(--text);
      margin-bottom: 12px;
    }
    .category-header p { color: var(--text-dim); font-size: 1.02rem; max-width: 640px; }
    .category-stats {
      display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px;
      font-size: 0.85rem; color: var(--text-faint);
    }
    .category-stats .stat { display: inline-flex; align-items: center; gap: 6px; }
    .category-stats .stat strong { color: var(--text); font-weight: 600; }

    /* TWO-COLUMN LAYOUT */
    .category-layout {
      display: grid; grid-template-columns: 240px 1fr;
      gap: 40px; align-items: start;
    }

    /* SIDEBAR */
    .sidebar { position: sticky; top: 130px; font-size: 0.88rem; }
    .sidebar-section { margin-bottom: 24px; }
    .sidebar-section h3 {
      font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.1px;
      color: var(--text-faint); font-weight: 700; margin-bottom: 10px;
      padding-bottom: 8px; border-bottom: 1px solid var(--border-soft);
    }
    .sidebar-section ul { list-style: none; }
    .sidebar-section li { margin-bottom: 2px; }
    .sidebar-section li a {
      display: flex; align-items: center; justify-content: space-between;
      padding: 7px 10px; border-radius: 6px; color: var(--text-dim);
      font-weight: 500; transition: background 0.12s, color 0.12s; gap: 8px;
    }
    .sidebar-section li a:hover {
      background: var(--surface-2); color: var(--accent); text-decoration: none;
    }
    .sidebar-section li a.active {
      background: rgba(88, 166, 255, 0.12); color: var(--accent); font-weight: 600;
    }
    .sidebar-section .count {
      font-size: 0.72rem; background: var(--surface-2); color: var(--text-faint);
      padding: 1px 7px; border-radius: 20px; font-weight: 600;
      font-variant-numeric: tabular-nums;
    }
    .sidebar-sub {
      list-style: none; margin-left: 12px; padding-left: 12px;
      border-left: 1px solid var(--border); margin-top: 2px; margin-bottom: 6px;
    }
    .sidebar-sub li a { font-size: 0.84rem; padding: 5px 10px; color: var(--text-faint); }
    .sidebar-sub li a:hover { color: var(--accent); }

    /* CONTENT */
    .content-column h2.section-heading {
      font-family: 'Merriweather', serif; font-size: 1.3rem; color: var(--text);
      letter-spacing: -0.2px; margin-bottom: 18px; padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
      display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    }
    .content-column h2.section-heading .hint {
      font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500;
      color: var(--text-faint); letter-spacing: 0;
    }

    /* ---- Recently Updated strip (compact) ---- */
    .recent-strip {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 34px;
    }
    .recent-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 18px;
      transition: border-color 0.2s, transform 0.15s;
    }
    .recent-card:hover { border-color: #3a4556; transform: translateY(-2px); }
    .recent-card .recent-cat {
      font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.9px;
      color: var(--accent); font-weight: 700; margin-bottom: 6px;
    }
    .recent-card h3 {
      font-family: 'Merriweather', serif; font-size: 0.98rem;
      line-height: 1.35; margin-bottom: 6px;
    }
    .recent-card h3 a { color: var(--text); }
    .recent-card h3 a:hover { color: var(--accent); text-decoration: none; }
    .recent-card .recent-date {
      font-size: 0.76rem; color: var(--text-faint);
    }

    /* EPISODE CARD */
    .episode {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 12px; padding: 22px 26px; margin-bottom: 18px;
      transition: border-color 0.2s, transform 0.15s;
    }
    .episode:hover { border-color: #3a4556; transform: translateY(-2px); }
    .episode-meta {
      display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
      margin-bottom: 10px; font-size: 0.78rem;
    }
    .episode-cat {
      display: inline-flex; align-items: center; gap: 5px;
      background: rgba(31, 111, 235, 0.15); color: var(--accent);
      padding: 3px 10px; border-radius: 20px; font-weight: 600;
      font-size: 0.74rem; border: 1px solid rgba(88, 166, 255, 0.25);
    }
    .episode-num { color: var(--text-dim); font-weight: 500; font-variant-numeric: tabular-nums; }
    .episode-date { color: var(--text-dim); margin-left: auto; }
    .episode h3 {
      font-family: 'Merriweather', serif; font-size: 1.2rem; line-height: 1.35;
      letter-spacing: -0.2px; margin-bottom: 10px;
    }
    .episode h3 a { color: var(--text); }
    .episode h3 a:hover { color: var(--accent); text-decoration: none; }
    .episode-excerpt { color: #b9c6d6; font-size: 0.9rem; margin-bottom: 14px; }
    .episode-footer {
      display: flex; justify-content: space-between; align-items: center;
      flex-wrap: wrap; gap: 12px; padding-top: 12px;
      border-top: 1px solid var(--border-soft);
    }
    .episode-tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .tag {
      font-size: 0.72rem; padding: 2px 9px; background: var(--surface-2);
      border: 1px solid var(--border); border-radius: 20px; color: var(--text-dim);
    }
    .read-btn {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 0.84rem; font-weight: 600; color: var(--accent);
    }
    .read-btn:hover { text-decoration: underline; }

    .empty-note {
      padding: 40px 24px; text-align: center; color: var(--text-faint);
      background: var(--surface); border: 1px dashed var(--border);
      border-radius: 12px; font-size: 0.92rem;
    }

    /* FOOTER */
    footer.site-footer {
      border-top: 1px solid var(--border); margin-top: 60px;
      padding: 26px 0 40px; font-size: 0.85rem; color: var(--text-dim);
    }
    .footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
    .footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
    .footer-links a { color: var(--text-dim); }
    .footer-links a:hover { color: var(--accent); }

    /* RESPONSIVE */
    @media (max-width: 860px) {
      .category-layout { grid-template-columns: 1fr; gap: 24px; }
      .sidebar {
        position: static; top: auto; border-bottom: 1px solid var(--border); padding-bottom: 20px;
      }
      .sidebar-section ul { display: flex; flex-wrap: wrap; gap: 6px; }
      .sidebar-section li { margin: 0; }
      .sidebar-sub { display: none; }
      .recent-strip { grid-template-columns: 1fr; }
      .category-header h1 { font-size: 1.9rem; }
    }
    @media (max-width: 620px) {
      .category-header h1 { font-size: 1.6rem; }
      .episode { padding: 18px 20px; }
      .episode h3 { font-size: 1.05rem; }
      .episode-date { margin-left: 0; width: 100%; }
      .header-nav { gap: 14px; font-size: 0.82rem; }
    }

/* ============================================================
   DROPDOWN MEGA-NAV (merged from index_dropdown_menus.html)
   ============================================================ */
.nav-row-1 {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 12px; flex-wrap: wrap; gap: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.nav-row-1 .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Merriweather', serif; font-weight: 700;
  font-size: 1.35rem; color: var(--text);
}
.nav-row-1 .brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2);
}
.utility-nav {
  display: flex; gap: 22px; font-size: 0.88rem;
  font-weight: 500; flex-wrap: wrap; align-items: center;
}
.utility-nav a { color: var(--text-dim); }
.utility-nav a:hover { color: var(--accent); text-decoration: none; }
.utility-nav .subscribe-pill {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff; padding: 5px 14px; border-radius: 30px;
  font-weight: 600; font-size: 0.82rem;
}
.utility-nav .subscribe-pill:hover {
  color: #fff; text-decoration: none; transform: translateY(-1px);
}

.nav-row-2, .nav-row-3 {
  display: flex; gap: 8px; padding: 6px 0; flex-wrap: wrap;
  align-items: center; border-bottom: 1px solid var(--border-soft);
}
.nav-row-3 { border-bottom: none; padding-bottom: 10px; }

.row-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.1px;
  color: var(--text-faint); font-weight: 700; padding-right: 10px;
  margin-right: 6px; border-right: 1px solid var(--border); white-space: nowrap;
}

.nav-item { position: relative; }
.nav-item > a, .nav-item > span {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-dim); font-size: 0.86rem; font-weight: 500;
  cursor: pointer; padding: 6px 10px; border-radius: 7px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-item:hover > a, .nav-item:hover > span {
  color: var(--accent); background: var(--surface-2);
}
.nav-item .emoji { font-size: 0.95rem; line-height: 1; }
.nav-item .caret { font-size: 0.55rem; opacity: 0.55; transition: transform 0.2s; }
.nav-item:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; transform: translateY(6px);
  min-width: 230px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  z-index: 200;
}
.nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item.align-right > .dropdown { left: auto; right: 0; }

.dropdown a, .dropdown .submenu-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px; font-size: 0.86rem; color: var(--text-dim);
  font-weight: 500; cursor: pointer;
  transition: background 0.12s, color 0.12s; white-space: nowrap; gap: 14px;
}
.dropdown a:hover, .dropdown .submenu-trigger:hover {
  background: var(--surface-2); color: var(--accent); text-decoration: none;
}
.dropdown .submenu-trigger .arrow { font-size: 0.65rem; opacity: 0.5; }

.submenu-wrap { position: relative; }
.submenu {
  position: absolute; top: -8px; left: 100%; min-width: 210px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  transform: translateX(6px); z-index: 210;
}
.submenu-wrap:hover > .submenu {
  opacity: 1; visibility: visible; transform: translateX(0);
}
.submenu-wrap:hover > .submenu-trigger {
  background: var(--surface-2); color: var(--accent);
}
.submenu-wrap.flip-left > .submenu {
  left: auto; right: 100%; transform: translateX(-6px);
}
.submenu-wrap.flip-left:hover > .submenu { transform: translateX(0); }
.submenu a {
  padding: 8px 18px; font-size: 0.83rem; color: var(--text-dim);
  display: block; transition: background 0.12s, color 0.12s;
}
.submenu a:hover {
  background: var(--surface-2); color: var(--accent); text-decoration: none;
}
.submenu-header {
  padding: 6px 18px 4px; font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.9px;
  color: var(--text-faint); font-weight: 700; pointer-events: none;
}
.dropdown-sep { height: 1px; background: var(--border-soft); margin: 6px 12px; }

@media (max-width: 900px) {
  .row-label { display: none; }
  .nav-item > a, .nav-item > span { font-size: 0.82rem; padding: 5px 8px; }
}
@media (max-width: 820px) {
  .nav-item { position: static; }
  .dropdown {
    position: fixed; left: 0; right: 0; top: auto; transform: none;
    border-radius: 0 0 10px 10px; max-height: 60vh; overflow-y: auto;
  }
  .nav-item:hover > .dropdown { transform: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--border);
    border-radius: 0; margin-left: 16px; padding: 4px 0; display: none;
    background: transparent;
  }
  .submenu-wrap:hover > .submenu { display: block; }
  .submenu a { padding-left: 30px; }
}
