/* play & learn ♡ — paper (SPEC §10.4, ux 5.10–5.12). Loaded with media="print": worksheets, the report, the wanted
   list and the certificates print black-ink safe on Letter or A4. Type-specific paper forms live in qtypes.css.
   Text is #000 (the one sanctioned exception to "never black"), strokes #333, fills at most 20 % grey, no gingham,
   no shadows, no foils; logic glyphs keep their colour and carry their colour word (§5.3). */

@page { size: auto; margin: 14mm; }

html, body {
  height: auto !important;
  overflow: visible !important;
  color: #000 !important;
  background: #fff !important;
  background-image: none !important;
  -webkit-print-color-adjust: economy;
  print-color-adjust: economy;
}

/* the chrome never prints */
.topbar, .tray, .s-bottom, .kitty-strip, .kitty-dock, .glow, #fx-layer, #banner, #toast, .toast, #boot, .boot, .modal,
.sheet-head, .print-controls, .peek-spot, .coach, .float-plus, .level-banner, .listen, .sr-only,
#news-route, #news-feedback, #news-kitty, noscript { display: none !important; }

#screens, .screen, .sheet, .sheet-body, .sheet-inner {
  position: static !important;
  inset: auto !important;
  display: block !important;
  height: auto !important;
  max-width: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  animation: none !important;
}
.screen[hidden] { display: none !important; }

*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }

/* the paper itself, at full size, one sheet per page */
.paper-holder { height: auto !important; overflow: visible !important; }
.paper-stack { transform: none !important; width: auto !important; display: block !important; }
.paper {
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #000 !important;
  font-size: 11pt;
}
.paper + .paper { break-before: page; page-break-before: always; }
.paper-cert { min-height: 250mm !important; display: flex !important; }
.cert-frame { outline: none !important; border-width: 6px !important; }
.paper-head { border-bottom-color: #333 !important; }
.paper-foot { color: #333 !important; }

/* every question block and every visual stays in one piece */
.ws-q, .ws-visual, .visual, .pq, .prr-grid, .wanted-table, .ws-answers li, .ws-read li, svg { break-inside: avoid; page-break-inside: avoid; }
.ws-list { columns: 2; column-gap: 8mm; }
/* the sizes live in style.css (.paper), so the on-screen preview is the paper */

/* ink: text black, strokes #333, fills light grey. The palette itself turns to greys on paper, so every drawer that
   paints with var(--pink) and friends prints toner-friendly; logic glyphs (.v-colour) keep their colours. */
.paper {
  --pink: #d9d9d9; --bow-pink: #cfcfcf; --ear-pink: #9a9a9a; --blush: #f2f2f2; --milk: #f2f2f2; --nose: #e3e3e3;
  --mint: #d6d6d6; --mint-soft: #f2f2f2; --lavender: #cfcfcf; --sky: #dedede; --bow: #333; --dash: #999; --subj: #ccc;
  --ink: #000; --ink-soft: #333;
}
.paper .v-colour {
  --pink: #ff8fb1; --bow-pink: #ff5c8a; --ear-pink: #ffc2d4; --nose: #ffcf3f; --mint: #7fdcc2; --lavender: #b49cff;
  --sky: #8fd3ff; --bow: #e8384f; --milk: #ffe3ec; --blush: #fff2f6;
}
.paper, .paper * { color: #000; border-color: #333; }
.paper svg [stroke]:not([stroke="none"]) { stroke: #333; }
.paper .v-colour, .paper .v-colour * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.pr-bars rect { fill: #ddd; stroke: #333; }
.mg-cell, .stat-tile, .chip, .pill { background: #fff !important; color: #000 !important; }
a { color: #000 !important; text-decoration: none !important; }

/* a printed report reached from the grown-ups' report: the on-screen pill stays behind */
body[data-screen="print"] .head-back { display: none !important; }

/* numbered clues keep one per line on paper, in black */
:is(.ws-prompt, .pq-prompt) .q-clue { margin-top: 0.6mm; }
.q-clue-n { color: #000 !important; }
