/* practice.css — Practice-at-Home lesson library (practice.js), mounted in the
   Support page's Practice-at-Home tab. Load after theme-gladiators.css. */

/* Category bar: a second sticky strip tucked under the page's main tab bar. */
/* Sticky just under the main bar: --jump-h is the main bar's measured height (practice.js). */
.jump.jump-sub { top: calc(var(--jump-h, 41px) + 7px); margin: -8px 0 18px; z-index: 4; }
@media (min-width: 900px) { .jump.jump-sub { top: calc(var(--jump-h, 41px) + 15px); } }
/* Phones: one swipeable row instead of wrapping into two. */
@media (max-width: 560px) {
  .jump.jump-sub .seg { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-right: 10px; }
  .jump.jump-sub .seg::-webkit-scrollbar { display: none; }
  .jump.jump-sub .seg-btn { flex: 0 0 auto; }
}
.jump-sub .seg { gap: 4px; background: rgba(10,20,40,0.78); }
.jump-sub .seg-btn { padding: 7px 8px; font-size: 12px; }
.jump-sub .seg-btn .n { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 6px; font-size: 11px; font-weight: 800; background: rgba(232,171,59,0.14); color: var(--accent-lt); }
.jump-sub .seg-btn.is-active .n { background: var(--accent); color: #16100a; }
.jump-sub .seg-btn .n svg { width: 11px; height: 11px; }
@media (max-width: 560px) { .jump-sub .seg-btn { padding: 7px 4px; font-size: 11px; gap: 4px; } }

/* Progress strip */
.prog-card { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; margin-bottom: 18px; }
@media (min-width: 720px) { .prog-card { grid-template-columns: 1fr auto; } }
.prog-card .prog-bar { height: 10px; background: rgba(255,255,255,0.06); }
.prog-card .prog-fill { background: linear-gradient(90deg, var(--cobalt), var(--accent)); }
.prog-txt { display: flex; justify-content: space-between; }

/* Start-here trio */
.start-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 720px) { .start-grid { grid-template-columns: repeat(3, 1fr); } }
.start { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.035); border: 1px solid var(--border-soft); }
.start-t { font-size: 13px; font-weight: 700; color: var(--heading); line-height: 1.3; }
.start-m { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.start .btn { align-self: flex-start; margin-top: 4px; }

/* Lessons as stages of tasks (kit .stage/.task), themed */
.lesson-stage { margin-bottom: 18px; }
.lesson-stage .stage-head { flex-wrap: wrap; }
.stage-sub { flex-basis: 100%; font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: -2px; }
.task { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 13px; border-radius: 12px; padding: 10px 8px; margin: 0 -8px; transition: background .12s; }
.task:hover { background: rgba(255,255,255,0.03); }
.task-title .chip { margin-left: 2px; }
.task-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.task-actions .btn.sm { padding: 6px 11px; }
.task-len { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.task-alt { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.task-alt .link-btn { font-size: 11.5px; font-weight: 600; }
@media (max-width: 560px) { .task { grid-template-columns: auto 1fr; } .task-actions { grid-column: 2; margin-left: 0; margin-top: 4px; } }
.task.done { opacity: .82; }
.task-check { cursor: pointer; }
.task-check:hover { border-color: var(--accent); }
.task.done .task-check { background: var(--accent); border-color: var(--accent); color: #16100a; }

/* Video modal */
.vid-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.vid-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.epigraph { margin-top: 30px; }
