:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-strong: #edf2f7;
  --ink: #0a2540;
  --text: #26384d;
  --muted: #5f6f82;
  --faint: #8795a8;
  --line: #d9e2ec;
  --line-soft: #e9eef5;
  --blue: #075fd8;
  --green: #0a8f68;
  --orange: #c6531b;
  --shadow: 0 8px 24px rgba(10, 37, 64, .08);
  --maxw: 1400px;
  --top-h: 64px;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 24px);
}

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

/* ===== ambient background：LP（workpilot.space）と同じ方眼 =====
   LP は <div class="bg-fx"><div class="bg-grid"> を敷いているが、docs は
   44ページすべての HTML を触らずに効かせたいので body::before に置く。
   ⚠ z-index は -1。0 にすると背景を持たないコンテンツより前に出て文字に線が乗る。
      -1 なら body の背景色より前・全コンテンツより後ろに正しく入る。
   マス目 64px / マスクの数値は LP の .bg-grid と揃えてある（片方だけ変えないこと）。
   線色は LP の --line-2 相当を docs の ink(#0a2540) で作った値。--line-soft は
   濃すぎて方眼が主張するため使わない。 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 37, 64, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  font-size: 48px;
  font-weight: 760;
}

h2 {
  font-size: 32px;
  font-weight: 740;
}

h3 {
  font-size: 19px;
  font-weight: 720;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--bg-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .92em;
}

button,
input {
  font: inherit;
}

.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;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 0 0 8px 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid rgba(7, 95, 216, .35);
  outline-offset: 3px;
}

.docs-top {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--top-h);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}

.docs-top__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 188px minmax(220px, 520px) 1fr auto;
  align-items: center;
  gap: 20px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  width: 152px;
  min-width: 0;
}

.docs-brand img {
  width: 148px;
  height: auto;
}

.docs-search {
  position: relative;
}

.docs-search input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
}

.docs-search input:focus {
  border-color: rgba(7, 95, 216, .55);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(7, 95, 216, .10);
}

.docs-search__key {
  position: absolute;
  right: 11px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  background: #fff;
  font-family: var(--mono);
  font-size: 13px;
}

.docs-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.lang-switch {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.lang-switch:hover {
  border-color: rgba(7, 95, 216, .45);
  color: var(--blue);
}

.docs-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.docs-actions button:hover {
  border-color: rgba(7, 95, 216, .45);
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  place-items: center;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: var(--ink);
}

.docs-shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 190px;
  gap: 44px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: calc(var(--top-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--top-h) - 48px);
  overflow: auto;
}

.docs-sidebar {
  padding-top: 32px;
}

.version-box {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--bg-soft);
}

.version-box__label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.version-box__value {
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 750;
}

.version-box p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.side-nav {
  margin-top: 22px;
  display: grid;
  gap: 3px;
}

.side-nav a,
.docs-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.side-nav a:hover,
.side-nav a.is-active,
.docs-toc a:hover,
.docs-toc a.is-active {
  color: var(--blue);
  background: rgba(7, 95, 216, .08);
}

.docs-main {
  min-width: 0;
  padding: 54px 0 96px;
}

.docs-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line-soft);
}

.docs-section:first-child {
  padding-top: 18px;
}

.hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero__quick {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__quick a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 680;
}

.hero__quick a:hover {
  border-color: rgba(7, 95, 216, .45);
  color: var(--blue);
  box-shadow: var(--shadow);
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head p:last-child {
  margin-top: 10px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.doc-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.doc-card:hover {
  border-color: rgba(7, 95, 216, .35);
  box-shadow: var(--shadow);
}

.doc-card__kicker {
  margin-bottom: 8px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 750;
}

.doc-card p:not(.doc-card__kicker) {
  margin-top: 10px;
  color: var(--muted);
}

.doc-card a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-weight: 700;
}

.list-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.list-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row:hover {
  background: var(--bg-soft);
}

.list-row span {
  color: var(--ink);
  font-weight: 730;
}

.list-row p {
  color: var(--muted);
}

.concept-stack {
  display: grid;
  gap: 12px;
}

.concept-item {
  padding: 18px 0 18px 18px;
  border-left: 3px solid var(--line);
}

.concept-item:hover {
  border-left-color: var(--blue);
}

.concept-item p {
  margin-top: 8px;
  color: var(--muted);
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.connection {
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 740;
}

.connection span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.reference-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

.reference-block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.reference-block p {
  margin-top: 8px;
  color: var(--muted);
}

.release-policy {
  padding-bottom: 60px;
}

.release-policy p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
}

.status-line {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.status-line span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 13px;
}

.docs-toc {
  padding-top: 32px;
}

.docs-toc p {
  margin: 0 0 8px 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 340px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none !important;
}

/* ---------- モデルタグ（この機能はどのモデルを使うか） ---------- */
.model-req {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}

.model-req__label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.model-req__arrow {
  color: var(--faint);
  font-size: 13px;
}

/* チップ本体 */
.mtag {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}

.mtag b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.mtag--brain  { border-left-color: var(--blue); }
.mtag--image  { border-left-color: var(--green); }
.mtag--video  { border-left-color: #7c3aed; }
.mtag--voice  { border-left-color: var(--orange); }
.mtag--local  { border-left-color: var(--faint); }

/* 見出しの横に置く小さいタグ */
.mtag--inline {
  margin-left: 10px;
  padding: 3px 8px;
  font-size: 11px;
  vertical-align: middle;
}

.mtag--inline b { font-size: 12px; }

a.mtag {
  text-decoration: none;
}

a.mtag:hover {
  border-color: rgba(7, 95, 216, .45);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .model-req {
    gap: 6px;
    padding: 12px;
  }

  .mtag--inline {
    display: inline-flex;
    margin: 6px 0 0 0;
  }
}

/* ---------- コンセプト（今こうなっている → WorkPilot では） ---------- */
.why-stack {
  display: grid;
  gap: 14px;
}

.why-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.why-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.why-card--pain {
  background: var(--bg-soft);
  border-style: dashed;
}

.why-card__label {
  margin-bottom: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.why-card--gain .why-card__label {
  color: var(--green);
}

.why-card h3 {
  font-size: 17px;
}

.why-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.why-arrow {
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 20px;
  line-height: 1;
}

.why-note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: var(--bg-soft);
}

.why-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
}

