/* MingleDB — Zapier-inspired (see DESIGN.md); brand accent #10b8ad */
:root {
  --accent: #10b8ad;
  --accent-rgb: 16, 184, 173;
  --accent-dark: #0d9e94;
  --accent-soft: rgba(16, 184, 173, 0.14);
  --zapier-black: #201515;
  --cream: #fffefb;
  --cream-alt: #fffdf9;
  --charcoal: #36342e;
  --muted: #939084;
  --sand: #c5c0b1;
  --sand-light: #eceae3;
  --mid-warm: #b5b2aa;
  --bg: var(--cream);
  --surface: var(--cream);
  --surface-muted: var(--sand-light);
  --text: var(--zapier-black);
  --text-muted: var(--charcoal);
  --border: var(--sand);
  --border-strong: var(--mid-warm);
  --header-footer-text: #fffefb;
  --radius-sm: 4px;
  --radius: 5px;
  --radius-lg: 8px;
  --gray-light: var(--sand-light);

  /* Legacy tokens (inline docs / tables) */
  --mint: var(--accent);
  --mint-light: #2dd4bf;
  --mint-pale: #c5ebe7;
  --mint-50: #e8f7f5;
  --text-primary: var(--text);
  --text-secondary: var(--text-muted);
  /* Border-first layout: avoid elevation shadows */
  --shadow-sm: none;
  --shadow-md: none;

  /* Footer — brand accent */
  --footer-bg: #10b8ad;
  --footer-text: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.88);
  --footer-subtle: rgba(255, 255, 255, 0.65);
  --footer-link: #ffffff;
  --footer-link-hover: #e8fffc;
  --footer-border: rgba(255, 255, 255, 0.22);
  --footer-divider: rgba(255, 255, 255, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: Inter, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.container-fluid {
  width: min(1120px, calc(100% - 3rem));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease;
}

body.at-hero .site-header {
  background: var(--accent);
}

.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.75rem 0 1.75rem;
  border-top: 1px solid var(--footer-border);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo__icon {
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
}

/* Teal PNG/SVG-as-img: show white on accent header (inline SVG uses currentColor) */
.site-header .logo img.logo__icon {
  filter: brightness(0) invert(1);
}

.logo:hover {
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.nav-links .github-link {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.5rem 1rem;
  box-shadow: none;
}

.nav-links .github-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent);
  box-shadow: none;
}

.nav-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-links .github-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Why MingleDB? — desktop dropdown */
.nav-item--has-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  appearance: none;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  transition: background-color 0.15s ease;
}

.nav-dropdown-toggle:hover,
.nav-item--has-dropdown.nav-dropdown-open .nav-dropdown-toggle {
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-dropdown-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 1px;
  opacity: 0.9;
  transition: transform 0.15s ease;
}

.nav-item--has-dropdown.nav-dropdown-open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.2rem;
  min-width: 13rem;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(32, 21, 21, 0.12);
  z-index: 1002;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--zapier-black);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  background: var(--sand-light);
  color: var(--accent);
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown,
.nav-item--has-dropdown.nav-dropdown-open .nav-dropdown {
  display: block;
}

.nav-dropdown--docs {
  max-height: min(75vh, 26rem);
  overflow-y: auto;
}

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

.nav-drawer__sub-label {
  display: block;
  padding: 0.65rem 1.5rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.nav-drawer__sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
}

.nav-drawer__sublist li {
  margin: 0;
}

.nav-drawer__links .nav-drawer__sublist a {
  padding-left: 2.25rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-backdrop,
.nav-drawer {
  display: none;
}

main {
  flex: 1;
  padding: 0 0 4rem 0;
}

section {
  margin-bottom: 3rem;
}

section:last-of-type {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 0.98;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.08;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 74px);
  text-align: left;
  padding: 4rem 0 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--cream-alt) 0%, var(--cream) 100%);
  border: none;
  box-shadow: none;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
  color: var(--accent);
}

.hero-slogan {
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-weight: 600;
  color: var(--zapier-black);
  max-width: 38em;
  margin: 0 0 1.35rem 0;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.hero-slogan code {
  font-size: 0.92em;
  font-family: "Ubuntu Mono", Consolas, monospace;
  font-weight: 600;
  color: var(--accent-dark);
}

.hero-lead {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  color: var(--charcoal);
  max-width: 42em;
  margin: 0 0 1.5rem 0;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.hero-badges img {
  height: 26px;
}

.features-grid,
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.feature-card,
.package-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  box-shadow: none;
}

.doc-section {
  background: transparent;
  border-radius: var(--radius);
  border: none;
  box-shadow: none;
}

.feature-card {
  padding: 1.25rem;
}

.feature-card:hover,
.package-card:hover {
  border-color: var(--accent);
  transition: border-color 0.15s ease;
}

.feature-card h3,
.package-card h3 {
  margin-bottom: 0.45rem;
}

.feature-card p,
.package-card p,
.downloads-intro,
.download-section__desc,
.hero-summary__lead,
.accordion__content p,
.footer-description {
  color: var(--text-muted);
}

.doc-section {
  padding: 1.25rem;
  margin-bottom: 1.1rem;
}

pre,
code:not(.install-box__code) {
  font-family: "Ubuntu Mono", Consolas, monospace;
  background: var(--sand-light);
  color: var(--zapier-black);
  padding: 0.2em 0.4em;
  border-radius: var(--radius);
  font-size: 0.9em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  border: 1px solid var(--sand);
}

pre code {
  padding: 0;
  background: none;
}

.vscode-editor,
.terminal-editor,
.install-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--sand);
  box-shadow: none;
  margin: 0.75rem 0;
  background: var(--cream);
}

