/* Academy: courses, the player and the builder. Colors come from the palette
   tokens only (--bs-primary, --bs-paper-bg, --bs-border-color); nothing here
   names a color of its own. */

.academy-hero { position: relative; overflow: hidden; border-radius: .75rem;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .14), rgba(var(--bs-primary-rgb), .03)); }
.academy-hero .academy-hero-art { max-height: 170px; width: auto; }
.academy-hero .display-6 { font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.academy-stat { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.academy-stat .avatar-initial { font-size: 1.6rem; }
.academy-stat strong { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.academy-stat small { color: var(--bs-secondary-color); }

/* course cards */
.ac-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--bs-border-color); border-radius: .75rem;
  background: var(--bs-paper-bg); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.ac-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); }
.ac-card-cover { position: relative; aspect-ratio: 16 / 9; background: rgba(var(--bs-primary-rgb), .08); overflow: hidden; }
.ac-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-card-cover .ac-cover-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; color: rgba(var(--bs-primary-rgb), .55); }
.ac-card-cover .ac-cover-tag { position: absolute; top: .6rem; left: .6rem; }
.ac-card-cover .ac-cover-done { position: absolute; top: .6rem; right: .6rem; }
.ac-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1rem 1.1rem 1.1rem; gap: .45rem; }
.ac-card-title { font-size: 1.02rem; font-weight: 600; line-height: 1.3; margin: 0; }
.ac-card-title a { color: var(--bs-heading-color); }
.ac-card-summary { color: var(--bs-secondary-color); font-size: .9rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-card-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .82rem; color: var(--bs-secondary-color); }
.ac-card-meta i { margin-right: .25rem; }
.ac-card-actions { margin-top: auto; display: flex; gap: .5rem; padding-top: .5rem; }
.ac-card-actions .btn { flex: 1 1 0; white-space: nowrap; }
.ac-progress { height: 7px; border-radius: 1rem; }
.ac-rating { color: var(--bs-warning); font-size: .85rem; white-space: nowrap; }
.ac-rating .n { color: var(--bs-secondary-color); }

/* the course page */
.ac-cover-wide { aspect-ratio: 21 / 9; border-radius: .75rem; overflow: hidden; background: rgba(var(--bs-primary-rgb), .08); position: relative; }
.ac-cover-wide img { width: 100%; height: 100%; object-fit: cover; }
.ac-cover-wide .ac-cover-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem;
  color: rgba(var(--bs-primary-rgb), .45); }
