/* ============================================================
   Ergono3D Docs
   The public site design system remains the source of truth:
   /assets/styles.css supplies the brand type, palette and buttons.
   This file adds the documentation workspace only.
   ============================================================ */

:root {
  --docs-sidebar-width: 254px;
  --docs-toc-width: 194px;
  --docs-content-width: 760px;
  --docs-blue: #2563eb;
  --docs-teal: #0f766e;
  --docs-wash: var(--paper-2);
  --docs-deep: #102b2a;
  --docs-header-height: 64px;
}

.docs-page {
  --accent-teal: #0f766e;
  --accent-grad: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
  --accent-grad-hover: linear-gradient(135deg, #1e40af 0%, #115e59 100%);
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
}

.docs-sidebar-open { overflow: hidden; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  transform: translateY(-180%);
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}

.skip-link:focus { transform: translateY(0); color: var(--paper); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--docs-header-height);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}

.docs-topbar-inner {
  width: 100%;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}

.docs-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.docs-brand:hover { color: var(--ink); }

.docs-brand small {
  padding-left: 9px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.docs-menu-toggle,
.docs-sidebar-close {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.docs-menu-toggle svg,
.docs-sidebar-close svg { width: 19px; height: 19px; }

.docs-search-trigger {
  width: min(360px, 32vw);
  min-height: 38px;
  margin-left: auto;
  padding: 0 9px 0 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.docs-search-trigger:hover,
.docs-search-trigger:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--rule));
  background: var(--paper);
  color: var(--ink);
}

.docs-search-trigger svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--accent); }

.docs-search-trigger kbd {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--muted);
  background: var(--paper);
  font-size: 10px;
  line-height: 1.2;
}

.docs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
}

.docs-topbar-actions > a:not(.btn):hover { color: var(--accent); }

.docs-sidebar-backdrop { display: none; }

.docs-workspace {
  width: min(100%, 1440px);
  min-height: calc(100vh - var(--docs-header-height));
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) minmax(0, var(--docs-content-width)) var(--docs-toc-width);
  justify-content: center;
}

.docs-sidebar {
  position: sticky;
  top: var(--docs-header-height);
  align-self: start;
  height: calc(100vh - var(--docs-header-height));
  overflow-y: auto;
  border-right: 1px solid var(--rule-2);
  background: var(--bg);
  scrollbar-width: thin;
}

.docs-sidebar-heading {
  min-height: 56px;
  padding: 21px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-sidebar-nav { padding: 2px 12px 28px; }

.docs-nav-group + .docs-nav-group { margin-top: 25px; }

.docs-nav-group > p {
  margin: 0 10px 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-nav-item {
  position: relative;
  min-height: 34px;
  padding: 7px 10px 7px 15px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.docs-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 16px;
  border-radius: 99px;
  opacity: 0;
  background: var(--accent-grad);
  transform: scaleY(0.6);
  transition: opacity 150ms ease, transform 150ms ease;
}

.docs-nav-item:hover { background: var(--docs-wash); color: var(--ink); }

.docs-nav-item.is-active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.09), rgba(45, 212, 191, 0.04));
  color: var(--ink);
  font-weight: 500;
}

.docs-nav-item.is-active::before { opacity: 1; transform: scaleY(1); }

.docs-sidebar-footer {
  margin: 0 18px 26px;
  padding: 15px 0 0;
  border-top: 1px solid var(--rule-2);
}

.docs-sidebar-footer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.docs-sidebar-footer a:hover { color: var(--accent-teal); }

.docs-main {
  min-width: 0;
  padding: clamp(40px, 5vw, 64px) clamp(32px, 5vw, 72px) 96px;
  outline: none;
}

.docs-article {
  max-width: var(--docs-content-width);
  scroll-margin-top: calc(var(--docs-header-height) + 24px);
}
.docs-article[hidden] { display: none; }

.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.docs-breadcrumb a { min-height: 24px; display: inline-flex; align-items: center; color: var(--muted); }
.docs-breadcrumb a:hover { color: var(--accent); }
.docs-breadcrumb span + span { color: var(--muted); }

