/* Note direction B, "the notebook page". Homepage direction B turned to one
   note. Every selector is scoped under .dir-note-b; body:has(.dir-note-b) only
   reaches the site's nav, footer and ground, and pins light mode.

   The note's markup arrives as written (its own class names, diverging from note
   to note). Everything under .nb-note restyles those components onto the brand:
   cream ground, pine text, meteorite display, hot pink for the call, and the
   chapter's spectrum hue (--hue for fills, --ink for text on cream). */

body:has(.dir-note-b){
  --ground:#F7F1E6; --surface:#EFE6D6; --card:#FFFDF8; --text:#395145; --link:#474072;
  --meta:#5A6C5F; --meta2:#8A5A2B; --display:#474072;
  --hot:#C5346B; --hot-ink:#BB3166; --good:#337A55; --cairn:#3D6B86;
  --rule:rgba(57,81,69,.20); --rule-soft:rgba(57,81,69,.12);
  background:var(--ground); color:var(--text); color-scheme:light;
}
body:has(.dir-note-b) nav .wrap,
body:has(.dir-note-b) footer .wrap{max-width:1320px; padding-left:48px; padding-right:48px}
body:has(.dir-note-b) .themetoggle{display:none} /* light only in this pass */

.dir-note-b{
  --numw:56px;              /* the margin column: section numbers live here */
  --mgap:20px;
  --lead:calc(var(--numw) + var(--mgap));
  --measure:30.5em;         /* 549px at 18px: 64 to 72 characters a line in Atkinson (measured) */
  --body:18px;
  --step:29px;              /* one line: 18px x 1.6 */
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --disp:"Archivo",system-ui,sans-serif;
  --ease-out:cubic-bezier(.2,.7,.3,1);
  --ease-pop:cubic-bezier(.34,1.45,.64,1);
}
.dir-note-b .nb-sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}

/* ---------- the page grid ---------- */
.dir-note-b .nb-page{max-width:1320px; margin:0 auto; padding:28px 48px calc(var(--step) * 3);
  display:grid; grid-template-columns:290px minmax(0,1fr); gap:0 56px; align-items:start}

/* ---------- the rail ---------- */
.dir-note-b .nb-rail{position:sticky; top:16px; display:flex; flex-direction:column; gap:16px;
  max-height:var(--rail-h, calc(100vh - 32px))}
.dir-note-b .nb-rail__head{position:relative}
.dir-note-b .nb-rail__nav{flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain;
  scrollbar-width:thin; margin-right:-8px; padding-right:8px}
.dir-note-b .nb-rail__act{flex:0 0 auto; display:flex; flex-direction:column; gap:10px;
  padding-top:14px; border-top:1px solid var(--rule); transition:opacity .3s, visibility .3s}
/* when the full actions at the end are on screen, the rail's copy steps back */
.dir-note-b.is-at-end .nb-rail__act{opacity:0; visibility:hidden}

/* the chapter tab: the homepage's tab, rising out of its rule */
.dir-note-b .nb-tab{display:grid; grid-template-columns:40px minmax(0,1fr); gap:0 12px; align-items:end;
  position:relative; text-decoration:none; color:var(--ink); padding-bottom:0}
.dir-note-b .nb-tab__n{grid-column:1; width:40px; height:44px; display:flex; align-items:center; justify-content:center;
  background:var(--hue); color:var(--on); font-family:var(--disp); font-weight:700; font-size:20px;
  border-radius:8px 8px 0 0; position:relative; z-index:1; transform-origin:bottom}
.dir-note-b .nb-tab__rule{position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--hue); transform-origin:left center}
.dir-note-b .nb-tab__name{grid-column:2; padding-bottom:9px; font-family:var(--disp); font-weight:700;
  font-size:20px; line-height:1.15; letter-spacing:var(--ls-tight)}
.dir-note-b .nb-tab:hover .nb-tab__name{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px}
.dir-note-b .nb-tab:focus-visible{outline:2px solid var(--link); outline-offset:3px}
.dir-note-b .nb-open{display:none}

.dir-note-b .nb-ch__line{margin:8px 0 10px; font-size:var(--t-small); line-height:1.4; color:var(--meta)}

/* this chapter's notes: the current one is the page you're on */
.dir-note-b .nb-chlist{list-style:none; margin:0 0 18px; padding:0; display:grid; gap:2px}
.dir-note-b .nb-chlist li{display:grid; grid-template-columns:26px minmax(0,1fr); gap:0 8px; align-items:baseline;
  padding:6px 8px 6px 6px; border-radius:3px; font-family:var(--disp); font-size:var(--t-small); line-height:1.3}
.dir-note-b .nb-chlist__n{font-size:12px; font-weight:500; color:var(--ink); font-variant-numeric:tabular-nums; text-align:right}
.dir-note-b .nb-chlist a{color:var(--text); text-decoration:none}
.dir-note-b .nb-chlist a:hover{text-decoration:underline; text-decoration-color:var(--hue); text-decoration-thickness:2px; text-underline-offset:3px}
.dir-note-b .nb-chlist a:focus-visible{outline:2px solid var(--link); outline-offset:2px; border-radius:2px}
.dir-note-b .nb-chlist li.is-here{background:var(--card); box-shadow:inset 3px 0 0 var(--ink), 0 1px 0 var(--rule-soft); font-weight:700; color:var(--text)}
.dir-note-b .nb-chlist li.is-unwritten{color:var(--meta)}
.dir-note-b .nb-chlist__cairn{font-family:"Marcellus",Georgia,serif !important}
.dir-note-b .nb-chlist__cairn a, .dir-note-b .nb-chlist__cairn .nb-chlist__n{color:var(--cairn)}
.dir-note-b .nb-badge{display:inline-block; font-family:var(--disp); text-transform:uppercase; border-radius:99px;
  border:1px solid var(--hot); color:var(--hot-ink); font-size:10px; letter-spacing:var(--ls-caps); padding:1px 7px;
  margin-left:4px; vertical-align:1px; font-weight:400}

/* the note's own contents: a line of stops. Passed stops fill, the line fills
   up to where you are, and the stop you're on breathes. */
