/* ==========================================================================
       1. Base Variables & Reset
       ========================================================================== */
    :root {
      --navy: #001E4A;
      --navy-soft: #0A2B5C;
      --gold: #F9BF1D;
      --gold-deep: #D89E0A;
      --signal: #0263D3;
      --paper: #F7F8FA;
      --paper-raised: #FFFFFF;
      --slate: #5B6472;
      --hairline: #DDE1E8;

      --display: 'Lora', Georgia, serif;
      --body: 'Public Sans', Arial, sans-serif;
      --mono: 'IBM Plex Mono', 'Courier New', monospace;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    html, body { max-width: 100%; overflow-x: hidden; }
    body {
      margin: 0;
      font-family: var(--body);
      color: var(--navy);
      background: var(--paper);
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; height: auto; display: block; }

    /* ==========================================================================
       2. Site Navigation
       ========================================================================== */
    /* .site-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 48px;
      background: var(--paper-raised);
      border-bottom: 1px solid var(--hairline);
      position: sticky;
      top: 0;
      z-index: 1030;
    } */
    /* .brand-mark { height: 48px; width: auto; }
    .nav-menu { display: flex; align-items: center; gap: 32px; }
    .nav-links { display: flex; gap: 34px; font-size: 13.5px; font-weight: 500; }
    .nav-links a { text-decoration: none; position: relative; color: var(--navy); }
    .nav-links a.current { color: var(--signal); }
    .nav-links a::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
      background: var(--gold); transform: scaleX(0); transition: transform .2s ease;
    }
    .nav-links a:hover::after { transform: scaleX(1); }
    .nav-toggle {
      display: none; background: none; border: 1px solid var(--hairline);
      width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer;
    }
    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
      display: block; width: 18px; height: 1.5px; background: var(--navy); position: relative; transition: all .25s ease;
    }
    .nav-toggle span::before { content: ""; position: absolute; top: -6px; }
    .nav-toggle span::after { content: ""; position: absolute; top: 6px; }
    .nav-toggle.open span { background: transparent; }
    .nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
    .nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }
    
    .nav-cta {
      font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
      background: var(--navy); color: #fff; padding: 11px 20px;
      border: 1px solid var(--navy); transition: background .2s ease;
    }
    .nav-cta:hover { background: var(--signal); border-color: var(--signal); color: #fff; } */

    /* ==========================================================================
       3. Intro Section
       ========================================================================== */
    .insights-intro {
      padding: 40px 0 24px;
      background: var(--paper);
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--signal);
      margin-bottom: 12px;
    }
    .eyebrow .mark {
      width: 8px; height: 8px; background: var(--gold); display: inline-block;
    }
    .insights-intro h2 {
      font-family: var(--display);
      font-size: 2.25rem;
      color: var(--navy);
      margin-bottom: 12px;
    }
    .insights-intro .lede {
      font-size: 1.05rem;
      color: var(--slate);
      max-width: 850px;
      line-height: 1.6;
    }

    /* ==========================================================================
       4. Mobile Filter Bar & Drawer
       ========================================================================== */
    .mobile-filter-bar {
      display: none;
      position: sticky;
      top: 89px; /* Nav height offset */
      z-index: 1020;
      background: #fff;
      border-bottom: 1px solid var(--hairline);
      padding: 12px 20px;
    }
    .mobile-filter-trigger {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--paper);
      border: 1px solid var(--hairline);
      padding: 10px 16px;
      border-radius: 6px;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--navy);
      cursor: pointer;
    }
    .mobile-filter-drawer {
      display: none;
      background: #fff;
      border-bottom: 1px solid var(--hairline);
      padding: 16px 20px;
    }
    .mobile-filter-drawer.open { display: block; }

    /* ==========================================================================
       5. Layout Structure (Sidebar + Main Content)
       ========================================================================== */
    .insights-container {
      padding-top: 20px;
      padding-bottom: 80px;
    }

    /* ==========================================================================
       6. Article Cards & Grid
       ========================================================================== */
    .article-card {
      position: relative;
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      background-color: #fff;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--hairline);
      box-shadow: 0 4px 14px rgba(0,0,0,0.03);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .article-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .article-card::before {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 0; height: 3px;
      background: linear-gradient(90deg, var(--gold), var(--navy));
      transition: width 0.45s ease;
      z-index: 3;
    }
    .article-card:hover::before { width: 100%; }

    .article-index {
      position: absolute;
      top: 16px; left: 16px;
      z-index: 2;
      font-family: var(--mono);
      font-size: 11px;
      color: #fff;
      background: rgba(0, 30, 74, 0.65);
      backdrop-filter: blur(4px);
      border: 1px solid rgba(255, 255, 255, 0.35);
      width: 34px; height: 34px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.3s ease;
    }
    .article-card:hover .article-index {
      background: var(--gold);
      color: var(--navy);
      border-color: var(--gold);
      transform: scale(1.08);
    }
    .article-cover {
      width: 100%;
      height: 200px;
      background-size: cover;
      background-position: center;
      border-radius: 12px 12px 0 0;
      transition: transform 0.4s ease;
    }
    .article-card:hover .article-cover { transform: scale(1.03); }
    .article-cover-wrap { overflow: hidden; position: relative; }

    .article-body {
      display: flex;
      flex-direction: column;
      flex: 1;
      padding: 24px;
    }
    .article-title-link {
      color: var(--navy);
      font-family: var(--display);
      font-size: 1.25rem;
      line-height: 1.35;
      transition: color 0.3s ease;
    }
    .article-title-link:hover { color: var(--signal); }
    .arrow-icon {
      display: inline-block;
      transition: transform 0.2s ease;
    }
    .article-title-link:hover .arrow-icon { transform: translateX(4px); }
    .tag-row {
      margin-top: auto;
      padding-top: 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .hashtag {
      font-size: 0.75rem;
      font-family: var(--mono);
      color: var(--slate);
      background: var(--paper);
      padding: 4px 8px;
      border-radius: 4px;
    }

    .no-results {
      display: none;
      text-align: center;
      padding: 60px 20px;
      background: #fff;
      border-radius: 12px;
      border: 1px dashed var(--hairline);
    }

    /* Dynamic Filter Info Bar */
    .filter-info-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--hairline);
    }
    .active-filter-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--navy);
    }

   
   
    /* ==========================================================================
       8. Responsive Rules
       ========================================================================== */
    /* @media (max-width: 991px) {
      .site-nav { padding: 16px 24px; }
      .insights-sidebar-wrapper { display: none; }
      .mobile-filter-bar { display: block; }
      .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--hairline);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
      }
      .nav-menu.active { display: flex; }
      .nav-links { flex-direction: column; gap: 16px; width: 100%; text-align: center; }
      .nav-toggle { display: flex; }
      .site-footer { padding: 40px 24px 24px; }
    } */

  /* ==========================================================================
   Side Navigation & Dynamic Article Reader Styles
   ========================================================================== */

