/* ============================================
   KWT Labs — Documentation Center
   ============================================ */

.docs-main {
  padding-top: var(--header-h);
  background: var(--white);
  min-height: 100vh;
}

/* Top bar */
.docs-topbar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.docs-topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.docs-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.docs-sidebar-toggle .icon { width: 20px; height: 20px; }

.docs-search {
  flex: 1;
  max-width: 480px;
}

.docs-search__wrap { position: relative; }

.docs-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.docs-search__icon .icon { width: 18px; height: 18px; color: var(--gray-400); }

.docs-search__input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  font-size: 0.9375rem;
  font-family: var(--font);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.docs-search__input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15, 111, 255, 0.12);
}

.docs-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}

.docs-search__wrap--home-spacer { flex: 1; min-height: 42px; }

.docs-search__hit {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}

.docs-search__hit:last-child { border-bottom: none; }
.docs-search__hit:hover { background: var(--primary-light); }

.docs-search__hit strong {
  display: block;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.docs-search__hit span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.docs-search__hit em {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
  font-style: normal;
  margin-top: 4px;
}

.docs-search__empty {
  padding: 16px;
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
}

.docs-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Version switcher */
.docs-version { position: relative; }

.docs-version__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-family: var(--font);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  color: var(--dark);
}

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

.docs-version__badge {
  font-weight: 600;
  color: var(--primary);
}

.docs-version__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 4px;
  margin: 0;
  z-index: 100;
}

.docs-version__menu[hidden] { display: none; }

.docs-version__menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.8125rem;
  font-family: var(--font);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  color: var(--dark);
}

.docs-version__menu button:hover { background: var(--gray-50); }
.docs-version__menu button.is-current { color: var(--primary); font-weight: 600; }

.docs-print-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-family: var(--font);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  color: var(--gray-600);
}

.docs-print-btn .icon { width: 16px; height: 16px; }

/* Shell layout */
.docs-shell {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h) - 57px);
}

/* Sidebar */
.docs-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--gray-200);
  position: sticky;
  top: calc(var(--header-h) + 57px);
  height: calc(100vh - var(--header-h) - 57px);
  overflow-y: auto;
  background: var(--white);
}

.docs-sidebar__inner { padding: 20px 16px 32px; }

.docs-sidebar__home {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.docs-sidebar__home .icon { width: 18px; height: 18px; color: var(--primary); }

.docs-nav__section { margin-bottom: 20px; }

.docs-nav__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin: 0 0 8px 8px;
}

.docs-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav__link {
  display: block;
  padding: 6px 10px;
  font-size: 0.875rem;
  color: var(--gray-600);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.docs-nav__link:hover { color: var(--primary); background: var(--gray-50); }
.docs-nav__link.is-active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.docs-nav__toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.docs-nav__toggle .icon {
  width: 14px;
  height: 14px;
  color: var(--gray-400);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.docs-nav__item--parent.is-open > .docs-nav__toggle .icon { transform: rotate(0deg); }
.docs-nav__item--parent:not(.is-open) > .docs-nav__toggle .icon { transform: rotate(-90deg); }
.docs-nav__item--parent:not(.is-open) > .docs-nav__sub { display: none; }

.docs-nav__sub {
  list-style: none;
  margin: 4px 0 4px 12px;
  padding: 0 0 0 8px;
  border-left: 1px solid var(--gray-200);
}

.docs-sidebar__cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

.docs-sidebar__cta-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.btn--block { display: block; width: 100%; text-align: center; }

.docs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}

.docs-overlay.is-visible { display: block; }

/* Article */
.docs-article-wrap {
  display: flex;
  flex: 1;
  min-width: 0;
}

.docs-article {
  flex: 1;
  max-width: 820px;
  padding: 32px 40px 64px;
  min-width: 0;
}

.docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.docs-breadcrumb a { color: var(--gray-500); }
.docs-breadcrumb a:hover { color: var(--primary); }

.docs-breadcrumb__sep .icon {
  width: 12px;
  height: 12px;
  color: var(--gray-300);
}

.docs-layer {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.docs-layer--learn { background: #e8f1ff; color: #0F6FFF; }
.docs-layer--guides { background: #ecfdf5; color: #059669; }
.docs-layer--reference { background: #f3f4f6; color: #6b7280; }

.docs-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--dark);
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.docs-meta span { display: flex; align-items: center; gap: 6px; }
.docs-meta .icon { width: 14px; height: 14px; }

.docs-meta__version {
  font-weight: 600;
  color: var(--primary);
}

/* Body content */
.docs-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-700);
}

.docs-body h2 {
  font-size: 1.375rem;
  color: var(--dark);
  margin: 40px 0 12px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--header-h) + 80px);
}

