/* An editorial workshop: one idea, one exhibit, one action in the viewport. */
html[data-workbench=discover]{background:#f3efe5}
html[data-workbench=discover] body{--paper:#f3efe5;--surface:#fffdf7;--ink:#192e3c;--muted:#53616b;--accent:#2352ae;--coral:#b3462b;--line:#c6c8bf;background:var(--paper)}
html[data-theme=dark][data-workbench=discover] body{--paper:#101f2a;--surface:#1e3343;--ink:#f4eddd;--muted:#bcc9d2;--accent:#a3c3ff;--coral:#f6ae8b;--line:#526474}
html[data-workbench=discover] .topbar{background:transparent;border-bottom:1px solid var(--line)}
.wb-discovery{--ds-blue:var(--accent);--ds-coral:var(--coral);max-width:1500px;margin:auto;padding:20px 44px 12px;gap:0;grid-template-rows:28px minmax(0,1fr) 66px 24px}
.ds-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;font:700 11px/1.4 ui-monospace,monospace;letter-spacing:.1em;color:var(--muted)}
.ds-topline>a{text-decoration:none;letter-spacing:0;font:700 12px Manrope,sans-serif;color:var(--ink)}
.ds-exhibit{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-rows:minmax(0,1fr) auto;gap:0 48px;min-height:0;position:relative;padding:20px 0 26px}
.ds-copy{grid-column:1;grid-row:1;align-self:center;min-height:0}
.ds-eyebrow{margin:0 0 20px;color:var(--ds-coral);font:700 11px/1.4 ui-monospace,monospace;letter-spacing:.04em}
.ds-copy h1{font-size:clamp(44px,4.65vw,70px);line-height:1.01;letter-spacing:-.055em;font-weight:750;margin:0 0 24px}
.ds-copy h1 em{font:italic 1.06em/1.02 Georgia,'Times New Roman',serif;letter-spacing:-.055em;color:var(--ds-blue)}
.ds-intro{font-size:17px;line-height:1.65;color:var(--muted);margin:0;max-width:47ch}
.ds-action-region{grid-column:1;grid-row:2;margin-top:22px;align-self:end;padding-bottom:18px}
.ds-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.wb-discovery .ds-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:5px;min-height:50px;padding:13px 18px;font-size:13px;font-weight:750;text-decoration:none;box-shadow:4px 4px 0 var(--line)}
.wb-discovery .ds-primary:hover{color:var(--surface);background:var(--ds-blue);border-color:var(--ds-blue)}
.ds-primary>span{font-size:21px;font-weight:400}.ds-actions>a{font-size:12px;text-decoration:none;font-weight:700;color:var(--muted)}
.ds-visual{grid-column:2;grid-row:1/3;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;min-width:0;align-self:stretch;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface) 38%,transparent);position:relative}
.ds-visual::before{content:'';position:absolute;top:-1px;left:0;width:72px;height:3px;background:var(--ds-coral)}
.ds-visual-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0;font:700 11px/1.4 ui-monospace,monospace;color:var(--muted);letter-spacing:.04em}
.ds-visual-heading button{background:none;border:0;min-height:28px!important;padding:3px 6px!important;font-size:11px!important;white-space:nowrap;color:var(--muted)}
.ds-visual-heading button>span{margin-left:5px}
.ds-art{min-height:0;min-width:0;position:relative}.ds-art .story-scene{background:transparent}
.ds-caption{display:grid;grid-template-columns:24px minmax(0,1fr) 30px;gap:8px;align-items:center;min-height:63px;padding:12px 0;border-top:1px solid var(--line)}
.ds-caption p{font-size:12px;line-height:1.55;margin:0;max-width:46ch}.ds-caption-mark{align-self:start;font-size:25px;line-height:1.1;color:var(--ds-coral)}
.ds-caption button{border:1px solid var(--line);border-radius:50%;padding:0!important;min-width:30px;min-height:30px!important;background:transparent;font-size:18px!important}
.ds-choices{display:flex;gap:5px;margin-top:20px;flex-wrap:wrap}
.wb-discovery .ds-choices button{min-height:34px;font-size:11px;border-radius:4px;padding:6px 9px;background:transparent}
.ds-choices button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--surface)}
.ds-use-proof{display:grid;gap:9px;margin-top:18px}.ds-use-proof p{margin:0;display:grid;grid-template-columns:28px 1fr;gap:10px;font-size:13px;line-height:1.5;color:var(--muted)}
.ds-use-proof b{color:var(--accent);font-family:ui-monospace,monospace}
.ds-use-proof .ds-use-answer{color:var(--ink)}
.ds-chapters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:0;align-items:stretch}
.ds-chapters a{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--muted);padding:10px 14px;border-right:1px solid var(--line);position:relative}
.ds-chapters a:last-child{border-right:0}.ds-chapters a>span{font:11px ui-monospace,monospace;border:1px solid var(--line);border-radius:50%;min-width:29px;height:29px;display:grid;place-items:center}
.ds-chapters strong{font-size:12px;line-height:1.2}.ds-chapters i{font-style:normal;margin-left:auto}
.ds-chapters a[aria-current]{color:var(--ink);background:var(--surface)}.ds-chapters a[aria-current]::before{content:'';position:absolute;height:3px;background:var(--accent);inset:-1px 0 auto}
.ds-chapters a[aria-current]>span{background:var(--accent);border-color:var(--accent);color:var(--surface)}
.ds-keyboard{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}.ds-keyboard a{text-decoration:none;font-size:11px}.ds-keyboard kbd{font:11px ui-monospace,monospace}
.ds-first-action{background:var(--ink);color:var(--paper);padding:12px;border-radius:7px;max-width:100%}
.ds-feedback{font-size:12px;line-height:1.5;margin-bottom:9px;min-height:34px}.ds-feedback[data-error=true]{color:#ffccae}
.ds-first-action form{display:flex;gap:8px;align-items:center;background:#fffdf7;color:#182d3c;border:1px solid #fffdf7;border-radius:4px;padding:3px 4px 3px 11px}
.ds-first-action input{background:transparent;border:0;min-width:0;width:100%;padding:6px 0;font:13px/1.4 ui-monospace,monospace;color:#182d3c;min-height:32px;outline-offset:2px}
.ds-first-action form>span{font-size:19px;color:#a43e24}.ds-first-action form>button{min-width:34px;min-height:32px!important;padding:2px!important;background:#a43e24;color:white;border:0;border-radius:3px;font-size:18px!important}
.ds-after-command{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:8px}.ds-after-command>span{font-size:11px;line-height:1.4;color:#d4dbe0}.ds-after-command code{font-size:11px;color:inherit}
.ds-first-action .ds-primary{min-height:31px;padding:5px 8px;font-size:11px;box-shadow:none;background:#cfdfed;color:#172f40;border-color:#cfdfed}
.ds-after-command .ds-text-button{color:inherit;font-size:11px;min-height:27px;padding:2px;border:0;background:transparent;white-space:nowrap}
.wb-discovery button:focus-visible,.wb-discovery a:focus-visible,.wb-discovery input:focus-visible{outline:3px solid var(--ds-coral);outline-offset:3px}
@media(min-width:1600px){.ds-copy h1{font-size:76px}.ds-intro{font-size:19px}.ds-caption p{font-size:14px}}
@media(max-width:1000px){.wb-discovery{padding:14px 26px 10px;grid-template-rows:24px minmax(0,1fr) 58px 22px}.ds-exhibit{gap:0 24px;padding:14px 0 20px}.ds-copy h1{font-size:44px}.ds-intro{font-size:15px;line-height:1.55}.ds-eyebrow{font-size:11px;margin-bottom:14px}.ds-chapters a{padding:8px;gap:6px}.ds-chapters strong{font-size:11px}.ds-chapters i{display:none}.ds-use-proof{gap:6px}.ds-use-proof p{font-size:11px}.ds-choices{margin-top:14px}.ds-visual-heading>span{font-size:11px}}
@media(max-width:700px) and (min-height:451px){
 html[data-workbench=discover] body{--wb-top:76px}.wb-discovery{padding:6px 18px 5px;grid-template-rows:21px minmax(0,1fr) 48px 20px}
 .ds-topline>span{font-size:11px;letter-spacing:.03em}.ds-topline>a{font-size:11px}
 .ds-exhibit{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:10px 0}
 .ds-copy{grid-row:1;align-self:start}.ds-visual{grid-column:1;grid-row:2}.ds-action-region{grid-row:3;grid-column:1;padding:0;margin:0}
 .ds-eyebrow{font-size:11px;margin:0 0 7px}.ds-copy h1{font-size:38px;line-height:1.02;margin-bottom:10px}.ds-copy h1 br{display:none}.ds-copy h1 em{margin-left:.15em}
 .ds-intro{font-size:12px;line-height:1.5;max-width:none}.ds-visual-heading{padding:3px 0;min-height:25px}.ds-visual-heading>span{font-size:11px}
 .ds-caption{grid-template-columns:15px minmax(0,1fr) 26px;min-height:34px;padding:4px 0;gap:5px}.ds-caption p{font-size:11px;line-height:1.35}.ds-caption-mark{font-size:18px}.ds-caption button{min-height:24px!important;min-width:24px;font-size:15px!important}
 .ds-actions{gap:10px;flex-wrap:nowrap}.wb-discovery .ds-primary{min-height:38px;padding:8px 10px;font-size:11px;gap:8px;box-shadow:2px 2px 0 var(--line);flex:1}.ds-actions>a{font-size:11px;max-width:83px}
 .ds-chapters a{flex-direction:column;justify-content:center;gap:3px;padding:4px 1px}.ds-chapters a>span{font-size:11px;border:0;min-width:20px;height:19px}.ds-chapters strong{font-size:11px;white-space:nowrap}.ds-keyboard>span{font-size:11px}.ds-keyboard a{font-size:11px}.ds-keyboard kbd{font-size:11px}
 .ds-choices{margin-top:8px;gap:4px}.wb-discovery .ds-choices button{font-size:11px;min-height:27px;padding:4px 6px}.ds-use-proof{margin-top:8px;gap:4px}.ds-use-proof p{font-size:11px;line-height:1.4;grid-template-columns:21px 1fr;gap:5px}
 .ds-first-action{padding:7px}.ds-feedback{font-size:11px;line-height:1.4;margin-bottom:5px;min-height:0}.ds-first-action input{font-size:12px;min-height:29px}.ds-first-action form>button{min-height:27px!important}.ds-after-command{margin-top:5px}.ds-after-command>span,.ds-after-command code{font-size:11px}.ds-first-action .ds-primary{min-height:27px;padding:4px 6px;font-size:11px}.ds-after-command .ds-text-button{font-size:11px}
}
@media(max-width:700px) and (min-height:451px) and (max-height:650px){
 .ds-copy h1{font-size:29px;margin-bottom:6px}.ds-intro{font-size:11px;line-height:1.4}.ds-eyebrow{font-size:11px;margin-bottom:5px}.ds-exhibit{gap:6px;padding:6px 0}.ds-visual-heading{min-height:20px;padding:1px 0}.ds-visual-heading button{min-height:20px!important;font-size:11px!important}.ds-caption{min-height:29px}.ds-caption p{font-size:11px}.ds-use-proof p{font-size:11px}.wb-discovery[data-discovery-chapter="4"] .ds-copy h1{font-size:26px}
}
@media(max-height:600px) and (min-width:701px){
 .wb-discovery{padding:6px 24px 5px;grid-template-rows:20px minmax(0,1fr) 42px 18px}.ds-exhibit{padding:6px 0 10px;gap:0 24px}.ds-copy h1{font-size:36px;margin-bottom:10px}.ds-eyebrow{font-size:11px;margin-bottom:9px}.ds-intro{font-size:12px;line-height:1.5}.ds-action-region{padding:0;margin-top:8px}.wb-discovery .ds-primary{min-height:35px;padding:7px 10px;font-size:11px}.ds-caption{min-height:40px;padding:6px 0}.ds-caption p{font-size:11px}.ds-visual-heading{padding:4px 0}.ds-choices{margin-top:10px}.ds-use-proof{margin-top:8px}.ds-use-proof p{font-size:11px}.ds-chapters a>span{height:24px;min-width:24px}.ds-chapters strong{font-size:11px}.ds-first-action{padding:7px}.ds-feedback{font-size:11px;min-height:0}
}
@media(max-height:450px) and (max-width:700px){
 html[data-workbench=discover] body{--wb-top:54px}html[data-workbench=discover] .topbar{padding:2px 10px;gap:1px 6px}html[data-workbench=discover] .topbar .wordmark{font-size:17px}html[data-workbench=discover] .topbar button,html[data-workbench=discover] .platform-switch{min-height:24px;font-size:11px;padding:2px 5px}
 .wb-discovery{padding:2px 10px 3px;grid-template-rows:0 minmax(0,1fr) 31px 0}.ds-topline,.ds-keyboard{display:none}.ds-exhibit{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px;padding:5px 0 7px}.ds-copy h1{font-size:26px;margin-bottom:7px}.ds-eyebrow{font-size:11px;margin-bottom:6px}.ds-intro{font-size:11px;line-height:1.4}.ds-action-region{margin-top:5px;padding:0}.ds-actions{gap:8px}.wb-discovery .ds-primary{min-height:29px;font-size:11px;padding:5px 8px;gap:5px;box-shadow:2px 2px 0 var(--line)}.ds-actions>a{font-size:11px;max-width:76px}.ds-visual-heading{padding:2px 0}.ds-visual-heading>span{font-size:11px}.ds-visual-heading button{font-size:11px!important;min-height:22px!important;padding:2px!important}.ds-caption{grid-template-columns:14px minmax(0,1fr) 22px;min-height:32px;padding:3px 0;gap:4px}.ds-caption p{font-size:11px;line-height:1.3}.ds-caption-mark{font-size:17px}.ds-caption button{min-height:21px!important;min-width:21px;font-size:14px!important}.ds-chapters a{padding:3px 5px;gap:5px}.ds-chapters a>span{height:20px;min-width:20px;font-size:11px}.ds-chapters strong{font-size:11px}.ds-choices{margin-top:6px;gap:3px}.wb-discovery .ds-choices button{font-size:11px;min-height:23px;padding:3px 5px}.ds-use-proof{margin-top:6px;gap:3px}.ds-use-proof p{font-size:11px;line-height:1.3;grid-template-columns:20px 1fr;gap:4px}.ds-first-action{padding:5px}.ds-feedback{font-size:11px;line-height:1.3;margin-bottom:4px;min-height:0}.ds-first-action input{font-size:11px;min-height:24px}.ds-first-action form{padding:1px 3px 1px 6px}.ds-first-action form>button{min-height:22px!important;font-size:14px!important}.ds-after-command{margin-top:3px}.ds-after-command>span,.ds-after-command code{font-size:11px}.ds-after-command .ds-text-button{font-size:11px;min-height:20px;padding:0}.ds-first-action .ds-primary{font-size:11px;min-height:24px;padding:3px 5px;box-shadow:none}
}
@media(max-height:300px){.ds-copy h1{font-size:22px;margin-bottom:5px}.ds-eyebrow{margin-bottom:3px;font-size:11px}.ds-intro{font-size:11px;line-height:1.35}.ds-use-proof p{font-size:11px}.ds-caption p{font-size:11px}.ds-visual-heading>span{display:none}.ds-visual-heading{justify-content:end}.ds-first-action .ds-feedback{font-size:11px}.ds-after-command>span{display:none}}

/* Explicit tracks keep hidden compact chrome from moving the exhibit into a zero-height row. */
.ds-topline{grid-row:1}.ds-exhibit{grid-row:2}.ds-chapters{grid-row:3}.ds-keyboard{grid-row:4}

.ds-compact-copy{display:none}
@media(max-height:350px),(max-height:450px) and (min-width:701px),(max-width:700px) and (max-height:640px){
 .ds-copy{display:none}.ds-compact-copy{display:flex;flex-direction:column;grid-column:1;grid-row:1;align-self:start;min-height:0;gap:5px}
 .ds-compact-copy h1{font-size:19px;line-height:1.15;letter-spacing:-.035em;margin:0}.ds-compact-copy>p{font-size:11px;line-height:1.4;margin:0;min-height:46px}
 .ds-compact-copy .ds-choices{margin:0;gap:3px}.wb-discovery .ds-compact-copy .ds-choices button{font-size:11px;min-height:22px;padding:3px 5px}
 .ds-reading-pages{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.ds-reading-pages span{margin-right:auto}.wb-discovery .ds-reading-pages button{font-size:13px;min-height:21px;min-width:27px;padding:0 4px}
 .ds-exhibit{gap:0 12px}.ds-action-region{margin-top:4px}.wb-discovery .ds-primary{min-height:28px;padding:4px 8px;font-size:11px;box-shadow:none}.ds-actions>a{font-size:11px}.ds-actions{gap:7px}
 .ds-compact-copy .ds-choices button[data-value="snapshots"],.ds-compact-copy .ds-choices button[data-value="branches"]{flex:1}
 .ds-compact-copy .ds-choices:has([data-discovery=use]){flex-wrap:nowrap}.ds-compact-copy [data-discovery=use]{font-size:11px!important;padding:3px!important}
 .ds-after-command{display:none}.ds-first-action{padding:5px}.ds-feedback{font-size:11px!important;line-height:1.3;margin-bottom:3px}.ds-first-action form{padding:0 2px 0 6px}.ds-first-action input{min-height:23px;font-size:11px}
 .ds-visual-heading{min-height:20px}.ds-caption p{font-size:11px}.ds-caption{min-height:32px}.ds-chapters strong{font-size:11px}
 .wb-discovery[data-discovery-chapter="4"] .ds-compact-copy>p{min-height:0;max-height:none}.wb-discovery[data-discovery-chapter="4"] .ds-reading-pages{display:none}
}
.wb-discovery .ds-primary{line-height:1.3}.ds-primary>span{line-height:1}
@media(max-height:350px),(max-height:450px) and (min-width:701px),(max-width:700px) and (max-height:640px){.ds-primary>span{font-size:16px}.ds-reading-pages button{line-height:1}.ds-compact-copy{gap:4px}}
/* The command dock keeps the same high-contrast writing surface in both themes. */
.ds-first-action{background:#192e3c;color:#f7f0df;border:1px solid #60707c}
@media(min-width:701px) and (min-height:601px){.ds-keyboard,.ds-keyboard kbd{font-size:11px}.ds-keyboard a{font-size:11px}.ds-caption p{font-size:14px}.ds-visual-heading,.ds-topline{font-size:11px}.ds-visual-heading button{font-size:11px!important}}
.ds-keyboard>a{min-height:24px;display:inline-flex;align-items:center}
@media(max-width:700px) and (min-height:451px){.wb-discovery{grid-template-rows:21px minmax(0,1fr) 48px 24px}}
@media(max-height:350px),(max-height:450px) and (min-width:701px),(max-width:700px) and (max-height:640px){html[data-workbench=discover] .topbar nav a{min-height:24px;display:flex;align-items:center}}
/* Command output keeps Git's own layout; the French reading follows it. */
.ds-output{margin:0 0 5px;font:11px/1.4 ui-monospace,monospace;color:#f7f0df;white-space:pre;tab-size:4;overflow-x:auto}
@media(max-width:700px),(max-height:600px){.ds-output{font-size:11px;line-height:1.3;margin-bottom:3px}}
/* Touch screens have no arrow keys or Tab to advertise. */
@media(pointer:coarse){.ds-keyboard>span,.ds-key-hint{display:none}.ds-keyboard{justify-content:flex-end}}
/* Command output lengthens the dock; the headline yields height rather than climbing over the topline. */
@media(min-width:701px) and (min-height:601px){.wb-discovery[data-discovery-chapter="4"] .ds-copy h1{font-size:clamp(36px,min(4.65vw,7.4vh),70px)}.wb-discovery[data-discovery-chapter="4"] .ds-eyebrow{margin-bottom:14px}}
/* On short screens long output (a unified diff) scrolls inside the dock, pinned to its last lines like a terminal. */
@media(max-height:450px){.ds-output{max-height:5.2em;overflow-y:auto}}
@media(max-height:300px){.ds-output{max-height:3.9em}}
/* The real-world outcome is the hook: full ink, coral arrow. */
.ds-use-proof .ds-use-answer{color:var(--ink)}
.ds-use-proof .ds-use-answer b{color:var(--ds-coral)}
/* Long Git output scrolls inside its box; the explanation above it stays in view. */
@media(min-height:451px){.wb-discovery .ds-output{max-height:clamp(60px,13vh,150px);max-height:round(down,clamp(60px,13vh,150px),1lh);overflow:auto}}
/* Pinned to its last lines, the box holds whole lines only (round to 1lh): no half-cut first line. */
/* The chapter's call to action keeps a breath of space below the last paragraph. */
@media(min-height:700px) and (min-width:701px){.wb-discovery .ds-action-region{padding-top:12px}}
/* Short portrait phones keep the explanation paged in the last chapter too: the command dock needs the height. */
@media(max-width:700px) and (min-height:451px) and (max-height:640px){.wb-discovery[data-discovery-chapter="4"] .ds-reading-pages{display:flex}.wb-discovery[data-discovery-chapter="4"] .ds-compact-copy>p{min-height:46px}}
/* Two-line case buttons stay tight so the paged explanation keeps clear of the action below. */
.ds-compact-copy [data-discovery=use]{line-height:1.15}
/* Dark theme: the command field darkens with the page instead of staying a cream slab inside the dock. */
[data-theme=dark] .ds-first-action form{background:#0d1a24;color:#f7f0df;border-color:#60707c}[data-theme=dark] .ds-first-action input{color:#f7f0df}[data-theme=dark] .ds-first-action input::placeholder{color:#a9b8c5;opacity:1}
/* Phones: chapter names wrap inside their own fifth of the strip instead of running into the next one. */
@media(max-width:700px) and (min-height:451px){.ds-chapters a{gap:1px;padding:3px 2px;min-width:0}.ds-chapters a>span{height:16px;min-width:22px;border-radius:8px;line-height:16px}.ds-chapters strong{white-space:normal;text-align:center;line-height:1.1;max-width:100%}}
