
:root{--ground:#fcfcfb;--surface:#ffffff;--surface2:#f1f0eb;--ink:#0b0b0b;--muted:#52514e;
--faint:#898781;--rule:#e1e0d9;--rule-soft:#ecebe6;--brass:#2a78d6;--brass-soft:#e8f0fb;--teal:#2a78d6}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--ground:#141413;--surface:#1d1d1b;
--surface2:#262624;--ink:#ffffff;--muted:#c3c2b7;--faint:#898781;--rule:#2c2b29;--rule-soft:#232321;
--brass:#3987e5;--brass-soft:#17273b;--teal:#3987e5}}
:root[data-theme="dark"]{--ground:#141413;--surface:#1d1d1b;--surface2:#262624;--ink:#ffffff;
--muted:#c3c2b7;--faint:#898781;--rule:#2c2b29;--rule-soft:#232321;--brass:#3987e5;--brass-soft:#17273b;--teal:#3987e5}
*{box-sizing:border-box}
body{background:var(--ground);color:var(--ink);margin:0;
font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.5}
a{color:inherit}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px 80px}
.crumb{padding:22px 0 0;font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.psearch{margin-left:auto}
.psearch input{font:inherit;font-size:14px;width:240px;max-width:100%;color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-radius:4px;padding:6px 10px}
.psearch input::placeholder{color:var(--faint)}
@media (max-width:600px){.psearch{margin-left:0;width:100%}.psearch input{width:100%;font-size:16px}}
.crumb a{color:var(--teal);text-decoration:none;border-bottom:1px solid var(--teal)}
.head{display:flex;gap:22px;align-items:flex-start;flex-wrap:wrap;margin-top:20px;
padding-bottom:22px;border-bottom:1px solid var(--rule)}
.cover{width:150px;flex:none;aspect-ratio:2/3;object-fit:contain;background:var(--surface2);
border:1px solid var(--rule);border-radius:2px;display:flex;align-items:center;justify-content:center;
padding:8px;text-align:center;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:11px;color:var(--muted);
position:relative;overflow:hidden}
.cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
/* A cover that loads shows at its own shape: no box around it and no bands above and below
   (Michael, 23 Oct 2026). The box and the title stay only for a book with no cover. */
.cover:has(img){aspect-ratio:auto;background:none;border:0;padding:0;display:block}
.cover:has(img) img{position:static;display:block;width:100%;height:auto;border:1px solid var(--rule);border-radius:2px}
.cover:has(img) > span{display:none}
h1{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:700;font-size:30px;line-height:1.14;
margin:0 0 8px;letter-spacing:-.012em}
.meta{font-size:14px;color:var(--muted);line-height:1.65}
.meta a{color:var(--muted)}
.note{margin-top:12px;font-size:14px;color:var(--muted);max-width:66ch}
.lk{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:11.5px;color:var(--muted);
text-decoration:none;border-bottom:1px solid var(--rule);margin-right:10px}
.lk:hover{color:var(--brass)}
.unver{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:11px;color:var(--faint);
border:1px dashed var(--rule);padding:1px 4px;border-radius:2px;margin-right:10px}
.tier{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:10.5px;padding:3px 4px;border-radius:2px}
.tier[data-t="1"]{background:var(--brass);color:var(--ground)}
.tier[data-t="2"]{background:var(--brass-soft);color:var(--brass);border:1px solid var(--brass)}
.tier[data-t="3"]{color:var(--muted);border:1px solid var(--rule)}
.tier[data-t="4"]{color:var(--faint);border:1px dashed var(--rule)}
.tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}
.tag{font-size:11.5px;color:var(--teal);background:var(--surface);border:1px solid var(--rule);
border-radius:2px;padding:2px 7px;text-decoration:none}
h2{font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--brass);
margin:34px 0 0;padding-bottom:7px;border-bottom:1px solid var(--brass);font-weight:600}
.count{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--faint);font-size:12px;font-weight:400}
.row{display:grid;grid-template-columns:1fr auto;gap:3px 14px;padding:9px 0;
border-bottom:1px solid var(--rule-soft);align-items:baseline}
.row .w{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px}
.row .w a{color:var(--teal);text-decoration:none;border-bottom:1px solid var(--teal)}
.row .n{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:12px;color:var(--faint)}
.row .m{grid-column:1/3;font-size:12.5px;color:var(--muted)}
.kind{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:9.5px;letter-spacing:.06em;
text-transform:uppercase;padding:2px 5px;border-radius:2px;margin-left:7px}
.kind.direct{background:var(--teal);color:var(--ground)}
.kind.reported{color:var(--faint);border:1px dashed var(--rule)}
.agg{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:10.5px;color:var(--faint);
border:1px dashed var(--rule);border-radius:2px;padding:1px 4px}
.quote{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;font-style:italic;color:var(--muted);
border-left:2px solid var(--rule);padding-left:11px;margin-top:5px;max-width:72ch}
.none{font-size:13px;color:var(--faint);margin-top:10px}
footer{margin-top:44px;padding-top:18px;border-top:1px solid var(--rule);
color:var(--faint);font-size:12.5px}
@media (max-width:640px){.wrap{padding:0 14px 60px}h1{font-size:24px}.cover{width:110px}}

/* person page */
.wrap.person{max-width:1120px}
/* Head pictures held small (23 Oct 2026). */
.head .avatar{width:104px;height:104px;border-radius:6px;object-fit:cover;flex:none;
background:var(--surface2);border:1px solid var(--rule)}
.head .avatar.ph{display:flex;align-items:center;justify-content:center;
font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:42px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 2px;align-items:center}
.chip{font-size:12px;color:var(--teal);background:var(--surface);border:1px solid var(--rule);
border-radius:3px;padding:3px 9px;text-decoration:none;white-space:nowrap}
.chip:hover{border-color:var(--teal)}
.chip.soft{color:var(--muted)}
.role{color:var(--muted);font-size:14px;margin:10px 0 0;max-width:70ch}
/* An entity's description (Round 34): one style on every page, upright, as on person and book pages. */
.why,.head p.bdesc{color:var(--ink);font-size:15px;line-height:1.55;font-style:normal;margin:8px 0 0;max-width:70ch}
.tally{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:12px;color:var(--faint);margin:10px 0 0}
.snote{font-size:13.5px;color:var(--muted);margin:8px 0 0;max-width:74ch}
.books{margin-top:14px}
/* Books as cards, three to a row (Michael, 22 Oct 2026): cover, title with its tier mark, authors,
   one quote, the recommenders as links. List (topbar.js, data-books="list") shows them as rows. */
/* Each card (Michael, 23 Oct 2026): the cover on top, the text under it, no box behind it, and
   the whole quote. */
