/* book: the shared book (from Zoetrope's photo albums, Shared Book Library step 1).
   The open book (.zb): pages at rest, the turning leaf (pageturn), the hardback case and boards with their
   hinge and endpapers, the edges, the arrows, the gutter shadow, the contents; the style library (each
   theme's paper, mounting, endpaper, cover material), the font library (each app serves this library's
   fonts/ at /fonts/), a font per role, ornaments and text colors; and the settings panel (.bk-*).
   Never edited inside an app: change it here and copy it in with sync.py. */

.bk-btn { border: 1px solid #5a4a35; background: #2a211a; color: #eadfca; border-radius: 16px; padding: 5px 13px; font: 14px Georgia, serif; cursor: pointer; }
.bk-btn:hover { background: #3a2d22; }

/* The open album: pages at rest (slots), the turning leaf over them (fx). */
.zb { position: relative; width: calc(var(--page-w) * var(--slots)); height: var(--page-h); flex: none; }
.zb-slots, .zb-fx { position: absolute; inset: 0; }
.zb-fx { perspective: calc(var(--page-w) * 4); transform-style: preserve-3d; pointer-events: none; }
.zb-page { position: absolute; top: 0; width: var(--page-w); height: var(--page-h); box-sizing: border-box; overflow: hidden; isolation: isolate; font-family: var(--title-font, Georgia, "Times New Roman", serif);
            --ink: #3b3024; --ink-soft: #7a6548; --num: #8a7656; }
.zb-slots > .zb-page { cursor: pointer; }
.zb-page.empty { background: none; box-shadow: none; pointer-events: none; }
.zb-paper { background: #f1e8d4; background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.5), transparent 60%),
            linear-gradient(135deg, rgba(120,90,40,0.06), rgba(120,90,40,0)); color: var(--ink);
            box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(110,80,40,0.12); }
/* The fold (Book Gutter Shadow, like Grimoire's): on a spread, both pages darken evenly
   toward the spine, the same on each side, meeting there with no seam. Each page's own
   drop shadow is cut off at the spine, so neither page's shadow falls across the other
   (it made the left side dark and a hard edge where the right page starts, and it moved
   with the turning leaf). Each look may tint it for its paper: --gutter (r,g,b) and
   --gutter-k (how strong). The turning leaf carries its own shade (vendor/pageturn). */
/* (over the paper, whatever the look: its own ::after; a look's page decoration is its ::before) */
.zb-paper { --gutter: 70,40,12; --gutter-k: 1; }
.zb.spread .zb-page[data-side="0"] { clip-path: inset(-60px 0 -60px -60px); }
.zb.spread .zb-page[data-side="1"] { clip-path: inset(-60px -60px -60px 0); }
.zb.spread .zb-page.zb-paper[data-side]::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  --g: rgba(var(--gutter), calc(0.32 * var(--gutter-k))) 0, rgba(var(--gutter), calc(0.19 * var(--gutter-k))) 1.6%,
       rgba(var(--gutter), calc(0.09 * var(--gutter-k))) 4%, rgba(var(--gutter), calc(0.03 * var(--gutter-k))) 8%, rgba(var(--gutter), 0) 12%; }
.zb.spread .zb-page.zb-paper[data-side="0"]::after { background: linear-gradient(to left, var(--g)); }
.zb.spread .zb-page.zb-paper[data-side="1"]::after { background: linear-gradient(to right, var(--g)); }
.zb-num { position: absolute; bottom: 2.6%; left: 0; right: 0; text-align: center; font-size: calc(var(--page-w) * 0.026); line-height: 1.2; color: var(--num); }
/* (Title Page Names) Inside a look's frame, clear of it: leather's gilt rule and pastel's
   stitching (3% in), the wedding album's gold line (2% of the width in). */
.zb-paper.look-leather .zb-num, .zb-paper.look-pastel .zb-num { bottom: calc(3.2% + var(--page-w) * 0.024); }
.zb-paper.look-wedding .zb-num { bottom: calc(var(--page-w) * 0.042); }
/* Where a page is measured before it's shown (fitName): laid out at its size, never seen. */
.zb-measure { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible; visibility: hidden; pointer-events: none; }
.zb-print { position: absolute; padding: 0; border: 0; background: #ddd; cursor: zoom-in;
            box-shadow: 0 0 0 calc(var(--page-w) * 0.013) #fffdf8, 0 calc(var(--page-w) * 0.006) calc(var(--page-w) * 0.022) calc(var(--page-w) * 0.008) rgba(40,25,5,0.35); }
.zb-print img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Moving pictures (build 3): the video over its still, in the same frame,
   muted and looping, with no badges (Book View Polish): a tap opens it large. */
.zb-print .zb-motion { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.zb-print.playing .zb-motion { opacity: 1; }
.zb-head { position: absolute; left: 7.5%; right: 7.5%; top: 4.2%; text-align: center; }
.zb-head h2 { margin: 0; font-weight: 400; font-size: calc(var(--page-w) * 0.05 * var(--fit, 1)); line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; }
.zb-head .zb-date { margin-top: 0.3em; font-size: calc(var(--page-w) * 0.028); font-style: italic; color: var(--ink-soft); }
.zb-head::after { content: ""; display: block; width: 30%; margin: calc(var(--page-w) * 0.018) auto 0; border-top: 1px solid rgba(110,80,40,0.35); }
.zb-page.loading .zb-ph { position: absolute; background: rgba(110,80,40,0.10); border-radius: 2px; animation: zb-pulse 1.4s ease-in-out infinite; }
.zb-page.loading .zb-wait { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font-style: italic; color: #8a7656; font-size: calc(var(--page-w) * 0.03); }
@keyframes zb-pulse { 50% { opacity: 0.45; } }
/* (Hardback Covers, Ed 2026-11-16) The boards, like Grimoire's: the pages sit in a case
   (.zb-case) a band (--band) bigger all round, in the look's cover color and material.
   A board (.zb-board) is a page and a band wide and a page and two bands high, its spine
   edge on the binding: the front's outside (the book's name, no photos), each cover's
   inside (an endpaper inset by the band) and the plain back. It turns as the page
   turn's leaf, made board-sized (.zb-board-leaf). */
.zb-case { position: absolute; inset: calc(-1 * var(--band)); z-index: 0; pointer-events: none; border-radius: calc(var(--band) * 0.5);
           box-shadow: 0 10px 30px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.06), inset 0 0 calc(var(--band) * 1.6) rgba(0,0,0,0.35); }
.zb-case::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - var(--band) * 0.18); width: calc(var(--band) * 0.36);
           background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(255,255,255,0.08) 50%, rgba(0,0,0,0.35)); }
.zb:not(.spread) .zb-case { left: 0; }
.zb:not(.spread) .zb-case::after { display: none; }
.zb[data-case="l"] .zb-case { clip-path: inset(-60px 50% -60px -60px); }
.zb[data-case="r"] .zb-case { clip-path: inset(-60px -60px -60px 50%); }
.zb[data-case="none"] .zb-case { display: none; }
.zb-slots { z-index: 1; }
.zb-fx { z-index: 2; }
.zb-board { width: calc(var(--page-w) + var(--band)); height: calc(var(--page-h) + 2 * var(--band)); top: calc(-1 * var(--band));
            color: #e8c977; border-radius: 2px calc(var(--band) * 0.5) calc(var(--band) * 0.5) 2px;
            background-image: radial-gradient(ellipse at 35% 25%, rgba(255,220,180,0.16), transparent 60%);
            box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.06), inset 0 0 calc(var(--band) * 1.6) rgba(0,0,0,0.3); }
.zb.spread .zb-board[data-side="0"] { margin-left: calc(-1 * var(--band)); border-radius: calc(var(--band) * 0.5) 2px 2px calc(var(--band) * 0.5); }
.zb.spread .zb-slots > .zb-board, .zb.spread .zb-fx > .zb-board { clip-path: none; }
/* (book 0.5.0, Roots #16) A cover's inside is cut off at the spine like a page: its drop shadow
   never falls across the page facing it. (Laid under a turning leaf, over the pages at rest,
   the front's inside darkened the gutter of the page across the spine till the leaf landed.) */
.zb.spread .zb-slots > .zb-board.in[data-side="0"], .zb.spread .zb-fx > .zb-board.in[data-side="0"] { clip-path: inset(-60px 0 -60px -60px); }
.zb.spread .zb-slots > .zb-board.in[data-side="1"], .zb.spread .zb-fx > .zb-board.in[data-side="1"] { clip-path: inset(-60px -60px -60px 0); }
/* (Cover Hinge Fix, Ed 2026-11-16) Inside a turning cover a board fills its face exactly: the left board's
   shift (above, for a board lying open) must not apply there, or the face after the turn sits a band off
   the spine and the cover looks detached. This outranks it in every case: front or back, either face. */
