/* =============================================
   MLKN.labV2 — MultiLayer Knowledge Network
   Author: François Papin | May 2026 | MIT License
   Updated: June 2026
   Modern, Minimal, Scientific, and Technological Design
   ============================================= */

:root {
  /* Base Colors */
  --bg: #FAFAF8;
  --panel: rgba(250, 250, 248, 0.97);
  --border: #E0EAFF;
  --text: #1A1E2E;
  --text2: #4A5070;
  --muted: #8090B0;
  --accent: #1A6BAA;
  --accent2: #0A7E8C;

  /* Fonts */
  --font: 'Outfit', sans-serif;
  --mono: 'Space Mono', monospace;

  /* Spacing and Effects */
  --r: 6px;
  --sh: 0 1px 3px rgba(26, 74, 122, 0.08);
  --sh2: 0 4px 12px rgba(26, 30, 46, 0.1);

  /* Layer Colors */
  --layer1: #808080;
  --layer2: #4A90E2;
  --layer3: #50C878;
  --layer4: #FFD700;
  --layer5: #E0FFFF;
}

/* =============================================
   DESKTOP NAVIGATION (Unchanged)
   ============================================= */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh);
  height: 48px;
}

.topnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topnav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.primary-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.primary-nav > li {
  position: relative;
}

.primary-nav > li > a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  padding: 12px 10px;
  border-radius: var(--r);
  transition: all 0.15s;
  display: block;
}

/* Dropdown Menus (Desktop) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh2);
  min-width: 200px;
  z-index: 1001;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  transition: all 0.15s;
}

.dropdown-menu a:hover {
  color: var(--accent);
  background: rgba(26, 107, 170, 0.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text2);
  margin: 4px 0;
  transition: all 0.2s;
}

/* =============================================
   MOBILE NAVIGATION - SCROLLING VERSION (Vertical Only)
   ============================================= */
@media only screen and (max-width: 768px) and (orientation: portrait) {
  /* Hide desktop nav, show hamburger */
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block !important;
  }

  /* Adjust topnav for mobile */
  .topnav {
    height: 56px !important;
  }

  .topnav-inner {
    padding: 0 10px !important;
    justify-content: space-between !important;
  }

  /* Full-screen scrolling menu */
  .topnav.mobile-menu-active .desktop-nav {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--r) var(--r);
    box-shadow: var(--sh2);
    padding: 15px;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
  }

  /* All links in a single column */
  .topnav.mobile-menu-active .primary-nav {
    flex-direction: column;
    gap: 0;
  }

  .topnav.mobile-menu-active .primary-nav > li {
    width: 100%;
  }

  /* Fix for Home link (first item) - MUST BE BEFORE parent items rule */
  .topnav.mobile-menu-active .primary-nav > li:first-child > a {
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    display: block;
    color: var(--text2) !important;
    font-weight: 600;
    background: rgba(26, 107, 170, 0.05);
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  /* Parent items (section headers - non-clickable) */
  .topnav.mobile-menu-active .primary-nav > li:not(:first-child) > a {
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    display: block;
    color: var(--text2) !important;
    font-weight: 600;
    background: rgba(26, 107, 170, 0.05);
    cursor: default !important;
    pointer-events: none !important;
  }

  /* Child items (indented and clickable) */
  .topnav.mobile-menu-active .dropdown-menu {
    display: block !important;
    position: static;
    border: none;
    border-left: none;
    margin-left: 0;
    padding-left: 30px;
    background: transparent;
    box-shadow: none;
  }

  .topnav.mobile-menu-active .dropdown-menu a {
    padding: 8px 15px;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    display: block;
    color: var(--text) !important;
    white-space: nowrap;
  }

  /* Hide logo text */
  .topnav.mobile-menu-active .logo-text {
    display: none !important;
  }

  .logo-mark {
    width: 32px !important;
    height: 32px !important;
  }
}


/* =============================================
   MOBILE HORIZONTAL - DESKTOP-LIKE NAVIGATION
   ============================================= */