.why-note p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .why-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .why-arrow {
    transform: rotate(90deg);
    height: 26px;
  }
}

/* ---------- 複数ページ用：サイドナビのグループ ---------- */
.side-nav__group {
  margin-top: 20px;
}

.side-nav__title {
  margin: 0 0 6px 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.side-nav__group .side-nav {
  margin-top: 0;
}

.side-nav a.is-current {
  color: var(--blue);
  background: rgba(7, 95, 216, .10);
  font-weight: 720;
}

/* ---------- 検索結果ドロップダウン ---------- */
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 140;
  max-height: 62vh;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(10, 37, 64, .16);
}

.search-results[hidden] {
  display: none;
}

.search-results a {
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
}

.search-results a:hover,
.search-results a.is-active {
  background: var(--bg-soft);
}

.search-results strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.search-results span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.search-results .search-empty {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 本文（ガイドページ） ---------- */
.breadcrumb {
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

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

.page-head {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.page-head h1 {
  font-size: 40px;
}

.page-head__lead {
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.prose {
  max-width: 820px;
  padding-top: 8px;
}

.prose h2 {
  margin-top: 52px;
  font-size: 27px;
  scroll-margin-top: calc(var(--top-h) + 24px);
}

.prose h3 {
  margin-top: 34px;
  font-size: 18px;
  scroll-margin-top: calc(var(--top-h) + 24px);
}

.prose p {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.prose li {
  margin-top: 7px;
}

.prose li > ul,
.prose li > ol {
  margin-top: 6px;
}

.prose strong {
  color: var(--ink);
}

.prose a:not(.btn) {
  color: var(--blue);
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: rgba(7, 95, 216, .3);
  text-underline-offset: 3px;
}

.prose a:not(.btn):hover {
  text-decoration-color: var(--blue);
}

.prose table {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--ink);
  background: var(--bg-soft);
  font-weight: 700;
  white-space: nowrap;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
}

.prose pre {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

kbd {
  display: inline-block;
  min-width: 22px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: center;
}

/* 画面上の実文言。短いものは途中で折れないが、長文はきちんと折り返す
   （nowrap 固定にすると、長いメッセージ文でモバイルが横スクロールする） */
.ui {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: .93em;
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* 手順 */
.steps {
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  margin-top: 0;
  padding: 0 0 22px 40px;
  border-left: 2px solid var(--line-soft);
  counter-increment: step;
}

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

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -14px;
  top: -2px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.steps > li > :first-child {
  margin-top: 0;
}

.steps b {
  color: var(--ink);
}

/* 注意ボックス */
.note {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: var(--bg-soft);
}

.note > :first-child {
  margin-top: 0;
}

.note__label {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.note--warn {
  border-left-color: var(--orange);
  background: #fff8f3;
}

.note--warn .note__label {
  color: var(--orange);
}

.note--ok {
  border-left-color: var(--green);
  background: #f2fbf7;
}

.note--ok .note__label {
  color: var(--green);
}

/* ページ末尾のナビ */
.page-nav {
  max-width: 820px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-nav a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.page-nav a:hover {
  border-color: rgba(7, 95, 216, .45);
  box-shadow: var(--shadow);
}

.page-nav small {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.page-nav b {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.page-nav .is-next {
  grid-column: 2;
  text-align: right;
}

@media (max-width: 860px) {
  .page-head h1 {
    font-size: 30px;
  }

  .prose h2 {
    margin-top: 42px;
    font-size: 23px;
  }

  .page-nav {
    grid-template-columns: 1fr;
  }

  .page-nav .is-next {
    grid-column: 1;
    text-align: left;
  }

  .steps > li {
    padding-left: 30px;
  }
}

@media (max-width: 1100px) {
  .docs-top__inner {
    grid-template-columns: 170px minmax(180px, 1fr) auto auto;
  }

  .docs-shell {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 30px;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --top-h: 62px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .docs-top__inner {
    padding: 0 14px;
    grid-template-columns: 138px minmax(0, 1fr) 42px;
    gap: 10px;
  }

  .docs-brand {
    width: 132px;
  }

  .docs-brand img {
    width: 128px;
  }

  .docs-actions {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .docs-shell {
    display: block;
    padding: 0 18px;
  }

  .docs-sidebar {
    position: fixed;
    top: var(--top-h);
    left: 0;
    right: 0;
    z-index: 90;
    max-height: calc(100vh - var(--top-h));
    padding: 14px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-115%);
    transition: transform .2s ease;
  }

  .docs-sidebar.is-open {
    transform: translateY(0);
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-main {
    padding: 34px 0 80px;
  }

  .docs-section {
    padding: 38px 0;
  }

  .hero {
    min-height: 360px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .card-grid,
  .connection-grid,
  .reference-columns {
    grid-template-columns: 1fr;
  }

  .list-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .docs-top__inner {
    grid-template-columns: 42px 1fr 42px;
  }

  .docs-brand {
    width: 42px;
    overflow: hidden;
  }

  .docs-brand img {
    width: 128px;
    max-width: none;
  }

  .docs-search input {
    height: 40px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .hero__quick a {
    width: 100%;
  }

  .doc-card {
    min-height: 0;
  }
}
