/* /charts/major-scales-chart and /charts/minor-scales-chart.
   Loaded by layouts/_partials/charts/pages/{major,minor}-scales-chart.html, after extras.css and chart-print.css.
   Screen: the chart sheets are white pages in black ink (like the worksheets); the other blocks are on the dark page.
   Print: only the .mtp-sheet blocks are printed (chart-print.css); the sizes below are for A4 / Letter with 14 mm margins,
   smallest type 7.5 pt. */

/* The double sharp and double flat (U+1D12A, U+1D12B) are missing from most system fonts and show as a box or a speck.
   VexFlow's own Bravura file has them, so lend it to the site's two text fonts for those two characters only
   (unicode-range: the file is fetched only on a page that shows one, and it is the file VexFlow loads anyway). */
@font-face { font-family: 'Source Sans 3'; src: url('/vendor/vexflow/fonts/bravura.woff2') format('woff2'); font-style: normal; font-weight: 400 700; unicode-range: U+1D12A-1D12B; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/vendor/vexflow/fonts/bravura.woff2') format('woff2'); font-style: normal; font-weight: 400 700; unicode-range: U+1D12A-1D12B; font-display: swap; }
.mtp-dx { font-size: 1.4em; line-height: 0; position: relative; top: .06em; }

/* ---- blocks on the dark page ------------------------------------------------ */
.mtp-sc-quick, .mtp-sc-block { margin: 0 0 34px; }
.mtp-sc-quick { padding: 20px 20px 16px; background: var(--mtp-raised); border: 1px solid var(--mtp-line); border-left: 3px solid var(--mtp-brass); border-radius: 2px; }
.mtp-sc-quick > h2, .mtp-sc-block > h2 { margin-top: 0; }
.mtp-sc-answer { max-width: 72ch; font-size: 17px; line-height: 1.6; margin: 0 0 14px; }
.mtp-sc-answer strong { color: var(--mtp-brass-bright); }
.mtp-sc-figs { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 14px; padding: 0; list-style: none; }
.mtp-sc-figs li { color: var(--mtp-muted); font-size: 13px; line-height: 1.3; }
.mtp-sc-figs strong { display: block; color: var(--mtp-brass-bright); font-family: "Cormorant Garamond", serif; font-size: 34px; line-height: 1.05; }
.mtp-sc-jump { margin: 0 0 14px; font-size: 14px; color: var(--mtp-muted); line-height: 1.8; }
.mtp-sc-playbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0; }
.mtp-sc-playbar .mtp-play, .mtp-play.mtp-sc-big { margin-left: 0; padding: 11px 18px; font-size: 13px; min-height: 44px; box-sizing: border-box; }
.mtp-sc-block h3 { margin: 22px 0 8px; font-size: 1.35rem; }
.mtp-sc-block > p { max-width: 74ch; line-height: 1.6; }
.mtp-sc-table { font-variant-numeric: tabular-nums; }
.mtp-sc-table td b { color: var(--mtp-brass-bright); }
.mtp-sc-table caption { caption-side: top; text-align: left; padding: 0 0 6px; color: var(--mtp-muted); font-size: 13px; }
.mtp-sc-table thead th small { display: block; margin-top: 2px; font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--mtp-muted); }
.mtp-sc-table td a, .mtp-sc-table th a { color: var(--mtp-brass-bright); text-decoration: none; }
.mtp-sc-table td a:hover, .mtp-sc-table th a:hover { color: var(--mtp-paper); text-decoration: underline; }
.mtp-sc-heat td { text-align: center; background: rgba(196, 154, 73, calc(var(--a, 0) * .5)); }
.mtp-sc-scroll { overflow-x: auto; max-width: 100%; }
.mtp-sc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 8px 40px; }
.mtp-sc-steps { margin: 0 0 10px; padding-left: 1.4em; line-height: 1.7; }
.mtp-sc-steps b { color: var(--mtp-brass-bright); }
.mtp-sc-chain { margin: 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 24px; font-size: 14.5px; line-height: 1.75; }
.mtp-sc-chain li { break-inside: avoid; }
.mtp-sc-chain b { color: var(--mtp-brass-bright); }
.mtp-sc-faq h3 { margin: 22px 0 6px; font-size: 1.25rem; color: var(--mtp-brass-bright); }
.mtp-sc-faq p { max-width: 74ch; margin: 0 0 6px; line-height: 1.65; }

