[hidden]{display:none !important}
/* =========================================================
   Printable Reading Log — styles
   Palette: terracotta, deep teal, parchment
   ========================================================= */

:root {
  --terracotta: #e07a4f;
  --terracotta-dark: #c75f37;
  --teal: #18796b;
  --teal-dark: #0f5a4f;
  --parchment: #f7efe1;
  --parchment-deep: #efe2cb;
  --ink: #2e2a26;
  --ink-soft: #6a6058;
  --line: #d8c9ad;
  --white: #fffdf8;
  --shadow: 0 6px 22px rgba(46, 42, 38, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

a { color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--parchment-deep);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 5px 20px; }
.logo-link { display: inline-flex; }
.logo { height: 120px; width: auto; display: block; }
@media (max-width: 520px) { .logo { height: 84px; } }
.header-nav { display: flex; gap: 22px; }
.header-nav a { text-decoration: none; font-weight: 700; color: var(--teal-dark); }
.header-nav a:hover { color: var(--terracotta); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%); padding: 12px 0 10px; text-align: center; }
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.15; margin: 0 0 6px; color: var(--teal-dark);
}
.hero-sub { max-width: 680px; margin: 0 auto; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Builder layout ---------- */
.builder { padding: 14px 0 50px; }
.builder-grid { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.builder-grid > * { min-width: 0; }

/* ---------- Controls ---------- */
.controls {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px 18px 18px; border: 1px solid var(--parchment-deep);
}
.ctl-group { border: none; border-top: 1px solid var(--parchment-deep); margin: 0; padding: 16px 0 4px; }
.ctl-group:first-of-type { border-top: none; }
.ctl-group legend {
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1.02rem;
  color: var(--terracotta-dark); padding: 0; margin-bottom: 10px;
}

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 5px; color: var(--ink-soft); }
.field input[type="text"] {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 9px; font: inherit; background: var(--parchment);
}
.field input[type="text"]:focus { outline: none; border-color: var(--teal); background: var(--white); }
.field input[type="range"] { width: 100%; accent-color: var(--terracotta); }

/* presets */
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  flex: 1 1 auto; padding: 9px 10px; border: 1.5px solid var(--line);
  background: var(--parchment); border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.84rem; white-space: nowrap;
}
.preset:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }
.preset.active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

