/* JamLand Learn: a printable's own page (/learn/guitar/printables/<slug>/)
   and the videos page (/learn/videos/), loaded only there (kept out of
   learn.css, which has a size budget).
   Tokens come from learn.css. The page: a preview of the paper sheet on
   its plate with one gold Download PDF button beside it, "How to use it",
   then the app block with a real screenshot of the app. */
.figure.sheet-figure .plate { padding: 18px; }
.figure.sheet-figure .plate > img.sheet-preview { width: min(100%, 320px); }
img.sheet-preview { display: block; height: auto; border-radius: 6px; background: #fff;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.downloads { display: grid; gap: 14px; justify-items: start; }
.prose > .downloads { margin-top: 2em; }
.pdf-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold);
  text-decoration: underline; text-decoration-color: var(--gold-dim); text-underline-offset: 3px; }
.pdf-more:hover { color: var(--gold-2); }

/* The app block's screenshot stands where the musician does elsewhere. */
.app-block.has-shot { align-items: start; }
.app-shot { display: block; width: 150px; height: auto; border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 220, 180, 0.16), 0 18px 32px -18px rgba(0, 0, 0, 0.9); }

@media print {
  img.sheet-preview { box-shadow: none; border: 1px solid #c8c8c8; }
  .downloads { display: none; }
}
/* Phones: the download button first, then a smaller preview of the sheet;
   in the app block, the words and the badge first, then the screenshot. */
@media (max-width: 760px) {
  .ref-hero > .figure.sheet-figure { order: 2; }
  .figure.sheet-figure .plate > img.sheet-preview { width: min(100%, 240px); }
  .downloads, .downloads .download, .downloads .button { width: 100%; justify-items: stretch; }
}
@media (max-width: 560px) {
  .app-shot { order: 2; width: 132px; justify-self: center; }
}

/* /learn/videos/: a video whose message sends the app. The card is not one
   big link: the App Store link and its sheet's link sit inside it. */
.app-card .card-media > img.app-thumb { max-height: 160px; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 220, 180, 0.16), 0 12px 24px -16px rgba(0, 0, 0, 0.9); }
.app-card .card-actions { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.app-card .app-note { flex-basis: 100%; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Barre chords in every key (/learn/guitar/printables/barre-chords-in-every-key/):
   the page opens on a key picker with no script. The drawing comes first
   (the Reel's last picture), then twelve radio buttons in fret order, then
   the key's six chords. Each key has one drawing (.sd-pic) and one row of
   chords (.sd-panel); :has() shows the checked key's. G is checked first, as
   in the Reel. A browser without :has() shows G and hides the keys. */
.sd-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start;
  margin: 8px 0 18px; }
.sd-side { display: grid; gap: 18px; }
.sd-side .figure.sheet-figure { margin: 0; }
.sd-side .figure.sheet-figure .plate > img.sheet-preview { width: min(100%, 260px); }
.sd-facts { margin: 0 0 32px; }
.sd-facts .checked { margin-top: 10px; }
.sixdots { display: grid; gap: 16px; }
.sd-pic, .sd-panel { display: none; }
.sixdots:has(#sd-f:checked) [data-for="sd-f"],
.sixdots:has(#sd-f-sharp:checked) [data-for="sd-f-sharp"],
.sixdots:has(#sd-g:checked) [data-for="sd-g"],
.sixdots:has(#sd-a-flat:checked) [data-for="sd-a-flat"],
.sixdots:has(#sd-a:checked) [data-for="sd-a"],
.sixdots:has(#sd-b-flat:checked) [data-for="sd-b-flat"],
.sixdots:has(#sd-b:checked) [data-for="sd-b"],
.sixdots:has(#sd-c:checked) [data-for="sd-c"],
.sixdots:has(#sd-d-flat:checked) [data-for="sd-d-flat"],
.sixdots:has(#sd-d:checked) [data-for="sd-d"],
.sixdots:has(#sd-e-flat:checked) [data-for="sd-e-flat"],
.sixdots:has(#sd-e:checked) [data-for="sd-e"] { display: block; }
.sd-img { display: block; width: 100%; height: auto; border-radius: 22px;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.9); }
.sd-where { margin: 12px 0 0; font-size: 18px; color: var(--ink-2, var(--ink)); }
.sd-where b { color: var(--ink); }
.sd-pick { margin: 0 0 10px; font: 400 26px/1 var(--pixel); color: var(--gold); }
.sd-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sd-keys label { position: relative; display: grid; place-items: center; gap: 2px; min-height: 56px; padding: 6px 2px;
  border-radius: 14px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
  color: var(--ink); -webkit-tap-highlight-color: transparent; }
.sd-keys label:hover { box-shadow: inset 0 0 0 1px var(--gold-dim); }
.sd-radio { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sd-k { font: 400 24px/1 var(--pixel); }
.sd-f { font: 700 12px/1 var(--read); color: var(--moon); }
.sd-keys label:has(.sd-radio:checked) { background: var(--gold); color: var(--on-gold); box-shadow: none; }
.sd-keys label:has(.sd-radio:checked) .sd-f { color: var(--on-gold); }
.sd-keys label:has(.sd-radio:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.sd-six { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sd-six li { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.sd-six li:hover { box-shadow: inset 0 0 0 1px var(--gold-dim); }
.sd-six li:hover a { color: var(--gold); }
.sd-six li:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.sd-six a:focus-visible { outline: none; }
.sd-n { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 13px;
  border: 2px solid #1a1411; font: 800 14px/1 var(--read); color: #1a1411; }
.sd-six a { font: 400 24px/1 var(--pixel); color: var(--ink); text-decoration: none; min-height: 28px; }
.sd-six a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }  /* the whole card is the link */
.prose > :is(.sd-keytable, .sd-roots, .sd-trytable) { margin-top: 2em; }
.prose > :is(.sd-keytable, .sd-roots, .sd-trytable) + * { margin-top: 2em; }
.sd-roots table { table-layout: fixed; min-width: 860px; }
.sd-roots thead th:first-child { width: 140px; }
@supports not selector(:has(*)) {
  .sd-top { display: none; }
  .sixdots [data-for="sd-g"] { display: block; }
}
@media (min-width: 861px) {
  .sd-facts .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
  .sd-facts .facts > div { grid-template-columns: 1fr; align-content: start; }
  .sd-roots thead th:first-child { width: 160px; }
  .chord-row.sd-shape-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sd-facts .facts > div + div { box-shadow: inset 1px 0 0 var(--line); padding-left: 16px; }
}
@media (max-width: 860px) {
  .sd-hero { grid-template-columns: 1fr; }
  .sd-side .figure.sheet-figure .plate > img.sheet-preview { width: min(100%, 200px); }
}
@media (max-width: 560px) {
  .sd-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-trytable table.data th, .sd-trytable table.data td { padding-left: 10px; padding-right: 10px; }
  .sd-where { font-size: 16px; }
}
@media (max-width: 380px) {
  .sd-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .sd-where { font-size: 15px; }
  .sd-keytable .table-block.wide table.data th, .sd-keytable .table-block.wide table.data td { padding: 9px 3px; }
}
@media print {
  .sd-top { display: none; }
}