.dir-note-b .nb-toc{position:relative; border:0; padding:0} /* a <nav>: site.css's nav rule reaches it */
/* 2026-10-19: the note's contents come first in the rail, then the rest of its chapter */
.dir-note-b .nb-rail__nav > .nb-toc{margin:14px 0 22px}
.dir-note-b .nb-toc__h.nb-chlist__h{margin:24px 0 2px; padding-top:14px; border-top:1px solid var(--rule)}
.dir-note-b .nb-chlist__h + .nb-ch__line{margin-top:0}
.dir-note-b .nb-toc__h{margin:0 0 8px; font-family:var(--disp); font-size:var(--t-micro); letter-spacing:var(--ls-caps);
  text-transform:uppercase; color:var(--meta)}
.dir-note-b .nb-toc ol{list-style:none; margin:0; padding:0; position:relative}
.dir-note-b .nb-toc ol::before{content:""; position:absolute; left:11px; top:14px; bottom:14px; width:2px; margin-left:-1px;
  background:var(--rule); border-radius:1px}
.dir-note-b .nb-toc li{position:relative; z-index:1}
.dir-note-b .nb-toc a{display:grid; grid-template-columns:22px minmax(0,1fr); gap:0 10px; align-items:center;
  padding:3px 4px 3px 0; color:var(--meta); text-decoration:none; font-family:var(--disp); font-size:var(--t-small); line-height:1.3;
  border-radius:2px; transition:color .2s}
.dir-note-b .nb-toc__n{width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--ground); box-shadow:inset 0 0 0 1.5px var(--ink); color:var(--ink);
  font-size:10px; font-weight:700; font-variant-numeric:tabular-nums; transition:background-color .25s, color .25s}
.dir-note-b .nb-toc a:hover{color:var(--text)}
.dir-note-b .nb-toc a:hover .nb-toc__t{text-decoration:underline; text-underline-offset:3px}
.dir-note-b .nb-toc a.is-done{color:var(--text)}
.dir-note-b .nb-toc a.is-done .nb-toc__n{background:var(--ink); color:var(--ground)}
.dir-note-b .nb-toc a.is-now{color:var(--text); font-weight:700}
.dir-note-b .nb-toc a.is-now .nb-toc__n{background:var(--band); color:var(--band-on); box-shadow:inset 0 0 0 1.5px var(--ink), 0 0 0 3px rgba(57,81,69,.12)}
.dir-note-b .nb-toc a:focus-visible{outline:2px solid var(--link); outline-offset:1px}
.dir-note-b .nb-toc__mark{position:absolute; left:11px; top:14px; width:2px; margin-left:-1px; height:var(--mh, 0);
  background:var(--ink); border-radius:1px; z-index:0; pointer-events:none}

/* ---------- the two actions ---------- */
.dir-note-b .nb-signup{margin:0}
.dir-note-b .nb-signup label{display:block; font-family:var(--disp); font-weight:700; font-size:var(--t-small); margin:0 0 5px}
.dir-note-b .nb-signup__row{display:flex}
.dir-note-b .nb-signup input{flex:1; min-width:0; font:inherit; font-size:16px; color:var(--text); background:var(--card);
  border:1px solid var(--meta); border-right:0; border-radius:2px 0 0 2px; padding:8px 12px}
.dir-note-b .nb-signup input::placeholder{color:var(--meta); opacity:.8}
.dir-note-b .nb-signup input:focus-visible{outline:2px solid var(--link); outline-offset:1px}
.dir-note-b .nb-signup button{font-family:var(--disp); font-size:var(--t-small); font-weight:700; letter-spacing:var(--ls-caps);
  text-transform:uppercase; color:var(--text); background:transparent; border:1px solid var(--text);
  border-radius:0 2px 2px 0; padding:0 14px; cursor:pointer; white-space:nowrap}
.dir-note-b .nb-signup button:hover{background:var(--text); color:var(--ground)}
.dir-note-b .nb-signup button:focus-visible{outline:2px solid var(--link); outline-offset:2px}
.dir-note-b .nb-signup__msg{margin:6px 0 0; font-size:var(--t-small)}
.dir-note-b .nb-signup__msg:empty{display:none}
.dir-note-b .nb-signup--rail button{font-size:12px; padding:0 10px}
.dir-note-b .nb-signup--rail input{font-size:15px; padding:7px 10px}

.dir-note-b .nb-call{background:var(--surface); border:1px solid var(--rule); border-left:3px solid var(--hot);
  border-radius:3px; padding:10px 16px 14px}
.dir-note-b .nb-call__row{display:flex; align-items:center; gap:14px}
.dir-note-b .nb-call__price{margin:0; font-family:var(--disp); font-size:var(--t-small); color:var(--meta); line-height:1.1; white-space:nowrap}
.dir-note-b .nb-call__price b{display:block; font-size:24px; color:var(--hot-ink); letter-spacing:var(--ls-tight)}
.dir-note-b .nb-call__btn{flex:1; display:block; text-align:center; background:var(--hot); color:#FFFFFF; text-decoration:none;
  padding:10px 18px; border-radius:2px; font-family:var(--disp); font-size:var(--t-small); font-weight:700;
  letter-spacing:var(--ls-caps); text-transform:uppercase}
.dir-note-b .nb-call__btn:hover{filter:brightness(1.1)}
.dir-note-b .nb-call__btn:focus-visible{outline:2px solid var(--link); outline-offset:3px}
.dir-note-b .nb-call__what{margin:10px 0 0; font-size:15px; line-height:1.5}
/* in the rail: one row, price then button */
.dir-note-b .nb-call--rail{display:flex; align-items:center; gap:14px; padding:8px 12px 8px 14px}
.dir-note-b .nb-call--rail .nb-call__price b{font-size:21px}

/* ---------- the reading column: a notebook page with a margin line ---------- */
.dir-note-b .nb-read{min-width:0; position:relative;
  background:linear-gradient(rgba(197,52,107,.32),rgba(197,52,107,.32)) no-repeat;
  background-size:1px 100%; background-position:calc(var(--numw) + 9px) 0}

.dir-note-b .nb-head{padding:0 0 26px; margin-bottom:8px; border-bottom:1px solid var(--rule)}
/* the opening band: a divider page in the chapter's colour (C's band colours,
   5.0:1 to 8.8:1 for its type), the margin line carrying on through it */
.dir-note-b .nb-band{position:relative; background:var(--band); color:var(--band-on); border-radius:4px 4px 0 0;
  padding:34px 170px 40px var(--lead); margin:0 0 34px}