.docs-body h3 {
  font-size: 1.125rem;
  color: var(--dark);
  margin: 28px 0 10px;
  scroll-margin-top: calc(var(--header-h) + 80px);
}

.docs-body p { margin: 0 0 16px; }
.docs-body ul, .docs-body ol { margin: 0 0 16px; padding-left: 24px; }
.docs-body li { margin-bottom: 6px; }
.docs-body a { color: var(--primary); }

.docs-body pre {
  background: #f4f5f7;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 0 0 20px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.docs-body code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.875em;
  background: #f4f5f7;
  padding: 2px 6px;
  border-radius: 4px;
}

.docs-body pre code {
  background: none;
  padding: 0;
}

/* Callouts */
.docs-tip,
.docs-warning,
.docs-note {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 0 0 20px;
  border-left: 4px solid;
}

.docs-tip {
  background: #e8f1ff;
  border-color: #0F6FFF;
}

.docs-warning {
  background: #fff7ed;
  border-color: #f97316;
}

.docs-note {
  background: #f9fafb;
  border-color: var(--gray-300);
}

.docs-callout__title { margin: 0 0 6px; font-size: 0.9375rem; }
.docs-callout__body { font-size: 0.9375rem; }
.docs-callout__body p:last-child { margin-bottom: 0; }

/* Screenshot placeholder */
.docs-screenshot { margin: 0 0 24px; }

.docs-screenshot__frame {
  position: relative;
  background: #f0f2f5;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.docs-screenshot__highlight {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 120px;
  height: 48px;
  border: 3px solid #0F6FFF;
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(15, 111, 255, 0.15);
}

.docs-screenshot__highlight::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #0F6FFF;
}

.docs-screenshot__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  z-index: 1;
}

.docs-screenshot figcaption {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 8px;
  text-align: center;
}

/* Video placeholder */
.docs-video {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin: 0 0 24px;
}

.docs-video__play {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docs-video__play .icon { width: 20px; height: 20px; color: var(--white); }

.docs-video__meta strong { display: block; font-size: 0.9375rem; color: var(--dark); }
.docs-video__meta span { font-size: 0.8125rem; color: var(--gray-500); }

/* Timeline */
.docs-timeline {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-left: 2px solid var(--gray-200);
}

.docs-timeline li {
  position: relative;
  padding: 0 0 28px 28px;
  margin: 0;
}

.docs-timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.docs-timeline li:last-child { padding-bottom: 0; }

.docs-timeline h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--dark);
}

.docs-timeline p { margin: 0; font-size: 0.9375rem; }

/* FAQ accordion */
.docs-faq { margin: 0 0 24px; }

.docs-faq details {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.docs-faq summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  color: var(--dark);
}

.docs-faq summary::-webkit-details-marker { display: none; }

.docs-faq details[open] summary {
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.docs-faq__answer {
  padding: 14px 18px;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* Error codes table */
.docs-errors { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 0.875rem; }
.docs-errors th, .docs-errors td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.docs-errors th { background: var(--gray-50); font-weight: 600; color: var(--dark); }
.docs-errors code { font-weight: 600; color: var(--primary); }

/* Shortcuts table */
.docs-shortcuts { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.docs-shortcuts th, .docs-shortcuts td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; }
.docs-shortcuts kbd {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font);
  font-size: 0.8125rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--gray-300);
}

/* Related articles */
.docs-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.docs-related h2 {
  font-size: 1.125rem;
  margin: 0 0 16px;
}

.docs-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.docs-related__card {
  display: block;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.docs-related__card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.docs-related__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.docs-related__card h3 {
  font-size: 0.9375rem;
  margin: 6px 0 0;
  color: var(--dark);
}

/* Helpful */
.docs-helpful {
  margin-top: 32px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  text-align: center;
}

.docs-helpful p { margin: 0 0 12px; font-size: 0.9375rem; color: var(--gray-600); }

.docs-helpful__btns { display: flex; justify-content: center; gap: 12px; }

.docs-helpful__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-family: var(--font);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  color: var(--gray-600);
  transition: border-color var(--transition), color var(--transition);
}

.docs-helpful__btn:hover { border-color: var(--primary); color: var(--primary); }
.docs-helpful__btn .icon { width: 16px; height: 16px; }
.docs-helpful__thanks { color: var(--primary); font-weight: 600; }

/* Footer nav */
.docs-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.docs-footer-nav__prev,
.docs-footer-nav__next {
  display: block;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}

