:root {
  --bg: #f7fbf9;
  --bg-soft: #eef7f2;
  --panel: #ffffff;
  --panel-2: #f9fcfa;
  --panel-3: #f2f8f5;

  --text: #0f172a;
  --text-soft: #213547;
  --muted: #52675f;
  --muted-2: #6f857b;

  --line: #e3ece7;
  --line-strong: #d5e2db;

  --brand: #059669;
  --brand-2: #10b981;
  --brand-3: #34d399;
  --brand-soft: #ecfdf5;

  --danger: #dc2626;
  --warning: #d97706;

  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.04);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1460px;
  --sidebar-width: 310px;
  --toc-width: 270px;
  --content-max: 920px;
  --topbar-height: 76px;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --info-text: #1d4ed8;
  --tip-bg: #ecfdf5;
  --tip-border: #a7f3d0;
  --tip-text: #047857;
  --important-bg: #fffbeb;
  --important-border: #fde68a;
  --important-text: #b45309;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #b91c1c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(16, 185, 129, 0.045), transparent 28%),
    linear-gradient(180deg, #f2faf6 0%, #ffffff 100%);
  min-height: 100vh;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(16, 185, 129, 0.16);
  color: var(--text);
}

/* =========================================
   Layout base
========================================= */

.docs-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 20px 0 64px;
  padding-bottom: 0px;
}

.docs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-height);
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.docs-topbar-left,
.docs-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.docs-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid rgba(16, 185, 129, 0.16);
  overflow: hidden;
}

.docs-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.docs-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-brand-title {
  font-size: 16px;
  color: var(--text);
}

.docs-brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.docs-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.docs-chip:hover {
  color: var(--brand);
  border-color: rgba(16, 185, 129, 0.28);
  background: #f7fcf9;
}

/* =========================================
   Hero
========================================= */

.docs-hero {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.045), transparent 24%),
    linear-gradient(180deg, #fdfefd 0%, #f6fbf8 100%);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.docs-hero-inner {
  padding: 30px 34px 28px;
}

.docs-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--text);
  text-wrap: balance;
}

.docs-hero p {
  margin: 0;
  max-width: 920px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.docs-searchbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.docs-searchbox svg {
  flex: 0 0 22px;
  color: var(--muted);
}

.docs-searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.docs-searchbox input::placeholder {
  color: #83998f;
}

.docs-search-results {
  display: none;
  margin-top: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.docs-search-results.is-visible {
  display: block;
}

.docs-search-results-list {
  display: grid;
  gap: 10px;
}

.docs-search-result {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e8f1ec;
  background: #fbfefd;
}

.docs-search-result a {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 800;
  color: var(--text);
}

.docs-search-result p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.docs-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.docs-quick-card {
  display: block;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  transition: all 0.18s ease;
}

.docs-quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.26);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.06);
}

.docs-quick-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.docs-quick-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================
   Layout docs 3 columnas
========================================= */

.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-width);
  gap: 18px;
  margin-top: 20px;
}

.docs-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px 14px;
}

.docs-main {
  min-width: 0;
  padding: 28px 32px 36px;
}

/* =========================================
   Sidebar izquierda
========================================= */

.docs-sidebar-title,
.docs-toc-title,
.docs-eyebrow {
  margin: 0 0 14px;
  color: #4b7164;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-nav-group + .docs-nav-group {
  margin-top: 18px;
}

.docs-nav-group-title {
  display: block;
  padding: 0 10px;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.docs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.docs-nav-item {
  list-style: none;
}

.docs-nav-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-nav-item .docs-nav-link {
  flex: 1 1 auto;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.18s ease;
}

.docs-nav-link:hover,
.docs-nav-link.is-active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--text);
  transform: translateX(2px);
}

.docs-nav-link-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.docs-nav-link-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.docs-nav-link-label {
  min-width: 0;
}

.docs-nav-link:hover .docs-nav-link-icon,
.docs-nav-link.is-active .docs-nav-link-icon {
  color: var(--text);
  transform: translateY(-1px);
}

.docs-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fcfa;
  color: #557a6b;
  cursor: pointer;
  transition: all 0.18s ease;
}

.docs-nav-toggle:hover {
  border-color: var(--line-strong);
  background: #f4faf7;
  color: var(--text);
}

.docs-nav-toggle.is-expanded {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.16);
  color: #16624b;
}

.docs-nav-toggle-icon {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
}

.docs-nav-toggle-icon::before,
.docs-nav-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.docs-nav-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.docs-nav-toggle.is-expanded .docs-nav-toggle-icon::after {
  opacity: 0;
}

.docs-nav-sublinks {
  list-style: none;
  margin: 6px 0 8px 12px;
  padding: 0 0 0 10px;
  display: grid;
  gap: 2px;
}

.docs-nav-item .docs-nav-sublinks[hidden] {
  display: none;
}

.docs-nav-sublink,
.docs-nav-sublinks a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 10px;
  transition: 0.16s ease;
}

