/* ============================================================================
   Memory Verse Builder (studies/memory-verse-builder.html, engines/memory-verse.js).
   Loaded after core/lamp.css, engines/kids-trivia.css and engines/shelf-it.css (the
   chips, spots, colors and card are theirs). Here: the verse and reference, the
   word-by-word build line for 6th-8th grade, and the fading verse with its blanks.
   Every tap target is at least 44px tall. Nothing depends on hover.
   ============================================================================ */

.lamp .mv-ref { margin: 0; font: 600 clamp(34px, 7vw, 64px)/1.05 var(--f-display); font-variant-numeric: lining-nums tabular-nums; text-wrap: balance; }
.lamp .mv-ref-small { font-size: clamp(24px, 4vw, 36px); color: var(--accent); }
.lamp .mv-ref-line { flex-basis: 100%; margin: 0; font: 600 15px/1.3 var(--f-ui); color: var(--accent); }
.lamp .mv-text { margin: 0; font: 500 clamp(21px, 3.4vw, 30px)/1.5 var(--f-read); text-wrap: pretty; }
.lamp .mv-peek { padding: 12px 14px; border: 1px dashed var(--accent-bright); border-radius: 12px; font-size: 18px; }

/* The spots: placed chunks wait their turn. */
.lamp .si-slot.is-empty { color: var(--muted); }
.lamp .mv-pile { justify-content: flex-start; }
.lamp .mv-pick { text-align: left; }

/* 6th-8th grade: every word, so the build line is a wrapping row of small spots. */
.lamp .mv-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lamp .mv-flow li { display: block; }
.lamp .mv-count { margin: 0; font: 600 14px/1.3 var(--f-ui); color: var(--muted); }
.lamp .mv-spot { padding: 0 12px; }
.lamp .mv-spot.is-empty { min-width: 46px; border-style: dashed; border-color: var(--rule); color: var(--muted); background: var(--paper); }

/* Say it: the verse with blanks. */
.lamp .mv-say { margin: 0; font: 500 clamp(21px, 3.4vw, 30px)/2.1 var(--f-read); text-align: left; }
.lamp .mv-w { white-space: nowrap; } /* a blank keeps its comma or period on its line */
.lamp .mv-w.is-shown { color: var(--accent); font-weight: 600; }
.lamp .mv-blank {
  display: inline-flex; align-items: flex-end; justify-content: flex-start; gap: 2px; vertical-align: middle;
  min-width: max(44px, var(--w, 1.4em)); min-height: 44px; padding: 0 6px 8px; margin: 0 1px; border: 0; border-radius: 8px; background: var(--soft);
  color: var(--accent); font: 700 1em/1 var(--f-read);
}
.lamp .mv-line { display: block; flex: 1; min-width: 1em; height: 0; margin-bottom: 4px; border-bottom: 3px solid var(--accent-bright); }
.lamp .mv-fade-acts { gap: 6px; }
.lamp .si-link:disabled { opacity: .4; text-decoration: none; cursor: default; }

@media (max-width: 640px) {
  .lamp .mv-say { line-height: 2.2; }
}

/* ---- Review (kt-review rows are Bible Trivia's) and print (the look of Story in Order's cut-outs) ---- */
.lamp .mv-rv-text { font: 17px/1.5 var(--f-read); }
.lamp .mv-rv-meta { font: 13px/1.4 var(--f-ui); color: var(--muted); }
.lamp .mv-review .kt-rv-body { gap: 4px; }
.lamp .mv-print { margin: 26px 0 0; padding: 14px 18px; max-width: 880px; border: 1px solid var(--rule); border-radius: var(--radius); }
.lamp .mv-print h3 { margin: 0 0 8px; font: 600 12px/1.3 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lamp .mv-print-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lamp .mv-set-note { margin: 10px 0 0; font: 15px/1.5 var(--f-read); color: var(--muted); }
/* The print pages are drawn only to print. */
.lamp #mvPrint { display: none; }

@media (max-width: 640px) {
  .lamp .mv-print { padding: 12px; }
  .lamp .mv-print-row .btn { flex: 1 1 100%; }
}

@media print {
  .lamp .mv-print { display: none !important; }
  .lamp .mv-rv { break-inside: avoid; }
  .lamp .mv-rv-meta { display: none; }
  .lamp.mv-printing-sheet .lh, .lamp.mv-printing-sheet .lf, .lamp.mv-printing-sheet .crumbs,
  .lamp.mv-printing-sheet #mv > :not(#mvPrint) { display: none !important; }
  .lamp.mv-printing-sheet #mvPrint { display: block; }
  .lamp .mv-sheet { font: 12pt/1.45 var(--f-read); color: #000; }
  .lamp .mv-sheet h2 { margin: 0 0 4pt; font: 600 18pt/1.2 var(--f-display); }
  .lamp .mv-sheet-sub, .lamp .mv-sheet-name { margin: 0 0 8pt; }
  .lamp .mv-sheet-set { break-inside: avoid; margin: 0 0 14pt; }
  .lamp .mv-sheet h3 { margin: 0 0 6pt; font: 600 13pt/1.2 var(--f-ui); }
  /* Cut-out strips: dashed boxes that wrap like words, so a row breaks between pages cleanly. */
  .lamp .mv-cut-row { margin: 0; font-size: 0; }
  .lamp .mv-cut {
    display: inline-block; vertical-align: top; margin: 0 -1.5pt -1.5pt 0; padding: 9pt 12pt; box-sizing: border-box;
    border: 1.5pt dashed #777; font: 500 15pt/1.3 var(--f-read); break-inside: avoid;
  }
  .lamp .mv-fill { margin: 0; line-height: 2.2; }
  .lamp .mv-fill-blank { display: inline-block; margin: 0 1pt; border-bottom: 1pt solid #000; font-weight: 700; text-align: left; line-height: 1.1; }
  .lamp .mv-sheet-answers { break-before: page; }
  .lamp .mv-sheet-answers p { margin: 0 0 6pt; }
}
