/* ============================================================
   Vimlike — documentation pages (on top of design-system.css + site.css)
   A reference, not a pitch: a fixed left index, one column of prose and
   tables, key caps everywhere a key is named.
   ============================================================ */

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 40px 0 96px; }
.docs-nav { position: sticky; top: 76px; align-self: start; font-size: 13.5px; }
.docs-nav a { display: block; color: var(--text-secondary); text-decoration: none; padding: 5px 0; border-left: 2px solid transparent; padding-left: 12px; margin-left: -14px; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--hint); }
.docs-nav .group { color: var(--zinc-deep); font: 700 11px/1 var(--font-stack); letter-spacing: .06em; text-transform: uppercase; margin: 18px 0 6px; }
.docs-nav .group:first-child { margin-top: 0; }
.docs-nav .sub a { font-size: 12.5px; padding: 3px 0 3px 24px; }

.doc { max-width: 760px; }
.doc h1 { font: 800 36px/1.15 var(--font-stack); letter-spacing: -.6px; margin: 0 0 10px; }
.doc .lead { font-size: 17px; color: var(--text-secondary); margin: 0 0 36px; line-height: 1.55; }
.doc h2 { font: 700 24px/1.25 var(--font-stack); letter-spacing: -.3px; margin: 52px 0 12px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.doc h3 { font: 650 17px/1.3 var(--font-stack); margin: 30px 0 8px; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--hint-deep); }
.doc .muted { color: var(--text-secondary); }
.doc .note { border-left: 3px solid var(--hint); background: var(--hint-tint); padding: 10px 16px; border-radius: 0 10px 10px 0; margin: 16px 0 20px; font-size: 14.5px; }
.doc .note b { color: var(--hint-deep); }
.doc .new { display: inline-block; font: 700 10.5px/1 var(--font-stack); letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--hint); padding: 4px 7px; border-radius: 6px; vertical-align: middle; margin-left: 8px; }

/* Key tables: key caps in the first column, what it does in the second. */
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: 14.5px; }
.doc th { text-align: left; font: 650 11.5px/1 var(--font-stack); letter-spacing: .05em; text-transform: uppercase; color: var(--zinc-deep); padding: 0 10px 8px 0; border-bottom: 1px solid var(--hairline); }
.doc td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; line-height: 1.5; }
.doc td.k { white-space: nowrap; width: 150px; }
.doc td.k kbd + kbd { margin-left: 3px; }
.doc td .d { color: var(--text-secondary); font-size: 13.5px; display: block; margin-top: 2px; }
.doc tr:last-child td { border-bottom: 0; }
.doc kbd { font-size: 13px; }
.doc code { font-size: .9em; }
.doc pre { background: #18181B; color: #F4F4F5; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: 500 13px/1.55 var(--mono); margin: 8px 0 22px; }
.doc pre code { background: none; color: inherit; padding: 0; font: inherit; }
.doc .shot { margin: 18px 0 26px; line-height: 0; }
.doc .shot img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 1px 2px rgba(9,9,11,.08), 0 14px 36px rgba(9,9,11,.14); border: 1px solid var(--hairline); }
.doc .shot figcaption { line-height: 1.5; font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
.doc .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 24px; }
.doc .cards a { display: block; text-decoration: none; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.doc .cards a:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(9,9,11,.1); }
.doc .cards h3 { margin: 0 0 6px; font-size: 16px; }
.doc .cards p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.doc .steps { counter-reset: s; list-style: none; padding: 0; }
.doc .steps li { position: relative; padding-left: 36px; margin: 10px 0; }
.doc .steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px/24px var(--font-stack); text-align: center; }
.doc .toc { font-size: 14px; color: var(--text-secondary); margin: 0 0 30px; }
.doc .toc a { color: var(--text-secondary); margin-right: 14px; }
.doc .next { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 14.5px; }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 2px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
  .docs-nav .group { width: 100%; margin: 10px 0 2px; }
  .docs-nav .sub { display: none; }
  .docs-nav a { border-left: 0; margin: 0; padding: 4px 0; }
  .doc h1 { font-size: 30px; }
  .doc .cards { grid-template-columns: 1fr; }
  .doc td.k { width: auto; white-space: normal; }
}
@media (prefers-color-scheme: dark) {
  .doc pre { background: #0f0f12; border: 1px solid rgba(255,255,255,.08); }
}
