/* Classfern Music – teacher and exam keyword pages (S group). */
:root{--kws-tip-bg:#e6f4f1;--kws-tip-line:#bfe3db;--kws-go:#0e7c6b;--kws-stop:#b3261e}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--kws-tip-bg:#163631;--kws-tip-line:#24524a;--kws-go:#45c9b1;--kws-stop:#ff8a6b}}
:root[data-theme="dark"]{--kws-tip-bg:#163631;--kws-tip-line:#24524a;--kws-go:#45c9b1;--kws-stop:#ff8a6b}
.kws-answer{font-size:1.06rem;max-width:74ch}
.kws-meta{font-size:.9rem;color:var(--muted);margin:4px 0 12px}
.kws-kids{display:inline-flex;gap:8px;align-items:center;min-height:44px;font-weight:650;cursor:pointer}
.kws-kids input{width:22px;height:22px;accent-color:var(--brand)}
.kws-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}
.kws-facts h2{margin:.2em 0 .4em;font-size:1.15rem}
.kws-facts ul{margin:0;padding-left:1.2em}
.kws-toc{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:10px 0 18px}
.kws-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}
.kws-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;margin:10px 0 16px}
.kws-table{border-collapse:collapse;width:100%;font-size:.95rem;min-width:520px}
.kws-table th,.kws-table td{border:1px solid var(--line);padding:7px 9px;text-align:left;vertical-align:top}
.kws-table thead th{background:var(--brand-soft)}
.kws-table tbody th{font-weight:650}
.kws-plan{border:1px solid var(--line);border-radius:16px;padding:6px 18px 14px;margin:22px 0;background:var(--surface)}
.kws-plan>h3{margin-top:.6em}
.kws-plan dl{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:8px 0}
.kws-plan dt{font-weight:700}
.kws-plan dd{margin:0}
.kws-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)}
.kws-curric{font-size:.9rem;color:var(--muted)}
.kws-curric li+li{margin-top:2px}
.kws-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0}
.kws-row label{display:inline-flex;gap:6px;align-items:center;min-height:44px}
.kws-row select,.kws-row input[type=number],.kws-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)}
.kws-row input[type=number]{width:5.5em}
.kws-row select{max-width:100%}
.kws-row label{flex-wrap:wrap;max-width:100%}
.kws-big{min-height:52px;font-size:1.05rem}
.kws-panel{border:2px solid var(--brand);border-radius:16px;padding:10px 16px;margin:12px 0;background:var(--surface)}
.kws-panel h3,.kws-panel h4{margin:.3em 0}
.kws-small{font-size:.88rem;color:var(--muted)}
.kws-msg{font-size:.92rem;margin:4px 0}
.kws-t-name{font-size:1.4rem;font-weight:750;margin:.2em 0}
.kws-t-clock{font-size:clamp(2.6rem,9vw,4.4rem);font-weight:800;font-variant-numeric:tabular-nums;margin:.1em 0;line-height:1}
.kws-t-part{margin:0;color:var(--muted)}
.kws-big-word{font-size:clamp(2rem,8vw,3.6rem);font-weight:850;margin:.2em 0;min-height:1.2em}
.kws-go{color:var(--kws-go)}.kws-go::before{content:"▶ "}
.kws-stop{color:var(--kws-stop)}.kws-stop::before{content:"■ "}
.kws-hear{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.kws-hear .btn{background:var(--surface);color:var(--ink);border-color:var(--line-2)}
.kws-clue{font-size:clamp(1.3rem,4.5vw,2rem);font-weight:750;margin:.3em 0}
.kws-form{border:1px solid var(--line);border-radius:14px;padding:6px 14px;background:var(--surface)}
.kws-form fieldset{border:0;padding:0;margin:0}
html.pc-kids .kws-row .btn,html.pc-kids .kws-big,html.pc-kids .kws-hear .btn{min-height:58px;font-size:1.15rem}
html.pc-kids .kws-t-clock{font-size:clamp(3.2rem,12vw,5.4rem)}
html.pc-kids .kws-answer,html.pc-kids .kws-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(--kws-tip-bg);border:1px solid var(--kws-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)}
.kws-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.kws-printing body *{visibility:hidden}
html.kws-printing .kws-print-me,html.kws-printing .kws-print-me *{visibility:visible}
html.kws-printing .kws-print-me{position:absolute;left:0;top:0;width:100%}
html.kws-printing .no-print,html.kws-printing .kws-print-me .no-print *{display:none}
.kws-sheet{border:0;padding:0}
.kws-break{break-before:page;page-break-before:always}
.kws-card+.kws-card{break-before:auto}
.staff-art,.staff-tip picture{display:none}
.kws-wrap{overflow:visible}
}
/* S group additions */
.kws-qa{font-weight:600;max-width:74ch}
.kws-disclaimer{font-size:.88rem;color:var(--muted);border-top:1px solid var(--line);padding-top:10px;margin-top:22px;max-width:80ch}
.kws-notes{display:flex;flex-wrap:wrap;gap:3px;margin:4px 0 0;padding:0;list-style:none;font-variant-numeric:tabular-nums}
.kws-notes li{min-width:1.9em;text-align:center;border:1px solid var(--line);border-radius:6px;padding:0 3px;font-size:.85rem;background:var(--surface)}
.kws-notes li.on{background:var(--brand);color:#fff;border-color:var(--brand);font-weight:700;outline:2px solid var(--ink);outline-offset:1px}
.kws-notes li.on::before{content:"▶";font-size:.6rem;margin-right:2px}
.kws-tunes .btn[aria-pressed=true]{outline:3px solid var(--brand);outline-offset:2px}
.kws-form{border:1px solid var(--line);border-radius:14px;padding:6px 16px 12px;background:var(--surface);margin:12px 0}
.kws-form fieldset{border:0;padding:0;margin:8px 0}
.kws-form legend{font-weight:700;padding:0}
.kws-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 16px;margin:8px 0}
.kws-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.kws-field label{font-weight:600;font-size:.94rem}
.kws-field input,.kws-field select,.kws-field textarea,.kws-part input{font:inherit;min-height:44px;padding:6px 10px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface);color:var(--ink);max-width:100%;box-sizing:border-box;width:100%}
.kws-field textarea{min-height:76px;resize:vertical}
.kws-parts{display:flex;flex-direction:column;gap:8px}
.kws-part{display:grid;grid-template-columns:minmax(0,1.2fr) 5.5em minmax(0,2fr);gap:6px;align-items:end}
.kws-part label{font-size:.82rem;font-weight:600;display:flex;flex-direction:column;gap:2px}
@media (max-width:600px){.kws-part{grid-template-columns:1fr 5.5em}.kws-part label:last-child{grid-column:1/-1}}
.kws-check{list-style:none;padding:0;margin:8px 0;columns:2 280px}
.kws-check li{display:flex;gap:10px;align-items:flex-start;padding:6px 0;border-bottom:1px solid var(--line);break-inside:avoid}
.kws-check input{width:22px;height:22px;flex:none;margin-top:2px;accent-color:var(--brand)}
.kws-check label{cursor:pointer}
.kws-sw{border:1px solid var(--line);border-radius:14px;padding:4px 16px 10px;margin:14px 0;background:var(--surface)}
.kws-sw h3{margin:.5em 0 .3em}
.kws-sw dl{display:grid;grid-template-columns:max-content 1fr;gap:3px 14px;margin:6px 0}
.kws-sw dt{font-weight:700}.kws-sw dd{margin:0}
.kws-blank td{height:2.4em}
html.pc-kids .kws-tunes .btn{min-height:58px;font-size:1.15rem}
html.pc-kids .kws-notes li{font-size:1.1rem}
html.pc-kids .kws-check label{font-size:1.1rem}
.kws-part input{font-size:1rem;font-weight:400}
.kws-plan,.kws-sw,.kws-form,.tool{display:flow-root}