/* Layout & Sticky Sidebar */
.insights-sidebar-wrapper {
  position: sticky;
  top: 90px;
}

.insights-sidebar {
  background: var(--paper-raised, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--hairline, #DDE1E8);
  padding: 24px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.sidebar-title {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate, #5B6472);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline, #DDE1E8);
}

.nav-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  margin-bottom: 10px;
}

/* Category Collapsible Toggle Buttons */
.category-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 12px;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--navy, #001E4A);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-toggle:hover {
  background: var(--paper, #F7F8FA);
  color: var(--signal, #0263D3);
}

.category-toggle .chevron {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.category-toggle.expanded .chevron {
  transform: rotate(180deg);
}

/* Sub-topic Navigation Links */
.subcategory-list {
  list-style: none;
  padding-left: 10px;
  margin: 4px 0 0 0;
  border-left: 2px solid var(--hairline, #DDE1E8);
  display: none; /* Controlled by JS expansion */
}

.subcategory-list.show {
  display: block;
}

.subcategory-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate, #5B6472);
  padding: 8px 12px;
  display: block;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.subcategory-btn:hover {
  background: var(--paper, #F7F8FA);
  color: var(--signal, #0263D3);
}

.subcategory-btn.active {
  background: rgba(2, 99, 211, 0.08);
  color: var(--signal, #0263D3);
  font-weight: 600;
  border-left: 3px solid var(--signal, #0263D3);
}

/* Article Card Container & Fixed Scroll Container */
.article-reader-wrapper {
  position: relative;
}

.article-card-container {
  background: #ffffff;
  border: 1px solid var(--hairline, #DDE1E8);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 30, 74, 0.05);
  overflow: hidden;
}

.article-scroll-pane {
  height: calc(100vh - 140px);
  min-height: 820px;
  max-height: 950px;
  overflow-y: auto;
  padding: 40px 48px;
  scroll-behavior: smooth;
}

/* Narrower desktop windows (lg breakpoint, 992–1199px) get tighter side padding
   so article text isn't cramped against the sidebar */
@media (min-width: 992px) and (max-width: 1199px) {
  .article-scroll-pane {
    padding: 32px 32px;
  }
}

/* Scrollbar Customization for Article Container */
.article-scroll-pane::-webkit-scrollbar {
  width: 6px;
}
.article-scroll-pane::-webkit-scrollbar-track {
  background: var(--paper, #F7F8FA);
}
.article-scroll-pane::-webkit-scrollbar-thumb {
  background: #C6CEDB;
  border-radius: 3px;
}
.article-scroll-pane::-webkit-scrollbar-thumb:hover {
  background: var(--slate, #5B6472);
}

/* Mobile Filter Drawer Styling */
.mobile-filter-bar {
  position: sticky;
  top: 70px;
  z-index: 1020;
  background: #ffffff;
  border-bottom: 1px solid var(--hairline, #DDE1E8);
  padding: 12px 20px;
}

.mobile-filter-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper, #F7F8FA);
  border: 1px solid var(--hairline, #DDE1E8);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy, #001E4A);
  cursor: pointer;
}

.mobile-filter-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--hairline, #DDE1E8);
  padding: 20px;
  max-height: 350px;
  overflow-y: auto;
}

.mobile-filter-drawer.open {
  display: block;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .article-scroll-pane {
    height: auto;
    max-height: none;
    min-height: auto;
    overflow-y: visible;
    padding: 24px 20px;
  }
}
.subcategory-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
}

.subcategory-btn .arrow-icon {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.subcategory-btn:hover .arrow-icon,
.subcategory-btn.active .arrow-icon {
  transform: translateX(3px);
}