.ac-numbers p { margin-bottom: .5rem; white-space: nowrap; }
.ac-numbers i { font-size: 1.3rem; vertical-align: middle; margin-right: .5rem; color: var(--bs-primary); }
.ac-curriculum .accordion-button { background: transparent; }
.ac-lesson { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--bs-border-color); min-width: 0; }
.ac-lesson:first-child { border-top: 0; }
.ac-lesson .ac-lesson-mark { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; border: 1px solid var(--bs-border-color); font-size: .95rem; color: var(--bs-secondary-color); }
.ac-lesson.is-done .ac-lesson-mark { background: var(--bs-success); border-color: var(--bs-success); color: #fff; }
.ac-lesson.is-current { background: rgba(var(--bs-primary-rgb), .07); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: .4rem; }
.ac-lesson .ac-lesson-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-lesson .ac-lesson-title a { color: inherit; }
.ac-lesson small { color: var(--bs-secondary-color); white-space: nowrap; }
.ac-lesson.is-locked { opacity: .55; }
.ac-sticky { position: sticky; top: calc(var(--academy-top, 4.5rem) + .5rem); }
.ac-stars { display: inline-flex; gap: .1rem; }
.ac-stars button { background: none; border: 0; padding: 0; font-size: 1.4rem; color: var(--bs-border-color); cursor: pointer; line-height: 1; }
.ac-stars button.on { color: var(--bs-warning); }
.ac-review { padding: .8rem 0; border-top: 1px solid var(--bs-border-color); }
.ac-review:first-child { border-top: 0; }

/* the player */
.ac-player-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: .6rem; overflow: hidden; }
.ac-player-video iframe, .ac-player-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-body { font-size: 1.02rem; line-height: 1.7; }
.ac-body img { max-width: 100%; height: auto; border-radius: .5rem; }
.ac-body pre { padding: 1rem; border-radius: .5rem; background: rgba(var(--bs-primary-rgb), .06); overflow-x: auto; }
.ac-body table { width: 100%; margin-bottom: 1rem; }
.ac-body blockquote { border-left: 3px solid var(--bs-primary); padding-left: 1rem; color: var(--bs-secondary-color); }
.ac-quiz .ac-q { padding: 1rem 0; border-top: 1px solid var(--bs-border-color); }
.ac-quiz .ac-q:first-child { border-top: 0; padding-top: 0; }
.ac-quiz .form-check { padding: .4rem .5rem .4rem 2.2rem; border-radius: .4rem; }
.ac-quiz .form-check.is-right { background: rgba(var(--bs-success-rgb), .14); }
.ac-quiz .form-check.is-wrong { background: rgba(var(--bs-danger-rgb), .12); }
.ac-quiz .ac-explain { font-size: .9rem; color: var(--bs-secondary-color); margin: .4rem 0 0 .5rem; }
.ac-note textarea { min-height: 7rem; resize: vertical; }
.ac-done-banner { border: 1px solid rgba(var(--bs-success-rgb), .45); background: rgba(var(--bs-success-rgb), .1); border-radius: .6rem; }
.ac-nav .btn { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the builder */
.ac-builder .ac-section { border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-paper-bg); margin-bottom: .75rem; }
.ac-builder .ac-section-head { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; }
.ac-builder .ac-section-head .ac-handle, .ac-builder .ac-lesson-row .ac-handle { cursor: grab; color: var(--bs-secondary-color); }
.ac-builder .ac-section-title { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.ac-builder .ac-section-title input { font-weight: 600; }
.ac-builder .ac-lesson-list { padding: 0 .8rem .6rem; min-height: .5rem; }
.ac-builder .ac-lesson-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: .4rem; min-width: 0; }
.ac-builder .ac-lesson-row:hover { background: rgba(var(--bs-primary-rgb), .06); }
.ac-builder .ac-lesson-row .ac-kind { width: 1.8rem; text-align: center; color: var(--bs-primary); flex: 0 0 auto; }
.ac-builder .ac-lesson-row .ac-lesson-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-builder .ac-lesson-row small { color: var(--bs-secondary-color); white-space: nowrap; }
.ac-builder .sortable-ghost { opacity: .4; }
.ac-editor textarea.form-control { min-height: 40vh; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; }
.ac-editor .ac-preview { min-height: 40vh; max-height: 70vh; overflow: auto; }
.ac-cover-pick { aspect-ratio: 16 / 9; border: 1px dashed var(--bs-border-color); border-radius: .6rem; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center; color: var(--bs-secondary-color); cursor: pointer; background: rgba(var(--bs-primary-rgb), .05); }
.ac-cover-pick img { width: 100%; height: 100%; object-fit: cover; }
.ac-blockers li { margin-bottom: .25rem; }
.ac-qedit .ac-qrow { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .75rem; margin-bottom: .6rem; background: var(--bs-paper-bg); }
.ac-qedit .ac-choice { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.ac-qedit .ac-choice input[type="text"] { flex: 1 1 auto; min-width: 0; }

/* the certificate */
.ac-cert { max-width: 920px; margin: 1.5rem auto; padding: clamp(1.5rem, 5vw, 3.5rem); border: 10px double rgba(var(--bs-primary-rgb), .6);
  border-radius: .5rem; background: var(--bs-paper-bg); text-align: center; position: relative; }
.ac-cert .ac-cert-seal { width: 5rem; height: 5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); font-size: 2.6rem; margin-bottom: 1rem; }
.ac-cert h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: .08em; text-transform: uppercase; }
.ac-cert .ac-cert-name { font-size: clamp(1.5rem, 4.5vw, 2.4rem); font-weight: 600; margin: .5rem 0; }
.ac-cert .ac-cert-course { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
.ac-cert .ac-cert-foot { display: flex; justify-content: space-between; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; font-size: .9rem; }
.ac-cert .ac-cert-foot > div { flex: 1 1 12rem; border-top: 1px solid var(--bs-border-color); padding-top: .5rem; }
@media print {
  .layout-navbar, .layout-menu, .layout-footer, .ac-no-print, .content-footer, .template-customizer { display: none !important; }
  .ac-cert { border-color: #333; margin: 0; max-width: none; }
  body { background: #fff !important; }
}

@media (max-width: 767.98px) {
  .academy-hero .academy-hero-art { display: none; }
  .ac-card-actions { flex-direction: column; }
  .ac-card-actions .btn { max-width: none; }
  .ac-nav .btn { max-width: none; }
  .ac-sticky { position: static; }
}

/* ---- the course landing (hero, objectives, syllabus, FAQ) ---- */
.ac-hero { position: relative; border-radius: 1rem; overflow: hidden; min-height: 17rem; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bs-primary) 70%, #000), color-mix(in srgb, var(--bs-primary) 35%, #000)); }
.ac-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; z-index: -1; }
.ac-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15)); z-index: -1; }
.ac-hero-body { padding: clamp(1.25rem, 4vw, 2.5rem); max-width: 48rem; }
.ac-hero h1 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); color: #fff; margin-bottom: .5rem; }
.ac-hero p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.ac-hero .badge { backdrop-filter: blur(4px); }
.ac-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.ac-hero-meta i { margin-right: .3rem; }
.ac-objectives { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .6rem .9rem; }
.ac-objective { display: flex; gap: .6rem; align-items: flex-start; }
.ac-objective i { color: var(--bs-success); font-size: 1.15rem; margin-top: .05rem; flex: 0 0 auto; }
.ac-syllabus .accordion-button { font-weight: 600; }
.ac-syllabus .ac-lesson small .badge { font-weight: 500; }
.ac-faq .accordion-button { font-weight: 500; }
.ac-count { font-variant-numeric: tabular-nums; }

