:root {
  --paper: #fbf5e9;
  --card: #fffdf8;
  --ink: #2b2118;
  --muted: #6e5f50;
  --accent: #b3471d;
  --accent-ink: #fff;
  --line: #e6dac4;
  --shadow: 0 10px 30px rgba(70, 45, 20, .12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d1916; --card: #27221d; --ink: #f3eadc; --muted: #b8a993;
    --accent: #e9814f; --accent-ink: #1d1916; --line: #3b332b; --shadow: 0 10px 30px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: "Literata", Georgia, serif;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; cursor: pointer; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; font-family: "Fredoka", sans-serif;
}
.topbar .home { color: var(--accent); text-decoration: none; font-weight: 600; }
.book-title { font-weight: 700; font-size: 1.15rem; }
.pageno { color: var(--muted); font-variant-numeric: tabular-nums; }

.spread {
  max-width: 1180px; margin: 0 auto; padding: 0 16px 32px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start;
}
@media (max-width: 820px) { .spread { grid-template-columns: 1fr; gap: 18px; } }

.canvas-wrap {
  position: relative; background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--line);
}
canvas { width: 100%; height: 100%; display: block; touch-action: manipulation; cursor: crosshair; }
.loading {
  position: absolute; inset: 0; display: grid; place-items: center; background: #fff;
  font-family: "Fredoka", sans-serif; color: #8a7a68; font-size: 1.1rem;
}
.loading[hidden] { display: none; }

.palette { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; justify-content: center; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 2px 4px rgba(0,0,0,.12); padding: 0;
  transition: transform .12s;
}
.swatch[aria-checked="true"] { transform: scale(1.18); box-shadow: 0 0 0 3px var(--ink); }
@media (max-width: 480px) { .swatch { width: 34px; height: 34px; } }

.tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tools button, .pager button, .read-aloud {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: .95rem;
}
.tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tools button:hover, .pager button:hover:not(:disabled), .read-aloud:hover { border-color: var(--accent); }

.story-side {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  padding: 28px 28px 20px; border: 1px solid var(--line);
}
.story-side h1 {
  font-family: "Fredoka", sans-serif; font-weight: 700; color: var(--accent);
  font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 14px; line-height: 1.1;
}
.story-text p { font-size: clamp(1.08rem, 2.2vw, 1.22rem); line-height: 1.65; margin: 0 0 14px; }
.story-text p:first-child::first-letter {
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 3.1em; float: left;
  line-height: .9; margin: 4px 8px 0 0; color: var(--accent);
}
.read-aloud { margin: 2px 0 16px; }
.w { border-radius: 4px; transition: background-color .12s, color .12s; }
.w.now { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--accent); }
.read-aloud.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* "Talk about it": an aside for the grown-up reading along, never part of the story. Light grey,
   a little smaller than the story text, and its own label. Switched off with the reader's Talk button. */
