/* =========================================================
   🖨️ Munkalapok és oklevél – képernyőn előnézet, nyomtatáskor csak a lap
   ========================================================= */
.ws-link { margin-left: auto; padding: 10px 16px; font-size: 1rem; white-space: nowrap; }
.ws-page { max-width: 900px; margin: 0 auto; }
.ws-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ws-controls .btn { padding: 10px 16px; font-size: 1rem; }
.ws-ctl { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.ws-ctl select { font: inherit; font-weight: 800; padding: 6px 10px; border-radius: 10px; border: 3px solid var(--line); background: var(--card); color: var(--ink); }
.ws-ctl input { width: 20px; height: 20px; }
.ws-tip { color: var(--muted); margin: 4px 0 12px; }

/* A lap: mindig fehér papír, sötét módban is */
.ws-sheet {
  background: #fff; color: #111; padding: 28px 32px; border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .15); font-size: 15px;
  --c: #333; --cd: #111; --cl: #f2f2f2; --ink: #111; --muted: #555; --line: #ccc; --card: #fff;
}
.ws-head { border-bottom: 3px solid #111; padding-bottom: 10px; margin-bottom: 14px; }
.ws-brand { font-size: 12px; color: #555; font-weight: 800; }
.ws-head h1 { font-size: 22px; margin: 4px 0 8px; }
.ws-fields { display: flex; justify-content: space-between; gap: 20px; font-weight: 700; flex-wrap: wrap; }
.ws-instr { margin: 8px 0 0; font-style: italic; }
.ws-story { border: 2px solid #999; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 16px; line-height: 1.6; }
.ws-story p { margin: 0 0 6px; }
.ws-story.small { font-size: 13px; padding: 6px 10px; margin: 6px 0; }
.ws-list { margin: 0; padding-left: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.ws-q { break-inside: avoid; page-break-inside: avoid; }
.ws-title { font-weight: 800; margin-bottom: 4px; }
.ws-visual { font-size: 13px; margin: 2px 0 6px; }
/* A kvízes nagy elemek kicsinyítve férjenek el a lapon */
.ws-visual .big-emoji { font-size: 40px; }
.ws-visual .equation, .ws-visual .read-word { font-size: 24px; }
.ws-visual .read-sentence, .ws-visual .letter-q { font-size: 20px; }
.ws-visual .emoji-group { font-size: 18px; background: none; padding: 2px; }
.ws-visual .ten-frame .cell { width: 18px; height: 18px; }
.ws-visual .clock { width: 130px; }
.ws-visual .tile { min-width: 30px; height: 34px; font-size: 18px; }
.ws-visual .word-problem { background: none; padding: 0; }
.ws-visual .word-problem p { font-size: 15px; }
.ws-visual .wp-emoji { font-size: 26px; }
.ws-visual .column { font-size: 26px; margin: 2px 0; }
.ws-visual .pv-ten { height: 70px; width: 9px; }
.ws-visual .pv-one, .ws-visual .pv-ones { --s: 9px; }
.ws-visual .pv-one { width: 9px; height: 9px; }
.ws-visual .coin { width: 44px; height: 44px; }
.ws-visual .coin b { font-size: 14px; }
.ws-visual .bill { width: 80px; height: 42px; }
.ws-visual .digital { font-size: 26px; padding: 4px 12px; }
.ws-visual .seq-item { min-width: 34px; height: 38px; font-size: 20px; }
.ws-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ws-opt { display: inline-flex; align-items: center; gap: 4px; }
.ws-opt i { font-style: normal; font-size: 18px; }
.ws-opt .pic-opt { flex-direction: row; gap: 4px; }
.ws-opt .pic-e { font-size: 22px; }
.ws-opt .color-blob { width: 18px; height: 18px; border-width: 2px; }
.ws-opt .ten-frame .cell { width: 10px; height: 10px; }
.ws-key { break-before: page; page-break-before: always; margin-top: 30px; border-top: 2px dashed #999; padding-top: 14px; }
.ws-key h2 { font-size: 18px; }
.ws-key ol { columns: 2; font-size: 14px; }
.ws-key small { color: #555; }

/* Átírható betűsorok */
.ws-row { display: block; width: 100%; height: auto; margin: 0 0 4px; }
.ws-guide { stroke: #b9c7da; stroke-width: .8; }
.ws-guide.mid { stroke-dasharray: 3 3; }
.ws-guide.base { stroke: #7f95b3; stroke-width: 1.2; }
.ws-solid { fill: none; stroke: #111; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ws-dotted { fill: none; stroke: #8a8a8a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 6; }
.ws-start { fill: #2db86a; }
.ws-startn { fill: #fff; font-size: 6.5px; font-weight: 900; text-anchor: middle; font-family: sans-serif; }

@media (max-width: 700px) {
  .ws-sheet { padding: 16px; }
  .ws-list { grid-template-columns: 1fr; }
}

/* ---------- Nyomtatás ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  body { background-image: none !important; }
  .sidebar, .sidebar-backdrop, .topbar, .no-print, #confetti, .toast { display: none !important; }
  .layout, .content, main { display: block !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .ws-page { max-width: none; }
  .ws-sheet { box-shadow: none; padding: 0; border-radius: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; transition: none !important; }
}