.vscode-editor__tabs,
.terminal-editor__tabs,
.install-box__titlebar {
  display: flex;
  align-items: center;
  background: #eef2f4;
  border-bottom: 1px solid var(--border);
  padding: 0 10px;
  min-height: 36px;
}

.vscode-editor__tab,
.terminal-editor__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-family: "Ubuntu Mono", Consolas, monospace;
  font-size: 13px;
  color: #334155;
}

.vscode-editor__tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.vscode-editor__body,
.terminal-editor__body,
.install-box__body {
  display: flex;
  background: #fff;
}

.vscode-editor__line-nums,
.terminal-editor__line-nums,
.install-box__line-num {
  padding: 12px 10px;
  background: #f7fafb;
  color: #64748b;
  text-align: right;
  user-select: none;
  border-right: 1px solid var(--border);
  min-width: 2.3em;
  font-family: "Ubuntu Mono", Consolas, monospace;
  font-size: 13px;
}

.vscode-editor__code,
.terminal-editor__code,
.install-box .install-box__code {
  flex: 1;
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  background: #fff;
  border: none;
  color: #1e293b;
  font-size: 13px;
}

.install-box__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #f7fafb;
  border: none;
  border-left: 1px solid var(--border);
  color: #475569;
  cursor: pointer;
}

.install-box__copy:hover {
  background: #eef2f4;
}

.install-box__copy svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.page-content {
  padding: 2.25rem 0;
}

.download-section {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 0.8rem;
}

.download-section__title {
  margin-bottom: 0.45rem;
}

.download-section .download-section__desc {
  margin: 0 0 0.65rem 0;
}

.download-section__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 0.35rem;
}

.download-section__link,
.package-card a,
.accordion__content a,
.library-link,
.hero-summary__link {
  color: var(--zapier-black);
  font-weight: 600;
  text-decoration: none;
}

.download-section__link:hover,
.package-card a:hover,
.accordion__content a:hover,
.library-link:hover,
.hero-summary__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.use-cases {
  padding: 2.5rem 0 3rem;
}

.use-cases .downloads-intro {
  max-width: 52ch;
}

.downloads-intro a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.downloads-intro a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.use-cases__more {
  margin-top: 1.5rem;
}

.features-grid--why {
  margin-top: 1.5rem;
}

.why-mingle__h3 {
  margin-top: 2.25rem;
}

.why-mingle__lead {
  margin-bottom: 1rem;
}

.hero-summary {
  padding: 0.25rem 0 0;
}

.hero-summary__features ul {
  margin: 0.75rem 0 1.1rem 1.15rem;
}

.hero-summary__features li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.accordion {
  margin-top: 1rem;
}

.accordion__item {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 1rem;
}

.accordion__title {
  padding: 0.95rem 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion__title::-webkit-details-marker {
  display: none;
}

.accordion__title::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--accent);
}

.accordion__item[open] .accordion__title::after {
  content: "-";
}

.accordion__content {
  padding: 0 0 1rem 0;
}

.doc-layout {
  display: grid;
  gap: 1.7rem;
  padding: 1.5rem 0 3rem;
}

@media (min-width: 1000px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
  }
}

.doc-main {
  min-width: 0;
}

.doc-main h2:not(:first-child) {
  margin-top: 2rem;
}

.doc-main h3 {
  margin-top: 1.2rem;
  scroll-margin-top: 6rem;
}

.doc-main h4 {
  font-size: 1rem;
  margin-top: 1.1rem;
  color: var(--text);
}

.doc-toc {
  position: sticky;
  top: 88px;
  padding: 1rem 0 1rem 1rem;
  border: none;
  border-left: 1px solid var(--sand-light);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.doc-toc__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.doc-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.doc-toc a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--accent-dark);
}

.doc-toc .doc-toc__link--h3 {
  padding-left: 0.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(280px, 2fr);
  gap: 2rem 3rem;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--footer-text);
  letter-spacing: -0.02em;
}

.footer-description {
  margin: 0;
  max-width: 36ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--footer-muted);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.footer-group__title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--footer-subtle);
  margin-bottom: 0.65rem;
}

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

.footer-links a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.15rem 0;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--footer-link-hover);
}

.nav-drawer__github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--footer-divider);
  font-size: 0.82rem;
  color: var(--footer-subtle);
  text-align: left;
}