.zb .zb-fx .face > .zb-board, .zb.spread .zb-fx .face > .zb-board[data-side] { top: 0; margin-left: 0; }
.zb-fx > .leaf.zb-board-leaf { width: calc(var(--page-w) + var(--band)); height: calc(var(--page-h) + 2 * var(--band)); top: calc(-1 * var(--band)); }
.zb-fx > .leaf.zb-board-leaf.origin-right { margin-left: calc(-1 * var(--band)); }
/* (the last page, on the right, turning over with the back cover as it shuts: it sits inside the board's band) */
.zb-fx > .leaf.zb-board-leaf .face > .zb-page:not(.zb-board) { top: var(--band); }
/* The hinge: a groove pressed in a little way from the spine. */
.zb-board .zb-hinge { position: absolute; top: 0; bottom: 0; width: calc(var(--band) * 0.5); left: calc(var(--band) * 0.9);
                      background: linear-gradient(90deg, rgba(0,0,0,0.28), rgba(255,255,255,0.10)); pointer-events: none; }
.zb-board[data-spine="r"] .zb-hinge { left: auto; right: calc(var(--band) * 0.9); background: linear-gradient(270deg, rgba(0,0,0,0.28), rgba(255,255,255,0.10)); }
.zb-slots > .zb-board.out { cursor: pointer; }
.zb-cover .zb-cover-name { position: absolute; left: 12%; right: 12%; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--page-w) * 0.03); }
.zb-cover h1 { margin: 0; width: 100%; text-align: center; font-weight: 400; font-size: calc(var(--page-w) * 0.075 * var(--fit, 1));
               line-height: 1.2; text-wrap: balance; overflow-wrap: break-word; letter-spacing: 0.03em; text-shadow: 0 1px 0 rgba(0,0,0,0.5); }
.zb-cover .zb-rule { width: 34%; border-top: 1.5px solid; opacity: 0.75; }
/* The endpapers: the inside of each cover, the board round it (as the case's band). */
.zb-endpaper { position: absolute; top: var(--band); bottom: var(--band); left: var(--band); right: 0; box-shadow: inset -18px 0 22px -16px rgba(0,0,0,0.45);
               background: #7a2e22; background-image: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.12), transparent 55%),
               repeating-radial-gradient(circle at 20% 40%, rgba(0,0,0,0.10) 0 3px, transparent 3px 9px),
               repeating-radial-gradient(circle at 75% 70%, rgba(255,220,160,0.10) 0 2px, transparent 2px 11px); }
