/* cheatsheets: a searchable, copyable, printable page of commands per path */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cs-page { padding: 8px 0 80px; }
.cs-head { display: flex; gap: 26px; align-items: flex-start; margin: 14px 0 18px; } .cs-head .page-title { margin: 6px 0 8px; } .cs-head .lede { margin: 0; max-width: 62ch; }
.cs-icon { flex: none; margin-top: 6px; }
.cs-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.cs-search input { width: min(340px, 78vw); font: 14px var(--sans); color: var(--text); background: none; border: 1px solid var(--rule2); border-radius: 999px; padding: 10px 16px; } .cs-search input:focus { outline: none; border-color: var(--brand); }
.cs-nav { position: sticky; top: var(--topbar-h, 64px); z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--rule); scrollbar-width: none; } .cs-nav::-webkit-scrollbar { display: none; }
.cs-nav a { flex: none; padding: 6px 14px; border: 1px solid var(--rule2); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13px; white-space: nowrap; transition: border-color .2s, color .2s; } .cs-nav a:hover { border-color: var(--brand); color: var(--text); } .cs-nav a[hidden] { display: none; }
.cs-sec { margin-top: 34px; scroll-margin-top: 120px; } .cs-sec[hidden] { display: none; } .cs-sec h2 { margin: 0 0 6px; font: 600 20px var(--display); letter-spacing: -.01em; }
.cs-note { margin: 0 0 10px; color: var(--muted); font-size: 14px; max-width: 72ch; }
.cs-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 12px; }
.cs-item { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); } .cs-item[hidden] { display: none; }
.cs-code { position: relative; display: flex; gap: 8px; align-items: flex-start; } .cs-code pre { flex: 1; min-width: 0; margin: 0; padding: 9px 12px; overflow-x: auto; border-radius: 8px; background: var(--code-bg); font: 13px/1.55 var(--mono); }
.cs-code code { font: inherit; background: none; padding: 0; white-space: pre; color: var(--text); }
.cs-copy { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid var(--rule2); border-radius: 8px; background: none; color: var(--muted); font: 500 12px var(--sans); cursor: pointer; transition: color .2s, border-color .2s; } .cs-copy svg { width: 14px; height: 14px; }
.cs-copy:hover { color: var(--text); border-color: var(--brand); } .cs-copy.is-ok { color: var(--brand2); border-color: var(--brand); }
.cs-desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cs-empty { margin: 30px 0; color: var(--muted); } .cs-foot { margin: 46px 0 0; color: var(--faint); font-size: 13px; } .cs-foot a { color: var(--brand2); }
@media (max-width: 640px) { .cs-head { flex-direction: column; gap: 6px; } .cs-copy span { display: none; } }
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; color: #111 !important; } .topbar, .site-foot, .cs-nav, .cs-tools, .crumb, .cs-copy, .cs-icon, .bell, #lab-mark { display: none !important; }
  .cs-page { padding: 0; } .cs-head { margin: 0 0 6mm; } .cs-head .page-title { font-size: 22pt; color: #111; -webkit-text-fill-color: #111; } .cs-head .lede, .cs-desc, .cs-note { color: #333 !important; font-size: 9.5pt; }
  .cs-sec { margin-top: 5mm; break-inside: avoid-page; } .cs-sec h2 { font-size: 13pt; color: #111; border-bottom: 1px solid #999; padding-bottom: 1mm; }
  .cs-list { grid-template-columns: 1fr 1fr; gap: 3mm; } .cs-item { padding: 2mm 3mm; border: 1px solid #ccc; background: #fff; break-inside: avoid; } .cs-code pre { background: #f3f3f3; padding: 1.5mm 2mm; font-size: 8.5pt; white-space: pre-wrap; } .cs-code code { color: #111; }
  .cs-foot { margin-top: 6mm; font-size: 8pt; color: #555; } .cs-foot a { color: #555; }
}
