/* Site styles. Public pages (body.pub) wear the look Marc picked, Mockup A "The Void": deep-space blacks and
   indigos, starlight text, one warm amber accent; Lora for headings, Newsreader for reading, Syncopate for
   small wide labels. The admin and its sign-in cards stay plain and light (the :root tokens, system fonts).
   Self-hosted fonts, no inline styles anywhere (strict CSP). The home page's 3D stage has its own file, void.css. */
@font-face { font-family: 'Lora'; src: url('/fonts/heading.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/fonts/heading-italic.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/reading.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/reading-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Syncopate'; src: url('/fonts/label-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Syncopate'; src: url('/fonts/label-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F3F1EC; --paper: #FFFFFF; --ink: #1C1A17; --ink-2: #3E3A33; --muted: #6A645A;
  --line: #E2DDD3; --line-2: #EFEBE3;
  --accent: #A3322A; --accent-dark: #7E241E; --accent-tint: #F6E6E3; --accent-ink: #FFFFFF;
  --ok: #2F7D4F; --ok-tint: #E4F2E8; --warn: #8A5300; --warn-tint: #FCF0D9; --bad: #B4400B; --bad-tint: #FDEBD8;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 28px rgba(0,0,0,.08);
  --radius: 10px;
  --f-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ui: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --f-display: var(--f-body);
  --f-label: var(--f-ui);
}
body.pub {
  --bg: #03040E; --paper: #0B0E28; --ink: #EEF1FF; --ink-2: #C9CEEA; --muted: #8C93BE;
  --line: #262B57; --line-2: #151938;
  --accent: #FFBE5C; --accent-dark: #FFD08A; --accent-tint: #2A2416; --accent-ink: #1A1206;
  --ok-tint: #12291C; --warn-tint: #2E2410; --bad-tint: #33190F;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.5);
  --radius: 14px;
  --f-body: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-display: 'Lora', Georgia, 'Times New Roman', serif;
  --f-label: 'Syncopate', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h2 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--line-2); padding: .05em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.fine { font-size: .86rem; color: var(--muted); font-family: var(--f-ui); }
.eyebrow { font-family: var(--f-label); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 .5rem; }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 42rem; }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons, chips, messages */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; white-space: nowrap; min-height: 44px; padding: 0 1.05rem; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .97rem var(--f-ui); text-decoration: none; cursor: pointer; max-width: 100%; }
@media (max-width: 520px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: .5rem; padding-bottom: .5rem; } }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.small { min-height: 38px; padding: 0 .85rem; font-size: .9rem; }
.btn.block { width: 100%; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); text-decoration: underline; cursor: pointer; }
.ic { flex: none; }
.chip { display: inline-block; font: 700 .74rem var(--f-ui); letter-spacing: .03em; padding: .14rem .55rem; border-radius: 999px; background: var(--line-2); color: var(--ink-2); vertical-align: middle; }
.chip.ok { background: var(--ok-tint); color: var(--ok); }
.chip.warn { background: var(--warn-tint); color: var(--warn); }
.chip.bad { background: var(--bad-tint); color: var(--bad); }
body.pub .chip.ok { color: #7FD39C; } body.pub .chip.warn { color: #F2C46B; } body.pub .chip.bad { color: #F49A7A; }
.form-err, .form-ok, .notice { border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1rem; font-family: var(--f-ui); font-size: .95rem; }
.form-err { background: var(--bad-tint); color: var(--bad); border: 1px solid currentColor; }
.form-ok { background: var(--ok-tint); color: var(--ok); border: 1px solid currentColor; }
body.pub .form-err { color: #F49A7A; } body.pub .form-ok { color: #7FD39C; }
.notice { background: var(--line-2); color: var(--ink-2); }
.draft { display: inline-block; font: 700 .8rem var(--f-ui); color: var(--warn); background: var(--warn-tint); border-radius: 6px; padding: .2rem .6rem; }

/* ---------- form fields */
.field { display: flex; flex-direction: column; gap: .35rem; font-family: var(--f-ui); }
.field > span { font-weight: 700; font-size: .93rem; }
.field small { color: var(--muted); font-size: .84rem; }
.field input, .field textarea, .field select { font: 1rem var(--f-ui); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: .65rem .75rem; min-height: 44px; width: 100%; }
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-family: var(--f-ui); }
.check input { width: 20px; height: 20px; margin-top: .15rem; }
.choice { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; display: grid; gap: .7rem; margin: 0; }
.choice legend { font: 700 .93rem var(--f-ui); padding: 0 .3rem; }

/* ---------- header and footer */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand .mark { color: var(--accent); }
.brand .logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; }
.top-a { display: flex; align-items: center; gap: .5rem; }
.top-nav { display: flex; gap: .2rem; }
.top-nav a { font: 600 .93rem var(--f-ui); color: var(--ink-2); text-decoration: none; padding: .5rem .6rem; border-radius: 8px; }
.top-nav a:hover, .top-nav a.on { color: var(--ink); background: var(--line-2); }
@media (max-width: 760px) { .top-nav { display: none; } }
.nudge { background: var(--warn-tint); color: var(--ink); font: .92rem var(--f-ui); padding: .6rem 0; }
.foot { margin-top: 4rem; border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-family: var(--f-ui); }
.foot-in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.foot-links a { color: var(--ink-2); }
main { min-height: 50vh; }

