/* GENERATED by scripts/build-chrome-css.mjs from src/Navbar.css and src/Footer.css. Do not edit. */
.navbar, .footer {
  /* Core Palette - High End Lab Aesthetic */
  --bg-primary: #ffffff;
  --bg-secondary: #fdfdfd;
  --bg-surface: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.7);
  
  /* Accent Colors */
  --accent-1: #0f172a;     /* Deep Sapphire */
  --accent-2: #10b981;     /* Emerald */
  --accent-3: #f59e0b;     /* Amber */
  --accent-4: #6366f1;     /* Indigo */
  
  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: var(--accent-2);

  /* Borders */
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  --border-accent: rgba(16, 185, 129, 0.3);

  /* Gradients */
  --grad-main: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.8);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Fonts */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;

  /* Layout */
  --navbar-h: 72px;
  --max-w: 1280px;
  font-family: var(--font-body);
}
.navbar *, .navbar *::before, .navbar *::after,
.footer *, .footer *::before, .footer *::after { box-sizing: border-box; }
.navbar a, .footer a { text-decoration: none; }
.navbar ul, .footer ul { list-style: none; margin: 0; padding: 0; }
.navbar .container, .footer .container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
/* The navbar is fixed; keep page content clear of it. */
body.has-site-navbar { padding-top: 72px; }

/* ========= NAVBAR ========= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
  height: 64px;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1rem;
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.navbar-brand:hover { opacity: 0.85; color: inherit; }

.brand-text-1 {
  color: var(--text-primary);
}

.brand-text-2 {
  color: var(--accent-2);
}

.brand-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-1);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent-1);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Nav */
.navbar-nav {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  height: 100%;
}

.nav-item-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  padding: 0 1.1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active-link::after {
  width: 60%;
}

.nav-link.active-link {
  color: var(--accent-1);
}

.dropdown-caret {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-item-dropdown:hover .dropdown-caret {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  /* Opaque: .navbar sets backdrop-filter, which makes it a backdrop root, so a
     backdrop-filter here has nothing to blur and page text reads through the
     panel (most visible over article headings on the server-rendered pages). */
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-width: 220px;
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1005;
  box-shadow: var(--shadow-premium);
}

.dropdown-menu.dropdown-mega {
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1.25rem 0.5rem;
  gap: 0.5rem;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.55rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.dropdown-link::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  width: 3px;
  height: 14px;
  background: var(--grad-main);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.dropdown-link:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.03);
  padding-left: 1.75rem;
}

.dropdown-link:hover::before {
  transform: translateY(-50%) scaleX(1);
}

/* Nav Actions */
.navbar-actions-desktop {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-only-item {
  display: none !important;
}

.nav-search-wrapper {
  position: relative;
}

.nav-search {
  width: 220px;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.03);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: all 0.25s ease;
  outline: none;
}

.nav-search::placeholder { color: var(--text-muted); }

.nav-search:focus {
  width: 280px;
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.nav-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.nav-icon-btn {
  background: rgba(0,0,0,0.03);
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: all 0.2s ease;
  position: relative;
}

.nav-icon-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(0,0,0,0.06);
}

/* Mobile Actions Header */
.navbar-mobile-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile Toggle */
.navbar-toggle {
  display: flex;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  margin-left: 0.5rem;
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
@media (max-width: 1100px) {
  .nav-search-wrapper { display: none; }
}

@media (max-width: 960px) {
  .navbar-nav, .navbar-actions-desktop { display: none; }
  .navbar-container {
    padding: 0 1.25rem;
  }
  
  .navbar-mobile-actions { 
    display: flex;
    margin-left: auto;
  }
  
  .navbar.menu-open {
    height: 100vh;
    background: #ffffff;
    align-items: flex-start;
  }
  
  .navbar-nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: #ffffff;
    padding: 1rem 0;
    overflow-y: auto;
    z-index: 9999;
    gap: 0;
  }

  .nav-item, .nav-item-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    height: auto !important;
    padding: 1rem 1.5rem !important;
    color: var(--text-primary) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    background: transparent;
  }
  
  .nav-link::after { display: none; }
  
  .dropdown-menu {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 1rem 0 !important;
    background: transparent !important;
    width: 100% !important;
    height: auto !important;
  }

  .dropdown-menu.dropdown-mega {
    grid-template-columns: 1fr;
    display: block !important;
    /* The desktop 480px min-width overflows a phone and clips the links. */
    min-width: 0 !important;
  }

  .dropdown-link {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0.6rem 2.5rem !important;
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
  }

  .dropdown-link:hover {
    padding-left: 2.75rem !important;
    background: rgba(0,0,0,0.02) !important;
  }

  .search-item-mobile {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .search-item-mobile .nav-search-wrapper {
    display: block;
  }

  .search-item-mobile .nav-search {
    width: 100%;
    background: rgba(0,0,0,0.05);
  }

  .mobile-only-item {
    display: block !important;
  }

  .logout-btn-mobile {
    color: var(--badge-orange) !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    text-align: left;
    padding: 1rem 1.5rem !important;
  }
}