/* mode + format buttons */
.mode-toggle, .format-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-btn, .fmt-btn {
  flex: 1 1 0; min-width: 90px; padding: 10px 8px; border: 1.5px solid var(--line);
  background: var(--parchment); border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.9rem;
}
.mode-btn:hover, .fmt-btn:hover { border-color: var(--teal); }
.mode-btn[aria-checked="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.fmt-btn[aria-checked="true"] { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.hint { margin: 10px 0 0; font-size: 0.84rem; color: var(--ink-soft); font-style: italic; }

/* theme buttons */
.theme-row { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-btn {
  flex: 1 1 0; min-width: 66px; padding: 8px 6px; border: 1.5px solid var(--line);
  background: var(--parchment); border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.82rem; position: relative;
}
.theme-btn::before {
  content: ""; display: block; height: 8px; border-radius: 5px; margin-bottom: 5px;
}
.theme-swatch-classic::before { background: linear-gradient(90deg, #18796b, #e07a4f); }
.theme-swatch-sky::before     { background: linear-gradient(90deg, #2f6db3, #5aa0e0); }
.theme-swatch-blush::before   { background: linear-gradient(90deg, #c14e78, #e79bb4); }
.theme-swatch-mint::before    { background: linear-gradient(90deg, #2e8b73, #8fd0bb); }
.theme-swatch-sunshine::before{ background: linear-gradient(90deg, #d99a17, #f0c04b); }
.theme-btn:hover { border-color: var(--teal); }
.theme-btn[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }

/* mini paper/orient toggles */
.mini-toggle { display: flex; gap: 8px; }
.paper-btn, .orient-btn {
  flex: 1 1 0; padding: 9px 8px; border: 1.5px solid var(--line);
  background: var(--parchment); border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.86rem;
}
.paper-btn:hover, .orient-btn:hover { border-color: var(--teal); }
.paper-btn[aria-checked="true"], .orient-btn[aria-checked="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }

/* rating style + selects */
.field select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 9px; font: inherit; background: var(--parchment);
}
.field select:focus { outline: none; border-color: var(--teal); background: var(--white); }

/* quick-set chips */
.chip-row { display: flex; gap: 8px; margin: -4px 0 12px; }
.chip {
  flex: 1 1 0; padding: 7px 6px; border: 1.5px solid var(--line);
  background: var(--parchment); border-radius: 8px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.84rem;
}
.chip:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }

/* toggles */
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--teal); }
.chk.big { margin-top: 6px; font-size: 0.95rem; }

/* actions */
.ctl-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn {
  font: inherit; font-weight: 800; border-radius: 11px; cursor: pointer;
  padding: 13px 16px; border: 2px solid transparent;
}
.btn-print { flex: 1; background: var(--terracotta); color: #fff; font-size: 1.02rem; }
.btn-print:hover { background: var(--terracotta-dark); }
.btn-ghost { background: var(--parchment); border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Preview ---------- */
.preview-pane { background: var(--parchment-deep); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow) inset; overflow-x: auto; }
.preview-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 0 4px; }
.preview-tag { background: var(--teal); color: #fff; font-weight: 800; font-size: 0.78rem; padding: 4px 11px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; }
.preview-note { font-size: 0.86rem; color: var(--ink-soft); }
.sheet-scroll { overflow-x: auto; }

/* =========================================================
   SHEET THEMES — accent vars set per theme class on #sheet
   ========================================================= */
.sheet {
  /* Classic (default) */
  --s-accent: #18796b;       /* primary / headings / adult th */
  --s-accent-dark: #0f5a4f;
  --s-accent2: #e07a4f;      /* secondary / kid heading */
  --s-accent2-dark: #c75f37;
  --s-tint: #faf7f0;         /* even-row / kid tint */
}
.sheet.theme-sky {
  --s-accent: #2f6db3; --s-accent-dark: #244f80;
  --s-accent2: #e08a3c; --s-accent2-dark: #b96a1f;
  --s-tint: #eef4fb;
}
.sheet.theme-blush {
  --s-accent: #c14e78; --s-accent-dark: #963a5c;
  --s-accent2: #7a5aa8; --s-accent2-dark: #5d4483;
  --s-tint: #fbeef3;
}
.sheet.theme-mint {
  --s-accent: #2e8b73; --s-accent-dark: #1f6353;
  --s-accent2: #d98f3a; --s-accent2-dark: #b06d1f;
  --s-tint: #edf7f3;
}
.sheet.theme-sunshine {
  --s-accent: #d99a17; --s-accent-dark: #a8760e;
  --s-accent2: #e07a4f; --s-accent2-dark: #c75f37;
  --s-tint: #fdf6e6;
}

/* =========================================================
   THE SHEET (shared) — this is what prints
   ========================================================= */
.sheet {
  background: #fff; color: #1c1a17; width: 760px; max-width: 100%;
  margin: 0 auto; padding: 34px 38px; box-shadow: 0 2px 14px rgba(0,0,0,.14);
  border-radius: 4px;
}
.sheet.landscape { width: 1000px; }
.sheet-head { text-align: center; margin-bottom: 18px; }
.sheet-title { margin: 0; line-height: 1.1; max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
/* long reader names shrink so they can never spill past the printable card */
.mode-adult .sheet-title.title-long { font-size: 1.4rem; }
.mode-kid .sheet-title.title-long { font-size: 1.65rem; }
.sheet-goal { margin: 6px 0 0; font-size: 0.98rem; }
.sheet-meta-line { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 0.9rem; }
.sheet-meta-line span { border-bottom: 1.4px dotted #999; flex: 1; padding-bottom: 2px; }

.sheet-sub { margin: 4px 0 0; font-weight: 700; font-size: 1.05rem; }
.mode-adult .sheet-sub { font-family: "Fraunces", serif; color: var(--s-accent); }
.mode-kid .sheet-sub { font-family: "Baloo 2", sans-serif; color: var(--s-accent); }

/* reading-challenge progress bar */
.challenge-bar { margin: 14px 0 18px; break-inside: avoid; page-break-inside: avoid; }
.cb-label { font-weight: 800; font-size: 0.92rem; color: var(--s-accent-dark); }
.cb-blank { display: inline-block; width: 46px; border-bottom: 1.6px solid #999; height: 0.9em; vertical-align: bottom; }
.cb-track { display: flex; gap: 2px; height: 20px; margin-top: 18px; }
.cb-track i { flex: 1 1 0; min-width: 0; background: #fff; border: 1.6px solid var(--s-accent); border-radius: 3px; position: relative; }
.cb-track i.cb-ms { border-color: var(--s-accent2-dark); border-width: 2.2px; }
.cb-track i.cb-ms::after {
  content: "⭐"; position: absolute; top: -17px; left: 50%;
  transform: translateX(-50%); font-size: 0.72rem; line-height: 1;
}
.mode-kid .cb-track { height: 24px; }
.mode-kid .cb-label { font-family: "Baloo 2", sans-serif; color: var(--s-accent); font-size: 1rem; }
.mode-kid .cb-track i { border-width: 2px; border-radius: 5px; background: #fff6e6; }

/* pre-filled first column (weekly Mon–Sun / monthly 1–31) */
.col-prefill { font-weight: 700; color: var(--s-accent-dark); white-space: nowrap; }

/* TBR — "Books I want to read next" */
.tbr-block { margin-top: 20px; break-inside: avoid; page-break-inside: avoid; }
.tbr-title { margin: 0 0 8px; font-size: 1.05rem; font-family: "Fraunces", serif; color: var(--s-accent-dark); }
.tbr-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tbr-table th, .tbr-table td { border: 1px solid #c9c2b4; padding: 6px 8px; text-align: left; }
.tbr-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .02em; }
.tbr-table td { height: 26px; }
.mode-adult .tbr-table th { background: var(--s-accent-dark); color: #fff; }
.mode-kid .tbr-title { font-family: "Baloo 2", sans-serif; color: var(--s-accent2); font-size: 1.15rem; }
.mode-kid .tbr-table th { background: var(--s-accent2); color: #fff; border-color: var(--s-accent2); font-family: "Baloo 2", sans-serif; }
.mode-kid .tbr-table td { border: 2px solid #ffd9a8; height: 32px; }

/* goal tracker */
.goal-tracker { margin: 14px 0 18px; }
.goal-tracker .gt-label { font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.gt-squares { display: flex; flex-wrap: wrap; gap: 5px; }
.gt-squares i { display: block; width: 22px; height: 22px; border: 1.6px solid var(--s-accent); border-radius: 4px; }

/* table */
.log-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.log-table th, .log-table td { border: 1px solid #c9c2b4; padding: 7px 8px; text-align: left; vertical-align: middle; }
.log-table th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: .02em; }
.log-table td { height: 30px; }
.col-rating .stars { letter-spacing: 2px; font-size: 1rem; color: #d8b400; white-space: nowrap; }
.col-rating .rate-num { font-weight: 700; color: #6a6058; white-space: nowrap; }
.col-rating .rate-smiley { font-size: 1.05rem; letter-spacing: 1px; white-space: nowrap; }
.col-num { text-align: center; }
.col-rec, .col-init { text-align: center; }
.col-rec { width: 54px; }
.col-init { width: 60px; }
.rec-yn { font-weight: 700; color: #6a6058; letter-spacing: 1px; }

/* coloring strip */
.coloring-strip { margin-top: 18px; border: 2px dashed var(--s-accent2); border-radius: 10px; padding: 12px 14px; text-align: center; }
.coloring-strip .cs-label { font-weight: 700; font-size: 0.86rem; margin-bottom: 8px; }
.coloring-strip .cs-icons { font-size: 1.7rem; letter-spacing: 8px; color: #cfc6b6; }

.sheet-foot { margin-top: 16px; text-align: center; font-size: 0.78rem; color: #8a8275; }
.print-foot { display: none; }

/* =========================================================
   MODE: ADULT (clean)
   ========================================================= */
.mode-adult .sheet-title { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.9rem; letter-spacing: .01em; color: var(--s-accent-dark); }
.mode-adult .sheet-goal { font-family: "Fraunces", serif; font-style: italic; color: var(--s-accent2-dark); }
.mode-adult .log-table th { background: var(--s-accent-dark); color: #fff; font-family: "Nunito", sans-serif; }
.mode-adult .log-table tr:nth-child(even) td { background: var(--s-tint); }
.mode-adult .gt-squares i { width: 18px; height: 18px; border-radius: 3px; border-color: var(--s-accent-dark); }
.mode-adult .sheet-head { border-bottom: 2px solid var(--s-accent-dark); padding-bottom: 12px; }

/* =========================================================
   MODE: KID (playful) — clearly distinct
   ========================================================= */
.mode-kid .sheet { background: #fffdf6; border: 4px solid var(--s-accent2); border-radius: 18px; }
.mode-kid .sheet-head { border-bottom: 4px dashed var(--s-accent2); padding-bottom: 14px; }
.mode-kid .sheet-title { font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 700; font-size: 2.3rem; color: var(--s-accent2); text-shadow: 1.5px 1.5px 0 #ffe2b0; }
.mode-kid .sheet-goal { font-family: "Baloo 2", sans-serif; font-weight: 600; color: var(--s-accent); font-size: 1.1rem; }
.mode-kid .log-table { border-spacing: 0 6px; border-collapse: separate; }
.mode-kid .log-table th { background: var(--s-accent2); color: #fff; font-family: "Baloo 2", sans-serif; border: none; border-radius: 8px; font-size: 0.86rem; }
.mode-kid .log-table td { background: #fff; border: 2px solid #ffd9a8; height: 40px; font-family: "Baloo 2", sans-serif; }
.mode-kid .log-table td:first-child { border-radius: 10px 0 0 10px; }
.mode-kid .log-table td:last-child { border-radius: 0 10px 10px 0; }
.mode-kid .col-rating .stars { color: #ffb300; font-size: 1.25rem; }
.mode-kid .gt-squares i { width: 26px; height: 26px; border: 2.5px solid var(--s-accent2); border-radius: 7px; background: #fff6e6; }
.mode-kid .goal-tracker .gt-label { font-family: "Baloo 2", sans-serif; color: var(--s-accent); font-size: 1rem; }
.mode-kid .coloring-strip { border-color: var(--s-accent); background: #effaf6; }

/* =========================================================
   BOOKSHELF / SPINE COLORING TRACKER
   ========================================================= */
.shelf-legend { font-size: 0.9rem; font-weight: 700; margin: 4px 0 16px; color: var(--s-accent-dark); }
.shelf-legend em { font-weight: 400; font-style: italic; color: #6a6058; }
.bookshelf { display: block; }
.shelf-row {
  display: flex; align-items: flex-end; flex-wrap: nowrap; gap: 5px;
  position: relative; margin-bottom: 22px; padding: 0 4px 6px; min-height: 120px;
  break-inside: avoid; page-break-inside: avoid;
}
.shelf-board {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: var(--s-accent-dark); border-radius: 3px;
}
.spine {
  position: relative; height: 110px; background: #fff;
  border: 1.6px solid var(--s-accent-dark); border-radius: 2px 2px 0 0;
  display: inline-block; flex: 0 0 auto;
}
.spine-line {
  position: absolute; top: 14px; bottom: 14px; left: 50%; width: 0;
  border-left: 1px dotted #b9b0a0; transform: translateX(-50%);
}
.mode-kid .spine { border-color: var(--s-accent2); border-width: 2px; border-radius: 4px 4px 0 0; }
.mode-kid .shelf-board { background: var(--s-accent2); }

/* =========================================================
   BOOK REVIEW / JOURNAL SHEET
   ========================================================= */
.review-sheet { margin-top: 6px; }
.rv-meta { margin-bottom: 14px; }
.rv-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.rv-llabel { font-weight: 700; font-size: 0.9rem; white-space: nowrap; color: var(--s-accent-dark); }
.rv-fill { flex: 1; border-bottom: 1.6px dotted #999; min-height: 20px; }
.rv-dates { display: flex; gap: 20px; }
.rv-line-half { flex: 1; }
.rv-rating { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; font-size: 1.1rem; }
.rv-rlabel { font-weight: 700; font-size: 0.9rem; color: var(--s-accent-dark); }
.rv-rating .stars { color: #d8b400; letter-spacing: 3px; font-size: 1.4rem; }
.rv-block { margin-bottom: 16px; }
.rv-blabel { font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; color: var(--s-accent-dark); }
.rv-lines { display: flex; flex-direction: column; gap: 14px; }
.rv-blank { display: block; border-bottom: 1.6px dotted #999; height: 4px; }
.rv-draw { margin-top: 10px; }
.rv-drawbox { border: 2px dashed var(--s-accent); border-radius: 10px; height: 200px; }
.mode-kid .rv-llabel, .mode-kid .rv-blabel, .mode-kid .rv-rlabel { font-family: "Baloo 2", sans-serif; color: var(--s-accent2); }
.mode-kid .rv-drawbox { border-color: var(--s-accent2); }

/* =========================================================
   SUPPORTING CONTENT
   ========================================================= */
.content, .faq { padding: 18px 0 40px; }
.content h2, .faq h2 { font-family: "Fraunces", serif; color: var(--teal-dark); font-size: 1.55rem; margin-top: 34px; }
.content p, .content li { font-size: 1.04rem; }
.content ul { padding-left: 22px; }
.content li { margin-bottom: 6px; }

.table-wrap { overflow-x: auto; margin: 18px 0; }
.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--parchment-deep); font-size: 0.96rem; }
.compare thead th { background: var(--teal); color: #fff; font-family: "Nunito", sans-serif; }
.compare td:first-child { font-weight: 700; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--parchment-deep); border-radius: 11px; padding: 4px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { font-weight: 800; cursor: pointer; padding: 12px 0; color: var(--teal-dark); font-size: 1.04rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋ "; color: var(--terracotta); font-weight: 800; }
.faq details[open] summary::before { content: "－ "; }
.faq details p { margin: 0 0 14px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: #f3ede0; padding: 30px 0; margin-top: 10px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-logo { height: 48px; width: auto; background: #fff; padding: 6px 12px; border-radius: 10px; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: #ffd9bf; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: #fff; }
.copyright { margin: 0; font-size: 0.86rem; color: #c9d8d2; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .builder-grid { grid-template-columns: 1fr; }
  .header-nav { gap: 16px; font-size: 0.9rem; }
  .sheet { padding: 24px; }
}
@media (max-width: 480px) {
  .toggles { grid-template-columns: 1fr; }
  .header-nav a:nth-child(1) { display: none; }
}

/* =========================================================
   PRINT — print-first worksheet. Hide all UI chrome.
   ========================================================= */
@media print {
  /* @page size/orientation is set dynamically by #prl-page (paper + orient controls) */
  body { background: #fff; }
  .site-header, .hero, .controls, .preview-bar, .content, .faq, .site-footer,
  .header-nav, .ctl-actions, .pop-guides, .famblock, .sheet-foot { display: none !important; }

  .builder, .builder-grid { display: block; padding: 0; margin: 0; }
  .preview-pane { background: #fff; box-shadow: none; padding: 0; border-radius: 0; }
  .sheet-scroll { overflow: visible; }

  .sheet {
    width: 100%; max-width: 100%; margin: 0; padding: 0;
    box-shadow: none; border-radius: 0;
  }
  .sheet.landscape { width: 100%; }
  .mode-kid .sheet { border-width: 3px; }
  .log-table td { height: 30px; }
  .mode-kid .log-table td { height: 38px; }

  /* long logs: repeat table headers on every printed page, keep rows whole */
  .log-table thead, .tbr-table thead { display: table-header-group; }
  .log-table tr, .tbr-table tr { break-inside: avoid; page-break-inside: avoid; }
  .log-table, .tbr-table { break-inside: auto; page-break-inside: auto; }

  /* blocks that should never split across pages */
  .challenge-bar, .goal-tracker, .tbr-block, .coloring-strip,
  .rv-block, .rv-draw { break-inside: avoid; page-break-inside: avoid; }

  /* 50–100 spine shelves: shelf rows stay whole, the shelf itself may span pages */
  .bookshelf { break-inside: auto; page-break-inside: auto; }
  .shelf-row { break-inside: avoid; page-break-inside: avoid; }

  /* keep colors when printing */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  a[href]:after { content: ""; }

  /* site URL footer — only appears on the printed sheet */
  .print-foot{display:block;text-align:center;font-size:8pt;font-weight:700;letter-spacing:.04em;color:#b3b3b3;margin-top:8px}
}