/* ---------- page heads */
.page-head { padding-top: 2.2rem; padding-bottom: 1.2rem; }
/* ---------- entries and lists */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.item h2, .item h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.item h2 a, .item h3 a { color: var(--ink); text-decoration: none; }
.item h2 a:hover, .item h3 a:hover { text-decoration: underline; }
.meta { font: .84rem var(--f-ui); color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem .8rem; align-items: center; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }
.entry-head { padding-top: 2rem; padding-bottom: 1rem; }
.dek { font-size: 1.2rem; color: var(--ink-2); }
.sources { font-family: var(--f-ui); font-size: .95rem; overflow-wrap: anywhere; } /* long web addresses in source notes break instead of widening the page on phones */
.entry-body h2 { font-size: 1.2rem; color: var(--accent-dark); margin: 1.6em 0 .5em; }
.sources li { margin-bottom: .5rem; }
.empty-note { color: var(--muted); font-family: var(--f-ui); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.2rem; text-align: center; }

/* ---------- the discussion board */
.post { border-left: 3px solid var(--line); padding: .3rem 0 .3rem .9rem; margin: 0 0 1.2rem; }
.post .meta { font-family: var(--f-mono); }
.post.hidden-post { opacity: .55; }
.post-body p { margin: 0 0 .6em; }
.post-actions { display: flex; gap: .8rem; margin-top: .2rem; }
details.flag > summary { cursor: pointer; font: .82rem var(--f-ui); color: var(--muted); }

/* ---------- account pages */
.auth-wrap { padding: 2.5rem 16px; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; }
.acct { padding: 2rem 16px; }
.acct-head { margin-bottom: 1rem; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; }
.panel h2 { font-size: 1.1rem; }
.danger-zone { border-color: var(--bad); }

