/* /charts/piano-keyboard-labeled (layouts/_partials/charts/pages/piano-keyboard-labeled*.html, static/js/piano-keyboard-labeled.js).
   Three white "paper" sheets in black ink. The keyboard rows are SVG; all sizes inside the SVG are user units of the viewBox
   (a white key is 24 units wide, 36 in the large-print row). Labels are switched with data-labels / data-nums on the article (default: letter names and key numbers). */
@font-face { font-family: 'PkAcc'; src: url('/vendor/vexflow/fonts/bravura.woff2') format('woff2'); font-style: normal; font-weight: 400 700; unicode-range: U+266D-266F; font-display: swap; }
.pk-options { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; margin: 0 0 14px; }
.pk-options[hidden] { display: none; }
.pk-options fieldset { margin: 0; padding: 6px 12px 8px; border: 1px solid var(--mtp-line, #555); border-radius: 2px; }
.pk-options legend { padding: 0 6px; font-size: 13px; color: var(--mtp-muted, #aaa); }
.pk-options label { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; min-height: 32px; }
.pk-readout { flex: 1 1 100%; margin: 0; min-height: 1.5em; color: var(--mtp-muted, #aaa); font-size: 14px; }
.pk-readout strong { color: var(--mtp-paper, #eee); }

.pk-sheet h3 { margin: 12px 0 4px; font-size: 18px; }
.pk-legend { margin: 0 0 8px; font-size: 12.5px; color: #333; }
.pk-dotkey { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #111; vertical-align: -1px; margin-right: 3px; }
.pk-rowlabel { margin: 8px 0 3px; font-size: 12px; font-weight: 700; color: #333; }
.pk-row { margin: 0 0 6px; }
.pk-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pk-svg { display: block; height: auto; min-width: 0; }
/* Narrow screens: keep the keys big enough to read and let the row scroll sideways inside its box. */
@media screen and (max-width: 760px) { .pk-svg { width: 760px !important; max-width: none; } .pk-lg { width: 640px !important; } .pk-scroll { padding-bottom: 4px; } }

.pk-k rect { stroke: #111; stroke-width: 1; }
.pk-w rect { fill: #fff; }
.pk-b rect { fill: #111; }
.pk-w.pk-mc rect { fill: #e2e2e2; }
.pk-dot { fill: #111; }
.pk-k text { font-family: PkAcc, "Source Sans 3", -apple-system, "Segoe UI", sans-serif; pointer-events: none; }
.pk-w text { fill: #111; }
.pk-b text { fill: #fff; }
.pk-k text { display: none; }
.pk-w .l-name, .pk-w .l-sol { font-size: 8.6px; font-weight: 700; }
.pk-w .l-num { font-size: 7.2px; font-weight: 400; fill: #333; }
.pk-b .l-name, .pk-b .l-sol { font-size: 6.6px; font-weight: 600; }
.pk-b .l-num { font-size: 6.4px; fill: #ddd; }
.pk-lg .pk-w .l-name, .pk-lg .pk-w .l-sol { font-size: 17px; }
.pk-lg .pk-w .l-num { font-size: 10px; }
.pk-lg .pk-b .l-name, .pk-lg .pk-b .l-sol { font-size: 10.5px; }
.pk-lg .pk-b .l-num { font-size: 10px; }
.mtp-chart-page:not([data-labels="solfege"]):not([data-labels="none"]) .l-name { display: inline; }
.mtp-chart-page[data-labels="solfege"] .l-sol { display: inline; }
.mtp-chart-page:not([data-nums="off"]) .l-num { display: inline; }
.pk-k tspan.acc { font-family: PkAcc, serif; font-size: 1.5em; font-weight: 400; }
.pk-blank .pk-k text { display: none !important; }

/* sound: only on screen */
@media screen {
  .pk-svg:not(.pk-blank) .pk-k { cursor: pointer; }
  .pk-svg:not(.pk-blank) .pk-w:hover rect { fill: #f1e3b8; }
  .pk-svg:not(.pk-blank) .pk-b:hover rect { fill: #4a4a4a; }
  .pk-k.pk-on rect { fill: #e6b84a !important; }
  .pk-k:focus { outline: none; }
  .pk-k:focus-visible rect { stroke: #b4630a; stroke-width: 3; }
}
@media print {
  .pk-legend { font-size: 8.5pt; }
  .pk-rowlabel { font-size: 8.5pt; }
  .pk-sheet h3 { font-size: 12pt; margin: 6pt 0 2pt; }
  .pk-scroll { overflow: visible; }
  .pk-k rect { stroke-width: 0.8; }
  .pk-sheet-blank .pk-row { margin-bottom: 3pt; }
}
