/* Brass fingering finder (trumpet / trombone / tuba and euphonium chart pages). Scoped to .bf. Dark skin on screen, white paper in print. */
@font-face { font-family: 'MtpBrassBravura'; src: url('/vendor/vexflow/fonts/bravura.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: block; }

.bf { --bf-ink: var(--mtp-paper); --bf-dim: var(--mtp-muted); --bf-on: var(--mtp-brass-bright); --bf-line: var(--mtp-line); --bf-bg: var(--mtp-night); --bf-on-ink: #1a1206;
  margin-top: 6px; }
.bf p { margin: 0; }
.bf-small { color: var(--bf-dim); font-size: 14px; max-width: 70ch; }
.bf-dim { color: var(--bf-dim); }
.bf .acc { display: inline-block; width: .62em; text-align: center; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif; font-weight: 400; line-height: 1; }
.bf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* settings + tabs */
.bf-settings { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; margin: 0 0 14px; }
.bf-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bf-settings .bf-field { flex: 0 1 220px; }
.bf-field select { max-width: 100%; }
.bf-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bf-ink); min-height: 40px; }
.bf-check input { width: 18px; height: 18px; accent-color: var(--mtp-brass); }
.bf-fixed { color: var(--bf-dim); font-size: 14px; align-self: center; }
.bf-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--bf-line); padding-bottom: 12px; }
.mtp-tool-panel.bf .bf-tabs button { min-width: 44px; }

/* find pane */
.bf-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 16px; }
.bf-notefield { flex: 0 1 280px; }
.bf-notefield select { width: 100%; }
.bf-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 36px; align-items: start; }
.bf-diagram { background: var(--bf-bg); border: 1px solid var(--bf-line); border-radius: 2px; padding: 12px; display: flex; align-items: center; justify-content: center; min-height: 180px; min-width: 0; }
.bf-valves { display: block; width: 100%; max-width: 360px; height: auto; }
.bf-valves .bf-case { fill: var(--mtp-raised-2); stroke: var(--mtp-muted); stroke-width: 2; }
.bf-valves .bf-stem { fill: var(--mtp-muted); }
.bf-vc { fill: var(--bf-bg); stroke: var(--mtp-muted); stroke-width: 2.5; }
.bf-vc.on { fill: var(--bf-on); stroke: var(--bf-on); }
.bf-vt { fill: var(--bf-ink); font-family: "Source Sans 3", system-ui, sans-serif; font-weight: 700; font-size: 13px; }
.bf-vt.on { fill: var(--bf-on-ink); }
.bf-vlab { fill: var(--bf-dim); font-family: "Source Sans 3", system-ui, sans-serif; font-size: 13px; letter-spacing: .06em; }
.bf-slide { display: block; width: 100%; height: auto; }
.bf-slide .bf-tube { fill: var(--mtp-raised-2); stroke: var(--mtp-muted); stroke-width: 2; }
.bf-slide .bf-inner { stroke: var(--bf-ink); stroke-width: 6; stroke-linecap: round; }
.bf-slide .bf-grip { fill: var(--bf-on); }
.bf-slide .bf-ruler { stroke: var(--mtp-muted); stroke-width: 2; }
.bf-slide .bf-tick { stroke: var(--mtp-muted); stroke-width: 2; }
.bf-slide .bf-tick.on { stroke: var(--bf-on); stroke-width: 4; }
.bf-slide .bf-guide { stroke: var(--bf-on); stroke-width: 1.5; stroke-dasharray: 3 3; }
.bf-slide .bf-ptxt { fill: var(--bf-dim); font-family: "Source Sans 3", system-ui, sans-serif; font-size: 16px; }
.bf-slide .bf-ptxt.on { fill: var(--bf-on); font-size: 22px; font-weight: 700; }
.bf-slide .bf-cap { fill: var(--bf-dim); font-family: "Source Sans 3", system-ui, sans-serif; font-size: 12px; letter-spacing: .06em; }
.bf-slide .bf-mark { fill: var(--bf-on); }
.bf-slide .bf-mark-t { fill: var(--bf-on-ink); font-weight: 700; font-size: 11px; font-family: "Source Sans 3", system-ui, sans-serif; }
.bf-na { text-align: center; color: var(--bf-dim); font-size: 20px; }
.bf-na small { display: block; margin-top: 6px; font-size: 14px; }

