/* assets/css/styles.css */
:root {
  /* Palette provided */
  --dark: #003020;
  --dark2: #062A20;
  --accent: #E0D030;
  --text: #0C1F17;
  --muted: #4E6B60;
  --bg: #F6FBF8;
  --card-bg: #FFFFFF;
  --border: rgba(0, 48, 32, 0.08);
  
  /* Derived colors */
  --accent-dim: rgba(224, 208, 48, 0.15);
  --accent-hover: #D4C425;
  --shadow-sm: 0 2px 8px rgba(0, 48, 32, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 48, 32, 0.08);
  
  /* Layout */
  --max-width: 1100px;
  --radius: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;

  /* Header specific */
  --header-bg: rgba(246, 251, 248, 0.8);
}

/* --- DARK MODE OVERRIDES --- */
[data-theme="dark"] {
  --bg: #0B0F0E;         /* Deep obsidian background */
  --card-bg: #141C19;    /* Slightly elevated surface */
  --text: #E3E9E6;       /* High-contrast text */
  --muted: #80968E;      /* Sage grey muted text */
  --dark: #F6FBF8;       /* Headings flip to light */
  --dark2: #E0D030;      /* Secondary darks flip to accent */
  --border: rgba(224, 208, 48, 0.1); 
  --header-bg: rgba(11, 15, 14, 0.8);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --accent-dim: rgba(224, 208, 48, 0.08);
}

/* Global Reset */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  transition: color 0.3s ease;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: 2rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem 0; color: var(--muted); }
a { text-decoration: none; color: inherit; transition: opacity 0.2s; }

/* Ambient Background Blobs */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  top: -200px; left: -100px;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,48,32,0.05), transparent 70%);
  top: 20%; right: -100px;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 20px; height: 20px;
  background: var(--dark);
  border-radius: 4px;
}
.nav { display: flex; gap: 24px; align-items: center; }
.nav-link { 
  font-size: 0.95rem; 
  font-weight: 500; 
  color: var(--muted);
}
.nav-link:hover, .nav-link.active { color: var(--dark); }

.nav-btn {
  background: var(--dark);
  color: var(--bg);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
[data-theme="dark"] .nav-btn { background: var(--accent); color: #000; }

/* Theme Toggle Button Style */
.theme-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 8px;
  display: flex;
  transition: color 0.2s, transform 0.4s ease;
}
.theme-btn:hover { color: var(--dark); }
[data-theme="dark"] .theme-btn { transform: rotate(40deg); color: var(--accent); }

/* Header Brand Styling */
.brand-logo-container {
  width: 50px;
  height: 50px;
  background-color: #003020; /* Fixed dark for logo base */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 48, 32, 0.15);
  transition: transform 0.2s ease;
}
.brand:hover .brand-logo-container { transform: translateY(-1px); }
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.brand-text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--dark);
}

/* --- MOBILE MENU SYSTEM --- */
.menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--dark);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Animation when menu is open */
.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .hamburger::after { transform: rotate(-45deg); bottom: 0; }




/* Hero */
.hero { padding: 100px 0 80px; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-dim);
  color: var(--dark2);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 24px;
}
.hero-lead { font-size: 1.25rem; margin-top: 24px; margin-bottom: 40px; }
.text-accent { color: var(--muted); position: relative; }
.text-accent::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 0; width: 100%; height: 8px;
  background: var(--accent);
  z-index: -1;
  opacity: 0.6;
  border-radius: 4px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--dark); }
.btn-ghost:hover { border-color: var(--muted); }

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card { padding: 24px; }
.icon-box {
  width: 48px; height: 48px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

/* Bento Grid (Modules) */
.section-header { margin-bottom: 48px; max-width: 600px; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  grid-auto-rows: minmax(200px, auto);
}
.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(224, 208, 48, 0.4);
}
.wide { grid-column: span 2; }
.large { grid-column: span 2; grid-row: span 2; }

/* Card Content */
.card-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 700;
}
.card-status.live { background: var(--dark); color: var(--bg); }
.card-status.planned { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

.card-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.card-title { font-size: 1.5rem; margin-bottom: 12px; }
.bento-card p { font-size: 0.95rem; margin-bottom: auto; }

/* Locked/Blurred Card Styles */
.card-locked {
  position: relative;
  overflow: hidden;
  cursor: not-allowed; 
  border-style: dashed !important;
  opacity: 0.9;
  transform: none !important;
  box-shadow: none !important;
}

.card-locked:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--border) !important;
}

.card-content-blurred {
  -webkit-filter: blur(8px);
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  width: 100%; 
}

.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(246, 251, 248, 0.7); 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; 
}

[data-theme="dark"] .lock-overlay {
  background: rgba(11, 15, 14, 0.8);
}

.lock-overlay span {
  background: var(--dark);
  color: var(--bg);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-lg);
  filter: none !important; 
}

