/* DiffScope docs: page-specific styles for /docs/*. Loaded after /styles.css. */

/* numbered step lists */
.prose ol.step-list { list-style: none; padding-left: 0; counter-reset: step; }
.prose ol.step-list > li { position: relative; padding-left: 40px; counter-increment: step; }
.prose ol.step-list > li + li { margin-top: 12px; }
.prose ol.step-list > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font: 600 13px/1 var(--mono); color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.prose ol.step-list + pre, .prose ol.step-list + .code { margin-top: 14px; }

/* screenshots */
.prose .docs-shot { margin-top: 24px; margin-bottom: 28px; }
.prose .docs-shot img { display: block; width: 100%; height: auto; box-shadow: var(--shadow-lg); }

/* card grid on the docs home */
.docs-cards { margin-top: 20px; }
.docs-cards .card { padding: 22px; }
.docs-cards .card h3 { margin-top: 14px; font-size: 17.5px; }
.docs-cards .card p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

/* tables */
.prose .table-scroll { scrollbar-width: thin; }
.prose table.keys td:first-child { white-space: nowrap; width: 1%; padding-right: 28px; }
.prose table.keys kbd { margin-top: 1px; margin-bottom: 1px; }
.prose table.ref-table td:not(:last-child) { min-width: 150px; }
.prose table.ref-table td:not(:last-child) code { display: inline-block; margin: 2px 0; }
.prose table.ref-table td:last-child { min-width: 260px; }
.prose table.exit-table td:first-child { width: 1%; }
.prose table.exit-table .code-pill { width: 30px; height: 30px; font-size: 14px; }
.prose td.glyph { font: 600 16px/1.5 var(--mono); color: var(--text); text-align: center; width: 1%; }

/* definition lists read better with a little more room */
.prose dl { gap: 12px 28px; }

/* callouts: code inside the title */
.callout-title code { font-size: 0.92em; }

/* hero CTA spacing on docs */
.page-hero .hero-cta .btn { white-space: nowrap; }

@media (max-width: 640px) {
  .prose ol.step-list > li { padding-left: 36px; }
  .prose table.keys td:first-child { white-space: normal; width: auto; padding-right: 12px; }
  .prose table.keys td:first-child kbd { white-space: nowrap; }
  .docs-cards .card { padding: 18px; }
  .page-hero .hero-cta { flex-wrap: wrap; }
}

/* keyword chips (CLI reference) */
.prose .kw-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.prose .kw-list code { font-size: 13px; }

/* keep key combos such as Alt + 1 on one line in ordinary tables */
.prose table:not(.keys) td:has(> kbd) { white-space: nowrap; }

.combo { white-space: nowrap; }
