/* Fonic Tonic Studio — "Crisp Ink" lesson sheets and @media print rules. © 2026 Isaac Leonard / Fonic Tonic LLC. */
#sheet { position: fixed; inset: 0; z-index: 100; overflow: auto; background: #26303f; }
.sheet-bar { position: sticky; top: 0; z-index: 2; display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 18px; background: #0d121c; border-bottom: 1px solid #243044; }
.sheet-title { color: #e8c77a; font: 18px Georgia, serif; }
.doc { background: #fff; color: #16233f; width: 8.5in; max-width: calc(100% - 24px); margin: 22px auto 60px; padding: .55in .6in; box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  font: 11.5pt/1.42 "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif; }
.doc h1 { font: 700 21pt/1.15 "Palatino Linotype", Palatino, Georgia, serif; margin: 4px 0 4px; }
.doc h2 { font: 700 10pt/1.2 "Segoe UI", system-ui, sans-serif; letter-spacing: 1.3px; text-transform: uppercase; color: #16233f; border-bottom: 1.5px solid #16233f; padding-bottom: 3px; margin: 16px 0 7px; }
.doc ul, .doc ol { margin: 0; padding-left: 20px; }
.doc li { margin-bottom: 3px; }
.doc p { margin: 0 0 6px; }
.doc .lead { color: #44506a; font-style: italic; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 3px solid #16233f; padding-bottom: 10px; }
.doc-brand { font: 700 9.5pt "Segoe UI", sans-serif; letter-spacing: 2.4px; color: #b45309; }
.doc-brand span { color: #6b7790; font-weight: 400; letter-spacing: 1px; }
.doc-meta { font-size: 9pt; color: #55617a; }
.badge { flex: none; padding: 7px 12px; border-radius: 6px; font: 700 9pt "Segoe UI", sans-serif; letter-spacing: 1.5px; color: #fff; white-space: nowrap; }
.badge.teacher { background: #16233f; }
.badge.student { background: #047857; }
.badge.video { background: #7c2d12; }
.nameline { margin-top: 12px !important; color: #44506a; }
.callout { border: 1.5px solid #16233f; border-left-width: 6px; border-radius: 6px; padding: 2px 14px 10px; margin-top: 14px; background: #f5f7fb; break-inside: avoid; }
.callout h2 { border: 0; margin-bottom: 4px; }
.callout.soft { border-color: #047857; background: #f1faf6; }
.ed-teacher .callout { border-color: #16233f; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.inventory { border: 1.5px dashed #6b7790; border-radius: 6px; padding: 0 14px 10px; margin-top: 16px; break-inside: avoid; }
.inventory b { display: block; margin-bottom: 3px; }
.doc-foot { margin-top: 22px; padding-top: 8px; border-top: 1px solid #c3cbd9; font-size: 8.5pt; color: #6b7790; text-align: center; }

/* tables (also used inside the studio's white "paper" previews) */
.tbl { width: 100%; border-collapse: collapse; font-size: 10pt; }
.tbl th, .tbl td { border: 1px solid #9aa6b8; padding: 5px 8px; text-align: left; vertical-align: top; }
.tbl thead th { background: #16233f; color: #fff; font-weight: 600; }
.tbl.outline th { width: 92px; background: #eef2f8; white-space: nowrap; }
.tbl.tracker td:not(:first-child), .tbl.tracker th:not(:first-child), .tbl.self td:not(:first-child), .tbl.self th:not(:first-child),
.tbl.assess td:nth-child(n+3), .tbl.assess th:nth-child(n+3) { text-align: center; width: 46px; }
.tbl.tracker td { height: 24px; }
.barsgrid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.barsgrid td { border: 1.5px solid #16233f; height: 50px; text-align: center; font: 700 15pt Georgia, serif; position: relative; color: #16233f; }
.barsgrid td small { position: absolute; top: 2px; left: 5px; font: 8pt "Segoe UI", sans-serif; color: #6b7790; }
.note { font-size: 9.5pt; color: #44506a; margin-top: 6px !important; }

/* charts */
.chart { margin: 0 0 16px; break-inside: avoid; }
.chart h4 { font: 700 10.5pt "Segoe UI", sans-serif; margin: 0 0 5px; color: #16233f; }
.chart .tag { display: inline-block; background: #16233f; color: #fff; border-radius: 4px; padding: 0 6px; margin-right: 7px; font-size: 9pt; }
.chart figcaption { font-size: 9pt; color: #55617a; margin-top: 2px; }
.fbwrap.narrow { max-width: 4.6in; }
.chordrow { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.center { text-align: center; }
.legend.print { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 9pt; color: #44506a; margin: -6px 0 16px; }

/* video script */
.vseg { break-inside: avoid; }
.doc .vseg { display: grid; grid-template-columns: 1.05in 1fr 1.5fr; gap: 12px; border-top: 1px solid #c3cbd9; padding: 12px 0; }
.doc .vseg .tc { font: 700 10pt ui-monospace, Consolas, monospace; color: #7c2d12; }
.doc .vseg .tc b { display: block; font: 700 8.5pt "Segoe UI", sans-serif; letter-spacing: 1px; color: #16233f; margin-top: 4px; }
.doc .vseg span { display: block; font: 700 7.5pt "Segoe UI", sans-serif; letter-spacing: 1.5px; color: #6b7790; margin-bottom: 2px; }
.doc .vseg .shot { font-size: 10pt; color: #44506a; }
.doc .vseg .say { font: 14pt/1.5 Georgia, serif; }

@media screen { .pb { margin-top: 30px; padding-top: 14px; border-top: 2px dashed #c3cbd9; } }

@page { size: letter; margin: .5in .55in .6in; }
@media print {
  html, body { background: #fff !important; }
  body.sheet-open > *:not(#sheet) { display: none !important; }
  #sheet { position: static; overflow: visible; background: #fff; }
  .sheet-bar { display: none !important; }
  .doc { width: auto; max-width: none; margin: 0; padding: 0; box-shadow: none; }
  .pb { break-before: page; }
  .doc h2 { break-after: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* printing straight from the studio (no sheet open): print the fretboard panel only */
  body:not(.sheet-open) .top, body:not(.sheet-open) .stage-top .btn, body:not(.sheet-open) #curric, body:not(.sheet-open) #controls, body:not(.sheet-open) .dock, body:not(.sheet-open) .foot { display: none !important; }
}

/* v2: two-up narrow charts, tidier page breaks */
.chart.half { display: inline-block; width: 49.4%; vertical-align: top; padding-right: 10px; box-sizing: border-box; }
.chart.half .fbwrap.narrow { max-width: none; }
.doc section, .doc .two > section, .tbl tr { break-inside: avoid; }
.doc section.pb, .doc section.flow { break-inside: auto; }
.paper .chart.half { width: auto; display: block; max-width: 480px; }

/* play-along tab */
.ft-tab text { font-family: Bahnschrift, "Segoe UI", Arial, sans-serif; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.tabsec { break-inside: avoid; }
.tabfig { break-inside: avoid; margin-bottom: 8pt; }

/* lesson depth */
.explain p { margin: 0 0 6pt; }
.keep { break-inside: avoid; }
.tbl.qa th { width: 22pt; text-align: center; vertical-align: top; }
.qlines { margin: 4pt 0 0; padding-left: 16pt; }
.qlines li { margin-bottom: 4pt; }
.qlines li span { display: block; height: 15pt; border-bottom: 0.6pt solid #9aa5b8; margin: 0 0 3pt; }
.passline { margin: 8pt 0 0; padding: 5pt 9pt; border-left: 2.5pt solid #047857; background: #f0f9f5; }

/* level workbook: every lesson starts on a new page */
@media screen { .wb-lesson { margin-top: 40px; padding-top: 20px; border-top: 3px double #c3cbd9; } }
@media print { .wb-lesson { break-before: page; } }
.doc .notes p { white-space: pre-wrap; }
.fl-print td { vertical-align: top; }
.fl-print .fl-text { white-space: pre-wrap; }

/* blank paper */
.paper-head { margin-bottom: 10px; }
.paper-head .nameline { margin: 6px 0 0; }
.paper-tabs { display: grid; gap: 17px; margin-top: 14px; }
.paper-tabs svg, .paper-necks svg { display: block; width: 100%; height: auto; }
.paper-chords { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px 4px; justify-items: center; margin-top: 8px; }
.paper-necks { display: grid; gap: 22px; margin-top: 14px; }
.paper-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 14px; }
.paper-boxes svg { display: block; width: 100%; height: auto; }
.paper-boxes span { display: block; font-size: 9pt; color: #5b6680; margin: 2px 0 0 4px; }
@media print { .paper-tabs { gap: 15px; } .paper-chords { gap: 2px 4px; } }