/* reveal on scroll (academy.js) and the reduced-motion escape hatch */
.ac-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.ac-reveal.is-in { opacity: 1; transform: none; }
.ac-reveal[data-delay="1"] { transition-delay: .08s; } .ac-reveal[data-delay="2"] { transition-delay: .16s; }
.ac-reveal[data-delay="3"] { transition-delay: .24s; } .ac-reveal[data-delay="4"] { transition-delay: .32s; }

/* ---- the player: pages ---- */
.ac-progressbar { height: 4px; border-radius: 1rem; background: rgba(var(--bs-primary-rgb), .15); overflow: hidden; margin-bottom: 1rem; }
.ac-progressbar i { display: block; height: 100%; width: 0; background: var(--bs-primary); transition: width .4s ease; }
.ac-pages { position: relative; }
.ac-page { display: none; }
.ac-page.is-active { display: block; animation: ac-page-in .45s cubic-bezier(.2, .8, .2, 1); }
.ac-page.is-active.is-back { animation-name: ac-page-back; }
.ac-page.is-active > * { animation: ac-rise .5s ease both; }
.ac-page.is-active > *:nth-child(2) { animation-delay: .06s; } .ac-page.is-active > *:nth-child(3) { animation-delay: .12s; }
.ac-page.is-active > *:nth-child(4) { animation-delay: .18s; } .ac-page.is-active > *:nth-child(5) { animation-delay: .24s; }
.ac-page.is-active > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes ac-page-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes ac-page-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes ac-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ac-pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--bs-border-color); }
.ac-dots { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; flex: 1 1 auto; }
.ac-dot { width: 2.1rem; height: .5rem; border-radius: 1rem; border: 0; padding: 0; background: rgba(var(--bs-primary-rgb), .18); cursor: pointer; transition: background .25s ease, transform .25s ease; }
.ac-dot.is-done { background: rgba(var(--bs-primary-rgb), .55); }
.ac-dot.is-active { background: var(--bs-primary); transform: scaleY(1.4); }
.ac-page-title { font-size: .8rem; color: var(--bs-secondary-color); text-align: center; flex: 1 1 100%; order: 3; }
.ac-finish { box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), .5); animation: ac-pulse 1.8s ease-out infinite; }
@keyframes ac-pulse { 70% { box-shadow: 0 0 0 10px rgba(var(--bs-success-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), 0); } }
.ac-preview-page { border: 1px dashed var(--bs-border-color); border-radius: .5rem; padding: .75rem; margin-bottom: .75rem; position: relative; }
.ac-preview-page-n { position: absolute; top: -.6rem; right: .6rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; background: var(--bs-paper-bg); padding: 0 .4rem; color: var(--bs-secondary-color); }
.ac-snippets { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .4rem; }
.ac-snippets .btn { font-size: .72rem; padding: .15rem .5rem; }

