/*
  v18-learn.css · the Knowledge base page (build_v18_learn.py → v18-learn.html).
  Where it sits: loaded after v18.css (the canon: tokens --blue, --navy, --grey, --g, --w, --mono,
  --sans, header, footer, buttons) and v18-std.css (the standard pages: .st-top, .st-pills, .st-lede,
  .st-none, .st-end, body.on-light). Only classes that start with kb- and the head modifier .h-kb live
  here, so nothing in the other pages can change.
  Manner: a white head (the other standard heads are grey, blue, pale blue and dark navy) cut by a blue
  search bar that stays at the top of the window; ruled lists, mono for meta, no cards, no icons.
  Sections: head and the tick ruler · search bar and topics · read first · the groups · narrow screens.
  Check: open http://localhost:8250/v18-learn.html at 1440 and 375 wide. Undo: delete this file and the page.
*/

/* ---- head: white sheet, title left, the whole reference as ticks on the right ---- */
.st-top.h-kb{background:#fff;color:var(--navy);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,4vw,72px);align-items:start;padding-bottom:clamp(36px,4vw,60px)}
.h-kb .st-pills a{color:var(--navy)}
.st-top.h-kb h1{max-width:11.5ch;font-size:clamp(46px,6vw,96px);line-height:.96;letter-spacing:-.05em;margin-left:-.03em}
.h-kb .st-lede{color:#2c3a58;max-width:44ch;margin-top:clamp(22px,2.4vw,34px)}

/* The ruler. One tick per question, in six blocks (the topics, numbered in mono). All ticks are short
   but one: the question being shown, drawn out to the readout beside it. "One question at a time." */
.kb-ruler{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 clamp(16px,1.6vw,28px);align-items:start;
  /* lines the first tick up with the pills row rather than with the top of the padding box */
  padding-top:9px}
.kb-ticks{display:flex;flex-direction:column;gap:16px}
.kb-rg{position:relative;display:flex;flex-direction:column;padding-left:34px}
.kb-rg small{position:absolute;left:0;top:1px;font:500 13px/16px var(--mono);color:var(--blue)}
/* each tick is 15px high so it can be pointed at; the visible line is its :before */
.kb-rg i{display:block;position:relative;width:clamp(120px,13vw,190px);height:16px;cursor:pointer}
.kb-rg i:before{content:"";position:absolute;left:0;top:7px;width:56px;height:2px;background:#8497bd;transition:width .3s cubic-bezier(.23,1,.32,1),background-color .2s,opacity .2s}
@media (hover:hover){.kb-rg i:hover:before{width:84px;background:var(--navy)}}
.kb-rg i.on:before{width:100%;height:3px;top:6.5px;background:var(--blue)}
/* while a search is on, the ticks of the questions that match stay; the rest step back */
.kb-ticks.flt i:before{opacity:.28}
.kb-ticks.flt i.hit:before{opacity:1;background:var(--blue)}
.kb-ticks.flt i.on:before{opacity:1}
.kb-read{display:block;text-decoration:none;color:var(--navy);will-change:transform}
.kb-ruler.rdy .kb-read{transition:transform .35s cubic-bezier(.23,1,.32,1)}
.kb-read small{display:block;font:500 13px/16px var(--mono);letter-spacing:.02em;color:var(--blue);margin-bottom:14px}
.kb-read b{display:block;max-width:17ch;font-size:clamp(26px,2.6vw,40px);line-height:1.08;letter-spacing:-.035em;font-weight:600;text-wrap:balance}
/* the question's published one-line description: the short answer itself, in the head */
.kb-read em{display:block;max-width:34ch;margin-top:16px;font-style:normal;font-size:18px;line-height:1.5;color:#2c3a58;text-wrap:pretty}
.kb-read span{display:inline-block;margin-top:16px;font-size:18px;font-weight:600;color:var(--blue);text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(31,99,214,.35)}
.kb-read span:after{content:"\00a0→"}
.kb-read:focus-visible{outline:2px solid var(--blue);outline-offset:8px;border-radius:4px}
@media (hover:hover){.kb-read:hover span{text-decoration-color:currentColor}}

/* ---- the tool: search bar (sticky) and topics, one blue band ---- */
.kb{--pad:max(var(--g),calc((100vw - var(--w))/2 + var(--g)))}
/* z-index 20 keeps the bar over the list and under the header's menu (30) */
.kb-find{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 28px;align-items:end;padding:18px var(--pad) 16px;background:var(--blue);color:#fff}
.kb-find label{display:flex;flex-direction:column;gap:6px;border-bottom:2px solid rgba(255,255,255,.55);padding-bottom:6px;transition:border-color .2s}
.kb-find label:focus-within{border-bottom-color:#fff}
.kb-find label span{font:500 12px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#e9f0ff}
.kb-find input{font:500 clamp(22px,2.3vw,32px)/1.25 var(--sans);letter-spacing:-.02em;color:#fff;border:0;outline:0;background:none;padding:2px 0;width:100%;border-radius:0;-webkit-appearance:none;appearance:none}
.kb-find input::placeholder{color:#c2d7ff;opacity:1}
.kb-find input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:18px;height:18px;cursor:pointer;
  background:linear-gradient(45deg,transparent 46%,#fff 46% 54%,transparent 54%),linear-gradient(-45deg,transparent 46%,#fff 46% 54%,transparent 54%)}
.kb-count{margin:0;padding-bottom:12px;font:500 14px/1.2 var(--mono);color:#e9f0ff;min-width:12ch;text-align:right}
.kb-jump{display:flex;flex-wrap:wrap;gap:10px 26px;padding:6px var(--pad) 26px;background:var(--blue)}
.kb-jump[hidden]{display:none}
.kb-jump a{font-size:18px;font-weight:600;color:#fff;text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(255,255,255,.4);white-space:nowrap}
.kb-jump i{font:500 12px/1 var(--mono);font-style:normal;color:#e9f0ff;margin-right:8px}
.kb-jump sup{font:500 12px/1 var(--mono);color:#e9f0ff;margin-left:5px;vertical-align:top;position:relative;top:3px}
.kb-jump a:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:3px}
@media (hover:hover){.kb-jump a:hover{text-decoration-color:#fff}}

/* ---- read first: three questions set apart on grey, and the way to the Terminal guide ---- */
.kb-start{background:var(--grey)}.kb-start[hidden]{display:none}
.kb-start .in{max-width:var(--w);margin:0 auto;padding:clamp(36px,4.2vw,64px) var(--g)}
.kb-start h2{margin:0 0 clamp(22px,2.6vw,36px);font-size:clamp(28px,3vw,46px);line-height:1.05;letter-spacing:-.04em;font-weight:600;color:var(--navy)}
.kb-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:2px solid var(--navy)}
.kb-three a{display:flex;flex-direction:column;padding:26px clamp(18px,2.4vw,36px) 30px;border-left:1px solid #cfd6e4;text-decoration:none;color:#0b1430}
.kb-three a:first-child{padding-left:0;border-left:0}
.kb-three b{font:500 14px/1 var(--mono);letter-spacing:.06em;color:var(--blue)}
.kb-three small{margin:14px 0 12px;font:500 13px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#566683}
.kb-three h3{margin:0 0 14px;font-size:clamp(24px,2.1vw,31px);line-height:1.14;letter-spacing:-.025em;font-weight:600;text-wrap:balance;text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1.5px;text-underline-offset:5px;transition:text-decoration-color .2s}
.kb-three p{margin:0;font-size:18px;line-height:1.5;color:#3b4a68}
.kb-three a:focus-visible,.kb-guide:focus-visible,.kb-q a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.kb-guide{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr) auto;gap:6px 28px;align-items:baseline;margin-top:clamp(8px,1vw,14px);padding:22px 0;border-top:1px solid #cfd6e4;border-bottom:1px solid #cfd6e4;text-decoration:none;color:var(--navy)}
.kb-guide small{font:500 13px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#566683}
.kb-guide b{font-size:clamp(20px,1.7vw,24px);font-weight:600;letter-spacing:-.015em}
.kb-guide span{font:500 14px/1.3 var(--mono);color:var(--blue);white-space:nowrap}.kb-guide span:after{content:"\00a0→"}
@media (hover:hover){.kb-three a:hover h3{text-decoration-color:currentColor}.kb-guide:hover b{color:var(--blue)}}

/* ---- the groups: topic on the left (stays in view), its questions as a ruled list on the right ---- */
.kb-sets{max-width:var(--w);margin:0 auto;padding:clamp(8px,1vw,16px) var(--g) clamp(48px,6vw,96px)}
/* scroll-margin clears the sticky search bar when a topic link is followed */
.kb-set{display:grid;grid-template-columns:minmax(220px,340px) minmax(0,1fr);gap:clamp(28px,5vw,96px);align-items:start;padding-top:clamp(40px,5vw,76px);scroll-margin-top:84px}
.kb-set[hidden]{display:none}
.kb-set header{position:sticky;top:120px}
.kb-set .n{display:block;font:500 14px/1 var(--mono);letter-spacing:.06em;color:var(--blue);margin-bottom:14px}
.kb-set h2{margin:0;font-size:clamp(28px,2.8vw,42px);line-height:1.05;letter-spacing:-.035em;font-weight:600;color:var(--navy);text-wrap:balance}
.kb-set header p{margin:14px 0 12px;font-size:18px;line-height:1.5;color:#3b4a68;max-width:30ch}
.kb-set header small{font:500 13px/1.3 var(--mono);color:#6b7489}
.kb-set ul{list-style:none;margin:0;padding:0;border-top:2px solid var(--navy)}
.kb-q{border-bottom:1px solid #dfe4ee}.kb-q[hidden]{display:none}
.kb-q a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 32px;padding:22px 0 24px;text-decoration:none;color:#0b1430}
.kb-q h3{margin:0;font-size:clamp(21px,1.75vw,26px);line-height:1.2;letter-spacing:-.02em;font-weight:600;transition:color .2s}
.kb-q p{grid-column:1;margin:0;font-size:18px;line-height:1.5;color:#3b4a68;max-width:64ch;text-wrap:pretty}
.kb-q small{grid-column:2;grid-row:1;font:500 13px/2.2 var(--mono);color:#6b7489;white-space:nowrap}
.kb-q small:after{content:"\00a0→";color:var(--blue)}
@media (hover:hover){.kb-q a:hover h3{color:var(--blue)}}
/* while a search is on, a topic is only a label over its matches: its line and its full count would mislead */
.kb.flt .kb-set{padding-top:clamp(28px,3vw,44px)}
.kb.flt .kb-set header p,.kb.flt .kb-set header small{display:none}
.kb.flt .kb-set h2{font-size:clamp(22px,1.9vw,28px);letter-spacing:-.025em}
.kb-sets .st-none a{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
.kb-upd{margin:clamp(28px,3vw,44px) 0 0;font:500 13px/1.4 var(--mono);color:#6b7489}

/* ---- narrow screens ---- */
@media (max-width:900px){
.st-top.h-kb{grid-template-columns:minmax(0,1fr)}
/* the ruler turns on its side: ticks stand in a row, the drawn-out one is the tall one, the readout sits under it */
.kb-ruler{grid-template-columns:minmax(0,1fr);gap:18px;padding-top:0}
.kb-ticks{flex-direction:row;gap:8px;align-items:flex-end}
.kb-rg{flex-direction:row;align-items:flex-end;padding:18px 0 0;flex:var(--n,1) 1 0}
.kb-rg small{top:0;line-height:12px;font-size:11px}
.kb-rg i{flex:1 1 0;width:auto;min-width:0;height:44px}
.kb-rg i:before,.kb-rg i.on:before{left:calc(50% - 1px);top:auto;bottom:0;width:2px;height:16px;transition:height .3s cubic-bezier(.23,1,.32,1),background-color .2s,opacity .2s}
.kb-rg i.on:before{height:44px}
.kb-read{max-width:none;transform:none!important}
/* the one-line answer is dropped here: the search bar must stay near the top of a small screen, and the
   same three answers stand in full right under it */
.kb-read em{display:none}
.kb-set{grid-template-columns:minmax(0,1fr);gap:22px}
.kb-set header{position:static}.kb-set header p{max-width:none}
.kb-three{grid-template-columns:minmax(0,1fr)}
.kb-three a,.kb-three a:first-child{padding:24px 0 26px;border-left:0;border-bottom:1px solid #cfd6e4}
.kb-three a:last-child{border-bottom:0}
}
@media (max-width:640px){
.kb-find{grid-template-columns:minmax(0,1fr);padding-top:14px;padding-bottom:12px}
.kb-count{text-align:left;padding-bottom:0}
/* topics in one row that scrolls sideways, so the band stays short */
.kb-jump{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-top:8px;padding-bottom:20px}
.kb-jump::-webkit-scrollbar{display:none}
.kb-guide{grid-template-columns:minmax(0,1fr)}
.kb-q a{grid-template-columns:minmax(0,1fr)}
.kb-q small{grid-column:1;grid-row:auto;line-height:1.3}
.kb-set{scroll-margin-top:104px}
}
@media (prefers-reduced-motion:reduce){.kb-rg i:before,.kb-ruler.rdy .kb-read,.kb-three h3,.kb-q h3,.kb-find label{transition:none}}

/* ===== search band, given room (Gene 20.11: it looked cut at the top, the count floated alone on the
   right). More air above and below; the count sits on the label's line, at the end of the same rule;
   topic numbers are not underlined (inline-block stops the link's underline from running through them). */
.kb-find{padding:clamp(28px,3vw,44px) var(--pad) 18px;align-items:start}
.kb-find label{grid-column:1/-1;grid-row:1}
.kb-count{grid-column:2;grid-row:1;align-self:start;padding:0;line-height:12px;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.kb-jump{padding:10px var(--pad) clamp(28px,3vw,40px)}
.kb-jump i{display:inline-block;text-decoration:none}
.kb-jump sup{display:inline-block}
@media (max-width:760px){.kb-find{padding-top:22px}.kb-count{grid-column:1;justify-self:end}}

/* ---- Learn final pass (21.11.2026) ---- */
/* "Start here" under the lede: the reading order for a first visit (fix list item 4). */
.kb-sh{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin:clamp(20px,2.2vw,30px) 0 0;font-size:18px}
.kb-sh b{font:500 12px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#566683;margin-right:4px}
.kb-sh a{color:var(--navy);font-weight:600;text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(10,43,109,.35)}
.kb-sh i{font-style:normal;color:var(--blue)}
.kb-sh .kb-shi{white-space:nowrap} /* a link and its arrow on one line (final QA item 57) */
@media (hover:hover){.kb-sh a:hover{text-decoration-color:currentColor}}
@media (pointer:coarse){.kb-sh a{display:inline-block;padding-block:10px}}
/* The label of the tick strip (founder reader: the strip needed to say what it is). */
.kb-rl{grid-column:1/-1;margin:0 0 14px;font:500 12px/1.3 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#566683}
/* Related Learn pages under a topic's questions. */
.kb-rel{display:flex;flex-wrap:wrap;gap:6px 22px;align-items:baseline;margin:18px 0 0}
.kb-rel small{font:500 12px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#6b7489}
.kb-rel a{color:var(--blue);font-size:17px;text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(31,99,214,.35)}
.kb-rel a:after{content:"\00a0→"}
@media (pointer:coarse){.kb-rel a{display:inline-block;padding-block:10px}}
.kb.flt .kb-rel{display:none}
/* The three questions read first: titles at one height and texts at one height in the row (Gene's rule
   for rows of cards; art director, 21.11.2026: texts started up to 69px apart). Four rows per card:
   number, label, title, text. Desktop only; on a phone the row is a swipe rail. */
@supports (grid-template-rows:subgrid){@media (min-width:901px){
  .kb-three{grid-template-rows:repeat(4,auto)}
  .kb-three a{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0}
  .kb-three small{margin:14px 0 12px}
}}
/* The search field shows where focus is (mobile review). */
.kb-find input:focus-visible{outline:2px solid #fff;outline-offset:4px}
/* Touch: topic links get a 44px tap area; the ticks are only a picture there, not a control. */
@media (pointer:coarse){.kb-jump a{display:inline-block;padding-block:11px}}
@media (max-width:900px){.kb-rg i{pointer-events:none;cursor:default}}
/* The topic row scrolls sideways on a phone: a fade at the right edge says there is more. */
@media (max-width:640px){.kb-jump{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}}
/* Contrast (final QA items 20 and 64, 22.11.2026): grey #8a93a8 text is #5d6673 on light grounds, and the
   pale labels on blue or navy are #e9f0ff, so every label reaches 4.5:1. */

/* Arrows after link text are written content:"\00a0→" (a no-break space), not " →": inside a flex or
   inline-flex link (the 44px touch boxes) a leading plain space in ::after is dropped, so "See the
   Terminal→" lost its gap; the no-break space also keeps the arrow from wrapping alone onto a new line.
   Final QA 22.11.2026, round 3, item 8. */

/* Touch: the Knowledge base search field is 44px tall. Final QA 22.11.2026, round 3, item 6: on a touch screen (pointer:coarse) a control is at least 44px tall; desktop with a mouse is unchanged. An inline link keeps display:inline and gets vertical padding, which grows its hit area without moving the line. */
@media (pointer:coarse){.kb-find input{min-height:44px}}

/* Touch: "related" links are at least 44px tall. Final QA 22.11.2026, round 3, item 6 (touch only, desktop unchanged): the padded box measured 43px, under the 44px rule. */
@media (pointer:coarse){.kb-rel a{min-height:44px}}
