/* Evergreen Facts — on-screen worksheets and printable practice sheets */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ws-pagelist { margin: 8px 0 0; padding-left: 1.2em; }
.ws-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 10px;
  list-style: none;
  break-inside: avoid;
}
.ws-item.ok { box-shadow: inset 4px 0 0 var(--moss); }
.ws-item.no { box-shadow: inset 4px 0 0 var(--berry); }
#items { list-style: none; padding: 0; margin: 0; }
.ws-prompt { display: flex; gap: 10px; align-items: baseline; font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.ws-num {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 28px; border-radius: 999px;
  background: var(--paper-2); font-size: 0.85rem;
}
.ws-input {
  width: min(100%, 10rem);
  padding: 10px 12px;
  border: 2px solid var(--cedar);
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}
.ws-key { margin: 6px 0 0; font-weight: 700; color: var(--ink-soft); }
.ws-bignum { font-size: 4rem; font-weight: 800; margin: 0 0 8px; font-family: var(--display); }
.ws-icons { font-size: 2rem; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.ws-pie, .k12-shape { width: 140px; height: auto; margin: 0 0 8px; }
.ws-bond { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 10px; }
.bond-box {
  min-width: 64px; min-height: 48px; padding: 8px 12px;
  border: 3px solid var(--cedar); border-radius: 12px;
  font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; background: #fff;
}
.bond-box.whole { background: var(--gold); }
.bond-parts { display: flex; gap: 16px; }
#timer { font-weight: 800; font-size: 1.4rem; }
.flash-card {
  width: min(420px, 100%);
  min-height: 220px;
  margin: 16px auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 2px solid var(--cedar);
  display: grid; place-items: center;
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  padding: 24px;
}
.flash-card.flipped { background: var(--gold); }
#flash-back { display: none; }
.flash-card.flipped #flash-front { display: none; }
.flash-card.flipped #flash-back { display: block; }

html[data-band="k2"] .ws-input { min-height: 56px; font-size: 1.5rem; }
html[data-band="k2"] .ws-prompt { font-size: 1.35rem; }

/* Practice sheet */
.sheet-head { margin-bottom: 16px; }
.sheet-brand { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; color: var(--cedar); margin: 0 0 4px; }
.sheet-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.sheet-item { display: flex; gap: 8px; break-inside: avoid; border-bottom: 1px dotted var(--line); padding-bottom: 8px; }
.sheet-prompt { font-weight: 700; }
.sheet-blank { border-bottom: 2px solid var(--ink); min-width: 4rem; height: 1.6em; margin-top: 6px; }
.sheet-key { page-break-before: always; break-before: page; margin-top: 28px; }
.sheet-key ol { columns: 2; gap: 16px; }
.sheet-meta { font-size: 0.95rem; }

html[data-band="k2"] .sheet-list { grid-template-columns: 1fr; }
html[data-band="k2"] .sheet-prompt { font-size: 1.3rem; }
html[data-band="g912"] .sheet-list { grid-template-columns: 1fr 1fr; }
html[data-band="g68"] .sheet-prompt, html[data-band="g912"] .sheet-prompt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

@media print {
  .site-header, .site-footer, .skip, .no-print, .hero, #index-view { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main.wrap { width: auto; margin: 0; }
  .ws-item { break-inside: avoid; box-shadow: none; }
  .ws-input, .choice-row { display: none; }
  .ws-key { display: block !important; }
  #sheet-preview, #work-view { display: block !important; }
  .sheet-key { page-break-before: always; }
}

@media (max-width: 640px) {
  .sheet-list { grid-template-columns: 1fr; }
  .ws-input { width: 100%; }
}
