/* HPC-19 part A: Skool-style section styles (colours only from tokens.css) */

/* ---- 3. the post page ------------------------------------------------------------------------------------------ */
.s19-post-page { position: relative; }
.s19-post-title { font-size: var(--fs-22); line-height: var(--lh-tight); margin: 0 0 var(--s-2); overflow-wrap: anywhere; }
.s19-gallery.one { grid-template-columns: 1fr; }
.s19-gallery.one img { aspect-ratio: auto; max-height: 520px; object-fit: contain; background: var(--surface); }
.s19-acts { flex-wrap: wrap; margin-top: var(--s-3); padding-top: var(--s-2); border-top: var(--bw) solid var(--line); }
.s19-acts a.like-btn { color: inherit; text-decoration: none; }
.s19-acts a.like-btn:hover { background: var(--surface); }
.s19-bell-form { display: inline; margin: 0; }
.s19-bell[aria-pressed="true"] { color: var(--sky-ink); }
.s19-bell[aria-pressed="true"] .ic { fill: var(--sky-tint); }
.comments .cmt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.cmt .acts .cmt-act { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink-2); padding: 4px; min-height: 28px; text-decoration: none; }
.cmt .acts .cmt-act:hover { color: var(--sky-ink); }
.cmt:target > .body > .bubble { box-shadow: 0 0 0 2px var(--sky); }
.cmt-reply { padding: var(--s-2) 0; }
.s19-cmt-box { margin-top: var(--s-3); padding-top: var(--s-3); border-top: var(--bw) solid var(--line); }
.s19-jump { position: sticky; bottom: var(--s-4); z-index: 20; display: flex; width: max-content; max-width: 100%; margin: var(--s-3) auto 0;
  background: var(--card); box-shadow: var(--shadow-menu); border-radius: var(--r-pill); }
@media (max-width: 759px) {
  .s19-jump { bottom: calc(56px + env(safe-area-inset-bottom) + var(--s-3)); }
  .cmt .acts .cmt-act, .cmt .acts button { min-height: var(--tap); }
  .replies { margin-left: 20px; }
}

/* ---- 4. the classroom ------------------------------------------------------------------------------------------ */
.s19-courses { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.s19-courses > li { display: flex; min-width: 0; }
.s19-courses .course-card { flex: 1; min-width: 0; }
.s19-blurb { display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.s19-prog { display: flex; align-items: center; gap: var(--s-2); }
.s19-prog .meter { flex: 1; }
.s19-prog .small { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.s19-unlock { display: flex; align-items: center; gap: var(--s-1); font-size: var(--fs-14); font-weight: 600; color: var(--sky-ink); }
.course-card.locked .cover img { filter: grayscale(.4); }

/* the lesson list (course page and lesson page) */
.s19-ol { padding: 0; overflow: hidden; }
.s19-ol-sum { display: none; }
.s19-ol summary, .s19-mod summary { list-style: none; cursor: pointer; }
.s19-ol summary::-webkit-details-marker, .s19-mod summary::-webkit-details-marker { display: none; }
.s19-ol-head { padding: var(--s-4) var(--s-4) var(--s-3); display: grid; gap: var(--s-2); border-bottom: var(--bw) solid var(--line); }
.s19-ol-title { font-size: var(--fs-16); color: var(--ink); overflow-wrap: anywhere; }
.s19-mod { border-bottom: var(--bw) solid var(--line); }
.s19-mod:last-child { border-bottom: 0; }
.s19-mod > summary { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: var(--s-2) var(--s-4); font-weight: 700; font-size: var(--fs-14); color: var(--ink); }
.s19-mod > summary:hover { background: var(--surface); }
.s19-mod-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.s19-chev { color: var(--ink-2); transition: transform .15s; flex: none; }
details[open] > summary .s19-chev { transform: rotate(180deg); }
.s19-lessons { list-style: none; margin: 0; padding: 0 0 var(--s-2); }
.s19-les { display: flex; align-items: flex-start; gap: var(--s-2); min-height: var(--tap); padding: var(--s-2) var(--s-4); color: var(--ink); font-size: var(--fs-14); text-decoration: none; }
.s19-les .ic { margin-top: 2px; color: var(--line); flex: none; }
.s19-les:hover { background: var(--surface); text-decoration: none; }
.s19-les.done .ic { color: var(--leaf); }
.s19-les.locked { color: var(--ink-2); }
.s19-les[aria-current] { background: var(--sky-tint); color: var(--sky-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--sky); }
.s19-les[aria-current] .ic { color: var(--sky-ink); }
.s19-les-t { min-width: 0; overflow-wrap: anywhere; }
.s19-les-s { display: block; font-size: var(--fs-13); font-weight: 400; color: var(--ink-2); }
.s19-ol-col { min-width: 0; }
@media (min-width: 1000px) { .s19-ol-col { position: sticky; top: calc(var(--topbar-h) + 64px); max-height: calc(100vh - var(--topbar-h) - 80px); overflow: auto; } }
@media (max-width: 999px) {
  .s19-ol-sum { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: var(--s-2) var(--s-4); font-weight: 700; color: var(--ink); }
  .s19-ol-sum > span:first-of-type { flex: 1; }
  .s19-ol[open] > .s19-ol-sum { border-bottom: var(--bw) solid var(--line); }
}

/* the course page and the lesson page */
.s19-course > section > * + *, .s19-player > section > * + * { margin-top: var(--s-4); }
.s19-course-card .s19-course-cover { margin: calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) var(--s-4); aspect-ratio: 16 / 6; overflow: hidden; background: var(--sky-tint); border-radius: var(--r-card) var(--r-card) 0 0; }
.s19-course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s19-upnext { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-3); border: var(--bw) solid var(--line); border-radius: var(--r-ctl); color: var(--ink); text-decoration: none; min-height: var(--tap); }
.s19-upnext:hover { border-color: var(--sky); text-decoration: none; }
.s19-upnext > span { flex: 1; min-width: 0; display: grid; }
.s19-upnext > .ic:first-child { color: var(--sky-ink); }
.s19-lesson-head { display: flex; align-items: flex-start; gap: var(--s-3); margin: 4px 0 var(--s-3); flex-wrap: wrap; }
.s19-lesson-head h1 { flex: 1; min-width: 200px; margin: 0; font-size: var(--fs-22); line-height: var(--lh-tight); overflow-wrap: anywhere; }
.s19-lesson-head form { margin: 0; }
.s19-tick { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-pill);
  border: var(--bw) solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: var(--fs-14); font-weight: 600; cursor: pointer; text-decoration: none; }
.s19-tick .ic { color: var(--leaf); }
button.s19-tick:hover, a.s19-tick:hover { border-color: var(--leaf); background: var(--surface); text-decoration: none; }
.s19-tick.done { background: color-mix(in srgb, var(--leaf) 14%, var(--card)); border-color: var(--leaf); color: var(--leaf-ink); cursor: default; }
.s19-tick.done .ic { color: var(--leaf-ink); }
.s19-tick.wait { cursor: default; color: var(--ink-2); }
.s19-tick.wait .ic { color: var(--ink-2); }
