/* Free worksheets (theoremed.com/worksheets): the controls and the sheet on
   screen, and only the sheet (plus the key, on its own page) when printed. */
.ws-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 18px 0 16px;
}
.ws-controls label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.ws-controls select {
  font: inherit; font-size: 15px; padding: 6px 8px; border-radius: 10px;
  border: 1px solid var(--rule, #E3E1F5); background: var(--card, #fff); color: inherit;
}
.ws-controls .btn { padding: 9px 16px; font-size: 15px; }
.ws-check input { width: 16px; height: 16px; }

.ws-sheet, .ws-key {
  background: #fff; color: #17181F;
  border: 1px solid var(--rule, #E3E1F5); border-radius: 16px;
  padding: 22px 24px;
}
.ws-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #5E6072; }
.ws-title { font-size: 20px; margin: 14px 0 12px; }
.ws-problems {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px;
  margin: 0; padding-left: 2.2em; font-size: 18px;
}
.ws-problems li { min-height: 76px; padding-top: 4px; break-inside: avoid; }
.ws-problems li::marker { font-weight: 700; color: #5E6072; }
.ws-q { font-variant-numeric: tabular-nums; }
.ws-foot { margin: 10px 0 0; font-size: 12px; color: #8A8CA0; text-align: right; }
.ws-key-toggle { margin: 14px 0 10px; }
.ws-answers {
  columns: 2; column-gap: 28px; margin: 0; padding-left: 2.2em; font-size: 16px;
}
.ws-answers li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 560px) {
  .ws-problems { grid-template-columns: 1fr; }
  .ws-sheet, .ws-key { padding: 16px; }
}

@media print {
  body > *:not(main), main > *:not(.ws-page), .ws-page > *:not(.ws-sheet):not(.ws-key) { display: none !important; }
  body, main, .ws-page { background: #fff !important; margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .ws-sheet, .ws-key { border: 0; border-radius: 0; padding: 0; }
  .ws-problems { font-size: 15pt; gap: 0 36px; }
  .ws-problems li { min-height: 0.95in; }
  .ws-key { display: none !important; }
  body.ws-print-key .ws-key { display: block !important; break-before: page; }
}