/* ---- the white chart sheets --------------------------------------------------- */
.mtp-sc-sheet { padding: 22px 24px 18px; }
.mtp-sc-page { font-family: "Source Sans 3", sans-serif; font-size: 13px; font-weight: 600; color: #444; letter-spacing: .04em; margin-left: 8px; }
.mtp-sc-pattern b { font-weight: 800; }
.mtp-sc-rows { border-top: 1px solid #111; }
.mtp-sc-row { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 6px 0; border-bottom: 1px solid #bbb; }
.mtp-sc-info h3 { margin: 0 0 2px; font-size: 22px; font-weight: 700; line-height: 1.1; }
.mtp-sc-info p { margin: 0 0 3px; font-size: 13px; line-height: 1.35; color: #222; }
.mtp-sc-info .mtp-sc-meta { color: #444; font-size: 12px; }
.mtp-sc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mtp-sc-sheet .mtp-play { margin-left: 0; color: #111; border-color: #111; background: #fff; padding: 4px 11px; min-height: 30px; box-sizing: border-box; }
.mtp-sc-sheet .mtp-play:hover, .mtp-sc-sheet .mtp-play:focus-visible { background: #eee; color: #111; }
.mtp-sc-sheet .mtp-sc-playing .mtp-play { background: #111; color: #fff; }
.mtp-sc-keylink { font-size: 12px; color: #222; }
.mtp-sc-staff { min-width: 0; }
.mtp-sc-staff svg { width: 100% !important; height: auto !important; display: block; max-width: none; }
.mtp-sc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mtp-sc-staff { position: relative; }
.mtp-sc-row.mtp-sc-playing, .mtp-sc-unit.mtp-sc-playing { background: #f3ecd9; }

/* minor: one block per key, with a natural, a harmonic and a melodic stave */
.mtp-sc-kblock { padding: 8px 0 6px; border-bottom: 1px solid #999; break-inside: avoid; }
.mtp-sc-khead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 2px; }
.mtp-sc-khead h3 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.15; }
.mtp-sc-khead p { margin: 0; font-size: 12.5px; color: #333; }
.mtp-sc-kgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.mtp-chart-page .mtp-sc-form, .mtp-chart-page .mtp-sc-card { margin: 0; }
.mtp-sc-form { min-width: 0; }
.mtp-sc-form.mtp-sc-wide { grid-column: 1 / -1; }
.mtp-chart-page .mtp-sc-form figcaption, .mtp-chart-page .mtp-sc-card figcaption { margin: 0; }
.mtp-sc-form figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding-top: 2px; font-size: 12px; font-weight: 700; color: #111; }
.mtp-sc-form figcaption span { font-weight: 500; color: #333; letter-spacing: .02em; }
.mtp-sc-form figcaption .mtp-play { margin-left: auto; font-size: 11px; padding: 1px 8px; min-height: 24px; }

/* minor: the names table sheet */
.mtp-chart-page table.mtp-sc-names { display: table; width: 100%; min-width: 640px; border-collapse: collapse; margin: 6px 0 0; font-size: 13px; table-layout: fixed; }
.mtp-sc-names td { white-space: nowrap; }
.mtp-sc-tablewrap { overflow-x: auto; max-width: 100%; }
.mtp-chart-page table.mtp-sc-names th, .mtp-chart-page table.mtp-sc-names td { padding: 4px 6px; border-bottom: 1px solid #aaa; text-align: left; vertical-align: top; line-height: 1.3; }
.mtp-sc-names thead th { border-bottom: 2px solid #111; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #222; }
.mtp-sc-names tbody th { font-size: 14px; font-weight: 700; }
.mtp-sc-names col.c-key { width: 19%; } .mtp-sc-names col.c-nat { width: 24%; } .mtp-sc-names col.c-har { width: 25%; } .mtp-sc-names col.c-mel { width: 32%; }
.mtp-sc-names b { font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.mtp-sc-names .mtp-sc-dir { display: block; white-space: nowrap; }
.mtp-sc-names .mtp-sc-dir i { font-style: normal; font-weight: 700; margin-right: 3px; }
.mtp-sc-names small { display: block; font-size: 10.5px; font-weight: 400; color: #333; white-space: nowrap; }

/* minor: A minor worked example on the dark page */
.mtp-sc-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 14px 22px; margin: 14px 0 6px; }
.mtp-sc-card { padding: 12px 14px 10px; background: var(--mtp-raised); border: 1px solid var(--mtp-line); border-radius: 2px; min-width: 0; }
.mtp-sc-card.mtp-sc-playing { border-color: var(--mtp-brass-bright); }
.mtp-sc-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-bottom: 4px; font-weight: 700; }
.mtp-sc-card figcaption span { color: var(--mtp-muted); font-weight: 400; font-size: 13px; }
.mtp-sc-card figcaption .mtp-play { margin-left: auto; }
.mtp-sc-card .mtp-sc-staff svg { max-width: 100%; }

/* ---- narrow screens ----------------------------------------------------------- */
@media screen and (max-width: 720px) {
  .mtp-sc-sheet { padding: 14px 12px 12px; }
  .mtp-sc-row { grid-template-columns: minmax(0, 1fr); }
  .mtp-sc-staff { overflow-x: auto; max-width: 100%; }
  .mtp-sc-staff svg { min-width: 460px; }
  .mtp-sc-kgrid { grid-template-columns: minmax(0, 1fr); }
  .mtp-sc-form .mtp-sc-staff svg { min-width: 400px; }
  .mtp-sc-form.mtp-sc-wide .mtp-sc-staff svg { min-width: 640px; }
  .mtp-sc-quick { padding: 16px 14px 12px; }
  .mtp-sc-answer { font-size: 16px; }
  .mtp-sc-card .mtp-sc-staff svg { min-width: 340px; }
  .mtp-sc-forms { grid-template-columns: minmax(0, 1fr); }
}

/* ---- print: A4 / Letter, 14 mm margins ------------------------------------------ */
@media print {
  .mtp-sc-sheet { padding: 0; font-size: 9pt; }
  .mtp-sc-sheet * { background: transparent !important; }
  .mtp-sc-page { font-size: 10pt; }
  .mtp-sc-sheet .mtp-ws-head { margin-bottom: 4pt; padding-bottom: 3pt; }
  .mtp-sc-sheet .mtp-ws-head h2 { font-size: 19pt; }
  .mtp-sc-sheet .mtp-ws-head p { font-size: 9pt; }
  .mtp-sc-sheet .mtp-ws-tip { font-size: 8.5pt; margin: 0 0 3pt; }
  .mtp-sc-row { grid-template-columns: 43mm minmax(0, 1fr); gap: 0 3mm; padding: 0.8mm 0; border-bottom: .5pt solid #777; break-inside: avoid; }
  .mtp-sc-info h3 { font-size: 13pt; margin: 0; }
  .mtp-sc-info p { font-size: 8pt; margin: 0 0 1pt; line-height: 1.25; }
  .mtp-sc-info .mtp-sc-meta { font-size: 7.5pt; }
  .mtp-sc-staff svg { min-width: 0; }
  .mtp-sc-sheet .mtp-ws-credit { font-size: 7.5pt; margin-top: 3pt; padding-top: 2pt; }
  .mtp-sc-kblock { padding: 1.4mm 0 1mm; border-bottom: .5pt solid #777; }
  .mtp-sc-khead h3 { font-size: 13pt; }
  .mtp-sc-khead p { font-size: 8pt; }
  .mtp-sc-kgrid { gap: 0 5mm; }
  .mtp-sc-form figcaption { font-size: 8pt; margin: 0; }
  .mtp-chart-page table.mtp-sc-names { font-size: 8.6pt; min-width: 0; }
  .mtp-sc-names td { letter-spacing: -.1pt; }
  .mtp-chart-page .mtp-sc-names th, .mtp-chart-page .mtp-sc-names td { line-height: 1.2; }
  .mtp-chart-page .mtp-sc-names small { margin: 0; padding: 0; line-height: 1.2; }
  .mtp-chart-page table.mtp-sc-names th, .mtp-chart-page table.mtp-sc-names td { padding: 1.2mm 1.4mm; border-bottom: .5pt solid #777; }
  .mtp-sc-names tbody th { font-size: 11pt; }
  .mtp-sc-names thead th { font-size: 7.5pt; }
  .mtp-sc-names small { font-size: 7.5pt; }
  .mtp-sc-rows { border-top: .75pt solid #000; }
}
