/* kids-class.css: owned by area C1, Class (tools/kids/CONTRACT.md section 0). Class prefix kc-. The class chooser (#class), the board (#class-sNN-25-little)
 * and Teach at home (#teach-sNN). Light theme only. Arabic that may wrap keeps line-height 1.9 to 2.1; nothing with padding, margin, border or
 * inline-block sits inside an Arabic word (a lit letter is colour only). The board is sized for a projector: one letter is 40vh or more where the screen allows. */
:root { --kc-amber: #E9A400; --kc-amber-wash: #FFF1C7; --kc-amber-ink: #6A4300; }

/* ---------------------------------------------------------------- the chooser */
.scr-classes { max-width: 60rem; }
.kc-lead { margin: 0 0 var(--s4); color: var(--ink-soft); max-width: 46rem; }
.kc-fs { border: 0; margin: 0 0 var(--s4); padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kc-fs > legend { flex: 0 0 100%; padding: 0; margin-bottom: 2px; font: 700 var(--t-body)/1.3 var(--font-body); }
.kc-fs--sessions { gap: 6px; }
.kc-opt { position: relative; display: block; min-width: 0; }
.kc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.kc-opt__in { display: grid; gap: 1px; min-height: 48px; padding: 8px 14px; align-content: center; border: 2px solid var(--rule); border-radius: var(--r-key); background: var(--raised); color: var(--ink); cursor: pointer; font: 700 var(--t-sm)/1.25 var(--font-body); overflow-wrap: anywhere; }
.kc-opt__s { font: 400 var(--t-cap)/1.2 var(--font-body); color: var(--ink-soft); }
@media (hover: hover) { .kc-opt__in:hover { background: var(--hover-mix); } }
.kc-opt input:checked + .kc-opt__in { border-color: var(--action); background: var(--ok-wash); box-shadow: inset 0 0 0 1px var(--action); }
.kc-opt input:focus-visible + .kc-opt__in { outline: 3px solid var(--lapis); outline-offset: 2px; }
.kc-startbar { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 8px; margin: var(--s4) calc(var(--gutter) * -1) 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 3px double var(--gold); }
.kc-choose__sum { margin: 0; font: 700 var(--t-body)/1.3 var(--font-body); }
.kc-startbar__keys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kc-morelinks { display: none; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: var(--s4); }
@media (max-width: 520px) {
  .kc-startbar { gap: 4px; padding-top: 8px; }
  .kc-startbar .kc-bigl, .kc-startbar .kc-printl { display: none; }
  .kc-morelinks { display: flex; }
}
.kc-bigsec { margin-top: var(--s6); }
.kc-bigrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kc-bigrow select { min-height: 48px; max-width: 100%; padding: 0 12px; border: 2px solid var(--edge); border-radius: var(--r-key); background: var(--raised); color: var(--ink); font: 400 var(--t-body)/1.2 var(--font-body); }

/* ---------------------------------------------------------------- the board */
html.kc-board-on .topbar { display: none; }
.scr-board { max-width: none; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
.scr-teach { max-width: 72rem; }
.kc-title { margin-bottom: 0; }
.scr-teach .kc-title { font-size: 1.3rem; line-height: 1.2; margin-top: 0; }
.kc-subtitle { margin: 0 0 var(--s2, 8px); color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 700px) { .scr-teach .kc-title { font-size: 1.15rem; } .scr-teach .kc-subtitle { display: none; } }
.kc-host { max-width: 100%; }
.kc-board {
  --kc-scale: 1;
  --kc-letter: min(48vh, 62vw); --kc-letter-l: min(24vh, 24vw); --kc-letter-m: min(11vh, 14vw);
  --kc-word: min(26vh, 40vw); --kc-word-l: min(15vh, 22vw); --kc-word-m: min(7vh, 11vw);
  --kc-ayah: min(9vh, 8vw); --kc-ayah-l: min(6vh, 7vw); --kc-ayah-m: min(4.6vh, 6vw);
  --kc-ayahlist: min(6.5vh, 6vw); --kc-name: min(10vh, 15vw);
  position: relative; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; max-width: 100%;
  height: calc(100dvh - 16px); min-height: 420px;
}
.kc-board[data-mode="home"] {
  --kc-letter: min(32vh, 56vw); --kc-word: min(22vh, 36vw); --kc-ayah: min(7.5vh, 7vw); --kc-name: min(8vh, 13vw);
  height: auto; min-height: 0;
}
.kc-board[hidden], .kc-board [hidden] { display: none !important; }
.kc-board[data-mode="home"] .kc-bar { position: sticky; bottom: 0; padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--paper); }
.kc-head { display: flex; align-items: flex-start; gap: 10px; flex: 0 0 auto; }
.kc-strip { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.kc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; max-width: 100%; padding: 0 12px 0 6px; border: 2px solid var(--rule); border-radius: var(--r-chip); background: var(--raised); color: var(--ink); font: 700 var(--t-sm)/1.1 var(--font-body); cursor: pointer; touch-action: manipulation; }
.kc-chip__n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--desk); color: var(--ink); font: 700 var(--t-cap)/1 var(--font-body); }
.kc-chip__m { font: 400 var(--t-cap)/1 var(--font-body); color: var(--ink-soft); }
.kc-chip.is-past { background: var(--ok-wash); border-color: var(--rule); }
.kc-chip.is-now { background: var(--cover); color: var(--on-cover); border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.kc-chip.is-now .kc-chip__n { background: var(--on-cover); color: var(--cover); }
.kc-chip.is-now .kc-chip__m { color: var(--on-cover); }
.kc-chip:focus-visible, .kc-timer:focus-visible, .kc-dot:focus-visible { outline: 3px solid var(--lapis); outline-offset: 2px; }
@media (max-width: 700px) {
  .kc-chip { min-height: 44px; }
  .kc-chip:not(.is-now) { min-width: 44px; justify-content: center; padding: 0 5px; }
  .kc-chip:not(.is-now) .kc-chip__t, .kc-chip:not(.is-now) .kc-chip__m, .kc-chip.is-now .kc-chip__m { display: none; }
  .kc-head .kc-timer { min-height: 44px; padding: 0 10px; font-size: 1.1rem; }
}
.kc-timer { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 2px solid var(--rule); border-radius: var(--r-pill); background: var(--raised); color: var(--ink); font: 700 1.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; cursor: pointer; }
.kc-timer__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.kc-timer.is-zero { background: var(--kc-amber-wash); border-color: var(--kc-amber); color: var(--kc-amber-ink); }
.kc-timer.is-paused { border-style: dashed; }
.kc-stage { flex: 1 1 auto; min-height: 0; display: flex; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; background: var(--raised); border: 2px solid var(--rule); border-radius: var(--r-panel); outline: none; }
.kc-board[data-mode="home"] .kc-stage { flex: 0 0 auto; height: clamp(280px, 55dvh, 720px); }   /* fitHome() in 70-class.js sets the real height from what is left of the screen */
/* Teach at home (second review, KIDS-R2-1 to R2-3): the Read to me widget loses its numbered jump row (the board's bar and the marks move through the cards; 10 jump keys took two rows)
   and, on a phone, Hear it becomes an icon, so the bar stays ONE row (Back, Next, Hear it, Leave) and Read it / Again stay above it at full size */
.kc-board[data-mode="home"] .kc-rtmwrap .kf-rtm__steps { display: none; }
@media (max-width: 520px) {
  .kc-board[data-mode="home"] .kc-hear { width: 48px; min-width: 48px; padding: 0; }
  .kc-board[data-mode="home"] .kc-hear .key__label { display: none; }
}
.kc-unit { margin: auto; display: grid; justify-items: center; align-content: center; gap: 14px; max-width: 100%; box-sizing: border-box; padding: 10px; }
.kc-stage .kf-card--xl { --kf-letter: max(40px, calc(var(--kc-letter) * var(--kc-scale, 1))); --kf-word: max(40px, calc(var(--kc-word) * var(--kc-scale, 1))); --kf-ayah: max(40px, calc(var(--kc-ayah) * var(--kc-scale, 1))); }
.kc-stage .kf-card--l { --kf-letter: max(40px, calc(var(--kc-letter-l) * var(--kc-scale, 1))); --kf-word: max(40px, calc(var(--kc-word-l) * var(--kc-scale, 1))); --kf-ayah: max(40px, calc(var(--kc-ayah-l) * var(--kc-scale, 1))); }
.kc-stage .kf-card--m { --kf-letter: max(40px, calc(var(--kc-letter-m) * var(--kc-scale, 1))); --kf-word: max(40px, calc(var(--kc-word-m) * var(--kc-scale, 1))); --kf-ayah: max(40px, calc(var(--kc-ayah-m) * var(--kc-scale, 1))); }
.kc-stage .kf-name { font-size: clamp(2rem, 5.4vh, 3.6rem); line-height: 1.9; }
.kc-stage .kf-signar { font-size: max(40px, calc(var(--kf-letter, 7.5rem) * .55)); }
/* the sign's name and its explanation grow with the board's scale, like the Arabic (never 13 px under a projector-sized sign) */
.kc-stage .kf-sign__name { font-size: max(1.0625rem, calc(var(--kf-letter, 7.5rem) * .105)); }
.kc-stage .kf-sign__rule { font-size: max(1rem, calc(var(--kf-letter, 7.5rem) * .08)); max-width: 22ch; }
.kc-stage .kf-card--letter .kf-letter { line-height: 1.25; padding-block: .02em .16em; }   /* a bare letter has no marks: a tighter box (syllables keep the foundation's 1.6) */
.kc-stage .kf-tl { font-size: calc(var(--t-body) * 1.15); }
.kc-stage .kf-en { font-size: var(--t-body); max-width: 34ch; }
.kc-stage .kf-row { gap: 12px; }
.kc-stage .kf-meet { gap: 16px; }
.kc-stage .kf-card { border-width: 2px; border-bottom-width: 5px; }
.kc-empty { margin: 0; font: 700 var(--t-h3)/1.4 var(--font-display); color: var(--ink-soft); text-align: center; }
.kc-banner { margin: 0; font: 700 clamp(1.1rem, 2.6vh, 1.9rem)/1.3 var(--font-display); text-align: center; color: var(--ink); text-wrap: balance; }
.kc-banner--small { font-size: var(--t-body); color: var(--ink-soft); min-height: 1.3em; }
.kc-count { margin: 0; font: 400 var(--t-sm)/1 var(--font-body); color: var(--ink-soft); }

/* a board with more on it than the stage holds: the English and the transliteration step aside (the teacher's lines keep them), then the Arabic shrinks to its 40 px floor */
.kc-stage.is-tight .kf-en, .kc-stage.is-tight .kf-tl, .kc-stage.is-tight .kf-desc, .kc-stage.is-tight .kf-form__cap, .kc-stage.is-tight .kf-sign__rule, .kc-stage.is-tight .kf-sign__name { display: none; }

/* meet: a big letter, where the sound comes from, three dots to fill */
.kc-meetone { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.kc-meetside { display: grid; gap: 12px; justify-items: center; max-width: 100%; }
.kc-meetside .places { justify-content: center; }
.kc-say3 { display: flex; gap: 14px; }
.kc-dot { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--edge); background: var(--raised); cursor: pointer; touch-action: manipulation; padding: 0; }
.kc-dot.is-on { background: var(--action); border-color: var(--action-lip); }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .kc-meetone { flex-direction: row; gap: 36px; }
  /* a letter card is one centred column at every width: the letter, then its name under it (a grid with the name in a second column left it floating at the upper right) */
  .kc-stage .kf-card--letter.kf-card--xl { padding-inline: clamp(28px, 5vw, 72px); }
  .kc-stage .kf-card--letter.kf-card--xl .kf-name { font-size: max(40px, clamp(2.4rem, 7vh, 4.6rem)); }
  .kc-meetside { max-width: 22rem; }
}