/* Profile Dropdown */
.nav-profile-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-avatar {
  width: 24px;
  height: 24px;
  background: var(--grad-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

.profile-trigger:hover .profile-avatar {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  transform: translateY(10px);
  /* Opaque for the same reason as .dropdown-menu above. */
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-width: 200px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1005;
  box-shadow: var(--shadow-premium);
  margin-top: 0.5rem;
}

.nav-profile-dropdown:hover .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-header {
  padding: 0.5rem 1rem 0.75rem;
}

.profile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.profile-menu-item:hover {
  background: rgba(0,0,0,0.03);
  color: var(--text-primary);
}

.profile-menu-item svg {
  opacity: 0.7;
}

/* =============================================================================
   Footer — 2026 refresh.

   Now a dark base rather than a light grey panel. On the home page it picks up
   directly from the dark stats band above it, and on every other page it gives
   the document a definite close instead of fading out. Because the surface
   flipped, every colour here is explicit: the old rules inherited
   --text-secondary / --accent-1, which are near-black and were invisible once
   the background went dark.
   ============================================================================= */

.footer {
  --ft-fg: #e2e8f0;
  --ft-fg-dim: #94a3b8;
  --ft-fg-faint: #64748b;
  --ft-mint: #34d399;
  --ft-line: rgba(255, 255, 255, 0.09);
  --ft-line-strong: rgba(255, 255, 255, 0.16);
  --ft-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  margin-top: auto;
  overflow: hidden;
  background:
    radial-gradient(44rem 22rem at 8% 0%, rgba(16, 185, 129, 0.1), transparent 60%),
    radial-gradient(40rem 22rem at 92% 10%, rgba(99, 102, 241, 0.12), transparent 62%),
    #0f172a;
  color: var(--ft-fg);
}

/* Hairline that fades in from the accents rather than a flat border. */
.footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.5) 22%,
    rgba(99, 102, 241, 0.5) 68%,
    transparent
  );
}

.footer-main {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

/* brand + three link columns + newsletter */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

/* ------------------------------- brand ---------------------------------- */

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.footer-logo-1 { color: #ffffff; }
.footer-logo-2 { color: var(--ft-mint); }

.footer-tagline {
  max-width: 19rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ft-fg-dim);
  text-wrap: pretty;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 1.75rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--ft-line);
  border-bottom: 1px solid var(--ft-line);
}

.footer-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-meta-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.footer-meta-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ft-fg-faint);
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.footer-social-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ft-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ft-fg-dim);
  cursor: pointer;
  transition: color 0.3s var(--ft-ease), border-color 0.3s var(--ft-ease),
    background-color 0.3s var(--ft-ease), transform 0.3s var(--ft-ease);
}

.footer-social-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: var(--ft-mint);
}

/* ---------------------------- link columns ------------------------------ */

.footer-col-title {
  margin-bottom: 1.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ft-fg-faint);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ft-fg-dim);
  /* Only colour transitions — the old rule animated padding-left, which
     reflows the column on every hover. */
  transition: color 0.2s var(--ft-ease);
}

.footer-links a:hover {
  color: #ffffff;
}

/* ----------------------------- newsletter ------------------------------- */

.footer-newsletter-desc {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ft-fg-dim);
}

.footer-newsletter-form {
  display: flex;
  border: 1px solid var(--ft-line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.25s var(--ft-ease), box-shadow 0.25s var(--ft-ease);
}

.footer-newsletter-form:focus-within {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.footer-newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.footer-newsletter-input::placeholder {
  color: var(--ft-fg-faint);
}

.footer-newsletter-btn {
  flex: 0 0 auto;
  padding: 0 1.4rem;
  border: none;
  background: var(--ft-mint);
  color: #06281d;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.25s var(--ft-ease);
}

.footer-newsletter-btn:hover {
  background: #6ee7b7;
}

/* ------------------------------ bottom bar ------------------------------ */

.footer-bottom-wrapper {
  border-top: 1px solid var(--ft-line);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0;
}

.footer-copyright {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ft-fg-faint);
}

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

.footer-bottom-links a {
  font-size: 0.84rem;
  color: var(--ft-fg-faint);
  transition: color 0.2s var(--ft-ease);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Visible keyboard focus against the dark surface. */
.footer a:focus-visible,
.footer button:focus-visible,
.footer input:focus-visible {
  outline: 2px solid var(--ft-mint);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-newsletter-col { grid-column: 2 / -1; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-newsletter-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { gap: 1.5rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
  .footer-bottom-links { justify-content: center; }
}