.docs-nav-sublink:hover,
.docs-nav-sublink.is-active,
.docs-nav-sublinks a:hover,
.docs-nav-sublinks a.is-active {
  background: #f4faf7;
  color: var(--text);
}

@media (min-width: 981px) {
  .docs-nav-item.has-children.is-current .docs-nav-toggle {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.18);
  }
}

/* =========================================
   Contenido central
========================================= */

.docs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.docs-breadcrumbs .sep {
  opacity: 0.45;
}

.docs-main h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.docs-lead {
  margin: 0 0 28px;
  max-width: var(--content-max);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.docs-section {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #edf3ef;
  scroll-margin-top: 100px;
}

.docs-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.docs-section + .docs-section {
  margin-top: 28px;
}

.docs-section h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.docs-main h2 {
  scroll-margin-top: 96px;
}

.docs-section h3,
.docs-main h3 {
  margin: 26px 0 8px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

.docs-section p,
.docs-section li {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.docs-section p {
  margin: 0 0 14px;
}

.docs-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.docs-main ul li,
.docs-main ol li {
  margin: 8px 0;
}

.docs-section li + li {
  margin-top: 6px;
}

.docs-callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  background: #f6fbf8;
  color: #214235;
}

.docs-inline-note {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f6fbf8;
  border: 1px solid #e4efea;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.docs-note {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.docs-note-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.docs-note p {
  margin: 0;
}

.docs-note--info {
  background: var(--info-bg);
  border-color: var(--info-border);
}

.docs-note--info .docs-note-label {
  color: var(--info-text);
}

.docs-note--tip {
  background: var(--tip-bg);
  border-color: var(--tip-border);
}

.docs-note--tip .docs-note-label {
  color: var(--tip-text);
}

.docs-note--important {
  background: var(--important-bg);
  border-color: var(--important-border);
}

.docs-note--important .docs-note-label {
  color: var(--important-text);
}

.docs-note--danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

.docs-note--danger .docs-note-label {
  color: var(--danger-text);
}

.docs-screenshot,
.docs-image-placeholder {
  margin: 22px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: var(--shadow-md);
}

.docs-screenshot-media,
.docs-image-placeholder img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #f9fafb 0%, #eef7f2 100%);
}

.docs-screenshot-media img,
.docs-image-placeholder img {
  width: 100%;
  /* aspect-ratio: 16 / 9; */
  aspect-ratio: auto;
  object-fit: cover;
}

.docs-image-placeholder {
  overflow: hidden;
}

.docs-image-caption,
.docs-screenshot-caption {
  margin-top: 12px;
  padding: 0;
  border-top: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.docs-steps {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}

.docs-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.docs-step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-soft), #d1fae5);
  color: var(--brand);
  font-weight: 800;
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.docs-step-body {
  padding-top: 8px;
}

/* =========================================
   TOC derecha
========================================= */

.docs-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.docs-toc-list a {
  display: block;
  padding: 5px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.18s ease;
}

.docs-toc-list a:hover,
.docs-toc-list a.is-active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--text);
}

/* =========================================
   Index / home docs
========================================= */

.docs-home-main {
  margin-top: 20px;
  padding: 28px 32px 36px;
}

.docs-home-header {
  margin-bottom: 28px;
}

.docs-home-header h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 35px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.docs-home-lead {
  margin: 0;
  max-width: 920px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.docs-home-groups {
  display: grid;
  gap: 18px;
}

.docs-home-group {
  border-top: 1px solid #edf3ef;
  padding-top: 8px;
}

.docs-home-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.docs-home-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  cursor: default;
  transition: all 0.18s ease;
}

.docs-home-group-toggle span:first-child {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.docs-home-group-icon {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f6fbf8;
  border: 1px solid #e4efea;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 28px;
  position: relative;
}

.docs-home-group-body {
  margin-top: 14px;
}

.docs-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.docs-home-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  transition: all 0.18s ease;
}

.docs-home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.26);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.06);
}

.docs-home-card-title {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.docs-home-card-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.docs-home-card-links {
  display: grid;
  gap: 6px;
}

.docs-home-card-footer {
  margin-top: auto;
  padding-top: 4px;
}

.docs-home-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.docs-home-card-more:hover {
  color: #047857;
}

.docs-subentry {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7fbf9;
  color: #244236;
  font-size: 14px;
  transition: all 0.16s ease;
}

.docs-subentry:hover {
  background: #f1f8f4;
}

.docs-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.docs-index-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  transition: all 0.18s ease;
}

.docs-index-card:hover {
  border-color: rgba(16, 185, 129, 0.26);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.06);
}

.docs-index-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.docs-index-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================
   Helpers
========================================= */

.docs-hidden {
  display: none !important;
}

