:root {
  --bg: #fff; --card: #fff; --text: #1d2327; --muted: #5f6b73; --line: #dfe3e6;
  --accent: #1f6f8b; --accent-text: #fff; --error: #b3261e; --ok: #1e7a3c; --note: #fff7e0;
  --soft: #e6f1f4; --sage: #7fa88f;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text);
       min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem;
       border-bottom: 1px solid var(--line); background: var(--card); }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text); }
#nav { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
main { flex: 1; width: 100%; max-width: 56rem; margin: 0 auto; padding: 2rem 1rem; outline: none; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1.5rem 1rem; }
.hero { text-align: center; padding: 3rem 0; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 .75rem; }
.hero p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.5rem; font-size: 1.1rem; }
.row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: .6rem 1.1rem; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent);
       color: var(--accent-text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: .6; cursor: wait; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.narrow { max-width: 26rem; margin: 0 auto; }
form label { display: block; margin: 0 0 1rem; font-weight: 600; font-size: .95rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  padding: .55rem .65rem; font: inherit; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); }
form .check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
@media (max-width: 30rem) { .two { grid-template-columns: 1fr; } }
.msg { padding: .6rem .8rem; border-radius: 6px; margin: 0 0 1rem; }
.msg.error { color: var(--error); border: 1px solid currentColor; }
.msg.ok { color: var(--ok); border: 1px solid currentColor; }
.note { background: var(--note); border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; margin-bottom: 1.5rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
h2 { margin: 2rem 0 .75rem; font-size: 1.2rem; }
ul.list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
ul.list li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem;
             display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tag { font-size: .8rem; padding: .1rem .5rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; align-self: center; }
input:not([type=checkbox]):not([type=radio]), select, textarea { font: inherit; }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea { display: block; width: 100%; margin-top: .3rem; }
textarea { resize: vertical; }
.row.left { justify-content: flex-start; align-items: center; margin: 1rem 0; }
.pre { white-space: pre-line; }
.card + .card { margin-top: 1.5rem; }

/* catalog */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; align-items: end; margin-bottom: 1.5rem; }
.filters label { margin: 0; }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.course { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.course img, .img-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); display: block; }
.course-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.course-body h3 { margin: 0; font-size: 1.05rem; }
.course-body p { margin: 0; flex: 1; }
.hero-img { width: 100%; max-height: 18rem; object-fit: cover; border-radius: 10px; }

