:root {
  --font-heading: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --transition-fast: 140ms ease;
  --navbar-height: 56px;
  color-scheme: dark;
}

/* Dark: match web app API portal; text brighter (Gemini-style) */
:root[data-theme="dark"] {
  --bg: #070a14;
  --bg-alt: #0a1222;
  --bg-sidebar: rgba(10, 14, 26, 0.6);
  --text-main: #e8edf7;
  --text-subtle: #c2cce0;
  --text-muted: #9caac4;
  --border: rgba(120, 140, 200, 0.15);
  --border-strong: rgba(140, 165, 220, 0.22);
  --accent: #4d7cff;
  --accent-soft: rgba(77, 124, 255, 0.12);
  --success: #3edb8e;
  --warning: #ffbb4d;
  --danger: #ff5d78;
  --code-bg: rgba(14, 18, 28, 0.8);
}

/* Light: white background, black text */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --bg-sidebar: #f8f9fb;
  --text-main: #111111;
  --text-subtle: #333333;
  --text-muted: #666666;
  --border: #e2e6eb;
  --border-strong: #d0d5dc;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --success: #0d9f5f;
  --warning: #d88700;
  --danger: #cf3553;
  --code-bg: #f1f3f5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.global-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--navbar-height);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.navbar-left { flex: 1; gap: 24px; }
.navbar-right { margin-left: auto; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-icon {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.brand-divider {
  width: 2px;
  height: 20px;
  background: var(--border-strong);
}

.brand-api-label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
}

.primary-nav-link {
  border: none;
  background: transparent;
  color: var(--text-subtle);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.primary-nav-link:hover { color: var(--text-main); }
.primary-nav-link[data-active="true"] {
  color: var(--accent);
  font-weight: 600;
}

.nav-search-wrap { position: relative; width: min(320px, 40vw); }

.nav-search-input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-main);
  padding: 6px 12px;
  outline: none;
  font-size: 14px;
}

.nav-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(480px, 85vw);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: none;
}

.search-results[data-open="true"] { display: block; }

.search-result-item {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--accent-soft); }

.search-result-line { display: flex; align-items: center; gap: 8px; }
.search-result-title { font-size: 15px; font-weight: 600; }
.search-result-subtitle { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.search-empty { margin: 0; padding: 12px; color: var(--text-muted); font-size: 13px; }

.layout-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  flex: 1;
  padding-top: var(--navbar-height);
}

.sidebar {
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  flex-direction: column;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 14px 12px;
}