/* ---------- home, library and entries */
.hero { padding: 4rem 0 3rem; background: radial-gradient(ellipse at 70% 20%, #262B55 0%, var(--bg) 60%); border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); max-width: 16ch; }
.btnrow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin-bottom: 2rem; }
.card { display: flex; flex-direction: column; gap: .35rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--accent); color: var(--ink); }
.card b { font-size: 1.08rem; }
.card span { font-size: .93rem; line-height: 1.45; color: var(--ink-2); }
.card .count { margin-top: auto; font: 700 .78rem var(--f-mono); color: var(--muted); }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.two-col > * { min-width: 0; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.list.compact { gap: .5rem; font-family: var(--f-ui); }
.lib { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.lib > * { min-width: 0; }
@media (max-width: 820px) { .lib { grid-template-columns: 1fr; } }
.lib-filters .eyebrow { margin-top: 1.4rem; }
.filter-list { list-style: none; margin: 0; padding: 0; font: .93rem var(--f-ui); display: grid; gap: .15rem; }
.filter-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem .5rem; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.filter-list a:hover, .filter-list a.on { background: var(--line-2); color: var(--ink); }
.filter-list small { color: var(--muted); font-family: var(--f-mono); }
.quotes { display: grid; gap: 1rem; margin: 0 0 1.6rem; max-width: 44rem; }
.quote { margin: 0; padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.quote blockquote { margin: 0 0 .4rem; font-size: 1.2rem; font-style: italic; }
.quote blockquote p { margin: 0; }
.quote figcaption { font: .88rem var(--f-ui); color: var(--muted); }
.ad-slot { max-width: 1120px; margin: 1.5rem auto; padding: 0 16px; }
.ad-slot span { display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1px dashed var(--line); border-radius: var(--radius); font: .8rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lib-filters .ad-slot { padding: 0; }

/* ===================================================================== The Void, on every public page
   (overrides of the basics above; the admin never has body.pub) */
body.pub { background: radial-gradient(ellipse 80% 50% at 15% -5%, #141a4a 0%, rgba(20,26,74,0) 70%), radial-gradient(ellipse 60% 40% at 95% 5%, #1c1240 0%, rgba(28,18,64,0) 70%), var(--bg); background-repeat: no-repeat; font-size: 1.125rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; /* clip, not hidden: hidden makes Safari treat body as the scroller and the sticky header stops sticking */ }
body.pub h1, body.pub h2, body.pub h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; }
body.pub h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.06; }
body.pub h2 { font-size: 1.55rem; }
body.pub ::selection { background: rgba(255,190,92,.3); color: #fff; }
body.pub :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.pub .eyebrow, body.pub h2.eyebrow { font-family: var(--f-label); font-size: .62rem; font-weight: 400; letter-spacing: .3em; color: var(--accent); }
body.pub .lede, body.pub .dek { font-style: italic; color: var(--ink-2); }
body.pub .dek { color: var(--accent-dark); font-size: 1.3rem; line-height: 1.5; }
body.pub .meta { font: .6rem var(--f-label); letter-spacing: .18em; text-transform: uppercase; gap: .4rem 1rem; line-height: 1.8; }
body.pub .meta a { color: var(--accent-dark); text-decoration: none; }
body.pub .chip { font: 400 .56rem var(--f-label); letter-spacing: .16em; text-transform: uppercase; padding: .3rem .6rem; background: var(--line-2); border: 1px solid var(--line); }
body.pub .fine { font-family: var(--f-body); font-size: .92rem; }
body.pub .btn { border-radius: 999px; border: 1px solid var(--line); background: rgba(11,14,40,.6); font: 400 .62rem var(--f-label); letter-spacing: .18em; text-transform: uppercase; padding: 0 1.2rem; }
body.pub .btn:hover { border-color: rgba(255,190,92,.5); color: var(--ink); }
body.pub .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.pub .btn.primary:hover { background: #FFD99A; color: var(--accent-ink); filter: none; }
body.pub .btn.danger { border-color: var(--bad); color: #F49A7A; }
body.pub .linkish { color: var(--accent-dark); }
body.pub .field input, body.pub .field textarea, body.pub .field select { background: rgba(5,7,24,.8); border: 1px solid var(--line); border-radius: 10px; font-family: var(--f-body); font-size: 1.05rem; }
body.pub .field input:focus, body.pub .field textarea:focus, body.pub .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,190,92,.15); }

/* header and footer */
body.pub .top { background: linear-gradient(to bottom, rgba(3,4,14,.94), rgba(3,4,14,.8)); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30; }
body.pub .logo-name { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.3rem; }
body.pub .top-nav a { font: 400 .6rem var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); padding: .65rem .75rem; border-radius: 999px; }
body.pub .top-nav a:hover, body.pub .top-nav a.on { background: rgba(255,190,92,.12); color: var(--accent-dark); }
body.pub .foot { border-top: 1px solid var(--line); background: rgba(2,3,10,.6); }
body.pub .foot-links a { font: .6rem var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
body.pub .foot-links a:hover { color: var(--accent-dark); }
body.pub .foot .fine { font-style: italic; }

/* panels: library items, cards, quotes */
body.pub .item, body.pub .card, body.pub .panel, body.pub .auth-card { background: linear-gradient(180deg, rgba(14,17,48,.82), rgba(8,10,30,.82)); border: 1px solid var(--line); }
body.pub .item { padding: 1.1rem 1.25rem; }
body.pub .item h2, body.pub .item h3 { font-size: 1.45rem; }
body.pub .item h2 a:hover, body.pub .item h3 a:hover { color: var(--accent-dark); text-decoration: none; }
body.pub .card { transition: border-color .2s, transform .2s; }
body.pub .card:hover { border-color: rgba(255,190,92,.55); transform: translateY(-2px); }
body.pub .card b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
body.pub .card .count { font: .56rem var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
body.pub .quote { background: transparent; border-left: 1px solid var(--accent); border-radius: 0; padding: .3rem 0 .3rem 1.3rem; }
body.pub .quote blockquote { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.35; color: var(--ink); }
body.pub .quote figcaption { font-family: var(--f-body); font-size: .95rem; }
body.pub .entry-body h2 { color: var(--ink); font-size: 1.6rem; }
body.pub .entry-body > p:first-child::first-letter { font-family: var(--f-display); float: left; font-size: 3.4em; line-height: .85; padding: .08em .12em 0 0; color: var(--accent); }
body.pub .sources, body.pub .filter-list, body.pub .list.compact { font-family: var(--f-body); font-size: 1rem; }
body.pub .filter-list small { font-family: var(--f-label); font-size: .56rem; }
body.pub .filter-list a:hover, body.pub .filter-list a.on { background: rgba(255,190,92,.1); color: var(--accent-dark); }
body.pub .post { border-left: 1px solid var(--line); }
body.pub .post .meta { font-family: var(--f-label); }
body.pub .empty-note { font-family: var(--f-body); font-style: italic; }
body.pub .ad-slot span { font: .56rem var(--f-label); letter-spacing: .3em; border-color: var(--line); background: repeating-linear-gradient(135deg, rgba(255,255,255,.014) 0 10px, transparent 10px 20px); }
body.pub .nudge { background: #2A2416; color: var(--ink); }

/* the plain home page (under the 3D stage, or on its own without WebGL) */
body.pub .hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; overflow: hidden;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(238,241,255,.9), transparent), radial-gradient(1px 1px at 28% 68%, rgba(238,241,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 44% 14%, rgba(255,214,160,.8), transparent), radial-gradient(1px 1px at 63% 42%, rgba(238,241,255,.6), transparent),
    radial-gradient(2px 2px at 78% 26%, rgba(238,241,255,.9), transparent), radial-gradient(1px 1px at 88% 74%, rgba(200,210,255,.7), transparent),
    radial-gradient(1px 1px at 6% 84%, rgba(238,241,255,.6), transparent), radial-gradient(1.5px 1.5px at 53% 88%, rgba(200,210,255,.7), transparent),
    radial-gradient(ellipse 70% 60% at 70% 30%, rgba(76,70,190,.35), transparent 70%), radial-gradient(ellipse 50% 50% at 15% 80%, rgba(255,143,179,.12), transparent 70%),
    radial-gradient(ellipse 40% 40% at 72% 30%, rgba(255,190,92,.12), transparent 70%), var(--bg); }
body.pub .hero h1 { font-size: clamp(2.4rem, 7.2vw, 5.4rem); max-width: 14ch; line-height: 1.02; text-shadow: 0 0 40px rgba(130,150,255,.35); }
body.pub .hero .lede { font-size: 1.3rem; max-width: 38rem; }
body.home.gl-on .hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
body.home.gl-on .hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); }

@media (max-width: 720px) {
  body.pub { font-size: 1.0625rem; }
  body.pub .quote blockquote { font-size: 1.25rem; }
}

/* ---------- live ads: our own (direct or house) and Google's. The label sits under the ad. */
.ad-own, .ad-google { text-align: center; }
.ad-own img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.ad-google .adsbygoogle { display: block; min-height: 90px; }
body.pub .ad-slot .ad-label, .ad-slot .ad-label { display: block; min-height: 0; border: 0; background: none; margin-top: .45rem; font: .56rem var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.ad-label a { color: inherit; }
.ad-table td, .ad-table th { vertical-align: top; }
.prose .tablewrap { overflow-x: auto; margin: 0 0 1rem; }
.prose .tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose .tbl th, .prose .tbl td { text-align: left; padding: .55rem .7rem .55rem 0; border-bottom: 1px solid var(--line); }
.prose .tbl th { font: .58rem var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.prose .tbl td:last-child { white-space: nowrap; }

/* ----- support the library (shown only once a PayPal link is saved in Admin → Support button) */
.sup-top { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; flex: none; min-height: 38px; padding: 0 .9rem; border-radius: 999px; border: 1px solid rgba(255,190,92,.55); background: rgba(255,190,92,.1); color: var(--accent-dark); font: 400 .6rem var(--f-label); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap; box-shadow: 0 0 14px rgba(255,190,92,.18); }
.sup-top svg, .sup-big svg, .sup-box-t svg { fill: currentColor; stroke: none; }
.sup-top svg { width: 15px; height: 15px; color: var(--accent); }
.sup-top:hover, .sup-top.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.sup-top:hover svg, .sup-top.on svg { color: var(--accent-ink); }
@media (max-width: 480px) { .sup-top { width: 38px; padding: 0; } .sup-lbl { display: none; } }
/* the page */
.sup-head .lede { margin-bottom: 1.4rem; }
.sup-cta { margin: 0 0 .5rem; }
.btn.sup-big { min-height: 58px; padding: 0 1.7rem; font-size: 1.1rem; border-radius: 999px; box-shadow: 0 0 26px rgba(255,190,92,.35); white-space: normal; text-align: center; }
.btn.sup-big svg { width: 22px; height: 22px; flex: none; }
.sup-ways { padding-left: 1.2rem; }
.sup-ways li { margin-bottom: .45rem; }
/* the small box at the end of an entry */
.sup-box { margin: 2rem 0 0; padding: .9rem 1rem; border: 1px solid rgba(255,190,92,.4); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,190,92,.1), rgba(255,143,179,.05)); font-family: var(--f-ui); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.sup-box p { margin: 0; }
.sup-box-t { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); font-size: .97rem; flex: 1 1 18rem; }
.sup-box-t b { color: var(--ink); }
.sup-box-t svg { flex: none; width: 20px; height: 20px; margin-top: .15rem; color: var(--accent); }
.btn.sup-btn { border-color: rgba(255,190,92,.6); color: var(--accent-dark); }
.btn.sup-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ----- reading settings: the text-size and light/dark pill in the header (public pages; shown only with JavaScript,
   which prefs.js signals with html.js). Text size scales the whole page: everything public is sized in rem. */
html.pub { font-size: 112.5%; } /* public pages read larger by default (2026-10-12); the pill steps from here */
html.pub[data-fs="1"] { font-size: 100%; }
html.pub[data-fs="3"] { font-size: 125%; }
html.pub[data-fs="4"] { font-size: 140%; }
html.pub[data-fs="5"] { font-size: 160%; }
html.pub[data-fs="6"] { font-size: 180%; }
.prefs { display: none; flex: none; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--line-2); padding: 2px; }
html.js .prefs { display: inline-flex; }
.prefs button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 15px/1 var(--f-display); cursor: pointer; }
.prefs button span { font-family: var(--f-ui); font-size: 12px; margin-left: 1px; }
.prefs .pf-dn { font-size: 13px; }
.prefs button:hover:not(:disabled) { background: var(--paper); color: var(--accent-dark); }
.prefs button:disabled { opacity: .35; cursor: default; }
.prefs .pf-th { border-left: 1px solid var(--line); border-radius: 0 999px 999px 0; width: 36px; }
.prefs .pf-th svg { width: 17px; height: 17px; }
.pf-moon { display: none; }
html[data-theme="light"] .pf-sun { display: none; }
html[data-theme="light"] .pf-moon { display: inline; }
/* phones: the header holds the brand, this pill, Support and Sign in, so the name gives way first */
@media (max-width: 520px) { .top-in { gap: .5rem; } .top-a { gap: .35rem; } .prefs button { width: 31px; } .prefs .pf-th { width: 33px; } }
@media (max-width: 440px) { .top .logo-name { display: none; } }

/* ----- the light theme (the reader's choice; dark, The Void, is the site's own look). Parchment and ink, the same
   fonts, a deeper amber so links and labels stay readable on paper. Not while the home page's 3D stage is running:
   that stays a night sky (and its own top bar has no pill). */
html[data-theme="light"]:not(.gl-boot) body.pub {
  --bg: #F4F0E6; --paper: #FFFDF7; --ink: #1B1A2E; --ink-2: #3A3B5C; --muted: #66657F;
  --line: #DBD3C1; --line-2: #ECE6D7;
  --accent: #A3570F; --accent-dark: #85460B; --accent-tint: #F5E7D2; --accent-ink: #FFFFFF;
  --ok-tint: #E4F2E8; --warn-tint: #FBEFD6; --bad-tint: #FCE9DF;
  --shadow: 0 1px 2px rgba(40,30,10,.06), 0 12px 30px rgba(40,30,10,.08);
  background: radial-gradient(ellipse 80% 50% at 15% -5%, #E9E3F2 0%, rgba(233,227,242,0) 70%), radial-gradient(ellipse 60% 40% at 95% 5%, #F6E6CF 0%, rgba(246,230,207,0) 70%), var(--bg);
  background-repeat: no-repeat; color-scheme: light;
}
html[data-theme="light"]:not(.gl-boot) body.pub ::selection { background: rgba(163,87,15,.22); color: var(--ink); }
html[data-theme="light"]:not(.gl-boot) body.pub .top { background: linear-gradient(to bottom, rgba(250,247,240,.95), rgba(250,247,240,.86)); }
html[data-theme="light"]:not(.gl-boot) body.pub .top-nav a:hover, html[data-theme="light"]:not(.gl-boot) body.pub .top-nav a.on,
html[data-theme="light"]:not(.gl-boot) body.pub .filter-list a:hover, html[data-theme="light"]:not(.gl-boot) body.pub .filter-list a.on { background: rgba(163,87,15,.1); }
html[data-theme="light"]:not(.gl-boot) body.pub .foot { background: rgba(236,230,215,.6); }
html[data-theme="light"]:not(.gl-boot) body.pub .btn { background: rgba(255,253,247,.8); }
html[data-theme="light"]:not(.gl-boot) body.pub .btn:hover { border-color: rgba(163,87,15,.55); }
html[data-theme="light"]:not(.gl-boot) body.pub .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
html[data-theme="light"]:not(.gl-boot) body.pub .btn.primary:hover { background: var(--accent-dark); }
html[data-theme="light"]:not(.gl-boot) body.pub .btn.danger, html[data-theme="light"]:not(.gl-boot) body.pub .form-err { color: #A8380B; }
html[data-theme="light"]:not(.gl-boot) body.pub .form-ok { color: #2F7D4F; }
html[data-theme="light"]:not(.gl-boot) body.pub .chip.ok { color: #2F7D4F; }
html[data-theme="light"]:not(.gl-boot) body.pub .chip.warn { color: #8A5300; }
html[data-theme="light"]:not(.gl-boot) body.pub .chip.bad { color: #A8380B; }
html[data-theme="light"]:not(.gl-boot) body.pub .field input, html[data-theme="light"]:not(.gl-boot) body.pub .field textarea, html[data-theme="light"]:not(.gl-boot) body.pub .field select { background: #FFFFFF; }
html[data-theme="light"]:not(.gl-boot) body.pub .field input:focus, html[data-theme="light"]:not(.gl-boot) body.pub .field textarea:focus, html[data-theme="light"]:not(.gl-boot) body.pub .field select:focus { box-shadow: 0 0 0 3px rgba(163,87,15,.15); }
html[data-theme="light"]:not(.gl-boot) body.pub .item, html[data-theme="light"]:not(.gl-boot) body.pub .card,
html[data-theme="light"]:not(.gl-boot) body.pub .panel, html[data-theme="light"]:not(.gl-boot) body.pub .auth-card { background: var(--paper); }
html[data-theme="light"]:not(.gl-boot) body.pub .card:hover { border-color: rgba(163,87,15,.5); }
html[data-theme="light"]:not(.gl-boot) body.pub .nudge { background: var(--warn-tint); }
html[data-theme="light"]:not(.gl-boot) body.pub .ad-slot span { background: repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 10px, transparent 10px 20px); }
html[data-theme="light"]:not(.gl-boot) body.pub .hero { background: radial-gradient(ellipse 70% 60% at 70% 30%, rgba(120,110,210,.16), transparent 70%), radial-gradient(ellipse 50% 50% at 15% 80%, rgba(255,143,179,.12), transparent 70%), radial-gradient(ellipse 40% 40% at 72% 30%, rgba(255,190,92,.22), transparent 70%), var(--bg); }
html[data-theme="light"]:not(.gl-boot) body.pub .hero h1 { text-shadow: none; }
html[data-theme="light"]:not(.gl-boot) body.pub .sup-top, html[data-theme="light"]:not(.gl-boot) body.pub .sup-box,
html[data-theme="light"]:not(.gl-boot) body.pub .btn.sup-btn { border-color: rgba(163,87,15,.45); box-shadow: none; }
html[data-theme="light"]:not(.gl-boot) body.pub .sup-top:hover, html[data-theme="light"]:not(.gl-boot) body.pub .sup-top.on { color: var(--accent-ink); }
html[data-theme="light"]:not(.gl-boot) body.pub .btn.sup-big { box-shadow: 0 6px 20px rgba(163,87,15,.25); }
/* the header keeps its own size whatever the text size (it's sized in px), so the pill never pushes it off screen */
body.pub .logo-name { font-size: 21px; }
body.pub .top-nav a { font-size: 9.6px; padding: 10px 12px; white-space: nowrap; }
body.pub .top .btn.small, body.pub .sup-top { font-size: 9.6px; padding: 0 14px; }
body.pub .nudge { font-size: 15px; }
@media (max-width: 1120px) {
  body.pub .top-nav a { letter-spacing: .12em; padding: 10px 8px; }
  .sup-top { width: 38px; padding: 0; } body.pub .sup-top { padding: 0; } .sup-lbl { display: none; }
}
body.pub .top-in { gap: 12px; } body.pub .top-a { gap: 8px; } body.pub .top-nav { gap: 2px; } body.pub .brand, body.pub .brand .logo { gap: 9px; }
/* tablets: the brand already links home, so the Home link steps aside to keep the header on one line */
@media (max-width: 1200px) { body.pub .top-nav .nav-home { display: none; } }
@media (max-width: 900px) { body.pub .top-nav a { letter-spacing: .06em; padding: 10px 6px; } }
@media (min-width: 761px) and (max-width: 820px) { .top .logo-name { display: none; } }

/* ----- anonymous polls (on /polls, the home page and entries) and the reading shelf */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.poll { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; margin: 2rem 0; background: var(--paper); scroll-margin-top: 90px; }
body.pub .poll { background: linear-gradient(180deg, rgba(14,17,48,.82), rgba(8,10,30,.82)); }
body.pub .poll .poll-q { font-size: 1.6rem; line-height: 1.15; margin: .35rem 0 .4rem; }
.poll-blurb { color: var(--ink-2); font-style: italic; margin: 0 0 1rem; }
.poll fieldset { border: 0; padding: 0; margin: 0 0 .6rem; display: grid; gap: .5rem; }
.poll-opt { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 1.05rem; line-height: 1.3; transition: border-color .15s, background .15s; }
.poll-opt:hover { border-color: var(--accent); }
.poll-opt input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; margin: 0; }
.poll-opt:has(input:checked) { border-color: var(--accent); background: rgba(255,190,92,.08); }
.poll .btnrow { align-items: center; }
.poll-see { font-size: .95rem; color: var(--ink-2); }
.poll-res { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .8rem; }
.poll-res li { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; align-items: baseline; }
.poll-lbl { font-size: 1.05rem; line-height: 1.3; min-width: 0; }
.poll-pct { font: .7rem var(--f-label); letter-spacing: .1em; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.poll-res progress { grid-column: 1 / -1; width: 100%; height: .55rem; border: 0; border-radius: 999px; overflow: hidden; background: var(--line-2); -webkit-appearance: none; appearance: none; }
.poll-res progress::-webkit-progress-bar { background: var(--line-2); border-radius: 999px; }
.poll-res progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.poll-res progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
body.pub .poll-res progress, body.pub .poll-res progress::-webkit-progress-bar { background: rgba(170,180,255,.14); }
.polls .poll:first-child { margin-top: 0; }
.home-poll { margin-top: 2.5rem; margin-bottom: 2rem; }
.home-poll .poll { margin-bottom: .6rem; }
.lib-more { margin-top: 1.4rem; }
.shelf-sec { margin: 0 0 2.6rem; }
.shelf-sec > h2 { margin: 0 0 .2rem; }
.books { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.book { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--paper); }
body.pub .book { background: linear-gradient(180deg, rgba(14,17,48,.82), rgba(8,10,30,.82)); }
.book p { margin: 0; }
body.pub .book-t { font-family: var(--f-display); font-style: italic; font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.book-a { margin-top: .2rem !important; color: var(--ink-2); }
.book-b { margin-top: .55rem !important; line-height: 1.5; }
.book-l { margin-top: .6rem !important; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .95rem; }
html[data-theme="light"]:not(.gl-boot) body.pub .poll, html[data-theme="light"]:not(.gl-boot) body.pub .book { background: var(--paper); }
html[data-theme="light"]:not(.gl-boot) body.pub .poll-res progress, html[data-theme="light"]:not(.gl-boot) body.pub .poll-res progress::-webkit-progress-bar { background: var(--line-2); }
html[data-theme="light"]:not(.gl-boot) body.pub .poll-opt:has(input:checked) { background: var(--accent-tint); }

/* ----- "Your turn" (visitors' own thoughts on the Polls page), and the Polls button in the phone header */
.poll-top { display: none; }
@media (max-width: 760px) {
  .poll-top { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent-dark); text-decoration: none; }
  .poll-top svg { width: 18px; height: 18px; }
  .poll-top:hover, .poll-top.on { border-color: var(--accent); background: rgba(255,190,92,.12); }
}
.your-turn { border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; margin: 2.4rem 0; background: var(--paper); scroll-margin-top: 90px; }
body.pub .your-turn { background: linear-gradient(180deg, rgba(40,28,10,.35), rgba(8,10,30,.82)); border-color: rgba(255,190,92,.45); }
.your-turn > h2 { margin: 0 0 .3rem; }
.your-turn .lede { font-size: 1.05rem; margin: 0 0 1rem; }
.note-form { display: grid; gap: .8rem; }
.note-form .btnrow, .note-form .fine { margin: 0; }
.note-form textarea { width: 100%; min-height: 7rem; resize: vertical; }
.poll-more { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.poll-more summary { cursor: pointer; color: var(--accent-dark); font-size: 1rem; }
.poll-more .note-form { margin-top: .8rem; }
.notes { margin: 2.4rem 0; }
.note-list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.note { border-left: 2px solid var(--accent); padding: .2rem 0 .2rem 1.1rem; }
.note blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; font-style: italic; }
.note blockquote p { margin: 0 0 .5rem; }
.note .fine { margin: .2rem 0 0; }
html[data-theme="light"]:not(.gl-boot) body.pub .your-turn { background: var(--accent-tint); border-color: rgba(163,87,15,.45); }

/* At a glance (under an entry's title) and Still asking's note (after the write-up) */
.glance { margin: 0 0 2rem; padding: 1.1rem 1.3rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
body.pub .glance h2 { font-family: var(--f-label); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 .6rem; }
.glance h2 .chip { letter-spacing: 0; text-transform: none; }
body.pub .glance h3 { font-family: var(--f-label); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .35rem; }
.glance-nut { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.glance ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; line-height: 1.5; }
.glance li::marker { color: var(--accent); }
.glance-dyk { color: var(--ink-2); }
.still-asking { margin: 2.4rem 0 2rem; padding: 1.2rem 1.4rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 var(--radius) var(--radius) 0; }
body.pub .still-asking h2 { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--accent-dark); margin: 0 0 .5rem; }
.still-asking h2 .chip { font-family: var(--f-body); font-style: normal; font-size: .75rem; }
.still-asking p { font-size: 1.08rem; line-height: 1.6; font-style: italic; margin: 0 0 .7rem; }
.still-asking p.fine { font-style: normal; font-size: .85rem; color: var(--muted); margin: .8rem 0 0; }

/* "When the question won't let go": the help line stands out from the prose in both themes. */
.help-line { border-left: 4px solid currentColor; margin: 1.2rem 0; line-height: 1.5; }
.help-hint { margin-top: 1rem; }

/* Curator's Picks: the box on a pick, and the numbered list on /picks */
.pick-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.6rem 0; }
.pick-h { margin: 0; font-family: var(--f-ui); font-weight: 600; }
.pick-note { font-style: italic; color: var(--ink-2); margin: .5rem 0 0; }
.pick-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.2rem; margin: .8rem 0 0; }
.pick-next { margin-left: auto; text-align: right; }
ol.picks { counter-reset: pick; }
ol.picks > .item { counter-increment: pick; }
ol.picks h2::before { content: counter(pick) ". "; color: var(--muted); }