[data-theme="dark"] .lock-overlay span {
  background: var(--accent);
  color: #000;
}

/* Tags inside cards */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span {
  font-size: 0.8rem;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 99px;
  color: var(--muted);
  font-weight: 500;
}

/* Featured Card Special Styling */
.featured {
  background: radial-gradient(circle at top right, var(--accent-dim), var(--card-bg) 60%);
}
.featured .card-title { font-size: 2.2rem; }
.featured .card-desc { font-size: 1.1rem; max-width: 90%; }


.locked-catalog-box {
  background: var(--card-bg);
  border: 1px dashed var(--border); /* Thinner border for a cleaner look */
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  max-width: 800px;
  margin: 40px auto;
}

.locked-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.locked-tags span {
  font-size: 0.85rem;
  background: var(--accent-dim); /* Use your accent-dim for a subtle glow */
  padding: 6px 16px;
  border-radius: 99px;
  color: var(--dark);
  font-weight: 600;
}


/* --- ADDITIONAL STYLES FOR METHODS PAGE --- */

/* Ordered list styling for dispatch logic */
.spec-list {
  counter-reset: item;
  list-style-type: none;
  padding-left: 0;
}

.spec-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.spec-list li::before {
  content: counter(item);
  counter-increment: item;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Specific highlight for the finance models */
.spec-grid .spec-card h4 {
  margin-top: 0;
  color: var(--muted);
}




/* Sidebar Enhancements */
.sidebar-separator {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.sidebar-title.muted {
  opacity: 0.6;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.sidebar-pipeline-info {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 0 12px;
  opacity: 0.8;
  font-style: italic;
  border-left: 3px solid transparent;
}

.sidebar-status-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--dark);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0 12px 12px;
}

[data-theme="dark"] .sidebar-status-pill {
  background: var(--accent);
  color: #000;
}

.sidebar-pipeline-info {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 0 12px;
  margin: 12px 0;
  font-style: italic; /* Distinguishes it from active nav */
}

.sidebar-tag-pill {
  display: inline-block;
  margin: 0 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* --- MODULES PAGE SPECIFIC STYLES --- */
.catalog-layout {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  gap: 60px;
  position: relative;
}
.catalog-sidebar { width: 240px; flex-shrink: 0; }
.sidebar-inner {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.sidebar-link {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  background: rgba(0, 48, 32, 0.03);
  color: var(--dark);
}
.sidebar-link.active {
  color: var(--dark) !important;
  font-weight: 700;
  border-left-color: var(--accent);
  background: var(--accent-dim);
  padding-left: 16px; 
}

.catalog-content { flex-grow: 1; min-width: 0; padding-bottom: 30vh;}
.catalog-header { margin-bottom: 60px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.catalog-section { margin-bottom: 80px; scroll-margin-top: 120px; }
.section-title { font-size: 1.5rem; margin-bottom: 24px; color: var(--dark); display: flex; align-items: center; gap: 12px; }
.section-intro { margin-bottom: 24px; font-size: 1.05rem; }

/* Specification Card */
.spec-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.spec-card:hover {
  border-color: rgba(224, 208, 48, 0.5);
  box-shadow: var(--shadow-lg);
}
.featured-spec { border: 2px solid var(--accent); }
.spec-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 48, 32, 0.02);
}
.spec-header h3 { font-size: 1.4rem; }
.spec-id-group { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.spec-code { font-family: var(--font-mono); font-weight: 700; color: var(--accent-hover); }
.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.status-badge.live { background: var(--dark); color: var(--bg); }
.status-badge.planned { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

.spec-body { padding: 24px 32px; }
.spec-summary { font-size: 1.05rem; color: var(--dark); margin-bottom: 24px; max-width: 90%; }
.spec-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.spec-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 12px; }
.spec-list { margin: 0; padding-left: 18px; font-size: 0.95rem; color: var(--text); }
.spec-list li { margin-bottom: 6px; }

/* The Hard Wall Box */
.hard-wall-box {
  background: rgba(224, 208, 48, 0.08);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}
.meta-row { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.meta-row code { background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 4px; color: var(--dark); }
[data-theme="dark"] .meta-row code { background: rgba(255,255,255,0.1); }

/* Compact Card Variant */
.spec-card.compact .spec-header { padding: 16px 24px; }
.spec-card.compact .spec-body { padding: 16px 24px; }
.spec-card.compact h3 { font-size: 1.1rem; }
.spec-card.compact .spec-summary { font-size: 0.9rem; margin-bottom: 0; }

/* Table Card for Carbon */
.table-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
}
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 16px 24px;
  background: rgba(0,0,0,0.02);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
td { padding: 16px 24px; border-top: 1px solid var(--border); font-size: 0.95rem; }
.code-col { font-family: var(--font-mono); font-weight: 600; color: var(--accent-hover); width: 180px; }

/* Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mt-4 { margin-top: 24px; }


/* Footer Container */
.section-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: auto; /* Pushes footer to bottom if page is short */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* Brand & Copy */
.footer-brand {
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: var(--dark);
}

.footer-copy {
  max-width: 300px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}


/* Right Side Navigation */
.footer-right {
  display: flex;
  gap: 60px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- FIX 2: Footer Label Visibility --- */
.footer-label {
  display: block; /* Ensures margins work */
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark); /* Checks against your root variables */
  font-weight: 800; /* Bolder to ensure visibility */
  opacity: 0.9;
  margin-bottom: 4px;
}

/* Ensure Dark Mode visibility for label */
[data-theme="dark"] .footer-label {
  color: var(--accent); /* Uses yellow in dark mode for pop */
}

.footer-link {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}





















/* Responsive */
@media (max-width: 900px) {

  .menu-toggle { display: block; }

  .header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .theme-btn {
    order: -1; /* Puts theme toggle at the top of the mobile list */
    margin-bottom: 20px;
  }

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    flex-direction: column;
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }
  
  .nav.active {
    right: 0; 
    visibility: visible;
    pointer-events: all;
    opacity: 1;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    margin-top: 20px;
    width: 100%;
  }

  .hero-actions {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 12px; /* Add space between stacked buttons */
    width: 100%;
    align-items: center; /* Center them if your hero text is centered */
  }

  .hero-actions .btn {
    width: 100%; /* Make buttons full-width on mobile */
    max-width: 320px; /* Prevent them from becoming too wide on tablets */
    justify-content: center; /* Center text inside the button */
    padding: 16px; /* Larger tap target for mobile users */
  }




  .catalog-content { 
    padding-bottom: 10vh; 
  }
  
  .catalog-layout { 
    flex-direction: column; 
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .bento-card.large, 
  .bento-card.wide {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    padding: 24px; 
  }

  .featured .card-title {
    font-size: 1.8rem; 
  }

  .featured .card-desc {
    font-size: 1rem;
    max-width: 100%;
  }

  .card-content-blurred {
    filter: blur(4px); 
  }

  .grid-3 {
    grid-template-columns: 1fr; 
    gap: 16px; 
  }

  .feature-card {
    padding: 16px;
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .icon-box {
    margin-bottom: 12px;
  }

  .catalog-layout { 
    padding-top: 20px;
    flex-direction: column;
  }
  
  .catalog-sidebar {
    position: sticky;
    top: 70px; 
    z-index: 90;
    width: calc(100% + 48px); 
    margin: 0 -24px 30px -24px; 
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    overflow: hidden;
  }

  .sidebar-status-pill, 
  .sidebar-title, 
  .sidebar-separator, 
  .sidebar-pipeline-info, 
  .sidebar-tag-pill {
    display: none !important;
  }


  .catalog-section {
    scroll-margin-top: 140px; 
  }

  .sidebar-inner {
    display: flex;
    flex-direction: row !important; 
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar-inner::-webkit-scrollbar { display: none; }

  .sidebar-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--border) !important;
    background: var(--card-bg);
    white-space: nowrap;
    color: var(--muted);
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .sidebar-link.active {
    border-left: 1px solid var(--dark) !important; 
    border-color: var(--dark) !important;
    background: var(--dark) !important;
    color: var(--bg) !important;
  }

  [data-theme="dark"] .sidebar-link.active {
    background: var(--accent) !important;
    color: #000 !important;
    border-color: var(--accent) !important;
  }

  .sidebar-title { display: none; }
  
  .spec-grid, .grid-2 { 
    grid-template-columns: 1fr; 
    gap: 24px; 
  }
  
  .wide, .large { 
    grid-column: span 1; 
    grid-row: span 1; 
  }

  .connect-card {
    padding: 24px;
    gap: 24px;
  }

  .contact-grid {
    margin-top: 20px;
    gap: 32px;
  }

  .spec-list {
    padding-left: 0 !important; /* Remove the big left indentation */
    list-style-position: inside; /* Keeps numbers aligned with text */
  }

  .spec-list li {
    display: flex;
    flex-direction: column; /* This stacks label/description vertically */
    align-items: flex-start;
    margin-bottom: 24px; /* Space between the priority steps */
    padding-left: 0;
  }

  .spec-list li::marker {
    font-weight: bold;
    color: var(--accent);
  }

  .spec-list li strong {
    display: block;
    margin-top: 8px; /* Space between number and label */
    margin-bottom: 4px; /* Space between label and description */
    font-size: 1.1rem;
    color: var(--dark);
  }

  .spec-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
  }

  .link-value {
    font-size: clamp(0.8rem, 4vw, 1.1rem) !important;
    word-break: break-all; 
    display: block;
    max-width: 100%;
    line-height: 1.4;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  
  .footer-right {
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* Allows links to wrap if screen is very narrow */
  }
}