/* teachers.css — /teachers/: free games for teachers, plus a one-page
   handout that prints on its own (everything else is hidden when printing). */
.tc-card { gap: 12px; }
.tc-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 1.02rem; }
.tc-ticks li { position: relative; padding-left: 26px; }
.tc-ticks li::before { content: "✓"; position: absolute; left: 0; color: #136B39; font-weight: 800; }
.tc-ticks b { color: var(--ink); }

/* ── the games ────────────────────────────────────────────────────────── */
.tc-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .tc-games { grid-template-columns: minmax(0, 1fr); } }
.tc-game { display: grid; grid-template-rows: auto 1fr; background: var(--cyc); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-1); }
.tc-game > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--cyc-2); }
.tc-game-body { display: grid; gap: 10px; align-content: start; padding: 18px 20px 20px; }
.tc-game h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); letter-spacing: -.02em; }
.tc-game p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.5; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-tags span { padding: 4px 10px; border-radius: 999px; background: var(--sound-soft); color: var(--sound-2); font-family: var(--f-display); font-size: .82rem; font-variation-settings: 'wght' 680; }
.tc-tags span:last-child { background: var(--pen-soft); color: #6B4E00; }
.tc-game .tc-meta { color: var(--ink); font-size: .98rem; padding: 10px 12px; border-radius: 12px; background: var(--cyc-2); }
.tc-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.tc-acts .btn { padding: 14px 20px; font-size: 1rem; }
.tc-acts .btn.done { box-shadow: inset 0 0 0 2px #1F9D55; color: #136B39; }
@media (max-width: 480px) { .tc-acts .btn { flex: 1 1 100%; } }
.tc-linkbox { flex: 1 1 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--sound); font: inherit; font-size: .95rem; }
.tc-game-test { background: linear-gradient(150deg, #FFFFFF, var(--sound-soft)); }
.tc-test-art { display: flex; align-items: flex-end; justify-content: center; gap: 10px; aspect-ratio: 16 / 9; padding: 24px; background: linear-gradient(160deg, #E7EDFF, #D6E0FF); }
.tc-test-art b { width: 15%; display: grid; place-items: start center; padding-top: 10px; border-radius: 14px 14px 6px 6px; color: #fff; font-family: var(--f-display); font-size: clamp(1rem, .8rem + 1vw, 1.6rem); font-variation-settings: 'wght' 800; }
.tc-test-art b:nth-child(1) { height: 30%; background: #1F6B41; }
.tc-test-art b:nth-child(2) { height: 45%; background: var(--sound); }
.tc-test-art b:nth-child(3) { height: 60%; background: var(--lab); }
.tc-test-art b:nth-child(4) { height: 75%; background: #C62A21; }
.tc-test-art b:nth-child(5) { height: 90%; background: var(--ink); }

/* ── trophies ─────────────────────────────────────────────────────────── */
.tc-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .tc-two { grid-template-columns: minmax(0, 1fr); } }
.tc-two .sec-head p + p { margin-top: 4px; }
.tc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tc-facts li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--cyc); border: 1px solid var(--line); }
.tc-facts li > b { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--pen-soft); font-size: 1.4rem; }
.tc-facts span { color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.tc-facts strong { color: var(--ink); }
.tc-note { margin-top: 18px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: .98rem; max-width: 80ch; }

/* ── lesson ideas ─────────────────────────────────────────────────────── */
.tc-ideas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; counter-reset: idea; }
.tc-ideas li { counter-increment: idea; display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 18px; background: var(--cyc); border: 1px solid var(--line); border-top: 6px solid var(--pen); }
.tc-ideas li::before { content: counter(idea); font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--sound); font-variation-settings: 'wght' 800; }
.tc-ideas h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.tc-idea-meta { font-family: var(--f-display); font-size: .85rem; letter-spacing: .02em; color: var(--sound-2); font-variation-settings: 'wght' 650; }
.tc-ideas p:not(.tc-idea-meta) { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }

/* ── the handout (an A4 page on screen, and the only thing that prints) ── */
.tc-sheet { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-2); padding: clamp(20px, 4vw, 44px); display: grid; gap: 20px; }
.tc-sheet-top { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.tc-sheet-k { font-family: var(--f-display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sound-2); font-variation-settings: 'wght' 700; }
.tc-sheet h2 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem); letter-spacing: -.03em; }
.tc-sheet-top p:last-child { color: var(--ink-2); }
.tc-sheet-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: s; }
.tc-sheet-list li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tc-sheet-list li::before { content: counter(s); grid-row: 1 / 4; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--f-display); font-variation-settings: 'wght' 800; }
.tc-sheet-list b { font-family: var(--f-display); font-size: 1.2rem; font-variation-settings: 'wght' 750; }
.tc-sheet-list span { color: var(--ink-2); font-size: .98rem; }
.tc-sheet code, .tc-sheet-foot code { font-family: var(--f-mono); font-size: clamp(.82rem, .75rem + .4vw, 1.05rem); color: var(--sound-2); overflow-wrap: anywhere; }
.tc-sheet-foot { display: grid; gap: 6px; font-size: 1rem; color: var(--ink-2); }

@media print {
  @page { size: A4; margin: 14mm; }
  body.page-teach { background: #fff; }
  .page-teach .skip, .page-teach .menu, .page-teach header, .page-teach nav, .page-teach footer, .page-teach .foot,
  .page-teach main > section:not(#handout), .page-teach .tc-noprint { display: none !important; }
  .page-teach #handout { padding: 0; background: #fff; border: 0; }
  .page-teach .tc-sheet { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .page-teach .tc-sheet code { font-size: 12pt; color: #000; }
  .page-teach .tc-sheet-list li { break-inside: avoid; }
}