.talk {
  --talk-bg: #efedea; --talk-ink: #4f4a45; --talk-line: #d9d5cf;
  background: var(--talk-bg); color: var(--talk-ink); border: 1px solid var(--talk-line);
  border-radius: 12px; padding: 10px 14px; margin: 4px 0 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .talk { --talk-bg: #2a2724; --talk-ink: #c9c3bb; --talk-line: #3d3934; }
}
.talk span { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--talk-ink); opacity: .8; }
.talk p { margin: 3px 0 0; font-size: .92rem; line-height: 1.5; }
.talk[hidden] { display: none; }
.talk-toggle { font: inherit; font-size: .9rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.talk-toggle[aria-pressed="false"] { text-decoration: line-through; opacity: .75; }
/* A picture book that has the full original text elsewhere in the library links to it, for grown-ups. */
.original-link { max-width: 760px; margin: 8px max(16px, calc(50% - 380px)) 0; text-align: center; padding: 8px 14px; font-size: .95rem; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; }
.original-link a { color: var(--accent); font-weight: 600; }
.book > a.pdf.original { border-top: 0; padding-top: 0; font-weight: 500; }
.verse { font-style: italic; color: var(--muted); margin: 0 0 14px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.pager button:disabled { opacity: .35; cursor: default; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 0; padding: 0; }
.story-text p.sub { font-style: italic; color: var(--muted); font-size: 1.25rem; }
.story-text p.sub::first-letter { all: unset; }
.story-text p.sub + p::first-letter {
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 3.1em; float: left;
  line-height: .9; margin: 4px 8px 0 0; color: var(--accent);
}
.dot.here { background: var(--accent); }
.dot.colored { box-shadow: 0 0 0 2px var(--accent) inset; }

/* Library */
.lib-hero { max-width: 980px; margin: 0 auto; padding: 36px 16px 8px; text-align: center; }
.lib-hero h1 { font-family: "Fredoka", sans-serif; font-size: clamp(2.2rem, 7vw, 3.6rem); margin: 0; line-height: 1.05; }
.lib-hero h1 .c { color: var(--accent); }
.lib-hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 14px auto 0; line-height: 1.55; }
.shelf {
  max-width: 980px; margin: 28px auto 48px; padding: 0 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px;
}
.book {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .15s;
}
a.book:hover, .book:has(> a.open:hover) { transform: translateY(-3px); }
.book > a.open { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.book > a.pdf { display: block; padding: 10px 16px 14px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; text-decoration: none; font-size: .95rem; }
.book > a.pdf:hover { text-decoration: underline; }
.book .cover { aspect-ratio: 1/1; background: #fff; display: grid; place-items: center; }
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book .meta { padding: 14px 16px 16px; }
.book h2 { font-family: "Fredoka", sans-serif; margin: 0; font-size: 1.3rem; }
.book p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.book.soon { opacity: .6; }
.book.soon .cover { font-family: "Fredoka", sans-serif; color: var(--muted); font-size: 1.05rem; }
.lib-foot { text-align: center; color: var(--muted); padding: 0 16px 40px; font-size: .95rem; }

@media print {
  body { background: #fff; }
  .topbar, .palette, .tools, .read-aloud, .pager, .talk { display: none !important; }
  .spread { display: block; padding: 0; }
  .canvas-wrap, .story-side { box-shadow: none; border: 0; border-radius: 0; }
  .canvas-wrap { width: 100%; aspect-ratio: auto; }
  .story-side { padding: 12px 0 0; color: #000; background: #fff; }
  .story-side h1 { color: #000; }
  canvas { display: none; }
  .print-img { display: block !important; width: 100%; }
}
.print-img { display: none; }
.top-right { display: flex; gap: 14px; align-items: center; }

/* ---------- The Philosophy of Meaning: an older look (body.teen). Beowulf never gets this class. ---------- */
.teen {
  --paper: #f4f2ee; --card: #ffffff; --ink: #1b1f27; --muted: #5b6270;
  --accent: #2f4f8f; --accent-ink: #fff; --line: #dcdfe5; --shadow: 0 10px 30px rgba(20, 30, 50, .10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .teen {
    --paper: #14171d; --card: #1d2129; --ink: #e9ecf1; --muted: #a3aab6;
    --accent: #8fb0ef; --accent-ink: #14171d; --line: #2e3440; --shadow: 0 10px 30px rgba(0,0,0,.45);
  }
}
.teen button, .teen .topbar, .teen .lib-hero h1, .teen .book h2, .teen select { font-family: "Jost", system-ui, sans-serif; }
.teen .story-side h1 { font-family: "Jost", system-ui, sans-serif; letter-spacing: -.01em; }
.teen .story-text p { font-size: clamp(1.02rem, 1.6vw, 1.12rem); line-height: 1.7; }
.teen .story-text p:first-child::first-letter, .teen .story-text p.sub + p::first-letter { all: unset; }
.teen .swatch { width: 30px; height: 30px; }
.teen .verse { font-size: 1.02rem; }

/* picture switcher */
#nextPic[hidden] { display: none; }
#nextPic { border-color: var(--accent); color: var(--accent); }

/* question mode picker */
.qmode-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; }
#qmode {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 10px; cursor: pointer;
}
#qmode:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* questions */
.questions[hidden] { display: none; }
.questions { margin: 4px 0 18px; }
.questions h2 {
  font-family: "Jost", system-ui, sans-serif; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.q { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.q .ask { margin: 0 0 10px; font-weight: 600; line-height: 1.5; }
.q .choice {
  display: block; width: 100%; text-align: left; margin: 0 0 8px; padding: 9px 12px;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-weight: 500;
}
.q .choice:hover { border-color: var(--accent); }
.q .choice.right { background: #e3f3e6; border-color: #2e7d46; color: #17402a; }
.q .choice.wrong { background: #fbe9e7; border-color: #b3412f; color: #5c1d14; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .q .choice.right { background: #17321f; color: #cdebd4; border-color: #4caf6e; }
  :root:not([data-theme="light"]) .q .choice.wrong { background: #3a1a16; color: #f3cbc4; border-color: #d0604d; }
}
.q .why { margin: 2px 0 0; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.q .why:empty { display: none; }
.q textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical;
}
.q textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.q .from { font-size: .8rem; color: var(--muted); margin: 0 0 4px; }
@media (max-width: 600px) { .qmode-label span, .teen .pageno, .talk-toggle .tt-word { display: none; } .top-right { gap: 8px; } }

/* A book without a cover picture: its title, set in type. */
.cover.type { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  padding: 28px; background: var(--card); color: var(--ink); font-family: "Literata", Georgia, serif; text-align: left; }
.cover.type .t { font-size: 1.7rem; line-height: 1.15; }
.cover.type .bar { height: 4px; width: 90px; border-radius: 2px; background: linear-gradient(90deg, #8E9BFF, #3FB6D9, #F29B6B); }

/* Highlights and notes (engine/highlights.js), on every book */
mark.hl { color: inherit; border-radius: 3px; padding: 0 1px; cursor: pointer; }
mark.hl.c0 { background: #fde68a; } mark.hl.c1 { background: #fbcfe8; } mark.hl.c2 { background: #bfdbfe; }
mark.hl.noted { box-shadow: inset 0 -2px 0 var(--accent); }
mark.hl.flash { outline: 3px solid var(--accent); outline-offset: 2px; }
.hl-bar, .hl-pop { position: absolute; z-index: 60; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px; font-family: "Jost", "Fredoka", system-ui, sans-serif; }
.hl-bar { display: flex; gap: 8px; align-items: center; }
.hl-bar[hidden], .hl-pop[hidden], .hl-drawer[hidden] { display: none; }
.hl-sw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); padding: 0; }
.hl-sw.c0 { background: #fde68a; } .hl-sw.c1 { background: #fbcfe8; } .hl-sw.c2 { background: #bfdbfe; }
.hl-sw.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.hl-notebtn, .hl-ok, .hl-del, .hl-add, .hl-open { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 14px; font: inherit; font-weight: 600; }
.hl-ok { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hl-pop { width: min(340px, calc(100vw - 16px)); display: grid; gap: 8px; }
.hl-pop .hl-swatches { display: flex; gap: 8px; }
.hl-pop textarea { width: 100%; font: 1rem "Literata", Georgia, serif; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--paper); color: var(--ink); }
.hl-q { font-family: "Literata", Georgia, serif; font-size: .92rem; color: var(--muted); }
.hl-row { display: flex; justify-content: space-between; }
.hl-open { font-family: inherit; }
.hl-drawer { position: fixed; z-index: 55; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); overflow-y: auto; background: var(--card); color: var(--ink);
  border-left: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px; font-family: "Jost", "Fredoka", system-ui, sans-serif; }
.hl-head { display: flex; justify-content: space-between; align-items: center; }
.hl-head h2 { margin: 0; font-size: 1.25rem; }
.hl-x { border: 0; background: none; font-size: 1.3rem; color: var(--muted); min-width: 40px; min-height: 40px; }
.hl-help, .hl-empty { color: var(--muted); font-size: .9rem; margin: 4px 0 12px; }
.hl-drawer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 18px 0 6px; }
.hl-item { display: block; width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid #fde68a;
  border-radius: 10px; padding: 8px 10px; margin: 0 0 8px; color: var(--ink); font: inherit; font-weight: 400; }
.hl-item.c1 { border-left-color: #fbcfe8; } .hl-item.c2 { border-left-color: #bfdbfe; }
.hl-text { display: block; font-family: "Literata", Georgia, serif; font-size: .95rem; }
.hl-note { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.hl-review { display: grid; gap: 8px; margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.hl-signin, .hl-signout { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 14px; font: inherit; font-weight: 600; justify-self: start; }
.hl-signout { font-weight: 500; color: var(--muted); font-size: .9rem; }
.hl-stars { display: flex; flex-wrap: wrap; gap: 0; }
.hl-star { border: 0; background: none; padding: 4px 2px; min-width: 30px; min-height: 36px; font-size: 1.35rem; line-height: 1; color: var(--line); cursor: pointer; }
.hl-star.on { color: #e0a13a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) mark.hl.c0 { background: #6b5a1e; } :root:not([data-theme="light"]) mark.hl.c1 { background: #6b2f4f; } :root:not([data-theme="light"]) mark.hl.c2 { background: #26466f; }
}

/* Top bar: Library › Shelf › Book, and the books either side on the shelf (engine/nav.js) */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 600; }
.crumbs .sep { color: var(--muted); }
.crumbs .cur { font-weight: 700; }
.booknav { display: inline-flex; gap: 6px; }
.booknav a { color: var(--accent); text-decoration: none; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .9rem; white-space: nowrap; }
.continue { max-width: 980px; margin: 8px auto 0; padding: 0 16px; }
.continue a { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px;
  color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.continue .k { font-family: "Fredoka", "Jost", sans-serif; color: var(--accent); font-weight: 700; }
.local-tag { display: inline-block; font-family: "Jost", system-ui, sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px; margin-top: 6px; }
@media print { .hl-bar, .hl-pop, .hl-drawer, .hl-open, .booknav { display: none !important; } mark.hl { background: none !important; } }

/* Top bar: keep each control on one line; let the bar wrap to a second row on narrow screens. */
.topbar { flex-wrap: wrap; row-gap: 6px; }
.topbar .top-right { flex-wrap: wrap; justify-content: flex-end; }
.topbar .top-right > * { white-space: nowrap; }
.crumbs .back { margin-right: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card, #fff); border: 1px solid var(--line, rgba(0,0,0,.15)); }
.crumbs .back:hover { border-color: var(--accent); }

/* Folders on a shelf (Coloring the Classics › Ancient Heroes & Legends), and the note for grown-ups. */
.book.folder .cover { position: relative; }
.book.folder .meta h2 { font-size: 1.25rem; }
details.grownups { margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
details.grownups summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style-position: inside; }
details.grownups p { margin: 8px 0 0; line-height: 1.5; color: var(--ink, inherit); }
details.reader-note { max-width: 760px; margin: 8px max(16px, calc(50% - 380px)) 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); padding: 6px 14px; }
details.reader-note[open] { padding-bottom: 12px; }
.lib-foot a { color: var(--accent); }

/* Pictures off: the story's words alone, centred, a little larger. */
.no-pics .art-side { display: none; }
.no-pics .spread { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
.no-pics .story-side { font-size: 1.08em; }
.qmode-label[hidden] { display: none; }

/* ⓘ beside the first page's title: who wrote the book and when (nav.js builds it, app.js places it). */
.info-btn {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 1.6rem; height: 1.6rem; margin-left: .35rem; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card); color: var(--muted);
  font: italic 700 .95rem/1 Georgia, serif;
}
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.info-pop {
  margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  font-size: .95rem; line-height: 1.5;
}
.info-pop p { margin: 0; }

/* 🔍 Search the library, on every page (nav.js builds it). */
.search-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; padding: 0;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1rem; line-height: 1;
}
.topbar > .search-btn { margin-left: auto; }
.search-btn:hover, .search-btn[aria-expanded="true"] { border-color: var(--accent); }
.search-row { justify-content: flex-end; padding-bottom: 0; }
.lib-search { position: fixed; inset: 0; z-index: 1000; box-sizing: border-box; background: rgba(30, 20, 10, .35); padding: 12px 16px; }
.lib-search[hidden] { display: none; }
.lib-search-panel {
  max-width: 600px; margin: 0 auto; max-height: calc(100dvh - 24px); display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.lib-search-row { display: flex; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.lib-search-row input {
  flex: 1; min-width: 0; font: 600 1.05rem "Fredoka", "Jost", system-ui, sans-serif; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; outline: none;
}
.lib-search-row input:focus { border-color: var(--accent); }
.lib-search-close { flex: none; width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.lib-search-close:hover { color: var(--accent); border-color: var(--accent); }
.lib-search-note { margin: 0; padding: 10px 16px; color: var(--muted); font-size: .9rem; }
.lib-search-note[hidden] { display: none; }
.lib-search-results { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; }
.lib-search-results a { display: block; padding: 10px 16px; text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
.lib-search-results a:hover, .lib-search-results a:focus { background: var(--paper); border-left-color: var(--accent); outline: none; }
.lib-search-results .t { display: block; font: 600 1rem "Fredoka", "Jost", system-ui, sans-serif; }
.lib-search-results .w { display: block; font: 600 .75rem "Jost", system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.lib-search-results .d { display: block; font-size: .88rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.teen .lib-search-row input, .teen .lib-search-results .t { font-family: "Jost", system-ui, sans-serif; }
@media print { .search-btn, .lib-search, .search-row { display: none !important; } }
