/* Printing: recipe cards for the table (A4 landscape, one per sheet, folded in half) and shopping lists.
   Only .print-area is printed; the admin chrome disappears. */
@page { size: A5; margin: 12mm; }
body { background: #fff !important; }
.nav, .m-top, .tabbar, .beta-bar, .head .row, .tabs, .toasts, .no-print, .kpi { display: none !important; }
.shell { display: block !important; }
/* Cards tab: only the cards go to paper - no back link, event title or KPI. */
.main:has(.rcards) .head, .main:has(.rcards) .grid { display: none !important; }
.main { padding: 0 !important; }
.rcards { display: block !important; }
/* One card = one A4 landscape sheet, single-sided. Fold along the dashed line with the print
   outside: the right half becomes the front (title + ingredients), the left half the back (method). */
@page card { size: A4 landscape; margin: 0; }
.rcard { page: card; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; overflow: visible !important;
  width: 297mm; height: 209mm; display: grid !important; grid-template-columns: 1fr 1fr; break-after: page; break-inside: avoid; }
.rcard:last-child { break-after: auto; }
/* «Только эту»: one card reprinted on its own. */
.rcards.solo .rcard:not(.solo) { display: none !important; }
.rcard.solo { break-after: auto; }
.rcard::after { display: none; }
/* Each half: the content block sits in the middle of the panel (both axes). Fine-dining menu look:
   hairline double frame, wide-tracked small caps, centred ingredient lines without bullets,
   "01" step numerals, a rule-diamond-rule ornament under the title. Colours must print as-is. */
.rcard { -webkit-print-color-adjust: exact; print-color-adjust: exact; color: #1d1a3a; }
.rcard .side { position: relative; padding: 20mm 18mm 28mm; display: flex; align-items: center; justify-content: center; font-size: 10.5pt; font-weight: 300; margin: 0 !important; border: 0 !important; }
.rcard .side::before { content: ""; position: absolute; inset: 7mm; border: 0.25mm solid #2816B9; outline: 0.15mm solid #A5BDFF; outline-offset: -1.4mm; pointer-events: none; }
.rcard .side.back { order: 1; border-right: 0.3mm dashed #c9c4ee !important; }
.rcard .side.front { order: 2; }
.rcard .inner { width: 100%; max-width: 110mm; text-align: center; }
/* Course: tiny wide-tracked caps between two short hairlines. */
.rcard .course { display: flex; align-items: center; justify-content: center; gap: 3mm; margin: 0 0 4mm; font-size: 7.5pt; font-weight: 500; letter-spacing: .38em; color: #7C9CFF; }
.rcard .course::before, .rcard .course::after { content: ""; width: 9mm; border-top: 0.2mm solid #A5BDFF; }
.rcard h3 { font-size: 24pt; font-weight: 300; letter-spacing: .09em; line-height: 1.2; color: #2816B9; margin: 0; }
/* Ornament under the title: hairline - diamond - hairline. */
.rcard h3::after { content: ""; display: block; width: 34mm; height: 2mm; margin: 5mm auto 6mm;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5z' fill='%237C9CFF'/%3E%3C/svg%3E") center / 1.6mm 1.6mm no-repeat,
              linear-gradient(#A5BDFF, #A5BDFF) left center / 14mm 0.2mm no-repeat,
              linear-gradient(#A5BDFF, #A5BDFF) right center / 14mm 0.2mm no-repeat; }
.rcard .intro { font-size: 10.5pt; font-style: italic; font-weight: 300; line-height: 1.55; color: #555; margin: 0 auto 9mm; max-width: 92mm; }
.rcard .rlbl { margin: 0 0 4mm; font-size: 7.5pt; letter-spacing: .3em; text-transform: uppercase; color: #2816B9; }
.rcard .rlbl b { font-weight: 500; }
.rcard .rlbl .muted { display: block; margin-top: 1.5mm; font-size: 8.5pt; letter-spacing: .06em; text-transform: none; font-style: italic; color: #888 !important; }
/* Ingredients like a tasting menu: centred lines, no bullets. */
.rcard .inner ul { list-style: none; padding: 0; margin: 0 auto; }
.rcard .inner ul li { margin: 0; line-height: 1.75; }
/* Method: hanging "01" numerals in the light brand blue. */
.rcard .inner ol { list-style: none; counter-reset: st; display: block; text-align: left; margin: 0 auto; padding: 0; max-width: 100mm; }
.rcard .inner ol li { counter-increment: st; position: relative; padding-left: 9mm; margin: 0 0 2.6mm; line-height: 1.5; }
.rcard .inner ol li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 0.4mm; font-size: 8pt; font-weight: 500; letter-spacing: .08em; color: #7C9CFF; }
.rcard .side.back .course { margin-bottom: 7mm; }
.rcard .tip { margin: 7mm auto 0; font-size: 10pt; font-style: italic; color: #555; max-width: 96mm; }
.rcard .tip::before { content: ""; display: block; width: 10mm; margin: 0 auto 4mm; border-top: 0.2mm solid #A5BDFF; }
/* Flag: a small quiet mark inside the frame, not a sticker. */
.rcard .rflag { position: absolute; top: 11.5mm !important; right: 11.5mm; }
.rcard .rflag svg { width: 6mm; height: 4mm; border-radius: 0.4mm; border: 0.1mm solid #d6d3e8; }
.rcard .foot { position: absolute; left: 18mm; right: 18mm; bottom: 13mm; display: flex; justify-content: space-between; align-items: center; font-size: 7pt; letter-spacing: .22em; text-transform: uppercase; color: #8a87a8; padding-top: 3.5mm; border-top: 0.2mm solid #d9d5f2; margin: 0; }
.rcard .foot .wordmark { font-size: 13pt; letter-spacing: 0; text-transform: none; }
.item, .t { box-shadow: none !important; }
/* Print one card from any page (guestcard.js printCard): only the body-level .print-solo box goes to paper. */
body.printing-solo > :not(.print-solo) { display: none !important; }
body.printing-solo .print-solo { display: block !important; }

/* Developer credit is screen-only. */
.dev-credit { display: none !important; }
