.reading-tools { margin: 24px 0; }
.reading-tools [hidden] { display: none !important; }
.tool-actions, .tool-filter { margin: 18px 0; }
.tool-filter .chip { cursor: pointer; min-height: 48px; font: inherit; }
.reading-tools button:focus-visible, .reading-tools a:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.reading-grid, .map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reading-card, .activity-card, .map-preview, .tool-example { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 22px; }
.reading-card h3 { font-size: 23px; line-height: 1.3; margin: 10px 0; }
.reading-card p, .tool-note { font-size: 15px !important; }
.reading-time { color: var(--mint) !important; font-weight: 700; }
.reading-link { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
.activity-card h3 { margin: 22px 0 8px; }
.activity-card ol { padding-left: 24px; }
.activity-card li { margin-bottom: 10px; }
.map-editor .field { margin-bottom: 18px; }
.map-editor label { display: block; font-weight: 700; margin-bottom: 8px; }
.map-editor textarea { resize: vertical; line-height: 1.6; }
.map-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-height: 140px; break-inside: avoid; }
.map-box h4 { margin: 0 0 10px; font-size: 16px; }
.map-box p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tool-example dt { font-weight: 700; margin-top: 14px; }
.tool-example dd { margin: 6px 0 18px; color: var(--text-soft); }
.lesson-panel { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: var(--panel); }
.lesson-passage { margin: 20px 0; padding: 18px; border-left: 3px solid var(--mint); background: var(--bg-deep); border-radius: 0 12px 12px 0; }
.lesson-passage p:last-child, .aloud-beats li p:last-child, .lesson-stage p:last-child { margin-bottom: 0; }
.aloud-beats, .lesson-stages { padding-left: 26px; }
.aloud-beats > li, .lesson-stages > li { margin-bottom: 18px; }
.passage-line { font-size: 20px !important; }
.early-version { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.early-version p { font-size: 21px; line-height: 1.9; }
.early-version h3 { margin-bottom: 20px; color: var(--mint); }
.lesson-words dt { font-weight: 700; color: var(--mint); }
.lesson-words dd { margin: 6px 0 18px; color: var(--text-soft); }
.lesson-sources a { overflow-wrap: anywhere; }
.worksheet-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 18px 0; break-inside: avoid; }
.handwriting-space { height: 100px; border-bottom: 1px solid var(--line); }
@media (max-width: 580px) {
  .reading-resource .explainer-head { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
  .reading-resource .explainer-head h1 { grid-column: 1 / -1; grid-row: 2; overflow-wrap: normal; hyphens: none; }
  .reading-resource .reference-actions { grid-column: 2; grid-row: 1; }
  .reading-grid, .map-grid { grid-template-columns: 1fr; }
  .reading-card, .activity-card, .map-preview, .tool-example { padding: 18px; }
  .lesson-panel { padding: 16px; }
  .early-version { padding: 14px; }
  .lesson-passage { padding: 14px; }
  .tool-actions .btn { white-space: normal; }
}
@media print {
  @page { margin: 15mm; }
  body { background: white !important; color: black !important; }
  .site-header, .site-footer, .sky, body > svg, .tool-actions, .tool-filter, .map-editor, .tool-example, noscript { display: none !important; }
  main > .explainer > :not(.reading-tools) { display: none !important; }
  main, .explainer, .reading-tools { max-width: none; margin: 0; padding: 0; }
  .reading-tools *, .reading-tools p, .reading-tools li { color: black !important; box-shadow: none !important; }
  .reading-card, .activity-card, .map-preview { background: white !important; border-color: #aaa; }
  .map-grid { grid-template-columns: 1fr 1fr; }
  .map-box { border-color: #aaa; }
  .lesson-panel, .early-version, .worksheet-box { background: white !important; border-color: #aaa; }
  .lesson-passage { background: white !important; border-left-color: #555; }
  .lesson-stage, .worksheet-box, .aloud-beats > li { break-inside: avoid; }
  .handwriting-space { border-bottom-color: #aaa; }
  .classroom-worksheet { break-before: page; }
  .early-story + .early-story { break-before: page; }
  .reading-tools [data-reading-minutes][hidden] { display: none !important; }
  .reading-tools h2 { font-size: 20pt; }
  .reading-tools p, .reading-tools li { font-size: 11pt; line-height: 1.45; }
}