.docs-footer-nav__next { text-align: right; }
.docs-footer-nav__prev:hover,
.docs-footer-nav__next:hover { border-color: var(--primary); }

.docs-footer-nav__label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.docs-footer-nav__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dark);
}

.docs-footer-nav__next .docs-footer-nav__title { justify-content: flex-end; }
.docs-icon-flip { transform: rotate(180deg); display: inline-flex; }

.docs-article-footer {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-align: center;
}

.docs-article-footer__sep { margin: 0 8px; }
.docs-coming-soon { opacity: 0.6; cursor: default; }

/* TOC */
.docs-toc {
  width: 240px;
  flex-shrink: 0;
  padding: 32px 20px 64px 0;
  position: sticky;
  top: calc(var(--header-h) + 57px);
  height: calc(100vh - var(--header-h) - 57px);
  overflow-y: auto;
  display: none;
}

.docs-toc__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin: 0 0 12px;
}

.docs-toc__nav a {
  display: block;
  padding: 4px 0 4px 12px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.docs-toc__nav a:hover { color: var(--primary); }
.docs-toc__nav a.is-active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.docs-toc__nav a.docs-toc__h3 { padding-left: 24px; font-size: 0.75rem; }
.docs-toc__empty { font-size: 0.75rem; color: var(--gray-400); margin: 0; }

/* ============================================
   Docs Homepage
   ============================================ */

.docs-home-wrap {
  flex: 1;
  padding: 0 40px 64px;
  max-width: 1100px;
}

.docs-hero {
  padding: 48px 0 40px;
  text-align: center;
}

.docs-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 12px;
  color: var(--dark);
}

.docs-hero__lead {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.docs-hero .docs-search {
  max-width: 560px;
  margin: 0 auto 12px;
}

.docs-hero .docs-search__input {
  padding: 16px 20px 16px 48px;
  font-size: 1rem;
  border-width: 2px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.docs-hero__hint {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.docs-quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.docs-quick-nav a {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.docs-quick-nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.docs-quick-nav a.is-soon { opacity: 0.65; }

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

.docs-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.docs-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.docs-card__icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.docs-card__icon .icon { width: 22px; height: 22px; color: var(--primary); }

.docs-card h2 {
  font-size: 1.125rem;
  margin: 0 0 6px;
  color: var(--dark);
}

.docs-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}

.docs-card__meta {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.docs-layers {
  margin-top: 16px;
}

.docs-layers h2 {
  font-size: 1.25rem;
  margin: 0 0 20px;
  text-align: center;
}

.docs-layers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.docs-layer-card {
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
}

.docs-layer-card h3 { font-size: 1rem; margin: 0 0 6px; }
.docs-layer-card p { font-size: 0.8125rem; color: var(--gray-500); margin: 0; }

.docs-kb-crosslink {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--primary-light);
  border: 1px solid rgba(15, 111, 255, 0.15);
  border-radius: var(--radius-lg);
}

.docs-kb-crosslink h2 { font-size: 1.125rem; margin: 0 0 8px; }
.docs-kb-crosslink p { font-size: 0.9375rem; color: var(--gray-600); margin: 0; line-height: 1.65; }
.docs-kb-crosslink a { font-weight: 600; }

/* Responsive */
@media (min-width: 1200px) {
  .docs-toc { display: block; }
}

@media (max-width: 1024px) {
  .docs-sidebar {
    position: fixed;
    top: calc(var(--header-h) + 57px);
    left: 0;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }

  .docs-sidebar.is-open { transform: translateX(0); }
  .docs-sidebar-toggle { display: flex; }
  .docs-print-btn__text { display: none; }
  .docs-article { padding: 24px 20px 48px; }
  .docs-home-wrap { padding: 0 20px 48px; }
  .docs-layers__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .docs-footer-nav { grid-template-columns: 1fr; }
  .docs-meta { flex-direction: column; gap: 8px; }
  .docs-topbar__inner { padding: 10px 16px; }
}

/* Print */
@media print {
  .site-header,
  .docs-topbar,
  .docs-sidebar,
  .docs-toc,
  .docs-related,
  .docs-helpful,
  .docs-footer-nav,
  .docs-article-footer,
  .site-footer,
  .docs-sidebar-toggle { display: none !important; }

  .docs-main { padding-top: 0; }
  .docs-shell { display: block; }
  .docs-article { max-width: 100%; padding: 0; }
  .docs-body a { color: inherit; text-decoration: underline; }
  .docs-body pre { white-space: pre-wrap; border: 1px solid #ccc; }
  .docs-screenshot__frame { min-height: 80px; border-style: solid; }
}