/* player */
.player { display: grid; grid-template-columns: 16rem 1fr; gap: 1rem; align-items: start; }
@media (max-width: 45rem) { .player { grid-template-columns: 1fr; } }
.outline h3 { margin: 0 0 .5rem; font-size: 1rem; }
.outline ol { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: .4rem; }
.outline .linkish { text-align: left; }
.stage h2 { margin-top: 0; }
.stage video { width: 100%; max-height: 70vh; background: #000; border-radius: 6px; }
.question { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; margin: 0 0 1rem; }
.question legend { font-weight: 600; padding: 0 .25rem; }
.question .check { margin: .4rem 0; font-weight: 400; }
.check.inline { display: inline-flex; margin: 0 .6rem 0 0; font-weight: 400; }

/* admin */
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a { padding: .5rem .8rem; text-decoration: none; border-radius: 6px 6px 0 0; }
.tabs a.active { background: var(--card); border: 1px solid var(--line); border-bottom-color: var(--card); margin-bottom: -1px; color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .95rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td input, td select { margin: .2rem .3rem .2rem 0; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--text); }
.narrow-input { width: 7rem; }
.tag.warn { color: var(--error); border-color: currentColor; }
/* Tag meanings: attn = waiting on an admin, live = on sale or in use, warn = blocked. */
.tag.attn { color: #8a5a00; background: #fdf1dc; border-color: #f0d9a8; }
.tag.live { color: #1e6b36; background: #e3f3e8; border-color: #bfe3cb; }
.tabs a { display: inline-flex; gap: .4rem; align-items: center; }
.tabs .count { font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; padding: .05rem .45rem; border-radius: 99px; background: #fdf1dc; color: #8a5a00; }
.admin-h { font-size: 1.6rem; margin: .5rem 0 1rem; }
.filters-row { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 1rem; }
.filters-row a.active { font-weight: 700; color: var(--text); text-decoration: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.nowrap { white-space: nowrap; }
.decide-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.decide-row input:not([type=number]):not(.narrow-input) { flex: 1 1 11rem; min-width: 9rem; }
td .decide-row input, td .decide-row select { margin: 0; }
.manage summary { cursor: pointer; color: var(--accent); text-decoration: underline; width: max-content; }
.manage fieldset { margin: .5rem 0; }
.manage fieldset .btn { margin-left: .4rem; }
.manage legend { font-weight: 600; margin-bottom: .25rem; }
.manage .row.left { margin: .5rem 0 0; gap: 1rem; }
.bundle-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .4rem 1rem; }
.stats .card + .card { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 20; max-width: min(36rem, calc(100vw - 2rem)); padding: .7rem 1rem; border-radius: 8px;
  background: var(--text); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none;
  transform: translate(-50%, 1rem); transition: opacity .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
/* Phones: admin tables become labeled cards, so every action stays on screen. */
@media (max-width: 45rem) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs a { white-space: nowrap; }
  .admin-body .table-wrap { overflow: visible; }
  .admin-body .table-wrap :is(table, tbody, tr, td) { display: block; width: 100%; }
  .admin-body .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-body .table-wrap table { background: none; }
  .admin-body .table-wrap tr { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .9rem; margin-bottom: .75rem; }
  .admin-body .table-wrap td { border: 0; padding: .35rem 0; text-align: left; }
  .admin-body .table-wrap td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
  .admin-body :is(.decide-row .btn, .decide-row input, .decide-row select) { flex: 1 1 100%; min-height: 44px; }
  .admin-body .narrow-input { width: 100%; }
  .admin-body .linkish, .admin-body .manage summary { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; }
.stat { padding: 1rem; }
.stat strong { font-size: 1.4rem; }
main { max-width: 72rem; }

/* authoring */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .7; }
.label { font-weight: 600; font-size: .95rem; margin: 1rem 0 .3rem; }
.checks { display: flex; flex-wrap: wrap; gap: .3rem .2rem; }
.thumb { width: 8rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.item { border-top: 1px solid var(--line); padding: 1rem 0; }
.choice input:not([type=checkbox]) { flex: 1; min-width: 10rem; }
.question textarea { width: 100%; margin: .4rem 0; }

.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }

/* home: the board question answered beside a real certificate, then the catalog as a short list grouped by topic. */
::selection { background: var(--soft); color: var(--text); }
html { accent-color: var(--accent); caret-color: var(--accent); }
a { text-underline-offset: .18em; }
.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 1rem 0 3rem; }
.lead h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; text-wrap: balance; max-width: 16ch; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 34rem; margin: 0; text-wrap: pretty; }
.boardpick { margin: 1.75rem 0 0; padding: 0; border: 0; min-height: 9rem; }
.boardpick legend { font-weight: 700; margin-bottom: .6rem; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span { display: inline-block; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.boardpick select { margin-top: .1rem; }
.answer { margin-top: 1rem; padding: 1rem 1.1rem; background: var(--soft); border-radius: 10px; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; }
.answer p { margin: 0; }
.answer strong { font-variant-numeric: tabular-nums; }
.answer span { display: block; color: var(--muted); font-size: .9rem; }
.answer.swap { animation: settle .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes settle { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.elsewhere { margin: .75rem 0 0; font-size: .9rem; color: var(--muted); }

/* The certificate drawn the way src/lib/certificate.ts draws the PDF: paper, teal frame, gold rules and seal. */
.proof { margin: 0; }
.cert { container-type: inline-size; aspect-ratio: 11 / 8.5; background: #fcf9ed; border-radius: 4px; position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 18px 40px -12px rgba(0, 0, 0, .25); transform: rotate(-1.2deg); }
.cert::before { content: ""; position: absolute; inset: 2.6cqw; border: 1.1cqw solid var(--accent); }
.cert::after { content: ""; position: absolute; inset: 4.4cqw; border: .25cqw solid #b8903f; outline: .1cqw solid #b8903f; outline-offset: .55cqw; }
.cert-in { position: absolute; inset: 6cqw; display: flex; flex-direction: column; align-items: center; text-align: center; font-family: Georgia, "Times New Roman", serif; color: #262626; z-index: 1; }
.c-brand { font-weight: 700; color: var(--accent); letter-spacing: .3em; font-size: 2cqw; margin-top: 1cqw; }
.c-rule { width: 12cqw; height: .12cqw; background: #b8903f; margin: 1.2cqw 0 2.4cqw; }
.c-title { font-weight: 700; font-size: 5.4cqw; line-height: 1; }
.c-small { font-style: italic; color: #616161; font-size: 2cqw; margin-top: 2cqw; }
.c-name { font-style: italic; font-weight: 700; color: var(--accent); font-size: 4.4cqw; margin-top: 1.2cqw; padding: 0 6cqw .8cqw; border-bottom: .12cqw solid #b8903f; }
.c-course { font-weight: 700; font-size: 3cqw; line-height: 1.2; margin-top: 1.4cqw; max-width: 70cqw; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-row { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 3cqw; }
.c-sign { font-style: italic; font-size: 2cqw; border-bottom: .12cqw solid #262626; padding-bottom: .5cqw; }
.c-sign small { display: block; font-style: normal; color: #616161; font-size: 1.5cqw; margin-top: .6cqw; position: relative; top: 2.6cqw; }
.c-seal { width: 12cqw; aspect-ratio: 1; border-radius: 50%; background: #b8903f; color: #fcf9ed; display: grid; place-content: center; font-weight: 700; font-size: 4cqw; line-height: 1;
  box-shadow: inset 0 0 0 .8cqw #b8903f, inset 0 0 0 1cqw #fcf9ed; }
.c-seal small { font-size: 1.3cqw; letter-spacing: .1em; }
.c-foot { font-size: 1.35cqw; color: #616161; margin-top: 3.6cqw; }
.proof figcaption { margin-top: 1.5rem; font-size: .95rem; color: var(--muted); max-width: 30rem; }
.stamp { display: inline-block; font-weight: 700; font-size: .7rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: .25rem .4rem; margin-right: .4rem; vertical-align: .1em; }

/* The catalog as a list, the way a small press lists its titles. */
.sec { padding-top: 3rem; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; border-bottom: 2px solid var(--text); padding-bottom: .6rem; }
.sec-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
.sec-head p { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.topic { margin-top: 2rem; }
.topic h3 { font-size: 1rem; margin: 0 0 .25rem; display: flex; gap: .5rem; align-items: baseline; }
.topic h3 span { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.titles { list-style: none; margin: 0; padding: 0; }
.titles li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 8rem 4.5rem; gap: .5rem 1.25rem; align-items: start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.row-img { width: 6rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--soft); display: block; }
.titles .t { font-weight: 600; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.titles .t:hover { color: var(--accent); text-decoration: underline; }
.who { display: block; font-size: .9rem; color: var(--muted); margin-top: .15rem; }
.boards { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.b { font-size: .78rem; font-weight: 600; padding: .12rem .5rem; border-radius: 4px; background: var(--soft); color: #17566c; }
.b.none { background: none; color: var(--muted); font-weight: 400; padding-left: 0; }
.hrs, .cost { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hrs strong { font-size: 1.15rem; }
.cost { font-weight: 600; }
.more { display: inline-block; margin-top: .6rem; font-size: .95rem; }
.key { margin: 1.25rem 0 0; font-size: .9rem; color: var(--muted); }
.all { margin-top: 1.5rem; }

/* Renewal: the product doing the job, with sample data labeled as such. */
.renew { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.renew h2 { font-size: 1.6rem; margin: 0 0 .75rem; letter-spacing: -.01em; }
.renew p { margin: 0 0 1rem; max-width: 34rem; }
.transcript { border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.tr-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.tr-head strong { display: block; }
.transcript table { font-size: .9rem; }
.transcript th { font-weight: 600; color: var(--muted); font-size: .8rem; }
.transcript .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.transcript td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.transcript tfoot td { font-weight: 700; border-bottom: 0; }
.remind { display: flex; gap: .6rem; align-items: center; padding: .75rem 1.1rem; background: var(--note); border-top: 1px solid var(--line); font-size: .9rem; }
.remind svg { flex: none; }

.teach { margin-top: 3.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 2rem 0; border-top: 2px solid var(--text); }
.teach h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.teach p { margin: 0; color: var(--muted); max-width: 40rem; }
.faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.faq h3 { font-size: 1rem; margin: 0 0 .4rem; }
.faq p { margin: 0; color: var(--muted); font-size: .95rem; }
.cta { text-align: center; margin-top: 3rem; background: var(--soft); border: 0; }
.cta h2 { margin-top: 0; }
@media (max-width: 56rem) { .lead, .renew { grid-template-columns: 1fr; gap: 2rem; } .faq { grid-template-columns: 1fr; gap: 1.25rem; } }
@media (max-width: 36rem) {
  .titles li { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
  .row-img { width: 4.5rem; }
  .titles .cost { grid-column: 3; grid-row: 2; }
  /* Phones: the wordmark gets its own row and the nav runs on the row below, instead of wrapping beside it. */
  .top { flex-wrap: wrap; row-gap: .5rem; }
  .top .brand { white-space: nowrap; }
  #nav { width: 100%; }
  #nav .btn { padding: .45rem .75rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .answer.swap { animation: none; } .cert { transform: none; } }

.c-approved { margin-top: .8cqw; }
.cert-slot { aspect-ratio: 11 / 8.5; border-radius: 4px; background: var(--soft); }
.seg span strong, .seg span small { display: block; }
.seg span small { font-weight: 400; font-size: .8rem; opacity: .85; }

/* Contact form: the honeypot field stays out of sight and out of the tab order. */
.contact { max-width: 40rem; margin: 0 auto; }
.contact textarea { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* admin "view as" banner */
.view-as { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .6rem 1rem;
           background: #fff4d6; border-bottom: 1px solid #e8c766; color: #5a4300; font-size: .95rem; }
.view-as[hidden] { display: none; }
.view-as .btn { padding: .3rem .8rem; }

/* My learning: course and certificate cards with a status colour on the left edge. */
.mylist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.mylist li { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1rem; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-left: 4px solid var(--st, var(--line)); border-radius: 10px; padding: .75rem 1rem .75rem .75rem; }
.mylist h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.mylist h3 a { color: var(--text); text-decoration: none; }
.mylist h3 a:hover { text-decoration: underline; }
.mybody { min-width: 0; display: grid; gap: .35rem; justify-items: start; }
.mythumb { width: 7.5rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--soft);
  display: grid; place-items: center; color: var(--accent); font-weight: 700; font-size: 1.6rem; }
.mythumb.seal { background: #fbf6ea; }
.mythumb.seal span { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #b8903f; color: #fff; font-size: .85rem;
  display: grid; place-items: center; box-shadow: 0 0 0 3px #fbf6ea, 0 0 0 4px #b8903f; }
.st-progress { --st: #d99a2b; }
.st-completed { --st: var(--ok); }
.st-cert { --st: #b8903f; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .15rem .65rem;
  border-radius: 99px; white-space: nowrap; }
.status::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status.progress { background: #fdf1dc; color: #8a5a00; }
.status.completed { background: #e3f3e8; color: #1e6b36; }
.counts { margin: -.25rem 0 .75rem; }
@media (max-width: 600px) {
  .mylist li { grid-template-columns: 5rem 1fr; }
  .mythumb { width: 5rem; font-size: 1.2rem; }
  .myact { grid-column: 1 / -1; }
  .myact .btn { display: block; text-align: center; }
}

/* Skip link: hidden until keyboard focus. */
.skip { position: absolute; left: -999px; top: .5rem; z-index: 10; background: var(--accent); color: var(--accent-text); padding: .5rem 1rem; border-radius: 6px; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Focus moved by script (page change, opened lesson) is for screen readers; no ring. */
[tabindex="-1"]:focus { outline: none; }

/* Ratings and reviews. */
.rating { font-size: .85rem; color: var(--muted); }
.stars { color: #b8903f; letter-spacing: .05em; }
.reviews { list-style: none; padding: 0; display: grid; gap: .75rem; }
.reviews li { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; }
.reviews p { margin: .35rem 0 0; }
.rate { margin-top: 1.5rem; }
.starpick { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* Course progress on My Learning. */
.progress-wrap { display: grid; gap: .25rem; margin-top: .5rem; max-width: 22rem; }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.st-completed .bar span { background: var(--ok); }
