/* Classfern Music – teacher keyword pages (lesson plans, games, worksheets, theory hub, apps). */
:root{--kwe-tip-bg:#e6f4f1;--kwe-tip-line:#bfe3db;--kwe-go:#0e7c6b;--kwe-stop:#b3261e}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--kwe-tip-bg:#163631;--kwe-tip-line:#24524a;--kwe-go:#45c9b1;--kwe-stop:#ff8a6b}}
:root[data-theme="dark"]{--kwe-tip-bg:#163631;--kwe-tip-line:#24524a;--kwe-go:#45c9b1;--kwe-stop:#ff8a6b}
.kwe-answer{font-size:1.06rem;max-width:74ch}
.kwe-meta{font-size:.9rem;color:var(--muted);margin:4px 0 12px}
.kwe-kids{display:inline-flex;gap:8px;align-items:center;min-height:44px;font-weight:650;cursor:pointer}
.kwe-kids input{width:22px;height:22px;accent-color:var(--brand)}
.kwe-facts{border:1px solid var(--line);border-left:5px solid var(--brand);border-radius:12px;padding:10px 16px;background:var(--surface);max-width:74ch;margin:14px 0}
.kwe-facts h2{margin:.2em 0 .4em;font-size:1.15rem}
.kwe-facts ul{margin:0;padding-left:1.2em}
.kwe-toc{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:10px 0 18px}
.kwe-toc a{display:inline-flex;align-items:center;min-height:44px;padding:4px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);text-decoration:none}
.kwe-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;margin:10px 0 16px}
.kwe-table{border-collapse:collapse;width:100%;font-size:.95rem;min-width:520px}
.kwe-table th,.kwe-table td{border:1px solid var(--line);padding:7px 9px;text-align:left;vertical-align:top}
.kwe-table thead th{background:var(--brand-soft)}
.kwe-table tbody th{font-weight:650}
.kwe-plan{border:1px solid var(--line);border-radius:16px;padding:6px 18px 14px;margin:22px 0;background:var(--surface)}
.kwe-plan>h3{margin-top:.6em}
.kwe-plan dl{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:8px 0}
.kwe-plan dt{font-weight:700}
.kwe-plan dd{margin:0}
.kwe-assess{display:inline-block;font-size:.85rem;font-weight:650;border:1px solid var(--line-2);border-radius:999px;padding:1px 9px;margin:2px 0;background:var(--surface-2)}
.kwe-curric{font-size:.9rem;color:var(--muted)}
.kwe-curric li+li{margin-top:2px}
.kwe-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0}
.kwe-row label{display:inline-flex;gap:6px;align-items:center;min-height:44px}
.kwe-row select,.kwe-row input[type=number],.kwe-row input[type=text]{min-height:44px;font:inherit;padding:4px 8px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface);color:var(--ink)}
.kwe-row input[type=number]{width:5.5em}
.kwe-row select{max-width:100%}
.kwe-row label{flex-wrap:wrap;max-width:100%}
.kwe-big{min-height:52px;font-size:1.05rem}
.kwe-panel{border:2px solid var(--brand);border-radius:16px;padding:10px 16px;margin:12px 0;background:var(--surface)}
.kwe-panel h3,.kwe-panel h4{margin:.3em 0}
.kwe-small{font-size:.88rem;color:var(--muted)}
.kwe-msg{font-size:.92rem;margin:4px 0}
.kwe-t-name{font-size:1.4rem;font-weight:750;margin:.2em 0}
.kwe-t-clock{font-size:clamp(2.6rem,9vw,4.4rem);font-weight:800;font-variant-numeric:tabular-nums;margin:.1em 0;line-height:1}
.kwe-t-part{margin:0;color:var(--muted)}
.kwe-big-word{font-size:clamp(2rem,8vw,3.6rem);font-weight:850;margin:.2em 0;min-height:1.2em}
.kwe-go{color:var(--kwe-go)}.kwe-go::before{content:"▶ "}
.kwe-stop{color:var(--kwe-stop)}.kwe-stop::before{content:"■ "}
.kwe-hear{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.kwe-hear .btn{background:var(--surface);color:var(--ink);border-color:var(--line-2)}
.kwe-clue{font-size:clamp(1.3rem,4.5vw,2rem);font-weight:750;margin:.3em 0}
.kwe-form{border:1px solid var(--line);border-radius:14px;padding:6px 14px;background:var(--surface)}
.kwe-form fieldset{border:0;padding:0;margin:0}
/* worksheets */
.kwe-sheet{background:#fff;color:#111;border:1px solid var(--line);border-radius:10px;padding:14px;margin:12px 0;overflow-x:auto}
.kwe-sheet h3{color:#111}
.kwe-sheet .kwe-small{color:#555}
.kwe-ws-name{margin:0 0 6px}
.kwe-ws-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px 14px;padding-left:1.4em;margin:8px 0}
.kwe-ws-grid li{break-inside:avoid}
.kwe-ws-line{display:block;font-size:1.05rem;letter-spacing:.05em;margin-top:2px}
.kwe-staff{display:block;max-width:100%;height:auto}
.kwe-vals{display:inline-flex;align-items:center;gap:4px}
.kwe-key-list{columns:4 120px;padding-left:1.6em}
.kwe-call-list{padding-left:1.8em}
.kwe-call-list li{margin:4px 0;break-inside:avoid}
.kwe-card{break-inside:avoid;page-break-inside:avoid;margin-bottom:18px}
.kwe-bingo{border-collapse:collapse;width:100%;max-width:560px;table-layout:fixed}
.kwe-bingo td{border:2px solid #222;height:74px;text-align:center;vertical-align:middle;font-weight:700;font-size:1rem;padding:4px;word-wrap:break-word}
.kwe-b3 td{height:96px;font-size:1.2rem}
.kwe-sheet-kids .kwe-ws-line,.kwe-sheet-kids .kwe-bingo td{font-size:1.3rem}
html.pc-kids .kwe-row .btn,html.pc-kids .kwe-big,html.pc-kids .kwe-hear .btn{min-height:58px;font-size:1.15rem}
html.pc-kids .kwe-t-clock{font-size:clamp(3.2rem,12vw,5.4rem)}
html.pc-kids .kwe-answer,html.pc-kids .kwe-facts{font-size:1.12rem}
/* staff illustrations (to be merged into the shared music CSS by the lead) */
.staff-art{margin:4px 0 12px;max-width:260px}
.staff-art img{display:block;width:100%;height:auto;max-width:260px;border:0;background:none}
.staff-art--right{float:right;margin-left:18px;clear:right}
.staff-art--left{float:left;margin-right:18px;clear:left}
.staff-tip{display:flex;align-items:flex-end;gap:14px;max-width:74ch;margin:26px 0 22px;padding:12px 16px 12px 0;background:var(--kwe-tip-bg);border:1px solid var(--kwe-tip-line);border-radius:18px;clear:both}
.staff-tip picture{flex:none;width:130px;margin:-34px 0 -12px -6px}
.staff-tip img{display:block;width:100%;height:auto;max-width:160px;border:0;background:none}
.staff-tip p{margin:.3em 0}
.staff-tip__who{font-weight:750;color:var(--brand)}
.kwe-clear{clear:both}
@media (max-width:600px){
.staff-art,.staff-art--right,.staff-art--left{float:none;margin:8px auto 12px;max-width:180px}
.staff-art img{max-width:180px}
.staff-tip picture{width:96px;margin:-26px 0 -12px -4px}
}
/* print one part only */
@media print{
html.kwe-printing body *{visibility:hidden}
html.kwe-printing .kwe-print-me,html.kwe-printing .kwe-print-me *{visibility:visible}
html.kwe-printing .kwe-print-me{position:absolute;left:0;top:0;width:100%}
html.kwe-printing .no-print,html.kwe-printing .kwe-print-me .no-print *{display:none}
.kwe-sheet{border:0;padding:0}
.kwe-break{break-before:page;page-break-before:always}
.kwe-card+.kwe-card{break-before:auto}
.staff-art,.staff-tip picture{display:none}
.kwe-wrap{overflow:visible}
}
/* free music apps filter and the on-demand falling-notes piano */
.kwe-filter{border:1px solid var(--kwe-tip-line);border-radius:12px;padding:10px 14px;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center}
.kwe-filter legend{font-weight:700;padding:0 4px}
.kwe-filter label{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.kwe-filter input{width:20px;height:20px}
.kwe-filter [role=status]{flex-basis:100%;margin:0}
.kwe-piano{margin:12px 0;clear:both}
.kwe-table td .btn{min-height:40px;padding:4px 12px;white-space:nowrap}
.kwe-table[data-narrow]{min-width:0}