.dir-note-b .nb-band::before{content:""; position:absolute; top:0; bottom:0; left:calc(var(--numw) + 9px); width:1px;
  background:currentColor; opacity:.28}
.dir-note-b .nb-kicker{margin:0 0 12px; font-family:var(--disp); font-size:var(--t-micro); letter-spacing:var(--ls-caps);
  text-transform:uppercase; color:inherit; font-weight:700}
.dir-note-b .nb-h1{font-family:var(--disp); font-weight:700; font-size:50px; line-height:1.03; letter-spacing:-.02em;
  color:inherit; margin:0 0 16px; max-width:20ch; text-wrap:balance}
.dir-note-b .nb-dek{margin:0; font-size:var(--t-lead); line-height:1.45; max-width:29em; text-wrap:pretty}
.dir-note-b .nb-dek code{font-family:var(--mono); font-size:.82em; background:rgba(255,255,255,.18); color:inherit; padding:.08em .35em; border-radius:3px}
/* the stamp: "Note 01 of 19", inked on at an angle */
.dir-note-b .nb-stamp{position:absolute; top:30px; right:30px; margin:0; display:flex; flex-direction:column; align-items:center;
  padding:8px 14px 7px; border:2px solid currentColor; outline:1px solid currentColor; outline-offset:3px; border-radius:4px;
  font-family:var(--disp); text-transform:uppercase; letter-spacing:var(--ls-caps); font-size:11px; font-weight:700; line-height:1.1;
  transform:rotate(-7deg); opacity:.92}
.dir-note-b .nb-stamp b{font-size:34px; letter-spacing:-.01em; line-height:1; margin:2px 0 1px}
/* the six chapters in spectrum order hang from the band; this one hangs longest */
.dir-note-b .nb-spec{position:absolute; left:0; right:0; top:100%; display:flex; gap:3px; margin:3px 0 0; padding:0; list-style:none}
.dir-note-b .nb-spec li{flex:1; height:6px; background:var(--h); border-radius:0 0 2px 2px; transform-origin:top}
.dir-note-b .nb-spec li.is-here{height:16px}
.dir-note-b .nb-by{margin-left:var(--lead); display:grid; grid-template-columns:44px minmax(0,1fr); gap:0 12px; align-items:start; max-width:var(--measure)}
.dir-note-b .nb-by img{width:44px; height:44px; border-radius:50%; display:block; box-shadow:0 0 0 1px var(--rule); object-fit:cover}
.dir-note-b .nb-by p{margin:0}
.dir-note-b .nb-by__name{font-family:var(--disp); font-weight:700; font-size:var(--t-small); color:var(--display); line-height:1.3}
.dir-note-b .nb-by__bio{font-size:15px; line-height:1.45; color:var(--meta)}
.dir-note-b .nb-by__links{margin-top:3px !important; font-family:var(--disp); font-size:12px; color:var(--meta)}
.dir-note-b .nb-by__links a{color:inherit; text-underline-offset:2px}

/* ---------- the note: its own markup, restyled ---------- */
.dir-note-b .nb-note{padding-left:var(--lead); font-size:var(--body); line-height:1.6}
.dir-note-b .nb-note .wrap{max-width:none; margin:0; padding:0}
.dir-note-b .nb-note .nb-main{display:block}
.dir-note-b .nb-note section{padding:0; margin:0; position:relative; z-index:auto}
.dir-note-b .nb-note section + section{margin-top:calc(var(--step) * 1.6)}
.dir-note-b .nb-note :is(section, h2, h3, figure, .tablewrap){scroll-margin-top:24px}

/* the running measure; wide things break out to the column's edge */
.dir-note-b .nb-note :is(p, ul, ol, blockquote, h2, h3, h4, .callout, .note, .lead-card, .rule-card, .touch, .pair, .promptbar, .foot){max-width:var(--measure)}
.dir-note-b .nb-note :is(.cards, .tablewrap, .flow, .grid2, figure, pre){max-width:none}
.dir-note-b .nb-note :is(.card, .mode, .step, td, th, figcaption, .callout, .note, .lead-card) :is(p, ul, ol){max-width:none}

/* the margin slot (see MARGIN FIGURES in note-b.html): inline by default... */
.dir-note-b .nb-note .nb-fig{display:block; max-width:none; width:min(100%, 300px); margin:1.3em 0 1.5em; padding:0}
.dir-note-b .nb-note .nb-fig > svg{display:block; width:100%; height:auto}
.dir-note-b .nb-note aside.nb-fig{font-size:15px; line-height:1.5; color:var(--meta)}
/* ...and in the right-hand margin when there is room for it beside the measure.
   Sections contain their floats, so a figure never spills into the next one;
   wide things beside a figure narrow to pass it (they are their own formatting
   contexts), and running text never reaches it. */
@media (min-width:1300px){
  .dir-note-b .nb-note section::after{content:""; display:block; clear:both}
  .dir-note-b .nb-note .nb-fig{float:right; clear:right; width:220px; margin:6px 0 24px 32px}
  .dir-note-b .nb-note figure:not(.nb-fig){display:flow-root}
}
.dir-note-b .nb-note p{margin:0 0 .95em}
.dir-note-b .nb-note a{color:var(--link); text-decoration-thickness:1px; text-underline-offset:3px}
.dir-note-b .nb-note a:hover{text-decoration-color:var(--hue); text-decoration-thickness:2px}
.dir-note-b .nb-note strong, .dir-note-b .nb-note b{font-weight:700; color:var(--text)}
.dir-note-b .nb-note ul, .dir-note-b .nb-note ol{padding-left:1.3em; margin:0 0 1em}
.dir-note-b .nb-note li{margin-bottom:.4em}
.dir-note-b .nb-note li::marker{color:var(--ink)}
.dir-note-b .nb-note hr{border:0; border-top:1px solid var(--rule); margin:var(--step) 0}

/* headings start with the words that carry them; the number sits in the margin */
.dir-note-b .nb-note h2{position:relative; font-family:var(--disp); font-size:var(--t-h2); font-weight:700; line-height:1.15;
  letter-spacing:var(--ls-tight); color:var(--display); margin:calc(var(--step) * 1.6) 0 .5em; text-wrap:balance}
