/*
 * One stylesheet, no framework. The palette is a school exercise book: off-white
 * paper, a blue pen for anything you can press, a green tick and a red circle
 * for right and wrong, and a yellow highlighter for the sound being practised.
 * The syllables a child reads are set large and rounded; everything an adult
 * reads is set plainly.
 */
:root {
  color-scheme: light dark;
  --bg: #f8f6f0;
  --surface: #ffffff;
  --panel: #f0ede4;
  --line: #e1dccf;
  --ink: #1f2533;
  --muted: #5f6775;
  --accent: #2154c4;
  --accent-soft: #e3ebfb;
  --accent-ink: #ffffff;
  --mark: #ffd54a;
  --good: #23864a;
  --good-soft: #dcf1e3;
  --nearly: #a86400;
  --nearly-soft: #fbeccd;
  --bad: #c23b32;
  --bad-soft: #fbe3e0;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Trebuchet MS", sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171f; --surface: #1c2030; --panel: #252a3b; --line: #343a4f; --ink: #eef0f5;
    --muted: #a7aec0; --accent: #7fa6ff; --accent-soft: #23305a; --accent-ink: #14171f;
    --mark: #e8c13e; --good: #6fd497; --good-soft: #1f3b2d; --nearly: #ffbf66; --nearly-soft: #3d2f17;
    --bad: #ff8a80; --bad-soft: #43231f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main { max-width: 920px; margin: 0 auto; padding: 28px 16px 80px; }
main.wide { max-width: 1200px; }
h1, h2, h3 { font-family: var(--round); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5.6vw, 50px); line-height: 1.1; margin: 0 0 14px; }
h2 { font-size: clamp(23px, 3.4vw, 30px); margin: 44px 0 12px; }
h3 { font-size: 20px; margin: 22px 0 6px; }
a { color: var(--accent); text-underline-offset: 3px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 5px; }
mark { background: color-mix(in srgb, var(--mark) 65%, transparent); color: inherit; padding: 0 3px; border-radius: 3px; }

.lede { font-size: clamp(18px, 2.3vw, 20px); color: var(--muted); margin-bottom: 26px; max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
[hidden] { display: none !important; }

/* ── Header and footer, on every page via BaseLayout ─────────────────────── */
.masthead {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 16px 16px 0;
}
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--round); font-weight: 900; font-size: 26px; color: var(--ink); text-decoration: none; }
.wordmark img { width: 34px; height: 34px; }
.masthead nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.masthead nav.tabs a { padding: 7px 14px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 650; }
.masthead nav.tabs a:hover { background: var(--panel); }
.masthead nav.tabs a[aria-current] { background: var(--accent-soft); color: var(--ink); }
.masthead nav.more { font-size: 15px; gap: 14px; margin-left: auto; }
.masthead nav.more a { color: var(--muted); text-decoration: none; }
.masthead nav.more a[aria-current] { color: var(--ink); font-weight: 700; }
.masthead nav.more a.button { color: var(--accent-ink); }