/* point and echo: which one is lit */
.kc-pointrow, .kc-echorow { flex-wrap: wrap; justify-content: center; }
.kc-pointrow.kc-unnamed .kf-name, .kc-pointrow.kc-unnamed .kf-tl, .kc-pointrow.kc-unnamed .kf-en { visibility: hidden; }
.kc-stage .kf-card.kc-target { border-color: var(--action); background: var(--ok-wash); box-shadow: 0 0 0 5px var(--gold); }
.kc-stage .kf-card.kc-dim { opacity: .38; }
.kc-stage .kf-card.kc-light { background: var(--pointer-soft); border-color: var(--pointer-ring); box-shadow: 0 0 0 5px var(--pointer-ring); }
.kc-echorow.is-all .kf-card { background: var(--pointer-soft); border-color: var(--pointer-ring); }
.kc-steps3 { display: flex; gap: 8px; margin: 0; }
.kc-s3 { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--edge); }
.kc-s3.is-on { background: var(--action); border-color: var(--action); }

/* spot: the lit letter is colour only (never a box, padding or margin inside the word) */
.kc-spotword.is-lit, .kc-spotayah.is-lit { color: var(--tj-silent); }
.kc-spotword .kc-lit, .kc-spotayah .kc-lit { color: #C2410C; }
.kc-spotletter { min-height: 0; }
.kc-ruletext { margin: 0; max-width: 40ch; font: 400 clamp(1.1rem, 3vh, 2rem)/1.5 var(--font-body); text-align: center; text-wrap: pretty; }
.kc-ruletext--title { font-family: var(--font-display); font-weight: 700; }
.kc-ruletext .ar-inline { font-size: 1.35em; line-height: 1.9; }

/* the ring (stretch, partner reading) */
.kc-ringwrap { display: grid; justify-items: center; }
.kc-ring { width: calc(min(34vh, 60vw) * max(.5, var(--kc-scale, 1))); height: calc(min(34vh, 60vw) * max(.5, var(--kc-scale, 1))); aspect-ratio: 1; }
@media (max-height: 800px) { .kc-ring { width: calc(min(24vh, 50vw) * max(.5, var(--kc-scale, 1))); height: calc(min(24vh, 50vw) * max(.5, var(--kc-scale, 1))); } }
@media (min-width: 900px) {
  .kc-stage.has-ring .kc-unit { grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: center; }
  .kc-stage.has-ring .kc-unit > * { grid-column: 1; }
  .kc-stage.has-ring .kc-unit > .kc-ringwrap { grid-column: 2; grid-row: 1 / span 4; }
  .kc-stage.has-ring .kc-ring { width: calc(min(34vh, 18rem) * max(.5, var(--kc-scale, 1))); height: calc(min(34vh, 18rem) * max(.5, var(--kc-scale, 1))); }
}
.kc-ring__track { fill: none; stroke: var(--rule); stroke-width: 9; }
.kc-ring__arc { fill: none; stroke: var(--action); stroke-width: 9; stroke-linecap: round; }
.kc-ring.is-zero .kc-ring__arc { stroke: var(--kc-amber); }
.kc-ring__t { font: 700 20px var(--font-display); fill: var(--ink); font-variant-numeric: tabular-nums; }
.kc-ring.is-zero .kc-ring__t { fill: var(--kc-amber-ink); }
.kc-break { display: grid; justify-items: center; gap: 8px; }
.kc-break__icon { width: 64px; height: 64px; fill: none; stroke: var(--ink-soft); stroke-width: 1.6; }

/* listen and ayah */
.kc-surahhead { display: grid; justify-items: center; gap: 0; }
.kc-surname { display: block; direction: rtl; margin: 0; font-family: var(--font-ar); font-size: max(40px, calc(var(--kc-name) * var(--kc-scale, 1))); line-height: 1.9; }
.kc-surahname { font: 700 var(--t-body)/1.3 var(--font-body); color: var(--ink-soft); }
.kc-surahrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.kc-ayahs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; width: 100%; max-width: 72rem; }
.kc-ayahs li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 2px 14px; border-radius: var(--r-chip); }
.kc-ayahs li.is-now { background: var(--pointer-soft); outline: 3px solid var(--pointer-ring); }
.kc-ayahno { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--edge); font: 700 var(--t-cap)/1 var(--font-body); color: var(--ink-soft); }
.kc-ayahline { display: block; margin: 0; direction: rtl; text-align: center; font-family: var(--font-ar); font-size: max(40px, calc(var(--kc-ayahlist) * var(--kc-scale, 1))); line-height: 2.05; overflow-wrap: normal; word-break: keep-all; }
.kc-playall { min-width: var(--kids-target); }