.dir-note-b .nb-note section > h2:first-child, .dir-note-b .nb-note .nb-main > section:first-child > h2{margin-top:calc(var(--step) * 1.2)}
.dir-note-b .nb-note h3{font-family:var(--disp); font-size:var(--t-lead); font-weight:700; line-height:1.25; color:var(--text);
  margin:1.4em 0 .4em; letter-spacing:var(--ls-tight)}
.dir-note-b .nb-note h4{font-family:var(--disp); font-size:16px; font-weight:700; line-height:1.3; margin:0 0 .35em}

.dir-note-b .nb-note :is(.no, .num){position:absolute; left:calc(-1 * var(--lead)); top:-3px; width:48px; height:34px;
  display:flex; align-items:center; justify-content:center; margin:0; padding:0;
  font-family:var(--disp); font-size:var(--t-small); font-weight:500; font-style:normal; letter-spacing:0;
  color:var(--ink); font-variant-numeric:tabular-nums; vertical-align:baseline}
.dir-note-b .nb-note :is(.no, .num) i{font-style:normal}
/* four-max-subscriptions sets its number beside the h2 rather than inside it */
.dir-note-b .nb-note section > .num:first-child{top:calc(var(--step) * 1.2 - 3px)}
.dir-note-b .nb-note .nb-circ{position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none}
.dir-note-b .nb-note .nb-circ path{stroke:var(--ink); stroke-width:1.8; stroke-linecap:round; stroke-dasharray:1; stroke-dashoffset:1}
.dir-note-b .nb-note .is-read .nb-circ path, .dir-note-b .nb-note .is-read.nb-circ path{stroke-dashoffset:0}

/* lead lines and quiet lines */
.dir-note-b .nb-note .lead{font-size:var(--t-lead); line-height:1.45}
.dir-note-b .nb-note .muted{color:var(--meta)}
.dir-note-b .nb-note .measured{font-family:var(--disp); font-size:.72em; font-weight:700; letter-spacing:var(--ls-caps);
  text-transform:uppercase; color:var(--good); border:1px solid currentColor; border-radius:99px; padding:.05em .55em; white-space:nowrap}

/* code */
.dir-note-b .nb-note code{font-family:var(--mono); font-size:.84em; background:var(--surface); color:var(--text);
  padding:.08em .35em; border-radius:3px; overflow-wrap:anywhere}
.dir-note-b .nb-note pre{font-family:var(--mono); background:#FFFDF8; color:var(--text); border:1px solid var(--rule);
  border-left:3px solid var(--hue); border-radius:3px; padding:14px 18px; margin:1.1em 0 1.3em; overflow-x:auto;
  font-size:13.5px; line-height:1.6; tab-size:2;
  background-image:repeating-linear-gradient(transparent 0 calc(13.5px * 1.6 - 1px), rgba(57,81,69,.06) calc(13.5px * 1.6 - 1px) calc(13.5px * 1.6));
  background-position:0 14px}
.dir-note-b .nb-note pre code{background:none; padding:0; font-size:1em; color:inherit; overflow-wrap:normal; white-space:pre}
.dir-note-b .nb-note pre :is(.cm, .c){color:var(--meta); font-style:italic}
.dir-note-b .nb-note pre .k{color:var(--link); font-weight:600}
.dir-note-b .nb-note pre .s{color:var(--good)}
.dir-note-b .nb-note pre .h{color:var(--ink); font-weight:700}
.dir-note-b .nb-note code.verdict-ready{color:var(--good); font-weight:700}
.dir-note-b .nb-note .codecell{font-family:var(--mono); font-weight:700; color:var(--ink); white-space:nowrap}

/* callouts and their cousins: a slip on the page, ruled in the chapter's hue */
.dir-note-b .nb-note :is(.callout, .note, .lead-card, .rule-card, .touch){background:var(--surface); border:0;
  border-left:3px solid var(--hue); border-radius:0 3px 3px 0; padding:14px 18px; margin:1.2em 0 1.3em; font-size:17px; line-height:1.55}
.dir-note-b .nb-note :is(.callout, .note, .lead-card, .rule-card, .touch) > :last-child,
.dir-note-b .nb-note :is(.callout, .note, .lead-card, .rule-card, .touch) ul:last-child{margin-bottom:0}
.dir-note-b .nb-note :is(.callout, .note, .rule-card) b:first-child, .dir-note-b .nb-note .lead-card > strong:first-child{font-family:var(--disp)}
.dir-note-b .nb-note .callout.green{border-left-color:var(--good)}
.dir-note-b .nb-note .note.warn, .dir-note-b .nb-note .rule-card{border-left-color:var(--hot); background:transparent;
  box-shadow:inset 0 0 0 1px var(--rule)}
.dir-note-b .nb-note .lead-card{background:var(--card); box-shadow:0 1px 0 rgba(57,81,69,.10), 0 10px 22px -18px rgba(57,81,69,.5);
  font-size:var(--body); margin-top:calc(var(--step) * 1.2)}
.dir-note-b .nb-note .touch{background:transparent; border-left-width:2px; padding:4px 0 4px 18px}
.dir-note-b .nb-note .touch h3{margin-top:0}
.dir-note-b .nb-note .foot{margin-top:var(--step); font-size:15px; color:var(--meta)}

/* blockquote */
.dir-note-b .nb-note blockquote{margin:1.3em 0; padding:2px 0 2px 20px; border-left:3px solid var(--hot);
  font-family:var(--disp); font-size:24px; line-height:1.3; font-weight:500; color:var(--display); letter-spacing:var(--ls-tight)}
.dir-note-b .nb-note blockquote cite{display:block; margin-top:8px; font-family:var(--disp); font-style:normal; font-size:var(--t-micro);
  letter-spacing:var(--ls-caps); text-transform:uppercase; font-weight:400; color:var(--meta)}

/* tags */
.dir-note-b .nb-note .tag{display:inline-block; font-family:var(--disp); font-size:11px; font-weight:700; letter-spacing:var(--ls-caps);
  text-transform:uppercase; color:var(--ink); background:transparent; border:1px solid var(--hue); border-radius:99px;
  padding:1px 8px; margin:0 8px 0 0; vertical-align:2px; line-height:1.5}
.dir-note-b .nb-note .tag.a{color:var(--good); border-color:var(--good)}
.dir-note-b .nb-note .tag.b{color:var(--hot-ink); border-color:var(--hot)}

