/* One shell on every template (WS-52a, SPEC-SHELL §1). Gallery pages load this after gallery.css: the Reading
   Room header and footer, exactly as reading-room.css draws them on home, with its tokens scoped to the shell and
   Gallery's band, sticky bar and footer grid reset. The header and footer rules below are reading-room.css's own
   lines (test/shell.test.mjs holds them equal). */
@font-face{font-family:'Public Sans';src:url(/fonts/public-sans-latin-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Public Sans';src:url(/fonts/public-sans-latin-600-normal.woff2) format('woff2');font-weight:600;font-style:normal;font-display:swap}
/* No navy band on any page (SPEC-SHELL §1, §4): Gallery's grounds, band and accents take the Reading Room
   palette, so its heroes sit on --bg like home and its filled button and saved state match home's. */
html.gx{--button:#2f44b5;--button-hover:#25379a;--blue:#13234f;--on-blue:#fff;--page:#fbfbf9;--band:#fbfbf9;--sunk:#f1f1ec;--foot:#fbfbf9;--field:#fff;--ink:#15171c;--soft:#5a606b;--line:#e2e2dc;--accent:#13234f;--on-accent:#fff;--band-ink:#15171c;--band-soft:#5a606b;--band-accent:#13234f;--on-band-accent:#fff;--band-line:#e2e2dc;--band-field:#fff;--band-saved:#2c6e5f;--proof:#b8902f}
@media (prefers-color-scheme:dark){html.gx{--button:#a8bbf0;--button-hover:#c4d1f5;--blue:#dfe4f5;--on-blue:#111215;--page:#111215;--band:#111215;--sunk:#1a1b1f;--foot:#111215;--field:#1a1b1f;--ink:#ecebe6;--soft:#a3a6ad;--line:#2a2c31;--accent:#dfe4f5;--on-accent:#111215;--band-ink:#ecebe6;--band-soft:#a3a6ad;--band-accent:#dfe4f5;--on-band-accent:#111215;--band-line:#2a2c31;--band-field:#1a1b1f;--band-saved:#7cc3ae}}
.hd,.ft,.skip{--bg:#fbfbf9;--ink:#15171c;--mut:#5a606b;--rule:#e2e2dc;--link:#13234f;color:var(--ink);font:400 16px/1.55 'Public Sans',system-ui,sans-serif}
@media (prefers-color-scheme:dark){.hd,.ft,.skip{--bg:#111215;--ink:#ecebe6;--mut:#a3a6ad;--rule:#2a2c31;--link:#c9d2f2}}
.hd a,.ft a{color:inherit}
.hd .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hd :focus-visible,.ft :focus-visible{outline:2px solid var(--link);outline-offset:2px;border-radius:2px}
/* Gallery's band, sticky bar and footer grid, undone. */
/* A saved book reads "On your list" in --saved green everywhere, as on home (SPEC-SHELL §2). */
.gx .btn.save-done,.gx .btn.save-done:visited{background:var(--band-saved);border-color:var(--band-saved);color:var(--on-band-accent)}
@media (hover:hover){.gx .band .btn.save-done:hover{background:var(--band-saved);border-color:var(--band-saved);color:var(--on-band-accent)}}
/* Why it's here (SPEC-SHELL §3). */
.why-here h2{margin:32px 0 8px}
.why-l{margin:0;padding-left:1.2em}
.why-l li{margin:4px 0}
/* Page heads sit on --bg with a hairline, like home (Juno, #275): About's sunk band and the first site's gradient. */
.gx .sunk-band{background:var(--page);border-bottom:1px solid var(--line)}
.page-head{background:none}
/* Subject links are a text row, not grey tiles (Juno, #275: the 404). */
.gx .subj a{background:none;border-bottom:1px solid var(--line);border-radius:0;padding:0 2px}
@media (hover:hover){.gx .subj a:hover{background:none;color:var(--ink);text-decoration:underline;text-underline-offset:3px}}
/* Other genres on a genre page (R3-2, Juno): Discover's genre tiles without covers. 56 px, two columns with an odd last
   tile across both, four from 900; the label underlines on hover and focus, as Discover's does. */
.gx .og-l{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.gx .og-l li{display:flex;min-width:0}
.gx .og-t{flex:1;display:flex;align-items:center;min-width:0;height:56px;padding:6px 12px;border-radius:10px;background:var(--sunk);color:var(--ink);font:600 15px/20px 'Public Sans',system-ui,sans-serif;text-decoration:none;overflow-wrap:break-word}
.gx .og-t:focus-visible{text-decoration:underline;text-underline-offset:3px}
@media (hover:hover){.gx .og-t:hover{text-decoration:underline;text-underline-offset:3px}}
@media (max-width:899.98px){.gx .og-l li:last-child:nth-child(odd){grid-column:1/-1}}
@media (min-width:900px){.gx .og-l{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (prefers-color-scheme:dark){html.gx .og-t{box-shadow:inset 0 0 0 1px var(--line)}}
.gx .band .btn.ghost{border-color:var(--ink);color:var(--ink)}
.hd{position:static;z-index:auto}
.hd-nav{gap:0;height:auto;list-style:none}
.ft{background:var(--bg)}
.ft a{min-width:0;min-height:0;align-items:normal;font-size:inherit}
.ft a::after{content:none}
.ft-in .logo{min-height:44px;align-items:center}

.skip{position:absolute;left:12px;top:-60px;z-index:10;background:var(--bg);padding:10px 14px;border:1.5px solid var(--ink);border-radius:var(--r-control);font-weight:600}
.skip:focus{top:10px}

/* Header */
/* shared:site-header start (shared/discover/site-header.css; edit it there) */
/* stoareads.com's header, base rules (SPEC-ONE-HEADER §1): the header site-header.mjs draws. menu.css has its
   dropdowns, phone menu, Your clubs and search field. Spliced into reading-room.css and shell.css; the app copies it.
   Reads --bg, --ink, --rule, --maxw and --gut (.com's values: reports/sprint-5/ONE-HEADER-INTERFACE.md). */
.hd{border-bottom:1px solid var(--rule);background:var(--bg)}
.hd-in{max-width:var(--maxw);margin:0 auto;padding:0 var(--gut);height:64px;display:flex;align-items:center;gap:28px}
.logo{display:inline-flex;align-items:center;text-decoration:none;padding:11px 0}
.logo .wm{display:block;flex:none}
.hd-nav a{display:inline-block;font-weight:600;font-size:15px;text-decoration:none;padding:21px 0 19px;border-bottom:2px solid transparent}
.hd-nav a[aria-current]{border-color:var(--ink)}
.hd-nav a+a{margin-left:28px}
.hd-q{flex:1;min-width:0;max-width:440px;margin:0 0 0 auto}/* the box is the shared search field (menu.css .sf); min-width 0 lets it give way to the links */
.hd-a{font-weight:600;font-size:15px;text-decoration:none;padding:12px 0;white-space:nowrap;background:none;border:0;color:inherit;cursor:pointer;font-family:inherit;line-height:inherit;min-height:44px;display:inline-flex;align-items:center}
.hd-join{display:inline-flex;align-items:center;min-height:44px;font-weight:600;font-size:15px;text-decoration:none;border:1.5px solid var(--ink);border-radius:var(--r-control,8px);padding:0 14px;white-space:nowrap}
.hd-s{display:none}
[data-signed-in] [data-signed-out-only],:root:not([data-signed-in]) [data-signed-in-only],:root:not([data-one]) [data-one-only]{display:none !important}
@media (min-width:900px){
  .hd-noq .hd-q{display:none}
  .hd-noq .hd-nav{margin-right:auto}
}
@media (max-width:899px){
  .hd-nav,.hd .hd-q,.hd-join{display:none}
  .hd-s{display:flex;flex:none;width:44px;height:44px;align-items:center;justify-content:center}
  .hd-in{gap:0}
  .hd-a{padding:12px 6px}
}
/* Narrower than any phone we gate on (Vera B's 260 rig): the header needs about 293 px, so its Sign in (or My Shelf)
   link goes; the menu has the same link, and search keeps its icon. Nothing runs off the edge; logo and gutter keep
   their sizes (Juno, Nov 14). */
@media (max-width:299.98px){
  .hd-in>.hd-a{display:none}
}
/* Discover on the phone's top line, not only in the menu (Seph, Nov 29): beside the logo under 900, where the nav
   goes. Under 390 the account link (Sign in, My Shelf) gives it the room and stays in the menu, as under 300 before. */
.hd-dz{display:none}
@media (max-width:899px){
  .hd-dz{display:inline-flex;align-items:center;min-height:44px;margin-left:auto;padding:12px 0;font-weight:600;font-size:15px;line-height:20px;text-decoration:none;white-space:nowrap;color:inherit}
  .hd-dz[aria-current]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
}
/* The phone top line, balanced (Seph, Nov 30): the logo on the left; Discover, the account link, search and the menu
   one group on the right, text links first, then the two icons. The gaps between marks read about 18 to 24 px: 18 px
   between the words, the search glyph's 12 px of box after the account link, and the two 44 px icon boxes overlapping
   by 6 px so their glyphs sit about 24 px apart. The menu box hangs 14 px into the right gutter so its glyph ends
   about 20 px from the edge, mirroring the logo (Juno on #739). Each tap target stays 44 px tall; the words keep their full width. */
@media (max-width:899px){
  .hd .hd-in>.hd-a{margin-left:18px;padding:12px 0}
  .hd .hd-in>.hd-s{margin-left:2px}
  .hd .hd-in>.hd-m{margin-left:-6px;margin-right:-14px}
}
@media (max-width:389.98px){
  .hd-in>.hd-a{display:none}
}
/* Your account is back (SPEC-DELETE-ACCOUNT, grace period): one calm line under the header, once, after a sign-in
   that cancelled a deletion. site.js draws it from /api/me's restored and then tells the app it was shown. */
.hd-back{margin:0;padding:12px max(var(--gut),calc((100% - var(--maxw)) / 2 + var(--gut)));border-bottom:1px solid var(--rule);font-size:15px;line-height:22px;color:var(--ink)}
/* shared:site-header end */

/* shared:site-footer start (shared/discover/site-footer.css; edit it there) */
.ft{border-top:1px solid var(--rule);padding:32px 0 48px;margin-top:24px}
.ft-in{max-width:var(--maxw);margin:0 auto;padding:0 var(--gut);display:flex;gap:32px;align-items:center;flex-wrap:wrap}
.ft-tag{margin:0;color:var(--mut);font-size:15px;flex:1}
.ft nav{display:flex;flex-wrap:wrap;gap:0 24px;font-size:15px}
.ft nav a{display:inline-block;min-width:44px;color:var(--mut);text-decoration:none;padding:12px 6px;margin-inline:-6px}
@media (hover:hover){.ft nav a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}}
/* A short page still ends at the fold: its main is a screen less the 65 px header and the footer's 24 px margin, so the footer starts at the fold (Juno). */
body > .hd ~ main{min-height:calc(100svh - 89px)}
/* shared:site-footer end */
/* shared:stoa-grade start: shared/discover/stoa-grade.css (scripts/shared.mjs copies it; edit there) */
/* The Stoa grade (SPEC-STOA-GRADE): mark and words on one 18 px line. Tiers 1-4 in ink, the top tier's mark in gold
   (3:1 against the page as a non-text mark, both schemes). Words read the host's UI font. The mark is the ::before, a
   37x18 mask per tier from stoa-grade.mjs maskUrl() (test/r3-84-stoa-grade.test.mjs keeps them equal), so a page
   carries no SVG per book. */
.stg{--stg-gold:#a8842c;display:inline-flex;align-items:flex-start;gap:8px;min-height:18px;color:var(--ink);font:400 13px/18px var(--font-ui,'Public Sans',system-ui,sans-serif);vertical-align:top}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .stg{--stg-gold:#d2ae55}}
:root[data-theme="dark"] .stg{--stg-gold:#d2ae55}
.stg::before{content:"";flex:none;display:block;width:37px;height:18px;background:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:37px 18px;mask-size:37px 18px}
.stg[data-tier="5"]::before{background:var(--stg-gold)}
@media (forced-colors:active){.stg::before,.stg[data-tier="5"]::before{background:CanvasText;forced-color-adjust:none}}
.stg[data-tier="1"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='18' viewBox='0 0 37 18'%3E%3Cpath d='M1 5H36' stroke='%23000' stroke-opacity='.25'/%3E%3Crect x='2' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='9' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='16' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='23' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='30' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect y='16' width='37' height='1.5' fill='%23000'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='18' viewBox='0 0 37 18'%3E%3Cpath d='M1 5H36' stroke='%23000' stroke-opacity='.25'/%3E%3Crect x='2' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='9' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='16' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='23' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='30' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect y='16' width='37' height='1.5' fill='%23000'/%3E%3C/svg%3E")}
.stg[data-tier="2"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='18' viewBox='0 0 37 18'%3E%3Cpath d='M1 5H36' stroke='%23000' stroke-opacity='.25'/%3E%3Crect x='2' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='9' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='16' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='23' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='30' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect y='16' width='37' height='1.5' fill='%23000'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='18' viewBox='0 0 37 18'%3E%3Cpath d='M1 5H36' stroke='%23000' stroke-opacity='.25'/%3E%3Crect x='2' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='9' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='16' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='23' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='30' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect y='16' width='37' height='1.5' fill='%23000'/%3E%3C/svg%3E")}
.stg[data-tier="3"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='18' viewBox='0 0 37 18'%3E%3Cpath d='M1 5H36' stroke='%23000' stroke-opacity='.25'/%3E%3Crect x='2' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='9' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='16' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='23' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='30' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect y='16' width='37' height='1.5' fill='%23000'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='18' viewBox='0 0 37 18'%3E%3Cpath d='M1 5H36' stroke='%23000' stroke-opacity='.25'/%3E%3Crect x='2' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='9' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='16' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='23' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect x='30' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect y='16' width='37' height='1.5' fill='%23000'/%3E%3C/svg%3E")}
.stg[data-tier="4"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='18' viewBox='0 0 37 18'%3E%3Cpath d='M1 5H36' stroke='%23000' stroke-opacity='.25'/%3E%3Crect x='2' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='9' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='16' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='23' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='30' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect y='16' width='37' height='1.5' fill='%23000'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='18' viewBox='0 0 37 18'%3E%3Cpath d='M1 5H36' stroke='%23000' stroke-opacity='.25'/%3E%3Crect x='2' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='9' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='16' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='23' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='30' y='6.5' width='4' height='9' rx='.5' fill='%23000' fill-opacity='.18'/%3E%3Crect y='16' width='37' height='1.5' fill='%23000'/%3E%3C/svg%3E")}
.stg[data-tier="5"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='18' viewBox='0 0 37 18'%3E%3Cpath d='M1 5 18.5 .5 36 5Z' fill='%23000'/%3E%3Crect x='2' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='9' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='16' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='23' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='30' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect y='16' width='37' height='1.5' fill='%23000'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='18' viewBox='0 0 37 18'%3E%3Cpath d='M1 5 18.5 .5 36 5Z' fill='%23000'/%3E%3Crect x='2' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='9' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='16' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='23' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect x='30' y='6.5' width='4' height='9' rx='.5' fill='%23000'/%3E%3Crect y='16' width='37' height='1.5' fill='%23000'/%3E%3C/svg%3E")}
/* On a narrow tile the words wrap beside the mark, never under the next tile. */
.stg-w{min-width:0;text-wrap:pretty}
/* Its own line: under a row's byline, or first in a tile's proof slot (above the actions). 8 + 18 = 26 px. */
.stg-l{display:block;margin:8px 0 0;line-height:18px}
.bk-g{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}
.stg-how{display:inline-flex;align-items:center;min-height:24px;color:var(--link,var(--accent,currentColor));font-size:13px;line-height:18px;text-decoration:underline;text-underline-offset:3px}
/* shared:stoa-grade end */

/* Book page (Juno #278): the phone cover matches home's lead card, and the details follow the actions at the 40 px rhythm. */
@media (max-width:899px){.gx .bk{grid-template-columns:120px minmax(0,1fr);padding-bottom:0}.gx .bk-body{margin-top:28px}}
.gx .subj-l a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}

/* List-row Save (author, prize, collection, subject rows): the Reading Room's ink, and once saved the shared green, filled (Vera C15). */
.gx .save{color:var(--ink)}.gx .save.save-done,.gx .save.save-done:visited{color:var(--band-saved)}.gx .save.save-done svg{fill:currentColor}

/* A subject's lead book is home's lead card (Juno #278): on --bg, title linked, its proof line, no panel. */
.gx .spot{background:none;padding:0;border-radius:0}.gx .spot .spot-t a{color:inherit;text-decoration:none}@media (hover:hover){.gx .spot .spot-t a:hover{text-decoration:underline;text-underline-offset:4px}}
@media (min-width:900px){.gx .spot{padding:0}}
/* Desktop book page (Juno #278): the details start under the actions, in the text column, not under the cover's
   bottom edge. The cover keeps its column but no longer sets the hero's height. */
@media (min-width:900px){.gx .band:has(> .w > .bk),.gx .band:has(> .bk){overflow:visible}.gx .bk{position:relative;padding-bottom:0}.gx .bk-c{position:absolute;top:0;left:0;width:260px}.gx .bk-body{margin-top:28px}.gx .bk-body>div{margin-left:calc(260px + var(--s6));max-width:640px}}

/* The cover keeps company down the page (Juno, polish PL5): from 900 px the hero and the details share one grid on the
   article, the cover in its own column across both, sticky 88 px from the top, so it stays beside the description and
   the actions instead of leaving an empty column. The band and the hero box step aside (display: contents) and the
   article takes their spacing; the columns are .w's, so nothing moves sideways. Below 900 nothing changes. */
@media (min-width:900px){
  .gx article:has(> .band > .bk){display:grid;grid-template-columns:max(var(--gut),calc((100% - var(--maxw)) / 2 + var(--gut))) 260px var(--s6) minmax(0,640px) 1fr;align-items:start;padding-top:48px}
  .gx article > .band:has(> .bk),.gx article > .band > .bk{display:contents}
  .gx article:has(> .band > .bk) > *{grid-column:1 / -1;width:100%}
  .gx article > .band > .bk > *{grid-column:4}
  .gx article > .band > .bk > .crumbs{grid-row:1}
  .gx article > .band > .bk > .bk-h{grid-row:2}
  .gx article > .band > .bk > .bk-r{grid-row:3}
  .gx article > .bk-body{grid-row:4}
  .gx article > .band > .bk > .bk-c{grid-column:2;grid-row:1 / 5;position:static;align-self:stretch}
  .gx article > .band > .bk > .bk-c > *{position:sticky;top:88px}
}

/* One rule before a list (Juno, polish PL7): the rows' own top border. The count bar on a genre page and the band on
   an author page draw none when rows follow. */
.gx .lst-bar:has(~ .rows),.gx .sunk-band:has(> .person):has(+ .sec .rows){border-bottom:0}

/* A genre page's list starts one section gap under the hero, 64 px, as Home's sections do (Juno, polish PL8). */
@media (min-width:900px){.gx .band:has(+ .sec .part-h) > .opener{padding-bottom:0}.gx .band:has(> .opener) + .sec:has(.part-h){margin-top:64px}}

/* One book tile (SPEC-SHELL §7, WS-54), as on home: five slots on a subgrid so covers, titles and actions line up
   across a row whatever wraps. Rails scroll at 140/168 px; grids are 2 columns on a phone and 4 from 900 px. */
.gx .rail,.gx .grid{display:grid;grid-template-rows:repeat(5,auto);list-style:none;margin:0;padding:0}
.gx .rail{grid-auto-flow:column;grid-auto-columns:140px;grid-template-columns:none;gap:0 16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-right:calc(var(--gut) * -1);padding:0 var(--gut) 0 0}
.gx .rail::-webkit-scrollbar{display:none}
/* A rail bleeds to the screen's edge on a phone; from 900 every rail, short or long, stops at the column's edge
   (Juno, PR 396), and a short one fits (Vera, PR 284). */
@media (min-width:900px){.gx .rail{margin-right:0;padding-right:0}}
.gx .grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto;gap:32px 16px}
@media (min-width:900px){.gx .rail{--rail-n:4;grid-auto-columns:calc((100% - var(--rail-n) * 24px) / (var(--rail-n) + 0.4));gap:0 24px}.gx .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 24px}}
/* n tiles and 0.4 of the next from 900 (Juno, PR 396). */
@media (min-width:1100px){.gx .rail{--rail-n:5}}
@media (min-width:1240px){.gx .rail{--rail-n:6}}
.gx .card{display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:0;min-width:0;scroll-snap-align:start}
.gx .card .cv-a{display:block}.gx .card .cv-a .cov{width:100%;height:auto;aspect-ratio:2/3}
.gx .card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:44px;margin:12px 0 0;font:600 16px/22px var(--sans);letter-spacing:0;color:var(--ink)}
.gx .card h3.t4{-webkit-line-clamp:4}.gx .card h3.t5{-webkit-line-clamp:5}
.gx .card h3 a{color:inherit;text-decoration:none}@media (hover:hover){.gx .card h3 a:hover{text-decoration:underline;text-underline-offset:3px}}
.gx .card .by{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:4px 0 0;color:var(--soft);font-size:15px;line-height:20px}
.gx .card .pf{min-width:0}
.gx .card .tr{display:flex;gap:8px;align-items:baseline;margin:8px 0 0;font-size:14px;line-height:20px;color:var(--ink)}
.gx .card .tr::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--proof);transform:translateY(-1px)}
.gx .card .tr span{text-wrap:pretty;min-width:0}
/* A like list's reason (SPEC-LIST-PAGES §2.4): plain words in the meta voice, no dot (the dot is provenance). */
.gx .card .rs{margin:8px 0 0;color:var(--soft);font-size:14px;line-height:20px;text-wrap:pretty}
/* R3-78 (SPEC-CARD-ACTIONS): the same stacked, worded pair as the Reading Room tiles (reading-room.css). */
.gx .card .sv-ri{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;min-height:44px;align-self:end;margin:8px 0 0}
.gx .card :is(.sv-s,.ri){position:relative;justify-content:flex-start;gap:8px;width:100%;height:44px;min-height:44px;padding:0;margin:0;font:600 14px/20px var(--sans);white-space:nowrap}
.gx .card :is(.sv-s,.ri)::after{content:"";position:absolute;inset:0}/* S2: 44 px themselves */
.gx .card .ri-wrap{flex-direction:column;align-items:stretch;gap:0}
.gx .sv-ri > .ri-wrap:empty{display:none}/* VB-54: as rails.css */
.rail[data-ri-hold]{min-height:var(--ri-hold)}/* read-it.js holdRail: a folding prompt keeps its rail's height */
.gx .card .ri-wrap > :is(.ri-done,.ri-rate){min-height:44px;padding:0;margin:0;font-size:14px}
/* A rated card (Seph 23:13Z Nov 23): one line on the first action row, the check and "Loved it" in the card's ink, never wrapping. */
.card .ri-wrap > button.ri-card{color:var(--ink);white-space:nowrap}
@supports not (grid-template-rows:subgrid){.gx .card{display:flex;flex-direction:column}.gx .card .sv-ri{margin-top:auto;padding-top:8px}}
.gx .sv-s,.gx .ri{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 4px;margin-left:-4px;border:0;background:none;color:var(--ink);font:600 15px var(--sans);text-decoration:none;cursor:pointer}
@media (hover:hover){.gx .sv-s:hover span,.gx .ri:hover span{text-decoration:underline;text-underline-offset:3px}}
.gx .sv-s svg{flex:none;width:18px;height:18px}
.gx .ri-check{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* R3-89: the filled "Read" dot keeps its check in the page colour (this rule came after .ri-check.filled and drew it in the dot's own green). */
.gx .ri-check.filled{stroke:var(--band)}
.gx .save-done.sv-s,.gx .save-done.sv-s:visited{color:var(--band-saved)}.gx .save-done.sv-s svg path{fill:currentColor}

/* One book row (SPEC-SHELL §7.3, Juno #284), as home's Highly ranked: cover, text, then Save and I've read it in
   their own column from 900 px and on one line under the text below it. The proof line is 14/20, one line. */
.gx .sv-ri{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;position:relative;z-index:1}
.gx .ri[hidden],.gx .sv-s[hidden]{display:none}
.gx .tr{display:flex;gap:8px;align-items:baseline;margin:4px 0 0;font-size:14px;line-height:20px;color:var(--ink)}
.gx .tr::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--proof);transform:translateY(-1px)}
.gx .row .tr span{min-width:0;text-wrap:pretty}
.gx .row{grid-template-columns:56px minmax(0,1fr) 168px;column-gap:16px;row-gap:0}
.gx .row>.sv-ri{flex-direction:column;align-items:flex-start;gap:0;margin-top:-10px}
.gx .row .ri span,.gx .row .sv-s span{white-space:nowrap}
@media (max-width:899px){
  .gx .row{grid-template-columns:56px minmax(0,1fr)}
  /* UX-08 (Juno): the pair on one line under the row, across its full width from the cover's left edge, 12 px below. */
  .gx .row>.sv-ri{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:0 16px;margin-top:12px}
}
.gx .row-kick{font-size:14px;font-weight:400;color:var(--soft)}

/* The subject lead (Juno #284) is home's Today's book: on a phone the cover sits beside the title and byline, and
   the why and proof run full width under them. */
.gx .spot .proof{display:flex;gap:8px;align-items:baseline;margin:12px 0 0;font-size:15px;line-height:22px;color:var(--ink)}
.gx .spot .proof::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--proof);transform:translateY(-1px)}
@media (max-width:899px){
  .gx .spot{grid-template-columns:120px minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:0 20px;align-items:start}
  .gx .spot>div{display:contents}
  .gx .spot>.cov{order:0;grid-column:1;grid-row:1/4;width:120px;height:auto;aspect-ratio:2/3}
  .gx .spot .spot-t,.gx .spot .by{grid-column:2}
  .gx .spot .spot-t{grid-row:1}
  .gx .spot .by{grid-row:2;margin-top:6px}
  .gx .spot .stg-l{grid-column:2;grid-row:3;margin-top:10px}/* One card (Juno, #730): the lead's grade, under its byline */
  .gx .spot .why,.gx .spot .proof{grid-column:1/-1}
  .gx .spot .why{margin-top:20px}
}
@media (min-width:900px){.gx .spot .by{margin:6px 0 16px}.gx .spot .by + .stg-l{margin:-6px 0 16px}}
/* Juno #284: the subject lead ends, as Today's book does, with Save and I've read it on one line. */
.gx .spot .sv-ri{margin-top:12px;flex-wrap:nowrap}
@media (max-width:899px){.gx .spot .sv-ri{grid-column:1/-1}}
/* Juno #284 nits: the 40 px phone rhythm from a page's opener to its first section, and opener-strip fallbacks
   tone-only like every other overlapped or small cover, so no title is ever clipped. */
@media (max-width:899px){.gx .band>.opener{padding-bottom:0}.gx .band+.sec{margin-top:40px}}
.gx .strip .cv-none :is(b,i,.cv-ini){visibility:hidden}
/* Vera #286 (Low): the book title's clamp box keeps its descenders; the padding is taken back below it. */
.gx .bk h1{padding-bottom:.12em;margin-bottom:-.12em}
/* Juno #289: a section's "See all" never wraps, and sits on the heading's first line when the heading wraps. */
.gx .sec-h{align-items:baseline}.gx .sec-h .lnk{flex:none;white-space:nowrap}

/* Prize rows (Juno N1-4): the year's status under the byline, 15/20 muted, no dot, no badge. */
.gx .row .row-meta.st{margin:2px 0 0;font-size:15px;line-height:20px;font-weight:400;color:var(--mut)}
/* The shell's own gutter (Juno, Nt4-J2): the header and footer no longer take --gut and --maxw from the page's base
   stylesheet, so a page on core.css (/kept, /start, /changelog) keeps the logo and footer off the screen edge, and
   its content starts on the same line as the logo at every width. */
.hd,.ft{--maxw:1280px;--gut:20px}
@media (min-width:900px){.hd,.ft{--gut:40px}}
main .wrap{width:min(1200px,100% - 40px)}
@media (min-width:900px){main .wrap{width:min(1200px,100% - 80px)}}

/* R3-8 (Juno, P1): one section head size on genre, book and prize pages: 24px under 1000, 30px from 1000. */
.gx main h2.part-h,.gx main .sec-h h2,.gx main h2.sh,.gx main .srcs h2,.gx main .why-here h2,.gx main .book-ev h2{font-size:24px;line-height:1.2}
@media (min-width:1000px){.gx main h2.part-h,.gx main .sec-h h2,.gx main h2.sh,.gx main .srcs h2,.gx main .why-here h2,.gx main .book-ev h2{font-size:30px}}
/* R3-24 (Juno, P1): one page title size on genre, prize, author, collection, book and like pages, from --h-page. */
.gx main .opener h1,.gx main .bk-h h1,.gx main .lp h1{font-size:var(--h-page);line-height:1.1;letter-spacing:-.015em}

/* One status control (F3): the state and a chevron that opens its sheet (status.js); a Read book's check is a line. */
.gx .st-v{flex:none;width:12px;height:12px;margin-left:-2px}.gx .st-on .st-v path{fill:none!important;stroke:currentColor;stroke-width:1.6}
.gx .st-read svg:not(.st-v) path{fill:none!important;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* "Not read yet" (UX audit 4b, unread.js; Juno on #731): one checkbox and label everywhere, no border, no underline; a tick
   when on. A hidden book leaves no gap. On a phone the toggle takes the line under the list bar. */
.unr-x{display:none!important}
.gx .unr{display:inline-flex;flex:none;align-items:center;gap:10px;min-height:44px;padding:0;border:0;background:none;color:var(--ink);font:400 15px/1 var(--sans);white-space:nowrap;cursor:pointer}
.gx .unr-b{flex:none;width:18px;height:18px;fill:none;stroke:currentColor}.gx .unr-b rect{stroke-width:1.5}.gx .unr-b path{stroke-width:2;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
.gx .unr[aria-pressed=true] .unr-b path{visibility:visible}
.gx .unr:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.gx .unr-none{margin:8px 0 24px;color:var(--faint)}
.gx .unr-n{color:var(--faint);font-weight:400}.gx .unr-n:empty{display:none}
@media (max-width:899px){.gx .lst-bar:has(.unr){flex-wrap:wrap}.gx .lst-bar:has(.unr)::after{content:"";order:2;flex-basis:100%;margin-top:-12px}.gx .lst-bar:has(.unr) .count{flex:1 1 0;min-width:0}.gx .lst-bar .unr{order:3}}
/* Below 400 px the count, Refine and the view switch don't fit on one line beside each other once the count reads
   "5 of 12 books" (Vera on #731): the count takes the first line, Refine and the view switch the second, the toggle the third. */
@media (max-width:399px){.gx .lst-bar:has(.unr) .count{flex:1 0 100%}.gx .lst-bar:has(.unr) .rf-open{margin-left:auto}}
/* A prize page: the toggle above the years, a year heading's own space below it (Vera on #731). */
.gx .unr-bar:has(+ .lst .prize-year){margin:0 0 32px}
.gx .row .why{margin:4px 0 0;font-size:15px;line-height:22px;color:var(--ink);text-wrap:pretty}/* a pick's why line on a ranked row (B5, mock 10) */
/* More like this (Juno, Nov 29): a plain link at the end of the action row, on its own line in a narrow tile. */
.gx .sv-ri .ml-a{display:inline-flex;align-items:center;min-height:44px;color:var(--soft);font-size:14px;line-height:20px;text-decoration:none;white-space:nowrap}
.gx .sv-ri .ml-a:focus-visible{text-decoration:underline;text-underline-offset:3px}
@media (hover:hover){.gx .sv-ri .ml-a:hover{text-decoration:underline;text-underline-offset:3px}}
.gx #more-like{scroll-margin-top:24px}