/* a game and Read to me own their stage */
.kc-gamewrap, .kc-rtmwrap { display: grid; gap: 12px; justify-items: center; width: 100%; max-width: 100%; }
.kc-gamehost { width: 100%; max-width: 100%; }
.kc-gametitle { margin: 0; font: 700 var(--t-h3)/1.2 var(--font-display); }
.kc-gamebar { min-height: 1.5em; }
.kc-gamehint { margin: 0; font: 400 var(--t-cap)/1.3 var(--font-body); color: var(--ink-soft); text-align: center; }
.kc-gameend { margin: 0; font: 700 clamp(1.4rem, 4vh, 2.4rem)/1.2 var(--font-display); color: var(--action); text-align: center; }

/* finish */
.kc-finish { display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.kc-tile { width: calc(min(30vh, 200px) * max(.45, var(--kc-scale, 1))); }
.kc-tile .tile { max-width: 100%; pointer-events: none; }
.kc-star { width: 72px; height: 72px; }
.kc-parents { margin: 0; font: 700 clamp(1.1rem, 3vh, 1.8rem)/1.3 var(--font-display); text-align: center; }
/* scrollIntoView({block:'nearest'}) on Done (Teach at home) stops above the sticky bar */
.kc-board[data-mode="home"] .kc-done { scroll-margin-bottom: 88px; }
.kc-next { font: 700 var(--t-body)/1.3 var(--font-body); color: var(--lapis); min-height: 44px; display: inline-flex; align-items: center; }

/* the teacher's lines */
.kc-say { flex: 0 0 auto; box-sizing: border-box; padding: 8px 14px; border: 2px solid var(--gold); border-radius: var(--r-panel); background: var(--sun-wash); max-height: 30vh; overflow-y: auto; }
.kc-say__h { margin: 0 0 2px; font: 700 var(--t-sm)/1.2 var(--font-body); color: var(--sun-ink); text-transform: none; }
.kc-say__l { margin: 0 0 2px; font: 400 clamp(1rem, 2.4vh, 1.4rem)/1.4 var(--font-body); }
.kc-board[data-mode="home"] .kc-say { max-height: none; }

/* the bar of screen buttons */
.kc-bar { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; position: relative; z-index: 3; }
.kc-btn { min-height: 48px; }
@media (max-width: 520px) {
  .kc-bar { gap: 6px; }
  .kc-btn { padding-inline: 10px; }
  .kc-btn:not(.kc-back):not(.kc-next-btn):not(.kc-hear) { width: 48px; min-width: 48px; padding: 0; }   /* the lesser keys are icons on a phone (each keeps its aria-label) */
  .kc-btn:not(.kc-back):not(.kc-next-btn):not(.kc-hear) .key__label { display: none; }
}
.kc-leave { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 8px; border: 2px solid var(--gold); border-radius: var(--r-panel); background: var(--sun-wash); font: 700 var(--t-body)/1.3 var(--font-body); }
.kc-blank { position: absolute; inset: 0; z-index: 2; background: #000; border-radius: var(--r-panel); cursor: pointer; }
.kc-board.is-blank .kc-bar .key:not(.kc-blankb) { visibility: hidden; }
.kc-board.is-blank .kc-blankb { opacity: .45; }
.kc-board.is-blank .kc-blank:not([hidden]) { display: block; }
.kc-board.is-blank .kc-blankb { position: relative; z-index: 4; }
html.kc-board-on #main { min-height: 0; }

/* Teach at home: the line above the board */
.kc-board[data-mode="home"] .kc-head { margin-bottom: 0; }

/* a phone held upright: the letter gets the room (the places strip and the long sound line wait for a bigger screen) */
@media (max-width: 700px) {
  .kc-meetside .places { display: none; }
  .kc-stage .kf-card--letter .kf-en { display: none; }
  .kc-stage .kf-name { font-size: 1.5rem; }
}

/* no transitions on the stage: the board measures the Arabic synchronously (the page's reduced-motion rule gives every property a 1ms transition, which would hold a stale size) */
.kc-stage, .kc-stage * { transition: none !important; }

/* ---------------------------------------------------------------- the teacher's window: the board's own note when the browser blocks it (no names here) */
.kc-popnote { position: absolute; z-index: 6; left: 50%; bottom: 70px; transform: translateX(-50%); width: min(34rem, calc(100% - 16px)); box-sizing: border-box; display: grid; gap: 8px; padding: 10px 14px; border: 2px solid var(--gold); border-radius: var(--r-panel); background: var(--sun-wash); color: var(--ink); box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.kc-popnote__t { margin: 0; font: 700 var(--t-body)/1.35 var(--font-body); }
.kc-popnote__k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* the keys sheet (the ? key or the Keys button) */
.kc-keys { position: absolute; z-index: 6; left: 50%; bottom: 70px; transform: translateX(-50%); width: min(32rem, calc(100% - 16px)); box-sizing: border-box; max-height: calc(100% - 90px); overflow-y: auto; padding: 10px 14px; border: 2px solid var(--gold); border-radius: var(--r-panel); background: var(--sun-wash); color: var(--ink); box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.kc-keys__h { margin: 0 0 4px; font: 700 var(--t-body)/1.3 var(--font-body); }
.kc-keys__l { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0; font: 400 var(--t-sm)/1.35 var(--font-body); }
.kc-keys__l dt { font-weight: 700; white-space: nowrap; }
.kc-keys__l dd { margin: 0; }
.kc-keys__n { margin: 6px 0 0; font: 400 var(--t-cap)/1.35 var(--font-body); color: var(--ink-soft); }

/* ---------------------------------------------------------------- #print-sNN: the cards on A4, six to a page (2 columns by 3 rows), print CSS only */
.scr-print { max-width: 60rem; }
.kc-pv { --kc-pv: 1; margin-top: var(--s4); overflow-x: clip; }
.kc-pvpage { width: calc(210mm * var(--kc-pv)); height: calc(297mm * var(--kc-pv)); margin: 0 auto 6px; position: relative; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .22); overflow: hidden; }
.kc-pvpage__n { max-width: none; margin: 14px 0 4px; text-align: center; font: 700 var(--t-cap)/1.6 var(--font-body); color: var(--ink-soft); }
.kc-sheet { box-sizing: border-box; width: 210mm; height: 297mm; padding: 12mm; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 6mm; background: #fff; transform-origin: 0 0; transform: scale(var(--kc-pv)); }
.kc-pc { position: relative; box-sizing: border-box; min-width: 0; min-height: 0; display: flex; flex-direction: column; border: .35mm solid #333; background: #fff; color: #000; text-align: center; overflow: hidden; }
.kc-pc__body { box-sizing: border-box; width: 100%; margin-block: auto; padding: 4mm; display: flex; flex-direction: column; align-items: center; gap: 1mm; }
.kc-pc__ar { display: block; width: 100%; line-height: 1.8; direction: rtl; white-space: nowrap; overflow: visible; margin: 0; padding: 0; }
.kc-pc__ar--ayah { line-height: 2.1; white-space: normal; }
.kc-pc__nm { display: block; font-size: 8mm; line-height: 2; direction: rtl; }
.kc-pc__tl { font: 700 5mm/1.25 var(--font-body); color: #222; }
.kc-pc__ref { font: 400 3.6mm/1.2 var(--font-body); color: #444; }
.kc-pc__n { position: absolute; right: 2.5mm; bottom: 1.5mm; font: 400 2.8mm/1 var(--font-body); color: #777; }
@media (max-width: 700px) { .scr-print { padding-inline: 12px; } }
@media print {
  html.kc-print-on, html.kc-print-on body { background: #fff !important; }
  html.kc-print-on .topbar, html.kc-print-on .skip, html.kc-print-on .lr-layers, html.kc-print-on #lr-live, html.kc-print-on .lr-toast, .kc-noprint { display: none !important; }
  html.kc-print-on #main { min-height: 0 !important; padding: 0 !important; margin: 0 !important; }
  .scr-print { max-width: none; padding: 0 !important; margin: 0 !important; }
  .kc-pv { --kc-pv: 1 !important; margin: 0; overflow: visible; }
  .kc-pvpage { width: 210mm; height: 297mm; margin: 0 !important; box-shadow: none; overflow: hidden; break-after: page; page-break-after: always; break-inside: avoid; }
  .kc-pvpage:last-child { break-after: auto; page-break-after: auto; }
  .kc-sheet { transform: none; }
  .kc-pc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* the class board scales its own cards (--kc-scale) and splits long lists: the 120 px phone minimum of the Today cards (kids-foundation.css) would overflow a phone-sized board */
.kc-stage .kf-card--letter, .kc-stage .kf-card--syllable { min-width: max(var(--kids-target), 96px); }