/* the progress ring in the player's sidebar */
.ac-ring { position: relative; width: 4.4rem; height: 4.4rem; flex: 0 0 auto; }
.ac-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ac-ring circle { fill: none; stroke-width: 6; }
.ac-ring .bg { stroke: rgba(var(--bs-primary-rgb), .15); }
.ac-ring .fg { stroke: var(--bs-primary); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ac-ring strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.ac-focus .ac-sidebar { display: none; }
.ac-focus .ac-main { flex: 0 0 100%; max-width: 100%; }
.ac-main .ac-body { max-width: 46rem; }

@media (prefers-reduced-motion: reduce) {
  .ac-reveal { opacity: 1; transform: none; transition: none; }
  .ac-page.is-active, .ac-page.is-active > *, .ac-finish, .wiki-check-why { animation: none !important; }
}

/* ---- polish pass: the builder's insights, keyboard moves, the reviews histogram, the contents drawer ---- */
.ac-bars { display: flex; align-items: flex-end; gap: .35rem; height: 4.5rem; }
.ac-bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.ac-bar i { display: block; width: 100%; min-height: 2px; border-radius: .2rem .2rem 0 0; background: rgba(var(--bs-primary-rgb), .55); }
.ac-bar span { font-size: .66rem; color: var(--bs-secondary-color); line-height: 1.4; }
.ac-funnel-row { display: grid; grid-template-columns: minmax(0, 11rem) 1fr auto; gap: .5rem; align-items: center; padding: .2rem 0; }
.ac-funnel-title { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-move { opacity: 0; transition: opacity .15s ease; }
.ac-section-head:hover .ac-move, .ac-lesson-row:hover .ac-move, .ac-move:focus-within { opacity: 1; }
.ac-move .btn { padding: 0 .2rem; line-height: 1; }
.ac-histogram-row { display: grid; grid-template-columns: 3rem 1fr 2rem; gap: .5rem; align-items: center; margin-bottom: .25rem; font-size: .82rem; }
.ac-histogram-row .progress { height: 6px; }
.ac-histogram-n { text-align: right; }
.ac-stars button:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; border-radius: .25rem; }
.ac-page-hint { font-size: .74rem; flex: 1 1 100%; text-align: center; order: 4; }
.ac-page-hint kbd { font-size: .7rem; padding: .05rem .3rem; }
.ac-quiz .form-check .ac-mark { font-size: .78rem; margin-left: .4rem; }
.ac-quiz .form-check.is-right .ac-mark { color: var(--bs-success); }
.ac-quiz .form-check.is-wrong .ac-mark { color: var(--bs-danger); }
.ac-lesson.is-hidden { display: none; }
.ac-note-body { white-space: pre-wrap; }
/* the reveal animation only when the script that reveals is running (html.ac-js) */
.ac-reveal { opacity: 1; transform: none; }
.ac-js .ac-reveal { opacity: 0; transform: translateY(14px); }
.ac-js .ac-reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 991.98px) {
  .ac-contents.offcanvas-lg { width: min(92vw, 24rem); }
  .ac-contents .ac-curriculum { border: 0; border-radius: 0; box-shadow: none; }
}