/* index cards (cards, grid2/mode) */
.dir-note-b .nb-note .cards{display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; margin:1.2em 0 1.4em}
/* four cards (or two) sit two by two rather than three and an orphan */
.dir-note-b .nb-note .cards:has(> :nth-child(4):last-child), .dir-note-b .nb-note .cards:has(> :nth-child(2):last-child){grid-template-columns:repeat(2, minmax(0, 1fr))}
.dir-note-b .nb-note .grid2{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:12px; margin:1.1em 0 1.4em}
.dir-note-b .nb-note :is(.card, .mode){position:relative; background:var(--card); border:1px solid var(--rule); border-radius:3px;
  padding:16px 18px 14px; min-width:0; box-shadow:0 1px 0 rgba(57,81,69,.08), 0 10px 22px -18px rgba(57,81,69,.45)}
.dir-note-b .nb-note :is(.card, .mode)::before{content:""; position:absolute; left:-1px; right:-1px; top:-1px; height:4px;
  background:var(--hue); border-radius:3px 3px 0 0; transform-origin:top}
.dir-note-b .nb-note .mode.rebuild::before{background:var(--hot)}
.dir-note-b .nb-note .mode.live::before{background:var(--good)}
.dir-note-b .nb-note .card h4 .tag{display:table; margin:0 0 8px}
.dir-note-b .nb-note .mode h3{margin:0 0 .4em; font-size:18px}
.dir-note-b .nb-note :is(.card, .mode) p{font-size:15.5px; line-height:1.5; margin:0; color:var(--text); opacity:.9}

/* flows: route-cheap-first's boxed steps, homer's inline chain with arrows */
.dir-note-b .nb-note .flow{display:flex; flex-wrap:wrap; align-items:stretch; gap:10px 22px; margin:1.3em 0 1.4em}
.dir-note-b .nb-note .flow:has(.arrow){gap:8px 8px; align-items:center}
.dir-note-b .nb-note .flow .step{flex:1 1 140px; position:relative; min-width:0; background:var(--card); border:1px solid var(--rule);
  border-top:3px solid var(--hue); border-radius:3px; padding:10px 12px; font-family:var(--disp); font-size:var(--t-small); line-height:1.35}
.dir-note-b .nb-note .flow:has(.arrow) .step{flex:0 1 auto; padding:6px 11px; border-top-width:1px}
.dir-note-b .nb-note .flow .step.yours{border-color:var(--hot); color:var(--hot-ink); font-weight:700}
.dir-note-b .nb-note .flow .step b{display:block; font-size:15px; margin-bottom:3px}
.dir-note-b .nb-note .flow .step small{display:block; font-family:"Atkinson Hyperlegible Next","Atkinson Hyperlegible",sans-serif; font-size:13.5px; color:var(--meta); line-height:1.4}
.dir-note-b .nb-note .flow:not(:has(.arrow)) .step:not(:last-child)::after{content:"\2192"; position:absolute; right:-18px; top:50%;
  transform:translateY(-50%); color:var(--ink); font-size:16px; font-weight:700}
.dir-note-b .nb-note .flow .arrow{color:var(--ink); font-weight:700}

/* numbered steps (ol.steps) */
.dir-note-b .nb-note ol.steps{list-style:none; counter-reset:nbs; padding:0; margin:1em 0 1.3em}
.dir-note-b .nb-note ol.steps > li{counter-increment:nbs; position:relative; padding:0 0 0 44px; margin:0 0 1em}
.dir-note-b .nb-note ol.steps > li::before{content:counter(nbs); position:absolute; left:0; top:0; width:28px; height:28px;
  border-radius:50%; background:var(--hue); color:var(--on); display:flex; align-items:center; justify-content:center;
  font-family:var(--disp); font-weight:700; font-size:14px}
.dir-note-b .nb-note ol.steps > li > h3:first-child{margin-top:0; font-size:18px}

/* tables */
.dir-note-b .nb-note .tablewrap{overflow-x:auto; margin:1.2em 0 1.4em; border:1px solid var(--rule); border-radius:3px; background:var(--card)}
.dir-note-b .nb-note table{border-collapse:collapse; width:100%; font-size:15px; line-height:1.45}
.dir-note-b .nb-note caption{caption-side:top; text-align:left; padding:12px 16px 8px; font-family:var(--disp); font-weight:700;
  font-size:var(--t-small); color:var(--display); border-bottom:2px solid var(--hue)}
.dir-note-b .nb-note th, .dir-note-b .nb-note td{text-align:left; vertical-align:top; padding:9px 16px; border-top:1px solid var(--rule-soft)}
.dir-note-b .nb-note thead th{font-family:var(--disp); font-size:var(--t-micro); font-weight:700; letter-spacing:var(--ls-caps);
  text-transform:uppercase; color:var(--meta); border-top:0; padding-top:10px; padding-bottom:8px}
.dir-note-b .nb-note tbody tr:nth-child(even){background:rgba(239,230,214,.45)}
.dir-note-b .nb-note td:first-child{font-weight:700}
.dir-note-b .nb-note td code{white-space:nowrap}

/* before and after pairs (say-the-thing) */
.dir-note-b .nb-note .pair{display:block; position:relative; background:var(--card); border:1px solid var(--rule); border-radius:3px;
  padding:12px 16px 12px; margin:0 0 10px}
.dir-note-b .nb-note .pair:first-of-type{margin-top:1.1em}
.dir-note-b .nb-note .pair .before, .dir-note-b .nb-note .pair .after{display:block; position:relative; padding-left:26px; line-height:1.45}
.dir-note-b .nb-note .pair .before{margin-bottom:4px}
.dir-note-b .nb-note .pair .before::before, .dir-note-b .nb-note .pair .after::before{position:absolute; left:0; top:0;
  font-family:var(--disp); font-weight:700; width:18px; text-align:center}
.dir-note-b .nb-note .pair .before::before{content:"\2717"; color:var(--hot-ink)}
.dir-note-b .nb-note .pair .after::before{content:"\2713"; color:var(--good)}
.dir-note-b .nb-note .pair del{color:var(--meta); text-decoration:line-through; text-decoration-color:var(--hot); text-decoration-thickness:1.5px}
.dir-note-b .nb-note .pair ins{color:var(--text); text-decoration:none; font-weight:700; background:linear-gradient(transparent 62%, rgba(58,147,96,.18) 62%)}
.dir-note-b .nb-note .pair small{display:block; margin-top:6px; padding-left:26px; font-size:14px; line-height:1.45; color:var(--meta)}

