/* ImpulseWatch User Documentation — Design System
 * Palette: Impulse Blue (#2563eb), Dark Slate (#0f172a), Emerald Green (#10b981)
 * Strict px-only sizing, light + dark mode via [data-theme="dark"]
 */

:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-elevated: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;
  --green: #10b981;
  --green-dark: #059669;
  --green-soft: #ecfdf5;
  --green-border: #a7f3d0;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --red-border: #fecaca;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --code-border: #1e293b;
  --inline-code-bg: #f1f5f9;
  --inline-code-text: #0f172a;
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.22);
  --header-h: 64px;
  --sidebar-w: 268px;
  --toc-w: 224px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-subtle: #0f172a;
  --bg-muted: #1e293b;
  --bg-elevated: #111827;
  --border: #1e293b;
  --border-strong: #334155;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --blue: #3b82f6;
  --blue-hover: #60a5fa;
  --blue-soft: rgba(37, 99, 235, 0.16);
  --blue-border: rgba(59, 130, 246, 0.35);
  --green: #10b981;
  --green-dark: #34d399;
  --green-soft: rgba(16, 185, 129, 0.14);
  --green-border: rgba(16, 185, 129, 0.35);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --amber-border: rgba(245, 158, 11, 0.35);
  --red: #f87171;
  --red-soft: rgba(239, 68, 68, 0.14);
  --red-border: rgba(239, 68, 68, 0.35);
  --code-bg: #020617;
  --code-text: #e2e8f0;
  --code-border: #1e293b;
  --inline-code-bg: #1e293b;
  --inline-code-text: #f1f5f9;
  --header-bg: rgba(11, 17, 32, 0.92);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
}

/* Header */
.docs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.docs-header__inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.docs-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
  text-decoration: none;
  white-space: nowrap;
}

.docs-brand:hover {
  text-decoration: none;
}

.docs-brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  flex-shrink: 0;
}

.docs-brand__badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

.docs-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 300px;
  max-width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.docs-search-btn:hover {
  border-color: var(--blue);
  color: var(--text);
}

.docs-search-btn__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.docs-kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border-strong);
}

.docs-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.docs-nav-link:hover {
  color: var(--text);
  background: var(--bg-muted);
  text-decoration: none;
}

.docs-btn-console {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  background: var(--blue);
  color: #ffffff;
  white-space: nowrap;
}

.docs-btn-console:hover {
  background: var(--blue-hover);
  text-decoration: none;
}

.docs-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
}

.docs-icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.docs-menu-btn {
  display: none;
}

/* Main Shell */
.docs-shell {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  min-height: calc(100vh - var(--header-h));
}

/* Left Sidebar */
.docs-sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 24px 16px 32px 20px;
  border-right: 1px solid var(--border);
  background: var(--bg-subtle);
}

.docs-sidebar__group {
  margin-bottom: 22px;
}

.docs-sidebar__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  padding: 0 10px 6px;
}

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

.docs-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.docs-sidebar__link:hover {
  background: var(--bg-muted);
  color: var(--text);
  text-decoration: none;
}

.docs-sidebar__link.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.docs-sidebar__pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
}

.docs-sidebar-backdrop {
  display: none;
}

/* Article Content */
.docs-main {
  min-width: 0;
  padding: 36px 48px 64px;
  max-width: 920px;
}

.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.docs-breadcrumb a {
  color: var(--text-muted);
}

.docs-breadcrumb a:hover {
  color: var(--blue);
}

.docs-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.docs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.docs-chip--blue {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--blue-border);
}

.docs-chip--green {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: var(--green-border);
}

.docs-chip--amber {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: var(--amber-border);
}

.docs-article h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 800;
  color: var(--text);
}

.docs-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.docs-article h2 {
  margin: 40px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  font-weight: 700;
  color: var(--text);
}

.docs-article h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.docs-article h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.docs-article p {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-secondary);
}

.docs-article li {
  margin-bottom: 6px;
}

.docs-article strong {
  color: var(--text);
  font-weight: 600;
}

.docs-article code {
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--inline-code-bg);
  color: var(--inline-code-text);
  border: 1px solid var(--border);
}

/* Code Blocks */
.docs-code-wrap {
  position: relative;
  margin: 16px 0 22px;
  border-radius: 10px;
  border: 1px solid var(--code-border);
  background: var(--code-bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.docs-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.docs-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.docs-copy-btn:hover {
  background: rgba(37, 99, 235, 0.35);
  border-color: #3b82f6;
}

.docs-copy-btn.is-copied {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #6ee7b7;
}

.docs-article pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--code-text);
  background: transparent;
}

