/* Printable worksheet on a Practice Hub page (owner pilot, 2026-12-01: articles). Generated markup from
   tools/seo-authoring/build_practice_pages.py; the PDFs (tools/pdf-authoring/build_worksheet_pdfs.py) use this file too.
   Hybrid look: questions in a clear, large school-style print (Inter, large, with room to write),
   handwriting (Caveat) only for the title, the "Yaad rakho" tip and the answer key (red-pen corrections). */
@font-face { font-family: 'WS Hand'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/caveat-latin-var.woff2?v=2") format("woff2"); }

.ws { --ws-ink: #1f1640; --ws-muted: #5b5675; --ws-line: #b9b3cc; --ws-soft: #f6f2fe; --ws-pen: #c62828; --ws-acc: #6d28d9;
  margin-top: 28px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid rgba(124,58,237,.14);
  box-shadow: 0 18px 40px -30px rgba(76,29,149,.45); color: var(--ws-ink); }
.ws .hand, .ws-doc .hand { font-family: 'WS Hand', 'Caveat', cursive; font-weight: 700; letter-spacing: .01em; }

.ws-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.ws .ws-title { display: block; margin: 0; font-size: 2.25rem; line-height: 1.1; color: var(--ws-ink); }
.ws .ws-title small { display: block; margin-top: 4px; font-family: Inter, system-ui, sans-serif; font-size: .9375rem; font-weight: 600; color: var(--ws-muted); }
.ws-dl { display: flex; flex-wrap: wrap; gap: 10px; }
.ws-dl a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: .9375rem; font-weight: 700;
  text-decoration: none; color: #fff; background: linear-gradient(90deg, #6d28d9, #c026d3); }
.ws-dl a.ghost { color: #5b21b6; background: #fff; border: 1.5px solid rgba(124,58,237,.35); }
.ws-dl svg { width: 18px; height: 18px; flex: none; }

.ws-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px 28px; margin-top: 20px; }
.ws-intro p { margin: 0 0 10px; font-size: 1rem; line-height: 1.6; color: var(--ws-ink); }
.ws-intro a { color: var(--ws-acc); font-weight: 600; }
.ws-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ws-rules li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); align-items: baseline; gap: 10px; font-size: 1rem; line-height: 1.5; }
.ws-rules b { display: block; text-align: center; padding: 1px 8px; border-radius: 8px; background: var(--ws-soft); color: var(--ws-acc); font-weight: 700; }
.ws-tip { position: relative; padding: 14px 18px; border-radius: 14px; background: #fffbea; border: 1.5px dashed #e0b84a; }
.ws-tip b { display: block; font-size: 1.6rem; line-height: 1; color: #9a5b00; margin-bottom: 4px; }
.ws-tip p { margin: 0; font-size: 1rem; line-height: 1.55; }

.ws-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.ws-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ws-soft);
  color: #5b21b6; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.ws-jump a span { font-weight: 400; color: var(--ws-muted); }

.ws-name { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 1rem; color: var(--ws-muted); }
.ws-name span { flex: 1 1 180px; padding-bottom: 4px; border-bottom: 1.5px solid var(--ws-line); }

.ws-sec { margin-top: 30px; padding-top: 22px; border-top: 2px dashed var(--ws-line); scroll-margin-top: 90px; }
.ws .ws-sec > h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.375rem; line-height: 1.3; }
.ws-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .875rem; font-weight: 700; background: var(--ws-soft); color: var(--ws-acc); }
.ws-badge.lvl { background: #eef7ee; color: #2e7d32; }
.ws-ex { margin-top: 18px; }
.ws .ws-ex h4 { margin: 0; font-size: 1.1875rem; line-height: 1.35; }
.ws-ex h4 em { font-style: normal; color: var(--ws-acc); }
.ws-instr { margin: 4px 0 12px; font-size: 1rem; line-height: 1.5; color: var(--ws-muted); }

/* questions: large, airy print with room to write */
.ws-items { margin: 0; padding: 0 0 0 2.1em; display: grid; gap: 14px 40px; font-size: 1.1875rem; line-height: 1.6; }
.ws-items li { padding-left: 4px; break-inside: avoid; }
.ws-items li::marker { font-weight: 700; color: var(--ws-muted); }
.ws-items.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws-blank { display: inline-block; min-width: 4.2em; height: 1.1em; margin: 0 2px; border-bottom: 2px solid var(--ws-ink); vertical-align: -0.2em; }
.ws-ch { margin-left: 12px; font-weight: 600; color: var(--ws-muted); }
.ws-ch i { font-style: normal; display: inline-block; padding: 0 8px; }
.ws-write { display: block; height: 2.2em; border-bottom: 1.5px solid var(--ws-line); }

/* answer key: red-pen teacher corrections */
.ws-key { margin-top: 32px; border-radius: 16px; border: 1.5px solid #f2c6c6; background: #fffafa; }
.ws-key > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 700; color: var(--ws-pen); }
.ws-key > summary::-webkit-details-marker { display: none; }
.ws-key > summary::after { content: "Show"; margin-left: auto; font-size: .875rem; font-weight: 600; color: var(--ws-muted); }
.ws-key[open] > summary::after { content: "Hide"; }
.ws-key-body { padding: 4px 18px 18px; }
.ws .ws-key h4 { margin: 16px 0 6px; font-size: 1rem; color: var(--ws-ink); }
.ws-key ol { margin: 0; padding-left: 2em; display: grid; gap: 6px; }
.ws-key li { font-size: 1rem; line-height: 1.45; color: var(--ws-ink); }
.ws-key .pen { font-family: 'WS Hand', 'Caveat', cursive; font-size: 1.45rem; font-weight: 700; line-height: 1.1; color: var(--ws-pen); margin-right: 8px; }
.ws-key .why { color: var(--ws-muted); font-size: .9375rem; }
.ws-key .tick { color: var(--ws-pen); font-weight: 700; margin-right: 4px; }

@media (max-width: 760px) {
  .ws { padding: 18px 16px; border-radius: 20px; }
  .ws .ws-title { font-size: 1.875rem; }
  .ws-intro { grid-template-columns: minmax(0, 1fr); }
  .ws-rules li { grid-template-columns: 5.4em minmax(0, 1fr); gap: 8px; }
  .ws-rules b { padding: 1px 4px; }
  .ws-items.cols { grid-template-columns: minmax(0, 1fr); }
  .ws-items { font-size: 1.125rem; gap: 12px; }
  .ws-dl { width: 100%; }
  .ws-dl a { flex: 1 1 100%; justify-content: center; }
}

/* owner review 2026-12-01: heading separator for screen readers and search ("… the – 40 questions …"), four download buttons */
.ws-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ws-dl { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 10px; }
.ws-dl a { justify-content: center; font-size: .875rem; padding: 0 14px; }
/* on screen the choice row wraps between options (each option stays whole); print keeps it on one line */
.ws-ch { white-space: normal; overflow-wrap: anywhere; }
.ws-ch i { white-space: nowrap; }
@media print { .ws-ch { white-space: nowrap; } }
.pqx-pdf .pqx-dl4 { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 10px; }
@media (max-width: 760px) { .ws-dl, .pqx-pdf .pqx-dl4 { grid-template-columns: minmax(0, 1fr); width: 100%; } }

/* choice questions keep the gap in the sentence as a mark; the answer is ticked (owner brief 2026-12-01) */
.ws-gap { display: inline-block; min-width: 2.6em; border-bottom: 2px dotted var(--ws-muted); text-align: center; color: var(--ws-muted); }
/* printing the page: only the worksheet (and the answer key if it is open), in black and white */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body { background: #fff !important; }
  body::before, header, footer, .site-footer, .hub-back, .bnav-drawer, .scroll-top, #scrollTop,
  .pqx-hero, .pqx-grid, .pqx-app, #questions, .pqx-banner, #worksheet, .pqx-links, .pqx-faq,
  .ws-dl, .ws-jump, .ws-key:not([open]), #be-consent { display: none !important; }
  .ws { margin: 0; padding: 0; border: 0; box-shadow: none; --ws-acc: #000; --ws-soft: #fff; }
  .ws * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  .ws-rules b, .ws-badge { border: 1px solid #000; }
  .ws-tip { border-color: #000; }
  .ws-key { break-before: page; border: 0; }
  .ws-key > summary::after { content: none; }
  .ws-sec { break-inside: auto; }
  a[href]::after { content: none !important; }
}
