@font-face { font-family: 'MtpAccCf'; src: url('/vendor/vexflow/fonts/bravura-acc.woff2') format('woff2'); font-style: normal; font-weight: 400 700; unicode-range: U+266D-266F; size-adjust: 175%; font-display: swap; }
/* Ukulele chord finder (/ukulele-chord-chart) and piano chord finder (/piano-chord-chart); script: /js/chord-finder.js.
   Everything is scoped to .cf. Screen: dark skin (--mtp-* tokens). Print (html.mtp-print-tool): white paper, black ink. */
.cf, .cf .mtp-kb .kt, .cf-svg text { font-family: 'MtpAccCf', 'Source Sans 3', Arial, sans-serif; }
.cf { margin: 8px 0 26px; padding: clamp(14px, 2.4vw, 24px); }
.cf-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.cf-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cf-field select { min-width: 150px; }
.cf-field-wide select { min-width: 220px; }
.cf-toggle { align-self: flex-end; }
.cf-loading { color: var(--mtp-muted); }
.cf-label { color: var(--mtp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.cf-muted { color: var(--mtp-muted); font-size: 14px; }

.cf-main { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mtp-line); }
.cf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.cf-name { margin: 0; font-family: inherit; font-size: clamp(34px, 6vw, 54px); line-height: 1.05; color: var(--mtp-brass-bright); font-weight: 700; }
.cf-full { margin: 0; color: var(--mtp-muted); font-size: 16px; }
.cf-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 18px 30px; margin-top: 12px; align-items: start; }
.cf-piano .cf-grid { grid-template-columns: minmax(0, 1fr); }
.cf-info > * { margin-top: 0; margin-bottom: 12px; }
.cf-notes-text { font-size: 20px; letter-spacing: .02em; }
.cf-tones { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.cf-tones span { color: var(--mtp-muted); }
.cf-table { border-collapse: collapse; font-size: 14px; width: 100%; max-width: 520px; }
.cf-table th, .cf-table td { text-align: left; padding: 4px 10px 4px 0; border-bottom: 1px solid var(--mtp-line); font-weight: 400; }
.cf-table thead th { color: var(--mtp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.cf-table tbody th { color: var(--mtp-brass-bright); font-weight: 700; }
.cf-table tr.is-on th, .cf-table tr.is-on td { background: rgba(224, 189, 114, .2); }
.cf-cap { text-align: left; color: var(--mtp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 4px; }
.cf-tabline { margin: 0 0 4px; }
.cf-tabcode { font-size: 22px; letter-spacing: .12em; color: var(--mtp-brass-bright); background: none; padding: 0; }
.cf-ascii { margin: 0; font: 14px/1.25 ui-monospace, Menlo, Consolas, monospace; background: var(--mtp-night); border: 1px solid var(--mtp-line); padding: 8px 12px; width: max-content; max-width: 100%; overflow-x: auto; }
.cf-variants { font-size: 14px; color: var(--mtp-muted); }
.cf-sym { color: var(--mtp-paper); font-weight: 600; }
.cf-sym-main { color: var(--mtp-brass-bright); }
.cf-btns, .cf-actions, .cf-keyrow, .cf-shapes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cf-shapes button { min-width: 40px; padding: 6px 10px; }
.cf-status { color: var(--mtp-muted); font-size: 14px; }

/* chord diagram */
.cf-diagram { max-width: 280px; }
.cf-svg { display: block; width: 100%; height: auto; color: var(--mtp-paper); }
.cf-svg .cf-ln { stroke: currentColor; stroke-width: 1; opacity: .75; }
.cf-svg .cf-nut { fill: currentColor; }
.cf-svg .cf-dot { fill: var(--mtp-brass-bright); }
.cf-svg .cf-open { fill: none; stroke: currentColor; stroke-width: 1.6; }
.cf-svg .cf-x { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cf-svg .cf-fn { fill: #1a1209; font: 700 11px 'MtpAccCf', \"Source Sans 3\", Arial, sans-serif; }
.cf-svg .cf-sn { fill: var(--mtp-muted); font: 700 12px 'MtpAccCf', \"Source Sans 3\", Arial, sans-serif; }
.cf-svg .cf-fr { fill: currentColor; font: 700 12px 'MtpAccCf', \"Source Sans 3\", Arial, sans-serif; }
.cf-large .cf-svg .cf-sn { font-size: 13px; }

/* keyboard (the shared createKeyboard() svg) */
.cf-kb { max-width: 760px; }
.cf-kb-big { max-width: 900px; }
.cf .mtp-kb { display: block; width: 100%; height: auto; }
.cf .mtp-kb .wk rect { fill: #f4e9cf; stroke: #3a2c18; stroke-width: 1; }
.cf .mtp-kb .bk rect { fill: #1c1428; stroke: #000; stroke-width: 1; }
.cf .mtp-kb .kt { font: 700 8px 'MtpAccCf', "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; fill: #6b5a3a; pointer-events: none; }
.cf .mtp-kb .bk .kt { fill: #e9dcc0; font-size: 7px; }
.cf .mtp-kb .wk.on rect { fill: #e0bd72; }
.cf .mtp-kb .bk.on rect { fill: #c49a49; }
.cf .mtp-kb .wk.root rect { fill: #e7835a; }
.cf .mtp-kb .bk.root rect { fill: #a84f2a; }
.cf .mtp-kb .on .kt, .cf .mtp-kb .root .kt, .cf .mtp-kb .lab .kt { fill: #1a1209; font-size: 9px; }
.cf .mtp-kb .bk.on .kt, .cf .mtp-kb .bk.root .kt { fill: #1a1209; font-size: 7.5px; }
.cf .mtp-kb .k.is-on rect { fill: #fff3c4; }

/* sheet */
.cf-sheet { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--mtp-line); }
.cf-h2 { margin: 0; font-size: 22px; }
.cf-sub { margin: 4px 0 12px; color: var(--mtp-muted); font-size: 14px; }
.cf-keyrow { margin-bottom: 14px; align-items: flex-end; }
.cf-printtitle { margin: 0 0 8px; font-size: 18px; }
.cf ol.cf-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cf-piano .cf-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cf-cards.cf-large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.cf-piano .cf-cards.cf-large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.cf li.cf-card { list-style: none; margin: 0; padding: 10px; border: 1px solid var(--mtp-line); background: var(--mtp-night); break-inside: avoid; page-break-inside: avoid; min-width: 0; }
.cf-card-name { margin: 0 0 4px; font-family: inherit; font-size: 20px; color: var(--mtp-brass-bright); }
.cf-card-notes { margin: 4px 0 0; font-size: 13px; }
.cf-card-notes code { font-size: 15px; letter-spacing: .1em; background: none; padding: 0; }
.cf-card-n2 { color: var(--mtp-muted); }
.cf-card .cf-diagram { max-width: 150px; margin: 0 auto; }
.cf-cards.cf-large .cf-diagram { max-width: 240px; }
.cf-card-tools { display: flex; gap: 3px; margin-top: 8px; }
.cf-card-tools button { flex: 1 1 0; min-width: 0 !important; min-height: 36px !important; padding: 2px 8px !important; }
.cf-empty { color: var(--mtp-muted); margin: 6px 0 12px; }
.cf-actions { margin-top: 14px; }

@media (max-width: 720px) {
  .cf-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-diagram { max-width: 220px; }
  .cf-field, .cf-field select { width: 100%; }
  .cf-field { flex: 1 1 140px; }
  .cf-tuning { flex: 1 1 100%; }
  .cf-toggle { flex: 1 1 100%; align-self: stretch; }
  .cf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-piano .cf-cards, .cf-cards.cf-large, .cf-piano .cf-cards.cf-large { grid-template-columns: minmax(0, 1fr); }
}

/* print: white paper, black ink. html.mtp-print-tool is set by printTool(); data-print says what to print. */
@media print {
  html.mtp-print-tool .cf { border: 0; padding: 0; margin: 0; background: #fff; }
  html.mtp-print-tool .cf[data-print="chord"] .cf-sheet { display: none !important; }
  html.mtp-print-tool .cf[data-print="sheet"] .cf-main { display: none !important; }
  html.mtp-print-tool .cf:not([data-print]) .cf-sheet:not(:has(.cf-card)) { display: none !important; }
  html.mtp-print-tool .cf .cf-main, html.mtp-print-tool .cf .cf-sheet { border: 0; padding: 0; margin: 8px 0 0; }
  html.mtp-print-tool .cf .cf-name, html.mtp-print-tool .cf .cf-card-name, html.mtp-print-tool .cf .cf-tabcode, html.mtp-print-tool .cf code { color: #111 !important; }
  html.mtp-print-tool .cf .cf-card { background: #fff; border: 1px solid #111; }
  html.mtp-print-tool .cf .cf-cards { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  html.mtp-print-tool .cf-piano .cf-cards { grid-template-columns: repeat(3, 1fr); }
  html.mtp-print-tool .cf .cf-cards.cf-large { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  html.mtp-print-tool .cf .cf-cards.cf-large .cf-diagram { max-width: 58mm; }
  html.mtp-print-tool .cf .cf-card-name { font-size: 17px; }
  html.mtp-print-tool .cf .cf-cards.cf-large .cf-card-name { font-size: 24px; }
  html.mtp-print-tool .cf-piano .cf-cards.cf-large { grid-template-columns: repeat(2, 1fr); }
  html.mtp-print-tool .cf .cf-cards.cf-large .cf-card-notes { font-size: 16px; }
  html.mtp-print-tool .cf .cf-grid { grid-template-columns: 220px 1fr; }
  html.mtp-print-tool .cf-piano .cf-grid { grid-template-columns: 1fr; }
  html.mtp-print-tool .cf .cf-ascii { background: #fff; border-color: #111; }
  html.mtp-print-tool .cf .cf-table th, html.mtp-print-tool .cf .cf-table td { border-bottom-color: #888; }
  html.mtp-print-tool .cf .cf-table tr.is-on th, html.mtp-print-tool .cf .cf-table tr.is-on td { background: transparent !important; }
  html.mtp-print-tool .cf-svg { color: #111; }
  html.mtp-print-tool .cf-svg .cf-ln { stroke: #111; opacity: 1; }
  html.mtp-print-tool .cf-svg .cf-nut, html.mtp-print-tool .cf-svg .cf-dot { fill: #111 !important; }
  html.mtp-print-tool .cf-svg .cf-open, html.mtp-print-tool .cf-svg .cf-x { stroke: #111; }
  html.mtp-print-tool .cf-svg .cf-fn { fill: #fff !important; }
  html.mtp-print-tool .cf-svg .cf-sn, html.mtp-print-tool .cf-svg .cf-fr { fill: #111 !important; }
  html.mtp-print-tool .cf .mtp-kb .wk rect { fill: #fff; stroke: #111; }
  html.mtp-print-tool .cf .mtp-kb .bk rect { fill: #1a1a1a; stroke: #000; }
  html.mtp-print-tool .cf .mtp-kb .wk.on rect, html.mtp-print-tool .cf .mtp-kb .wk.root rect { fill: #aaa; }
  html.mtp-print-tool .cf .mtp-kb .bk.on rect, html.mtp-print-tool .cf .mtp-kb .bk.root rect { fill: #9a9a9a; }
  html.mtp-print-tool .cf .mtp-kb .root rect { stroke-width: 2.4; }
  html.mtp-print-tool .cf .mtp-kb .kt, html.mtp-print-tool .cf .mtp-kb .on .kt, html.mtp-print-tool .cf .mtp-kb .root .kt, html.mtp-print-tool .cf .mtp-kb .lab .kt { fill: #000 !important; }
  html.mtp-print-tool .cf .mtp-kb .bk.on .kt, html.mtp-print-tool .cf .mtp-kb .bk.root .kt, html.mtp-print-tool .cf .mtp-kb .bk.lab .kt { fill: #000 !important; }
}

.cf-tuning { margin: 0; padding-bottom: 8px; }