@media (max-width: 960px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container-fluid {
    width: calc(100% - 1.5rem);
  }

  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    display: none;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .nav-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 85vw);
    height: 100%;
    background: var(--surface);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.16);
    z-index: 1002;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
  }

  body.nav-open .nav-drawer {
    transform: translateX(0);
  }

  .nav-drawer__links {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
  }

  .nav-drawer__links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.4rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
  }

  .nav-drawer__links a:hover,
  .nav-drawer__links a:focus {
    background: var(--gray-light);
  }

  .nav-drawer__github svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    min-height: auto;
    padding: 2.2rem 0;
  }

  .page-content {
    padding: 1.75rem 0;
  }

  .doc-layout {
    padding: 1.1rem 0 2rem;
  }

  .doc-toc {
    position: static;
  }

  .footer-groups {
    grid-template-columns: 1fr;
  }
}
/* (duplicate :root removed — tokens defined at top of file) */

*
 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: Inter, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease;
}

body.at-hero .site-header {
  background: var(--accent);
}

.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.75rem 0 1.75rem;
  border-top: 1px solid var(--footer-border);
}

.container-fluid {
  width: min(1120px, calc(100% - 3rem));
  margin-right: auto;
  margin-left: auto;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo__icon {
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
}

/* Teal PNG/SVG-as-img: show white on accent header (inline SVG uses currentColor) */
.site-header .logo img.logo__icon {
  filter: brightness(0) invert(1);
}

.logo:hover {
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.nav-links .github-link {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.5rem 1rem;
  box-shadow: none;
}

.nav-links .github-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent);
  box-shadow: none;
}

.nav-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-links .github-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Why MingleDB? — desktop dropdown */
.nav-item--has-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  appearance: none;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  transition: background-color 0.15s ease;
}

.nav-dropdown-toggle:hover,
.nav-item--has-dropdown.nav-dropdown-open .nav-dropdown-toggle {
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-dropdown-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 1px;
  opacity: 0.9;
  transition: transform 0.15s ease;
}

.nav-item--has-dropdown.nav-dropdown-open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.2rem;
  min-width: 13rem;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(32, 21, 21, 0.12);
  z-index: 1002;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--zapier-black);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  background: var(--sand-light);
  color: var(--accent);
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown,
.nav-item--has-dropdown.nav-dropdown-open .nav-dropdown {
  display: block;
}

.nav-dropdown--docs {
  max-height: min(75vh, 26rem);
  overflow-y: auto;
}

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

.nav-drawer__sub-label {
  display: block;
  padding: 0.65rem 1.5rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.nav-drawer__sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
}

.nav-drawer__sublist li {
  margin: 0;
}

.nav-drawer__links .nav-drawer__sublist a {
  padding-left: 2.25rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-backdrop,
.nav-drawer {
  display: none;
}

main {
  flex: 1;
  padding: 0 0 4rem 0;
}

section {
  margin-bottom: 3rem;
}

section:last-of-type {
  margin-bottom: 0;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 74px);
  text-align: left;
  padding: 4rem 0 3.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--cream-alt) 0%, var(--cream) 100%);
  border: none;
  box-shadow: none;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
  color: var(--accent);
}

.hero-slogan {
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-weight: 600;
  color: var(--zapier-black);
  max-width: 38em;
  margin: 0 0 1.35rem 0;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.hero-slogan code {
  font-size: 0.92em;
  font-family: "Ubuntu Mono", Consolas, monospace;
  font-weight: 600;
  color: var(--accent-dark);
}

.hero-lead {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  color: var(--charcoal);
  max-width: 42em;
  margin: 0 0 1.5rem 0;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.hero-badges img {
  height: 26px;
}

.features-grid,
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.feature-card,
.package-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  box-shadow: none;
}

.doc-section {
  background: transparent;
  border-radius: var(--radius);
  border: none;
  box-shadow: none;
}

.feature-card {
  padding: 1.25rem;
}

.feature-card:hover,
.package-card:hover {
  border-color: var(--accent);
  transition: border-color 0.15s ease;
}

.feature-card h3,
.package-card h3 {
  margin-bottom: 0.45rem;
}

.feature-card p,
.package-card p,
.downloads-intro,
.download-section__desc,
.hero-summary__lead,
.accordion__content p,
.footer-description {
  color: var(--text-muted);
}

.doc-section {
  padding: 1.25rem;
  margin-bottom: 1.1rem;
}

pre, code:not(.install-box__code) {
  font-family: 'Ubuntu Mono', Consolas, monospace;
  background: #edf3f6;
  color: #0f3b47;
  padding: 0.2em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  border: 1px solid var(--border);
}

pre code {
  padding: 0;
  background: none;
}

.vscode-editor,
.terminal-editor,
.install-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--sand);
  box-shadow: none;
  margin: 0.75rem 0;
  background: var(--cream);
}

.vscode-editor__tabs,
.terminal-editor__tabs,
.install-box__titlebar {
  display: flex;
  align-items: center;
  background: #eef2f4;
  border-bottom: 1px solid var(--border);
  padding: 0 10px;
  min-height: 36px;
}

