/*
  v18-shelf.css · the two "shelf" indexes of site V18: Essays (v18-essays.html) and Reports (v18-reports.html).

  What it is: the few rules these two pages need on top of the approved blog index (v18-std.css, classes
  st-top h-blog, st-list, st-card). Both pages are the blog index in form: light grey head with the title
  on the left and a ruled index on the right, the newest item set large, the rest as equal cards.
  Only classes that start with sh- live here, plus two scoped refinements of the approved card row.
  Where it sits: linked after v18.css and v18-std.css by build_v18_essays.py and build_v18_reports.py.
  Why a ruled list of facts instead of the blog's category filter: seven essays and four reports have no
  categories worth filtering (every essay carries the tag Tokenization), so the right half of the head
  states what the shelf holds, from the live page, in the same ruled form as the blog's index.
  Check: http://localhost:8250/v18-essays.html and v18-reports.html at 1440 and in a 375 frame.
  Undo: delete this file and the two links the builders add.
*/

/* The lede may use the head's width: Gene 20.11, "never narrow the copy when the width is there". */
.h-blog.sh-top .st-lede{max-width:44ch}

/* Right half of the head: what the shelf holds, as the blog's ruled index (navy top rule, thin rows). */
.sh-facts{margin:0;align-self:end}
.sh-facts dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(20px,2.6vw,40px);border-top:2px solid var(--navy)}
.sh-facts dl div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:13px 2px;border-bottom:1px solid rgba(10,43,109,.2)}
.sh-facts dt{font-size:clamp(17px,1.35vw,20px);font-weight:600;color:var(--navy)}
.sh-facts dd{margin:0;font:500 13px/1.3 var(--mono);color:#566683;white-space:nowrap}
.sh-facts .by{margin:22px 0 0;font-size:18px;line-height:1.5;color:#2c3a58}
.sh-facts .by b{color:var(--navy);font-weight:600}
.sh-facts .ln{display:flex;flex-wrap:wrap;gap:6px 22px;margin:10px 0 0}
.sh-facts .ln a{color:var(--navy);font-size:17px;text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(10,43,109,.35);transition:text-decoration-color .2s}
.sh-facts .ln a:after{content:"\00a0→";color:var(--blue)}
@media (hover:hover){.sh-facts .ln a:hover{text-decoration-color:currentColor}}
.sh-facts a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* The newest item stands alone above the rest, so the rest can become one swipe rail on a phone. */
.sh-rest{margin-top:clamp(36px,4vw,60px)}

/* Equal cards share their rows (subgrid): in one row every cover, label, title, text and footnote line
   starts at the same height, whatever the length of its neighbours' titles (Gene's rule for rows of
   cards: titles at one height, texts at one height, no gaps). Five rows per card: cover, label, title,
   text, footnote. Above the phone width only: on a phone v18-swipe.css turns the row into a rail of
   single cards, and a footnote margin meant for the gap between rows would leave a hole in each card. */
@supports (grid-template-rows:subgrid){@media (min-width:761px){
  /* The list's own row gap would also fall between a card's inner rows, so the gap is the small inner
     one and the space between two rows of cards comes from the margin under the footnote line. */
  .sh-rest{row-gap:10px}
  .sh-rest .st-card{display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:10px}
  .sh-rest .st-card .tx{display:contents}
  .sh-rest .st-card .cv{margin-bottom:6px}
  .sh-rest .st-card i{align-self:start;margin-bottom:clamp(26px,3vw,50px)}
}}

/* The page's one line about sources, under the list. */
.sh-note{margin:clamp(36px,4vw,56px) 0 0;padding-top:18px;border-top:1px solid #dfe4ee;font:500 13.5px/1.5 var(--mono);color:#566683;max-width:none}

@media (max-width:1000px){.sh-facts{align-self:start}}
@media (max-width:640px){.sh-facts dl{grid-template-columns:minmax(0,1fr)}}

/* ---- Learn final pass (21.11.2026) ---- */
/* Summaries run in full: Gene's rule is never to cut copy when there is width (art director, founder
   reader: "leave yo…", "tokenizati…"). Scoped to the two shelves; the approved blog keeps its clamp. */
.st-card em,.st-list:not(.flt) .st-card.big em{display:block;-webkit-line-clamp:unset;overflow:visible}
/* "Start here" and "What it costs": one item to read first, with its read time. */
.sh-start{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:22px 0 0;font-size:18px}
.sh-start small{font:500 12px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#566683}
.sh-start a{color:var(--navy);font-weight:600;text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(10,43,109,.35)}
.sh-start a:after{content:"\00a0→";color:var(--blue)}
.sh-start span{font:500 13px/1 var(--mono);color:#566683}
.sh-rel{margin:clamp(32px,3.6vw,52px) 0 0;font-size:18px;line-height:1.55;color:#2c3a58;max-width:none}
.sh-rel a{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
@media (pointer:coarse){.sh-start a,.sh-rel a,.sh-facts .ln a{display:inline-block;padding-block:10px}}

/* 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 facts 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){.sh-start a,.sh-rel a,.sh-facts .ln a{min-height:44px}}
