/* עמודי הדפסה: סדר אזכרה, ספר זיכרון, QR */
.sheet { background: #fff; color: #1d1c1a; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; font-family: var(--serif); }
.sheet-head { text-align: center; border-bottom: 1px solid #d9d3c9; padding-bottom: 14px; margin-bottom: 18px; }
.sheet-head h1 { font-size: 26px; margin: 4px 0 6px; }
.sheet-head p { margin: 2px 0; color: #55514b; font-family: var(--sans); font-size: 15px; }
.sheet-kicker { letter-spacing: .04em; }
.sheet-sec { margin: 0 0 18px; break-inside: avoid-page; }
.sheet-sec h2 { font-size: 19px; margin: 0 0 2px; }
.sheet-sub { font-family: var(--sans); font-size: 13px; color: #6f6a62; margin: 0 0 4px; }
.sheet-text { font-size: 18px; line-height: 1.9; text-align: justify; }
.sheet-end { text-align: center; letter-spacing: .1em; margin-top: 24px; }
.sheet-credit { text-align: center; font-family: var(--sans); font-size: 11px; color: #8a847b; margin-top: 6px; }

/* ספר זיכרון */
.book { background: #fff; color: #1d1c1a; font-family: var(--serif); }
.book .page { padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.book .cover { text-align: center; padding: 60px 22px; }
.book .cover img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; margin-bottom: 18px; }
.book .cover h1 { font-size: 34px; }
.book h2 { font-size: 22px; margin: 0 0 10px; }
.book .story { font-size: 17px; line-height: 1.8; }
.book .gallery img { border-radius: 6px; }
.book .memory { break-inside: avoid; }
.book .muted, .book .by { color: #6f6a62; }

.book .tree .name { background: #fff; color: #1d1c1a; border-color: #d9d3c9; }
.book .tree .gen-title { color: #6f6a62; }

/* QR */
.qr-box { background: #fff; color: #1d1c1a; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.qr-box svg { display: block; margin: 0 auto; }
.qr-label { font-family: var(--serif); margin-top: 10px; }
.qr-label b { font-size: 18px; font-weight: 500; }

@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff !important; color: #000; font-size: 12pt; }
  main { max-width: none; padding: 0; }
  .noprint, .toast, footer { display: none !important; }
  .sheet, .book .page, .qr-box { border: none; border-radius: 0; padding: 0; background: #fff; }
  .book .page { break-after: page; }
  .book .page:last-child { break-after: auto; }
  .sheet-text { font-size: 13.5pt; }
  .tree .name { background: #fff; }
  a { color: inherit; text-decoration: none; }
}
.sheet-text { font-family: var(--prayer); }