.docs-eyebrow {
  margin-top: 24px;
  color: var(--docs-teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.docs-article h1 {
  max-width: 16ch;
  margin-top: 13px;
  color: var(--ink);
  font-size: clamp(38px, 4.2vw, 55px);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.docs-article h1 em {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.docs-lede {
  max-width: 64ch;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
}

.docs-article h2 {
  max-width: 24ch;
  margin-top: 54px;
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.16;
  scroll-margin-top: calc(var(--docs-header-height) + 26px);
}

.docs-article h2 + p,
.docs-article h2 + .docs-check-list,
.docs-article h2 + .docs-steps,
.docs-article h2 + .docs-table-wrap,
.docs-article h2 + .docs-plan-list { margin-top: 16px; }

.docs-article p:not(.docs-eyebrow):not(.docs-lede):not(.docs-search-hint) { color: var(--muted); }

.docs-article > p:not(.docs-lede):not(.docs-eyebrow) {
  max-width: 68ch;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.68;
}

.docs-inline-link {
  min-height: 30px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.docs-inline-link:hover { color: var(--accent-teal); }
.docs-inline-link span { transition: transform 150ms ease; }
.docs-inline-link:hover span { transform: translateX(3px); }

.docs-link-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.docs-link-row .docs-inline-link { margin-top: 18px; }

.docs-callout {
  margin-top: 31px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--bg);
}

.docs-callout > svg { width: 19px; height: 19px; color: var(--accent); }
.docs-callout--tip { border-color: var(--rule); background: var(--paper-2); }
.docs-callout--tip > svg { color: var(--docs-teal); }
.docs-callout strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.docs-callout p { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.docs-callout p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.docs-visual {
  position: relative;
  margin: 34px 0 42px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: var(--paper);
}

.docs-visual::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -1px;
  left: 24px;
  width: 58px;
  height: 2px;
  background: var(--accent-grad);
}

.docs-visual-head,
.docs-visual figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.docs-visual-head {
  min-height: 42px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-2);
  background: color-mix(in srgb, var(--bg) 80%, var(--paper));
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.docs-visual-head span:first-child { color: var(--accent); font-weight: 600; }
.docs-visual-head span:last-child { text-align: right; }

.docs-visual-media {
  overflow: hidden;
  background: #eef4f7;
}

.docs-visual-media img {
  width: 100%;
  height: auto;
  display: block;
}

.docs-visual-media picture { display: block; }

.docs-visual--screen .docs-visual-media { padding: clamp(10px, 2vw, 18px); }
.docs-visual--screen .docs-visual-media img { border: 1px solid rgba(15, 36, 32, 0.1); border-radius: 8px; }
.docs-visual--photo .docs-visual-media img { aspect-ratio: 16 / 9; object-fit: cover; }

.docs-visual figcaption {
  padding: 13px 15px 14px;
  border-top: 1px solid var(--rule-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.docs-visual figcaption strong { flex: 0 0 auto; color: var(--ink); font-size: 13px; font-weight: 600; }
.docs-visual figcaption span { max-width: 48ch; text-align: right; }

.docs-path-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--rule);
}

.docs-path-card {
  min-height: 194px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  transition: background 150ms ease;
}

.docs-path-card:hover,
.docs-path-card:focus-visible {
  background: var(--docs-wash);
  color: var(--ink);
}

.docs-path-card:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--accent); }

.docs-path-number { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; }
.docs-path-card strong { margin-top: 22px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.docs-path-card p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.docs-path-card > span:last-child { margin-top: auto; padding-top: 14px; color: var(--accent); font-size: 12px; font-weight: 500; }

.docs-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-2);
}

.docs-steps li {
  padding: 17px 0;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--rule-2);
}

