/* Hamro Montessori – printable letter sheets (letter-sheets.html) */
.sheets-page {
  background: var(--bg);
  /* same fonts as the Kids' Corner, so the page matches the sheets */
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sheet-controls { padding: 2rem 0 1rem; }
.sheet-controls h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--orange-ink); line-height: 1.1; margin-bottom: .5rem; }
.sheet-controls h1 span { display: block; font-size: .5em; color: var(--ink); font-weight: 600; }
.sheets-page .small { font-size: .92rem; color: var(--muted); }
.control-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: .4rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; color: var(--ink); font: 700 1.05rem "Baloo 2", var(--font-body); cursor: pointer;
}
.chip span { font-size: .8em; font-weight: 600; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: #E2E8F0; }
.chip:focus-visible, .pick:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.letter-picker { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.letter-picker[hidden] { display: none; }
.pick {
  min-width: 3rem; height: 3rem; padding: 0 .4rem; border-radius: 14px; border: 2px solid var(--line); background: #fff;
  font: 700 1.5rem/1 "Baloo 2", "Nirmala UI", sans-serif; color: var(--ink); cursor: pointer;
}
.pick[aria-pressed="true"] { background: var(--orange-btn); border-color: var(--orange-btn); color: #fff; }
.print-row { margin-top: 1.2rem; }
.print-row [hidden] { display: none; }
.sheet-preview { padding: 1rem 1rem 3rem; }
#sheets { display: grid; gap: 1.5rem; justify-items: center; }
.sheet { display: block; width: min(100%, 794px); height: auto; aspect-ratio: 210 / 297; background: #fff; border-radius: 6px; box-shadow: var(--shadow); }

@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { background: #fff !important; }
  .no-print, .skip-link { display: none !important; }
  .sheet-preview { padding: 0; }
  #sheets { display: block; }
  .sheet { width: 210mm; height: 296mm; border-radius: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
}