.siteftr {
  max-width: 1200px; margin: 0 auto; padding: 26px 16px 48px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.siteftr .feedback-line { font-size: 15px; color: var(--ink); }
.siteftr .feedback-line a { font-weight: 700; }

/* ── Buttons, forms, panels ──────────────────────────────────────────────── */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1 var(--round); padding: 13px 22px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none;
  transition: transform 0.1s ease, opacity 0.1s ease;
}
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: default; transform: none; }
button.quiet, .button.quiet { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
button.good { background: var(--good); color: #fff; }
button.bad { background: var(--surface); color: var(--bad); border: 2px solid var(--bad); }
button.small, .button.small { padding: 8px 13px; font-size: 14px; border-radius: 10px; }
button.big, .button.big { padding: 18px 30px; font-size: 20px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

label { display: block; font-weight: 650; margin: 16px 0 6px; }
label .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 8px 0; }
label.check input { width: auto; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 650; margin: 16px 0 6px; padding: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }
.error { color: var(--bad); }
.ok { color: var(--good); }
.note { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; font-size: 15px; }

/* ── The front page ──────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; margin: 6px 0 18px; }
@media (max-width: 780px) { .hero { grid-template-columns: 1fr; } }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.cols > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cols h3 { margin-top: 0; }
.levels { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.levels li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.levels strong { display: block; font: 800 17px var(--round); }
.levels .sounds { font: 800 18px var(--round); color: var(--accent); }

/* ── Syllables: tiles, slots, the big word ───────────────────────────────── */
.tiles { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 16px 0; }
.tile {
  font: 800 clamp(30px, 7vw, 46px)/1 var(--round); min-width: 2.6em; padding: 16px 18px;
  border-radius: 16px; background: var(--surface); color: var(--ink); border: 3px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
}
.tile:hover { border-color: var(--accent); }
.tile.right { background: var(--good-soft); border-color: var(--good); }
.tile.wrong { background: var(--bad-soft); border-color: var(--bad); animation: shake 0.3s; }
.tile.used { visibility: hidden; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .tile.wrong { animation: none; } }

.slots { display: flex; gap: 6px; justify-content: center; min-height: 1.4em; font: 800 clamp(40px, 10vw, 72px)/1.2 var(--round); }
.slots span { min-width: 1.6em; border-bottom: 4px solid var(--line); text-align: center; padding: 0 4px; }
.slots span.filled { border-color: var(--good); }
.word { font: 800 clamp(56px, 14vw, 120px)/1.1 var(--round); text-align: center; margin: 12px 0; letter-spacing: 0.01em; }

/* ── Practice ────────────────────────────────────────────────────────────── */
.adult {
  background: var(--panel); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; text-align: left;
}
.adult .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.adult .line { font: 700 19px/1.35 var(--round); }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; text-align: center; }
.feedback-msg { font: 800 22px var(--round); min-height: 1.5em; margin: 8px 0; }
.feedback-msg.right { color: var(--good); }
.feedback-msg.wrong { color: var(--bad); }
.score { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 10px 0 4px; }
.score span { width: 14px; height: 14px; border-radius: 50%; background: var(--panel); }
.score span.right { background: var(--good); }
.score span.wrong { background: var(--bad); }
.picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.picker button { flex-direction: column; background: var(--surface); color: var(--ink); border: 2px solid var(--line); font-size: 18px; padding: 10px 12px 8px; min-width: 3.2em; }
.picker button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.picker .st { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--panel); }
.picker .st.a-praticar { background: var(--mark); }
.picker .st.quase { background: var(--nearly); }
.picker .st.dominado { background: var(--good); }
.practising .masthead nav, .practising .siteftr .about { display: none; }

/* ── Progress per sound ──────────────────────────────────────────────────── */
.status { display: inline-block; font: 700 12px var(--round); padding: 3px 9px; border-radius: 99px; background: var(--panel); color: var(--muted); white-space: nowrap; }
.status.a-praticar { background: color-mix(in srgb, var(--mark) 40%, transparent); color: var(--ink); }
.status.quase { background: var(--nearly-soft); color: var(--nearly); }
.status.dominado { background: var(--good-soft); color: var(--good); }
.soundgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 10px 0; }
.soundgrid div { border-radius: 10px; padding: 6px 4px; text-align: center; font: 800 15px var(--round); background: var(--panel); color: var(--muted); }
.soundgrid small { display: block; font: 600 11px var(--sans); }
.soundgrid .a-praticar { background: color-mix(in srgb, var(--mark) 40%, transparent); color: var(--ink); }
.soundgrid .quase { background: var(--nearly-soft); color: var(--nearly); }
.soundgrid .dominado { background: var(--good-soft); color: var(--good); }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; margin: 8px 0; }

.list { list-style: none; padding: 0; margin: 0; }
.list > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.list .title { font: 800 19px var(--round); }

