/* edu2 group: printable puzzles, paper, flashcards, citations, colouring pages.
   Every rule sits under .ed, .ed-pg, .ci, .fc or .cp classes so no other tool is touched. */
.ed{display:block;min-width:0}
.ed-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px 16px;margin:0 0 6px}
.ed-fld{min-width:0}
.ed-fld .hint{display:block;margin-top:4px;font-size:13px}
.ed-wide{grid-column:1/-1}
.ed-chk{align-self:end}
.ed .ed-cl{display:flex;align-items:flex-start;gap:9px;font-weight:600;margin:4px 0;cursor:pointer}
.ed .ed-cl input{margin-top:3px;flex:0 0 auto}
.ed-lab{display:block;font-weight:700;font-size:14.5px;color:var(--navy);margin:0 0 6px}
.ed-checks{display:flex;flex-wrap:wrap;gap:2px 22px}
.ed-checks .ed-fld{flex:0 0 auto}
.ed textarea{min-height:90px}
.ed-act{margin:16px 0 6px}
.ed-opts{display:flex;flex-wrap:wrap;gap:4px 24px;margin:10px 0 2px}
.ed-warn ul{margin:6px 0 0;padding-left:20px;color:#8a4b00;font-size:14.5px}
.ed-warn:empty{display:none}
.ed .status:empty{display:none}
.ed-note{margin-top:10px}
.ed-count{margin:6px 0 0;font-size:14.5px;color:var(--ink2)}
/* preview */
.ed-view{position:relative;overflow:hidden;margin-top:14px;background:#e3eaed;border-radius:14px;border:1.5px solid var(--line)}
.ed-pages{display:flex;flex-direction:column;align-items:flex-start;transform-origin:0 0;margin:0 auto;padding:14px 0 0}
.ed-pg{position:relative;flex:none;background:#fff;color:#000;overflow:hidden;font-family:Arial,Helvetica,sans-serif;line-height:1.25;box-shadow:0 3px 14px rgba(8,47,59,.22);margin:0 0 14px;-webkit-print-color-adjust:exact;print-color-adjust:exact;letter-spacing:0}
.ed-pg *{box-sizing:border-box}
.ed-pg h2,.ed-pg h3,.ed-pg h4,.ed-pg p,.ed-pg ul,.ed-pg ol,.ed-pg figure{color:#000;letter-spacing:0;font-family:Arial,Helvetica,sans-serif}
.ed-key{display:none}
.ed-sk .ed-key{display:block}
.ed-in{width:100%;height:100%;display:flex;flex-direction:column}
.ed-title{flex:none}
.ed-title h2{font-size:17pt;line-height:1.15;margin:0 0 2.5mm;text-align:center}
.ed-title h3{font-size:13pt;margin:0 0 2.5mm}
.ed-nd{display:flex;justify-content:space-between;gap:10mm;font-size:10pt;margin:0 0 3mm}
.ed-sub{font-size:9.5pt;margin:0 0 4mm;text-align:center;color:#333}
/* crossword */
.cw-gridwrap{display:flex;justify-content:center;margin:1mm 0 4mm;flex:none}
.cw-svg{display:block}
.cw-cols{display:flex;gap:8mm;min-height:0;flex:1}
.cw-col{flex:1;min-width:0}
.cw-col h4{font-size:11pt;line-height:5mm;margin:0 0 1.5mm;border-bottom:.3mm solid #000}
.cw-cl{font-size:9.5pt;line-height:4.4mm;margin:0 0 1.5mm}
.cw-cl b{display:inline-block;min-width:5.5mm}
/* sudoku and maze */
.sd-grid,.mz-grid{display:grid;justify-content:center;align-content:start;flex:1}
.sd-slot,.mz-slot{margin:0;display:flex;flex-direction:column;align-items:center}
.sd-slot figcaption,.mz-slot figcaption{font-size:9pt;line-height:6mm;height:8mm;color:#222;text-align:center}
.sd-svg,.mz-svg,.ws-svg,.cp-svg,.pp-svg{display:block}
/* word search */
.ws-row{display:flex;gap:7mm;align-items:flex-start}
.ws-list{flex:1;min-width:0}
.ws-list h4{font-size:11pt;margin:0 0 2mm;border-bottom:.3mm solid #000;line-height:1.5}
.ws-list ul{list-style:none;margin:0;padding:0}
.ws-list li{line-height:1.55;overflow-wrap:anywhere}
/* bingo */
.bg-pg{display:grid;justify-content:center;align-content:space-evenly;height:100%}
.bg-slot{display:flex;align-items:center;justify-content:center}
.bg-card{border:.6mm solid #000;background:#fff}
.bg-let{display:grid;grid-template-columns:repeat(5,1fr)}
.bg-let span{background:#000;color:#fff;text-align:center;font-weight:700;font-size:20pt;line-height:1.4}
.bg-ttl{text-align:center;font-weight:800;font-size:20pt;line-height:1.5;border-bottom:.4mm solid #000}
.bg-gr{display:grid}
.bg-c{aspect-ratio:1/1;border:.3mm solid #000;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;padding:1mm}
.bg-c span{overflow-wrap:anywhere;line-height:1.1;font-weight:600}
.bg-free{background:#e9e9e9}
.bg-free span{font-size:10pt;letter-spacing:.05em}
.bg-no{font-size:7pt;text-align:right;color:#444;padding:.6mm 1.4mm}
.bg-seq{column-gap:8mm}
.bg-seq p{margin:0 0 1.6mm;font-size:10.5pt;break-inside:avoid}
.bg-tick{display:inline-block;width:3.4mm;height:3.4mm;border:.3mm solid #000;margin-right:2mm;vertical-align:-.5mm}
.ed-pg h4{font-size:12pt;margin:3mm 0 2mm}
.bg-board{border-collapse:collapse;font-size:8pt;margin-top:2mm}
.bg-board th,.bg-board td{border:.2mm solid #555;text-align:center;padding:.8mm 0;min-width:9.4mm}
.bg-board th{background:#000;color:#fff;font-size:10pt}
/* flashcards */
.fc-sheet{display:grid;justify-content:center;align-content:start}
.fc-cell{border:.3mm dashed #777;display:flex;align-items:center;justify-content:center;position:relative;padding:5mm;text-align:center;overflow:hidden}
.fc-tx{white-space:pre-line;overflow-wrap:anywhere;font-weight:600;line-height:1.25;max-width:100%}
.fc-n{position:absolute;right:2mm;bottom:1mm;font-size:6.5pt;color:#777}
.fc-n[hidden]{display:none}
.fc-study{max-width:640px;margin:0 auto}
.fc-prog{text-align:center;color:var(--ink2);font-size:15px;margin:0 0 10px;min-height:1.4em}
.fc-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;min-height:230px;border:2px solid var(--line);border-radius:20px;background:#fff;padding:26px 20px;cursor:pointer;font:inherit;color:var(--navy);box-shadow:0 10px 26px rgba(8,47,59,.08);text-align:center}
.fc-card.fc-back{background:var(--ice);border-color:var(--blue)}
.fc-side{font-size:12.5px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--mute)}
.fc-face{font-weight:700;line-height:1.3;white-space:pre-line;overflow-wrap:anywhere}
.fc-act{justify-content:center}
.fc-study .actions{justify-content:center}
/* paper */
.pp-svg{background:#fff}
/* colouring */
.cp-art{flex:1;display:flex;align-items:center;justify-content:center}
.cp-in .ed-title{flex:none}
/* citations */
.ci{display:block;min-width:0}
.ci-f[hidden]{display:none}
.ci-out{border:1.5px solid var(--line);border-radius:14px;padding:16px 18px;margin:18px 0;background:var(--snow)}
.ci-out h3{font-size:19px;margin:0 0 8px}
.ci-ref{padding-left:2.2em;text-indent:-2.2em;font-size:17px;line-height:1.55;margin:0 0 10px;overflow-wrap:anywhere}
.ci-in{margin:0 0 6px;color:var(--ink2);overflow-wrap:anywhere}
.ci-miss{margin:0 0 6px;color:#8a4b00;font-size:14.5px}
.ci-miss:empty{display:none}
.ci-list-wrap h3{font-size:19px;margin:6px 0 6px}
.ci-list{list-style:none;margin:8px 0 0;padding:0}
.ci-list li{padding:8px 0 8px 2.2em;text-indent:-2.2em;border-bottom:1px solid var(--line);line-height:1.55;overflow-wrap:anywhere}
.ci-item{font-size:16.5px}
.ci-rm{font:inherit;font-size:13px;margin-left:10px;border:1px solid var(--line);background:#fff;color:var(--ink2);border-radius:8px;padding:2px 10px;cursor:pointer;text-indent:0}
.ci-empty{color:var(--mute);margin:6px 0}
.ci-empty[hidden],.ci-list[hidden]{display:none}
.ci-note{margin-top:14px}
.ed-tabs{margin-bottom:18px}
@media(max-width:640px){.ed-pages{padding-top:10px}.fc-card{min-height:190px}}
/* print: hide the site, keep only the sheets */
@media print{
  html,body{background:#fff!important;margin:0!important;padding:0!important}
  .skip,header.top,footer,.crumbs,.thead,.about,.guide,.related,.ed-ctl,.ed-act,.ed-opts,.ed-warn,.ed .status,.ed-note,.ed-tabs,#fc-sec-edit,#fc-sec-study,.ci-form,.ci-out,.ci-note,.ci-listact,.ci-rm,.ci-list-wrap .ed-opts,.ci-empty,.ci-list-wrap .status{display:none!important}
  main,.wrap,.toolbox,.tp{margin:0!important;padding:0!important;max-width:none!important;border:0!important;box-shadow:none!important;background:none!important;border-radius:0!important}
  .ed-view{height:auto!important;overflow:visible!important;border:0;background:none;border-radius:0;margin:0}
  .ed-pages{display:block;transform:none!important;width:auto!important;margin:0;padding:0}
  .ed-pg{box-shadow:none;margin:0;break-after:page;page-break-after:always;break-inside:avoid}
  .ed-pg.ed-lastp{break-after:auto;page-break-after:auto}
  .ed-key{display:none!important}
  .ed-pk .ed-key{display:block!important}
  .ci-list-wrap{display:block}
  .ci-list-wrap h3{font-size:16pt}
  .ci-list li{border:0;padding:0 0 3mm 12mm;text-indent:-12mm;font-size:12pt;break-inside:avoid}
}
