/* Guides (js/screens/guides.js, guide.js): the list with covers, the trainer's preview sheet, and
   the reader — pages one under the other. Tokens only. */
.g-cover{width:46px;height:60px;flex:none;border-radius:10px;background:var(--tile-2);overflow:hidden;display:grid;place-items:center;color:var(--ink-3)}
.g-cover img{width:100%;height:100%;object-fit:cover}
.g-cover svg{width:22px;height:22px}
/* the back link's arrow: an icon has no size of its own */
.g-back svg{width:16px;height:16px;flex:none}
.g-pv{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.g-pv-cover{width:150px;max-width:50%;border-radius:var(--r-sm);background:var(--tile-2)}

/* the reader: every page keeps an A4-shaped place until its image arrives, so lazy loading has
   something to measure and the page does not jump; the image's own shape wins once it is there.
   No touch-action here: the browser's pinch zoom is the zoom. */
.g-pages{display:flex;flex-direction:column;gap:10px}
.g-page{width:100%;height:auto;aspect-ratio:auto 595 / 842;border-radius:var(--r-sm);background:var(--tile)}
.g-fail{aspect-ratio:595 / 842;border-radius:var(--r-sm);background:var(--tile);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--ink-3);text-align:center;padding:16px}
.g-fail svg{width:30px;height:30px;color:var(--secondary)}
.g-fail b{color:var(--ink);font-weight:600}

@media (min-width: 900px){
  /* a trainer on a wide screen: a page as wide as a sheet of paper reads better than one as wide as the window */
  .g-pages,.g-pages + .btn{width:100%;max-width:720px;margin-inline:auto}
}

/* the daily lesson: its row on the client's home (js/learn/daily.js) and its sheet */
.dl-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;text-align:start;color:inherit;font:inherit;padding-block:12px}
button.dl-row{cursor:pointer}
.dl-row .dl-ic{background:var(--decor-tint);color:var(--ink)}
.dl-row .row-t small{order:-1}
.dl-row.done .av{background:var(--wash);color:var(--accent)}
.dl-text{margin:6px 0 14px;color:var(--ink-2);line-height:1.6}
.dl-q{margin:0 0 8px}
.dl-opts{display:flex;flex-direction:column;gap:8px}
.dl-opt{text-align:start;font:inherit;font-weight:600;color:var(--ink);background:var(--tile-2);border:1.5px solid var(--line);border-radius:var(--r-btn);padding:12px 14px;cursor:pointer}
.dl-opt[disabled]{cursor:default}
.dl-opt.ok{background:var(--wash);border-color:var(--accent);color:var(--nav-on)}
.dl-opt.bad{background:var(--danger-wash);border-color:var(--danger);color:var(--danger)}
.dl-why{margin:12px 0;background:var(--tile-2);border-radius:var(--r-sm);padding:10px 12px;color:var(--ink-2)}
.dl-why b{display:block;color:var(--ink)}

/* the trainer's view of the guides: one row a client (js/screens/guides.js) */
.gp-list{display:flex;flex-direction:column}
.gp-row + .gp-row{border-top:1px solid var(--line)}
.gp-row summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 2px;cursor:pointer;list-style:none}
.gp-row summary::-webkit-details-marker{display:none}
.gp-bar{display:block;height:6px;border-radius:6px;background:var(--line);overflow:hidden;margin-top:6px}
.gp-bar i{display:block;height:100%;border-radius:6px;background:var(--secondary)}
.gp-more{display:flex;flex-direction:column;gap:6px;padding:0 2px 12px;font-size:.875rem;color:var(--ink-2)}
.gp-more p{margin:0;background:var(--tile-2);border-radius:var(--r-sm);padding:8px 10px}
.gp-more b{color:var(--ink)}

/* the app's own guides, by group */
.g-cat{font-size:.82rem;font-weight:700;color:var(--ink-3);letter-spacing:.02em;margin:0}