@media only screen and (max-width: 768px) and (orientation: landscape) {
  /* Hide hamburger, show desktop nav */
  .mobile-menu-toggle {
    display: none !important;
  }

  .desktop-nav {
    display: flex !important;
  }

  /* Adjust for small screen */
  .topnav {
    height: 48px !important;
  }

  .topnav-inner {
    padding: 0 10px !important;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 2px;
  }

  .primary-nav > li > a {
    padding: 8px 10px;
    font-size: 11px;
  }

  /* Dropdowns work on hover */
  .dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh2);
    min-width: 180px;
    z-index: 1001;
  }

  .has-dropdown:hover .dropdown-menu {
    display: block !important;
  }
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  letter-spacing: 0.02em;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 58px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #EBF4FB55, transparent);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(30px, 5.5vw, 58px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 auto 10px;
  text-align: center;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 30px;
  line-height: 1.65;
  font-weight: 300;
  text-align: center;
}

/* =============================================
   HERO STATS - CIRCLE ICONS + SINGLE LINE
   ============================================= */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin: 0 auto 32px;
  width: 100%;
  max-width: 600px;
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: 70px;
}

.stat-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 auto 6px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.hstat-num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hstat-lbl {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}

/* Desktop-only hero stats enhancements */
@media (min-width: 769px) {
  .hero-stats {
    gap: 24px;
    margin-bottom: 40px;
  }

  .hero-stats > div {
    min-width: 100px;
  }

  .hstat-num {
    font-size: 32px !important;
  }

  .hstat-lbl {
    font-size: 11px !important;
    letter-spacing: 0.15em;
  }

  .stat-circle {
    width: 16px !important;
    height: 16px !important;
    margin: 0 auto 10px !important;
  }

  /* Highlight 320K+ Connections */
  .hero-stats > div:last-child .hstat-num {
    font-size: 36px !important;
    color: #FFD700 !important;
  }
}

/* Mobile-specific hero stats fixes */
@media (max-width: 768px) {
  .hero-stats {
    gap: 8px !important;
    justify-content: center !important;
    padding: 0 5px !important;
  }

  .hero-stats > div {
    min-width: 60px !important;
  }

  .stat-circle {
    width: 8px !important;
    height: 8px !important;
    margin: 0 auto 3px !important;
  }

  .hstat-num {
    font-size: 16px !important;
  }

  .hstat-lbl {
    font-size: 6px !important;
    letter-spacing: 0.08em !important;
  }
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px 24px;
}