.docs-article pre code {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

/* Callouts */
.docs-callout {
  margin: 18px 0 22px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--blue-border);
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.docs-callout--green {
  border-color: var(--green-border);
  border-left-color: var(--green);
  background: var(--green-soft);
}

.docs-callout--amber {
  border-color: var(--amber-border);
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.docs-callout--red {
  border-color: var(--red-border);
  border-left-color: var(--red);
  background: var(--red-soft);
}

.docs-callout__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.docs-callout p:last-child {
  margin-bottom: 0;
}

/* Cards & Grids */
.docs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 24px;
}

.docs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.docs-card {
  display: block;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.docs-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.docs-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--blue);
  margin-bottom: 6px;
}

.docs-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.docs-card__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Step-by-Step Lists */
.docs-steps {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  counter-reset: doc-step;
}

.docs-steps > li {
  position: relative;
  padding: 0 0 22px 44px;
  margin: 0;
  border-left: 2px solid var(--border);
}

.docs-steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.docs-steps > li::before {
  counter-increment: doc-step;
  content: counter(doc-step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--bg);
}

.docs-steps__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

/* Tables */
.docs-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.docs-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.docs-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-status-yes {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--green-soft);
  color: var(--green-dark);
}

.docs-status-no {
  color: var(--text-muted);
}

/* Annotated Screenshots */
.docs-figure {
  margin: 22px 0 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.docs-figure__img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  background: #0f172a;
}

.docs-figure__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.docs-figure__hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

/* Inline Home Hero Search */
.docs-hero-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  margin: 0 0 26px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.docs-hero-search:hover {
  border-color: var(--blue);
  color: var(--text);
}

/* Prev / Next Pagination */
.docs-pager {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.docs-pager__link {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.docs-pager__link:hover {
  border-color: var(--blue);
  text-decoration: none;
}

.docs-pager__link--next {
  text-align: right;
}

.docs-pager__dir {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.docs-pager__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Right TOC */
.docs-toc {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 28px 20px 32px 12px;
}

.docs-toc__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.docs-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.docs-toc__link {
  display: block;
  padding: 5px 0 5px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.docs-toc__link:hover {
  color: var(--text);
  text-decoration: none;
}

.docs-toc__link.is-active {
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: 600;
}

/* Footer */
.docs-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 24px 20px;
}

.docs-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.docs-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.docs-footer__links a {
  color: var(--text-secondary);
}

/* Search Modal */
.docs-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.docs-modal.is-open {
  display: flex;
}

.docs-modal__panel {
  width: 100%;
  max-width: 640px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.docs-modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.docs-modal__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
}

.docs-modal__results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
}

.docs-search-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  margin-bottom: 2px;
}

.docs-search-item:hover,
.docs-search-item.is-selected {
  background: var(--blue-soft);
  text-decoration: none;
}

.docs-search-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.docs-search-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.docs-search-item__cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
}

.docs-search-item__snippet {
  font-size: 13px;
  color: var(--text-muted);
}

.docs-search-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.docs-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

/* Lightbox */
.docs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(6px);
}

.docs-lightbox.is-open {
  display: flex;
}

.docs-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.docs-lightbox__img {
  max-width: 1200px;
  width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
}

.docs-lightbox__cap {
  margin-top: 12px;
  font-size: 14px;
  color: #e2e8f0;
  text-align: center;
}

/* Responsive */
@media (max-width: 1180px) {
  .docs-shell {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }
  .docs-toc {
    display: none;
  }
  .docs-main {
    padding: 32px 32px 56px;
  }
}

@media (max-width: 860px) {
  .docs-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-menu-btn {
    display: inline-flex;
  }
  .docs-search-btn {
    width: auto;
    padding: 0 10px;
  }
  .docs-search-btn__text,
  .docs-nav-link {
    display: none;
  }
  .docs-sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  .docs-sidebar.is-open {
    transform: translateX(0);
  }
  .docs-sidebar-backdrop.is-open {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 55;
    background: rgba(15, 23, 42, 0.55);
  }
  .docs-main {
    padding: 24px 18px 48px;
  }
  .docs-article h1 {
    font-size: 28px;
  }
  .docs-grid-2,
  .docs-grid-3,
  .docs-pager {
    grid-template-columns: minmax(0, 1fr);
  }
}
