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

/* ---- section 8: leaderboards (community/progress.html) ---------------------------------------------------------- */
.lb-top { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .lb-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.lb-me { display: flex; gap: var(--s-4); align-items: flex-start; }
.lb-me .av-lg { width: 96px; height: 96px; }
.lb-me .av-lg .av-ini { font-size: var(--fs-28); }
.lb-me-text { min-width: 0; flex: 1; }
.lb-me-name { display: block; font-size: var(--fs-22); line-height: var(--lh-tight); overflow-wrap: anywhere; }
.lb-me-level { color: var(--sky-ink); font-weight: 600; margin-top: var(--s-1); }
.lb-me-meter { margin: var(--s-2) 0; max-width: 280px; }
.lb-me-week { color: var(--ink-2); }
.lb-me-week b { color: var(--ink); }
.lb-note { margin: var(--s-2) 0 0; }
.lb-h { font-size: var(--fs-18); margin: 0 0 var(--s-2); }
.lb-level-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
@media (min-width: 560px) { .lb-level-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); } }
.lb-lv { display: flex; align-items: flex-start; gap: var(--s-2); padding: var(--s-1) 0; min-height: var(--tap); }
.lb-seal { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-13); background: var(--surface); color: var(--ink-2); border: var(--bw) solid var(--line); }
.lb-lv.reached .lb-seal { background: var(--sky-tint); color: var(--sky-ink); border-color: var(--sky-tint); }
.lb-lv.now .lb-seal { background: var(--sky-deep); color: var(--bg); border-color: var(--sky-deep); }
.lb-lv-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.lb-lv-text b { overflow-wrap: anywhere; }
.lb-opens { color: var(--sky-ink); display: flex; gap: var(--s-1); align-items: flex-start; overflow-wrap: anywhere; }
.lb-opens .ic { flex: none; margin-top: 2px; }
.lb-pct { white-space: nowrap; }
.lb-updated { display: flex; align-items: center; gap: var(--s-1); justify-content: flex-end; margin: var(--s-2) 0 var(--s-3); }
.lb-pick { margin-bottom: var(--s-3); }
.lb-cols { display: grid; gap: var(--s-3); }
.lb-cols > .card + .card { margin-top: 0; }
.lb-col-h { font-size: var(--fs-16); margin: 0 0 var(--s-2); }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list .lb-row { min-height: var(--tap); }
.lb-row-mine { margin-top: var(--s-2); border-top: var(--bw) dashed var(--line); }
.lb-name { color: var(--ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.lb-empty { margin: 0; }
.lb-medal { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.lb-medal .ic { width: 16px; height: 16px; }
.lb-medal b { position: absolute; right: -4px; bottom: -4px; min-width: 16px; height: 16px; border-radius: var(--r-pill); background: var(--card);
  border: var(--bw) solid var(--line); font-size: 11px; line-height: 14px; text-align: center; color: var(--ink); }
.lb-medal.m1 { background: var(--sun); color: var(--ink); }
.lb-medal.m2 { background: var(--line); color: var(--ink); }
.lb-medal.m3 { background: color-mix(in srgb, var(--sun) 45%, var(--rose)); color: var(--ink); }
/* phones and tablets: one column at a time, picked by the period links (?period=) */
@media (max-width: 959px) { .lb-col:not(.on) { display: none; } }
@media (min-width: 960px) { .lb-pick { display: none; } .lb-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- section 9: About (community/about.html) -------------------------------------------------------------------- */
.ab-card { display: flex; flex-direction: column; gap: var(--s-3); }
.ab-head { margin: 0; }
.ab-title { margin: 0; font-size: var(--fs-28); line-height: var(--lh-tight); overflow-wrap: anywhere; }
.ab-rating { display: flex; align-items: center; gap: var(--s-2); margin: 0; flex-wrap: wrap; }
.ab-stars { display: inline-flex; gap: 2px; color: var(--line); }
.ab-star .ic { fill: none; stroke: var(--ink-2); }
.ab-star.on .ic { fill: var(--sun); stroke: var(--sun); }
.ab-star.half .ic { fill: color-mix(in srgb, var(--sun) 45%, var(--bg)); stroke: var(--sun); }
.ab-stage { border-radius: var(--r-ctl); overflow: hidden; background: var(--sky-tint); aspect-ratio: 16 / 9; scroll-margin-top: calc(var(--topbar-h) + 64px); }
.ab-stage > img, .ab-stage > video, .ab-stage picture, .ab-stage picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-stage > video { background: var(--ink); object-fit: contain; }
.ab-stage .embed { margin: 0; border-radius: 0; height: 100%; }
.ab-thumbs { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-1); scrollbar-width: thin; }
.ab-thumb { flex: none; width: 88px; height: 56px; border-radius: var(--r-ctl); overflow: hidden; border: 2px solid transparent; background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; }
.ab-thumb img, .ab-thumb picture, .ab-thumb picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-thumb.on { border-color: var(--sky-deep); }
.ab-thumb:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 2px; }
.ab-thumb-play { color: var(--sky-ink); }
.ab-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ab-chips .chip { cursor: default; }
.ab-chips .chip:hover { background: var(--card); }
.ab-owner .av { margin-left: calc(-1 * var(--s-2)); }
.ab-desc { overflow-wrap: anywhere; }
.ab-h2 { font-size: var(--fs-18); margin: var(--s-3) 0 0; }
.ab-join { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding-top: var(--s-3); border-top: var(--bw) solid var(--line); }
.ab-join p { margin: 0; }
.ab-join-state { display: inline-flex; align-items: center; gap: var(--s-1); }
.ab-join-state .ic { color: var(--leaf-ink); }
.ab-join-btn { min-height: var(--tap); }
.ab-join-note { flex-basis: 100%; }
.ab-side-join .btn { display: flex; width: 100%; margin-top: var(--s-3); }
.ab-side-join .ab-join-note, .ab-side-join .ab-join-state + p { margin: var(--s-2) 0 0; }
.ab-side-join .price-card .amount { font-size: var(--fs-28); margin-top: 0; }
@media (max-width: 899px) { .ab-side-join { display: none; } }  /* phones: the Join under the description is the one */

/* ---- section 10: the member's community settings (community/_member_settings.html) ------------------------------ */
.ms-head { margin-bottom: 0; }
.ms-head h1, .ms-head h2 { margin: 0; font-size: var(--fs-22); }
.ms-for { margin: 0 0 var(--s-2); }
.ms-tabs { margin-bottom: var(--s-3); }
.ms-panel { display: flex; flex-direction: column; gap: var(--s-2); }
.ms-panel[hidden] { display: none; }
.ms-h { font-size: var(--fs-18); margin: 0; }
.ms-earn { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); margin: 0; }
.ms-stats { margin: 0; }
.ms-set { border: 0; margin: 0 0 var(--s-3); padding: 0; min-width: 0; }
.ms-set legend { font-weight: 600; padding: 0; margin-bottom: var(--s-1); }
.ms-set p { margin: 0 0 var(--s-1); }
.ms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.ms-actions form { margin: 0; }
.ms-actions .btn { min-height: var(--tap); }
.ms-dl { margin: 0; display: grid; gap: var(--s-2); }
.ms-dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-2); }
.ms-dl dt { color: var(--ink-2); font-size: var(--fs-14); }
.ms-dl dd { margin: 0; overflow-wrap: anywhere; }
.ms-leave { margin-top: var(--s-3); padding-top: var(--s-3); border-top: var(--bw) solid var(--line); }
.ms-leave form { margin: 0 0 var(--s-1); }
.ms-leave .btn { min-height: var(--tap); }
.ms-leave p { margin: 0; }
.ms-page { padding: 0; }
