/* the docs page, on top of clockwork.css. layout only: every colour here is a token from clockwork.css. */

/* the page head: title card with the version facts under the lede */
.dhead .chips { margin-top: 18px; }
.dhead .chip .mono { color: var(--paper); }

/* lists and callouts inside the article keep the reading measure */
.doc ul.list { margin: 12px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 74ch; }
.doc ul.list li { margin: 6px 0; }
.doc ul.list li::marker { color: var(--dim); }
.doc ul.list b, .doc ol.setup b { color: var(--paper); }
.doc .callout, .doc .note { max-width: 74ch; }
.doc .callout p, .doc .note p { margin: 0; font-size: 13px; color: inherit; }

/* the three presets, as information: not buttons on this page */
.doc .presets-row { margin-top: 16px; }
.doc .preset { cursor: default; background: var(--surface-2); border-color: var(--line-soft); }
.doc .preset:hover { border-color: var(--line-soft); }
.doc .preset .mono { font-size: 11px; color: var(--label); }
.doc .preset .bar > div { min-width: 0; }
.fx-10 { flex: 10 1 0; } .fx-225 { flex: 22.5 1 0; } .fx-45 { flex: 45 1 0; } .fx-90 { flex: 90 1 0; }
.doc .legend { margin-top: 12px; }

/* tables inside the article */
.doc .tbl-wrap { margin-top: 16px; background: var(--surface-2); border-color: var(--line-soft); }
.doc .tbl td { color: var(--muted); line-height: 1.55; }
.doc .tbl td:first-child { color: var(--paper); font-weight: 500; min-width: 180px; }
@media (min-width: 761px) { .doc .tbl code { white-space: nowrap; } } /* on phones the status lines wrap instead of widening the table */

/* the two board rules and the step table */
.doc .steps.rules .step .n { letter-spacing: .06em; }
.doc .ref .v code { font-size: .95em; }
.doc .ref .v.cmd { font-size: 12.5px; color: var(--paper); }

@media (max-width: 960px) {
  /* the table of contents above the article: two columns of links instead of one long list */
  .toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 4px; }
  .toc .eyebrow { grid-column: 1 / -1; }
  .doc .tbl td:first-child { min-width: 140px; }
}
@media (max-width: 560px) {
  .dhead.title-card { padding: 24px 18px; }
  .doc .tbl th, .doc .tbl td { padding: 10px 12px; }
  .doc .tbl th { white-space: normal; }
  .doc .tbl td:first-child { min-width: 104px; }
  .doc { padding: 22px 16px 26px; }
}