/* ---- phase 3: assessments, the tutor, discussion, paths, badges, drafts, certificates ---- */
.ac-tutor-log { max-height: 22rem; overflow: auto; display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.ac-tutor-log:empty { display: none; }
.ac-tutor-msg { max-width: 92%; padding: .55rem .8rem; border-radius: .8rem; font-size: .95rem; line-height: 1.55; white-space: pre-wrap; }
.ac-tutor-msg.is-user { align-self: flex-end; background: rgba(var(--bs-primary-rgb), .14); border-bottom-right-radius: .2rem; }
.ac-tutor-msg.is-tutor { align-self: flex-start; background: rgba(var(--bs-primary-rgb), .06); border: 1px solid var(--bs-border-color); border-bottom-left-radius: .2rem; }
.ac-tutor-msg.is-wait { color: var(--bs-secondary-color); font-style: italic; }
.ac-tutor-msg a.ac-tutor-go { display: inline-block; margin-top: .3rem; font-size: .85rem; }
.ac-timer { font-variant-numeric: tabular-nums; }
.ac-timer.is-low { color: var(--bs-danger); }
.ac-post { padding: .7rem 0; border-top: 1px solid var(--bs-border-color); }
.ac-post:first-child { border-top: 0; padding-top: 0; }
.ac-post.is-pinned { background: rgba(var(--bs-warning-rgb), .06); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
.ac-post .ac-reply { margin-left: 1.5rem; padding-left: .9rem; border-left: 2px solid var(--bs-border-color); border-top: 0; margin-top: .4rem; }
.ac-post-actions a { margin-right: .75rem; }
.ac-review.is-hidden { opacity: .55; }
.ac-review-reply { padding: .5rem .75rem; border-left: 3px solid var(--bs-primary); background: rgba(var(--bs-primary-rgb), .05); border-radius: 0 .4rem .4rem 0; font-size: .92rem; }
.ac-transcript summary { cursor: pointer; }
.ac-transcript-body { max-height: 14rem; overflow: auto; padding: .5rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .4rem; margin-top: .4rem; white-space: pre-wrap; }
.ac-search-hits { margin-top: .4rem; }
.ac-search-hit { display: block; padding: .35rem .5rem; border-radius: .35rem; font-size: .85rem; color: inherit; }
.ac-search-hit:hover { background: rgba(var(--bs-primary-rgb), .07); }
.ac-search-hit small { display: block; color: var(--bs-secondary-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; }
.ac-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .75rem .5rem; border: 1px solid var(--bs-border-color); border-radius: .75rem; opacity: .5; filter: grayscale(1); }
.ac-badge.is-earned { opacity: 1; filter: none; border-color: rgba(var(--bs-primary-rgb), .45); background: rgba(var(--bs-primary-rgb), .05); }
.ac-badge-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); }
.ac-badge-name { font-weight: 600; font-size: .9rem; }
.ac-badge small { color: var(--bs-secondary-color); font-size: .72rem; }
.ac-path-steps { padding-left: 1.1rem; margin: .25rem 0 .5rem; font-size: .85rem; color: var(--bs-secondary-color); }
.ac-path-steps li.is-done { color: var(--bs-success); } .ac-path-steps li.is-active { color: var(--bs-primary); }
.ac-path-list { list-style: none; padding: 0; margin: 0; }
.ac-path-item { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-top: 1px solid var(--bs-border-color); }
.ac-path-item:first-child { border-top: 0; }
.ac-path-mark { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--bs-border-color); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-weight: 600; font-size: .9rem; color: var(--bs-secondary-color); }
.ac-path-item.is-done .ac-path-mark { background: var(--bs-success); border-color: var(--bs-success); color: #fff; }
.ac-path-item.is-active .ac-path-mark { border-color: var(--bs-primary); color: var(--bs-primary); }
.ac-path-item.is-locked { opacity: .6; }
.ac-path-edit .ac-handle { cursor: grab; color: var(--bs-secondary-color); }
.ac-cert-verify { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.ac-cert-qr { border-radius: .3rem; background: #fff; padding: .2rem; }
.ac-cert-id { font-family: ui-monospace, Menlo, monospace; font-size: .7rem; }
.ac-cert-sign { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.35rem; font-weight: 400; }
.ac-sub-row { padding: .7rem 0; border-top: 1px solid var(--bs-border-color); }
.ac-sub-row:first-child { border-top: 0; padding-top: 0; }
.ac-sub-text { white-space: pre-wrap; max-height: 12rem; overflow: auto; font-size: .9rem; background: rgba(var(--bs-primary-rgb), .04); padding: .5rem .75rem; border-radius: .4rem; }
@media print { .ac-cert-verify img { filter: none; } }
.ac-cert-signature { height: 2.4rem; display: block; margin: 0 auto .1rem; }
.ac-player-video video[poster] { background: #000; }

/* live sessions, peer review */
.ac-sessions .list-group-item { border-color: var(--bs-border-color); }
.ac-peer-item { padding: .75rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; margin-bottom: .75rem; background: var(--bs-paper-bg); }
.ac-peer-item .ac-sub-text { white-space: pre-wrap; max-height: 14rem; overflow: auto; }
.ac-peer-note { padding: .5rem .75rem; border-left: 3px solid var(--bs-primary); margin-bottom: .5rem; background: var(--bs-paper-bg); border-radius: 0 .375rem .375rem 0; }

/* keyboard users: the skip link shows on focus, above the page */
.ac-skip:focus { position: absolute; z-index: 1100; top: .5rem; left: .5rem; padding: .5rem .75rem; background: var(--bs-primary); color: #fff; border-radius: .375rem; }

/* the demand card: rows with room, a count that reads as a count */
.ac-demand-head { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--bs-secondary-color); margin-bottom: .5rem; }
.ac-demand { list-style: none; padding: 0; margin: 0; }
.ac-demand li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-top: 1px solid var(--bs-border-color); min-height: 2.2rem; }
.ac-demand li:first-child { border-top: 0; }
.ac-demand li .badge { flex: 0 0 auto; min-width: 2rem; padding: .35em .6em; font-variant-numeric: tabular-nums; }

/* a card header with an action keeps the action on the line */
.academy .card-header.d-flex:not(.flex-wrap) { flex-wrap: nowrap; }
.academy .card-header.d-flex > div { min-width: 0; }
.academy .card-header.d-flex > .btn { flex: 0 0 auto; }

/* phones: two badges a row, lesson rows that give the title the room */
@media (max-width: 575.98px) {
  .ac-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .ac-badge { padding: .6rem .35rem; }
  .ac-badge small { display: none; }
  /* a lesson row becomes two lines: the title with its icon and the remove
   * button, then the minutes under the title; the hover-only move buttons
   * have no hover on touch, and the section's stats make way for its name */
  .ac-builder .ac-lesson-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: .5rem; row-gap: .1rem; align-items: center; }
  .ac-builder .ac-lesson-row .ac-handle { grid-column: 1; grid-row: 1 / span 2; }
  .ac-builder .ac-lesson-row .ac-kind { grid-column: 2; grid-row: 1; }
  .ac-builder .ac-lesson-row .ac-lesson-name { grid-column: 3; grid-row: 1; white-space: normal; overflow: visible; line-height: 1.3; }
  .ac-builder .ac-lesson-row small { grid-column: 3; grid-row: 2; font-size: .75rem; }
  .ac-builder .ac-lesson-row > .btn[data-del-lesson] { grid-column: 4; grid-row: 1 / span 2; }
  .ac-builder .ac-move { display: none; }
  .ac-builder .ac-section-head [data-section-stats] { display: none; }
}

/* Share (course page): a menu in the hero; the note says who can open the link */
.ac-share-menu { min-width: 15rem; }
.ac-share-who { white-space: normal; max-width: 17rem; line-height: 1.4; }
.ac-share-who a { display: inline-block; margin-top: .2rem; }
/* the Share button sits over the hero's top corner, outside its clip */
.ac-hero-wrap > .ac-share { position: absolute; top: 1rem; right: 1rem; z-index: 5; }