/* figures */
.dir-note-b .nb-note figure{margin:1.5em 0}
.dir-note-b .nb-note figure img{display:block; width:100%; height:auto; border:1px solid var(--rule); border-radius:3px; background:var(--card)}
.dir-note-b .nb-note figcaption{margin-top:8px; font-size:14px; line-height:1.45; color:var(--meta); max-width:var(--measure)}

/* the copy-a-prompt bar (agent-visual-audit) */
.dir-note-b .nb-note .promptbar{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px;
  margin:1.2em 0 0; padding:10px 14px; background:var(--surface); border-radius:3px 3px 0 0; max-width:none}
.dir-note-b .nb-note .promptbar .note{background:none; border:0; padding:0; margin:0; font-size:15px; color:var(--meta)}
.dir-note-b .nb-note button.copy{font-family:var(--disp); font-size:12px; font-weight:700; letter-spacing:var(--ls-caps); text-transform:uppercase;
  color:var(--ground); background:var(--text); border:1px solid var(--text); border-radius:2px; padding:7px 12px; cursor:pointer}
.dir-note-b .nb-note button.copy:hover{background:var(--link); border-color:var(--link)}
.dir-note-b .nb-note button.copy:focus-visible{outline:2px solid var(--link); outline-offset:2px}
.dir-note-b .nb-note .promptbar + pre.prompt{margin-top:0; border-radius:0 0 3px 3px; white-space:pre-wrap; max-height:440px; overflow:auto}

/* the note's own sign-off ("Excelsior! Kai") */
.dir-note-b .nb-note footer{border-top:0; padding:calc(var(--step) * 1) 0 0; margin-top:calc(var(--step) * 1.4);
  font-family:var(--disp); font-size:15px; line-height:1.5; color:var(--meta); position:relative; max-width:var(--measure)}
.dir-note-b .nb-note footer::before{content:""; display:block; width:48px; height:2px; background:var(--hue); margin-bottom:14px}
.dir-note-b .nb-note footer .rule{display:none}
.dir-note-b .nb-note footer p{font-family:inherit; font-size:inherit; letter-spacing:0; text-transform:none; margin:0 0 6px}
.dir-note-b .nb-note .sig{font-weight:700; color:var(--display)}

/* ---------- the end of the page ---------- */
.dir-note-b .nb-end{margin-top:calc(var(--step) * 2); padding-left:var(--lead)}
.dir-note-b .nb-end__act{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:18px 26px; align-items:start;
  padding:22px 0 26px; border-top:2px solid var(--text); border-bottom:1px solid var(--rule); scroll-margin-top:24px}
.dir-note-b .nb-end__act .nb-signup{padding-top:6px}
.dir-note-b .nb-turn{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:26px 0 0; border:0; padding:0}
.dir-note-b .nb-turn__card{position:relative; display:flex; flex-direction:column; gap:6px; padding:16px 18px 14px;
  background:var(--card); border:1px solid var(--rule); border-radius:3px; text-decoration:none; color:var(--text);
  box-shadow:0 1px 0 rgba(57,81,69,.10), 0 10px 22px -16px rgba(57,81,69,.45)}
.dir-note-b .nb-turn__card::before{content:""; position:absolute; left:-1px; right:-1px; top:-1px; height:5px;
  background:var(--hue); border-radius:3px 3px 0 0; transform-origin:top}
.dir-note-b .nb-turn__card--next{text-align:right; align-items:flex-end}
.dir-note-b .nb-turn__card--none{background:none; border:0; box-shadow:none}
.dir-note-b .nb-turn__card--none::before{content:none}
.dir-note-b .nb-turn__dir{font-family:var(--disp); font-size:var(--t-micro); letter-spacing:var(--ls-caps); text-transform:uppercase; color:var(--meta)}
.dir-note-b .nb-turn__dir span{display:inline-block}
.dir-note-b .nb-turn__t{font-family:var(--disp); font-size:19px; font-weight:700; line-height:1.25; letter-spacing:var(--ls-tight); text-wrap:balance}
.dir-note-b .nb-turn__n{font-size:13px; font-weight:500; color:var(--ink); margin-right:8px; font-variant-numeric:tabular-nums; vertical-align:2px}
.dir-note-b .nb-turn__ch{font-family:var(--disp); font-size:12px; color:var(--ink)}
.dir-note-b .nb-turn__card:hover .nb-turn__t{text-decoration:underline; text-decoration-color:var(--hue); text-decoration-thickness:2px; text-underline-offset:4px}
.dir-note-b .nb-turn__card:focus-visible{outline:2px solid var(--link); outline-offset:3px}
.dir-note-b .nb-all{margin:22px 0 0; font-family:var(--disp); font-size:var(--t-small); font-weight:700; letter-spacing:var(--ls-caps); text-transform:uppercase}
.dir-note-b .nb-all a{color:var(--link); text-decoration:none}
.dir-note-b .nb-all a:hover{text-decoration:underline; text-underline-offset:4px}
.dir-note-b .nb-all span{display:inline-block}

