/* A4 sheets for शब्द खोजो! Black-and-white safe: outlines and words, never color alone. */
:root { --dev: "Noto Sans Devanagari", "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", "Mangal", "Lohit Devanagari", system-ui, sans-serif; }
body { background: #EEF1F5; }
.pr-intro { padding: 24px 16px 8px; }
.pr-intro h1 { font-family: var(--dev); font-size: clamp(28px, 6vw, 40px); margin: 0 0 8px; }
.pr-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.pr-tools button { font: inherit; font-family: var(--dev); font-size: 18px; font-weight: 700; min-height: 56px; padding: 8px 18px; border-radius: 14px; border: 2px solid #C7D7F2; background: #fff; cursor: pointer; }
.pr-tools button[aria-pressed="true"] { border-color: #0A58C2; box-shadow: inset 0 0 0 2px #0A58C2; }
.pr-tools .go { background: #0A58C2; border-color: #0A58C2; color: #fff; }
.pr-sheets { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 8px 12px 48px; font-family: var(--dev); color: #111; }
.sheet { box-sizing: border-box; width: min(100%, 190mm); aspect-ratio: 190 / 277; background: #fff; border-radius: 6px; box-shadow: 0 2px 14px rgba(0,0,0,.12); padding: 4%; display: flex; flex-direction: column; container-type: inline-size; overflow: hidden; }
.sheet header, .sheet footer { display: flex; justify-content: space-between; font-size: 2.4cqw; color: #333; border-bottom: .3cqw solid #333; padding-bottom: 1cqw; }
.sheet footer { margin-top: auto; border-bottom: 0; border-top: .3cqw solid #333; padding: 1cqw 0 0; font-family: system-ui, sans-serif; font-size: 2cqw; }
.sheet h2 { font-size: 5.4cqw; margin: 2.5cqw 0 .5cqw; }
.sheet .how { font-size: 2.8cqw; margin: 0 0 2.5cqw; color: #222; }
.grid.cards { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); }
.card { border: .4cqw dashed #333; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.card.word { font-size: 17cqw; font-weight: 700; line-height: 1.3; }
.card.pic img { width: 62%; height: auto; }
.match { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.mrow { display: grid; grid-template-columns: 26cqw 4cqw 1fr 4cqw 22cqw; align-items: center; }
.mw { font-size: 10cqw; font-weight: 700; text-align: center; border: .4cqw solid #333; border-radius: 3cqw; line-height: 1.35; }
.dot { width: 3cqw; height: 3cqw; border-radius: 50%; background: #111; justify-self: center; }
.mp { border: .4cqw solid #333; border-radius: 3cqw; display: flex; justify-content: center; padding: 1cqw; }
.mp img { width: 15cqw; height: auto; }
.circle { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.crow { display: grid; grid-template-columns: 20cqw 1fr 1fr 1fr; gap: 3cqw; align-items: center; border-bottom: .25cqw solid #BBB; padding: 1cqw 0; }
.crow:last-child { border-bottom: 0; }
.cp img { width: 16cqw; height: auto; display: block; margin: 0 auto; }
.co { font-size: 8.4cqw; font-weight: 700; text-align: center; line-height: 1.4; }
@page { size: A4; margin: 10mm; }
@media print {
  body { background: #fff; }
  .pr-screen { display: none !important; }
  .pr-sheets { padding: 0; gap: 0; display: block; }
  .sheet { width: 190mm; height: 277mm; aspect-ratio: auto; box-shadow: none; border-radius: 0; padding: 8mm; break-after: page; page-break-after: always; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
}