.sec-h {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.sec-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

/* =============================================
   FEATURED SECTION
   ============================================= */
.featured {
  background: linear-gradient(135deg, #EBF4FB, #F5EEF8, #EAFAF1);
  border: 2px solid #BBCFE8;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  text-decoration: none;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
}

.featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
  border-color: var(--accent);
  text-decoration: none;
  opacity: 1;
}

.feat-icon {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-icon svg {
  width: 34px;
  height: 34px;
  color: #fff;
}

.feat-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.feat-title {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.feat-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 540px;
}


/* =============================================
   NAVIGATION GRID - PERFECT ALIGNMENT
   ============================================= */
.nav-grid-container {
  max-width: 100%;
  margin: 30px auto;
  padding: 0 15px;
  font-family: var(--mono);
  font-size: 12px;
  overflow: visible;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.nav-grid-case {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 15px;
  transition: all 0.2s;
  min-height: 100px;
  position: relative;
}

.nav-grid-case:hover {
  border-color: var(--accent);
  box-shadow: var(--sh2);
}

/* Colored top borders */
.nav-grid-case:nth-child(1) { border-top: 3px solid #ff6b6b; }
.nav-grid-case:nth-child(2) { border-top: 3px solid #4ecdc4; }
.nav-grid-case:nth-child(3) { border-top: 3px solid #45b7d1; }
.nav-grid-case:nth-child(4) { border-top: 3px solid #f9ca24; }
.nav-grid-case:nth-child(5) { border-top: 3px solid #a55eea; }
.nav-grid-case:nth-child(6) { border-top: 3px solid #ff9f43; }

.nav-grid-case-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-grid-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav-grid-list li {
  display: flex;
  position: relative;
  padding: 5px 0;
  border-bottom: 1px solid rgba(26, 30, 46, 0.05);
  width: 100%;
}

.nav-grid-list li:last-child {
  border-bottom: none;
}

.nav-grid-list .text-container {
  flex: 1;
  overflow: hidden;
  text-align: left;
}

.nav-grid-list a:first-child {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  font-size: 13px;
  display: block;
}

.nav-grid-list .arrow-container {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.nav-arrow {
  color: var(--muted);
  font-size: 18px !important;
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 8px;
}

.nav-grid-list li:hover .nav-grid-list a:first-child,
.nav-grid-list li:hover .nav-arrow {
  color: var(--accent) !important;
}

.nav-grid-case a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* =============================================
   CHIP STYLES
   ============================================= */
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.chip {
  padding: 3px 9px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  border: 1.5px solid currentColor;
  transition: all 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.18s;
  border: 2px solid;
}

.btn-p {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-p:hover {
  background: #1558A0;
  border-color: #1558A0;
  color: #fff;
  text-decoration: none;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(26, 107, 170, 0.3);
}

.btn-s {
  background: transparent;
  color: var(--accent);
  border-color: #BBCFE8;
}

.btn-s:hover {
  background: #EBF4FB;
  border-color: var(--accent);
  text-decoration: none;
  opacity: 1;
  transform: translateY(-1px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* =============================================
   NETWORK VISUALIZATION CONTAINER (Canvas)
   ============================================= */
#network-container {
    width: 100%;
    height: 700px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-top: 20px;
    background: var(--panel);
    position: relative;
    overflow: hidden;
}

#network-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    #network-container {
        height: 80vh;
    }
}

/* Dark mode adjustments for network container */
@media (prefers-color-scheme: dark) {
    #network-container {
        background: var(--panel);
        border-color: var(--border);
    }
    #network-container canvas {
        background: linear-gradient(to bottom, #1a1a2e, #16213e);
    }
}

/* Legend dark mode */
@media (prefers-color-scheme: dark) {
    #visualization .essay-box {
        background: rgba(0, 0, 0, 0.7);
        border-color: var(--border);
    }
    #visualization .essay-box h3,
    #visualization .essay-box p,
    #visualization .essay-box span {
        color: #FFFFFF;
    }
}

/* =============================================
   HORIZONTAL BOXES (Essay Box + Featured)
   ============================================= */
.essay-box {
  background: var(--panel);  /* Use the panel background color */
  color: var(--text);
  border: 1px solid var(--border);
}

.featured {
  background: linear-gradient(135deg, #EBF4FB, #F5EEF8);
  border: 2px solid #BBCFE8;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
}

.essay-box h3 {
  color: var(--text);
}

.essay-box p {
  color: var(--text2);  
}

.featured p,
.featured .feat-eyebrow,
.featured .feat-title,
.featured .feat-desc {
  color: var(--text);
  font-family: var(--font);
}

.essay-box .chips .chip,
.featured .chips .chip {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  border: 1.5px solid currentColor;
  padding: 3px 9px;
  border-radius: 20px;
}

#visualization .essay-box {
    background: rgba(0, 0, 0, 0.3); 
    border-radius: var(--r);
    padding: 15px;
    margin-top: 20px;
}

#visualization .essay-box h3 {
    color: #FFFFFF;
    margin-bottom: 10px;
}

#visualization .essay-box div {
    color: var(--text); 
}

/* =============================================
   LAYERS GRID
   ============================================= */
.layers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.layer-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.layer-card h3 {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 5px;
}

.layer-card p {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.55;
}

.layer-card p,
.essay-box p {
  max-width: 65ch;
  margin: 0 auto;
}

.licon {
  font-size: 20px;
  margin-bottom: 7px;
}

/* =============================================
   DISCIPLINE LIST WITH SQUARES
   ============================================= */
.discipline-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.discipline-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text2);
}

.discipline-square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* =============================================
   NAVIGATION BOXES (Internal Page Nav)
   ============================================= */
.nav-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.nav-box a {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 15px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-box a:hover {
  background: #EBF4FB;
  border-color: var(--accent);
  color: var(--accent);
}

.nav-box a.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* =============================================
   BOTTOM BAR WITH ICONS
   ============================================= */
.site-footer {
  background: rgba(250, 250, 248, 0.97);
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.sf-logo {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.sf-tag {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.sf-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sf-link {
  color: var(--text2);
  text-decoration: none;
  font-size: 18px;
  transition: opacity 0.15s;
}

.sf-link:hover {
  opacity: 0.75;
  color: var(--accent);
}

.sf-legal {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}

/* =============================================
   RESPONSIVE DESIGN - MOBILE-FIRST
   ============================================= */
@media (max-width: 1024px) {
  main {
    max-width: 90%;
  }
  body {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 36px 16px 32px;
  }

  .hero-stats {
    gap: 10px;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-stats > div {
    min-width: 60px;
  }

  .hstat-num {
    font-size: 18px;
  }

  .hstat-lbl {
    font-size: 7px;
  }

  .stat-circle {
    width: 10px;
    height: 10px;
    margin: 0 auto 4px;
  }

  .section {
    padding: 30px 16px;
  }

  .featured {
    flex-direction: column;
    padding: 20px;
    gap: 14px;
  }

  .feat-icon {
    width: 50px;
    height: 50px;
  }

  .layers-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-grid-container {
    padding: 0 10px;
  }

  .nav-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav-grid-case {
    padding: 12px;
    min-height: auto;
  }

  .nav-grid-case-title {
    font-size: 12px;
  }

  .nav-grid-list a:first-child {
    font-size: 11px;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .nav-arrow {
    font-size: 12px;
    min-width: auto;
  }

  .nav-grid-list-horizontal {
    gap: 8px;
    flex-direction: column;
  }

  .nav-grid-list-horizontal li {
    padding: 0;
    margin: 5px 0;
  }
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
  .nav-grid-container {
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
  }

  .nav-grid {
    width: 100%;
  }

  .nav-grid-case {
    min-height: 80px;
  }

  .nav-grid-list a:first-child {
    white-space: normal !important;
    overflow: visible !important;
    word-break: normal !important;
  }

  .topnav-inner {
    flex-wrap: nowrap !important;
    overflow: hidden;
  }
}

/* =============================================
   DARK MODE STYLES (SYSTEM PREFERENCE)
   ============================================= */
@media (prefers-color-scheme: dark) {
  /* Base Colors */
  :root {
    --bg: #121212;
    --panel: rgba(30, 30, 30, 0.97);
    --border: #333333;
    --text: #e0e0e0;
    --text2: #b0b0b0;
    --muted: #8a8a8a;
  }

  /* Body and Global Text */
  body {
    background: var(--bg);
    color: var(--text);
  }

  /* Navigation Bar */
  .topnav {
    background: var(--panel);
    border-bottom: 1px solid var(--border);
  }

  .primary-nav > li > a {
    color: var(--text2) !important;
  }

  .primary-nav > li > a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text) !important;
  }

  .dropdown-menu {
    background: var(--panel);
    border: 1px solid var(--border);
  }

  .dropdown-menu a {
    color: var(--text) !important;
  }

  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--accent) !important;
  }

  /* Hero Section */
  .hero {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .hero::before {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(235, 244, 251, 0.1), transparent);
  }

  .hero-eyebrow {
    color: var(--accent) !important;
    opacity: 0.8;
  }

  .hero-title {
    color: var(--text) !important;
  }

  .hero-title em {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-subtitle {
    color: var(--text2) !important;
  }

  /* Hero Stats Dark Mode */
  .hstat-num {
    color: var(--accent) !important;
  }

  .hstat-lbl {
    color: var(--muted) !important;
  }

  .stat-circle {
    box-shadow: 0 0 0 2px var(--border) !important;
  }

  /* Sections */
  .section {
    background: transparent;
  }

  .sec-h {
    color: var(--text) !important;
  }

  .sec-sub {
    color: var(--muted) !important;
  }

  /* Layer Cards */
  .layer-card {
    background: var(--panel);
    border: 1.5px solid var(--border);
  }

  .layer-card h3 {
    color: var(--text) !important;
  }

  .layer-card p {
    color: var(--text2) !important;
  }

  /* Featured and Essay Boxes */
  .featured, .essay-box {
    background: var(--panel);
    border: 2px solid var(--border);
  }

  .feat-eyebrow, .feat-title, .feat-desc {
    color: var(--text) !important;
  }

  /* Chips */
  .chip {
    color: var(--text) !important;
    border-color: var(--border) !important;
  }

  /* Buttons */
  .btn-p {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
  }

  .btn-s {
    background: transparent !important;
    color: var(--accent) !important;
    border-color: var(--border) !important;
  }

  .btn:hover, .chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  /* Footer */
  .site-footer {
    background: var(--panel);
    border-top: 1px solid var(--border);
  }

  .sf-logo {
    color: var(--text) !important;
  }

  .sf-tag {
    color: var(--muted) !important;
  }

  .sf-links {
    color: var(--text2) !important;
  }

  .sf-legal {
    color: var(--muted) !important;
  }

  /* Links */
  a {
    color: var(--accent) !important;
  }

  a:hover {
    opacity: 0.85 !important;
    text-decoration: underline !important;
  }

  /* Reference and Monograph Styles */
  .reference-highlight, .monograph-block {
    background: var(--panel);
    border: 1px solid var(--border);
  }

  .reference-meta, .monograph-year {
    color: var(--muted) !important;
  }

  .reference-content, .monograph-title {
    color: var(--text) !important;
  }

  .reference-links a, .monograph-links a {
    color: var(--accent) !important;
  }

  .open-access {
    color: var(--layer3) !important;
  }

  /* Search and Filter Controls */
  .search-box input, .monographs-search input {
    background: var(--panel);
    border: 1.5px solid var(--border);
    color: var(--text);
  }

  .filter-btn, .monographs-filter-btn {
    background: var(--panel);
    border: 1.5px solid var(--border);
    color: var(--text2);
  }

  .filter-btn:hover, .filter-btn.active,
  .monographs-filter-btn:hover, .monographs-filter-btn.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Discipline List */
  .discipline-list li {
    color: var(--text2) !important;
  }

  .discipline-square {
    box-shadow: 0 0 0 1px var(--border);
  }

  /* Nav Grid Dark Mode */
  .nav-grid-container {
    background: transparent;
  }

  .nav-grid-case {
    background: var(--panel);
    border: 1px solid var(--border);
  }

  .nav-grid-case-title {
    color: var(--text) !important;
  }

  .nav-grid-list a:first-child {
    color: var(--text2) !important;
  }

  .nav-arrow {
    color: var(--muted) !important;
  }

  /* WCAG AA Contrast for Dark Mode */
  .nav-grid-list a:first-child,
  .nav-grid-case-title,
  .sec-sub,
  .hstat-lbl {
    color: #e0e0e0 !important;
  }

  .nav-arrow,
  .discipline-list li,
  .reference-meta,
  .monograph-year {
    color: #b0b0b0 !important;
  }

  /* Restore colored borders in dark mode */
  .nav-grid-case:nth-child(1) { border-top: 3px solid #ff6b6b !important; }
  .nav-grid-case:nth-child(2) { border-top: 3px solid #4ecdc4 !important; }
  .nav-grid-case:nth-child(3) { border-top: 3px solid #45b7d1 !important; }
  .nav-grid-case:nth-child(4) { border-top: 3px solid #f9ca24 !important; }
  .nav-grid-case:nth-child(5) { border-top: 3px solid #a55eea !important; }
  .nav-grid-case:nth-child(6) { border-top: 3px solid #ff9f43 !important; }
}


/* =============================================
   FINAL RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 768px) {
  /* Ensure all text remains readable */
  .nav-grid-list a:first-child {
    font-size: 11px;
    line-height: 1.4;
  }

  /* Prevent any overflow issues */
  .nav-grid-case {
    min-height: 100px;
  }

  /* Mobile-specific adjustments for disciplinary grid */
  .disciplinary-card {
    padding: 12px;
  }

  .disciplinary-card h4 {
    font-size: 0.9rem;
  }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  body {
    background: white;
    color: black;
  }

  .topnav, .site-footer {
    display: none;
  }

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

  a {
    color: #000 !important;
    text-decoration: underline;
  }
}

/* =============================================
   SCIENTIFIC REFERENCES PAGE
   ============================================= */
#reference-results {
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.references-controls {
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto 25px;
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: var(--panel);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26, 107, 170, 0.2);
}

.search-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 12px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: #EBF4FB;
  border-color: var(--accent);
  color: var(--accent);
}

.filter-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--mono);
}

/* Reference Categories */
.reference-category {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.reference-category h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reference-category h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

/* Reference Subcategories */
.reference-subcategory {
  margin-top: 25px;
  margin-bottom: 15px;
}

.reference-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font);
  text-transform: none;
  letter-spacing: 0.02em;
}

.reference-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reference-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 15px;
}

.reference-item:last-child {
  border-bottom: none;
}

.reference-meta {
  flex-shrink: 0;
  width: 30px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.reference-content {
  flex: 1;
}

.reference-content p {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.reference-content p em {
  font-style: italic;
  color: var(--text2);
}

.reference-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.reference-links a {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

.reference-links a:hover {
  color: var(--accent);
}

.reference-links i {
  margin-right: 5px;
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

/* Results Count */
.results-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 15px;
}

/* Responsive Design for References Page */
@media (max-width: 768px) {
  .references-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    margin-bottom: 15px;
  }

  .filter-group {
    justify-content: center;
  }

  .reference-item {
    flex-direction: column;
    gap: 5px;
  }

  .reference-meta {
    width: auto;
    text-align: left;
  }
}

/* Reference Highlights in About Page */
.reference-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.reference-highlight {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  transition: all 0.2s;
}

.reference-highlight:hover {
  border-color: var(--accent);
  box-shadow: var(--sh2);
}

.reference-highlight .reference-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}

.reference-highlight .reference-content {
  font-size: 13px;
  line-height: 1.5;
}

.reference-highlight .reference-content p {
  margin: 0;
  color: var(--text);
}

.reference-highlight .reference-content a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 5px;
}

/* Open Policy Badge */
.open-policy-badge {
  display: inline-block;
  background: #9B59B6;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  margin-left: 10px;
  font-family: var(--mono);
  font-weight: 500;
}

/* =============================================
   MONOGRAPHS PAGE STYLES
   ============================================= */
.overview-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

.overview-section h1 {
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.overview-section .subtitle {
  font-size: 1.1rem;
  color: var(--text2);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-family: var(--font);
}

.overview-content {
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.featured-monographs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 2rem;
  text-align: left;
}

.featured-monographs h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.featured-monographs > p {
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.monograph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.monograph-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem;
  transition: all 0.2s;
  box-shadow: var(--sh);
}

.monograph-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
  border-color: var(--accent);
}

.monograph-block.featured {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, #EBF4FB, #F5EEF8);
}

.monograph-year {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.monograph-title {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
}

.monograph-meta {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.monograph-meta .publisher {
  font-weight: 600;
  color: var(--text);
}

.monograph-meta .relevance {
  color: var(--accent2);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.monograph-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-family: var(--mono);
}

.monograph-links a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.monograph-links a:hover {
  color: var(--accent2);
  text-decoration: underline;
}

.open-access {
  color: var(--layer3);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.monographs-controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 2rem;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.monographs-search {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.monographs-search input {
  width: 100%;
  padding: 10px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--panel);
}

.monographs-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26, 107, 170, 0.2);
}

.monographs-search i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
}

.monographs-filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.monographs-filter-btn {
  padding: 8px 12px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}

.monographs-filter-btn:hover, .monographs-filter-btn.active {
  background: #EBF4FB;
  border-color: var(--accent);
  color: var(--accent);
}

.monographs-filter-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--mono);
}

.monographs-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.monographs-list h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.explore-link {
  text-align: center;
  margin-top: 2rem;
}

.explore-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.explore-link a:hover {
  color: var(--accent2);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .monograph-grid {
    grid-template-columns: 1fr;
  }

  .monographs-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .monographs-search {
    margin-bottom: 15px;
  }

  .monographs-filter-group {
    justify-content: center;
  }

  .monograph-block {
    padding: 1rem;
  }
}

/* =============================================
   HOMEPAGE: UNIFIED STYLES FOR REFERENCES & MONOGRAPHS
   ============================================= */
.reference-highlights,
.monograph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.reference-highlight,
.monograph-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem;
  transition: all 0.2s;
  box-shadow: var(--sh);
}

.reference-highlight {
  border-left: 4px solid var(--accent);
}

.reference-highlight:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.monograph-block {
  border-left: 4px solid var(--accent2);
}

.monograph-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
  border-color: var(--accent2);
  border-left-color: var(--accent2);
}

.reference-meta,
.monograph-year {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.reference-content,
.monograph-title {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.reference-content p {
  margin: 0;
}

.reference-content a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.reference-content a:hover {
  color: var(--accent2);
  text-decoration: underline;
}

.monograph-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-family: var(--mono);
}

.monograph-links a {
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.2s;
}

.monograph-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.open-access {
  color: var(--layer3);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .reference-highlights,
  .monograph-grid {
    grid-template-columns: 1fr;
  }
}


/* =============================================
   DISCIPLINARY GRID
   ============================================= */
.disciplinary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.disciplinary-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 15px;
  transition: all 0.2s;
}

.disciplinary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh2);
  border-color: var(--accent);
}