.vscode-editor__tab,
.terminal-editor__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 13px;
  color: #334155;
}

.vscode-editor__tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.vscode-editor__body,
.terminal-editor__body,
.install-box__body {
  display: flex;
  background: #fff;
}

.vscode-editor__line-nums,
.terminal-editor__line-nums,
.install-box__line-num {
  padding: 12px 10px;
  background: #f7fafb;
  color: #64748b;
  text-align: right;
  user-select: none;
  border-right: 1px solid var(--border);
  min-width: 2.3em;
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 13px;
}

.vscode-editor__code,
.terminal-editor__code,
.install-box .install-box__code {
  flex: 1;
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  background: #fff;
  border: none;
  color: #1e293b;
  font-size: 13px;
}

.install-box__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #f7fafb;
  border: none;
  border-left: 1px solid var(--border);
  color: #475569;
  cursor: pointer;
}

.install-box__copy:hover {
  background: #eef2f4;
}

.install-box__copy svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.page-content {
  padding: 2.25rem 0;
}

.download-section {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 0.8rem;
}

.download-section__title {
  margin-bottom: 0.45rem;
}

.download-section .download-section__desc {
  margin: 0 0 0.65rem 0;
}

.download-section__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 0.35rem;
}

.download-section__link,
.package-card a,
.accordion__content a,
.library-link,
.hero-summary__link {
  color: var(--zapier-black);
  font-weight: 600;
  text-decoration: none;
}

.download-section__link:hover,
.package-card a:hover,
.accordion__content a:hover,
.library-link:hover,
.hero-summary__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.use-cases {
  padding: 2.5rem 0 3rem;
}

.use-cases .downloads-intro {
  max-width: 52ch;
}

.downloads-intro a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.downloads-intro a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.use-cases__more {
  margin-top: 1.5rem;
}

.features-grid--why {
  margin-top: 1.5rem;
}

.why-mingle__h3 {
  margin-top: 2.25rem;
}

.why-mingle__lead {
  margin-bottom: 1rem;
}

.hero-summary {
  padding: 0.25rem 0 0;
}

.hero-summary__features ul {
  margin: 0.75rem 0 1.1rem 1.15rem;
}

.hero-summary__features li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.accordion {
  margin-top: 1rem;
}

.accordion__item {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 1rem;
}

.accordion__title {
  padding: 0.95rem 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion__title::-webkit-details-marker {
  display: none;
}

.accordion__title::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--accent);
}

.accordion__item[open] .accordion__title::after {
  content: '-';
}

.accordion__content {
  padding: 0 0 1rem 0;
}

.doc-layout {
  display: grid;
  gap: 1.7rem;
  padding: 1.5rem 0 3rem;
}

@media (min-width: 1000px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
  }
}

.doc-main {
  min-width: 0;
}

.doc-main h2:not(:first-child) {
  margin-top: 2rem;
}

.doc-main h3 {
  margin-top: 1.2rem;
  scroll-margin-top: 6rem;
}

.doc-main h4 {
  font-size: 1rem;
  margin-top: 1.1rem;
  color: var(--text);
}

.doc-toc {
  position: sticky;
  top: 88px;
  padding: 1rem 0 1rem 1rem;
  border: none;
  border-left: 1px solid var(--sand-light);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.doc-toc__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.doc-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.doc-toc a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--accent-dark);
}

.doc-toc .doc-toc__link--h3 {
  padding-left: 0.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(280px, 2fr);
  gap: 2rem 3rem;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--footer-text);
  letter-spacing: -0.02em;
}

.footer-description {
  margin: 0;
  max-width: 36ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--footer-muted);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.footer-group__title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--footer-subtle);
  margin-bottom: 0.65rem;
}

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

.footer-links a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.15rem 0;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--footer-link-hover);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--footer-divider);
  font-size: 0.82rem;
  color: var(--footer-subtle);
  text-align: left;
}

@media (max-width: 960px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container-fluid {
    width: calc(100% - 1.5rem);
  }

  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    display: none;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .nav-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 85vw);
    height: 100%;
    background: var(--surface);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.16);
    z-index: 1002;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
  }

  body.nav-open .nav-drawer {
    transform: translateX(0);
  }

  .nav-drawer__links {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
  }

  .nav-drawer__links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.4rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
  }

  .nav-drawer__links a:hover,
  .nav-drawer__links a:focus {
    background: var(--gray-light);
  }

  .nav-drawer__github svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    min-height: auto;
    padding: 2.2rem 0;
  }

  .page-content {
    padding: 1.75rem 0;
  }

  .doc-layout {
    padding: 1.1rem 0 2rem;
  }

  .doc-toc {
    position: static;
  }

  .footer-groups {
    grid-template-columns: 1fr;
  }
}

.container-fluid {
  width: 100%;
  padding: 0;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1200px) {
  .container-fluid {
    max-width: 1320px;
  }
}