.zb-board[data-spine="l"] .zb-endpaper { left: 0; right: var(--band); box-shadow: inset 18px 0 22px -16px rgba(0,0,0,0.45); }
.zb-endpaper.ep-corners, .zb-endpaper.ep-gallery { background: #26262a; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px); }
.zb-endpaper.ep-magnetic { background: #d9c48e; background-image: repeating-linear-gradient(45deg, rgba(120,90,30,0.14) 0 2px, transparent 2px 10px); }
.zb-endpaper.ep-kraft { background: #9a6e40; background-image: repeating-linear-gradient(17deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 7px); }
.zb-endpaper.ep-leather, .zb-endpaper.ep-classic {
               background: #6b2a1f; background-image: radial-gradient(ellipse at 25% 30%, rgba(40,70,110,0.55), transparent 40%), radial-gradient(ellipse at 70% 65%, rgba(200,150,60,0.45), transparent 42%),
               radial-gradient(ellipse at 55% 15%, rgba(30,60,40,0.5), transparent 35%), radial-gradient(ellipse at 15% 85%, rgba(220,200,160,0.35), transparent 38%); }
.zb-endpaper.ep-linen { background: #d9d6ce; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 3px); }
.zb-endpaper.ep-instant { background: #f2f2ee; background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1.5px); background-size: 14px 14px; }
.zb-endpaper.ep-scalloped { background: #b9b2a2; background-image: radial-gradient(circle at 50% 0, rgba(255,255,255,0.18) 30%, transparent 32%); background-size: 22px 16px; }
.zb-endpaper.ep-square { background: #d9902f; background-image: radial-gradient(circle at 50% 50%, #e9b25c 28%, transparent 30%), radial-gradient(circle at 0 0, #a85a1c 28%, transparent 30%); background-size: 36px 36px; }
.zb-endpaper.ep-wedding { background: #f6efe0; background-image: radial-gradient(circle, rgba(185,145,63,0.30) 1.4px, transparent 2px); background-size: 18px 18px; }
.zb-endpaper.ep-travel { background: #cfd6c4; background-image: repeating-linear-gradient(0deg, rgba(60,90,70,0.16) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(60,90,70,0.16) 0 1px, transparent 1px 22px); }
.zb-endpaper.ep-pastel { background: #fbf1f3; background-image: radial-gradient(circle, rgba(200,140,160,0.35) 3px, transparent 3.5px); background-size: 20px 20px; }
.zb-endpaper.ep-sepia { background: #c9ad7c; background-image: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(90,55,20,0.35)), radial-gradient(circle at 30% 30%, rgba(120,80,30,0.2) 0 2%, transparent 3%); }
/* The edges (Grimoire's): the board beside the pages and a little of the desk past it. */
.zb-edge { position: absolute; z-index: 4; top: calc(-1 * var(--band)); bottom: calc(-1 * var(--band)); width: calc(var(--band) + 22px); padding: 0; border: 0; background: none;
           cursor: pointer; -webkit-tap-highlight-color: transparent; }
.zb-edge-front { left: calc(-1 * var(--band) - 22px); }
.zb-edge-back { right: calc(-1 * var(--band) - 22px); }
.zb:not(.spread) .zb-edge-front { left: -22px; width: 22px; }
.zb-edge::after { content: ""; position: absolute; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: #e2c27a; opacity: 0; transition: opacity 0.2s; }
.zb-edge-front::after { right: calc(var(--band) / 2 - 1px); }
.zb-edge-back::after { left: calc(var(--band) / 2 - 1px); }
@media (hover: hover) { .zb-edge:hover::after { opacity: 0.55; } }
.zb-edge:focus-visible { outline: none; }
.zb-edge:focus-visible::after { opacity: 0.9; }
.zb-edge[hidden] { display: none; }
/* A section's title page: its hero, its name and date. */
.zb-print.zb-hero { box-shadow: 0 0 0 calc(var(--page-w) * 0.02) #fffdf8, 0 calc(var(--page-w) * 0.01) calc(var(--page-w) * 0.035) calc(var(--page-w) * 0.01) rgba(40,25,5,0.38); }
/* (No Photo Count, Ed 2026-11-16: a real album wouldn't print it) the name, date and ornament,
   centered in the room between the hero and the page number. */
.zb-title-text { position: absolute; left: 8%; right: 8%; top: 68.8%; text-align: center; }
.zb-title-text h2 { margin: 0; font-weight: 400; font-size: calc(var(--page-w) * 0.07 * var(--fit, 1)); line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; }
.zb-title-text .zb-date { margin-top: 0.35em; font-size: calc(var(--page-w) * 0.034); font-style: italic; color: var(--ink-soft); }
.zb-ornament { margin-top: 0.45em; font-size: calc(var(--page-w) * 0.04); color: var(--ink-soft); opacity: 0.8; }
/* (Title Page Names) An admin's buttons at the top, above the hero, clear of the name however many lines it takes. */
.zb-tools { position: absolute; left: 0; right: 0; top: 1.4%; z-index: 4; display: flex; justify-content: center; gap: 8px; opacity: 0; transition: opacity 0.15s; }
.zb-page:hover .zb-tools, .zb-tools:focus-within { opacity: 1; }
@media (hover: none) { .zb-tools { opacity: 1; } }
.zb-tool { border: 1px solid rgba(110,80,40,0.45); background: rgba(255,250,240,0.85); color: #5b4630; border-radius: 12px; padding: 3px 10px;
           font: 12px Georgia, serif; cursor: pointer; }
.zb-tool:hover { background: #fff; }
/* (Collage Pages) A grouped page: its title in the title lettering; a collage's prints overlap, each shadowed.
   (Collage Page Fixes) Each folder's name once, written on the page under its prints like a note in a scrapbook,
   in the small-text lettering, in the room the layout keeps for it (books.CAP_H): never on a print. */
.zb-page .zb-head.zb-group-head h2 { font-family: var(--title-font, inherit); color: var(--title-ink, var(--ink)); font-size: calc(var(--page-w) * 0.058 * var(--fit, 1)); }
.zb-note { position: absolute; z-index: 1; box-sizing: border-box; padding: calc(var(--page-w) * 0.006) 2% 0; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center; pointer-events: none; }
.zb-note span { text-align: center; font-family: var(--small-font, Georgia, serif); font-style: italic; color: var(--text-ink, var(--ink));
  font-size: calc(var(--page-w) * 0.026 * var(--fit, 1)); line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; max-width: 100%;
  pointer-events: auto; }
@media (hover: hover) { .zb-group .zb-note.can span:hover { text-decoration: underline; cursor: pointer; } }
.zb-overlap .zb-print { box-shadow: 0 calc(var(--page-w) * 0.006) calc(var(--page-w) * 0.02) rgba(30, 20, 5, 0.35); }

.bk-pick-back { position: absolute; inset: 0; z-index: 10; background: rgba(15,10,6,0.7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bk-pick-panel { background: #2a211a; color: #eadfca; border: 1px solid #5a4a35; border-radius: 8px; width: min(920px, 100%); max-height: 85vh; display: flex; flex-direction: column; }
.bk-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #4a3c2c; }

/* ---- The style library (build 4): each look on its pages (look-<key>), its prints, its
   title page's type, and its cover (with its spine, from LOOK_DRESS in the script).
   A print's frame is its ::before (behind it: the print isolates), its corners and tape are
   <i> inside it (.zb-c, .zb-tape), an edge its --edge polygon; the page's own decoration is
   its ::before (its ::after is the fold). */
.zb-print { isolation: isolate; }
.zb-print::before { content: ""; position: absolute; z-index: -1; display: none; pointer-events: none; }
.zb-print .zb-c, .zb-print .zb-tape { position: absolute; display: none; pointer-events: none; }
.zb-paper::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
/* Black pages, photo corners */
.zb-paper.look-corners { background: #1c1b19; background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.07), transparent 60%),
            repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
            --ink: #ece4d2; --ink-soft: #c2b59b; --num: #9c917c; }
.mount-corners .zb-print { box-shadow: 0 0 0 calc(var(--page-w) * 0.007) #f3eee0, 0 2px 7px rgba(0,0,0,0.7); }
.mount-corners .zb-print .zb-c { display: block; width: calc(var(--page-w) * 0.05); height: calc(var(--page-w) * 0.05); z-index: 2;
            background: linear-gradient(135deg, #2a2a2a, #0b0b0b 70%); filter: drop-shadow(0 1px 1px rgba(0,0,0,0.6)); }
.mount-corners .zb-c.tl { left: -1.5%; top: -1.5%; clip-path: polygon(0 0, 100% 0, 0 100%); }
.mount-corners .zb-c.tr { right: -1.5%; top: -1.5%; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.mount-corners .zb-c.bl { left: -1.5%; bottom: -1.5%; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.mount-corners .zb-c.br { right: -1.5%; bottom: -1.5%; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
/* Magnetic pages: the 70s-80s sticky board under a cellophane sheet */
.zb-paper.look-magnetic { background: #ecdfb6; background-image: repeating-linear-gradient(0deg, rgba(160,120,40,0.20) 0 2px, transparent 2px 24px),
            radial-gradient(ellipse at 70% 80%, rgba(180,140,60,0.18), transparent 60%); --ink: #4a3a1c; --ink-soft: #6e5a30; --num: #7a6a40; }
.zb-paper.look-magnetic::before { display: block; background: linear-gradient(118deg, rgba(255,255,255,0) 28%, rgba(255,255,255,0.28) 42%, rgba(255,255,255,0) 56%),
            linear-gradient(rgba(255,250,225,0.10), rgba(255,250,225,0.10)); }
.mount-magnetic .zb-print { box-shadow: 0 0 0 calc(var(--page-w) * 0.006) #fbf8ec, 0 1px 3px rgba(0,0,0,0.25); }
/* Kraft scrapbook: brown paper, torn white mounts, tape */
.zb-paper.look-kraft { background: #ad7f4f; background-image: repeating-linear-gradient(17deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 7px),
            repeating-linear-gradient(-23deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 6px), radial-gradient(ellipse at 40% 30%, rgba(255,220,170,0.25), transparent 65%);
            --ink: #2b1f12; --ink-soft: #4c3823; --num: #4c3823; }
.mount-kraft .zb-print { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }
.mount-kraft .zb-print::before { display: block; inset: -5%; background: #f6f0e1; clip-path: var(--edge, none); }
.mount-kraft .zb-print .zb-tape { display: block; top: -7%; left: 50%; width: 34%; height: 11%; transform: translateX(-50%) rotate(-3deg);
            background: rgba(236,226,186,0.72); box-shadow: 0 1px 2px rgba(0,0,0,0.15); z-index: 2; }
/* Leather-bound classic: ivory pages, a gilt rule, keyline mounts */
.zb-paper.look-leather { background: #f7f0de; --ink: #2f2516; --ink-soft: #6f5a36; --num: #8a7140; }
.zb-paper.look-leather::before { display: block; inset: 3.2%; border: 1px solid rgba(184,145,63,0.85); box-shadow: inset 0 0 0 3px #f7f0de, inset 0 0 0 4px rgba(184,145,63,0.6); }
.mount-leather .zb-print { box-shadow: 0 0 0 1px #2a2218, 0 0 0 calc(var(--page-w) * 0.009) #fffdf6, 0 0 0 calc(var(--page-w) * 0.011) #b8913f, 0 2px 6px rgba(40,25,5,0.3); }
/* Modern linen: borderless prints on linen */
.zb-paper.look-linen { background: #e9e5dc; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 3px),
            repeating-linear-gradient(90deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 3px); --ink: #2c2c2c; --ink-soft: #6b6b6b; --num: #8a8a8a; }
.mount-linen .zb-print { box-shadow: 0 1px 4px rgba(0,0,0,0.18); }
/* Instant prints: white frames, thick at the bottom */
.zb-paper.look-instant { background: #dfe3e6; background-image: radial-gradient(ellipse at 40% 25%, rgba(255,255,255,0.6), transparent 65%);
            --ink: #2a2f33; --ink-soft: #5c666e; --num: #77828a; }
.mount-instant .zb-print { box-shadow: none; }
.mount-instant .zb-print::before { display: block; inset: -6% -6% -26% -6%; background: #fbfaf5; box-shadow: 0 2px 7px rgba(0,0,0,0.3); }
/* 1950s scalloped prints on grey board */
.zb-paper.look-scalloped { background: #c9c3b6; background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.3), transparent 60%);
            --ink: #2e2b26; --ink-soft: #5c5548; --num: #6c6556; }
.mount-scalloped .zb-print { filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35)); }
.mount-scalloped .zb-print::before { display: block; inset: -7%; background: #fbf8ef; clip-path: var(--edge, none); }
/* 1960s-70s square prints: rounded, a little faded, on warm paper */
.zb-paper.look-square { background: #e2bd7e; background-image: radial-gradient(circle at 20% 20%, rgba(255,240,200,0.4), transparent 50%),
            radial-gradient(circle at 80% 85%, rgba(170,90,30,0.25), transparent 55%); --ink: #3d2410; --ink-soft: #6b4018; --num: #7a4f22; }
.mount-square .zb-print { border-radius: 6%; box-shadow: none; filter: drop-shadow(0 2px 3px rgba(80,40,10,0.35)); }
.mount-square .zb-print::before { display: block; inset: -5%; background: #fff9ec; border-radius: 9%; }
.mount-square .zb-print img, .mount-square .zb-print video { border-radius: 6%; filter: sepia(0.22) saturate(0.85) contrast(0.96); }
/* Gold-edged wedding album */
.zb-paper.look-wedding { background: #fffdf8; box-shadow: inset 0 0 0 calc(var(--page-w) * 0.018) #fffdf8, inset 0 0 0 calc(var(--page-w) * 0.021) #c9a24a,
            0 6px 18px rgba(0,0,0,0.45); --ink: #3a3020; --ink-soft: #8b7240; --num: #a88c50; }
.mount-wedding .zb-print { box-shadow: 0 0 0 calc(var(--page-w) * 0.008) #fff, 0 0 0 calc(var(--page-w) * 0.0095) #c9a24a,
            0 0 0 calc(var(--page-w) * 0.014) #fff, 0 0 0 calc(var(--page-w) * 0.0155) #d8b86a, 0 2px 8px rgba(80,60,20,0.25); }
/* Travel journal: dotted paper, washi tape, typewritten */
.zb-paper.look-travel { background: #f3eee2; background-image: radial-gradient(circle, rgba(90,80,60,0.28) 1px, transparent 1.4px);
            background-size: calc(var(--page-w) * 0.04) calc(var(--page-w) * 0.04); --ink: #23201b; --ink-soft: #5d554a; --num: #6c6458; }
.mount-travel .zb-print { box-shadow: 0 0 0 calc(var(--page-w) * 0.008) #fff, 0 2px 5px rgba(0,0,0,0.22); }
.mount-travel .zb-print .zb-tape { display: block; top: -5%; left: -6%; width: 30%; height: 10%; transform: rotate(-35deg); z-index: 2;
            background: repeating-linear-gradient(45deg, rgba(110,170,190,0.75) 0 6px, rgba(150,200,215,0.75) 6px 12px); }
/* Gallery: charcoal pages, floating prints */
.zb-paper.look-gallery { background: #222226; background-image: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.06), transparent 60%);
            --ink: #f0eeea; --ink-soft: #b7b3ab; --num: #8d8a84; }
.mount-gallery .zb-print { box-shadow: 0 calc(var(--page-w) * 0.012) calc(var(--page-w) * 0.035) rgba(0,0,0,0.65); }
/* Pastel keepsake: soft color, stitched edge, rounded mounts */
.zb-paper.look-pastel { background: #f6e3e7; background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.6), transparent 60%);
            --ink: #5a3d47; --ink-soft: #8f6a77; --num: #a7838f; }
.zb-paper.look-pastel::before { display: block; inset: 3%; border: 2px dashed rgba(170,120,140,0.55); border-radius: 10px; }
.mount-pastel .zb-print { border-radius: 4px; box-shadow: 0 0 0 calc(var(--page-w) * 0.012) #fff, 0 2px 6px rgba(120,70,90,0.25); }
.mount-pastel .zb-print img, .mount-pastel .zb-print video { border-radius: 4px; }
/* Sepia heirloom: aged paper with foxing, deckled sepia prints */
.zb-paper.look-sepia { background: #e4d3ad; background-image: radial-gradient(circle at 18% 22%, rgba(150,100,40,0.18) 0 2%, transparent 3%),
            radial-gradient(circle at 76% 64%, rgba(150,100,40,0.14) 0 1.5%, transparent 2.5%), radial-gradient(circle at 60% 12%, rgba(150,100,40,0.12) 0 1%, transparent 2%),
            radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(120,80,30,0.28)); --ink: #3d2b15; --ink-soft: #6e5230; --num: #7d6236; }
.mount-sepia .zb-print { filter: drop-shadow(0 1px 3px rgba(60,35,10,0.4)); }
.mount-sepia .zb-print::before { display: block; inset: -5%; background: #f4ead2; clip-path: var(--edge, none); }
.mount-sepia .zb-print img, .mount-sepia .zb-print video { filter: sepia(0.65) contrast(0.95) brightness(1.02); }
/* (book 0.2.0) Roots' looks. Family heritage: cream paper, a fine double rule, white-bordered prints */
.zb-paper.look-heritage { background: #efe1c0; background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.45), transparent 60%),
            radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(120,85,35,0.16)); --ink: #2b2118; --ink-soft: #6d5536; --num: #7a6a58; }
.zb-paper.look-heritage::before { display: block; inset: 3.4%; border: 1px solid rgba(110,75,35,0.4); box-shadow: inset 0 0 0 3px #efe1c0, inset 0 0 0 4px rgba(110,75,35,0.25); }
.mount-heritage .zb-print { box-shadow: 0 0 0 calc(var(--page-w) * 0.012) #fffaf0, 0 2px 7px rgba(60,40,15,0.35); }
/* Parchment register: aged paper, darker at its edges, keyline mounts */
.zb-paper.look-parchment { background: #e9d4a7; background-image: radial-gradient(circle at 22% 78%, rgba(150,100,40,0.14) 0 1.6%, transparent 2.6%),
            radial-gradient(circle at 81% 18%, rgba(150,100,40,0.12) 0 1.2%, transparent 2.2%), radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(120,80,30,0.3));
            --ink: #33240f; --ink-soft: #6b4d24; --num: #7d6236; }
.mount-parchment .zb-print { box-shadow: 0 0 0 1px #5a4020, 0 0 0 calc(var(--page-w) * 0.01) #f6ebd2, 0 2px 6px rgba(60,35,10,0.35); }
.mount-parchment .zb-print img, .mount-parchment .zb-print video { filter: sepia(0.25) contrast(0.97); }
/* Ivory chronicle: ivory paper, a green keyline round the page */
.zb-paper.look-chronicle { background: #f3eada; background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.5), transparent 60%);
            --ink: #26231c; --ink-soft: #5d5a48; --num: #77735e; }
.zb-paper.look-chronicle::before { display: block; inset: 3%; border: 1.5px solid rgba(30,58,44,0.45); }
.mount-chronicle .zb-print { box-shadow: 0 0 0 calc(var(--page-w) * 0.009) #fffdf6, 0 0 0 calc(var(--page-w) * 0.011) rgba(30,58,44,0.55), 0 2px 6px rgba(30,30,20,0.28); }
/* Lineage: white paper, plain and clean, thin black-edged prints */
.zb-paper.look-lineage { background: #faf7f0; --ink: #1f2330; --ink-soft: #565c70; --num: #7a7f8e; }
.mount-lineage .zb-print { box-shadow: 0 0 0 calc(var(--page-w) * 0.008) #fff, 0 0 0 calc(var(--page-w) * 0.009) #1c2439, 0 2px 6px rgba(20,25,40,0.25); }
.zb-paper.look-heritage { --title-ink: #4a1517; } .zb-paper.look-parchment { --title-ink: #4b2a19; }
.zb-paper.look-chronicle { --title-ink: #1f3325; } .zb-paper.look-lineage { --title-ink: #1c2439; }
.zb-paper.look-heritage, .zb-paper.look-parchment { --gutter: 90,60,20; }
.zb-paper.look-chronicle { --gutter: 50,55,40; --gutter-k: 0.9; }
.zb-paper.look-lineage { --gutter: 30,35,50; --gutter-k: 0.75; }
/* Their endpapers: wine, ochre, bottle green and indigo, marbled. */
.zb-endpaper.ep-heritage, .zb-endpaper.ep-parchment, .zb-endpaper.ep-chronicle, .zb-endpaper.ep-lineage {
            background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(0,0,0,0.12) 0 2px, transparent 3px),
            radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.10), transparent 55%); background-size: 22px 22px, 30px 30px, 100% 100%; }
.zb-endpaper.ep-heritage { background-color: #5c1e16; }
.zb-endpaper.ep-parchment { background-color: #6b4a1a; }
.zb-endpaper.ep-chronicle { background-color: #1e3a2c; }
.zb-endpaper.ep-lineage { background-color: #252a4c; }
/* (book 0.4.0) Grimoire's journals: cream, ivory or aged paper with a fine grain (and stains, a
   part of their own: .zb-stains), the date and titles in red ink; plain white-edged prints. */
.zb-paper.look-journal, .zb-paper.look-almanac, .zb-paper.look-grimoire, .zb-paper.look-diary {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
            --ink: #2e1f14; --ink-soft: #6a5440; --num: #6a5440; --title-ink: #7a2418; }
.zb-paper.look-journal, .zb-paper.look-almanac, .zb-paper.look-grimoire, .zb-paper.look-diary { --gutter: 70,40,12; --gutter-k: 1.05; }
.zb-paper.look-journal, .zb-paper.look-diary { background-color: #efe1c0; }
.zb-paper.look-almanac { background-color: #f3eada; --title-ink: #252a4c; }
.zb-paper.look-grimoire { background-color: #e9d4a7; --title-ink: #6b2a14; }
.mount-journal .zb-print, .mount-almanac .zb-print, .mount-grimoire .zb-print, .mount-diary .zb-print {
            box-shadow: 0 0 0 calc(var(--page-w) * 0.01) #fbf4e2, 0 2px 7px rgba(60,35,10,0.38); }
.mount-grimoire .zb-print img, .mount-grimoire .zb-print video { filter: sepia(0.3) contrast(0.96); }
/* Their endpapers: wine, indigo, ochre and bottle green, flecked with the tooling's gold. */
.zb-endpaper.ep-journal, .zb-endpaper.ep-almanac, .zb-endpaper.ep-grimoire, .zb-endpaper.ep-diary {
            background-image: radial-gradient(circle at 20% 30%, rgba(217,181,106,0.18) 0 2px, transparent 3px), radial-gradient(circle at 70% 70%, rgba(217,181,106,0.12) 0 1.5px, transparent 2.5px),
            radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.08), transparent 55%); background-size: 34px 34px, 34px 34px, 100% 100%; }
.zb-endpaper.ep-journal { background-color: #5c1e16; }
.zb-endpaper.ep-almanac { background-color: #252a4c; }
.zb-endpaper.ep-grimoire { background-color: #6b4a1a; }
.zb-endpaper.ep-diary { background-color: #1e3a2c; }
/* Page stains (any paper): a wash of foxing over the paper, under what's on the page. */
.zb-stains { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-size: 100% 100%;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='680' preserveAspectRatio='none'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .009' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .12 0 0 0 .22 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"); }
.zb-stains.faint { opacity: 0.5; }
.zb-stains.heavy { opacity: 1; filter: contrast(1.25) saturate(1.2); }
.zb-stains.moderate { opacity: 0.85; }
/* (book 0.2.0) The configurable front cover: an ornament and the app's line under the name, in the cover's lettering. */
.zb-cover .zb-ornament { margin: 0; font-size: calc(var(--page-w) * 0.08); color: var(--cover-ink, #e8c977); opacity: 0.9; }
.zb-cover .zb-ornament svg { height: 1em; }
.zb-cover .zb-cover-line { width: 100%; text-align: center; font-family: var(--title-font, Georgia, serif); font-size: calc(var(--page-w) * 0.042);
            letter-spacing: 0.06em; line-height: 1.3; color: var(--cover-ink, #e8c977); text-wrap: balance; overflow-wrap: break-word; }
.zb-cover.ink-blind .zb-cover-line, .zb-cover.ink-blind .zb-ornament { text-shadow: 0 1px 0 rgba(255,255,255,0.22); }
.zb-ornament.orn-tree svg { height: 1.3em; }
/* An app's own fields on the Book tab (Roots: the name, who it's for). */
.bk-set-own { border-bottom: 1px solid #4a3c2c; }
.bk-set-grid input { background: #1d1610; color: #eadfca; border: 1px solid #5a4a35; border-radius: 4px; padding: 5px 6px; font: 14px Georgia, serif; }
.bk-set-grid .bk-set-note { grid-column: 1 / -1; margin: -4px 0 0; font: italic 13px Georgia, serif; color: #a8977c; }
.bk-btn.danger { color: #f0b0a0; border-color: #7a3a2c; }
/* (Book Fonts, Ed 2026-11-16) Zoetrope's own fonts (fonts/, SIL Open Font License each): a browser fetches
   one only when text on the page uses it, so a book loads just its own lettering. */
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/ebgaramond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ebgaramond-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/librebaskerville-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/librebaskerville-400.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/lora-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/lora-400.woff2") format("woff2"); }
@font-face { font-family: "Cardo"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/cardo-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cardo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cardo-400.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/imfellenglish-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/imfellenglish-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/lato-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/worksans-400.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/josefinsans-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/greatvibes-400.woff2") format("woff2"); }
@font-face { font-family: "Parisienne"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/parisienne-400.woff2") format("woff2"); }
@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/pinyonscript-400.woff2") format("woff2"); }
@font-face { font-family: "Allura"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/allura-400.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/caveat-400.woff2") format("woff2"); }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/kalam-400.woff2") format("woff2"); }
@font-face { font-family: "Patrick Hand"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/patrickhand-400.woff2") format("woff2"); }
@font-face { font-family: "Shadows Into Light"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/shadowsintolight-400.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/courierprime-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/courierprime-400.woff2") format("woff2"); }
@font-face { font-family: "Cutive Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cutivemono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/ibmplexmono-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibmplexmono-400.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/playfairdisplay-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/playfairdisplay-400.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cinzel-400.woff2") format("woff2"); }
@font-face { font-family: "Shrikhand"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/shrikhand-400.woff2") format("woff2"); }
@font-face { font-family: "Abril Fatface"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/abrilfatface-400.woff2") format("woff2"); }
@font-face { font-family: "Bree Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/breeserif-400.woff2") format("woff2"); }
@font-face { font-family: "Alfa Slab One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/alfaslabone-400.woff2") format("woff2"); }
/* (book 0.4.0) Grimoire's faces. */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/alegreya-400.woff2") format("woff2"); }
@font-face { font-family: "IM Fell Double Pica"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/imfelldoublepica-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IM Fell Double Pica"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/imfelldoublepica-400.woff2") format("woff2"); }
@font-face { font-family: "IM Fell Double Pica SC"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/imfelldoublepicasc-400.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English SC"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/imfellenglishsc-400.woff2") format("woff2"); }
/* (Book Typography, Ed 2026-11-16) A font for each role, each a font of the library: title (section names,
   "Contents", the cover's name), date, small text (contents entries, headings over photos), page numbers. */
.tfont-ebgaramond { --title-font: "EB Garamond", Georgia, "Times New Roman", serif; } .dfont-ebgaramond { --date-font: "EB Garamond", Georgia, "Times New Roman", serif; } .sfont-ebgaramond { --small-font: "EB Garamond", Georgia, "Times New Roman", serif; } .nfont-ebgaramond { --num-font: "EB Garamond", Georgia, "Times New Roman", serif; }
.tfont-librebaskerville { --title-font: "Libre Baskerville", Georgia, "Times New Roman", serif; } .dfont-librebaskerville { --date-font: "Libre Baskerville", Georgia, "Times New Roman", serif; } .sfont-librebaskerville { --small-font: "Libre Baskerville", Georgia, "Times New Roman", serif; } .nfont-librebaskerville { --num-font: "Libre Baskerville", Georgia, "Times New Roman", serif; }
.tfont-lora { --title-font: "Lora", Georgia, "Times New Roman", serif; } .dfont-lora { --date-font: "Lora", Georgia, "Times New Roman", serif; } .sfont-lora { --small-font: "Lora", Georgia, "Times New Roman", serif; } .nfont-lora { --num-font: "Lora", Georgia, "Times New Roman", serif; }
.tfont-cardo { --title-font: "Cardo", Georgia, "Times New Roman", serif; } .dfont-cardo { --date-font: "Cardo", Georgia, "Times New Roman", serif; } .sfont-cardo { --small-font: "Cardo", Georgia, "Times New Roman", serif; } .nfont-cardo { --num-font: "Cardo", Georgia, "Times New Roman", serif; }
.tfont-imfellenglish { --title-font: "IM Fell English", Georgia, "Times New Roman", serif; } .dfont-imfellenglish { --date-font: "IM Fell English", Georgia, "Times New Roman", serif; } .sfont-imfellenglish { --small-font: "IM Fell English", Georgia, "Times New Roman", serif; } .nfont-imfellenglish { --num-font: "IM Fell English", Georgia, "Times New Roman", serif; }
.tfont-lato { --title-font: "Lato", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .dfont-lato { --date-font: "Lato", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .sfont-lato { --small-font: "Lato", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .nfont-lato { --num-font: "Lato", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; }
.tfont-worksans { --title-font: "Work Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .dfont-worksans { --date-font: "Work Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .sfont-worksans { --small-font: "Work Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .nfont-worksans { --num-font: "Work Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; }
.tfont-josefinsans { --title-font: "Josefin Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .dfont-josefinsans { --date-font: "Josefin Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .sfont-josefinsans { --small-font: "Josefin Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .nfont-josefinsans { --num-font: "Josefin Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; }
.tfont-montserrat { --title-font: "Montserrat", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .dfont-montserrat { --date-font: "Montserrat", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .sfont-montserrat { --small-font: "Montserrat", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .nfont-montserrat { --num-font: "Montserrat", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; }
.tfont-greatvibes { --title-font: "Great Vibes", cursive; } .dfont-greatvibes { --date-font: "Great Vibes", cursive; } .sfont-greatvibes { --small-font: "Great Vibes", cursive; } .nfont-greatvibes { --num-font: "Great Vibes", cursive; }
.tfont-parisienne { --title-font: "Parisienne", cursive; } .dfont-parisienne { --date-font: "Parisienne", cursive; } .sfont-parisienne { --small-font: "Parisienne", cursive; } .nfont-parisienne { --num-font: "Parisienne", cursive; }
.tfont-pinyonscript { --title-font: "Pinyon Script", cursive; } .dfont-pinyonscript { --date-font: "Pinyon Script", cursive; } .sfont-pinyonscript { --small-font: "Pinyon Script", cursive; } .nfont-pinyonscript { --num-font: "Pinyon Script", cursive; }
.tfont-allura { --title-font: "Allura", cursive; } .dfont-allura { --date-font: "Allura", cursive; } .sfont-allura { --small-font: "Allura", cursive; } .nfont-allura { --num-font: "Allura", cursive; }
.tfont-caveat { --title-font: "Caveat", cursive; } .dfont-caveat { --date-font: "Caveat", cursive; } .sfont-caveat { --small-font: "Caveat", cursive; } .nfont-caveat { --num-font: "Caveat", cursive; }
.tfont-kalam { --title-font: "Kalam", cursive; } .dfont-kalam { --date-font: "Kalam", cursive; } .sfont-kalam { --small-font: "Kalam", cursive; } .nfont-kalam { --num-font: "Kalam", cursive; }
.tfont-patrickhand { --title-font: "Patrick Hand", cursive; } .dfont-patrickhand { --date-font: "Patrick Hand", cursive; } .sfont-patrickhand { --small-font: "Patrick Hand", cursive; } .nfont-patrickhand { --num-font: "Patrick Hand", cursive; }
.tfont-shadowsintolight { --title-font: "Shadows Into Light", cursive; } .dfont-shadowsintolight { --date-font: "Shadows Into Light", cursive; } .sfont-shadowsintolight { --small-font: "Shadows Into Light", cursive; } .nfont-shadowsintolight { --num-font: "Shadows Into Light", cursive; }
.tfont-courierprime { --title-font: "Courier Prime", "Courier New", Courier, monospace; } .dfont-courierprime { --date-font: "Courier Prime", "Courier New", Courier, monospace; } .sfont-courierprime { --small-font: "Courier Prime", "Courier New", Courier, monospace; } .nfont-courierprime { --num-font: "Courier Prime", "Courier New", Courier, monospace; }
.tfont-cutivemono { --title-font: "Cutive Mono", "Courier New", Courier, monospace; } .dfont-cutivemono { --date-font: "Cutive Mono", "Courier New", Courier, monospace; } .sfont-cutivemono { --small-font: "Cutive Mono", "Courier New", Courier, monospace; } .nfont-cutivemono { --num-font: "Cutive Mono", "Courier New", Courier, monospace; }
.tfont-ibmplexmono { --title-font: "IBM Plex Mono", "Courier New", Courier, monospace; } .dfont-ibmplexmono { --date-font: "IBM Plex Mono", "Courier New", Courier, monospace; } .sfont-ibmplexmono { --small-font: "IBM Plex Mono", "Courier New", Courier, monospace; } .nfont-ibmplexmono { --num-font: "IBM Plex Mono", "Courier New", Courier, monospace; }
.tfont-playfairdisplay { --title-font: "Playfair Display", Georgia, serif; } .dfont-playfairdisplay { --date-font: "Playfair Display", Georgia, serif; } .sfont-playfairdisplay { --small-font: "Playfair Display", Georgia, serif; } .nfont-playfairdisplay { --num-font: "Playfair Display", Georgia, serif; }
.tfont-cinzel { --title-font: "Cinzel", Georgia, serif; } .dfont-cinzel { --date-font: "Cinzel", Georgia, serif; } .sfont-cinzel { --small-font: "Cinzel", Georgia, serif; } .nfont-cinzel { --num-font: "Cinzel", Georgia, serif; }
.tfont-shrikhand { --title-font: "Shrikhand", Georgia, serif; } .dfont-shrikhand { --date-font: "Shrikhand", Georgia, serif; } .sfont-shrikhand { --small-font: "Shrikhand", Georgia, serif; } .nfont-shrikhand { --num-font: "Shrikhand", Georgia, serif; }
.tfont-abrilfatface { --title-font: "Abril Fatface", Georgia, serif; } .dfont-abrilfatface { --date-font: "Abril Fatface", Georgia, serif; } .sfont-abrilfatface { --small-font: "Abril Fatface", Georgia, serif; } .nfont-abrilfatface { --num-font: "Abril Fatface", Georgia, serif; }
.tfont-breeserif { --title-font: "Bree Serif", Georgia, serif; } .dfont-breeserif { --date-font: "Bree Serif", Georgia, serif; } .sfont-breeserif { --small-font: "Bree Serif", Georgia, serif; } .nfont-breeserif { --num-font: "Bree Serif", Georgia, serif; }
.tfont-alfaslabone { --title-font: "Alfa Slab One", Georgia, serif; } .dfont-alfaslabone { --date-font: "Alfa Slab One", Georgia, serif; } .sfont-alfaslabone { --small-font: "Alfa Slab One", Georgia, serif; } .nfont-alfaslabone { --num-font: "Alfa Slab One", Georgia, serif; }
.tfont-alegreya { --title-font: "Alegreya", Georgia, "Times New Roman", serif; } .dfont-alegreya { --date-font: "Alegreya", Georgia, "Times New Roman", serif; } .sfont-alegreya { --small-font: "Alegreya", Georgia, "Times New Roman", serif; } .nfont-alegreya { --num-font: "Alegreya", Georgia, "Times New Roman", serif; }
.tfont-imfelldoublepica { --title-font: "IM Fell Double Pica", Georgia, "Times New Roman", serif; } .dfont-imfelldoublepica { --date-font: "IM Fell Double Pica", Georgia, "Times New Roman", serif; } .sfont-imfelldoublepica { --small-font: "IM Fell Double Pica", Georgia, "Times New Roman", serif; } .nfont-imfelldoublepica { --num-font: "IM Fell Double Pica", Georgia, "Times New Roman", serif; }
.tfont-imfelldoublepicasc { --title-font: "IM Fell Double Pica SC", Georgia, serif; } .dfont-imfelldoublepicasc { --date-font: "IM Fell Double Pica SC", Georgia, serif; } .sfont-imfelldoublepicasc { --small-font: "IM Fell Double Pica SC", Georgia, serif; } .nfont-imfelldoublepicasc { --num-font: "IM Fell Double Pica SC", Georgia, serif; }
.tfont-imfellenglishsc { --title-font: "IM Fell English SC", Georgia, serif; } .dfont-imfellenglishsc { --date-font: "IM Fell English SC", Georgia, serif; } .sfont-imfellenglishsc { --small-font: "IM Fell English SC", Georgia, serif; } .nfont-imfellenglishsc { --num-font: "IM Fell English SC", Georgia, serif; }
/* (book 0.4.0) The writing's lettering (the text role: Grimoire's entries), each font of the library. */
.wfont-ebgaramond { --text-font: "EB Garamond", Georgia, serif; } .wfont-librebaskerville { --text-font: "Libre Baskerville", Georgia, serif; }
.wfont-lora { --text-font: "Lora", Georgia, serif; } .wfont-cardo { --text-font: "Cardo", Georgia, serif; } .wfont-imfellenglish { --text-font: "IM Fell English", Georgia, serif; }
.wfont-lato { --text-font: "Lato", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .wfont-worksans { --text-font: "Work Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; }
.wfont-josefinsans { --text-font: "Josefin Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; } .wfont-montserrat { --text-font: "Montserrat", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; }
.wfont-greatvibes { --text-font: "Great Vibes", cursive; } .wfont-parisienne { --text-font: "Parisienne", cursive; } .wfont-pinyonscript { --text-font: "Pinyon Script", cursive; } .wfont-allura { --text-font: "Allura", cursive; }
.wfont-caveat { --text-font: "Caveat", cursive; } .wfont-kalam { --text-font: "Kalam", cursive; } .wfont-patrickhand { --text-font: "Patrick Hand", cursive; } .wfont-shadowsintolight { --text-font: "Shadows Into Light", cursive; }
.wfont-courierprime { --text-font: "Courier Prime", "Courier New", Courier, monospace; } .wfont-cutivemono { --text-font: "Cutive Mono", "Courier New", Courier, monospace; } .wfont-ibmplexmono { --text-font: "IBM Plex Mono", "Courier New", Courier, monospace; }
.wfont-playfairdisplay { --text-font: "Playfair Display", Georgia, serif; } .wfont-cinzel { --text-font: "Cinzel", Georgia, serif; } .wfont-shrikhand { --text-font: "Shrikhand", Georgia, serif; }
.wfont-abrilfatface { --text-font: "Abril Fatface", Georgia, serif; } .wfont-breeserif { --text-font: "Bree Serif", Georgia, serif; } .wfont-alfaslabone { --text-font: "Alfa Slab One", Georgia, serif; }
.wfont-alegreya { --text-font: "Alegreya", Georgia, serif; } .wfont-imfelldoublepica { --text-font: "IM Fell Double Pica", Georgia, serif; }
.wfont-imfelldoublepicasc { --text-font: "IM Fell Double Pica SC", Georgia, serif; } .wfont-imfellenglishsc { --text-font: "IM Fell English SC", Georgia, serif; }
.zb-date, .zb-toc-date { font-family: var(--date-font, inherit); }
.zb-num, .zb-toc-page { font-family: var(--num-font, inherit); }
.zb-page .zb-head h2, .zb-page .zb-toc-line { font-family: var(--small-font, inherit); }
/* Colors: the title's and the rest's, the paper's own (--ink...) unless set apart (the palette's classes). */
.zb-title-text h2, .zb-toc h2 { color: var(--title-ink, var(--ink)); }
.zb-page .zb-date, .zb-page .zb-toc-date { color: var(--text-ink, var(--ink-soft)); }
.zb-page .zb-num, .zb-page .zb-toc-page { color: var(--text-ink, var(--num)); }
.zb-page .zb-toc-line, .zb-page .zb-head h2 { color: var(--text-ink, var(--ink)); }
.zb-page .zb-ornament { color: var(--title-ink, var(--ink-soft)); }
.zb-paper.look-wedding { --title-ink: #9c7a2e; } .zb-paper.look-sepia { --title-ink: #5b3a1a; } .zb-paper.look-leather { --title-ink: #5a2418; }
.zb-paper.look-scalloped { --title-ink: #24324a; } .zb-paper.look-square { --title-ink: #8b3a0f; } .zb-paper.look-travel { --title-ink: #2f4a3a; }
.zb-paper.look-corners { --title-ink: #e8d3a2; } .zb-paper.look-magnetic { --title-ink: #5b3a12; } .zb-paper.look-pastel { --title-ink: #6b4553; }
.zb-page.tink-2b2620 { --title-ink: #2b2620; } .zb-page.xink-2b2620 { --text-ink: #2b2620; }
.zb-page.tink-3b3024 { --title-ink: #3b3024; } .zb-page.xink-3b3024 { --text-ink: #3b3024; }
.zb-page.tink-5a2418 { --title-ink: #5a2418; } .zb-page.xink-5a2418 { --text-ink: #5a2418; }
.zb-page.tink-24324a { --title-ink: #24324a; } .zb-page.xink-24324a { --text-ink: #24324a; }
.zb-page.tink-2f4a3a { --title-ink: #2f4a3a; } .zb-page.xink-2f4a3a { --text-ink: #2f4a3a; }
.zb-page.tink-6b4553 { --title-ink: #6b4553; } .zb-page.xink-6b4553 { --text-ink: #6b4553; }
.zb-page.tink-8b3a0f { --title-ink: #8b3a0f; } .zb-page.xink-8b3a0f { --text-ink: #8b3a0f; }
.zb-page.tink-9c7a2e { --title-ink: #9c7a2e; } .zb-page.xink-9c7a2e { --text-ink: #9c7a2e; }
.zb-page.tink-6e5230 { --title-ink: #6e5230; } .zb-page.xink-6e5230 { --text-ink: #6e5230; }
.zb-page.tink-f0eeea { --title-ink: #f0eeea; } .zb-page.xink-f0eeea { --text-ink: #f0eeea; }
.zb-page.tink-ece4d2 { --title-ink: #ece4d2; } .zb-page.xink-ece4d2 { --text-ink: #ece4d2; }
.zb-page.tink-e3c06a { --title-ink: #e3c06a; } .zb-page.xink-e3c06a { --text-ink: #e3c06a; }
.zb-page.tink-c2b59b { --title-ink: #c2b59b; } .zb-page.xink-c2b59b { --text-ink: #c2b59b; }
.zb-page.tink-bcd5e8 { --title-ink: #bcd5e8; } .zb-page.xink-bcd5e8 { --text-ink: #bcd5e8; }
.zb-page.tink-e9c4cf { --title-ink: #e9c4cf; } .zb-page.xink-e9c4cf { --text-ink: #e9c4cf; }
/* Ornaments (drawn, in the title's color): each theme its own. */
.zb-ornament svg { display: block; margin: 0 auto; height: 1.1em; width: auto; overflow: visible; }
.zb-ornament.orn-rule svg, .zb-ornament.orn-line svg, .zb-ornament.orn-flourish svg, .zb-ornament.orn-doodle svg { height: 0.8em; }
.zb-ornament.orn-tape svg { height: 0.9em; }
.zb-ornament.orn-none { visibility: hidden; height: 0.6em; }
/* The fold's tint on each look's paper (Book Gutter Shadow). */
.zb-paper.look-corners, .zb-paper.look-gallery { --gutter: 0,0,0; --gutter-k: 1.7; }
.zb-paper.look-magnetic { --gutter: 90,65,15; }
.zb-paper.look-kraft { --gutter: 50,28,8; --gutter-k: 1.15; }
.zb-paper.look-linen { --gutter: 35,35,35; --gutter-k: 0.85; }
.zb-paper.look-instant { --gutter: 35,45,55; --gutter-k: 0.9; }
.zb-paper.look-scalloped { --gutter: 45,40,30; }
.zb-paper.look-square { --gutter: 90,45,10; }
.zb-paper.look-wedding { --gutter: 90,70,30; --gutter-k: 0.8; }
.zb-paper.look-travel { --gutter: 50,45,35; --gutter-k: 0.9; }
.zb-paper.look-pastel { --gutter: 110,55,75; --gutter-k: 0.9; }
.zb-paper.look-sepia { --gutter: 80,50,15; }
/* Covers (the boards and the case): the look's color (bookColor/LOOK_DRESS) and material. */
.zb-board.tex-cloth, .zb-case.tex-cloth { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px),
            repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 35% 25%, rgba(255,255,255,0.12), transparent 60%); }
.zb-board.tex-vinyl, .zb-case.tex-vinyl { background-image: radial-gradient(ellipse at 35% 25%, rgba(255,255,255,0.18), transparent 55%),
            repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,0.04) 0 1px, transparent 1px 4px); }
.zb-board.tex-kraft, .zb-case.tex-kraft { background-image: repeating-linear-gradient(17deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 7px),
            radial-gradient(ellipse at 40% 30%, rgba(255,220,170,0.25), transparent 65%); }
.zb-board.tex-plain, .zb-case.tex-plain { background-image: radial-gradient(ellipse at 35% 25%, rgba(255,255,255,0.10), transparent 60%); }
/* (Book Fonts) The cover's name in the book's title lettering; a theme's own touches as before. */
.zb-cover h1 { font-family: var(--title-font, Georgia, serif); }
.zb-cover.look-gallery h1, .zb-cover.look-linen h1 { letter-spacing: 0.12em; text-transform: uppercase; font-size: calc(var(--page-w) * 0.05 * var(--fit, 1)); }
.zb-cover.look-wedding h1 { font-size: calc(var(--page-w) * 0.08 * var(--fit, 1)); }
.zb-cover.look-kraft h1, .zb-cover.look-pastel h1 { text-shadow: none; }
.zb-cover h1, .zb-cover .zb-rule { color: var(--cover-ink, #e8c977); border-color: var(--cover-ink, #e8c977); }
/* (Themes and Custom) Blind lettering: pressed into the board with no foil, its lit lower edge what reads. */
.zb-cover.ink-blind h1 { text-shadow: 0 1px 0 rgba(255,255,255,0.22), 0 -1px 0 rgba(0,0,0,0.25); }

/* Settings (admins): Book settings, Section settings, Shelf options. */
.bk-set-look { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; padding: 12px 14px; }
.bk-swatch { position: relative; border: 2px solid transparent; border-radius: 6px; padding: 0 0 6px; background: none; color: #eadfca; cursor: pointer; font: 12px Georgia, serif; }
.bk-swatch.on, .bk-swatch:hover { border-color: #e2c27a; }
.bk-swatch .zb-page { position: relative; --page-w: 110px; --page-h: 82px; width: 100%; height: 82px; border-radius: 4px 4px 0 0; box-shadow: none; }
.bk-swatch .zb-print { position: absolute; left: 20%; top: 16%; width: 60%; height: 56%; background: linear-gradient(160deg, #8fb3c9, #4c7d5a); }
.bk-swatch span.nm { display: block; margin-top: 4px; }
.bk-set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 8px 14px; border-top: 1px solid #4a3c2c; }
.bk-set-row label { display: flex; align-items: center; gap: 6px; font: 14px Georgia, serif; }
.bk-set-row select { background: #1d1610; color: #eadfca; border: 1px solid #5a4a35; border-radius: 4px; padding: 3px 6px; font: 14px Georgia, serif; }
.bk-set-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid #4a3c2c; }
.bk-set-foot .grow { flex: 1; }
/* (Themes and Custom) The tabs, each with Randomize; the preview beside them (below, on a phone). */
.bk-pick-panel.bk-settings { width: min(1080px, 100%); max-height: 92vh; }
.bk-set-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 8px 14px 0; border-bottom: 1px solid #4a3c2c; }
.bk-tabs { display: flex; gap: 2px; }
.bk-tab { border: 1px solid #4a3c2c; border-bottom: 0; border-radius: 6px 6px 0 0; background: #221a14; color: #cdbb98; padding: 6px 16px; font: 14px Georgia, serif; cursor: pointer; }
.bk-tab.on { background: #3a2d22; color: #f3e6c8; border-color: #6b5538; }
.bk-set-now { margin-left: auto; padding-bottom: 6px; font: italic 13px Georgia, serif; color: #cdbb98; }
.bk-set-main { flex: 1; display: flex; gap: 14px; min-height: 0; overflow: auto; padding: 0 14px 0 0; }
.bk-set-body { flex: 1; min-width: 0; overflow-y: auto; }
.bk-set-tools { display: flex; justify-content: flex-end; padding: 10px 14px 0; }
.bk-set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 18px; padding: 12px 14px 16px; }
.bk-set-grid label, .bk-set-field { display: flex; flex-direction: column; gap: 4px; font: 13px Georgia, serif; color: #cdbb98; }
.bk-set-grid select { background: #1d1610; color: #eadfca; border: 1px solid #5a4a35; border-radius: 4px; padding: 5px 6px; font: 14px Georgia, serif; }
.bk-set-field.wide { grid-column: 1 / -1; }
.bk-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); padding: 0; cursor: pointer; }
.bk-color.on { border-color: #e2c27a; box-shadow: 0 0 0 2px #2a211a, 0 0 0 4px #e2c27a; }
.bk-color.paper-own { background: linear-gradient(135deg, #f4ede0 44%, #b4473a 46%, #b4473a 54%, #f4ede0 56%); }
.bk-swatch.custom::after { content: "custom"; position: absolute; top: 4px; right: 4px; padding: 1px 6px; border-radius: 8px; background: #6b4f22; color: #f3e6c8; font: 10px Georgia, serif; }
.bk-swatch .bk-sw-aa { position: absolute; right: 8%; bottom: 6%; z-index: 3; font-family: var(--title-font, Georgia); font-size: 15px; color: var(--ink); }
.bk-preview { flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 6px 14px; width: calc(var(--page-w, 132px) + 2 * var(--band, 5px) + 12px); }
.bk-pv-slot { position: relative; flex: none; width: calc(var(--page-w) + 2 * var(--band)); height: calc(var(--page-h) + 2 * var(--band)); }
.bk-pv-slot > .zb-page { left: var(--band); top: var(--band); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.bk-pv-slot > .zb-board { left: 0; top: 0; }
.bk-pv-slot .zb-print { cursor: default; pointer-events: none; }
@media (max-width: 768px) {
  .bk-set-main { flex-direction: column; padding: 0; }
  .bk-set-body { flex: none; overflow: visible; }
  .bk-preview { width: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
.bk-btn.primary { background: #6b4f22; border-color: #e2c27a; }

/* The contents. */
.zb-toc { position: absolute; left: 10%; right: 10%; top: 7%; bottom: 8%; }
.zb-toc h2 { margin: 0 0 calc(var(--page-w) * 0.04); text-align: center; font-weight: 400; font-size: calc(var(--page-w) * 0.055); letter-spacing: 0.08em; font-variant: small-caps; }
.zb-toc-line { display: flex; align-items: baseline; gap: 0.4em; width: 100%; padding: calc(var(--page-w) * 0.008) 0; border: 0; background: none; color: inherit;
               font: calc(var(--page-w) * 0.032 * var(--fit, 1)) Georgia, serif; text-align: left; cursor: pointer; }
.zb-toc-line:hover .zb-toc-title { text-decoration: underline; }
/* (Title Page Names) A part's whole name: it wraps, and the page's type shrinks till all fit (fitToc). */
.zb-toc-line { align-items: last baseline; }
.zb-toc-title { min-width: 0; text-wrap: balance; overflow-wrap: break-word; line-height: 1.2; }
.zb-toc-date { flex: none; font-style: italic; color: var(--ink-soft); font-size: 0.82em; }
.zb-toc-dots { flex: 1; min-width: 1em; border-bottom: 1px dotted rgba(80,60,30,0.5); transform: translateY(-0.25em); }
.zb-toc-page { flex: none; font-variant-numeric: lining-nums; }
.zb-arrow { position: absolute; top: 50%; z-index: 4; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 6px;
            background: rgba(0,0,0,0.25); color: #eadfca; font-size: 30px; cursor: pointer; }
.zb-arrow:hover { background: rgba(0,0,0,0.45); }
.zb-arrow[disabled] { visibility: hidden; }
/* (Hardback Covers) slim, close to the screen's sides: the book takes the room between */
#bk-prev { left: 4px; } #bk-next { right: 4px; }
#bk-prev, #bk-next { width: 34px; }
@media (max-width: 768px) { .zb-arrow { display: none; } }

/* (book 0.4.0) The app's layer over the pages at rest (opts.layer), under the turning leaf. */
.zb-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* (book 0.4.0, Grimoire's) A tooled frame round the cover, in its lettering's ink; on the back, the
   cover's ornament tooled small. */
.zb-board .zb-cover-frame { position: absolute; inset: calc(var(--band) * 1.6) calc(var(--band) * 1.6) calc(var(--band) * 1.6) calc(var(--band) * 2.2);
            border: 1.5px solid var(--cover-ink, #e8c977); opacity: 0.7; pointer-events: none;
            box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px var(--cover-ink, #e8c977); }
.zb-board[data-spine="r"] .zb-cover-frame { left: calc(var(--band) * 1.6); right: calc(var(--band) * 2.2); }
.zb-board.ink-blind .zb-cover-frame { opacity: 1; box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px var(--cover-ink), 0 1px 0 rgba(255,255,255,0.18); }
.zb-board .zb-back-mark { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; justify-content: center; pointer-events: none; }
.zb-board .zb-back-mark .zb-ornament { margin: 0; font-size: calc(var(--page-w) * 0.06); color: var(--cover-ink, #e8c977); opacity: 0.85; }
.zb-board.ink-blind .zb-back-mark .zb-ornament { filter: drop-shadow(0 1px 0 rgba(255,255,255,0.22)); }
.zb-ornament.orn-compass svg, .zb-ornament.orn-moon svg, .zb-ornament.orn-knot svg, .zb-ornament.orn-sun svg { height: 1.6em; }
.zb-cover .zb-ornament.orn-compass svg, .zb-cover .zb-ornament.orn-moon svg, .zb-cover .zb-ornament.orn-knot svg, .zb-cover .zb-ornament.orn-sun svg { height: 2.2em; }
/* The ribbon: its end hangs from the spine below the pages (it comes from under them), and on the
   marked spread it lies down the right page beside the binding (.zb-ribbon-lie, part of that page,
   so it turns with it). Colors: --ribbon-1..4, from the ribbon (Book.ribbonColors). */
.zb-ribbon { position: absolute; z-index: 0; top: calc(var(--page-h) - 2px); height: calc(var(--band) + 34px); padding: 0; border: 0; background: none;
             cursor: pointer; transition: height 0.2s; -webkit-tap-highlight-color: transparent; }
.zb-ribbon[hidden] { display: none; }
.zb-ribbon:hover, .zb-ribbon:focus-visible { height: calc(var(--band) + 44px); outline: none; }
.zb-ribbon-strip, .zb-ribbon-shade { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 13px), 0 100%); }
.zb-ribbon-strip { background: linear-gradient(90deg, var(--ribbon-1), var(--ribbon-2) 40%, var(--ribbon-3) 80%, var(--ribbon-4)); }
.zb-ribbon-shade { background: #000; opacity: 0.55; transform: translate(1.5px, 1px); filter: blur(1.5px); }
.zb-ribbon:focus-visible .zb-ribbon-strip { outline: 2px solid #e2c27a; }
.zb-ribbon-lie { position: absolute; z-index: 2; top: 0; bottom: 0; pointer-events: none;
                 background: linear-gradient(90deg, var(--ribbon-1), var(--ribbon-2) 40%, var(--ribbon-3) 80%, var(--ribbon-4)); box-shadow: 1px 0 2px rgba(40,20,5,0.45); }
