/* Cheat sheets: compact reference cards, quiz mode (hide answers) and a print layout. */
.cs-controls { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 18px; }
.cs-quiz-hint { font-size: 13px; }
.cs-controls-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.cs-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: start; }
.cs-wide { grid-column: 1 / -1; }
.cs-card { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 120px; }
.cs-card h2 { font-size: 18px; margin: 0; }
.cs-card p { margin: 0; }
.cs-tip { color: var(--muted); font-size: 14px; }
.cs-sub { font-size: 13.5px; font-weight: 600; }
.cs-line { font-size: 14px; }
.cs-card figure { margin: 0; }
.cs-card figcaption { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }

/* open chords */
.cs-chords { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 88px), 1fr)); }
.cs-chord { padding: 6px 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; display: grid; place-items: center; transition: background .12s, border-color .12s; }
.cs-chord:hover { background: var(--surface-3); border-color: var(--line-strong); }
.cs-chord .chord-svg { width: 100%; max-width: 110px; }
@media (max-width: 420px) { .cs-chords { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cs-chord { padding: 4px 0; } }

/* small fretboards */
.cs-board { border-radius: var(--radius-sm); position: relative; }
.cs-small .fb-svg { min-width: 0; width: 100%; }
.cs-shapes { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .cs-shapes { grid-template-columns: 1fr; } }
.cs-neckboard .fb-svg { min-width: 640px; }

/* power chord root table */
.cs-roots { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; align-items: center; }
.cs-roots-label { font: 600 12px var(--font); color: var(--muted); }
.cs-roots-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cs-root { display: flex; flex-direction: column; align-items: center; padding: 5px 0; border-radius: 8px; background: var(--surface-2); line-height: 1.25; }
.cs-root b { font: 600 13px var(--font-display); }
.cs-fretnum { font: 700 12px var(--mono); color: var(--accent); }

/* note memory tricks */
.cs-tricks { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.cs-tricks b { color: var(--text); font-weight: 600; }
.cs-tricks i { font-style: normal; color: var(--accent); font-weight: 700; }

/* strumming */
.cs-strums { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.cs-strums li { display: flex; justify-content: space-between; gap: 12px; }
.cs-strums code { font-weight: 700; color: var(--accent); white-space: pre; }

/* tab symbols */
.cs-syms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cs-syms li + li { border-top: 1px solid var(--line); }
.cs-syms a { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 2px; color: var(--text); }
.cs-syms a:hover { text-decoration: none; background: var(--surface-2); }
.cs-sym { display: grid; place-items: center; min-height: 34px; border-radius: 7px; background: var(--surface-2); font: 700 13px/1.05 var(--mono); color: var(--accent); text-align: center; font-variant-ligatures: none; }
.cs-sym-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cs-sym-text b { font-size: 14px; font-weight: 600; }
.cs-sym-text span { font-size: 13px; color: var(--muted); }

/* daily routine */
.cs-routine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-routine li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.cs-routine label { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; font-weight: 500; }
.cs-routine input { width: 20px; height: 20px; margin: 0; accent-color: var(--good); flex-shrink: 0; }
.cs-routine li.is-done label span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.cs-done { font-size: 13px; }

/* players inside cards sit on the page background */
.cs-player .tp-tab { background: var(--bg); }

/* quiz mode: hide the answers until tapped (active recall) */
.cs-quiz .cs-ans:not(.revealed) { cursor: pointer; }
.cs-quiz .cs-ans:not(.revealed) .fb-mark,
.cs-quiz .cs-ans:not(.revealed) .ct-fret, .cs-quiz .cs-ans:not(.revealed) .ct-mute,
.cs-quiz .cs-ans:not(.revealed) .cd-dot, .cs-quiz .cs-ans:not(.revealed) .cd-finger,
.cs-quiz .cs-ans:not(.revealed) .cd-open, .cs-quiz .cs-ans:not(.revealed) .cd-mark { opacity: 0; }
.cs-quiz .cs-fretnum:not(.revealed) { filter: blur(5px); user-select: none; }
.cs-quiz .cs-board:not(.revealed)::after { content: 'Tap to check'; position: absolute; right: 8px; top: 6px; padding: 3px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font: 600 11.5px var(--font); pointer-events: none; }
.cs-quiz .cs-neckboard:not(.revealed)::after { position: sticky; left: 8px; }
.cs-ans .fb-mark, .cs-ans .ct-fret, .cs-ans .cd-dot { transition: opacity .15s; }

/* print: white paper, dark ink, cards only */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f3f1ed; --surface-3: #e6e2db; --line: #cfc9bf; --line-strong: #b0a99d; --text: #111; --muted: #444; --faint: #777; --accent: #8a4b00; --accent-ink: #fff; --hot: #b3261e; --good: #1d7a3e; --wood: #fff; color-scheme: light; }
  body { background: #fff; color: #111; padding: 0 !important; }
  .topbar, .subnav, .tabbar, .pathbar, .xp-pop, .cs-controls, .cs-player, .cs-card .row, .cs-routine .btn, .cs-done { display: none !important; }
  .page { padding: 0; max-width: none; }
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cs-card { break-inside: avoid; border: 1px solid #bbb; padding: 12px; }
  .cs-chord, .cs-root, .cs-sym, .cs-routine li { background: #fff; border: 1px solid #ddd; }
  .cs-neckboard .fb-svg { min-width: 0; }
  .fb-wrap { overflow: visible; }
  .fb-svg .fb-wood { fill: #fff; stroke: #999; }
  .fb-svg .fb-fret { stroke: #888; }
  .fb-svg .fb-nut { stroke: #111; }
  .fb-svg .fb-string { stroke: #555; }
  .fb-svg .fb-inlay { fill: #ddd; }
  .fb-svg .fb-mark circle { stroke: #fff; }
  .cs-ans .fb-mark, .cs-ans .ct-fret, .cs-ans .ct-mute, .cs-ans .cd-dot, .cs-ans .cd-finger, .cs-ans .cd-open, .cs-ans .cd-mark { opacity: 1 !important; }
  .cs-fretnum { filter: none !important; }
  .cs-board::after { display: none !important; }
  .xp { text-decoration: none; }
  a { color: #111; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