.nav-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo__icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.logo:hover {
  color: #ffffff;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.nav-links .github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.5rem 1rem;
  box-shadow: none;
}

.nav-links .github-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent);
  box-shadow: none;
}

.nav-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
  margin-right: 0.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-links .github-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile menu: hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-backdrop,
.nav-drawer {
  display: none;
}

main {
  flex: 1;
  padding: 0 0 4rem 0;
  margin: 0;
}

section {
  margin-bottom: 4rem;
}

section:last-of-type {
  margin-bottom: 0;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--mint);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.install-box {
  max-width: 480px;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e4e8;
}

.install-box__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #e8e8e8;
  border-bottom: 1px solid #d4d4d4;
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 0.8rem;
  color: #3c3c3c;
}

.install-box__titlebar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.install-box__titlebar-dot:nth-child(1) { background: #ff5f56; }
.install-box__titlebar-dot:nth-child(2) { background: #ffbd2e; }
.install-box__titlebar-dot:nth-child(3) { background: #27c93f; }

.install-box__titlebar-label {
  margin-left: 4px;
}

.install-box__body {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-top: none;
}

.install-box__line-num {
  padding: 12px 10px 12px 14px;
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 0.9rem;
  color: #0f766e;
  user-select: none;
  border-right: 1px solid #e5e5e5;
  background: #f0f0f0;
}

.install-box .install-box__code {
  flex: 1;
  padding: 12px 14px;
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 0.95rem;
  background: transparent;
  color: #383a42;
  overflow-x: auto;
  user-select: all;
  white-space: nowrap;
}

.install-box__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #f0f0f0;
  border: none;
  border-left: 1px solid #e5e5e5;
  color: #3c3c3c;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.install-box__copy:hover {
  color: #1f1f1f;
  background: #e8e8e8;
}

.install-box__copy svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.install-box__copy.copied {
  color: #2e7d32;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow-accent);
  border-left: 4px solid var(--mint);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-accent-strong);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.doc-section {
  background: transparent;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
}

.doc-section h3 {
  color: var(--mint);
}

pre, code:not(.install-box__code) {
  font-family: 'Ubuntu Mono', Consolas, monospace;
  background: var(--mint-50);
  color: var(--mint);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  border: 1px solid var(--mint-pale);
}

pre code {
  padding: 0;
  background: none;
}

.vscode-editor {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid #e1e4e8;
  margin: 0.75rem 0;
}

.vscode-editor__tabs {
  display: flex;
  align-items: center;
  background: #e8e8e8;
  border-bottom: 1px solid #d4d4d4;
  padding: 0 8px 0 12px;
  min-height: 35px;
}

.vscode-editor__tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 8px 12px;
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 13px;
  color: #3c3c3c;
  background: #f3f3f3;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  margin-bottom: -1px;
  border-radius: 6px 6px 0 0;
}

.vscode-editor__tab--active {
  background: #ffffff;
  color: #1f1f1f;
  padding-bottom: 9px;
}

.vscode-editor__tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4d4d4d;
}

.vscode-editor__body {
  display: flex;
  background: #ffffff;
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.vscode-editor__line-nums {
  padding: 12px 12px 12px 16px;
  background: #f0f0f0;
  color: #0f766e;
  text-align: right;
  user-select: none;
  border-right: 1px solid #e5e5e5;
  min-width: 2.5em;
}

.vscode-editor__code {
  flex: 1;
  margin: 0;
  padding: 12px 16px;
  overflow-x: auto;
  background: #ffffff;
  border: none;
  color: #383a42;
  font-size: 13px;
}

.vscode-editor__code code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Prism syntax: light theme tokens in vscode-editor (theme does the rest) */
.vscode-editor__code code[class*="language-"] {
  color: #383a42;
}

/* Terminal-style code editor (light) */
.terminal-editor {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e4e8;
  margin: 0.75rem 0;
}

.terminal-editor .terminal-editor__tabs {
  display: flex;
  align-items: center;
  background: #e8e8e8;
  border-bottom: 1px solid #d4d4d4;
  padding: 0 8px 0 12px;
  min-height: 35px;
}

.terminal-editor .terminal-editor__tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 8px 12px;
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 13px;
  color: #3c3c3c;
  background: #f3f3f3;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  margin-bottom: -1px;
  border-radius: 6px 6px 0 0;
}

.terminal-editor .terminal-editor__tab--active {
  background: #ffffff;
  color: #1f1f1f;
  padding-bottom: 9px;
}

.terminal-editor .terminal-editor__body {
  display: flex;
  background: #ffffff;
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.terminal-editor .terminal-editor__line-nums {
  padding: 12px 12px 12px 16px;
  background: #f0f0f0;
  color: #0f766e;
  text-align: right;
  user-select: none;
  border-right: 1px solid #e5e5e5;
  min-width: 2.5em;
}

.terminal-editor .terminal-editor__code {
  flex: 1;
  margin: 0;
  padding: 12px 16px;
  overflow-x: auto;
  background: #ffffff;
  border: none;
  color: #383a42;
  font-size: 13px;
}

.terminal-editor .terminal-editor__code code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.code-editor-in-accordion {
  margin-top: 1rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.package-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.25rem;
  border: 2px solid var(--mint-pale);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.package-card:hover {
  border-color: var(--mint);
  box-shadow: 0 4px 12px var(--shadow-accent-strong);
}

.package-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.package-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.package-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--mint);
  font-weight: 500;
  text-decoration: none;
}