.disciplinary-card h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 5px;
}

.disciplinary-card p {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .disciplinary-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   MATHEMATICAL FOUNDATIONS ADJUSTMENTS
   ============================================= */
.math-container {
  display: inline-block;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  max-width: 100%;
}

sub, sup {
  font-size: 0.8em;
  line-height: 1;
  vertical-align: baseline;
}

.layer-card p,
.layer-card li,
.essay-box p,
.essay-box li {
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .math-container {
    font-size: 0.9em;
    line-height: 1.5;
  }

  code {
    word-break: break-all;
    white-space: pre-wrap;
  }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.mobile-alert {
  background: #FFF8E1;
  border-left: 4px solid #FFC107;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-alert i {
  color: #FFC107;
}

/* =============================================
   TRUST SIGNALS: OPEN-ACCESS AND PEER-REVIEWED BADGES
   ============================================= */
.open-access-badge {
  font-size: 14px;
  margin-left: 6px;
  color: var(--layer3);
}

.peer-reviewed-badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--mono);
  margin-left: 8px;
}


/* =============================================
   HERO STATS MOBILE ADJUSTMENTS
   ============================================= */
@media (max-width: 768px) {
  .hero-stats {
    gap: 8px !important; /* Reduced from 10px */
    justify-content: center !important;
    padding: 0 5px !important; /* Add small padding */
  }

  .hero-stats > div {
    min-width: 60px !important; /* Reduced from 70px */
  }

  .stat-circle {
    width: 8px !important; /* Reduced from 10px */
    height: 8px !important;
    margin: 0 auto 3px !important; /* Reduced from 4px */
  }

  .hstat-num {
    font-size: 16px !important; /* Reduced from 18px */
  }

  .hstat-lbl {
    font-size: 6px !important; /* Reduced from 7px */
    letter-spacing: 0.08em !important; /* Reduced from 0.1em */
  }
}

