/* ============================================
   LAYERED GREY — DARK MODE OVERRIDES
   Activated by html[data-theme="dark"]
   ============================================ */

html[data-theme="dark"] { color-scheme: dark; background: #1c1c1c; }

html[data-theme="dark"] body {
  background: #1c1c1c;
  color: #e4e4e4;
}

/* ── Nav ── */
html[data-theme="dark"] nav {
  border-bottom-color: rgba(255,255,255,0.07);
}
html[data-theme="dark"] .nav-brand { color: #e4e4e4; }
html[data-theme="dark"] .nav-brand:hover { opacity: 0.6; }
html[data-theme="dark"] .nav-links a { color: #888; }
html[data-theme="dark"] .nav-links a:hover { color: #e4e4e4; }
html[data-theme="dark"] .nav-badge { background: #272727; color: #555; }

/* ── Theme toggle ── */
html[data-theme="dark"] #theme-toggle { color: #484848; }
html[data-theme="dark"] #theme-toggle:hover { color: #e4e4e4; }

/* ── Glass cards (What We Do + In Practice) ── */
html[data-theme="dark"] .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}
html[data-theme="dark"] .card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.07);
}
html[data-theme="dark"] .card-icon { color: #666; }
html[data-theme="dark"] .card-title { color: #e0e0e0; }
html[data-theme="dark"] .card-body { color: #9a9a9a; }
html[data-theme="dark"] .card-category { color: #686868; }
html[data-theme="dark"] .card-desc { color: #8a8a8a; }
html[data-theme="dark"] .card-arrow { color: #606060; }
html[data-theme="dark"] .card:hover .card-arrow { color: #999; }

/* ── Page headers (What We Do, In Practice) ── */
html[data-theme="dark"] .page-eyebrow { color: #666; }
html[data-theme="dark"] .page-title { color: #e4e4e4; }
/* .page-sub override moved to additions block below */
html[data-theme="dark"] .footer-text { color: #555; }
html[data-theme="dark"] .footer-cta { color: #686868; border-bottom-color: #444; }
html[data-theme="dark"] .footer-cta:hover { color: #e4e4e4; border-bottom-color: #777; }

/* ── Article pages ── */
html[data-theme="dark"] .article-tag { color: #686868; }
html[data-theme="dark"] .article-tag:hover { color: #e4e4e4; }
html[data-theme="dark"] .article-divider { background: #444; }
html[data-theme="dark"] .article-category { color: #666; }
html[data-theme="dark"] .article-title { color: #e4e4e4; }
html[data-theme="dark"] .article-body { color: #b8b8b8; }
/* .article-body a override moved to additions block below */


/* ── Callout ── */
html[data-theme="dark"] .callout {
  background: #232323;
  border-left-color: #3a3a3a;
}
html[data-theme="dark"] .callout p { color: #777; }
html[data-theme="dark"] .callout strong { color: #e0e0e0; }

/* ── Article footer ── */
html[data-theme="dark"] .article-footer { border-top-color: #2e2e2e; }
html[data-theme="dark"] .footer-back { color: #666; }
html[data-theme="dark"] .footer-back:hover { color: #e4e4e4; }
html[data-theme="dark"] .footer-contact { color: #686868; border-bottom-color: #444; }
html[data-theme="dark"] .footer-contact:hover { color: #e4e4e4; border-bottom-color: #777; }

/* ── Site footer ── */
html[data-theme="dark"] footer { border-top-color: #252525; }

/* ── Contact form ── */
html[data-theme="dark"] .card-title { color: #e0e0e0; }
html[data-theme="dark"] .card-sub { color: #555; }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.09);
  color: #e4e4e4;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #3a3a3a; }
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
html[data-theme="dark"] label { color: #484848; }
html[data-theme="dark"] .btn-submit {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  color: #e4e4e4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
html[data-theme="dark"] .btn-submit:hover {
  background: rgba(255,255,255,0.11);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
html[data-theme="dark"] .success-msg p { color: #777; }

/* ── Sitemap rows ── */
html[data-theme="dark"] .row {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
html[data-theme="dark"] .row:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}
html[data-theme="dark"] .row-title { color: #e0e0e0; }
html[data-theme="dark"] .row-desc { color: #666; }
html[data-theme="dark"] .row-file,
html[data-theme="dark"] .row-cat,
html[data-theme="dark"] .row-num { color: #555; }
html[data-theme="dark"] .row-arrow { color: #484848; }
html[data-theme="dark"] .row:hover .row-arrow { color: #777; }
html[data-theme="dark"] .section-label { color: #555; border-bottom-color: #252525; }

/* ── Homepage (index.html) ── */
html[data-theme="dark"] .brand { color: #e4e4e4; }
html[data-theme="dark"] .brand-sub { color: #484848; }
html[data-theme="dark"] .divider {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.18) 30%,
    rgba(255,255,255,0.18) 70%,
    rgba(255,255,255,0) 100%
  );
}
html[data-theme="dark"] .btn {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  color: #e4e4e4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
html[data-theme="dark"] .btn:hover {
  background: rgba(255,255,255,0.11);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
html[data-theme="dark"] .cta-rule { background: rgba(255,255,255,0.12); }

/* ── About page ── */
html[data-theme="dark"] .about-name { color: #e4e4e4; }
html[data-theme="dark"] .about-role { color: #686868; }
html[data-theme="dark"] .about-body p { color: #b8b8b8; }
html[data-theme="dark"] .about-photo-placeholder { background: #2a2a2a; border-color: #333; }
html[data-theme="dark"] .about-divider { border-top-color: #2e2e2e; }
html[data-theme="dark"] .about-link { color: #777; border-bottom-color: #444; }
html[data-theme="dark"] .about-link:hover { color: #e4e4e4; border-bottom-color: #777; }
html[data-theme="dark"] .about-github-note { color: #555; }

/* ── Article cross-links (light mode style handled in page CSS) ── */
html[data-theme="dark"] .article-body a { color: #c0c0c0; text-decoration-color: #3a3a3a; }
html[data-theme="dark"] .article-body a:hover { color: #e4e4e4; text-decoration-color: #777; }

/* ── Page intro text (was missing — #444 is unreadable on dark bg) ── */
html[data-theme="dark"] .page-intro { color: #909090; }

/* ── Page sub text (was #484848 — too dark on #1c1c1c bg) ── */
html[data-theme="dark"] .page-sub { color: #777 !important; }

/* ── Section rule (dark line invisible on dark bg → subtle white line) ── */
html[data-theme="dark"] .section-rule {
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.08) 20%,
    rgba(255,255,255,0.08) 80%,
    rgba(255,255,255,0) 100%
  );
}

/* ── Callout body text (lighten slightly for comfort) ── */
html[data-theme="dark"] .callout p { color: #888; }

/* ── Article date ── */
html[data-theme="dark"] .article-date { color: #686868; }

/* ── Skip link (dark mode) ── */
html[data-theme="dark"] .skip-link { background: #e4e4e4; color: #1c1c1c; }

/* ── Focus indicators (dark mode) ── */
html[data-theme="dark"] :focus-visible { outline-color: #e4e4e4; }
html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] textarea:focus-visible { outline-color: #e4e4e4; box-shadow: 0 0 0 3px rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); }

/* ── aria-current nav link ── */
html[data-theme="dark"] .nav-links a[aria-current="page"] { color: #c8c8c8; }

/* ── How it starts section (what-we-do.html) ── */
html[data-theme="dark"] .how-heading { color: #e4e4e4; }
html[data-theme="dark"] .how-body { color: #909090; }

/* ── Positioning diagram (positioning.html) ── */
html[data-theme="dark"] .diagram {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}
html[data-theme="dark"] .diagram-axis { background: rgba(255,255,255,0.025); border-bottom-color: rgba(255,255,255,0.06); }
html[data-theme="dark"] .axis-label { color: #777; }
html[data-theme="dark"] .axis-track { background: rgba(255,255,255,0.12); }
html[data-theme="dark"] .axis-track::before,
html[data-theme="dark"] .axis-track::after { background: #555; }
html[data-theme="dark"] .col-divider { background: rgba(255,255,255,0.07); }
html[data-theme="dark"] .col-center { background: rgba(255,255,255,0.03); }
html[data-theme="dark"] .col-tag { color: #686868; }
html[data-theme="dark"] .col-center .col-tag { color: #888; }
html[data-theme="dark"] .col-title { color: #e0e0e0; }
html[data-theme="dark"] .attr-key { color: #666; }
html[data-theme="dark"] .col-center .attr-key { color: #7a7a7a; }
html[data-theme="dark"] .attr-val { color: #888; }
html[data-theme="dark"] .col-center .attr-val { color: #aaa; }
html[data-theme="dark"] .diagram-note { background: rgba(255,255,255,0.02); border-top-color: rgba(255,255,255,0.06); color: #666; }

/* ── Vertical model diagram (about.html) ── */
html[data-theme="dark"] .model-eyebrow { color: #666; }
html[data-theme="dark"] .model-card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
html[data-theme="dark"] .model-card + .model-card {
  border-top-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .model-card-highlight {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 4px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}
html[data-theme="dark"] .model-tag { color: #888; }
html[data-theme="dark"] .model-card-highlight .model-tag { color: #999; }
html[data-theme="dark"] .model-title { color: #e8e8e8; }
html[data-theme="dark"] .model-key { color: #888; }
html[data-theme="dark"] .model-card-highlight .model-key { color: #999; }
html[data-theme="dark"] .model-val { color: #777; }
html[data-theme="dark"] .model-card-highlight .model-val { color: #9a9a9a; }
html[data-theme="dark"] .model-note { color: #666; }
html[data-theme="dark"] .v-axis-label { color: #555; }
html[data-theme="dark"] .v-axis-track { background: rgba(255,255,255,0.12); }
html[data-theme="dark"] .v-axis-track::before,
html[data-theme="dark"] .v-axis-track::after { background: #555; }

/* ============================================
   SHARED BASE STYLES
   Added here as dark.css is the only shared
   stylesheet across all pages.
   ============================================ */

/* ── Global palette — cool neutral base ── */
html, body {
  background: #f0f1f2;
}

/* ── Global craft polish ── */

/* Smooth scroll — respects reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Page entrance fade — main content */
@keyframes lg-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  main {
    animation: lg-fade-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

/* Improved typography rendering */
body {
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Refined link underlines — consistent text-underline-offset */
a {
  text-underline-offset: 2px;
}

/* Nav active state — subtle underline indicator */
.nav-links a[aria-current="page"] {
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  border-radius: 1px;
}

/* Card hover — light mode lift (complements dark mode version already in dark.css) */
.card {
  transition: box-shadow 0.22s ease, transform 0.18s ease;
}
.card:hover {
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Nav link hover — add smooth underline slide (excludes nav-cta) */
.nav-links a:not(.nav-cta) {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #2e2e2e;
  opacity: 0.25;
  border-radius: 1px;
  transition: width 0.2s ease;
}
.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}
.nav-links a[aria-current="page"]:not(.nav-cta)::after {
  width: 100%;
  opacity: 0.35;
}

/* Button — add will-change for buttery transforms */
.btn, .btn-submit {
  will-change: transform;
}

/* ── Cookie consent banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.85rem 2rem;
  background: rgba(247, 247, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.cookie-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: #777;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.cookie-text a {
  color: #555;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.cookie-text a:hover { color: #2e2e2e; }

.cookie-btn {
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2e2e2e;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.22);
}

@media (max-width: 520px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
  }
}

/* ── Top nav dark mode (shared — inner pages set bg inline, this overrides it) ── */
html[data-theme="dark"] body > nav {
  background: rgba(28, 28, 28, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

/* ── Footer nav reset — prevents inheriting sticky top-nav styles ── */
nav.footer-nav {
  position: static !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  padding: 0 !important;
  z-index: auto !important;
  top: auto !important;
}

/* ── Page hero section (inner pages — mirrors homepage hero tone) ── */
.page-hero-band {
  background: #e4e5e6;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] .page-hero-band {
  background: #1e2124;
}

/* Band canvas — mirrors #hero-wf on index.html */
.page-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 768px) {
  .page-hero-canvas { display: none; }
}

.page-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Article hero: tighter padding since title remains in article body too */
.page-hero-article {
  padding-bottom: 2rem;
}

.page-hero-inner .page-eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}
html[data-theme="dark"] .page-hero-inner .page-eyebrow { color: #555; }

.page-hero-inner .page-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
html[data-theme="dark"] .page-hero-inner .page-title { color: #e0e0e0; }

.page-hero-inner .page-intro {
  font-size: 0.95rem;
  font-weight: 300;
  color: #666;
  line-height: 1.65;
  max-width: 600px;
}
html[data-theme="dark"] .page-hero-inner .page-intro { color: #777; }

/* Article hero metadata in hero band */
.page-hero-inner .article-eyebrow { margin-bottom: 0.75rem; }
.page-hero-inner .article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #1a1a1a;
}
html[data-theme="dark"] .page-hero-inner .article-title { color: #e0e0e0; }

/* ── Nav CTA button (shared across all pages) ── */
/* a.nav-cta for specificity — beats .nav-links a in inner page inline CSS */
a.nav-cta {
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 6px;
  color: #2e2e2e;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
a.nav-cta:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.32);
}
html[data-theme="dark"] a.nav-cta {
  color: #d8d8d8;
  border-color: rgba(255, 255, 255, 0.2);
}
html[data-theme="dark"] a.nav-cta:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ── Footer nav (shared base) ── */
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.72rem; font-weight: 300; color: #444; text-decoration: none; letter-spacing: 0.04em; transition: color 0.15s; }
.footer-nav a:hover { color: #1a1a1a; }
.footer-left { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-copy { font-size: 0.72rem; font-weight: 300; color: #2e2e2e; letter-spacing: 0.04em; }
.footer-tagline { font-size: 0.68rem; font-weight: 300; color: #555; letter-spacing: 0.04em; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
/* Override inner-page .footer-inner max-width/margin/justify constraints */
footer .footer-inner { max-width: none; margin: 0; justify-content: space-between; }

/* ── Craft polish dark mode overrides ── */
html[data-theme="dark"] .nav-links a:not(.nav-cta)::after { background: #e4e4e4; opacity: 0.2; }
html[data-theme="dark"] .nav-links a[aria-current="page"]:not(.nav-cta)::after { opacity: 0.3; }
html[data-theme="dark"] .nav-links a:not(.nav-cta):hover::after { opacity: 0.25; }

html[data-theme="dark"] .card:hover { transform: translateY(-2px); }

/* ── Cookie banner dark mode ── */
html[data-theme="dark"] #cookie-banner {
  background: rgba(28, 28, 28, 0.92);
  border-top-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .cookie-text { color: #666; }
html[data-theme="dark"] .cookie-text a { color: #777; text-decoration-color: #3a3a3a; }
html[data-theme="dark"] .cookie-text a:hover { color: #e4e4e4; }
html[data-theme="dark"] .cookie-btn {
  color: #e4e4e4;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .cookie-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ── Footer dark mode ── */
html[data-theme="dark"] .footer-copy { color: #d0d0d0; }
html[data-theme="dark"] .footer-tagline { color: #aaa; }
html[data-theme="dark"] .footer-nav a { color: #bbb; }
html[data-theme="dark"] .footer-nav a:hover { color: #fff; }

/* ── Legal pages (accessibility, terms, privacy) ── */
html[data-theme="dark"] .legal-body { color: #b0b0b0; }
html[data-theme="dark"] .legal-body h2 { color: #e0e0e0; }
html[data-theme="dark"] .legal-body a { color: #c0c0c0; text-decoration-color: #3a3a3a; }
html[data-theme="dark"] .legal-body a:hover { color: #e4e4e4; text-decoration-color: #777; }
html[data-theme="dark"] .page-date { color: #555; }
html[data-theme="dark"] .page-eyebrow { color: #555; }

/* ── Hamburger nav (mobile) ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  margin-left: auto;
  color: #888;
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.15s;
}
.nav-hamburger:hover { color: #2e2e2e; }
html[data-theme="dark"] .nav-hamburger { color: #666; }
html[data-theme="dark"] .nav-hamburger:hover { color: #e4e4e4; }

@media (max-width: 680px) {
  body > nav {
    flex-wrap: wrap;
    padding: 1rem 1.5rem !important;
  }
  .nav-hamburger { display: block; }
  #theme-toggle { margin-left: 0.5rem !important; }
  .nav-links {
    display: none !important;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0 !important;
    margin-left: 0 !important;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 0.5rem;
  }
  html[data-theme="dark"] .nav-links {
    border-top-color: rgba(255, 255, 255, 0.07);
  }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
  }
  .nav-links a {
    padding: 0.6rem 0;
    font-size: 0.88rem;
    width: 100%;
  }
  a.nav-cta {
    margin-top: 0.35rem;
    border: none !important;
    padding: 0.6re