.books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 22px}
.bk{display:flex;flex-direction:column;gap:6px;padding:0;align-content:start;align-items:center;text-align:center}
.bk .bmain{width:100%}
.bk .recs{justify-content:center}
.bk .bthumb .cover{width:112px!important}
.bk .bnote,.bk .blinks{display:none}
/* A quote is plain text in curly quotation marks, left-aligned under the centred card (25 Oct 2026). */
.bquote{margin:2px 0 0;padding:0;border:0;font-size:12.5px;line-height:1.45;color:var(--muted);text-align:left;width:100%}
.bquote span{font-style:normal;color:var(--faint)}
.bquote span::before{content:" — "}
.recs .rlh{display:block;width:100%;font-size:11px;color:var(--faint);margin-bottom:1px}
.rl.more{color:var(--muted);border-style:solid}
@media (max-width:900px){.books{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.books{grid-template-columns:minmax(0,1fr)}}
:root[data-books="list"] .books{display:block}
:root[data-books="list"] .bk{text-align:left;align-items:start;display:grid;grid-template-columns:56px minmax(0,1fr);gap:0 14px;padding:10px 0;
border-bottom:1px solid var(--rule-soft)}
:root[data-books="list"] .bk .bnote,:root[data-books="list"] .bk .blinks{display:block}
:root[data-books="list"] .bthumb .cover{width:56px!important}
:root[data-books="list"] .bquote{display:none}
:root[data-books="list"] .bk .recs{grid-column:2;justify-content:flex-start}
.bt{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15.5px;line-height:1.3}
.bt a{color:inherit;text-decoration:none;border-bottom:1px solid var(--rule)}
.bt a:hover{color:var(--brass);border-bottom-color:var(--brass)}
.bsub{font-size:12.5px;color:var(--muted);margin-top:2px}
.bnote{font-size:12.5px;color:var(--muted);margin-top:2px}
.blinks{margin-top:4px}
.big{font-size:14.5px;color:var(--ink);text-decoration:none;
border-bottom:1px solid var(--brass);word-break:break-word}
.arts{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.arts li{font-size:13.5px;line-height:1.4}
.arts a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--rule)}
.arts a:hover{border-bottom-color:var(--brass);color:var(--brass)}
.arts .pub{color:var(--muted);font-size:12.5px;margin-left:6px}
.startpath{margin:10px 0 4px;padding:11px 14px;border:1px solid var(--brass);
border-radius:3px;background:var(--brass-soft)}
.startpath h3{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--brass);
margin:0 0 7px;font-weight:600}
.startpath ol{margin:0;padding-left:19px;display:grid;gap:4px}
.startpath li{font-size:14px;line-height:1.35}
.startpath li a{color:inherit}
.startpath li span{color:var(--muted);font-size:12.5px;margin-left:6px}
.wsub{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--brass);
margin:22px 0 2px;padding-bottom:6px;border-bottom:1px solid var(--brass);font-weight:600}
.tsub{font-size:11.5px;letter-spacing:.06em;color:var(--muted);font-weight:600;
margin:16px 0 0;padding-bottom:4px;border-bottom:1px solid var(--rule-soft)}
@media (max-width:640px){.head .avatar{width:88px;height:88px}.head .avatar.ph{font-size:28px}}
.bthumb a{text-decoration:none;border:0}
.cover span{text-decoration:none}
/* book page additions */
.prose p{font-size:14.5px;line-height:1.62;color:var(--ink);margin:12px 0 0;max-width:72ch}
.takeaways{margin:10px 0 0;padding-left:22px;display:grid;gap:8px;max-width:72ch}
.takeaways li{font-size:14px;line-height:1.5}
.takeaways li::marker{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--brass);font-size:12px}
.simgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:18px;margin-top:14px}
.simcard{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:inherit}
.simcard .cover{width:100%}
.simcard .st{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;line-height:1.25}
.simcard .sa{font-size:11.5px;color:var(--muted)}
.simcard:hover .st{color:var(--brass)}
.chip.soft{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:11px;color:var(--muted);
background:var(--surface2);border:1px solid var(--rule);border-radius:2px;padding:2px 6px;
display:inline-block;margin-right:8px}
/* entry pages: a company, country, subject or topic (genentries.py) */
.head .pic{width:140px;height:96px;object-fit:cover;border-radius:4px;border:1px solid var(--rule);background:var(--surface2);flex:none}
.head .pic.logo{object-fit:contain;padding:14px;background:var(--surface)}
.head .flag{width:128px;height:auto;border:1px solid var(--rule);border-radius:3px;flex:none}
.head .mono{width:96px;height:96px;flex:none;display:flex;align-items:center;justify-content:center;
font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:40px;color:var(--muted);background:var(--surface2);border:1px solid var(--rule);border-radius:4px}
.bt .tier{margin-right:4px;vertical-align:2px}
.recs{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.rl{font-size:11.5px;line-height:1.5;text-decoration:none;border-radius:2px;padding:0 6px;color:var(--faint);border:1px dashed var(--rule)}
.rl.direct{color:var(--teal);border:1px solid var(--teal)}
.rl:hover{color:var(--brass);border-color:var(--brass)}
.pcards{display:flex;flex-wrap:wrap;gap:12px 8px;margin-top:10px}
.pcard{width:108px;text-align:center;text-decoration:none;color:var(--ink);font-size:12.5px;line-height:1.3}
.pcard .pf{width:60px;height:60px;border-radius:4px;object-fit:cover;display:flex;margin:0 auto 5px;background:var(--surface2);border:1px solid var(--rule)}
.pcard .pf.ph{align-items:center;justify-content:center;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:19px;color:var(--muted)}
.pcard .pn{display:block}
.pcard .pw{display:block;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:10.5px;color:var(--faint);margin-top:2px}
.pcard:hover .pn{color:var(--brass)}
/* A company's Experts card with the words that name the company in the person's episode (Round 42, C-23). */
.pcard.wq{width:220px}
.pcard .pq{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:11px;font-style:italic;color:var(--muted);margin-top:5px;text-align:left}
@media (max-width:640px){.head .pic{width:150px;height:100px}.head .flag{width:120px}.head .mono{width:88px;height:88px;font-size:28px}}
/* the picture sits beside the name; the text column takes the rest of the row */
.head > div{flex:1 1 320px;min-width:0}
/* List or Grid for every book list on a standalone page; topbar.js writes the switch */
.bview{display:flex;justify-content:flex-end;gap:4px;margin:18px 0 -6px}
.bview button{font:inherit;font-size:12.5px;color:var(--muted);background:var(--surface);border:1px solid var(--rule);
border-radius:5px;padding:4px 11px;cursor:pointer}
.bview button[aria-pressed="true"]{color:#fff;background:var(--brass);border-color:var(--brass)}


/* Links (20 Oct 2026): a link inside the shelf carries no underline; a link that leaves it does. */
/* Plain text links only (Michael, Round 32): a link with a class is a button, chip or tile that draws
   its own border, so these two rules never take its bottom border away (it had hidden the company
   chips' and the appearance tiles' bottom edges). */
.wrap a:not([href^="http"]),.crumbs a{text-decoration:none}
.wrap a:not([class]):not([href^="http"]),.crumbs a{border-bottom:0!important}
.wrap a[href^="http"]:not(.rl):not(.aptile):not(.chip):not(.mbtn):not(.orgchip):not(.pcard):not(.ecard){text-decoration:underline;text-decoration-color:var(--faint);text-underline-offset:2px}
.wrap a[href^="http"]:not([class]){border-bottom:0!important}
.wrap a.aptile,.wrap a.aptile *{text-decoration:none}
.wrap a.rl{text-decoration:none}
.wrap a[href^="http"]:hover{text-decoration-color:currentColor}
.bsrc{font-size:12px;color:var(--faint);margin-top:4px}

/* Section headings (20 Oct 2026): a section reads larger than the topic groups inside it. */
h2{font-size:19px;letter-spacing:-.005em;text-transform:none;color:var(--ink);font-weight:700;
margin:40px 0 0;padding-bottom:8px;border-bottom:2px solid var(--brass)}
h2 .count{font-size:13px}
.wsub{font-size:11.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--brass);font-weight:600;
margin:22px 0 2px;padding-bottom:5px;border-bottom:1px solid var(--rule-soft)}
/* A person's page: no rule between the description and the first section. */
.wrap.person .head{border-bottom:0;padding-bottom:4px}
/* The button to a person's letters on the Letters tab. */
.golink{display:inline-block;margin-top:12px;padding:7px 13px;border:1px solid var(--brass);border-radius:6px;
background:var(--brass-soft);color:var(--brass);font-size:13.5px;font-weight:600;text-decoration:none}
.golink:hover{background:var(--brass);color:var(--ground)}
.wrap a.golink{border-bottom:1px solid var(--brass)!important}
/* Related entries on an entry page (21 Oct 2026): a link, then the browse page it sits on. */
.related{list-style:none;padding:0;margin:10px 0 0;columns:2 260px;column-gap:28px}
.related li{break-inside:avoid;padding:4px 0;font-size:14.5px}
.related .rk{font-size:12px;color:var(--faint);margin-left:4px}
/* Entry and topic pages (PLAN_PAGES.md part 2, 22 Oct 2026): a contents line under the head,
   sticky on wide screens; the parts a page splits into as chips that filter its books; Start here
   as a row of covers; Experts twelve at a time. */
.toc{display:flex;flex-wrap:wrap;gap:6px 18px;margin:16px 0 0;padding:9px 0;border-bottom:1px solid var(--rule);
font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;background:var(--ground)}
.toc a{color:var(--muted)!important;text-decoration:none}
.toc a:hover{color:var(--brass)!important}
.toc a span{color:var(--faint);font-variant-numeric:tabular-nums}
@media (min-width:900px){.toc{position:sticky;top:var(--barh,56px);z-index:5}html.embedded .toc{top:0}}
.nchips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:14px 0 0}
.nchips .lbl{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin-right:4px}
.nchip{display:inline-flex;border:1px solid var(--rule);border-radius:999px;overflow:hidden;background:var(--surface)}
.nchip button{font:inherit;font-size:12.5px;color:var(--ink);background:none;border:0;padding:3px 6px 3px 11px;cursor:pointer}
.nchip button .c{color:var(--faint);font-size:11.5px;margin-left:2px}
.nchip button[aria-pressed="true"]{color:#fff;background:var(--brass)}
.nchip button[aria-pressed="true"] .c{color:#fff}
.nchip a{padding:3px 9px 3px 6px;color:var(--brass)!important;text-decoration:none;border-left:1px solid var(--rule)}
.books .bk[hidden]{display:none}
.startrow{display:flex;gap:14px;overflow-x:auto;margin-top:12px;padding-bottom:4px}
.startrow .st{width:88px;flex:none;display:flex;flex-direction:column;gap:4px}
.startrow .stt{font-size:12.5px;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.startrow .stt a{color:var(--ink)}
.startrow .sta{font-size:11px;color:var(--faint)}
details.more{margin-top:8px}
details.more summary{cursor:pointer;font-size:13px;color:var(--brass);list-style:none}
details.more summary::-webkit-details-marker{display:none}
.lead{font-size:15px;line-height:1.5;color:var(--ink);margin:8px 0 0;max-width:72ch}

/* ---- Round 24 (27 Oct 2026) ---- */
/* A section's count sits at the far right of its title. */
.wrap h2{display:flex;align-items:baseline;gap:10px}
.wrap h2 > .count{margin-left:auto}
h3.wsub{display:flex;align-items:baseline;gap:8px}
h3.wsub > .count{margin-left:auto}
/* The book page's pictures at half size. */
/* The book page's cover is as tall as the grids' covers, 170 px (28 Oct 2026). */
.bookpage .head .cover{width:auto;height:170px;flex:none;aspect-ratio:auto}
.bookpage .head .cover:has(img) img{height:170px;width:auto}
.bookpage .head .cover:not(:has(img)){width:113px}
.bookpage .simgrid{grid-template-columns:repeat(auto-fill,minmax(64px,1fr));max-width:560px}
.bookpage .simcard .st{font-size:12px}
/* Who recommended it: the name on the left, Source on the right, the quote under them. */
.reclist{display:flex;flex-direction:column}
.recrow{padding:10px 0;border-bottom:1px solid var(--rule-soft)}
.recrow .rtop{display:flex;align-items:baseline;gap:8px}
.recrow .rname{font-weight:600;color:var(--ink)}
.recrow .rsrc{margin-left:auto;font-size:13px}
.recrow .rrate{font-size:13px;color:var(--muted)}
.recrow .rquote{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
/* The foot of a book card, left-aligned: the quote and its author, the source, the others. */
.brec{width:100%;text-align:left;display:flex;flex-direction:column;gap:3px}
.brec p{margin:0}
.brec .bby{font-size:12.5px;color:var(--muted)}
.brec .rby{color:var(--ink)}
.brec .bsrc{font-size:12px;color:var(--faint)}
.brec .balso{font-size:12px;color:var(--faint);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.brec .balso a{color:var(--muted)}
:root[data-books="list"] .bk .brec{grid-column:2}
/* Tabs on entity and person pages: a tab shows only its own content. */
.ptabs{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--rule);margin:22px 0 4px;position:sticky;top:var(--barh);background:var(--ground);z-index:5}
html.embedded .ptabs{top:0}
.ptabs .ptab{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14.5px;font-weight:600;color:var(--muted)!important;
  padding:9px 14px 10px;border-bottom:2px solid transparent!important;margin-bottom:-1px;text-decoration:none!important}
.ptabs .ptab:hover{color:var(--ink)!important}
.ptabs .ptab[aria-selected="true"]{color:var(--ink)!important;border-bottom-color:var(--brass)!important}
.ptabs .ptab .c,.subtabs .c{font-weight:500;color:var(--faint);font-size:12px;margin-left:3px}
.ppanel > h2:first-child,.ppanel > .startpath:first-child,.ppanel > .nchips:first-child{margin-top:16px}
.subtabs{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 6px}
.subtabs button{font:inherit;font-size:12.5px;padding:5px 11px;border:1px solid var(--rule);border-radius:999px;background:var(--surface);color:var(--ink);cursor:pointer}
.subtabs button[aria-selected="true"]{border-color:var(--brass);background:var(--brass-soft);color:var(--brass)}
/* Grid view on entity and person pages (27 Oct 2026): every book and every person sits in a
   bordered square, the same card as a table's grid. List view drops the box. */
.books .bk{border:1px solid var(--rule);border-radius:6px;background:var(--surface);padding:14px 12px}
:root[data-books="list"] .books .bk{border:0;border-bottom:1px solid var(--rule-soft);border-radius:0;background:none;padding:10px 0}
/* Person cards take the book card's look (Round 44, P-38, Michael: "make people cards have the same format as
   books cards. only change the look, dont change anything about the info you display"): one square of a grid
   ruled by thin lines, centred, the photograph (initials when there is none), the name in the book title's
   type, the reason in the authors' small capitals, a quote left-aligned and in italics as a book's quote.
   Five to a row on a 1,120 px page (never narrower than 190 px), two on a phone. Every person card on
   standalone pages is management.py `card` (Experts, Recommenders, Management, a newsletter's writers). */
.pcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(max(190px,calc(100% / 5)),1fr));gap:0;margin-top:14px;
  border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.pcard,.pcard.wq{width:auto;min-width:0;border:0;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);border-radius:0;
  background:none;padding:22px 14px 18px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;
  font-size:13px;line-height:1.3;color:var(--ink);text-decoration:none}
.pcard[hidden]{display:none!important}
.pcard .pf{width:120px;height:120px;margin:0 auto 6px}
.pcard .pf.ph{font-size:34px}
.pcard .pn{font-size:16.5px;line-height:1.3;overflow-wrap:anywhere}
.pcard .pw{text-transform:uppercase;letter-spacing:.06em;font-size:11px;line-height:1.35;color:var(--muted);margin-top:2px}
.pcard .pq{-webkit-line-clamp:5;font-style:italic;font-size:13.5px;line-height:1.5;color:var(--ink);margin-top:8px;text-align:left;width:100%}
@media (max-width:560px){.pcards{grid-template-columns:repeat(2,minmax(0,1fr))}.pcard,.pcard.wq{padding:16px 8px 14px}
  .pcard .pf{width:88px;height:88px}.pcard .pn{font-size:14.5px}}
.bview button svg{display:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;vertical-align:middle}
@media (max-width:760px){.bview button svg{display:inline-block}.bview button span{display:none}.bview button{padding:6px 8px}
  /* Round 34: the strip moves sideways only, and stops at its ends. Each tab sat 1 px below the
     strip (margin-bottom:-1px), so the strip also scrolled 1 px up and down; the rule under the
     tabs is drawn inside the strip instead. */
  /* Round 38 item 44: a touch moves the strip sideways only (touch-action), as the section tabs (_barcss.css). */
  .ptabs{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;scrollbar-width:none;overscroll-behavior:none;touch-action:pan-x pan-y;
    border-bottom:0;box-shadow:inset 0 -1px 0 var(--rule);-webkit-overflow-scrolling:touch}
  .ptabs::-webkit-scrollbar{display:none}
  .ptabs .ptab{flex:none;padding:8px 11px 9px;margin-bottom:0}}
/* ---- Book grid (Michael, 28 Oct 2026): each book in a square of a grid ruled by thin lines ----
   Cover 170 px tall (the research page's grid uses the same); title, authors in capitals, the
   Open Library and Goodreads links, the one-line note, then the quote, its author and source,
   and who recommended it, left-aligned. List view keeps every part, quotes included. */
/* Card width: three to a row on a 1,120 px page, two under 900 px and on a phone (28 Oct 2026). Round 43
   (B-21) widened these cards by 25%; Round 44 (B-22, Michael: "only widen in the main grid on the books
   section. keep the books/recommends tabs the same on entity pages") keeps that for the Books section's
   own grid (template.html .bookgrid) and gives entity, person and investor pages this width back. */
.books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:14px;
  border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.books .bk{border:0;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);border-radius:0;background:none;
  padding:26px 20px 22px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.books .bk .bmain{width:100%;display:flex;flex-direction:column;align-items:center;gap:4px}
.bk .bthumb .cover{width:auto!important;height:170px;aspect-ratio:auto}
.bk .bthumb .cover:not(:has(img)){width:113px!important}
.bk .bthumb .cover:has(img) img{height:170px;width:auto;max-width:100%;margin:0 auto}
.bk .bt{font-size:16.5px;line-height:1.3;margin-top:10px}
.bk .bsub{text-transform:uppercase;letter-spacing:.06em;font-size:11.5px;color:var(--muted);margin-top:2px}
.bk .blinks{display:flex!important;gap:16px;justify-content:center;font-size:13px;margin-top:6px}
.wrap .bk .blinks a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--brass-soft)!important;padding-bottom:1px}
.bk .bdesc{font-size:13.5px;color:var(--muted);margin:8px 0 0;line-height:1.45}
.bk .brec{margin-top:10px;text-align:left;width:100%;display:flex;flex-direction:column;gap:6px}
.bk .bquote{font-style:italic;font-size:14px;line-height:1.55;color:var(--ink);margin:0}
.bk .bby{font-size:12.5px;color:var(--muted);margin:-2px 0 0}
.bk .balso{font-size:12.5px;color:var(--muted);margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.bk .balso .rby,.bk .bby .rby{color:var(--ink)}
.bk .rmore{color:var(--brass)}
:root[data-books="list"] .books{display:block;border:0}
:root[data-books="list"] .books .bk{display:grid;grid-template-columns:76px minmax(0,1fr);gap:0 16px;text-align:left;align-items:start;
  border:0;border-bottom:1px solid var(--rule-soft);padding:16px 0}
:root[data-books="list"] .books .bk .bmain{align-items:flex-start}
:root[data-books="list"] .bk .bthumb .cover{height:110px}
:root[data-books="list"] .bk .bthumb .cover:has(img) img{height:110px}
:root[data-books="list"] .bk .bthumb .cover:not(:has(img)){width:73px!important}
:root[data-books="list"] .bk .bt{margin-top:0}
:root[data-books="list"] .bk .blinks{justify-content:flex-start}
:root[data-books="list"] .bk .bquote{display:block}
:root[data-books="list"] .bk .brec{grid-column:auto}
@media (max-width:900px){.books{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Phones show two books to a row (Michael, 28 Oct 2026; back in Round 44, B-22). */
@media (max-width:560px){.books{grid-template-columns:repeat(2,minmax(0,1fr))}
  .books .bk{padding:16px 10px}.bk .bthumb .cover,.bk .bthumb .cover:has(img) img{height:130px}
  .bk .bt{font-size:14.5px}.bk .bquote{font-size:13px}}
/* "More <kind>" under every tab: a section of its own, its buttons centred (28 Oct 2026). */
.morenav{margin-top:34px;border-top:1px solid var(--rule);padding-top:4px}
.morebtns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:12px}
.wrap a.mbtn{display:inline-block;padding:9px 16px;border:1px solid var(--rule)!important;border-radius:6px;background:var(--surface);
  color:var(--ink);font-size:14px;font-weight:500;text-decoration:none}
.wrap a.mbtn:hover{border-color:var(--brass)!important;color:var(--brass)}
.head .site{margin:4px 0 0;font-size:14px}
/* Appearances (28 Oct 2026): filters, then a table or a grid of pictures. */
.apfilters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0 10px}
/* Round 33 item 24: room between the border, the text and the arrow; the arrow is drawn here so its place is fixed. */
.apfilters select{font:inherit;font-size:13px;line-height:1.3;padding:8px 34px 8px 12px;border:1px solid var(--rule);border-radius:8px;background-color:var(--surface);color:var(--ink);-webkit-appearance:none;appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:10px 6px}
.apfilters select:hover{border-color:var(--muted)}
.apfilters input[data-lq]{font:inherit;font-size:13px;line-height:1.3;padding:8px 12px;border:1px solid var(--rule);border-radius:8px;background:var(--surface);color:var(--ink);min-width:220px}
.apcount{font-size:12.5px;color:var(--faint);margin-left:auto}
.apview{display:flex}
.apview button{border:1px solid var(--rule);background:var(--surface);color:var(--muted);padding:6px 8px;cursor:pointer;line-height:0}
.apview button:first-child{border-radius:6px 0 0 6px}.apview button:last-child{border-radius:0 6px 6px 0;border-left:0}
.apview button[aria-pressed="true"]{background:var(--brass);border-color:var(--brass);color:#fff}
.apview svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.aptable{width:100%;border-collapse:collapse;font-size:14px}
.aptable th{text-align:left;font-size:11.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:8px;border-bottom:1px solid var(--rule)}
.aptable td{padding:9px 8px;border-bottom:1px solid var(--rule-soft);vertical-align:top}
.aptable .apdate{white-space:nowrap;color:var(--muted)}
.aptable td.apdesc{min-width:220px;max-width:340px;color:var(--muted);font-size:13px}
.aptable td.apdesc .clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.apfmt{font-size:11px;color:var(--faint);margin-left:4px}
.apgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.apgrid[hidden]{display:none}
.wrap a.aptile{display:flex;flex-direction:column;gap:6px;padding:14px;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);text-decoration:none;color:var(--ink)}
.aptile[hidden]{display:none!important}
.apthumb{position:relative;aspect-ratio:16/9;background:var(--surface2);border-radius:4px;overflow:hidden;display:flex;align-items:center;justify-content:center}
/* An appearance's picture shows whole, centred on a neutral ground, never cropped (Round 36 item 4). */
.apthumb img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
/* The picture on an appearance's own page too (genappearances_meta.py draws it 72 px square). */
.wrap.ep .art img{object-fit:contain;object-position:center;background:var(--surface2)}
.apini{font-size:28px;color:var(--faint);display:none}
.aptile.noimg .apini{display:block}
.apt{font-size:14px;line-height:1.35}.apm{font-size:12px;color:var(--muted)}
@media (max-width:560px){.apgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* List and Grid show their icons only, at every width (Michael, 28 Oct 2026) */
.bview button svg{display:inline-block}.bview button span{display:none}.bview button{padding:6px 9px;line-height:0}
/* the one-line note sits left with the quote under it; the source box carries no underline (28 Oct 2026) */
.books .bk .bdesc{align-self:stretch;text-align:left}
.bk .blinks{flex-wrap:wrap;column-gap:14px;row-gap:2px}.bk .blinks a{white-space:nowrap}
/* a card a filter hides stays hidden in List too (29 Oct 2026: the List rule outranked [hidden]) */
.books .bk[hidden],:root[data-books="list"] .books .bk[hidden]{display:none!important}
/* "Source: <title>" under the quote, and the quote's author on its line in smaller type; the
   recommenders' line holds its "and N others" (29 Oct 2026) */
.bk .bsrc{font-size:12px;color:var(--faint);margin:0}
.bk .bquote .bby{font-style:normal;font-size:11.5px;color:var(--muted);margin:0;white-space:nowrap}
.bk .balso,.brec .balso{display:block;-webkit-line-clamp:unset;overflow:visible}
.bk .bquote .bby::before{content:none}
/* List view: the cover keeps its own shape, 110 px tall and as wide as that makes it (1 Nov 2026:
   a 56 px box squeezed the picture and showed bands above and below it) */
:root[data-books="list"] .bk .bthumb .cover:has(img){width:auto!important;height:auto;aspect-ratio:auto}
:root[data-books="list"] .bk .bthumb .cover:has(img) img{height:110px;width:auto;max-width:76px;object-fit:contain}
/* a link a reader cannot open freely carries its reason (1 Nov 2026) */
.lock{display:inline-block;margin-left:6px;padding:0 6px;border:1px solid var(--rule);border-radius:9px;font-size:11px;color:var(--muted);vertical-align:1px}
/* Round 39 item 4: where a talk was given, after its title on the Writing tab */
.wvenue{display:block;font-size:12px;color:var(--muted)}
.apfilters select option:disabled{color:var(--muted)}
/* A person's books as the Books table's columns (1 Nov 2026): List shows the table, Grid the cards */
.btable{display:none;width:100%;border-collapse:collapse;margin-top:14px;font-size:14px}
:root[data-books="list"] .ppanel .books:has(+ .btable){display:none!important}
:root[data-books="list"] .btable{display:table}
.btable th,.aptable th{text-align:left;border-bottom:1px solid var(--rule);padding:0}
.btable th button,.aptable th button{white-space:nowrap;font:inherit;font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);
  background:none;border:0;padding:9px 8px;cursor:pointer;width:100%;text-align:left}
.btable th button:hover,.aptable th button:hover{color:var(--ink)}
.btable th[aria-sort] button,.aptable th[aria-sort] button{color:var(--brass)}
.btable th[aria-sort="ascending"] button::after,.aptable th[aria-sort="ascending"] button::after{content:" ▲";font-size:9px}
.btable th[aria-sort="descending"] button::after,.aptable th[aria-sort="descending"] button::after{content:" ▼";font-size:9px}
.btable td{padding:9px 8px;border-bottom:1px solid var(--rule-soft);vertical-align:middle}
.btable td.ttl{width:30%}.btable td.dsc{color:var(--muted);font-size:13px}
.btable .pname{display:flex;align-items:center;gap:10px}
.btable .tthumb{width:auto;height:40px;max-width:30px;object-fit:contain;flex:none}
.btable .tthumb.ph{display:inline-block;width:26px;height:38px;background:var(--surface2);border-radius:2px}
.btable .muted{color:var(--faint)}
@media (max-width:640px){.btable td.dsc,.btable th:nth-child(2){display:none}}
/* More: the kinds past the five largest, in a menu under the row (1 Nov 2026) */
.subtabs .submore{position:relative}
.subtabs .submore[hidden]{display:none}
.subtabs .submore summary{list-style:none;font-size:12.5px;padding:5px 11px;border:1px solid var(--rule);border-radius:999px;background:var(--surface);cursor:pointer}
.subtabs .submore summary::-webkit-details-marker{display:none}
.subtabs .submore summary::after{content:" ▾";color:var(--brass)}
.subtabs .submore[open] summary{border-color:var(--brass)}
.subtabs .submenu{position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:min(320px,80vw);max-height:340px;overflow-y:auto;
  background:var(--surface);border:1px solid var(--rule);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.14);padding:6px;display:flex;flex-direction:column;gap:2px}