.docs-empty-state {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed #dce8e1;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================
   Mobile toggles internas
========================================= */

.docs-mobile-toggles {
  display: none;
  gap: 10px;
  margin: 16px 0 0;
}

.docs-mobile-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.docs-mobile-toggle span:last-child {
  color: var(--muted);
}

.docs-mobile-toggle[data-docs-toggle-sidebar] {
  cursor: pointer;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 1240px) {
  .docs-layout {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 980px) {
  .docs-step {
    grid-template-columns: 36px 1fr;
  }

  .docs-step-number {
    width: 36px;
    height: 36px;
  }

  .docs-nav-toggle {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .docs-nav-sublinks {
    margin-left: 8px;
  }
}

@media (max-width: 920px) {
  .docs-layout {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .docs-sidebar,
  .docs-toc {
    display: none;
    position: static;
    max-height: none;
  }

  .docs-sidebar.is-open,
  .docs-toc.is-open {
    display: block;
    margin-top: 12px;
  }

  .docs-mobile-toggles {
    display: grid;
  }

  .docs-main,
  .docs-hero-inner,
  .docs-home-main {
    padding: 22px;
  }

  .docs-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .docs-topbar-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .docs-home-header {
    margin-bottom: 20px;
  }

  .docs-home-header h2 {
    font-size: 28px;
  }

  .docs-home-lead {
    font-size: 15px;
    line-height: 1.7;
  }

  .docs-home-group {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
  }

  .docs-home-group:first-child {
    border-top: 1px solid var(--line);
    padding-top: 0;
  }

  .docs-home-group-toggle {
    padding: 16px 18px;
    cursor: pointer;
  }

  .docs-home-group-toggle span:first-child {
    font-size: 20px;
  }

  .docs-home-group-icon {
    display: inline-flex;
    font-size: 0;
  }

  .docs-home-group-body {
    margin-top: 0;
    padding: 0 18px 18px;
    display: none;
  }

  .docs-home-group.is-open .docs-home-group-body {
    display: block;
  }

  .docs-home-group.is-open .docs-home-group-icon::before {
    content: "−";
    font-size: 18px;
    line-height: 1;
  }

  .docs-home-group:not(.is-open) .docs-home-group-icon::before {
    content: "+";
    font-size: 18px;
    line-height: 1;
  }

  .docs-home-grid {
    grid-template-columns: 1fr;
  }

  .docs-home-card {
    padding: 16px;
    gap: 12px;
  }

  .docs-home-card-title {
    margin-bottom: 6px;
    font-size: 18px;
  }

  .docs-home-card-text {
    font-size: 13px;
    line-height: 1.55;
  }

  .docs-home-card-links .docs-subentry {
    font-size: 13px;
    padding: 7px 9px;
  }
}

@media (max-width: 640px) {
  .docs-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .docs-hero h1 {
    font-size: 33px;
  }

  .docs-main h1 {
    font-size: 30px;
  }

  .docs-section h2 {
    font-size: 24px;
  }

  .docs-index-grid,
  .docs-quick-grid {
    grid-template-columns: 1fr;
  }

  .docs-quick-card {
    padding: 14px;
  }

  .docs-quick-card strong {
    font-size: 15px;
  }

  .docs-quick-card span {
    font-size: 13px;
    line-height: 1.45;
  }
}

/* =========================================
   Footer
========================================= */

.docs-footer {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.docs-footer-inner {
  padding: 18px 4px 10px;
}

.docs-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
}

.docs-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.docs-footer-logo {
  height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
}

.docs-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 22px;
}

.docs-footer-nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.docs-footer-nav a:hover {
  color: var(--text);
}

@media (max-width: 920px) {
  .docs-footer-inner {
    padding: 18px 0 6px;
  }

  .docs-footer-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .docs-footer-brand {
    justify-content: center;
  }

  .docs-footer-nav {
    justify-content: center;
    gap: 10px 18px;
  }
}

/* =========================================
   Image zoom / lightbox
========================================= */

.docs-zoomable {
  cursor: zoom-in;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.docs-zoomable:hover {
  transform: scale(1.01);
}

html.docs-lightbox-open {
  scroll-behavior: auto !important;
}

body.docs-lightbox-open {
  overflow: hidden;
}

.docs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
}

.docs-lightbox.is-open {
  display: flex;
}

.docs-lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.docs-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(1200px, 92vw);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.docs-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 640px) {
  .docs-lightbox {
    padding: 14px;
  }

  .docs-lightbox-dialog {
    max-width: 100%;
    max-height: 100%;
  }

  .docs-lightbox-image {
    max-width: 100%;
    max-height: 86vh;
    border-radius: 14px;
  }

  .docs-lightbox-close {
    top: -8px;
    right: -4px;
    width: 38px;
    height: 38px;
  }

  .docs-zoomable:hover {
    transform: none;
  }
}

/* ===== Lightbox viewport estable ===== */

.docs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.docs-lightbox.is-open {
  display: block;
}

.docs-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.82);
}

.docs-lightbox-dialog {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  touch-action: none;
}

.docs-lightbox-image {
  display: block !important;
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 48px) !important;
  max-height: calc(100vh - 48px) !important;
  margin: 0 !important;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.14s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: zoom-in;
}

.docs-lightbox-image.is-zoomed {
  cursor: grab;
}

.docs-lightbox-image.is-dragging {
  cursor: grabbing;
  transition: none;
}

.docs-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 253 253 / 34%);
  color: #000000;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}