/* Endpoints list nested under "Endpoints" header */
.sidebar-nav {
  overflow-y: auto;
  padding: 8px 0 8px 14px;
  margin-left: 4px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.sidebar-endpoints-wrap[data-collapsed="true"] .sidebar-nav { display: none; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4px 8px;
  margin-bottom: 4px;
}

.sidebar-sections {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.sidebar-link-button {
  border: none;
  background: transparent;
  color: var(--text-subtle);
  text-align: left;
  padding: 11px 14px;
  font-size: 18px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.sidebar-link-button:hover { color: var(--text-main); background: var(--accent-soft); }
.sidebar-link-button[data-active="true"] { color: var(--accent); font-weight: 600; }

.sidebar-endpoints-wrap { margin-bottom: 8px; flex: 1; min-height: 0; display: flex; flex-direction: column; }

.sidebar-endpoints-header {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-subtle);
  padding: 11px 14px;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-endpoints-header:hover { color: var(--text-main); background: var(--accent-soft); }

.sidebar-endpoints-chevron {
  font-size: 12px;
  transition: transform 140ms ease;
}

.sidebar-endpoints-wrap[data-collapsed="true"] .sidebar-endpoints-chevron { transform: rotate(-90deg); }

.group-block { margin-bottom: 8px; }

.group-header {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-subtle);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.group-header:hover { color: var(--text-main); }

.group-title-wrap { display: inline-flex; align-items: center; gap: 6px; }

.group-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.group-list { display: flex; flex-direction: column; gap: 2px; }
.group-list[data-collapsed="true"] { display: none; }

.endpoint-link {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-subtle);
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.endpoint-link:hover { background: var(--accent-soft); color: var(--text-main); }
.endpoint-link[data-active="true"] { color: var(--accent); font-weight: 500; background: var(--accent-soft); }

.endpoint-link-line { display: flex; align-items: center; gap: 10px; }

/* Sidebar: method as simple text (no pill) */
.method-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.method-text[data-method="GET"] { color: var(--success); }
.method-text[data-method="POST"] { color: #4e86ff; }
.method-text[data-method="PUT"],
.method-text[data-method="PATCH"] { color: var(--warning); }
.method-text[data-method="DELETE"] { color: var(--danger); }

.method-badge {
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.method-badge[data-method="GET"] { background: rgba(62, 219, 142, 0.2); color: var(--success); }
.method-badge[data-method="POST"] { background: rgba(78, 124, 255, 0.2); color: #4e86ff; }
.method-badge[data-method="PUT"],
.method-badge[data-method="PATCH"] { background: rgba(255, 187, 77, 0.2); color: var(--warning); }
.method-badge[data-method="DELETE"] { background: rgba(255, 93, 120, 0.2); color: var(--danger); }

.endpoint-summary {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ghost-link { color: var(--text-muted); font-size: 12px; text-decoration: none; }
.ghost-link:hover { color: var(--accent); }

.content-link { color: var(--accent); text-decoration: none; }
.content-link:hover { text-decoration: underline; }

.sidebar-muted { font-size: 13px; padding: 8px 0; }

.main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.theme-toggle-icon {
  border: none;
  background: transparent;
  color: var(--text-subtle);
  font-size: 1.35rem;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.theme-toggle-icon:hover { color: var(--text-main); }

.icon-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.content {
  width: min(980px, 100%);
  padding: 24px 40px 48px;
  margin: 0 auto;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
}

.overview-layout-no-toc {
  grid-template-columns: 1fr;
}

.overview-main { min-width: 0; }
/* TOC "On this page" links: scroll targets sit below fixed navbar */
.overview-main [id] {
  scroll-margin-top: calc(var(--navbar-height) + 12px);
}

.overview-toc {
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
  align-self: start;
}

.toc-card {
  padding: 12px 0;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

.toc-label {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.toc-link {
  border: none;
  background: transparent;
  text-align: left;
  color: var(--text-subtle);
  font-size: 15px;
  padding: 5px 0;
  display: block;
  cursor: pointer;
}

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

.toc-link-nested {
  padding-left: 16px;
  font-size: 14px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}

/* Sections: no heavy cards — just spacing and optional divider */
.doc-section,
.hero-card,
.section-card,
.endpoint-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-card { padding: 0 0 0; }

.overview-layout-no-toc .hero-card {
  margin-bottom: 8px;
}

/* One gap value for hero→first section and between every section (all sections are in .section-stack) */
.section-stack { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }

.overview-layout-no-toc .section-stack {
  margin-top: 48px;
}
.section-stack .doc-section { margin-bottom: 0; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
/* Inline method (path line + param descriptions): plain green GET, no pill/outline */
.method-inline { font-weight: 600; }
.method-inline-get { color: var(--success); }
.method-inline-post { color: #4e86ff; }
.method-inline-put,
.method-inline-patch { color: var(--warning); }
.method-inline-delete { color: var(--danger); }
/* Override .muted / .param-desc so GET etc stay green inside description text */
.param-desc .method-inline-get,
.muted .method-inline-get { color: var(--success); }
.param-desc .method-inline-post,
.muted .method-inline-post { color: #4e86ff; }
.param-desc .method-inline-put,
.param-desc .method-inline-patch,
.muted .method-inline-put,
.muted .method-inline-patch { color: var(--warning); }
.param-desc .method-inline-delete,
.muted .method-inline-delete { color: var(--danger); }

.chip {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.overview-layout-no-toc .hero-title {
  font-size: clamp(32px, 4.5vw, 42px);
}

.hero-subtitle { margin: 0; color: var(--text-subtle); font-size: 17px; line-height: 1.5; }

.overview-layout-no-toc .hero-subtitle {
  font-size: 20px;
}


.section-card { padding: 0; }
.doc-section { padding: 0; margin-bottom: 24px; }

.section-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.muted { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.copy-list { margin: 10px 0 0; padding-left: 22px; color: var(--text-subtle); font-size: 16px; line-height: 1.6; }

.overview-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.overview-layout-no-toc .overview-cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 16px;
}

.overview-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.overview-layout-no-toc .overview-card {
  padding: 32px;
}

.overview-card:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.overview-card-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.overview-layout-no-toc .overview-card-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.overview-card-desc {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-subtle);
}

.overview-layout-no-toc .overview-card-desc {
  font-size: 18px;
  margin-bottom: 18px;
}

.overview-card-cta {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.overview-layout-no-toc .overview-card-cta {
  font-size: 17px;
}

.overview-card:hover .overview-card-cta {
  text-decoration: underline;
}

.auth-grid { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.auth-grid th,
.auth-grid td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
.auth-grid th { color: var(--text-muted); font-weight: 500; width: 120px; }

.tier-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.tier-table th,
.tier-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.tier-table th { color: var(--text-muted); font-weight: 600; }
.tier-table tr:hover { background: var(--accent-soft); }

.endpoint-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.endpoint-card {
  padding: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
}

.endpoint-card:hover { border-color: var(--border-strong); background: var(--accent-soft); }
.endpoint-card h3 { margin: 4px 0 2px; font-size: 16px; font-weight: 600; }
.endpoint-card p { margin: 0; font-size: 14px; color: var(--text-muted); }

.endpoint-heading { margin-top: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.endpoint-path { margin: 0; font-size: 22px; font-weight: 600; color: var(--text-main); }
.path-code { margin: 4px 0 0; font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); }

.table-wrap { overflow-x: auto; }
.param-table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: auto; }
.param-table .param-col-name { width: 100px; }
.param-table .param-col-type { width: 150px; }
.param-table .param-col-desc { width: 320px; }
.param-table th,
.param-table td {
  text-align: left;
  vertical-align: middle;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
}
.param-table th { color: var(--text-muted); font-weight: 500; }
.param-table td.param-desc {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 320px;
  min-width: 0;
}
.param-name { display: inline-flex; align-items: center; gap: 6px; }
.param-name code { font-size: 13px; }
.required-pill {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tab-button {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-subtle);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.tab-button[data-active="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Code: subtle, not a big box */
.code-block {
  border: none;
  border-left: 3px solid var(--border-strong);
  border-radius: 0;
  background: var(--code-bg);
  margin: 8px 0 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.empty-state {
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.sidebar-backdrop { display: none; }
.mobile-only { display: none; }

@media (max-width: 1280px) {
  .overview-layout { grid-template-columns: minmax(0, 1fr); }
  .overview-toc { display: none; }
}

@media (max-width: 1024px) {
  .layout-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: min(320px, 85vw);
    height: calc(100vh - var(--navbar-height));
    transform: translateX(-100%);
    transition: transform 200ms ease;
    z-index: 30;
    background: var(--bg);
    border-right: 1px solid var(--border);
  }
  body[data-sidebar-open="true"] .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  body[data-sidebar-open="true"] .sidebar-backdrop { opacity: 1; pointer-events: all; }
  .mobile-only { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; }
  .brand-text { font-size: 18px; }
  .brand-api-label { font-size: 16px; }
  .nav-search-wrap { width: min(240px, 50vw); }
}

@media (max-width: 720px) {
  :root { --navbar-height: 52px; }
  .global-navbar { padding: 0 12px; }
  .content { padding: 16px 20px 32px; }
  .brand-text,
  .brand-divider,
  .brand-api-label { display: none; }
  .nav-search-wrap { width: min(180px, 45vw); }
  .hero-title { font-size: 24px; }
  .section-title { font-size: 17px; }
}

/* Footer styles - matching main web app footer */
.docs-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px 0;
  margin-top: auto;
  background: transparent;
  flex-shrink: 0;
}

.docs-footer-divider {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

:root[data-theme="light"] .docs-footer-divider {
  border-top-color: rgba(0, 0, 0, 0.15);
}

.docs-footer-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.docs-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.docs-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.docs-footer-logo:hover,
.docs-footer-logo:active,
.docs-footer-logo:focus,
.docs-footer-logo:visited {
  text-decoration: none !important;
  opacity: 0.8;
}

.docs-footer-logo-icon {
  height: 20px;
  width: auto;
}

.docs-footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
}

.docs-footer-copyright {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-subtle);
  white-space: nowrap;
}

.docs-footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.docs-footer-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.docs-footer-link:hover {
  color: var(--text-main);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.docs-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-subtle);
  transition: all 0.2s ease;
  text-decoration: none;
}

.docs-footer-social:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.docs-footer-x-icon {
  display: block;
  width: 16px;
  height: 16px;
  color: currentColor;
}

/* Light theme footer adjustments */
:root[data-theme="light"] .docs-footer-link {
  color: var(--text-muted);
  text-decoration-color: rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .docs-footer-link:hover {
  color: var(--text-main);
  text-decoration-color: rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] .docs-footer-social {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
}

:root[data-theme="light"] .docs-footer-social:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

/* Mobile footer */
@media (max-width: 767px) {
  .docs-footer {
    padding: 20px 0;
  }

  .docs-footer-divider {
    padding: 0 12px;
    margin-bottom: 16px;
  }

  .docs-footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 12px;
  }

  .docs-footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .docs-footer-logo {
    gap: 8px;
  }

  .docs-footer-logo-icon {
    height: 18px;
  }

  .docs-footer-logo-text {
    font-size: 0.875rem;
  }

  .docs-footer-copyright {
    font-size: 0.6875rem;
  }

  .docs-footer-right {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
  }

  .docs-footer-link {
    font-size: 0.6875rem;
  }

  .docs-footer-social {
    width: 28px;
    height: 28px;
  }

  .docs-footer-x-icon {
    width: 14px;
    height: 14px;
  }
}