/* ── The class view ──────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.matrix { border-collapse: collapse; font-size: 14px; min-width: 100%; }
table.matrix th, table.matrix td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); font-weight: 700; }
table.matrix thead th { font: 800 14px var(--round); }
table.matrix thead th.now { background: color-mix(in srgb, var(--mark) 45%, transparent); }
table.matrix td.cell span { display: inline-block; width: 22px; height: 22px; border-radius: 6px; background: var(--panel); vertical-align: middle; }
table.matrix td.cell.a-praticar span { background: var(--mark); }
table.matrix td.cell.quase span { background: var(--nearly); }
table.matrix td.cell.dominado span { background: var(--good); }
table.matrix tr.flash td { animation: flash 1.2s; }
@keyframes flash { from { background: var(--accent-soft); } }
.code { font: 900 34px/1 var(--round); letter-spacing: 0.12em; background: var(--panel); padding: 10px 16px; border-radius: 12px; display: inline-block; }
.live { font-size: 13px; }
.live::before { content: "●"; margin-right: 6px; color: var(--muted); }
.live.on::before { color: var(--good); }

/* ── A sound's own page, and the list of them ────────────────────────────── */
.crumbs { color: var(--muted); margin-bottom: 14px; }
.syllables { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.syllables li { margin: 0; font: 800 clamp(28px, 6vw, 40px)/1 var(--round); background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; min-width: 2.4em; text-align: center; }
.words { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.words li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.words strong { display: block; font: 800 24px/1.2 var(--round); }
.words span { color: var(--muted); letter-spacing: 0.03em; }
.neighbours { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 26px 0 0; font-weight: 650; }
.neighbours .next { margin-left: auto; }
.sound-links li { margin-bottom: 6px; }
.sound-index { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sound-index li { margin: 0; }
.sound-index a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.sound-index a:hover { border-color: var(--accent); }
.sound-index strong { display: block; font: 800 26px/1.1 var(--round); color: var(--accent); }
.sound-index strong small { font: 600 13px var(--sans); margin-left: 6px; color: var(--muted); }
.sound-index span { display: block; }

/* ── Printable cards ─────────────────────────────────────────────────────── */
.card-sheet { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; padding: 12mm; margin: 16px 0; }
.card-sheet header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 0.5mm solid #ccc; padding-bottom: 3mm; margin-bottom: 5mm; }
.card-sheet header strong { font: 900 9mm var(--round); }
.card-sheet header small { font: 3.4mm var(--sans); color: #555; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; }
.card-grid .c { border: 0.5mm dashed #999; border-radius: 3mm; min-height: 30mm; display: grid; place-items: center; text-align: center; padding: 3mm; }
.card-grid .c.syl { font: 900 17mm/1 "Arial Rounded MT Bold", var(--round), Arial, sans-serif; }
.card-grid .c.wrd { font: 800 10mm/1.1 "Arial Rounded MT Bold", var(--round), Arial, sans-serif; }
.card-grid .c.wrd small { display: block; font: 500 4mm var(--sans); color: #666; margin-top: 2mm; letter-spacing: 0.05em; }
.card-sheet .tip { margin-top: 5mm; font: 3.8mm/1.45 var(--sans); color: #333; border-top: 0.5mm solid #ccc; padding-top: 3mm; }
/* The parents' note (/turma/convite): four identical notes on an A4, to cut out. */
.invite-sheet { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; padding: 8mm; margin: 16px 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 132mm; gap: 4mm; max-width: 210mm; }
.invite-note { border: 0.5mm dashed #999; border-radius: 3mm; padding: 5mm; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.invite-note p { margin: 0; }
.invite-brand { font: 3.4mm var(--sans); color: #555; }
.invite-brand strong { color: #2154c4; font-family: var(--round); }
.invite-class { font: 800 6mm/1.15 var(--round); margin-top: 2mm !important; }
.invite-code-label { font: 3mm var(--sans); color: #555; margin-top: 2mm !important; text-transform: uppercase; letter-spacing: 0.08em; }
.invite-code { font: 900 11mm/1 "Arial Rounded MT Bold", var(--round), Arial, sans-serif; letter-spacing: 0.08em; }
.invite-qr { width: 30mm; height: 30mm; margin-top: 3mm; }
.invite-qr svg { width: 100%; height: 100%; display: block; }
.invite-link { font: 3mm var(--sans); color: #333; margin-top: 1.5mm !important; word-break: break-all; }
.invite-steps { font: 3.2mm/1.35 var(--sans); text-align: left; margin: 3mm 0 0; padding-left: 5mm; }
.invite-steps li { margin: 0.8mm 0; }
.invite-pais { font: 3mm var(--sans); color: #555; margin-top: auto !important; }
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body { background: #fff; color: #111; }
  .masthead, .siteftr, .no-print { display: none !important; }
  main { padding: 0; max-width: none; }
  .card-sheet { border: 0; border-radius: 0; margin: 0; padding: 0; break-after: page; page-break-after: always; }
  .card-sheet.skip { display: none !important; }
  .invite-sheet { border: 0; border-radius: 0; margin: 0; padding: 0; max-width: none; break-inside: avoid; }
}

/* Reading bingo: two boards per A4, then the caller list. */
.bingo-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.bingo-picker label { display: flex; align-items: center; gap: 8px; }
.bingo-picker input { width: auto; }
.bingo-page { background: white; color: #111; padding: 6mm; margin: 16px 0; border: 1px solid #aaa; }
.bingo-board { break-inside: avoid; margin-bottom: 8mm; }
.bingo-board h2 { font-size: 20px; margin: 0 0 2mm; }
.bingo-meta { font: 12px/1.4 Arial, sans-serif; }
.bingo-board table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.bingo-board td { border: 1px solid #111; height: 22mm; text-align: center; padding: 2mm; font: bold clamp(16px, 4vw, 27px)/1.2 Arial, sans-serif; overflow-wrap: anywhere; }
.bingo-caller ul { columns: 3; list-style: none; padding: 0; font: 16px/1.7 Arial, sans-serif; }
.bingo-caller li { break-inside: avoid; }
@media print {
  .bingo-page { padding: 0; border: 0; margin: 0; break-after: page; }
  .bingo-page:last-child { break-after: auto; }
  .bingo-board { height: 128mm; margin: 0; }
  .bingo-board td { font-size: 24px; }
  .bingo-caller { font: 14px/1.4 Arial, sans-serif; }
}

/* Five-day reading plan: one A4 with the days, the address and a QR. */
.plan-sheet { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; padding: 8mm; margin: 16px 0; }
.plan-sheet a { color: inherit; }
.plan-sheet h2 { margin: 0 0 3mm; font-size: 26px; }
.plan-examples { display: flex; flex-wrap: wrap; gap: 2mm 8mm; font: 17px/1.4 Arial, sans-serif; border-bottom: 0.5mm solid #ccc; padding-bottom: 3mm; }
.plan-days { list-style: none; padding: 0; margin: 0; }
.plan-days li { display: flex; gap: 4mm; padding: 3mm 0; border-bottom: 1px solid #ddd; break-inside: avoid; }
.plan-days h3 { margin: 0; font-size: 19px; }
.plan-days p { margin: 1mm 0 0; }
.plan-box { flex: none; width: 7mm; height: 7mm; border: 0.5mm solid #111; border-radius: 1mm; margin-top: 1mm; }
.plan-note { font-size: 15px; color: #333; }
.plan-sheet footer { display: flex; gap: 5mm; align-items: center; font-size: 14px; }
.plan-qr { flex: none; width: 26mm; height: 26mm; }
.plan-qr svg { width: 100%; height: 100%; display: block; }
.plan-sheet footer strong { word-break: break-all; }
@media print {
  .plan-sheet { border: 0; border-radius: 0; margin: 0; padding: 0; font: 11.5pt/1.35 Arial, sans-serif; break-inside: avoid; }
  .plan-sheet h2 { font-size: 20pt; }
  .plan-days h3 { font-size: 13pt; }
  .plan-examples { font-size: 12pt; }
}

/* Ditados: the child's A4 (numbered lines, no answers), then the adult's A4. */
.ditado-sheet { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; padding: 10mm; margin: 16px 0; font: 16px/1.4 Arial, sans-serif; }
.ditado-sheet header { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; border-bottom: 0.5mm solid #ccc; padding-bottom: 3mm; margin-bottom: 4mm; }
.ditado-sheet header strong { font: 900 8mm/1.1 var(--round); }
.ditado-sheet header small { font: 3.4mm var(--sans); color: #555; }
.ditado-sheet h3 { margin: 5mm 0 1mm; font-size: 17px; }
.ditado-name { display: flex; gap: 3mm; align-items: flex-end; margin: 0; }
.ditado-name span { flex: 1; border-bottom: 0.4mm solid #111; height: 7mm; }
.ditado-name span:last-child { flex: 0 0 35mm; }
.ditado-lines { margin: 0; padding-left: 9mm; font-size: 15px; }
.ditado-lines li { padding-top: 6mm; }
.ditado-lines li::marker { font-weight: 700; }
.ditado-lines .line { display: block; height: 7mm; border-bottom: 0.4mm solid #111; }
.ditado-lines.short { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14mm; }
.ditado-lines.long .line + .line { margin-top: 6mm; }
.ditado-say { margin: 0; padding-left: 9mm; }
.ditado-say li { padding: 1.2mm 0; }
.ditado-say strong { font-size: 19px; }
.ditado-how, .ditado-tip { margin: 0 0 2mm; color: #333; }
.ditado-tip { margin-top: 5mm; border-top: 0.5mm solid #ccc; padding-top: 3mm; }
.ditado-address { font-size: 14px; word-break: break-all; }
@media print {
  .ditado-sheet { border: 0; border-radius: 0; margin: 0; padding: 0; font-size: 12pt; break-inside: avoid; }
  .ditado-child { break-after: page; page-break-after: always; }
  .ditado-lines li { padding-top: 7mm; }
  .ditado-lines .line { height: 8mm; }
}

/* Trocas: the pairs and «ouve e rodeia» on one A4, the adult's list on the next. */
.troca-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5mm 10mm; list-style: none; margin: 0; padding: 0; font-size: 20px; }
.troca-pairs li { display: flex; justify-content: space-between; gap: 4mm; border-bottom: 0.3mm solid #ccc; padding: 1mm 0; }
.troca-listen { margin: 0; padding-left: 9mm; }
.troca-listen li { padding: 2.2mm 0; }
.troca-listen li::marker { font-weight: 700; }
.troca-listen .options { display: flex; gap: 22mm; font: 700 24px/1.2 Arial, sans-serif; }
.troca-note { font-size: 15px; }
.troca-sources { font-size: 15px; }
@media print {
  .troca-pairs { font-size: 13pt; }
  .troca-listen li { padding: 3mm 0; }
  .troca-listen .options { font-size: 19pt; }
}

/* Consciência fonológica: big picture buttons on screen; pictures to paint, circle or link on the child's A4. */
.cf-picture { font-size: clamp(64px, 18vw, 110px); line-height: 1.1; margin: 4px 0 8px; }
.cf-tile { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 3.2em; }
.cf-tile-pic { font-size: clamp(34px, 9vw, 56px); line-height: 1; }
.cf-tile span:last-child { font-size: clamp(18px, 4.5vw, 26px); }
.cf-lines, .cf-match { margin: 0; padding-left: 9mm; }
.cf-lines li, .cf-match li { padding: 2mm 0; border-bottom: 0.3mm solid #ddd; break-inside: avoid; }
.cf-lines li::marker, .cf-match li::marker { font-weight: 700; }
.cf-lines li { display: flex; align-items: center; gap: 8mm; }
.cf-pic { display: inline-flex; flex-direction: column; align-items: center; min-width: 22mm; }
.cf-pic > span { font-size: 34px; line-height: 1.1; }
.cf-pic small { font: 13px Arial, sans-serif; color: #333; }
.cf-model { border: 0.5mm solid #111; border-radius: 2mm; padding: 1mm 2mm; margin-right: 4mm; }
.cf-balls { display: inline-flex; gap: 4mm; margin-left: auto; }
.cf-balls span { width: 10mm; height: 10mm; border: 0.5mm solid #111; border-radius: 50%; }
.cf-contar-silabas .cf-lines { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12mm; }
.cf-match li { display: flex; align-items: center; gap: 3mm; }
.cf-dot { width: 3mm; height: 3mm; border-radius: 50%; background: #111; }
.cf-gap { flex: 1; }
@media print {
  .cf-pic > span { font-size: 26pt; }
  .cf-lines li, .cf-match li { padding: 2.5mm 0; }
  .cf-match li { padding: 4mm 0; }
}

/* Sopas de letras: the child's A4 (grid and words to find), then the adult's with the answers. */
.sopa-how { margin: 3mm 0; }
.sopa-letter { font: 900 26px/1 var(--round); }
.sopa-box { display: inline-block; width: 14mm; height: 9mm; border: 0.5mm solid #111; border-radius: 1mm; vertical-align: middle; }
.sopa-grid { border-collapse: collapse; margin: 4mm auto; table-layout: fixed; }
.sopa-grid td { width: 9.5mm; height: 9.5mm; border: 0.3mm solid #999; text-align: center; vertical-align: middle; padding: 0; font: 700 22px/1 Arial, sans-serif; }
.sopa-grid.hunt td { width: 12mm; height: 12mm; font-size: 28px; }
.sopa-grid.answers td { color: #777; }
.sopa-grid.answers td.on { background: #ffe58a; color: #111; }
.sopa-find { display: grid; grid-template-columns: repeat(auto-fill, minmax(38mm, 1fr)); gap: 2mm 6mm; list-style: none; margin: 4mm 0; padding: 0; font: 700 22px/1.3 Arial, sans-serif; }
.sopa-find li { display: flex; align-items: center; gap: 3mm; }
.sopa-tick { flex: none; width: 6mm; height: 6mm; border: 0.5mm solid #111; border-radius: 1mm; }
@media print {
  .sopa-child { break-after: page; page-break-after: always; }
  .sopa-grid td { width: 14mm; height: 14mm; font-size: 26pt; }
  .sopa-grid.hunt td { width: 17mm; height: 17mm; font-size: 30pt; }
  .sopa-grid.answers td { width: 11mm; height: 11mm; font-size: 18pt; }
  .sopa-grid.answers td.on { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
