/* Lab walkthrough steps and terminal transcripts (bash; Chapter 2 Lab pilot, 2026-11-25).

   A transcript of the student's own VPS terminal is a ```console block: a dark panel, as in
   Bashnet, so it reads as "type this on your VPS", apart from the light runnable cells that
   run in the book. Pygments' console lexer marks the prompt (.gp) and the printed output
   (.go); what the student types keeps the panel's bright text.

   A step (### 1.1 ...) whose body holds a lab-example and a lab-your-turn container is one
   card: its section gets the Press card surface (docs/UI.md, Practice and Exercises: white,
   1px #d4d7dc border, 6px radius, 1rem padding), the Example transcript, and the Your turn
   tasks right under it, so both stay in view together. */

div.highlight-console {
    margin: 0.4rem 0 0.75rem;
}
/* html[data-theme] beats custom.css's html[data-theme="light"] pre { background: ... !important },
   which loads after this file. */
html[data-theme] div.highlight-console div.highlight,
html[data-theme] div.highlight-console div.highlight pre {
    background: #2b2b2b !important;
    border: 0;
    border-radius: 6px;
}
html[data-theme] div.highlight-console div.highlight pre {
    color: #ffffff !important;
    border: 0;
    padding: 0.7rem 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
html[data-theme] div.highlight-console div.highlight pre span {
    color: inherit;
    background: none;
    font-weight: normal;
    font-style: normal;
}
html[data-theme] div.highlight-console div.highlight pre .gp {
    color: #8fd18f;
}
html[data-theme] div.highlight-console div.highlight pre .go {
    color: #c9c9c9;
}
html[data-theme] div.highlight-console div.highlight pre .c,
html[data-theme] div.highlight-console div.highlight pre .c1 {
    color: #9a9a9a;
}
div.highlight-console button.copybtn {
    color: #c9c9c9;
}

section:has(> div.lab-example) {
    border: 1px solid #d4d7dc;
    border-radius: 6px;
    padding: 0.25rem 1rem 1rem;
    margin: 1.5rem 0;
    background: var(--pst-color-background, #fff);
}
html[data-theme="dark"] section:has(> div.lab-example) {
    border-color: var(--pst-color-border);
}
/* The current step (lab_steps.js): a neutral cool gray and a border one step darker, the way
   GitHub-style tools mark the active item; no theme color, no shadow, no change in size. */
section.lab-step-current:has(> div.lab-example),
.press-practice-card.lab-step-current {
    background: #f6f8fa;
    border-color: #afb8c1;
}
html[data-theme="dark"] section.lab-step-current:has(> div.lab-example),
html[data-theme="dark"] .press-practice-card.lab-step-current {
    background: color-mix(in srgb, var(--pst-color-text-base) 3%, var(--pst-color-background));
    border-color: color-mix(in srgb, var(--pst-color-text-base) 30%, var(--pst-color-background));
}
@media (prefers-reduced-motion: no-preference) {
    section:has(> div.lab-example),
    .press-practice-card {
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }
}

/* Transcripts sit indented under the prose, as py's and dsm's code sits under its prompt
   text; not on narrow screens, where 80-column transcripts already wrap. */
article div.highlight-console {
    margin-left: 1.5rem;
}
@media (max-width: 700px) {
    article div.highlight-console {
        margin-left: 0;
    }
}
section:has(> div.lab-example) > h3 {
    margin-top: 0.75rem;
}
/* "Example:" and "Your turn:" are labels at the reading size, set apart only by weight;
   Your turn is plain text under its label, like Example, with no panel of its own. */
div.lab-example > p:first-child,
div.lab-your-turn > p:first-child {
    font-weight: 600;
    margin: 0.75rem 0 0.25rem;
}
div.lab-your-turn {
    margin-top: 1rem;
}
div.lab-your-turn > ul {
    margin-bottom: 0;
}
