/* The reading course (web/course.js). Uses the app's own look: navy, cream, gold; EB Garamond for Latin. */
.cr-next { max-width: 420px; margin: 4px 0 22px; }
.cr-next img { aspect-ratio: 16 / 7; }
.cr-book { margin-top: 26px; }
.cr-ch { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; overflow: hidden; }
.cr-ch summary { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; cursor: pointer; list-style: none; }
.cr-ch summary::-webkit-details-marker { display: none; }
.cr-ch summary img, .cr-noimg { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg-2); }
.cr-noimg { display: grid; place-items: center; color: var(--gold); font-size: 24px; }
.cr-t { display: flex; flex-direction: column; min-width: 0; }
.cr-t b { font: 500 19px/1.2 var(--text); }
.cr-t span { color: var(--muted); font-size: 13px; }
.cr-ls { list-style: none; margin: 0; padding: 0 8px 6px; }
.cr-ls a { display: grid; grid-template-columns: 34px 1fr auto 20px; gap: 8px; align-items: baseline; padding: 9px 4px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cr-ls .ln { padding-left: 0; position: static; line-height: inherit; font-family: var(--text); color: var(--gold-ink); text-align: center; }
.cr-ls .lt { font-family: var(--text); font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-ls .lg { color: var(--muted); font-size: 12.5px; }
.cr-ls li.done .ck { color: var(--gold-ink); font-weight: 700; }
.cr-ls li.here a { background: var(--hl); border-radius: 8px; }
.cr-then { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.cr-then a { flex: 0 0 110px; text-decoration: none; color: var(--ink); font-size: 13px; }
.cr-then img { width: 110px; height: 150px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; }
.cr-prog { font-size: 12.5px; margin: -8px 0 12px; }
.cr-words { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cr-w { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.cr-w img { width: 100%; max-height: 130px; object-fit: cover; border-radius: 8px; }
.cr-w .l { font-family: var(--text); font-size: 26px; color: var(--navy); }
.cr-w .cx { font-family: var(--text); font-size: 18px; color: var(--ink); }
.cr-w mark { background: var(--hl); color: inherit; border-radius: 3px; padding: 0 2px; }
.cr-w .g { color: var(--muted); font-size: 14.5px; }
.cr-en { align-self: flex-start; font: 600 12px var(--ui); letter-spacing: .04em; color: var(--gold-ink); background: none; border: 0; padding: 2px 0; cursor: pointer; }
.cr-names { margin-top: 14px; }
.cr-text { font-family: var(--text); font-size: var(--size); line-height: 1.6; -webkit-user-select: none; user-select: none; }
.cr-p { margin: 0 0 .7em; }
.cw { cursor: pointer; border-radius: 3px; }
.cw:hover, .cw.on { background: var(--hl); }
.cr-help { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 10px 2px; margin-top: 8px; min-height: 22px; font-size: 15.5px; }
.cr-qo { flex-direction: column; }
.cr-qo .opt { font-family: var(--text); font-size: 17px; }
.cr-notice { font-size: 17px; line-height: 1.5; margin: 4px 0 10px; }
.cr-prog, .cr-help { color: var(--muted); }
@media (max-width: 560px) { .cr-ch summary img, .cr-noimg { width: 60px; height: 46px; } .cr-words { grid-template-columns: 1fr; } .cr-text { font-size: 19px; } }

.cr-help .from { display: block; margin-top: 4px; }
.cr-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6px 0 28px; }

/* under the meaning: the book's entry and kind of word, then the form the sentence uses */
.cr-w .g:not(.hide) { display: flex; flex-direction: column; gap: 5px; }
.cr-w .g .gm { font-family: var(--text); font-size: 19px; color: var(--ink); }
.cr-w .g .ent { font-size: 13.5px; color: var(--muted); }
.cr-w .g .ent b { font-family: var(--text); font-size: 16px; font-weight: 400; color: var(--ink); }
.cr-w .g .frm { font-size: 13.5px; color: var(--muted); padding-top: 5px; border-top: 1px solid var(--line); }
.cr-w .g .frm b { font-family: var(--text); font-size: 16px; font-weight: 400; color: var(--gold-ink); }
/* a finished lesson keeps its place in the row (app.css .done is the end-of-game screen: centred, padded) */
.cr-ls li.done, .lessons li.done { text-align: left; padding-top: 0; }
/* phones: the word help sits just above the tab bar, not under it */
@media (max-width: 720px) { .cr-help { bottom: calc(57px + env(safe-area-inset-bottom)); } }