.bf-info { min-width: 0; }
.bf-label { margin: 12px 0 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bf-dim); }
.bf-info > .bf-label:first-child { margin-top: 0; }
.bf-name { font-family: "Cormorant Garamond", "Source Sans 3", Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: clamp(40px, 7vw, 60px); line-height: 1.02; font-weight: 600; color: var(--bf-on); margin: 0 0 6px; overflow-wrap: anywhere; }
.bf-sounds { font-size: 16px; font-variant-numeric: tabular-nums; max-width: 52ch; }
.bf-fing { font-size: clamp(24px, 3.4vw, 30px); font-weight: 600; margin: 0 0 6px; }
.bf-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.bf-opts .bf-label { margin: 0 4px 0 0; }
.bf-detail { color: var(--bf-dim); font-size: 14px; max-width: 56ch; margin: 0 0 4px; }
.bf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.bf-h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 600; }

/* scrolling pickers */
.bf-scroll { overflow-x: auto; overscroll-behavior-x: contain; max-width: 100%; border: 1px solid var(--bf-line); background: var(--bf-bg); border-radius: 2px; padding: 4px 0; }
.bf-staff, .bf-kbd { display: block; max-width: none; }
.bf-sl { stroke: var(--mtp-muted); stroke-width: 1.2; }
.bf-led { stroke: var(--mtp-muted); stroke-width: 1.4; }
.bf-clef { font-family: 'MtpBrassBravura', serif; font-size: 48px; fill: var(--bf-ink); }
.bf-hit { fill: transparent; cursor: pointer; }
.bf-head { fill: var(--bf-ink); }
.bf-acc { fill: var(--bf-ink); font-family: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", sans-serif; font-size: 17px; }
.bf-nl { fill: var(--bf-dim); font-size: 10px; font-family: "Source Sans 3", system-ui, sans-serif; }
.bf-n { cursor: pointer; outline: none; }
.bf-n:hover .bf-head { fill: var(--mtp-brass); }
.bf-n.sel .bf-hit { fill: rgba(224, 189, 114, .16); }
.bf-n.sel .bf-head { fill: var(--bf-on); }
.bf-n.sel .bf-nl { fill: var(--bf-on); font-weight: 700; }
.bf-n:focus-visible .bf-hit { stroke: var(--bf-on); stroke-width: 2; }
.bf-n.na .bf-head, .bf-n.na .bf-acc { opacity: .35; }
.bf-k { cursor: pointer; outline: none; }
.bf-k.wk rect { fill: #f4e9cf; stroke: #3b2e18; stroke-width: 1; }
.bf-k.bk rect { fill: #14101c; stroke: #3b2e18; }
.bf-k.sel rect { fill: var(--bf-on); }
.bf-k.na rect { opacity: .4; }
.bf-k:focus-visible rect { stroke: #fff; stroke-width: 3; }
.bf-kl { font-size: 10px; fill: #3b2e18; font-family: "Source Sans 3", system-ui, sans-serif; pointer-events: none; }

/* quiz */
.bf-quiz { margin: 10px 0 0; }
.bf-qhead { color: var(--bf-dim); font-size: 14px; margin: 0 0 8px; }
.bf-qstaff { display: inline-block; background: var(--bf-bg); border: 1px solid var(--bf-line); padding: 4px 10px; border-radius: 2px; max-width: 100%; overflow-x: auto; }
.bf-qname { margin: 8px 0 4px; font-size: 20px; min-height: 30px; }
.bf-qask { margin: 4px 0 10px; font-weight: 600; }
.bf-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; max-width: 640px; }
.bf-choices.slide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 84px), 1fr)); }
.mtp-tool-panel.bf .bf-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 8px; font-size: 18px; font-weight: 600; }
.mtp-tool-panel.bf .bf-choice.right { border-color: #6fbf73; color: #bfe8c1; }
.mtp-tool-panel.bf .bf-choice.wrong { border-color: #d46a6a; color: #f0b3b3; }
.bf-choice .bf-valves.mini { width: 100%; max-width: 110px; }
.bf-fb { min-height: 24px; margin: 10px 0 0; }
.bf-score { font-size: 22px; margin: 4px 0 8px; }
.bf-miss { margin: 0 0 12px; padding-left: 1.2em; color: var(--bf-dim); }

/* sheet pane */
.bf-sheetctl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin: 0 0 12px; }
.bf-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.bf-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mtp-tool-panel.bf .bf-chip { min-height: 32px; padding: 2px 10px; }
.bf-preview { max-width: 100%; overflow-x: auto; margin: 10px 0 0; }
.bf-sheet { border-collapse: collapse; font-size: 15px; min-width: 320px; }
.bf-sheet th, .bf-sheet td { border-bottom: 1px solid var(--bf-line); padding: 4px 12px 4px 4px; text-align: left; vertical-align: middle; white-space: nowrap; font-weight: 400; }
.bf-sheet thead th { color: var(--bf-dim); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.bf-sheet tbody th { font-weight: 700; }
.bf-sheet .f b { margin-left: 6px; }
.bf-sheet .alt { color: var(--bf-dim); }
.bf-sheet .na { color: var(--bf-dim); white-space: normal; }
.bf-valves.mini { display: inline-block; vertical-align: middle; height: 22px; width: auto; }
.bf-valves.mini .bf-vc { stroke-width: 1.6; }
.bf-credit { margin-top: 18px; }
.bf-two { display: flex; gap: 24px; align-items: flex-start; }

@media (max-width: 760px) {
  .bf-stage { grid-template-columns: minmax(0, 1fr); }
  .bf-notefield { flex: 1 1 100%; }
  .bf-settings .bf-field { flex: 1 1 150px; }
  .bf-two { flex-direction: column; }
}

/* ---- print: only the sheet (white paper, black ink); everything else is .mtp-noprint ---- */
.bf-printsheet { display: none; }
@media print {
  html.mtp-print-tool .mtp-tool-panel.bf { border: 0 !important; padding: 0 !important; margin: 0 !important; }
  html.mtp-print-tool .bf-printsheet { display: block !important; }
  html.mtp-print-tool .bf-pt { font-size: 16pt; margin: 0 0 2pt; }
  html.mtp-print-tool .bf-ps { font-size: 10pt; margin: 0 0 8pt; }
  html.mtp-print-tool .bf-pf { font-size: 8pt; margin-top: 8pt; }
  html.mtp-print-tool .bf-sheet { font-size: 10pt; min-width: 0; width: 100%; }
  html.mtp-print-tool .bf-sheet th, html.mtp-print-tool .bf-sheet td { border-bottom: 0.5pt solid #999 !important; padding: 2pt 8pt 2pt 2pt; white-space: nowrap; }
  html.mtp-print-tool .bf-two { display: flex !important; flex-direction: row !important; gap: 16pt; align-items: flex-start; }
  html.mtp-print-tool .bf-two .bf-sheet { width: auto; flex: 1 1 0; }
  html.mtp-print-tool .bf-valves.mini { height: 14pt; }
  html.mtp-print-tool .bf-vc { fill: #fff; stroke: #111 !important; }
  html.mtp-print-tool .bf-vc.on { fill: #111 !important; }
  html.mtp-print-tool .bf-vt { fill: #111 !important; }
  html.mtp-print-tool .bf-vt.on { fill: #fff !important; }
}
