/* The komando docs: guide.css (the reading layout) plus what the command line docs have and the guide does not:
   code blocks, tables and #### headings. Every colour and space is a Meridian token. */

.d-code { font-family: var(--font-mono); font-size: 14px; line-height: 1.55; padding: var(--space-3) var(--space-4);
  background: var(--surface-code); color: var(--text-code); border: 1px solid var(--border-code); border-radius: var(--radius-lg); overflow-x: auto; tab-size: 4; }
.d-code code { white-space: pre; padding: 0; border: 0; background: none; }

/* a wide table scrolls inside its own box, so the page never scrolls sideways on a phone */
.d-table { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-card); }
.d-table:focus-visible, .d-code:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.d-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.d-table th, .d-table td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border-default); }
.d-table th { font-weight: var(--weight-semibold); }
.d-table tbody tr:last-child td { border-bottom: 0; }
.d-table td code { white-space: nowrap; overflow-wrap: normal; }
.d-table td:last-child code { white-space: normal; overflow-wrap: anywhere; }

.g-body h4 { font-size: 17px; font-weight: var(--weight-semibold); margin-top: var(--space-5); }
.g-body li { min-width: 0; }
.g-body li > * + * { margin-top: var(--space-2); }
.g-note > * + * { margin-top: var(--space-2); }

@media (max-width: 639px) {
  .d-code { font-size: 13px; }
  .d-table table { font-size: 14px; }
}