.subtabs .submenu button{border:0;border-radius:6px;text-align:left;display:flex;justify-content:space-between;gap:10px;background:none}
.subtabs .submenu button:hover{background:var(--surface2)}
.subtabs .subpick .x{margin-left:6px;font-size:14px;line-height:1}
.aboutbtns{justify-content:flex-start}
/* Round 29 (3 Nov 2026): List / Grid in the filter row; link tables; organisations as chips. */
.subtabs{align-items:center}
.subtabs .bview.inrow{margin:0 0 0 auto}
.subtabs .bview button{border-radius:5px;padding:4px 11px;font-size:12.5px;color:var(--muted)}
.subtabs .bview button[aria-pressed="true"]{color:#fff;background:var(--brass);border-color:var(--brass)}
.linktable .aptable td.lt{min-width:220px}
.linktable .aptable td.ld{min-width:240px;color:var(--muted);font-size:13px}
.linktable .aptable td.lc{min-width:140px;font-size:13px}
.linktable .aptable tr[hidden]{display:none}
.linktable .clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.linktable{overflow-x:auto}
p.orgs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.wrap p.orgs a.orgchip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 6px;border:1px solid var(--rule);border-radius:999px;
  background:var(--surface);color:var(--ink);font-size:13px;text-decoration:none}
