/* QUICK START, every device's (cx-guide.js): a dialog as the family's are (cx-frame.css's .cxf-dialog), a little wider for
   its clip; its clip 16:10 over its still, no taller than a short screen allows; its words kept to their room as the cards
   change, so its buttons never move under a finger (the family's lessons, 23); every press 40 px by touch (20) */
.cxf-dialog.cxg{width:min(600px,94vw)}
.cxg .cxg-count{color:var(--cxf-muted)}
.cxg-figure{position:relative;box-sizing:border-box;width:min(100%,calc(40vh * 1.6));aspect-ratio:16/10;margin:0 auto 18px;overflow:hidden;
  border:1px solid #ffffff17;border-radius:4px;background:#0b0f12 center/cover no-repeat}
.cxg-clip{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s ease-out}
.cxg-clip.cxg-in{opacity:1}
.cxg-clip[hidden]{display:none}
/* a card's own figure (MIDI's channels, say) laid out by the figure's width, which a short screen narrows as much as a
   narrow one: the figure a container its own rules can ask (@container) */
.cxg-figure{container-type:inline-size}
.cxg-figure>.cxg-own{position:absolute;inset:0}
.cxf-dialog.cxg h2{font-size:24px}
.cxg .cxg-line{min-height:calc(1.55em * 3);margin:8px 0 0;font:13.5px/1.55 var(--cxf-sans);color:var(--cxf-muted);text-wrap:pretty}
.cxg .cxg-actions{justify-content:flex-end;margin-top:14px}
.cxg .cxg-actions>.cxg-back{margin-right:auto}
/* BACK on the first card, and SHOW ME where a card has nothing to show, put away but keeping their room, unseen and out of
   reach, so NEXT is where it was from card to card (the family's lessons, 23: at 320 px BACK's coming back had wrapped the
   row and moved NEXT a row down) */
.cxg .cxg-actions>button[hidden]{display:inline-flex;visibility:hidden}
/* where the guide lives, said on the choice and the last card under the buttons, quieter than its line; its room kept on
   every other card, unseen, so nothing above it moves */
.cxg .cxg-note{margin:12px 0 0;font:12px/1.4 var(--cxf-sans);color:var(--cxf-muted)}
.cxg .cxg-note.cxg-quiet{visibility:hidden}
/* the choice's picture: a tile for each card still to come, its still and its name along its foot, a press going
   straight to it (every one 40 px or more, by touch too) */
.cxg-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(40px,1fr);gap:6px;padding:8px;
  box-sizing:border-box;background:#0b0f12}
.cxg .cxg-tile{position:relative;display:flex;align-items:flex-end;min-width:0;min-height:40px;margin:0;padding:0;
  border:1px solid #ffffff1f;border-radius:3px;background:#141d23 center/cover no-repeat;color:var(--cxf-ink);cursor:pointer;
  overflow:hidden;font:inherit;text-align:left}
.cxg .cxg-tile span{display:block;width:100%;padding:3px 6px;box-sizing:border-box;background:linear-gradient(transparent,#000000c8);
  font:10px/1.2 var(--cxf-mono);letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cxg .cxg-tile:focus-visible{outline:2px solid var(--cxf-accent);outline-offset:1px}
@media (hover:hover){.cxg .cxg-tile:hover{border-color:var(--cxf-accent)}}
@media (prefers-reduced-motion:reduce){.cxg-clip{transition:none}}
@media (max-width:420px){.cxf-dialog.cxg{padding:18px}.cxf-dialog.cxg h2{font-size:21px}.cxg-figure{margin-bottom:14px}
  .cxg .cxg-actions{gap:8px}.cxg .cxg-actions>button{padding:0 12px}}
/* a short, wide screen (a phone on its side, where an instrument is often played): its picture beside its words rather
   than over them, so a card fits the screen whole instead of scrolling inside itself */
@media (max-height:480px) and (min-width:520px){
  .cxf-dialog.cxg{width:min(640px,94vw);padding:16px 20px}
  .cxf-dialog.cxg[open]{display:grid;grid-template-columns:minmax(0,45%) minmax(0,1fr);grid-template-rows:auto auto 1fr auto auto;
    grid-template-areas:"top top" "fig title" "fig line" "act act" "note note";column-gap:20px}
  .cxg .cxf-dialog-top{grid-area:top;margin-bottom:12px}
  .cxg-figure{grid-area:fig;align-self:start;width:100%;margin:0}
  .cxf-dialog.cxg h2{grid-area:title;margin:0;font-size:20px}
  .cxg .cxg-line{grid-area:line;min-height:0;margin-top:6px;font-size:13px;line-height:1.45}
  .cxg .cxg-actions{grid-area:act;margin-top:12px}
  .cxg .cxg-note{grid-area:note;margin-top:8px}
}

/* QUICK START at the top of a help: a line of its own after the help's opening, its sign, its name and what it is */
.cxg-entry{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-height:48px;margin:16px 0 0;padding:8px 14px;
  border:1px solid var(--cxf-accent-line,#7fbfa966);border-radius:4px;background:var(--cxf-accent-soft,#7fbfa914);color:var(--cxf-ink);
  font:inherit;text-align:left;cursor:pointer}
.cxg-entry svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--cxf-accent);stroke-width:1.4;stroke-linejoin:round}
.cxg-entry svg path:last-child{fill:var(--cxf-accent);stroke:none}
.cxg-entry-name{flex:none;font:10px/1 var(--cxf-mono);letter-spacing:.14em;color:var(--cxf-accent)}
.cxg-entry-line{min-width:0;font:13px/1.4 var(--cxf-sans);color:var(--cxf-muted)}
@media (hover:hover){.cxg-entry:hover{border-color:var(--cxf-accent)}}
