/* Chowboard print centre (v1.0.4) */
#cb-print { position: fixed; inset: 0; z-index: 200; background: #2a2420; display: flex; flex-direction: column; color: #fbf3ec; }
body.printing-open { overflow: hidden; }
.pv-bar { background: #16110e; border-bottom: 1px solid #3a2f28; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.pv-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pv-x { width: 42px; height: 42px; border-radius: 12px; border: 1px solid #3a2f28; background: #2a211c; color: #fff; font-size: 18px; cursor: pointer; }
.pv-tabs { display: flex; gap: 6px; flex: 1; min-width: 0; }
.pv-tabs button { flex: 1; padding: 10px 8px; border-radius: 12px; border: 1px solid #3a2f28; background: #211a16; color: #d6c6b8; font-weight: 700; cursor: pointer; font-size: 14px; white-space: nowrap; }
.pv-tabs button.on { background: #ff6b2c; color: #1a0f08; border-color: #ff6b2c; }
.pv-print { width: 100%; padding: 13px 16px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #ff6b2c, #ff9d3a); color: #1a0f08; font-weight: 800; cursor: pointer; font-size: 15px; }
.pv-opts label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #bfae9f; font-weight: 600; flex: 1 1 140px; }
.pv-opts select { min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid #3a2f28; background: #0f0b09; color: #fbf3ec; font: inherit; font-size: 14px; }
.pv-note { font-size: 13px; color: #ffc23d; min-height: 0; }
.pv-note:empty { display: none; }
.pv-stage { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 20px 12px 40px; }
.pv-pages { transform-origin: top left; width: max-content; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .pv-print { width: auto; align-self: flex-end; } }

/* --- paper pages (real size) --- */
#cb-print .tile { margin: 0 !important; }
#cb-print .page { background: #fff; color: #1d1410; box-shadow: 0 12px 40px rgba(0,0,0,.45); position: relative; overflow: hidden; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; }
#cb-print .page.multi { overflow: visible; }

/* menu */
.menu-page { padding: 12.7mm; }
.m-wrap { font-size: 11pt; line-height: 1.28; }
.m-head { display: flex; gap: 5mm; align-items: center; padding-bottom: 3.5mm; border-bottom: 0.8mm solid var(--accent); }
.m-logo { width: 22mm; height: 22mm; border-radius: 5mm; object-fit: cover; flex: none; }
.m-title h1 { font: 700 2.3em/1.05 Lora, Georgia, "Times New Roman", serif; margin: 0; color: #1d1410; }
.m-tl { font: italic 1.05em Lora, Georgia, serif; color: #6b5a4d; margin-top: 1mm; }
.m-meta { font-size: .82em; color: #6b5a4d; margin-top: 1.5mm; }
.m-date { display: flex; justify-content: space-between; gap: 4mm; align-items: baseline; margin: 3mm 0 4mm; font-weight: 700; font-size: .95em; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.m-note { text-transform: none; letter-spacing: 0; font-weight: 600; color: #1d1410; font-style: italic; }
.m-body { column-gap: 9mm; }
.m-cat { break-inside: avoid-column; margin-bottom: 4mm; }
.m-cat h3 { font: 700 1.25em Lora, Georgia, serif; color: var(--accent); margin: 0 0 1.5mm; padding-bottom: 1mm; border-bottom: .3mm solid #e3d6c9; break-after: avoid; }
.m-item { display: flex; gap: 2.5mm; align-items: flex-start; padding: 1.3mm 0; break-inside: avoid; }
.m-ph { width: 13mm; height: 13mm; border-radius: 2.5mm; object-fit: cover; flex: none; }
.m-txt { flex: 1; min-width: 0; }
.m-line { display: flex; align-items: baseline; gap: 2mm; }
.m-nm { font-weight: 700; }
.m-tags { font-weight: 400; font-size: .85em; }
.m-dots { flex: 1; border-bottom: .35mm dotted #b9a796; transform: translateY(-.8mm); min-width: 4mm; }
.m-pr { font-weight: 800; white-space: nowrap; }
.m-sub { display: flex; justify-content: space-between; gap: 3mm; font-size: .8em; color: #6b5a4d; margin-top: .4mm; }
.m-sub em { color: var(--accent); font-style: normal; font-weight: 600; }
.m-sec { white-space: nowrap; }
.m-closed { font: 700 2em Lora, Georgia, serif; text-align: center; padding: 30mm 0; color: #6b5a4d; }
.m-foot { display: flex; gap: 5mm; align-items: center; margin-top: 4mm; padding-top: 3.5mm; border-top: .3mm solid #e3d6c9; break-inside: avoid; }
.m-qr { width: 26mm; flex: none; }
.m-qr svg, .t-qr svg { width: 100%; height: auto; display: block; }
.m-foot b { font-size: 1.02em; }
.m-url { font: .85em ui-monospace, Menlo, Consolas, monospace; color: #444; margin-top: .8mm; }
.m-legend { font-size: .72em; color: #8a786a; margin-top: .8mm; }

/* QR tiles */
.qr-page { position: relative; }
.tile { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(5mm * var(--s)); background: linear-gradient(180deg, #fff6ec, #fff 45%); overflow: hidden; }
.tile.tcard { border: .5mm solid #1d1410; border-radius: calc(5mm * var(--s)); }
.tile.card-wide { border: .5mm solid #1d1410; border-radius: 6mm; flex-direction: row; gap: 8mm; padding: 8mm; text-align: left; }
.tile.card-wide .t-side { display: flex; flex-direction: column; align-items: flex-start; gap: 2mm; min-width: 0; }
.tile.sticker { border: .4mm dashed #9a8878; border-radius: 4mm; background: #fff; }
.t-name { font: 700 calc(17pt * var(--s))/1.1 Lora, Georgia, serif; color: #1d1410; }
.t-tl { font: italic calc(9pt * var(--s)) Lora, Georgia, serif; color: #6b5a4d; margin-top: calc(1mm * var(--s)); }
.t-qr { margin: calc(3mm * var(--s)) 0; flex: none; }
.tile.card-wide .t-qr { margin: 0; }
.t-cta { font: 800 calc(10pt * var(--s))/1.25 Inter, Arial, sans-serif; color: var(--accent); }
.t-url { font: calc(7.5pt * var(--s)) ui-monospace, Menlo, Consolas, monospace; color: #333; margin-top: calc(1mm * var(--s)); word-break: break-all; }
.t-hours { font-size: calc(8pt * var(--s)); color: #444; margin-top: calc(1mm * var(--s)); }
.t-pw { font-size: calc(6pt * var(--s)); color: #9a8878; margin-top: calc(1.5mm * var(--s)); }
.tile.card-wide .t-name { font-size: 22pt; } .tile.card-wide .t-cta { font-size: 13pt; } .tile.card-wide .t-url { font-size: 9pt; } .tile.card-wide .t-tl { font-size: 11pt; }
.cut-note { position: absolute; bottom: 4mm; left: 0; right: 0; text-align: center; font-size: 7pt; color: #9a8878; }

/* --- printing: only the pages, at true size --- */
@media print {
  html, body { background: #fff !important; }
  body.printing-open > *:not(#cb-print) { display: none !important; }
  #cb-print { position: static !important; background: #fff !important; display: block !important; }
  .pv-bar { display: none !important; }
  .pv-stage { padding: 0 !important; overflow: visible !important; }
  .pv-pages { transform: none !important; margin: 0 !important; gap: 0 !important; width: auto !important; display: block !important; }
  #cb-print .page { box-shadow: none !important; break-after: page; page-break-after: always; margin: 0 !important; }
  #cb-print .page:last-child { break-after: auto; page-break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