.wrap p.orgs a.orgchip:hover{border-color:var(--brass);color:var(--brass)}
.wrap p.orgs a.orgchip::after{content:"→";font-size:11px;color:var(--faint)}
p.orgs a img{width:18px;height:18px;object-fit:contain;background:#fff;border-radius:3px}
.head p.bdesc{margin-bottom:8px}
/* A company's square logo in a table cell (Round 35, Brandfetch), as on the research page. */
.aptable .cologo{width:22px;height:22px;object-fit:contain;vertical-align:middle;margin-right:8px;border-radius:4px}
/* Social accounts in a page's head (Round 37 item 5.1, social.py): 16 px icons in the ink colour. */
p.social{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:8px 0 0}
.wrap p.social a.soc,p.social a.soc{display:inline-flex;width:16px;height:16px;color:var(--ink);text-decoration:none;border:0!important}
.wrap p.social a.soc:hover,p.social a.soc:hover{color:var(--brass)}
p.social a.soc svg{width:16px;height:16px;fill:currentColor;display:block}
/* The website first on that line (Round 42, C-36; social.site_html). */
p.social a.site{margin:0 0 0 4px;font-size:14px;line-height:16px}
/* A company page's Quotes tab (Round 39 item 2.3): the documents' sentences that name it. */
.coquotes{list-style:none;padding:0;margin:0;max-width:760px}
.coquotes li{border-top:1px solid var(--rule);padding:14px 0}
.coquotes li:first-child{border-top:0;padding-top:4px}
.coquotes blockquote{margin:0 0 8px;font-size:16px;line-height:1.55;color:var(--ink)}
.coquotes .who{margin:0;font-size:13px;color:var(--muted)}
.coquotes .who a{color:var(--ink)}
/* Round 40 item 2: a quote opens the reader at its page (or the publisher's copy at the quote). */
.coquotes a.qj{color:inherit;text-decoration:none;border:0;cursor:pointer}
.coquotes a.qj:hover{color:var(--brass)}
.coquotes .qgo{opacity:0;font-size:13px;color:var(--brass);margin-left:6px;white-space:nowrap}
.coquotes a.qj:hover .qgo,.coquotes a.qj:focus-visible .qgo{opacity:1}
@media (hover:none){.coquotes .qgo{opacity:1}}
/* Round 41 C-25: a company's Letters tab with each letter's passages about it and its sentiment. */
.lqlist{list-style:none;padding:0;margin:0;max-width:820px}
.lqlist>li{border-top:1px solid var(--rule);padding:16px 0}
.lqlist>li:first-child{border-top:0;padding-top:4px}
.lqhead{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;font-size:16px;line-height:1.4}
.lqhead .lqt a{color:var(--ink);text-decoration:none;font-weight:600}
.lqhead .lqt a:hover{color:var(--brass)}
.lqmeta{margin:4px 0 0;font-size:13px;color:var(--muted)}
.lqmeta a{color:var(--muted)}
.lqwhy{margin:4px 0 0;font-size:13px;color:var(--faint)}
.lqlist .coquotes{margin:10px 0 0 0;padding-left:14px;border-left:2px solid var(--rule)}
.lqlist .coquotes li{padding:8px 0}
.lqlist .coquotes blockquote{font-size:15px}
.sent{font-size:11.5px;font-weight:600;border-radius:999px;padding:2px 9px;border:1px solid var(--rule);color:var(--muted);white-space:nowrap}
.sent[data-s="bullish"]{color:#1f7a3d;border-color:#1f7a3d}
.sent[data-s="bearish"]{color:#b3261e;border-color:#b3261e}
.sent[data-s="mixed"]{color:#8a5a00;border-color:#8a5a00}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sent[data-s="bullish"]{color:#5cc97f;border-color:#5cc97f}
:root:not([data-theme="light"]) .sent[data-s="bearish"]{color:#f2857d;border-color:#f2857d}
:root:not([data-theme="light"]) .sent[data-s="mixed"]{color:#e0b04a;border-color:#e0b04a}}
:root[data-theme="dark"] .sent[data-s="bullish"]{color:#5cc97f;border-color:#5cc97f}
:root[data-theme="dark"] .sent[data-s="bearish"]{color:#f2857d;border-color:#f2857d}
:root[data-theme="dark"] .sent[data-s="mixed"]{color:#e0b04a;border-color:#e0b04a}
.lqmore{margin:14px 0 0;font:inherit;font-size:13px;padding:8px 14px;border:1px solid var(--btn-rule,var(--rule));border-radius:8px;background:var(--surface);color:var(--ink);cursor:pointer}
.lqmore:hover{border-color:var(--muted)}
/* The frame every page carries (pagebar.py writes the markup, topbar.js runs it): a fixed top
   row with Scuttlebutt, search and the light/dark switch, and a thin fixed rail on the left
   whose one button, Research, opens the research page. Colours and Inter come from the
   scuttlebutt.co home page. */
:root{--barh:58px; --navw:76px; --menuh:var(--barh)}
body{padding-top:var(--barh)}
@media (min-width:761px){ body{padding-left:var(--navw)} }

/* ---------- the top row ---------- */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:40; height:var(--barh);
  display:flex; align-items:center; gap:14px; padding:0 18px;
  background:var(--ground); border-bottom:1px solid var(--rule);
}
.brand{
  flex:none; color:var(--ink); text-decoration:none; white-space:nowrap; margin-right:18px;
  font-weight:700; font-size:20px; letter-spacing:-.015em;
}
.tools{flex:1; min-width:0; display:flex; align-items:center; gap:6px}
.barsearch{position:relative; flex:1; max-width:560px; display:flex; align-items:center; gap:8px}
.barsearch input{
  width:100%; font:inherit; font-size:15px; color:var(--ink);
  background:var(--surface); border:1px solid var(--rule); border-radius:6px;
  padding:8px 12px 8px 34px;
}
.barsearch input:focus{outline:2px solid var(--brass-soft); border-color:var(--brass)}
.barsearch input::placeholder{color:var(--faint)}
.barsearch > svg{position:absolute; left:11px; top:50%; transform:translateY(-50%); width:15px; height:15px; stroke:var(--faint); fill:none; stroke-width:2; pointer-events:none}
.barsearch .searchclose{display:none}
/* suggestions: the best eight matches while typing, grouped, then a link to every result */
.suggest{
  position:absolute; top:calc(100% + 6px); left:0; right:0; min-width:380px; z-index:45;
  max-height:min(70vh,540px); overflow-y:auto; padding:6px;
  background:var(--surface); border:1px solid var(--rule); border-radius:8px;
  box-shadow:0 14px 34px rgba(0,0,0,.14);
}
.suggest[hidden]{display:none}
.sghead{padding:8px 10px 4px; font-size:10.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--faint)}
.sg{
  display:flex; justify-content:space-between; align-items:baseline; gap:14px;
  padding:7px 10px; border-radius:5px; color:var(--ink); text-decoration:none; font-size:14px;
}
.sg .sgn{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.sg .sgm{flex:none; max-width:48%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--faint)}
.sg:hover{background:var(--surface2)}
.sg.active{background:var(--brass-soft)}
.sg.sgall{margin-top:4px; padding-top:9px; border-top:1px solid var(--rule-soft); border-radius:0 0 5px 5px; color:var(--brass); font-weight:600}
.sgnone{padding:10px; font-size:13px; color:var(--faint)}
/* Round 37 item 11: recent searches, under the empty box (topbar.js). */
.sgrhead{display:flex; align-items:center; justify-content:space-between; gap:12px}
.sgclear{font:inherit; font-size:12px; font-weight:500; letter-spacing:0; text-transform:none; color:var(--brass);
  background:none; border:0; padding:2px 4px; cursor:pointer}
.sgclear:hover{text-decoration:underline}
.sgrow{display:flex; align-items:center; gap:2px}
.sgrow .sg{flex:1; min-width:0; justify-content:flex-start; align-items:center; gap:9px}
.sgclock{flex:none; width:14px; height:14px; fill:none; stroke:var(--faint); stroke-width:1.8}
.sgx{flex:none; width:28px; height:28px; display:flex; align-items:center; justify-content:center; font:inherit; font-size:17px;
  line-height:1; color:var(--faint); background:none; border:0; border-radius:5px; cursor:pointer}
.sgx:hover{color:var(--ink); background:var(--surface2)}
.sg.sgmore{display:block; width:100%; margin-top:4px; padding-top:9px; border:0; border-top:1px solid var(--rule-soft);
  border-radius:0 0 5px 5px; background:none; font:inherit; font-size:13px; font-weight:600; color:var(--brass); text-align:left; cursor:pointer}
.sg.sgmore:hover{background:var(--surface2)}
.sg.sgmore.active{background:var(--brass-soft)}
.pmrecent{display:none}
@media (max-width:760px){
  .sgrow .sg{display:flex}
  .pmrecent:not([hidden]){display:block; flex:none; position:static; min-width:0; max-height:none; overflow:visible; margin:0 0 4px; box-shadow:none}
}
.iconbtn{
  display:flex; align-items:center; justify-content:center; flex:none; width:40px; height:40px;
  background:none; border:0; border-radius:6px; color:var(--ink); cursor:pointer; padding:0;
}
.iconbtn:hover{background:var(--surface2)}
.iconbtn svg{width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
#searchBtn,.railmini{display:none}
.themebtn{margin-left:auto}
/* the switch shows the moon in light mode and the sun in dark mode */
.themebtn .sun{display:none}
:root[data-theme="dark"] .themebtn .sun{display:block}
:root[data-theme="dark"] .themebtn .moon{display:none}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .themebtn .sun{display:block}
  :root:not([data-theme="light"]) .themebtn .moon{display:none}
}

/* ---------- the rail: one button, its icon over its name ---------- */
.rail{
  position:fixed; top:var(--barh); left:0; bottom:0; width:var(--navw); z-index:35;
  display:flex; flex-direction:column; align-items:center; padding:12px 0;
  background:var(--ground); border-right:1px solid var(--rule);
}
.railbtn{
  display:flex; flex-direction:column; align-items:center; gap:3px; width:62px; padding:6px 0 8px;
  border-radius:10px; color:var(--muted); text-decoration:none; font-size:11px; font-weight:600; letter-spacing:.01em;
  text-align:center; line-height:1.25;
}
/* A two-word label (Fund letters) wraps under its icon, centred on each line. */
.railbtn span{display:block; text-align:center}
/* The button in use marks its icon only (Michael, 22 Oct 2026): the icon sits in a soft rounded
   square in the accent colour (8 px corners, as the phone menu's; Round 44, W-30: "use more squared
   highlight"), and the label keeps the ink colour. */
.railbtn svg{width:24px; height:24px; padding:5px 12px; box-sizing:content-box; border-radius:8px;
  stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}
.railbtn:hover{color:var(--ink)}
.railbtn:hover svg{background:var(--surface2)}
.railbtn[aria-current]{color:var(--ink)}
.railbtn[aria-current] svg{color:var(--brass); background:var(--brass-soft)}

/* ---------- the breadcrumb on a standalone page ---------- */
.crumbs{max-width:1120px; margin:0 auto; padding:16px 20px 0; font-size:13px; color:var(--muted)}
.crumbs a{color:var(--brass); text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs i{font-style:normal; color:var(--faint); padding:0 7px}
.crumbs [aria-current]{color:var(--ink)}
/* "← the page before" (Round 36 item 3): topbar.js puts it before the trail when the reader came from another page of the site. */
.crumbs a.crumbback{display:inline-block; margin-right:14px; padding-right:14px; border-right:1px solid var(--rule); color:var(--muted)}
.crumbs a.crumbback:hover{color:var(--brass)}

/* ---------- phones: the panel slides in from the menu icon; search opens across the row ---------- */
@media (max-width:760px){
  :root{--barh:54px}
  .topbar{padding:0 8px 0 4px; gap:4px}
  .railmini,#searchBtn{display:flex}
  .railmini svg{stroke-width:1.7}
  .rail{display:none}
  .brand{font-size:19px; margin-right:0}
  .tools{justify-content:flex-end}
  .themebtn{margin-left:0}
  .barsearch{display:none}
  .barsearch.open{display:flex; position:absolute; inset:0; z-index:2; max-width:none; padding:0 10px; background:var(--ground)}
  .barsearch.open input,.barsearch.open input:focus{flex:1; font-size:16px; padding:9px 11px 9px 33px}
  .barsearch.open > svg{left:21px}
  .barsearch.open .suggest{
    left:0; right:0; min-width:0; top:calc(100% + 1px); border-radius:0 0 8px 8px;
    max-height:calc(100vh - var(--barh) - 16px);
  }
  .sg{display:block; padding:9px 10px; font-size:15px}
  .sg .sgn{display:block; white-space:normal}
  .sg .sgm{display:block; max-width:none; margin-top:1px}
  .barsearch .searchclose{
    display:block; flex:none; background:none; border:0; padding:8px 2px 8px 6px;
    font:inherit; font-size:14px; font-weight:600; color:var(--brass); cursor:pointer;
  }
  .crumbs{padding:12px 14px 0}
}
/* A page framed inside the research page's main area (22 Oct 2026): the research page carries the
   bar and the rail, so the page shows neither. */
html.embedded .topbar,html.embedded .rail{display:none!important}
html.embedded body{padding-top:0!important;padding-left:0!important}

/* ---------- Updates and Feedback (22 Oct 2026) ----------
   Two buttons at the foot of the rail, Updates above Feedback; on a phone they sit in the top
   row. Each opens a dialog (pagebar.extras_html, topbar.js). */
.railfoot{margin-top:auto; display:flex; flex-direction:column; align-items:center; gap:2px; padding-bottom:6px}
.railfoot .railbtn{background:none; border:0; font:inherit; font-size:11px; font-weight:600; cursor:pointer}
/* Settings (Round 43, W-26): the rail's last button, under a thin rule as wide as the buttons. */
.raildiv{width:40px; height:0; margin:4px 0 2px; border:0; border-top:1px solid var(--rule)}
/* A window too short for every button (under about 830 px) scrolls the rail itself, so Feedback and
   Settings stay within reach; no scrollbar shows. */
.rail{overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.phoneonly{display:none}
@media (max-width:760px){ .phoneonly{display:inline-flex} }
/* Updates and Feedback open as panels in the corner beside the rail's foot (23 Oct 2026), not over
   the page: the page stays usable behind them. Updates shows five lines and scrolls to the rest. */
.shelfdlg{position:fixed; inset:auto auto 14px calc(var(--navw) + 10px); margin:0; z-index:60; width:min(420px, calc(100vw - var(--navw) - 24px));
  max-height:calc(100vh - 90px); overflow:auto; padding:0; border:1px solid var(--rule);
  border-radius:10px; background:var(--surface); color:var(--ink); box-shadow:0 12px 36px rgba(0,0,0,.2)}
.shelfdlg .dlghead{position:sticky; top:0; background:var(--surface); z-index:1}
#updatesDlg .updlist{max-height:330px; overflow:auto}
@media (max-width:760px){ .shelfdlg{inset:auto 8px 8px 8px; width:auto; max-height:calc(100vh - 70px)} }
.shelfdlg .dlghead{display:flex; align-items:center; justify-content:space-between; padding:14px 18px 10px; border-bottom:1px solid var(--rule)}
.shelfdlg h2{font-size:17px; margin:0; font-weight:600}
.dlgx{font:inherit; font-size:22px; line-height:1; border:0; background:none; color:var(--muted); cursor:pointer; padding:2px 6px}
.updlist{list-style:none; margin:0; padding:6px 18px 14px}
.updlist li{display:grid; grid-template-columns:52px 1fr; gap:10px; padding:8px 0; border-bottom:1px solid var(--rule-soft); font-size:13.5px; line-height:1.4; min-height:41px}
.updlist li:last-child{border-bottom:0}
.updlist time{color:var(--faint); font-size:12px; font-variant-numeric:tabular-nums; padding-top:1px}
#feedbackForm{padding:0 0 14px}
#feedbackForm > *:not(.dlghead){margin-left:18px; margin-right:18px}
.fbkind{border:0; padding:0; margin-top:12px; display:flex; flex-wrap:wrap; gap:6px}
.fbkind legend{font-size:12px; color:var(--muted); margin-bottom:6px; padding:0}
.fbkind label{display:inline-flex; align-items:center; gap:6px; font-size:13.5px; padding:6px 11px; border:1px solid var(--rule); border-radius:999px; cursor:pointer}
.fbkind label:has(input:checked){border-color:var(--brass); background:var(--brass-soft); color:var(--brass)}
.fbkind input{accent-color:var(--brass); margin:0}
.fbfield{display:flex; flex-direction:column; gap:5px; margin-top:12px; font-size:12px; color:var(--muted)}
.fbfield textarea,.fbfield input{font:inherit; font-size:14px; color:var(--ink); background:var(--ground); border:1px solid var(--rule);
  border-radius:6px; padding:8px 10px; resize:vertical}
.fbfield textarea:focus,.fbfield input:focus{outline:2px solid var(--brass); outline-offset:-1px}
.fbnote{font-size:12px; color:var(--faint); margin-top:6px}
.fbhp{position:absolute; left:-9999px; width:1px; height:1px; opacity:0}
.fbmsg{font-size:13px; margin-top:8px; min-height:1em}
.fbmsg.bad{color:#b3261e}
.fbmsg.ok{color:var(--brass)}
.fbbtns{display:flex; justify-content:flex-end; gap:8px; margin-top:12px}
.fbbtns button{font:inherit; font-size:13.5px; padding:7px 14px; border-radius:6px; border:1px solid var(--rule); background:var(--surface); color:var(--ink); cursor:pointer}
.fbbtns .fbsend{background:var(--brass); border-color:var(--brass); color:#fff}
.fbbtns .fbsend:disabled{opacity:.6; cursor:default}

/* ---------- The tabs of a page's section, on a standalone page (23 Oct 2026) ----------
   The research page's band of tabs, repeated under the bar so Browse, Table and People show
   however the reader reached the page. A framed page hides it: the research page shows its own. */
.pagetabs{background:var(--surface2); border-bottom:1px solid var(--rule)}
.pagetabs .maintabs{display:flex; gap:2px; max-width:none; margin:0 auto; padding:0 24px}
.pagetabs .mtab{font-size:16px; font-weight:600; color:var(--muted)!important; text-decoration:none!important;
  border-bottom:2px solid transparent!important; margin-bottom:-1px; padding:10px 18px 11px}
.pagetabs .mtab:hover{color:var(--ink)!important}
.pagetabs .mtab[aria-current]{color:var(--ink)!important; border-bottom-color:var(--brass)!important}
@media (max-width:760px){ .pagetabs .maintabs{padding:0 6px; overflow-x:auto} .pagetabs .mtab{font-size:15px; padding:9px 12px 10px} }
html.embedded .pagetabs{display:none}
/* ---- Round 38 item 44 (Michael: "make sure all tabs on sections don't scroll up or down") ----
   On a phone every strip of tabs moves sideways only: the research page's band (.tabband .maintabs,
   template.html) and a standalone page's section tabs (.pagetabs). Each tab sat 1 px below its strip
   (margin-bottom:-1px, so its brass line covered the band's rule), which gave the strip 1 px to
   scroll up and down; the line now sits inside the strip. verify.js measures every strip at 390 and
   360 px. The entity pages' tabs (.ptabs) follow the same rules in _pagecss.css. */
@media (max-width:760px){
  .maintabs,.pagetabs .maintabs{overflow-x:auto; overflow-y:hidden; overscroll-behavior:none; touch-action:pan-x pan-y;
    scrollbar-width:none; -webkit-overflow-scrolling:touch}
  .maintabs::-webkit-scrollbar{display:none}
  .maintabs .mtab,.pagetabs .maintabs .mtab{margin-bottom:0}
}
.fbshotbtns{display:flex; flex-wrap:wrap; align-items:center; gap:8px}
.fbshotbtns button,.fbpick{font:inherit; font-size:13px; color:var(--ink); padding:6px 11px; border:1px solid var(--rule);
  border-radius:6px; background:var(--surface); cursor:pointer}
.fbshotbtns button:hover,.fbpick:hover{border-color:var(--brass)}
.fbpick input{position:absolute; width:1px; height:1px; opacity:0; pointer-events:none}
.fbpaste{font-size:12px; color:var(--faint)}
.fbpaste kbd{font:inherit; font-size:11px; border:1px solid var(--rule); border-radius:3px; padding:0 4px}
#feedbackForm.dropping{outline:2px dashed var(--brass); outline-offset:-6px}
.fbshots{display:flex; gap:8px; margin-top:8px}
.fbshot{position:relative; width:76px; height:56px; border:1px solid var(--rule); border-radius:4px; overflow:hidden}
.fbshot img{width:100%; height:100%; object-fit:cover; display:block; cursor:zoom-in}
/* A screenshot at full size, over the page (25 Oct 2026). */
.fbzoom{position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.72); display:flex; align-items:center; justify-content:center; padding:24px; cursor:zoom-out}
.fbzoom img{max-width:100%; max-height:100%; border-radius:6px; box-shadow:0 12px 40px rgba(0,0,0,.4); background:#fff}
.fbzoom button{position:absolute; top:14px; right:16px; width:34px; height:34px; border-radius:50%; border:0; background:rgba(255,255,255,.9); color:#111; font-size:20px; line-height:34px; cursor:pointer}
.fbshotbtns .full{opacity:.5}
.fbshot button{position:absolute; top:2px; right:2px; width:20px; height:20px; border-radius:50%; border:0; background:rgba(0,0,0,.6);
  color:#fff; font-size:13px; line-height:20px; padding:0; cursor:pointer}

/* ---------- phones (Michael, 27 Oct 2026) ----------
   The top row holds the search bar and, at its right, the menu button (28 Oct 2026), with a line
   under it; the name shows only inside the menu. The menu covers the screen: the name, search, a
   line, the sections with Updates and Feedback at the foot of that middle part (28 Oct 2026), and
   the light/dark switch at the very bottom. */
.menubtn{display:none}
.phonemenu[hidden]{display:none}
@media (max-width:760px){
  .menubtn{display:flex; order:2}
  .topbar{gap:6px; padding:0 4px 0 10px}
  .topbar .brand,.topbar .themebtn,#searchBtn,.railmini{display:none!important}
  .tools{justify-content:flex-start}
  .barsearch{display:flex; flex:1; max-width:none; position:relative}
  .barsearch input,.barsearch input:focus{font-size:16px; padding:8px 11px 8px 33px}
  .barsearch .searchclose{display:none}
  .barsearch .suggest{left:-6px; right:-6px; min-width:0; top:calc(100% + 7px); border-radius:0 0 8px 8px;
    max-height:calc(100vh - var(--barh) - 16px)}
  .phonemenu{position:fixed; inset:0; z-index:90; background:var(--ground); display:flex; flex-direction:column;
    padding:6px 16px 20px; overflow-y:auto; overscroll-behavior:contain}
  .pmhead{display:flex; align-items:center; justify-content:space-between; min-height:46px}
  .pmhead .brand{display:block; font-size:21px; margin:0}
  .pmclose{font-size:28px; line-height:1}
  .pmsearch{position:relative; padding:8px 0 16px; border-bottom:1px solid var(--rule)}
  .pmsearch > svg{position:absolute; left:11px; top:calc(50% - 4px); transform:translateY(-50%); width:15px; height:15px;
    stroke:var(--faint); fill:none; stroke-width:2; pointer-events:none}
  .pmsearch input{width:100%; font:inherit; font-size:16px; color:var(--ink); background:var(--surface);
    border:1px solid var(--rule); border-radius:6px; padding:9px 12px 9px 34px}
  .pmnav,.pmfoot{display:flex; flex-direction:column; gap:2px; padding:10px 0}
  .pmnav{flex:1 0 auto}
  .pmnav .pmfoot{margin-top:auto; padding:10px 0 4px}
  .pmnav .railbtn,.pmfoot .railbtn{flex-direction:row; justify-content:flex-start; width:auto; gap:14px; padding:11px 8px;
    font-size:16px; font-weight:600; color:var(--ink); background:none; border:0; text-align:left}
  .pmnav .railbtn svg,.pmfoot .railbtn svg{width:22px; height:22px}
  .pmnav .railbtn[aria-current] svg{background:var(--brass-soft); color:var(--brass); border-radius:8px}
  .pmfoot .raildiv{width:auto; margin:6px 8px}
  .pmtheme{margin-top:auto; display:flex; align-items:center; gap:14px; padding:12px 8px; font:inherit; font-size:16px;
    font-weight:600; color:var(--ink); background:none; border:0; border-top:1px solid var(--rule); text-align:left; cursor:pointer}
  .pmtheme svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8}
  html.menuopen,html.menuopen body{overflow:hidden}
  /* Nothing pulls past its edge: the page and its tables stay put at their ends. */
  html,body{overscroll-behavior:none}
}
.pmtheme .sun{display:none}
:root[data-theme="dark"] .pmtheme .sun{display:block}
:root[data-theme="dark"] .pmtheme .moon{display:none}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .pmtheme .sun{display:block}
  :root:not([data-theme="light"]) .pmtheme .moon{display:none}
}
/* a picture large beside the pointer on hover (topbar.js, 28 Oct 2026) */
.zoombox{position:fixed;z-index:90;pointer-events:none;padding:4px;background:var(--surface);border:1px solid var(--rule);border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.zoombox img{display:block;max-width:min(320px,calc(100vw - 32px));max-height:min(420px,calc(100vh - 32px));border-radius:4px}
.zoombox[hidden]{display:none}
.zoombox.logo{background:#fff;padding:10px;border-color:#e3e1dc}
.zoombox.logo img{max-width:160px;max-height:100px;border-radius:0}
/* Every bordered button shows its whole border (Michael, Round 30, 3 Nov 2026: the bottom edge of a
   round button kept disappearing). Two causes: the border colour (--rule, #e1e0d9) is almost the
   page's own, and a 13px font with a 1.5 line height makes a button 26.5px tall, so its bottom edge
   sits on half a pixel and the browser blurs it away. Buttons get a stronger border and a line
   height in whole pixels, so their heights are whole too. A new button that uses one of these
   classes (chip, mbtn, subtabs, bview, orgs) inherits both. */
:root{--btn-rule:#cfcdc4}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--btn-rule:#4a4944}}
:root[data-theme="dark"]{--btn-rule:#4a4944}
.chip,.subtabs button,.subtabs .submore summary,.bview button,p.orgs a,.wrap a.mbtn,.apfilters select,.stychip{
  border-color:var(--btn-rule)!important;line-height:18px}
.chip:hover,.subtabs button:hover,p.orgs a:hover,.wrap a.mbtn:hover{border-color:var(--brass)!important}
.subtabs button[aria-selected="true"]{border-color:var(--brass)!important}
.bview button[aria-pressed="true"]{border-color:var(--brass)!important}
/* A hover box always wraps its whole picture (Michael, Round 31: a box sized where it last stood,
   by the window's edge, stayed narrow and the logo spilled past its white background). */
.zoombox{width:max-content}
/* Feedback stands out in the rail so readers notice it (Michael, Round 31; Round 32: blue icon
   and label only, no dot and no pill behind the icon). */
.railbtn.fbnudge,.railbtn.fbnudge span{color:var(--brass)}
.railbtn.fbnudge span{font-weight:600}

/* List / Grid beside Start here and inside a heading (Michael, Round 32 items 8 and 9) */
.sprow{display:flex;align-items:flex-start;gap:16px}
.sprow .startpath{flex:1 1 auto;max-width:640px;margin-top:10px}
.sprow .bview{margin:10px 0 0 auto;flex:none}
h2:has(> .bview.inh2){display:flex;align-items:center;gap:8px}
h2 > .bview.inh2{margin:0 0 0 auto;font-size:12px;letter-spacing:0;text-transform:none;font-weight:400}

/* Cut-off text shown whole (Round 33 item 15): topbar.js places it under the text. */
.tipbox{position:fixed;z-index:60;max-width:min(440px,calc(100vw - 16px));padding:9px 12px;border:1px solid var(--rule);border-radius:8px;background:var(--surface);color:var(--ink);font-size:13px;line-height:1.45;box-shadow:0 6px 24px rgba(0,0,0,.14);pointer-events:none;white-space:normal}
.tipbox[hidden]{display:none}
/* The info mark beside a table heading (Round 44, C-58): "As of" for a Market cap column. */
.hinfo{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-left:4px;border:1px solid currentColor;border-radius:50%;font:600 9.5px/1 var(--sans,inherit);font-style:normal;text-transform:none;letter-spacing:0;color:var(--muted);cursor:help;vertical-align:1px}
.hinfo:focus-visible{outline:2px solid var(--brand,currentColor);outline-offset:1px}
@font-face{font-family:Inter;src:url("../fonts/inter-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