.package-card a:hover {
  color: var(--mint);
  text-decoration: underline;
}

.package-card a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Downloads / Features — project cards */
.downloads-intro {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.download-section {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 0.9rem;
}

.download-section:last-child {
  margin-bottom: 0;
}

.download-section__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.download-section__desc {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.download-section__desc code {
  font-size: 0.9em;
}

.download-section__link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.download-section__link:hover {
  text-decoration: underline;
}

.page-content {
  padding: 3rem 0;
}

/* Documentation layout: main + right TOC */
.doc-layout {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

@media (min-width: 992px) {
  .doc-layout {
    grid-template-columns: 1fr 220px;
    align-items: start;
  }
}

.doc-main {
  min-width: 0;
}

.doc-main h2 {
  margin-top: 0;
}

.doc-main h2:not(:first-child) {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.doc-main h3 {
  margin-top: 1.5rem;
  scroll-margin-top: 1rem;
}

.doc-main h4 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  color: var(--text-primary);
}

.library-link {
  color: var(--accent);
  text-decoration: underline;
}

.library-link:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

.doc-toc {
  position: sticky;
  top: 5rem;
  padding: 1rem 0 1rem 1rem;
  border: none;
  border-left: 1px solid var(--sand-light);
  background: transparent;
}

.doc-toc__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.doc-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.doc-toc a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.2rem 0;
  line-height: 1.35;
}

.doc-toc a:hover {
  color: var(--accent);
}

.doc-toc .doc-toc__link--h3 {
  padding-left: 0.75rem;
}

.doc-section + .doc-section {
  margin-top: 1.5rem;
}

/* Hero summary (What is MingleDB?) on home */
.hero-summary {
  padding: 4rem 1rem 3rem;
  background: var(--cream);
}

.hero-summary h2 {
  margin-bottom: 1rem;
}

.hero-summary__lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.hero-summary__features {
  padding: 0;
  max-width: 640px;
}

.hero-summary__features h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.hero-summary__features ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  list-style: disc;
}

.hero-summary__features li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero-summary__features li code {
  font-size: 0.85em;
}

.hero-summary__link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.hero-summary__link:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

/* Accordion (features page) — plain, arrow icons */
.accordion {
  margin-top: 1.5rem;
}

.accordion__item {
  margin-bottom: 0.5rem;
}

.accordion__title {
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: color 0.2s;
}

.accordion__title::-webkit-details-marker {
  display: none;
}

.accordion__title::after {
  content: '▼';
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.accordion__item[open] .accordion__title::after {
  content: '▲';
}

.accordion__title:hover {
  color: var(--accent);
}

.accordion__content {
  padding: 0 0 1rem 0;
}

.accordion__content p {
  margin: 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.accordion__content p + .code-editor-in-accordion {
  margin-top: 1rem;
}

.accordion__content .code-editor-in-accordion + p {
  margin-top: 1rem;
}

.accordion__content a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.accordion__content a:hover {
  text-decoration: underline;
}

/* Features: section titles always visible; only code blocks toggle */
.accordion__feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.code-example-drawer {
  margin-top: 1rem;
}

.code-example-drawer__summary {
  list-style: none;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
}

.code-example-drawer__summary::-webkit-details-marker {
  display: none;
}

.code-example-drawer__summary:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.code-example-drawer .code-editor-in-accordion {
  margin-top: 0.65rem;
}

.accordion__content .code-example-drawer + p {
  margin-top: 1rem;
}

/* ========== Responsive: mobile & tablet ========== */
@media (max-width: 768px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header .container-fluid,
  .site-footer .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-wrapper {
    gap: 0.75rem;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    display: none;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .nav-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 85vw);
    height: 100%;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .nav-drawer {
    transform: translateX(0);
  }

  .nav-drawer__links {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
  }

  .nav-drawer__links li {
    margin: 0;
  }

  .nav-drawer__links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    transition: background-color 0.15s;
    border: none;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    background: none;
  }

  .nav-drawer__links a:hover,
  .nav-drawer__links a:focus {
    background: var(--gray-light);
  }

  .nav-drawer__github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-drawer__github svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  .nav-drawer__links .nav-link-icon {
    width: 18px;
    height: 18px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo__icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  main {
    padding-bottom: 2.5rem;
  }

  section {
    margin-bottom: 2.5rem;
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 2.5rem;
  }

  .hero-brand {
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .hero-brand__icon svg {
    width: 40px;
    height: 40px;
  }

  .hero-brand__title,
  .hero h1 {
    font-size: clamp(2.15rem, 7.5vw, 3rem);
  }

  .hero-slogan {
    font-size: clamp(1.15rem, 3.8vw, 1.5rem);
    margin-bottom: 1rem;
  }

  .hero-lead {
    font-size: clamp(1.05rem, 3.2vw, 1.3rem);
    margin-bottom: 1rem;
  }

  .hero-tags {
    gap: 0.4rem;
    margin-top: 0.75rem;
  }

  .hero-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .hero-badges {
    margin-top: 0.75rem;
  }

  .hero-badges img {
    height: 20px;
  }

  .install-box {
    max-width: 100%;
    margin: 1rem 0;
  }

  .install-box .install-box__code {
    font-size: 0.85rem;
    padding: 10px 12px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .install-box__line-num {
    padding: 10px 8px 10px 12px;
    font-size: 0.85rem;
  }

  .install-box__copy {
    padding: 0 10px;
  }

  .hero-summary {
    padding: 2.5rem 0 2rem;
  }

  .hero-summary__lead {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .page-content {
    padding: 2rem 0;
  }

  .doc-layout {
    padding: 1.5rem 0 2.5rem;
    gap: 1.5rem;
  }

  .doc-toc {
    position: static;
    border-left: none;
    border-top: 1px solid var(--sand-light);
    padding: 1rem 0 0;
    margin-top: 1rem;
  }

  .doc-main h2:not(:first-child) {
    margin-top: 2rem;
  }

  .doc-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .doc-main .doc-section table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vscode-editor,
  .terminal-editor {
    margin: 0.5rem 0;
    border-radius: 4px;
  }

  .vscode-editor__body,
  .terminal-editor .terminal-editor__body {
    font-size: 12px;
  }

  .vscode-editor__code,
  .terminal-editor .terminal-editor__code {
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vscode-editor__line-nums,
  .terminal-editor .terminal-editor__line-nums {
    padding: 10px 8px 10px 12px;
    font-size: 12px;
    min-width: 2em;
  }

  pre {
    padding: 0.75rem;
    margin: 0.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .site-footer {
    padding: 1.25rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0;
  }

  .footer-groups {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .footer-links {
    gap: 0.35rem;
  }

  .footer-links a {
    padding: 0.25rem 0.35rem;
    font-size: 0.92rem;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .footer-copy {
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    margin-top: 0.25rem;
  }
}

@media (max-width: 480px) {
  .footer-groups {
    grid-template-columns: 1fr;
  }

  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-header .container-fluid,
  .site-footer .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-footer {
    padding: 1rem 0 0.85rem;
  }

  .footer-content {
    gap: 1rem;
  }

  .footer-links {
    gap: 0.5rem 1rem;
  }

  .footer-links a {
    min-height: 0;
    font-size: 0.88rem;
  }

  .hero {
    padding: 1.5rem 0 2rem;
  }

  .hero-brand__title,
  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .hero-slogan {
    font-size: clamp(1.05rem, 4vw, 1.3rem);
  }

  .hero-lead {
    font-size: clamp(0.98rem, 3.5vw, 1.15rem);
  }

  .hero-brand__icon svg {
    width: 32px;
    height: 32px;
  }

  h1 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  h2 {
    font-size: 1.25rem;
  }
}

/* Home (index) — less boxy chrome than inner pages */
.page-home .hero-tag {
  border: none;
  background: var(--accent-soft);
}

html[data-theme="dark"] .page-home .hero::before {
  background: #111816;
}

.page-home h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.page-home .use-cases .feature-card {
  border: none;
  border-left: none;
  box-shadow: none;
  background: transparent;
}

.page-home .use-cases .feature-card:hover {
  transform: none;
  box-shadow: none;
}

/* Features page — lighter chrome */
.page-features h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.page-features .features-grid .feature-card {
  border: none;
  border-left: none;
  box-shadow: none;
  background: transparent;
}

.page-features .features-grid .feature-card:hover {
  transform: none;
  box-shadow: none;
}

.page-features .accordion__item {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0 0 0.85rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--sand-light);
}

.page-features .accordion__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Brand header/footer — wins over duplicated rules in this file */
.site-header {
  background: var(--accent) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

body.at-hero .site-header {
  background: var(--accent) !important;
}

.site-header .logo {
  color: #ffffff !important;
}

.site-header .nav-dropdown-toggle {
  color: #ffffff !important;
}

.site-header .nav-dropdown-toggle:hover,
.site-header .nav-item--has-dropdown.nav-dropdown-open .nav-dropdown-toggle {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.site-header .nav-dropdown a {
  color: var(--zapier-black) !important;
}

.site-header .nav-dropdown a:hover,
.site-header .nav-dropdown a:focus {
  color: var(--accent) !important;
  background: var(--sand-light) !important;
}

.site-header .nav-links > li > a:not(.github-link) {
  color: #ffffff !important;
}

.site-header .nav-links > li > a:not(.github-link):hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
}

.site-header .nav-links .github-link {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.site-header .nav-links .github-link:hover {
  background: #ffffff !important;
  color: var(--accent) !important;
  border-color: #ffffff !important;
}

.site-header .nav-toggle {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.site-footer {
  background: var(--footer-bg) !important;
  border-top: 1px solid var(--footer-border) !important;
  color: var(--footer-text) !important;
}

.hero h1 {
  color: var(--accent) !important;
}

@media (max-width: 640px) {
  .footer-copy {
    text-align: center;
  }
}

/* ----- Theme toggle (header + mobile drawer) ----- */
.nav-item--theme {
  list-style: none;
  display: flex;
  align-items: center;
}

.theme-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

.nav-drawer__theme {
  display: none;
  list-style: none;
  padding: 0.75rem 1.4rem 1rem;
}

.nav-drawer__theme .theme-toggle {
  width: 100%;
  border-color: rgba(16, 184, 173, 0.55);
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-drawer__theme .theme-toggle:hover {
  background: rgba(16, 184, 173, 0.22);
}

@media (max-width: 768px) {
  .nav-drawer__theme {
    display: list-item;
  }
}

/* ----- Dark mode (variables + a few hard-coded surfaces) ----- */
html[data-theme="dark"] {
  color-scheme: dark;
  /* Primary “inverse of white” surface */
  --zapier-black: #e6ebe8;
  --cream: #111816;
  --cream-alt: #121a17;
  --charcoal: #a8b5af;
  --muted: #7a8680;
  --sand: #3d4844;
  --sand-light: #1c2522;
  --mid-warm: #5a6560;
  --bg: #111816;
  --surface: #111816;
  --surface-muted: #161e1c;
  --text: #e8f0ec;
  --text-muted: #a8b8b0;
  --text-primary: var(--text);
  --text-secondary: var(--text-muted);
  --border: #2a3330;
  --border-strong: #3d4844;
  --header-footer-text: #f0faf7;
  --accent-soft: rgba(16, 184, 173, 0.22);
  --mint-pale: #1e4039;
  --mint-50: #1a2421;
  --gray-light: #1c2522;
  --card-bg: #151d1a;
  --shadow-accent: rgba(0, 0, 0, 0.35);
  --shadow-accent-strong: rgba(0, 0, 0, 0.5);
  --footer-bg: #0d9e94;
  --footer-border: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .nav-dropdown {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .vscode-editor {
  border-color: #2d3834;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .vscode-editor__tabs {
  background: #252e2b;
  border-bottom-color: #3d4844;
}

html[data-theme="dark"] .vscode-editor__tab {
  color: #c5d0cc;
  background: #1c2421;
  border-color: #3d4844;
}

html[data-theme="dark"] .vscode-editor__tab--active {
  background: #161e1c;
  color: #eef4f1;
}

html[data-theme="dark"] .vscode-editor__tab-dot {
  background: #8a9a94;
}

html[data-theme="dark"] .vscode-editor__body {
  background: #161e1c;
}

html[data-theme="dark"] .vscode-editor__line-nums {
  background: #111816;
  color: #5eead4;
  border-right-color: #2d3834;
}

html[data-theme="dark"] .vscode-editor__code {
  background: #161e1c;
  color: #d4e0db;
}

html[data-theme="dark"] .vscode-editor__code code[class*='language-'] {
  color: #d4e0db;
}

html[data-theme="dark"] .terminal-editor {
  border-color: #2d3834;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .terminal-editor__tabs {
  background: #252e2b;
  border-bottom-color: #3d4844;
}

html[data-theme="dark"] .terminal-editor__tab {
  color: #c5d0cc;
  background: #1c2421;
  border-color: #3d4844;
}

html[data-theme="dark"] .terminal-editor__tab--active {
  background: #161e1c;
  color: #eef4f1;
}

html[data-theme="dark"] .terminal-editor__body {
  background: #161e1c;
}

html[data-theme="dark"] .terminal-editor__line-nums {
  background: #111816;
  color: #5eead4;
  border-right-color: #2d3834;
}

html[data-theme="dark"] .terminal-editor__code {
  background: #161e1c;
  color: #d4e0db;
}

html[data-theme="dark"] .install-box {
  border-color: #2d3834;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .install-box__titlebar {
  background: #252e2b;
  border-bottom-color: #3d4844;
  color: #d4e0db;
}

html[data-theme="dark"] .install-box__body {
  background: #161e1c;
  border-color: #2d3834;
}

html[data-theme="dark"] .install-box__line-num {
  color: #5eead4;
  border-right-color: #2d3834;
  background: #111816;
}

html[data-theme="dark"] .install-box .install-box__code {
  color: #d4e0db;
}

html[data-theme="dark"] .install-box__copy {
  background: #1c2421;
  border-left-color: #2d3834;
  color: #c5d0cc;
}

html[data-theme="dark"] pre:not(.vscode-editor__code):not(.terminal-editor__code) {
  border-color: var(--mint-pale);
  background: #111816;
}

html[data-theme="dark"] body.nav-open .nav-backdrop {
  background: rgba(0, 0, 0, 0.55);
}