/* ---------- the reading bar: the spectrum, filling across the top ---------- */
.dir-note-b .nb-bar{position:fixed; top:0; left:0; right:0; height:4px; z-index:60; pointer-events:none; background:rgba(57,81,69,.08)}
.dir-note-b .nb-bar span{position:absolute; inset:0;
  background:linear-gradient(90deg,#D50C7A 0 16.66%,#DB6716 16.66% 33.33%,#EEE16B 33.33% 50%,#3A9360 50% 66.66%,#85BDE8 66.66% 83.33%,#124C83 83.33% 100%);
  clip-path:inset(0 calc(100% - var(--read, 0) * 100%) 0 0)}

/* ---------- the end: where you are, on a map of the six chapters ---------- */
.dir-note-b .nb-end__h{font-family:var(--disp); font-weight:700; font-size:30px; line-height:1.15; letter-spacing:var(--ls-tight);
  color:var(--display); margin:0 0 18px; text-wrap:balance}
.dir-note-b .nb-map{border:0; padding:0; margin:0 0 30px}
.dir-note-b .nb-map__chs{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:10px}
.dir-note-b .nb-map__ch{border-top:5px solid var(--h); padding-top:8px}
.dir-note-b .nb-map__ch.is-here{border-top-width:11px; padding-top:2px}
.dir-note-b .nb-map__name{margin:0 0 8px; font-family:var(--disp); font-size:12px; font-weight:700; line-height:1.25; color:var(--meta)}
.dir-note-b .nb-map__name span{color:var(--hi)}
.dir-note-b .nb-map__ch.is-here .nb-map__name{color:var(--display)}
.dir-note-b .nb-map__notes{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:5px}
.dir-note-b .nb-map__notes li{margin:0}
.dir-note-b .nb-map__dot{display:flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%;
  background:var(--card); box-shadow:inset 0 0 0 1.5px var(--h); color:var(--text); text-decoration:none;
  font-family:var(--disp); font-size:11px; font-weight:700; font-variant-numeric:tabular-nums}
.dir-note-b a.nb-map__dot:hover{background:var(--surface)}
.dir-note-b a.nb-map__dot:focus-visible{outline:2px solid var(--link); outline-offset:2px}
.dir-note-b .is-unwritten .nb-map__dot{background:none; color:var(--meta); box-shadow:none; border:1.5px dashed var(--h)}
.dir-note-b .is-me .nb-map__dot{background:var(--hb); color:var(--hon); box-shadow:0 0 0 3px var(--ground), 0 0 0 5px var(--hb)}

/* ---------- motion: only when the reader allows it, and once the script runs ---------- */
@media (prefers-reduced-motion: no-preference){
  html:has(.dir-note-b){scroll-behavior:smooth}
  /* the chapter tab rises out of its rule and the rule draws across, on arrival */
  .dir-note-b .nb-tab__n{transition:transform .55s var(--ease-pop) .15s}
  .dir-note-b .nb-tab__rule{transition:transform .6s var(--ease-out)}
  .dir-note-b .nb-tab{overflow:hidden}
  .dir-note-b.nb-motion:not(.is-arrived) .nb-tab__n{transform:translateY(46px) scaleY(.6)}
  .dir-note-b.nb-motion:not(.is-arrived) .nb-tab__rule{transform:scaleX(0)}
  /* the contents marker slides to the section being read */
  .dir-note-b .nb-toc__mark{transition:transform .35s var(--ease-out), height .35s var(--ease-out), opacity .2s}
  .dir-note-b .nb-toc__t{transition:background-size .15s linear}
  /* a section's number gets circled in pen the first time it is read */
  .dir-note-b .nb-note .nb-circ path{transition:stroke-dashoffset .6s var(--ease-out) .1s}
  /* index cards lift their top edge */
  .dir-note-b .nb-note :is(.card, .mode)::before, .dir-note-b .nb-turn__card::before{transition:transform .22s var(--ease-out)}
  .dir-note-b .nb-note :is(.card, .mode):hover::before, .dir-note-b .nb-turn__card:hover::before{transform:scaleY(1.8)}
  /* the page turn: the arrow leans the way you're going */
  .dir-note-b .nb-turn__dir span, .dir-note-b .nb-all span{transition:transform .3s var(--ease-pop)}
  .dir-note-b .nb-turn__card--prev:hover .nb-turn__dir span{transform:translateX(-5px)}
  .dir-note-b .nb-turn__card--next:hover .nb-turn__dir span, .dir-note-b .nb-all a:hover span{transform:translateX(5px)}
  /* the band settles in, the stamp is inked on a beat later, the spectrum drops */
  .dir-note-b.nb-motion .nb-band > :is(.nb-kicker, .nb-h1, .nb-dek){animation:nb-rise .6s var(--ease-out) both}
  .dir-note-b.nb-motion .nb-band > .nb-h1{animation-delay:.06s}
  .dir-note-b.nb-motion .nb-band > .nb-dek{animation-delay:.12s}
  .dir-note-b.nb-motion .nb-stamp{animation:nb-stamp .5s var(--ease-pop) .45s both}
  .dir-note-b.nb-motion .nb-stamp.is-done{animation:none}
  .dir-note-b.nb-motion .nb-spec li{animation:nb-drop .45s var(--ease-pop) both; animation-delay:calc(.2s + var(--d, 0s))}
  .dir-note-b .nb-spec li:nth-child(2){--d:.05s} .dir-note-b .nb-spec li:nth-child(3){--d:.1s}
  .dir-note-b .nb-spec li:nth-child(4){--d:.15s} .dir-note-b .nb-spec li:nth-child(5){--d:.2s} .dir-note-b .nb-spec li:nth-child(6){--d:.25s}
  /* the contents line fills, the stop you're on breathes */
  .dir-note-b .nb-toc__mark{transition:height .35s var(--ease-out)}
  .dir-note-b .nb-toc a.is-now .nb-toc__n{animation:nb-breathe 2.6s ease-in-out infinite}
  /* a section number is stamped into the margin when it first comes into view */
  .dir-note-b.nb-motion .nb-note :is(.no, .num){opacity:0; transform:scale(1.7) rotate(-14deg);
    transition:opacity .25s var(--ease-out), transform .45s var(--ease-pop)}
  .dir-note-b.nb-motion .nb-note :is(.no, .num).is-in{opacity:1; transform:none}
  /* this note's dot on the map rings twice when the map comes into view */
  .dir-note-b .nb-map.is-in .is-me .nb-map__dot{animation:nb-ring 1.1s var(--ease-out) .2s 2}
  .dir-note-b a.nb-map__dot{transition:transform .18s var(--ease-pop)}
  .dir-note-b a.nb-map__dot:hover{transform:scale(1.14)}
  @keyframes nb-rise{from{opacity:0; transform:translateY(12px)} to{opacity:1; transform:none}}
  @keyframes nb-stamp{0%{opacity:0; transform:scale(1.9) rotate(-22deg)} 70%{opacity:1} 100%{opacity:.92; transform:rotate(-7deg)}}
  @keyframes nb-drop{from{transform:scaleY(0)} to{transform:scaleY(1)}}
  @keyframes nb-breathe{0%,100%{box-shadow:inset 0 0 0 1.5px var(--ink), 0 0 0 3px rgba(57,81,69,.12)}
    50%{box-shadow:inset 0 0 0 1.5px var(--ink), 0 0 0 6px rgba(57,81,69,.05)}}
  @keyframes nb-ring{0%,100%{box-shadow:0 0 0 3px var(--ground), 0 0 0 5px var(--hb)}
    50%{box-shadow:0 0 0 7px var(--ground), 0 0 0 10px rgba(57,81,69,.15)}}
}

/* ---------- narrower screens ---------- */
@media (max-width:1180px){
  .dir-note-b .nb-page{grid-template-columns:260px minmax(0,1fr); gap:0 40px; padding-left:32px; padding-right:32px}
  .dir-note-b .nb-end__act{grid-template-columns:1fr}
  .dir-note-b .nb-band{padding-right:140px}
  .dir-note-b .nb-map__chs{grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px 10px}
}

/* ---------- phone: the rail becomes a short bar at the top ---------- */
@media (prefers-reduced-motion: no-preference){
  @keyframes nb-stamp-s{0%{opacity:0; transform:scale(1.8) rotate(-16deg)} 70%{opacity:1} 100%{opacity:.92; transform:rotate(-4deg)}}
}
@media (max-width:860px){
  body:has(.dir-note-b) nav .wrap, body:has(.dir-note-b) footer .wrap{padding-left:20px; padding-right:20px}
  .dir-note-b{--lead:0px; --body:17px; --step:27px}
  .dir-note-b .nb-page{display:block; padding:0 0 54px}
  .dir-note-b .nb-rail{position:sticky; top:0; z-index:5; max-height:none; gap:0; background:var(--ground);
    border-bottom:1px solid var(--rule); padding:10px 20px 0; margin-bottom:24px}
  .dir-note-b .nb-rail__head{display:flex; align-items:flex-end; gap:12px}
  .dir-note-b .nb-tab{flex:1; min-width:0; grid-template-columns:30px minmax(0,1fr); gap:0 10px}
  .dir-note-b .nb-tab__rule{display:none}
  .dir-note-b .nb-tab__n{width:30px; height:34px; font-size:16px; border-radius:6px 6px 0 0}
  .dir-note-b .nb-tab__name{font-size:16px; padding-bottom:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .dir-note-b .nb-open{display:flex; align-items:center; gap:6px; margin-bottom:6px; font-family:var(--disp); font-size:12px; font-weight:700;
    letter-spacing:var(--ls-caps); text-transform:uppercase; color:var(--text); background:var(--card); border:1px solid var(--rule);
    border-radius:2px; padding:7px 10px; cursor:pointer}
  .dir-note-b .nb-open::after{content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor;
    transform:translateY(-2px) rotate(45deg); transition:transform .2s}
  .dir-note-b .nb-rail.is-open .nb-open::after{transform:translateY(2px) rotate(-135deg)}
  .dir-note-b .nb-open:focus-visible{outline:2px solid var(--link); outline-offset:2px}
  .dir-note-b .nb-rail__nav{display:none; position:absolute; left:0; right:0; top:100%; max-height:70vh; overflow:auto; margin:0;
    padding:4px 20px 16px; background:var(--ground); border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
    box-shadow:0 18px 30px -18px rgba(57,81,69,.45)}
  .dir-note-b .nb-rail.is-open .nb-rail__nav{display:block}
  .dir-note-b .nb-rail__act{display:none}
  .dir-note-b .nb-toc a{padding:7px 4px 7px 6px; font-size:15px}
  .dir-note-b .nb-chlist li{padding:8px 8px 8px 6px; font-size:15px}

  .dir-note-b .nb-read{background:none; padding:0 20px}
  .dir-note-b .nb-rail{margin-bottom:0}
  .dir-note-b .nb-band{margin:0 -20px 30px; border-radius:0; padding:24px 20px 30px}
  .dir-note-b .nb-band::before{content:none}
  .dir-note-b .nb-stamp{position:static; display:inline-flex; flex-direction:row; align-items:baseline; gap:6px; margin:0 0 16px 4px;
    padding:4px 10px; transform:rotate(-4deg)}
  .dir-note-b .nb-stamp b{font-size:20px; margin:0}
  .dir-note-b.nb-motion .nb-stamp{animation-name:nb-stamp-s}
  .dir-note-b .nb-h1{font-size:38px}
  .dir-note-b .nb-dek{font-size:19px}
  .dir-note-b .nb-end__h{font-size:25px}
  .dir-note-b .nb-note :is(section, h2, h3, figure, .tablewrap){scroll-margin-top:72px}
  /* the margin number comes in from the margin and sits before the heading */
  .dir-note-b .nb-note :is(.no, .num){position:relative; left:auto; top:auto; display:inline-flex; width:40px; height:30px;
    margin:0 6px 0 -6px; vertical-align:2px; font-size:13px}
  .dir-note-b .nb-note section > .num:first-child{top:auto; display:flex; margin-top:var(--step); margin-bottom:-24px}
  .dir-note-b .nb-note h2{font-size:24px}
  .dir-note-b .nb-note pre{font-size:12.5px; padding:12px 14px; margin-left:-6px; margin-right:-6px}
  .dir-note-b .nb-note th, .dir-note-b .nb-note td{padding:8px 12px}
  .dir-note-b .nb-note table{font-size:14.5px}
  .dir-note-b .nb-note th, .dir-note-b .nb-note td{padding:8px 10px}
  /* prompts and prose blocks wrap on a phone; highlighted code keeps its columns and scrolls */
  .dir-note-b .nb-note pre:not(:has(.c, .cm, .k, .s, .h)) code{white-space:pre-wrap; overflow-wrap:anywhere}
  .dir-note-b .nb-note .flow:not(:has(.arrow)){flex-direction:column; gap:20px}
  .dir-note-b .nb-note .flow:not(:has(.arrow)) .step{flex:none}
  .dir-note-b .nb-note .flow:not(:has(.arrow)) .step:not(:last-child)::after{content:"\2193"; right:auto; left:50%; top:auto; bottom:-21px; transform:translateX(-50%)}
  .dir-note-b .nb-end{padding-left:0}
  .dir-note-b .nb-turn{grid-template-columns:1fr}
  .dir-note-b .nb-note .cards:has(> :nth-child(4):last-child), .dir-note-b .nb-note .cards:has(> :nth-child(2):last-child){grid-template-columns:1fr}
  .dir-note-b .nb-turn__card--next{text-align:left; align-items:flex-start}
  .dir-note-b .nb-turn__card--none{display:none}
}