.docs-steps > li > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--docs-wash);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.docs-steps strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.docs-steps p { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.docs-steps--compact { margin-top: 17px; }

.docs-check-list {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.docs-check-list li {
  position: relative;
  padding: 10px 0 10px 27px;
  border-bottom: 1px solid var(--rule-2);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.docs-check-list li::before {
  content: "✓";
  position: absolute;
  top: 11px;
  left: 0;
  color: var(--docs-teal);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.docs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 9px;
}

.docs-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.docs-table th,
.docs-table td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-2);
}

.docs-table th {
  color: var(--ink);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-table td:first-child { color: var(--ink-2); font-weight: 500; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.docs-table a:hover { color: var(--accent-teal); }

.docs-plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--rule);
}

.docs-plan-list > a {
  min-height: 178px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 150ms ease, background 150ms ease;
}

.docs-plan-list > a:hover,
.docs-plan-list > a:focus-visible { background: var(--docs-wash); color: var(--ink); }
.docs-plan-list > a:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--accent); }
.docs-plan-list > a > span { color: var(--docs-teal); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.docs-plan-list > a > strong { margin-top: 13px; font-size: 23px; font-weight: 500; letter-spacing: -0.04em; }
.docs-plan-list > a > p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.docs-plan-list > a > small { margin-top: auto; padding-top: 13px; color: var(--accent); font-size: 11px; font-weight: 500; }

.docs-contact-card {
  padding: clamp(20px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--rule);
  border-radius: 11px;
  background: var(--paper-2);
}

.docs-contact-card > div:first-child { min-width: 0; }
.docs-contact-card span { display: block; color: var(--docs-teal); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.docs-contact-card strong { display: block; margin-top: 7px; color: var(--ink); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.docs-contact-card p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.docs-contact-card > div:last-child { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start; gap: 5px; }
.docs-contact-card .docs-inline-link { margin: 0; font-size: 12px; }

.docs-page-footer {
  margin-top: 66px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--rule);
}

.docs-page-footer a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.docs-page-footer a:last-child { justify-content: flex-end; text-align: right; }
.docs-page-footer a:hover { color: var(--accent-teal); }

.docs-on-page {
  position: sticky;
  top: calc(var(--docs-header-height) + 33px);
  align-self: start;
  max-height: calc(100vh - var(--docs-header-height) - 50px);
  margin-top: 62px;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--rule-2);
  overflow-y: auto;
}

.docs-on-page > p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.docs-on-page nav { display: grid; gap: 2px; }
.docs-on-page nav a { min-height: 24px; padding: 3px 0; display: flex; align-items: center; color: var(--muted); font-size: 12px; line-height: 1.38; }
.docs-on-page nav a:hover { color: var(--accent); }
.docs-on-page nav a.is-current { color: var(--ink); font-weight: 600; }
.docs-on-page-contact { min-height: 24px; margin-top: 26px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; font-weight: 500; }
.docs-on-page-contact:hover { color: var(--accent-teal); }

.docs-search-dialog {
  width: min(calc(100% - 32px), 650px);
  max-height: min(670px, calc(100vh - 56px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 13px;
  box-shadow: 0 24px 80px rgba(15, 36, 32, 0.2);
  background: var(--paper);
  color: var(--ink);
}

.docs-search-dialog::backdrop { background: rgba(15, 36, 32, 0.32); backdrop-filter: blur(3px); }
.docs-search-modal { padding: 24px; }
.docs-search-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.docs-search-modal-head p { color: var(--docs-teal); font-family: var(--mono); font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; }
.docs-search-modal-head h2 { margin-top: 4px; color: var(--ink); font-size: 26px; font-weight: 500; letter-spacing: -0.025em; }

.docs-search-close {
  min-width: 36px;
  min-height: 29px;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.docs-search-field {
  min-height: 50px;
  margin-top: 20px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--accent);
}

.docs-search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); background: var(--paper); }
.docs-search-field svg { width: 19px; height: 19px; flex: 0 0 auto; }
.docs-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.docs-search-field input::placeholder { color: #7a929f; }

.docs-search-results { min-height: 106px; margin-top: 14px; display: grid; gap: 6px; }
.docs-search-empty { margin: 12px 2px; color: var(--muted); font-size: 13px; }

.docs-search-result {
  width: 100%;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.docs-search-result:hover,
.docs-search-result:focus-visible { border-color: #cce0f4; background: var(--docs-wash); }
.docs-search-result-type { color: var(--docs-teal); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-search-result strong { margin-top: 2px; font-size: 14px; font-weight: 600; }
.docs-search-result > span:last-child { color: var(--muted); font-size: 12px; line-height: 1.45; }

.docs-search-hint { margin: 16px 2px 0; color: var(--muted); font-size: 12px; }
.docs-search-hint button { min-height: 26px; padding: 2px 2px; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.docs-search-hint button + button { margin-left: 11px; }
.docs-search-hint button:hover { color: var(--accent-teal); }

.docs-site-footer {
  min-height: 70px;
  padding: 0 max(20px, calc((100% - 1400px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--rule-2);
  color: var(--muted);
  font-size: 11px;
}

.docs-site-footer > div { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.docs-site-footer a { color: var(--muted); }
.docs-site-footer a { min-height: 24px; display: inline-flex; align-items: center; }
.docs-site-footer a:hover { color: var(--accent); }
.docs-site-footer > a { color: var(--accent); font-weight: 500; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.docs-article h1[tabindex="-1"]:focus-visible {
  outline: 0;
  box-shadow: -3px 0 0 var(--accent);
}

@media (max-width: 1180px) {
  .docs-workspace { grid-template-columns: var(--docs-sidebar-width) minmax(0, var(--docs-content-width)); }
  .docs-on-page { display: none; }
  .docs-main { padding-right: clamp(32px, 6vw, 70px); }
}

@media (max-width: 820px) {
  .docs-topbar-inner { width: 100%; padding: 0 clamp(16px, 4vw, 28px); gap: 12px; }
  .docs-menu-toggle { display: grid; }
  .docs-brand { gap: 7px; }
  .docs-search-trigger { width: auto; margin-left: auto; }
  .docs-search-trigger span,
  .docs-search-trigger kbd { display: none; }
  .docs-search-trigger { width: 39px; padding: 0; justify-content: center; }
  .docs-topbar-actions > a:not(.btn) { display: none; }
  .docs-topbar-actions { gap: 0; }

  .docs-workspace { display: block; min-height: calc(100vh - var(--docs-header-height)); }
  .docs-sidebar {
    position: fixed;
    z-index: 150;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(310px, calc(100vw - 42px));
    height: 100vh;
    border-right: 1px solid var(--rule);
    box-shadow: 18px 0 60px rgba(15, 36, 32, 0.12);
    transform: translateX(-105%);
    transition: transform 190ms ease;
  }

  .docs-sidebar-heading { min-height: var(--docs-header-height); padding-top: 15px; padding-bottom: 15px; }
  .docs-sidebar-close { display: grid; }
  .docs-sidebar-footer { padding-bottom: 26px; }
  .docs-sidebar-open .docs-sidebar { transform: translateX(0); }
  .docs-sidebar-backdrop { position: fixed; inset: 0; z-index: 140; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; visibility: hidden; background: rgba(15, 36, 32, 0.32); transition: opacity 190ms ease, visibility 190ms ease; }
  .docs-sidebar-open .docs-sidebar-backdrop { display: block; opacity: 1; visibility: visible; }
  .docs-main { padding: 42px clamp(20px, 6vw, 42px) 76px; }
}

@media (max-width: 610px) {
  .docs-topbar { height: 60px; }
  .docs-topbar-inner { width: 100%; padding: 0 12px; }
  .docs-brand small { display: none; }
  .docs-topbar-actions .btn { min-height: 36px; padding: 0 12px; font-size: 12px; }
  .docs-topbar-actions .btn .arrow { display: none; }
  .docs-main { padding-top: 35px; }
  .docs-eyebrow { margin-top: 24px; }
  .docs-article h1 { font-size: clamp(35px, 11vw, 47px); }
  .docs-lede { margin-top: 16px; font-size: 16px; line-height: 1.58; }
  .docs-article h2 { margin-top: 43px; font-size: 25px; }
  .docs-visual { margin: 28px 0 36px; border-radius: 12px; }
  .docs-visual-head { min-height: 38px; }
  .docs-visual-head span:last-child { display: none; }
  .docs-visual figcaption { align-items: flex-start; flex-direction: column; gap: 3px; }
  .docs-visual figcaption span { text-align: left; }
  .docs-path-grid { grid-template-columns: 1fr; }
  .docs-path-card { min-height: 148px; }
  .docs-path-card strong { margin-top: 15px; }
  .docs-plan-list { grid-template-columns: 1fr; }
  .docs-contact-card { align-items: flex-start; flex-direction: column; }
  .docs-contact-card > div:last-child { width: 100%; }
  .docs-contact-card .btn { width: 100%; justify-content: center; }
  .docs-page-footer { margin-top: 50px; grid-template-columns: 1fr; }
  .docs-page-footer a:last-child { justify-content: flex-start; text-align: left; }
  .docs-search-modal { padding: 20px; }
  .docs-search-modal-head h2 { font-size: 24px; }
  .docs-site-footer { min-height: 90px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
