/* Browser printing and PDF downloads both use US Letter and half-inch page margins. */
#print-sheet,#answer-sheet{display:none}
@page{size:Letter portrait;margin:0.5in}
@media print{
 html,body{margin:0!important;padding:0!important;background:white!important;color:black!important;width:auto!important;height:auto!important;min-height:0!important;font:10pt/1.2 Arial,sans-serif!important;color-scheme:light!important}
 body>*{display:none!important}dialog::backdrop{display:none!important;background:transparent!important}
 body>#print-sheet{display:block!important;width:100%;max-width:none;margin:0;color:#000;background:#fff}
 :root[data-print-pages=key] body>#print-sheet{display:none!important}
 :root[data-print-pages=both] body>#answer-sheet,:root[data-print-pages=key] body>#answer-sheet{display:block!important;width:100%;max-width:none;margin:0;background:white;color:black}
 :root[data-print-pages=both] #answer-sheet{break-before:page;page-break-before:always}
 :root[data-print-reading=true] body,:root[data-print-reading=true] #print-sheet,:root[data-print-reading=true] #answer-sheet{font-family:CWSReading,monospace!important;letter-spacing:0;word-spacing:0}
 .print-brand{font-size:6.5pt;line-height:1.1;letter-spacing:1pt;font-weight:bold;border-bottom:1pt solid #000;padding-bottom:.03in}
 #print-title,#answer-title{font-size:16pt;line-height:1.05;margin:.05in 0;overflow-wrap:anywhere}
 .print-details{display:flex;justify-content:space-between;font-size:8pt;line-height:1.1;margin-bottom:.04in}
 #print-directions,.answer-directions{font-size:8pt;line-height:1.15;margin:0 0 .06in}
 .print-grid{display:grid;grid-template-columns:repeat(var(--print-size),1fr);width:100%;height:7.5in;margin:0 0 .07in;border:1pt solid #000;padding:.06in;gap:0;break-inside:avoid;page-break-inside:avoid}
 .print-cell{display:flex;align-items:center;justify-content:center;font-size:var(--print-font,24pt);font-weight:700;line-height:1;color:black;background:white;min-width:0;min-height:0}
 #print-sheet h2:not(#print-title),#answer-sheet h2:not(#answer-title){font-size:9pt;line-height:1.1;margin:0 0 .04in;break-after:avoid}
 .print-words{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.02in .09in;font-size:var(--word-font,8.5pt);line-height:1.2;font-weight:700}
 .print-words li{overflow-wrap:anywhere;min-width:0;break-inside:avoid;page-break-inside:avoid}
 .print-cheer{font-size:8pt;line-height:1.1;text-align:center;margin:.05in 0 0}
 .answer-grid{width:6.67in;height:6.67in;max-width:100%;margin:.1in auto .12in}
 .answer-letter{border:.8pt solid #555;border-radius:50%}
 .answer-words{font-size:8pt;row-gap:.08in}.answer-words b{display:block}.answer-words small{display:block;font-size:6.5pt;line-height:1.4;font-weight:400}
}
