/* Classfern Music keyword pages, group N (piano tools). Base copied from groups C and H so the department looks like one set. */
:root{--kw-panel:#e8f5f2;--kw-line:#b9ddd5;--kw-ink:inherit;--kw-tip:#e3f4ef;--kw-tip-line:#9fd3c6}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--kw-panel:#123a34;--kw-line:#24584f;--kw-tip:#10352f;--kw-tip-line:#2c6b60}}
:root[data-theme="dark"]{--kw-panel:#123a34;--kw-line:#24584f;--kw-tip:#10352f;--kw-tip-line:#2c6b60}
.kw-upd{font-size:.88rem;opacity:.85;margin:.2rem 0 1rem}
.kw-answer{font-size:1.08rem;max-width:72ch}
.kw-facts{background:var(--kw-panel);border:1px solid var(--kw-line);border-radius:12px;padding:.8rem 1.1rem;max-width:72ch}
.kw-facts h2{margin-top:.2rem}
.kw-facts ul{margin:.3rem 0 .2rem;padding-left:1.2rem}
.kw-song{border-top:1px solid var(--kw-line);padding:.6rem 0 .9rem;clear:none}
.kw-song h3{margin:.4rem 0 .2rem}
.kw-meta{font-size:.9rem;opacity:.9;margin:.1rem 0 .5rem}
.kw-tab{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.02rem;line-height:1.9;margin:.2rem 0;overflow-wrap:anywhere}
.kw-tab .kw-bar{white-space:nowrap}
.kw-tab .kw-sep{opacity:.55;padding:0 .3em}
.kw-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.5rem 0}
.kw-sheet{font-size:1.02rem;line-height:1.5;max-width:72ch}
.kw-sheet p{margin:0 0 .35rem}
.kw-sheet .kw-c{display:inline-block;position:relative;font-weight:700;color:#0a6b5c;font-size:.86rem;vertical-align:.75em;margin-right:.15em;padding:0 .15em;border-radius:4px;background:var(--kw-panel)}
:root[data-theme="dark"] .kw-sheet .kw-c{color:#8fe0cf}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .kw-sheet .kw-c{color:#8fe0cf}}
.kw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.kw-tool{border:1px solid var(--kw-line);border-radius:14px;padding:.8rem 1rem;margin:1rem 0;background:var(--kw-panel)}
.kw-tool h2{margin-top:.2rem}
.kw-kids{display:inline-flex;gap:.45rem;align-items:center;min-height:44px;font-weight:600}
.kw-kids input{width:22px;height:22px}
.kw-msg{min-height:1.2em}
.kw-mount:empty{display:none}
table.kw-t{border-collapse:collapse;margin:.4rem 0 1rem;max-width:100%}
table.kw-t th,table.kw-t td{border:1px solid var(--kw-line);padding:.35rem .55rem;text-align:left;vertical-align:top}
table.kw-t caption{text-align:left;font-weight:600;padding:.2rem 0}
.kw-wide{overflow-x:auto;max-width:100%}
.kw-steps li{margin:.3rem 0}
.kw-how{font-size:.9rem;font-weight:600;display:inline-block;border:1px solid var(--kw-line);border-radius:999px;padding:.05rem .6rem;margin:.2rem 0}
/* kids' mode: bigger notes and colour note names (the letter or tab is always shown too) */
html.kw-kids-on .kw-tab,html.kw-kids-on .kw-notes{font-size:1.45rem;line-height:2}
html.kw-kids-on .kw-sheet{font-size:1.3rem}
html.kw-kids-on .kw-tool .btn,html.kw-kids-on .kw-song .btn{min-height:56px;font-size:1.1rem}
html.kw-kids-on .n-C{color:#c62828}html.kw-kids-on .n-D{color:#e65100}html.kw-kids-on .n-E{color:#9a7b00}html.kw-kids-on .n-F{color:#2e7d32}
html.kw-kids-on .n-G{color:#00796b}html.kw-kids-on .n-A{color:#1565c0}html.kw-kids-on .n-B{color:#6a1b9a}
html.kw-kids-on .kw-tab span[class^="n-"],html.kw-kids-on .kw-notes span[class^="n-"]{font-weight:800}
html[data-theme="dark"].kw-kids-on .n-C{color:#ff8a80}html[data-theme="dark"].kw-kids-on .n-D{color:#ffb74d}html[data-theme="dark"].kw-kids-on .n-E{color:#ffe066}html[data-theme="dark"].kw-kids-on .n-F{color:#81c784}html[data-theme="dark"].kw-kids-on .n-G{color:#4dd0c4}html[data-theme="dark"].kw-kids-on .n-A{color:#90caf9}html[data-theme="dark"].kw-kids-on .n-B{color:#ce93d8}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]).kw-kids-on .n-C{color:#ff8a80}html:not([data-theme="light"]).kw-kids-on .n-D{color:#ffb74d}html:not([data-theme="light"]).kw-kids-on .n-E{color:#ffe066}html:not([data-theme="light"]).kw-kids-on .n-F{color:#81c784}html:not([data-theme="light"]).kw-kids-on .n-G{color:#4dd0c4}html:not([data-theme="light"]).kw-kids-on .n-A{color:#90caf9}html:not([data-theme="light"]).kw-kids-on .n-B{color:#ce93d8}}
/* staff illustrations (Mr Chopin and Miss Clara Schumann) */
.staff-art{margin:.4rem 0 1rem;max-width:260px}
.staff-art img{display:block;width:100%;height:auto;background:none;border:0}
.staff-art--right{float:right;margin-left:1.2rem}
.staff-art--left{float:left;margin-right:1.2rem}
.staff-tip{display:flex;gap:1rem;align-items:center;background:var(--kw-tip);border:1px solid var(--kw-tip-line);border-radius:16px;padding:.9rem 1.1rem .9rem 0;margin:1.6rem 0 1.2rem 0;max-width:72ch;clear:both}
.staff-tip picture{flex:0 0 auto;margin:-1.6rem 0 -.6rem -.6rem}
.staff-tip img{display:block;width:150px;max-width:150px;height:auto;border:0;background:none}
.staff-tip__who{font-weight:700;margin:0 0 .2rem}
.staff-tip div p{margin:.15rem 0}
.kw-clear{clear:both}
.kw-tool select,.kw-tool input[type=text]{min-height:44px;font:inherit;padding:.3rem .5rem;border-radius:8px;border:1px solid var(--kw-line);background:var(--bg,transparent);color:inherit;max-width:100%}
.kw-tool input[type=text]{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.kw-tool label{font-weight:600}
.kw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.45rem;margin:.5rem 0}
.kw-grid .btn{min-height:44px;width:100%;text-align:left}
.kw-grid .btn small{display:block;font-weight:400;opacity:.85}
.kw-range{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.kw-range input{width:12rem;max-width:100%}
.kw-check{list-style:none;padding-left:0}
.kw-check li{margin:.35rem 0}
.kw-check label{display:inline-flex;gap:.5rem;align-items:flex-start;min-height:32px;font-weight:400}
.kw-check input{width:20px;height:20px;margin-top:.15rem;flex:0 0 auto}
html.kw-kids-on .kw-grid .btn{min-height:56px;font-size:1.1rem}
@media (max-width:600px){
.staff-art,.staff-art--right,.staff-art--left{float:none;margin:.6rem auto 1rem;max-width:180px}
.staff-tip{flex-direction:column;align-items:flex-start;padding:.8rem 1rem}
.staff-tip picture{margin:-1.8rem 0 0 0}
.staff-tip img{width:120px}
.kw-tab{font-size:.98rem}
}
/* ---- group N: piano keyboards ---- */
.np-scroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;padding:2px 0 6px}
.np-kb{position:relative;height:150px;min-width:calc(var(--np-w) * 30px);margin:.4rem 0;user-select:none;-webkit-user-select:none;touch-action:none}
.np-kb.np-tall{height:190px;min-width:calc(var(--np-w) * 38px)}
.np-kb.np-88{height:120px;min-width:calc(var(--np-w) * 24px)}
.np-k{position:absolute;top:0;padding:0;margin:0;border:1px solid #555;border-radius:0 0 6px 6px;font:inherit;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;line-height:1.05;overflow:hidden}
.np-w{height:100%;background:#fdfdfb;color:#222;z-index:1}
.np-b{height:62%;background:#1d1f22;color:#f4f4f4;z-index:2;border-color:#000;font-size:.62rem}
.np-lab{font-size:.74rem;font-weight:650;padding-bottom:6px;white-space:nowrap;pointer-events:none}
.np-b .np-lab{font-size:.6rem;padding-bottom:4px;white-space:normal;text-align:center}
.np-f{display:block;font-size:.95rem;font-weight:800;margin-bottom:4px;pointer-events:none;width:1.5em;height:1.5em;line-height:1.5em;border-radius:50%;background:#0a6b5c;color:#fff;text-align:center}
.np-k.np-on.np-w{background:#bfe7dc}.np-k.np-on.np-b{background:#0a6b5c}
.np-k.np-on::before{content:"";position:absolute;top:6px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:#0a6b5c;border:2px solid #fff}
.np-k.np-down,.np-k.np-hit{background:#f2c200!important;color:#111!important}
.np-k.np-good{background:#7fd19b!important;color:#111!important}
.np-k.np-next{box-shadow:inset 0 -10px 0 #e65100;background:#ffe0b2!important;color:#111!important}
.np-k.np-next::after{content:"▲";position:absolute;bottom:22px;font-size:.8rem;color:#e65100}
.np-k.np-typed.np-w{border-bottom:4px solid #7aa}
.np-k.np-mid.np-w .np-lab{text-decoration:underline}
.np-k:focus-visible{outline:3px solid #1565c0;outline-offset:-3px;z-index:3}
.kw-tool .kw-row label{display:inline-flex;gap:.4rem;align-items:center;flex-wrap:wrap}
.kw-tool select{min-width:7rem}
.np-info,.np-find,.np-ear-msg,.np-echo-msg{font-weight:650;min-height:1.4em;margin:.4rem 0}
.np-vp-last{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.05rem;min-height:1.4em}
.np-prog-out{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:.4rem 0}
.np-prog-out li{border:1px solid var(--kw-line);border-radius:10px;padding:.25rem .6rem;background:var(--bg,transparent)}
.np-prog-out li.np-now{outline:3px solid #0a6b5c;font-weight:700}
.np-prog-out li.np-now::before{content:"▶ "}
.np-t-sm td,.np-t-sm th{font-size:.92rem;padding:.25rem .4rem!important}
.np-keytab td{white-space:nowrap}
/* song maker grid */
.np-grid{overflow-x:auto;max-width:100%;margin:.5rem 0}
.np-grid-in{display:grid;gap:3px;min-width:calc(var(--np-steps) * 30px + 92px)}
.np-row{display:grid;grid-template-columns:88px repeat(var(--np-steps),minmax(26px,1fr));gap:3px}
.np-rh{font-weight:700;font-size:.85rem;display:flex;align-items:center}
.np-cell{min-height:30px;border:1px solid var(--kw-line);border-radius:6px;background:var(--bg,#fff);padding:0;cursor:pointer}
.np-cell.np-bar{border-left:3px solid #7aa}
.np-cell[aria-pressed=true]{background:#0a6b5c;border-color:#0a6b5c}
.np-cell[aria-pressed=true]::after{content:"●";color:#fff;font-size:.8rem}
.np-dcell[aria-pressed=true]{background:#6a1b9a;border-color:#6a1b9a}
.np-dcell[aria-pressed=true]::after{content:"✕"}
.np-cell.np-play{outline:2px solid #f2c200;outline-offset:-1px}
.np-drow{margin-top:4px}
.np-song-text{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}
.kw-tool input[data-np-link]{margin-top:.4rem}
/* staff paper */
.np-sheet-host{max-width:430px;border:1px solid var(--kw-line);border-radius:8px;overflow:hidden;background:#fff;margin:.6rem 0}
.np-sheet{display:block;width:100%;height:auto}
.np-sheet .np-clef{font-family:"Bravura","Noto Music","Segoe UI Symbol","Apple Symbols",serif;stroke:none}
.np-sheet .np-tab{font-family:Georgia,serif;font-weight:700;stroke:none}
.np-wr-host{overflow-x:auto;max-width:100%;color:inherit;margin:.4rem 0}
.np-wr-host svg{max-width:100%;height:auto}
.np-letters .btn{min-width:48px}
.kw-tool button[aria-pressed=true]:not(.np-k):not(.np-cell){outline:3px solid #0a6b5c;outline-offset:1px}
/* static facts keyboard (piano notes page) */
.np-svgkb{width:100%;min-width:900px;height:auto;display:block}
.np-svgkb .w{fill:#fdfdfb;stroke:#555;stroke-width:.6}.np-svgkb .b{fill:#1d1f22}.np-svgkb .c4{fill:#bfe7dc}
.np-svgkb text{font:600 7px system-ui,sans-serif;fill:#222}.np-svgkb .o{font-size:5.5px;fill:#0a6b5c}
html.kw-kids-on .np-kb{height:190px}
html.kw-kids-on .np-lab{font-size:.95rem}
html.kw-kids-on .np-cell{min-height:40px}
html.kw-kids-on .np-w.n-C{background:#ffd6d3}html.kw-kids-on .np-w.n-D{background:#ffe2c2}html.kw-kids-on .np-w.n-E{background:#fff3b0}html.kw-kids-on .np-w.n-F{background:#d5f0d6}html.kw-kids-on .np-w.n-G{background:#c9efe9}html.kw-kids-on .np-w.n-A{background:#d3e7fb}html.kw-kids-on .np-w.n-B{background:#ead6f3}
html.kw-kids-on .np-k .np-lab{color:#111}html.kw-kids-on .np-b .np-lab{color:#fff}
@media (max-width:600px){.np-kb{height:130px}.np-kb.np-tall{height:160px}}
@media print{.np-kb,.np-grid,.kw-tool .kw-row,.np-scroll{display:none!important}
html.np-printing-sheet body *{visibility:hidden}
html.np-printing-sheet .np-sheet-host,html.np-printing-sheet .np-sheet-host *{visibility:visible}
html.np-printing-sheet .np-sheet-host{position:fixed;left:0;top:0;width:100%;max-width:none;border:0;margin:0;border-radius:0}
html.np-printing-sheet .np-sheet{width:100vw;height:100vh}}
.kw-tool,main h2{clear:both}
