/* The page /statusline (site/src/pages/statusline.html; design/STATUSLINE.md, mockup design/screens/statusline.html).
   All classes start with sl-. Loaded by the page meta "css": "statusline". */
/* Layout: one left column. The command box and the terminal picture share one width (860px at most).
   The terminal picture is the one lit object.
   From 1000px three facts sit to the right of the heading. Colors: site tokens only.
   The terminal keeps its dark ground in both themes (--term-*), so text inside it uses fixed terminal colors. */
.sl-top { display: flex; flex-direction: column; gap: var(--s5); padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.sl-intro { display: grid; gap: var(--s5); }
.sl-head { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.sl-head .display { font-size: clamp(32px, 4.6vw, 52px); max-width: 18ch; }
.sl-head .lead { max-width: 56ch; }
@media (min-width: 1000px) { .sl-intro { grid-template-columns: minmax(0, 1fr) 280px; column-gap: clamp(32px, 5vw, 64px); align-items: start; } }

/* install: the command and the page's one filled button */
.sl-install { display: flex; flex-direction: column; gap: var(--s2); max-width: 860px; }
.sl-cmd { display: flex; align-items: center; gap: var(--s2); padding: 6px; border: 1px solid var(--line2); border-radius: var(--r-md); background: var(--term-bg); }
.sl-cmd code { flex: 1; min-width: 0; padding: 8px 10px; font: 13.5px/1.5 var(--mono); color: var(--term-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.sl-cmd code::before { content: "$ "; color: var(--term-dim); }   /* drawn, so it is never selected or copied */
.sl-cmd code::selection { background: var(--accent); color: var(--on-accent); }
.sl-cmd .btn { flex: none; border-radius: 6px; }   /* 10px box - 6px padding, floor 6 */
.sl-sw { display: inline-grid; }
.sl-sw > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); }
.sl-b, .done .sl-a { visibility: hidden; }
.done .sl-b { visibility: visible; }
.sl-under { display: grid; margin: 0; font: 13px/1.5 var(--sans); color: var(--mut); }
.sl-under > span { grid-area: 1 / 1; }
.sl-under code { font: 12px var(--mono); color: var(--ink); }
.sl-msg { visibility: hidden; color: var(--good); font-weight: 600; }
.sl-msg.warn { color: var(--warn); }
.sl-under.on .sl-terms { visibility: hidden; }
.sl-under.on .sl-msg { visibility: visible; }
.prose .sl-under { font: inherit; color: var(--mut); }   /* the line under the remove command keeps the text size of its section */

/* the terminal picture: the site's window frame, the same width as the command box */
.sl-shot { margin: var(--s2) 0 0; display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.sl-term { font: 14px/1.6 var(--mono); width: 100%; max-width: 860px; background: var(--term-bg); }
.sl-term .demo-bar { font-size: 12px; }
.sl-screen { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 14px; color: var(--term-ink); }
.sl-dim { color: var(--term-dim); }
.sl-in2 { padding-left: 2ch; }
.sl-box { display: flex; align-items: center; gap: 1ch; margin-top: 10px; padding: 6px 12px; border: 1px solid #4a4541; border-radius: 6px; color: var(--term-dim); }
.sl-box i { width: 1ch; height: 1.15em; background: var(--term-dim); }
.sl-status { white-space: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 0 0 1ch; }
.sl-status::-webkit-scrollbar { display: none; }
.sl-n { display: none; }
@media (max-width: 739px) {
  .sl-w { display: none; } .sl-n { display: inline; }
  .sl-term { font-size: 12px; width: 100%; }
  .sl-screen { padding: 12px 12px 10px; }
  .sl-status { padding-left: 0; }
}

/* three facts beside the heading (from 1000px; the sections below say the same on smaller screens) */
.sl-facts { display: none; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1000px) { .sl-facts { display: flex; flex-direction: column; } }
.sl-facts li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--mut); }
.sl-facts li:last-child { border-bottom: 1px solid var(--line); }
.sl-facts svg { grid-row: 1 / span 2; margin-top: 2px; color: var(--good); }
.sl-facts b { color: var(--ink); font-weight: 600; }
.sl-facts span { grid-column: 2; }

/* the one bridge to the product: a quiet row, an outline button */
.sl-bridge { display: flex; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); flex-wrap: wrap; margin: 0 0 clamp(40px, 6vw, 72px); padding: var(--s4) 0; border-block: 1px solid var(--line); font-size: 15.5px; color: var(--mut); }
.sl-bridge b { color: var(--ink); font-weight: 600; }
.sl-bridge .btn { background: transparent; }
@media (max-width: 599px) {
  .sl-cmd { flex-direction: column; align-items: stretch; }
  .sl-cmd code { font-size: 13px; }
  .sl-bridge .btn { width: 100%; }
}

/* format examples: a column ruler over the line, on the terminal ground */
.sl-fmt { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sl-fmt figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); font-size: 14px; color: var(--ink); }
.sl-fmt figcaption span { font: 12px var(--mono); color: var(--dim); }
.sl-pre { margin: 0; padding: 12px 16px; overflow-x: auto; border: 1px solid var(--line2); border-radius: var(--r-md); background: var(--term-bg); color: var(--term-ink); font: 13px/1.7 var(--mono); white-space: pre; }
.sl-ruler { color: #6f6a64; }
.sl-faint { color: var(--term-dim); }
.sl-yel { color: #d9a441; } .sl-red { color: #e5736b; }   /* the terminal's own yellow and red (SGR 33, 31) */

/* reads / writes / sends: label left, sentence right */
.sl-dl { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sl-dl > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--s1) var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.sl-dl dt { font: 500 12px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sl-dl dd { margin: 0; color: var(--mut); }
@media (max-width: 599px) { .sl-dl > div { grid-template-columns: minmax(0, 1fr); } }
.prose .faq summary { font-size: 16px; padding: 14px 0; }
.prose .faq .a { padding-bottom: 16px; }
