/* User guide page: search, categories, articles with screenshots */
.nav-links a.on { background: #000; color: #fff; }
.docs-hero { padding: clamp(40px, 7vw, 90px) 0 36px; border-bottom: 2px solid #000; background: var(--soft); }
.docs-hero h1 { margin: 16px 0 26px; font-size: clamp(38px, 5vw, 68px); }
.docs-search { position: relative; max-width: 760px; }
.docs-search svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); }
.docs-search input { width: 100%; height: 64px; border: 2px solid #000; background: #fff; padding: 0 64px 0 54px; font: 600 18px var(--body); box-shadow: var(--sh) var(--sh) 0 #000; outline: none; -webkit-appearance: none; }
.docs-search input:focus { box-shadow: calc(var(--sh) + 3px) calc(var(--sh) + 3px) 0 #000; }
.docs-search kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
kbd { display: inline-block; min-width: 24px; padding: 1px 6px; border: 1.5px solid #000; border-bottom-width: 3px; font: 700 12px/1.5 var(--mono); text-align: center; background: #fff; }
.docs-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 34px; }
.docs-cats a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 2px solid #000; background: #fff; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.docs-cats a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #000; }
.docs-cats b { font: 800 16px var(--head); }
.docs-cats span { font: 700 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.docs-body { padding: 46px 0 80px; }
.docs-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.docs-side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14px; }
.docs-side h4 { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; margin: 18px 0 6px; }
.docs-side h4:first-child { margin-top: 0; }
.docs-side a { display: block; padding: 4px 0 4px 10px; border-left: 2px solid var(--line); text-decoration: none; color: #333; }
.docs-side a:hover, .docs-side a.on { border-left-color: #000; color: #000; font-weight: 700; }
.docs-main { min-width: 0; }
.docs-cat-title { font-size: clamp(26px, 3vw, 36px); margin: 0 0 18px; padding-top: 10px; display: flex; align-items: baseline; gap: 12px; }
.docs-cat-title span { font: 700 12px var(--mono); color: var(--muted); }
.docs-cat-block + .docs-cat-block { margin-top: 56px; }
.doc { border: 2px solid #000; background: #fff; margin-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); scroll-margin-top: 90px; }
.doc.noimg { grid-template-columns: 1fr; }
.doc .txt { padding: 22px 24px; }
.doc h3 { font-size: 22px; margin: 0 0 10px; }
.doc p, .doc li { font-size: 15.5px; color: #222; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.doc table { border-collapse: collapse; margin-top: 10px; width: 100%; font-size: 14.5px; }
.doc td { border-top: 1px solid var(--line); padding: 7px 8px 7px 0; vertical-align: top; }
.doc td:first-child { white-space: nowrap; width: 1%; padding-right: 16px; }
.doc .shot { border-left: 2px solid #000; background: var(--soft); display: grid; place-items: center; cursor: zoom-in; overflow: hidden; padding: 0; border-top: 0; border-right: 0; border-bottom: 0; }
.doc .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; aspect-ratio: 16 / 10; }
.doc .shot.phone img { object-fit: contain; height: 360px; aspect-ratio: auto; padding: 14px 0; }
.doc .link-copy { font: 700 11px var(--mono); color: var(--muted); text-decoration: none; margin-left: 6px; opacity: 0; }
.doc:hover .link-copy { opacity: 1; }
mark { background: #000; color: #fff; padding: 0 2px; }
.docs-none { font-size: 18px; padding: 30px; border: 2px dashed #000; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.96); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; border: 2px solid #000; box-shadow: 8px 8px 0 #000; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 2px solid #000; background: #fff; font-size: 18px; }
@media (max-width: 900px) {
  .docs-grid { grid-template-columns: 1fr; }
  .docs-side { display: none; }
  .doc { grid-template-columns: 1fr; }
  .doc .shot { border-left: 0; border-top: 2px solid #000; }
  .docs-search input { height: 56px; font-size: 16px; }
  .docs-search kbd { display: none; }
  .docs-cats { grid-template-columns: repeat(2, 1fr); }
}
