/* Printouts for kids (kids/print.js): a preview over everything, then one sheet to a page */
.kp-preview { position: fixed; inset: 0; z-index: 2147483300; display: flex; flex-direction: column; background: #6E6A63; }
.kp-preview[hidden] { display: none; }
.kp-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #2E2B27; color: #fff; font: 700 15px -apple-system, system-ui, sans-serif; }
.kp-bar span { display: flex; gap: 8px; }
.kp-print { height: 40px; padding: 0 18px; border: none; border-radius: 999px; background: #F2913D; color: #fff; font: 800 15px -apple-system, system-ui, sans-serif; cursor: pointer; }
.kp-x { width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 18px; cursor: pointer; }
.kp-pages { flex: 1; overflow: auto; padding: 12px; }
.kp-pages > .kp-sheet { zoom: var(--z, 1); margin: 0 auto 16px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }

/* the sheet: US Letter, at 96 dots an inch on the screen */
.kp-sheet { position: relative; display: flex; flex-direction: column; gap: 14px; width: 816px; height: 1056px; padding: 40px 44px 30px; overflow: hidden; background: #fff; color: #222; font-family: "Andika", "Comic Sans MS", -apple-system, system-ui, sans-serif; box-sizing: border-box; }
.kp-head { text-align: center; }
.kp-kick { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #555; }
.kp-hollow { margin: 2px 0 0; font: 900 76px/1 "Andika", "Arial Rounded MT Bold", -apple-system, system-ui, sans-serif; letter-spacing: 0.04em; color: #fff; -webkit-text-stroke: 3px #222; paint-order: stroke fill; }
.kp-hollow.is-mid { font-size: 52px; }
.kp-tag { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.kp-facts { display: flex; gap: 10px; }
.kp-facts span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 10px; border: 2.5px dashed #222; border-radius: 18px; font-size: 14px; text-align: center; }
.kp-facts span.is-wide { flex: 2.4; font-style: italic; }
.kp-facts b { font-size: 22px; font-style: normal; }
.kp-facts .is-wide b { font-size: 14px; }
.kp-box { flex: 1; min-width: 0; padding: 12px 14px; border: 2.5px solid #222; border-radius: 20px; }
.kp-box h3, .kp-h { margin: 0 0 6px; font-size: 18px; }
.kp-h { text-align: center; }
.kp-box p { margin: 0; font-size: 15px; line-height: 1.4; }
.kp-box.is-idea { flex: none; text-align: center; }
.kp-box.is-idea p { font-size: 17px; }
.kp-row { display: flex; gap: 12px; }
.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kp-grid figure { margin: 0; text-align: center; }
.kp-grid figcaption { margin-top: 3px; font-size: 13px; font-weight: 700; }
.kp-frame, .kp-big { overflow: hidden; border: 2.5px solid #222; border-radius: 14px; }
.kp-frame svg, .kp-big svg { display: block; width: 100%; height: auto; }
.kp-big { flex: none; }
.kp-line, .kp-line * { fill: #fff !important; stroke: #222 !important; stroke-width: 2.2px !important; stroke-linejoin: round; animation: none !important; filter: none !important; }
.kp-ws { margin: 2px auto 6px; border-collapse: collapse; font: 700 16px/1 "Andika", -apple-system, monospace; }
.kp-ws td { width: 24px; height: 24px; text-align: center; border: 1px solid #ccc; }
.kp-wl { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; font-size: 13px !important; font-weight: 700; }
.kp-fill { font-size: 19px !important; line-height: 2.1 !important; }
.kp-blank { display: inline-block; width: calc(var(--n) * 0.9em); border-bottom: 2.5px solid #222; transform: translateY(4px); }
.kp-ref { font-weight: 700; text-align: right; }
.kp-hint { margin-top: 6px !important; font-size: 13px !important; color: #555; }
.kp-draw { height: 150px; margin-top: 8px; border: 2px dashed #888; border-radius: 14px; }
.kp-draw.is-tall { height: 190px; }
.kp-box.is-jesus { display: flex; flex-direction: column; justify-content: center; }
.kp-box.is-jesus p { font-size: 17px; }
.kp-row.is-top { align-items: stretch; }
.kp-who { flex: none; width: 300px; display: grid; place-items: center; border: 2.5px solid #222; border-radius: 20px; padding: 8px; }
.kp-who svg { width: 100%; height: auto; }
.kp-box.is-facts ul { margin: 0 0 10px; padding-left: 20px; font-size: 16px; line-height: 1.45; }
.kp-find { font-size: 16px !important; }
.kp-box.is-family { flex: none; text-align: center; }
.kp-frow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.kp-fbox { display: inline-block; min-width: 110px; padding: 10px 14px; border: 2.5px solid #222; border-radius: 12px; font-size: 18px; font-weight: 700; }
.kp-fplus { font-size: 24px; font-weight: 900; }
.kp-fline { width: 2.5px; height: 16px; margin: 4px auto; background: #222; }
.kp-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; color: #666; }

@media print {
  html.kp-open body > *:not(.kp-preview) { display: none !important; }
  html.kp-open, html.kp-open body { background: #fff !important; }
  .kp-preview { position: static; display: block; background: #fff; }
  .kp-bar { display: none; }
  .kp-pages { overflow: visible; padding: 0; }
  .kp-pages > .kp-sheet { zoom: 1; margin: 0; box-shadow: none; width: 100%; height: 10.15in; break-after: page; page-break-after: always; }
  .kp-pages > .kp-sheet:last-child { break-after: auto; page-break-after: auto; }
  @page { size: letter; margin: 0.4in; }
}
/* (fitting it all on one page) */
.kp-sheet { gap: 11px; padding-top: 32px; }
.kp-hollow { font-size: 64px; }
.kp-frame { height: 104px; }
.kp-frame svg, .kp-big svg { height: 100%; }
.kp-big { height: 360px; }
.kp-who { max-height: 330px; }
.kp-who svg { max-height: 310px; }
.kp-ws td { width: 21px; height: 21px; }
.kp-ws { font-size: 14px; }
.kp-draw { height: 118px; }
.kp-draw.is-tall { height: 150px; }
.kp-grid figcaption { font-size: 12px; line-height: 1.2; }
.kp-frame { height: 92px; }
.kp-big { height: 318px; }
.kp-facts span { padding: 6px 10px; }
.kp-box { padding: 10px 14px; }
.kp-box.is-idea p { font-size: 16px; }
.kp-tag { margin-top: 2px; }
/* (the sheets for every book and chapter, people, stories, anything shared, and memory verses) */
.kp-hollow.is-mid { font-size: 50px; }
.kp-hollow.is-long { font-size: 38px; letter-spacing: 0.02em; }
.kp-wait { margin: 40px auto; color: #fff; font: 700 18px -apple-system, system-ui, sans-serif; text-align: center; }
.kp-frame.is-icon { display: grid; place-items: center; padding: 6px; }
.kp-frame.is-icon svg { width: auto; height: 100%; }
.kp-grid.is-four { grid-template-columns: repeat(4, 1fr); }
.kp-things .kp-frame.is-icon { height: 150px; }
.kp-things .kp-h { margin-bottom: 8px; }
.kp-things figcaption { font-size: 15px !important; }
.kp-box.is-quiz ol { margin: 0; padding-left: 22px; font-size: 15px; }
.kp-box.is-quiz li { margin-bottom: 6px; }
.kp-box.is-quiz li span { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 2px; }
.kp-box.is-quiz li i { font-style: normal; }
.kp-box.is-act p { font-size: 16px; }
.kp-box.is-grow { flex: 1; display: flex; flex-direction: column; }
.kp-draw.is-grow { flex: 1; height: auto; }
.kp-lines { display: grid; gap: 22px; padding: 14px 4px 6px; }
.kp-lines i { display: block; border-bottom: 2px solid #999; }
.kp-corners { position: relative; flex: none; padding: 34px 54px 18px; border: 3px dashed #222; border-radius: 26px; text-align: center; }
.kp-corner { position: absolute; width: 54px; height: 54px; background: #fff; }
.kp-corner:nth-child(1) { left: -18px; top: -18px; } .kp-corner:nth-child(2) { right: -18px; top: -18px; } .kp-corner:nth-child(3) { left: -18px; bottom: -18px; } .kp-corner:nth-child(4) { right: -18px; bottom: -18px; }
.kp-corner svg { width: 100%; height: 100%; }
.kp-mverse { margin: 0; font-size: 30px; line-height: 1.9; font-weight: 700; }
.kp-mverse .kp-blank { border-bottom-width: 3px; }
.kp-corners .kp-ref { margin-top: 6px; font-size: 20px; text-align: center; }
.kp-box.is-bank p { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.kp-box.is-bank span { padding: 6px 14px; border: 2.5px dashed #222; border-radius: 12px; font-size: 20px; font-weight: 700; }
.kp-stars { display: flex; justify-content: center; gap: 14px; }
.kp-stars svg { width: 56px; height: 56px; }
.kp-box.is-say { flex: none; text-align: center; }
/* (room given up, a little at a time, so a long one still fits its page: kids/print.js show) */
.kp-big { height: calc(318px - var(--cut, 0px)); }
.kp-frame { height: calc(92px - var(--cut, 0px) * 0.3); }
.kp-things .kp-frame.is-icon { height: calc(150px - var(--cut, 0px) * 0.5); }
.kp-draw { height: calc(118px - var(--cut, 0px) * 0.4); }
.kp-draw.is-tall { height: calc(150px - var(--cut, 0px) * 0.5); }
.kp-who svg { max-height: calc(310px - var(--cut, 0px)); }
.kp-sheet { --fs-cut: min(3px, calc(var(--cut, 0px) / 40)); }
.kp-box p, .kp-box li { font-size: calc(15px - var(--fs-cut)); }
.kp-box.is-bank { flex: none; }
