/* PED Courses: front end. Dark, matches the single class pages. */
:root {
	--pc-accent: #7a0000;
	--pc-bg: #151515;
	--pc-card: #1e1e1e;
	--pc-card-2: #262626;
	--pc-line: rgba(255, 255, 255, .09);
	--pc-text: #f3f3f3;
	--pc-muted: #a9a9a9;
	--pc-hi: color-mix(in srgb, var(--pc-accent) 55%, #ffffff);
	--pc-radius: 14px;
	--pc-strong: #ffffff;
	--pc-ink: 255 255 255;
	--pc-fade: rgba(21, 21, 21, .78);
	--pc-bar: #101010;
	--pc-offset: 0px;
}

.pc-page { color: var(--pc-text); font-family: inherit; line-height: 1.5; background: var(--pc-bg); }
.pc-page *, .pc-page *::before, .pc-page *::after { box-sizing: border-box; }
.pc-page a { text-decoration: none; }
.pc-main { background: var(--pc-bg); }
.pc-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.pc-wrap--narrow { max-width: 780px; }
.pc-muted { color: var(--pc-muted); font-size: 14px; }
.pc-page [hidden] { display: none !important; }

/* Hero (landing) */
.pc-hero { position: relative; padding: 36px 0 44px; background: linear-gradient(180deg, var(--pc-fade), var(--pc-bg) 96%), var(--pc-cover, none) center / cover no-repeat, var(--pc-bg); }
.pc-hero__grid { display: grid; gap: 28px; align-items: center; }
.pc-back { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px 5px 8px; border: 1px solid rgb(var(--pc-ink) / .35); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--pc-strong) !important; }
.pc-hero .pc-back { margin-bottom: 18px; }
.pc-back svg { width: 14px; height: 14px; }
.pc-title { margin: 0 0 8px; color: var(--pc-strong); font-size: clamp(28px, 5vw, 44px); line-height: 1.12; font-weight: 700; }
.pc-tagline { margin: 0 0 18px; max-width: 560px; color: var(--pc-text); font-size: 17px; }
.pc-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--pc-muted); font-size: 14px; }
.pc-facts strong { color: var(--pc-strong); font-weight: 700; }
.pc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pc-cta--center { justify-content: center; }
.pc-trailer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--pc-radius); overflow: hidden; background: #000; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.pc-trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pc-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--pc-radius); box-shadow: 0 12px 40px rgba(0,0,0,.45); }

/* Buttons */
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid var(--pc-accent); border-radius: 10px; background: var(--pc-accent); color: #fff !important; font-size: 15px; font-weight: 700; cursor: pointer; transition: filter .15s, transform .15s; }
.pc-btn:hover { filter: brightness(1.25); transform: translateY(-1px); }
.pc-btn svg { width: 16px; height: 16px; }
.pc-btn__price { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); font-weight: 600; }
.pc-btn--ghost { background: transparent; border-color: rgb(var(--pc-ink) / .4); }
.pc-link { color: var(--pc-muted) !important; font-size: 14px; text-decoration: underline !important; }
.pc-link:hover { color: var(--pc-strong) !important; }

/* Sections */
.pc-section { padding: 34px 0; }
.pc-section--cta { padding-bottom: 60px; }
.pc-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pc-h2 { margin: 0 0 16px; color: var(--pc-strong); font-size: 22px; font-weight: 700; }
.pc-section__head .pc-h2 { margin: 0; }
.pc-toggle-all { background: none; border: 0; padding: 4px 0; color: var(--pc-hi); font-size: 13px; font-weight: 600; cursor: pointer; }
.pc-outcomes { display: grid; gap: 10px 28px; margin: 0 0 18px; padding: 0; list-style: none; }
.pc-outcomes li { display: flex; gap: 10px; align-items: flex-start; color: var(--pc-text); font-size: 15px; }
.pc-tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: color-mix(in srgb, var(--pc-accent) 40%, transparent); color: #fff; }
.pc-tick svg { width: 13px; height: 13px; }
.pc-about { color: var(--pc-text); font-size: 16px; }
.pc-about p { margin: 0 0 1em; }
.pc-instructor { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); background: var(--pc-card); }
.pc-instructor strong { color: var(--pc-strong); font-size: 17px; }
.pc-instructor p { margin: 6px 0 0; color: color-mix(in srgb, var(--pc-strong) 78%, transparent); }

/* Landing curriculum */
.pc-modules { display: grid; gap: 12px; }
.pc-module { border: 1px solid var(--pc-line); border-radius: var(--pc-radius); background: var(--pc-card); overflow: hidden; }
.pc-module > summary { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; }
.pc-module > summary::-webkit-details-marker { display: none; }
.pc-module__num { grid-column: 1; color: var(--pc-hi); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pc-module__title { grid-column: 1; color: var(--pc-strong); font-size: 17px; font-weight: 700; }
.pc-module__meta { grid-column: 1; color: var(--pc-muted); font-size: 13px; }
.pc-module__chev { grid-column: 2; grid-row: 1 / span 3; color: var(--pc-muted); transition: transform .2s; }
.pc-module__chev svg { display: block; width: 22px; height: 22px; }
.pc-module[open] > summary .pc-module__chev { transform: rotate(180deg); }
.pc-module__desc { margin: 0; padding: 0 18px 12px; color: var(--pc-text); font-size: 14px; }
.pc-lessons { margin: 0; padding: 0 8px 8px; list-style: none; }
.pc-lesson a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; color: var(--pc-text) !important; transition: background .15s; }
.pc-lesson a:hover { background: var(--pc-card-2); }
.pc-lesson__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pc-lesson__title { color: var(--pc-strong); font-size: 15px; font-weight: 600; }
.pc-lesson__sub { color: var(--pc-muted); font-size: 12.5px; }
.pc-lesson.is-locked .pc-lesson__title { color: color-mix(in srgb, var(--pc-strong) 78%, transparent); font-weight: 500; }
.pc-free { padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: color-mix(in srgb, var(--pc-accent) 45%, transparent); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; }
.pc-state { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.pc-state svg { width: 15px; height: 15px; }
.pc-state--play { background: rgb(var(--pc-ink) / .08); color: var(--pc-strong); }
.pc-state--lock { color: var(--pc-muted); }
.pc-state--done { background: var(--pc-accent); color: #fff; }

/* Progress bars */
.pc-bar { height: 6px; border-radius: 999px; background: rgb(var(--pc-ink) / .14); overflow: hidden; }
.pc-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--pc-accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc-accent) 70%, #fff) inset; transition: width .3s; }

/* Player */
.pc-topbar { border-bottom: 1px solid var(--pc-line); background: var(--pc-bar); }
.pc-topbar__in { display: flex; align-items: center; gap: 14px; min-height: 54px; }
.pc-topbar__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pc-strong); font-size: 15px; font-weight: 700; }
.pc-topbar__prog { display: flex; align-items: center; gap: 10px; width: 200px; color: var(--pc-muted); font-size: 12.5px; }
.pc-topbar__prog .pc-bar { flex: 1; }
.pc-stage { display: grid; gap: 22px; padding-top: 20px; padding-bottom: 50px; align-items: start; }
.pc-stage__main { min-width: 0; }
.pc-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--pc-radius); overflow: hidden; background: #000; box-shadow: 0 10px 34px rgba(0,0,0,.5); }
.pc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pc-video__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--pc-muted); }
.pc-upnext { position: absolute; left: 12px; right: 12px; bottom: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(0,0,0,.86); color: #fff; font-size: 14px; }
.pc-upnext button { border: 1px solid rgba(255,255,255,.4); border-radius: 8px; background: transparent; color: #fff; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.pc-lessonbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 6px; }
.pc-lessonbar__crumb { color: var(--pc-hi); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.pc-lessonbar__title { margin: 2px 0 0; color: var(--pc-strong); font-size: 22px; font-weight: 700; line-height: 1.2; }
.pc-lessonbar__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-nav__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid rgb(var(--pc-ink) / .3); border-radius: 8px; background: transparent; color: var(--pc-strong) !important; font-size: 13px; font-weight: 600; cursor: pointer; }
.pc-nav__btn:hover { background: var(--pc-card-2); }
.pc-nav__btn svg { width: 14px; height: 14px; }
.pc-nav__btn--next { background: var(--pc-accent); border-color: var(--pc-accent); }
.pc-nav__btn--next:hover { background: var(--pc-accent); filter: brightness(1.25); }
.pc-complete.is-done { background: color-mix(in srgb, var(--pc-accent) 55%, transparent); border-color: var(--pc-accent); }
.pc-auto { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 4px; color: var(--pc-muted); font-size: 13px; }
.pc-preview { margin: 14px 0; padding: 16px 18px; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); background: var(--pc-card); }
.pc-preview p { margin: 0 0 12px; color: var(--pc-text); }

.pc-tabs { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--pc-line); overflow-x: auto; }
.pc-tabs button { flex: none; padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--pc-muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.pc-tabs button.is-active { color: var(--pc-strong); border-bottom-color: var(--pc-accent); }
.pc-panel { display: none; padding: 18px 2px; }
.pc-panel.is-active { display: block; }
.pc-files { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pc-files a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--pc-line); border-radius: 10px; background: var(--pc-card); color: var(--pc-strong) !important; font-weight: 600; font-size: 14px; }
.pc-files a:hover { background: var(--pc-card-2); }
.pc-files svg { width: 18px; height: 18px; color: var(--pc-hi); }
#pc-note { width: 100%; padding: 12px; border: 1px solid var(--pc-line); border-radius: 10px; background: var(--pc-card); color: var(--pc-strong); font: inherit; }

/* Sidebar */
.pc-side { border: 1px solid var(--pc-line); border-radius: var(--pc-radius); background: var(--pc-card); overflow: hidden; }
.pc-side__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--pc-line); color: var(--pc-strong); font-weight: 700; }
.pc-side__head span { color: var(--pc-muted); font-size: 12px; font-weight: 500; }
.pc-side__buy { display: grid; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--pc-line); }
.pc-side__buy .pc-btn { width: 100%; }
.pc-smod { border-bottom: 1px solid var(--pc-line); }
.pc-smod:last-child { border-bottom: 0; }
.pc-smod > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; }
.pc-smod > summary::-webkit-details-marker { display: none; }
.pc-smod__text { flex: 1; min-width: 0; display: grid; }
.pc-smod__num { color: var(--pc-hi); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pc-smod__title { color: var(--pc-strong); font-size: 14px; font-weight: 700; }
.pc-smod__meta { color: var(--pc-muted); font-size: 12px; }
.pc-smod[open] > summary .pc-module__chev { transform: rotate(180deg); }
.pc-smod .pc-module__chev svg { width: 18px; height: 18px; }
.pc-slessons { margin: 0; padding: 0 8px 8px; list-style: none; }
.pc-sl a { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; color: var(--pc-text) !important; }
.pc-sl a:hover { background: var(--pc-card-2); }
.pc-sl.is-current a { background: color-mix(in srgb, var(--pc-accent) 40%, transparent); color: var(--pc-strong) !important; }
.pc-sl .pc-state { width: 24px; height: 24px; }
.pc-sl .pc-state svg { width: 12px; height: 12px; }
.pc-sl__body { flex: 1; min-width: 0; display: grid; }
.pc-sl__title { font-size: 13.5px; font-weight: 600; }
.pc-sl__sub { color: var(--pc-muted); font-size: 12px; }
.pc-sl.is-locked .pc-sl__title { font-weight: 500; color: color-mix(in srgb, var(--pc-strong) 78%, transparent); }

/* Course grid */
.pc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.pc-card { display: flex; flex-direction: column; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); background: var(--pc-card); overflow: hidden; color: var(--pc-text) !important; text-decoration: none; transition: transform .18s, border-color .18s; }
.pc-card:hover { transform: translateY(-3px); border-color: rgb(var(--pc-ink) / .22); }
.pc-card__img { display: block; aspect-ratio: 16 / 10; background: var(--pc-card-2); }
.pc-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-card__body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.pc-card__badge { justify-self: start; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--pc-accent) 50%, transparent); color: #fff; font-size: 11px; font-weight: 700; }
.pc-card__title { color: var(--pc-strong); font-size: 18px; font-weight: 700; line-height: 1.25; }
.pc-card__text { color: var(--pc-text); font-size: 14px; }
.pc-card__meta { color: var(--pc-muted); font-size: 12.5px; }
.pc-card .pc-bar { margin-top: 4px; }
.pc-empty { color: var(--pc-muted); }

/* Wider screens */
@media (min-width: 720px) {
	.pc-outcomes { grid-template-columns: 1fr 1fr; }
	.pc-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.pc-grid--3, .pc-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
	.pc-hero { padding: 52px 0 60px; }
	.pc-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 44px; }
	.pc-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.pc-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.pc-stage { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
	.pc-side { position: sticky; top: calc(var(--pc-offset) + 16px); max-height: calc(100vh - var(--pc-offset) - 32px); overflow-y: auto; }
}
@media (max-width: 600px) {
	.pc-topbar__prog { display: none; }
	.pc-btn { width: 100%; }
	.pc-lessonbar__btns { width: 100%; }
	.pc-lessonbar__btns .pc-nav__btn { flex: 1; justify-content: center; }
	.pc-lessonbar__title { font-size: 19px; }
	.pc-wrap { padding: 0 14px; }
	.pc-video { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.pc-btn, .pc-card, .pc-module__chev, .pc-bar > span { transition: none; }
}

/* ------------------------------------------------------------------
   v3: free module, locked modules, module progress
   ------------------------------------------------------------------ */
.pc-freenote { margin: -4px 0 14px; }
.pc-module.is-free { border-color: color-mix(in srgb, var(--pc-accent) 70%, #fff); }
.pc-module.is-locked > summary .pc-module__title { color: color-mix(in srgb, var(--pc-strong) 78%, transparent); }
.pc-module__title .pc-free { margin-left: 8px; vertical-align: 2px; }
.pc-module__hint { display: inline-flex; align-items: center; gap: 4px; color: var(--pc-muted); }
.pc-module__hint svg { width: 13px; height: 13px; }
.pc-module__bar { grid-column: 1; margin-top: 6px; }
.pc-module__bar .pc-bar { height: 4px; }
.pc-lesson__row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; color: var(--pc-text); opacity: .75; }
.pc-lesson a.is-locked .pc-lesson__title { color: color-mix(in srgb, var(--pc-strong) 78%, transparent); font-weight: 500; }
.pc-state--quiz { background: rgb(var(--pc-ink) / .08); color: var(--pc-strong); }
.pc-hero__prog { display: flex; align-items: center; gap: 12px; max-width: 360px; margin: -8px 0 18px; color: var(--pc-muted); font-size: 13px; }
.pc-hero__prog .pc-bar { flex: 1; }

/* Sidebar */
.pc-side__buy strong { color: var(--pc-strong); font-size: 14px; }
.pc-smod__num .pc-free { margin-left: 6px; letter-spacing: 0; text-transform: none; }
.pc-smod__text .pc-bar--mod { height: 4px; margin-top: 6px; }
.pc-smod__meta svg { display: block; width: 15px; height: 15px; }
.pc-smod.is-locked > summary .pc-smod__title { color: color-mix(in srgb, var(--pc-strong) 78%, transparent); }
.pc-sl a[aria-disabled="true"] { cursor: not-allowed; }

/* Player extras */
.pc-nav__btn.is-waiting { opacity: .45; cursor: not-allowed; background: transparent; border-color: rgb(var(--pc-ink) / .3); }
.pc-nav__btn.is-waiting:hover { background: transparent; filter: none; }
.pc-lessonbar--quiz { margin-top: 0; }
.pc-quiznav { margin: 14px 0 0; }
.pc-finish { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 14px 0; padding: 14px 18px; border: 1px solid var(--pc-accent); border-radius: var(--pc-radius); background: color-mix(in srgb, var(--pc-accent) 25%, var(--pc-card)); color: var(--pc-strong); }
.pc-finish .pc-btn { min-height: 40px; }

/* Quiz */
.pc-quiz { margin-top: 12px; }
.pc-quiz__card { padding: 22px; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); background: var(--pc-card); }
.pc-quiz__h { margin: 0 0 8px; color: var(--pc-strong); font-size: 20px; line-height: 1.3; font-weight: 700; }
.pc-quiz__p { margin: 0 0 14px; color: var(--pc-text); }
.pc-quiz__facts { margin: 0 0 18px; color: var(--pc-muted); font-size: 14px; white-space: pre-wrap; }
.pc-quiz__badge { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: var(--pc-accent); color: #fff; font-size: 12px; font-weight: 700; }
.pc-quiz__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.pc-quiz__count { color: var(--pc-muted); font-size: 13px; font-weight: 600; }
.pc-quiz__dots { display: flex; gap: 6px; }
.pc-quiz__dots span { width: 34px; height: 6px; border-radius: 999px; background: rgb(var(--pc-ink) / .16); }
.pc-quiz__dots span.is-done { background: var(--pc-accent); }
.pc-quiz__dots span.is-now { background: var(--pc-hi); }
.pc-quiz__pass { margin-left: auto; color: var(--pc-muted); font-size: 12.5px; }
.pc-quiz__q { margin: 0 0 16px; color: var(--pc-strong); font-size: 19px; line-height: 1.35; font-weight: 700; }
.pc-quiz__opts { display: grid; gap: 10px; }
.pc-quiz__opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px; border: 1px solid rgb(var(--pc-ink) / .14); border-radius: 10px; background: transparent; color: var(--pc-strong); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.pc-quiz__opt:hover:not(:disabled) { border-color: rgb(var(--pc-ink) / .35); background: var(--pc-card-2); }
.pc-quiz__opt:disabled { cursor: default; color: var(--pc-strong); }
.pc-quiz__radio { flex: none; width: 20px; height: 20px; border: 2px solid rgb(var(--pc-ink) / .4); border-radius: 50%; position: relative; }
.pc-quiz__opt.is-picked { border-color: var(--pc-hi); background: color-mix(in srgb, var(--pc-accent) 35%, transparent); }
.pc-quiz__opt.is-picked .pc-quiz__radio { border-color: var(--pc-hi); }
.pc-quiz__opt.is-picked .pc-quiz__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--pc-hi); }
.pc-quiz__opt.is-right { border-color: #4caf7a; background: rgba(76, 175, 122, .16); }
.pc-quiz__opt.is-right .pc-quiz__radio { border-color: #4caf7a; background: #4caf7a; }
.pc-quiz__opt.is-wrong { border-color: var(--pc-text); background: rgba(217, 107, 107, .14); }
.pc-quiz__opt.is-wrong .pc-quiz__radio { border-color: var(--pc-text); background: #d96b6b; }
.pc-quiz__fb { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; color: var(--pc-text); }
.pc-quiz__fb.is-good { background: rgba(76, 175, 122, .14); border: 1px solid rgba(76, 175, 122, .5); }
.pc-quiz__fb.is-bad { background: rgba(217, 107, 107, .12); border: 1px solid rgba(217, 107, 107, .5); }
.pc-quiz__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pc-quiz__result { text-align: center; }
.pc-quiz__result .pc-quiz__foot { justify-content: center; }
.pc-quiz__score { display: inline-grid; place-items: center; width: 110px; height: 110px; margin-bottom: 12px; border-radius: 50%; border: 4px solid var(--pc-line); color: var(--pc-strong); font-size: 28px; font-weight: 700; }
.pc-quiz__score.is-pass { border-color: #4caf7a; }
.pc-quiz__score.is-fail { border-color: var(--pc-text); }
.pc-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

/* Certificate */
.pc-certpage { padding: 28px 0 60px; }
.pc-certbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pc-cert { padding: 14px; background: #fff; border-radius: 6px; color: #1b1b1b; }
.pc-cert__inner { padding: 48px 28px; border: 3px double var(--pc-accent); text-align: center; }
.pc-cert__kicker { color: var(--pc-accent); font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.pc-cert__line { margin-top: 26px; color: #555; font-size: 15px; }
.pc-cert__name { margin-top: 8px; font-size: clamp(30px, 6vw, 46px); line-height: 1.15; font-weight: 700; color: #111; }
.pc-cert__course { margin-top: 8px; font-size: clamp(22px, 4vw, 30px); line-height: 1.25; font-weight: 700; color: var(--pc-accent); }
.pc-cert__meta { margin-top: 16px; color: #666; font-size: 14px; }
.pc-cert__foot { display: flex; justify-content: center; gap: 56px; margin-top: 44px; flex-wrap: wrap; }
.pc-cert__foot div { min-width: 180px; padding-top: 8px; border-top: 1px solid #999; }
.pc-cert__foot span { display: block; font-size: 16px; font-weight: 600; }
.pc-cert__foot small { color: #777; font-size: 12px; }
@media print {
	body * { visibility: hidden !important; }
	.pc-cert, .pc-cert * { visibility: visible !important; }
	.pc-cert { position: absolute; left: 0; top: 0; width: 100%; padding: 0; border-radius: 0; }
	@page { size: A4 landscape; margin: 12mm; }
}

/* Light mode (student can switch, saved in their browser) */
:root[data-pc-theme="light"] {
	--pc-bg: #f5f2ee;
	--pc-card: #ffffff;
	--pc-card-2: #eeeae4;
	--pc-line: rgba(0, 0, 0, .11);
	--pc-text: #262626;
	--pc-muted: #626262;
	--pc-hi: var(--pc-accent);
	--pc-strong: #111111;
	--pc-ink: 0 0 0;
	--pc-fade: rgba(245, 242, 238, .86);
	--pc-bar: #ffffff;
}
:root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-btn--ghost { color: var(--pc-strong) !important; }
:root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-video,
:root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-trailer,
:root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-cover img { box-shadow: 0 8px 26px rgba(0, 0, 0, .16); }
:root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-sl.is-current a,
:root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-complete.is-done,
:root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-finish { color: var(--pc-strong) !important; }

/* Space between the theme header and the course */
.pc-main { padding-top: var(--pc-gap, 0px); }


/* Sepia: warm paper, easy on the eyes for long reading */
:root[data-pc-theme="sepia"] {
	--pc-bg: #f3ead7;
	--pc-card: #fbf5e6;
	--pc-card-2: #e9ddc2;
	--pc-line: rgba(70, 45, 10, .15);
	--pc-text: #3f3220;
	--pc-muted: #76664d;
	--pc-hi: var(--pc-accent);
	--pc-strong: #2a1f10;
	--pc-ink: 70 45 10;
	--pc-fade: rgba(243, 234, 215, .86);
	--pc-bar: #fbf5e6;
}

/* Reading size: a little larger by default, student can change it */
.pc-about { font-size: 17px; line-height: 1.65; }
:root[data-pc-text="1"] .pc-about { font-size: 19px; }
:root[data-pc-text="2"] .pc-about { font-size: 21px; }
:root[data-pc-text="3"] .pc-about { font-size: 23px; }
:root[data-pc-text="0"] .pc-about { font-size: 16px; }

/* Focus mode: sidebar folded away, video and text use the full width */
@media (min-width: 1000px) {
	:root[data-pc-focus="1"] .pc-stage { grid-template-columns: minmax(0, 1fr); }
	:root[data-pc-focus="1"] .pc-side { display: none; }
	:root[data-pc-focus="1"] .pc-stage__main { max-width: 1040px; margin: 0 auto; width: 100%; }
}

/* Display options */
.pc-disp { position: relative; display: inline-block; }
.pc-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 270px; padding: 14px; border: 1px solid var(--pc-line); border-radius: 12px; background: var(--pc-card); color: var(--pc-text); box-shadow: 0 14px 38px rgba(0, 0, 0, .28); text-align: left; }
.pc-pop[hidden] { display: none; }
.pc-pop__t { margin: 0 0 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pc-muted); }
.pc-pop__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.pc-pop__row button, .pc-pop__focus { min-height: 34px; border: 1px solid var(--pc-line); border-radius: 8px; background: transparent; color: var(--pc-text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pc-pop__row button:hover, .pc-pop__focus:hover { background: var(--pc-card-2); }
.pc-pop__row button.is-on, .pc-pop__focus.is-on { background: var(--pc-accent); border-color: var(--pc-accent); color: #fff; }
.pc-pop__focus { width: 100%; padding: 0 10px; }
.pc-pop__row--size button:nth-child(1) { font-size: 11px; }
.pc-pop__row--size button:nth-child(2) { font-size: 13px; }
.pc-pop__row--size button:nth-child(3) { font-size: 15px; }
.pc-pop__row--size button:nth-child(4) { font-size: 17px; }
.pc-mode--float + .pc-pop { top: 52px; right: 20px; }
@media (max-width: 999px) { .pc-pop__focus, .pc-pop__ft { display: none; } }

/* Light / dark switch */
.pc-mode { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid rgb(var(--pc-ink) / .3); border-radius: 999px; background: transparent; color: var(--pc-strong); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pc-mode:hover { background: var(--pc-card-2); }
.pc-mode svg { width: 15px; height: 15px; }
.pc-mode--float { position: absolute; top: 14px; right: 20px; z-index: 2; }
.pc-nav__btn.pc-nav__btn--next:not(.is-waiting), .pc-nav__btn.pc-nav__btn--next:not(.is-waiting) svg { color: #fff !important; }
.pc-nav__btn--next.is-waiting { background: transparent; border-color: rgb(var(--pc-ink) / .3); }
:root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-sl.is-current a { background: color-mix(in srgb, var(--pc-accent) 14%, #fff); }
:root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-quiz__opt.is-picked { background: color-mix(in srgb, var(--pc-accent) 12%, #fff); }
:root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-free, :root:is([data-pc-theme="light"],[data-pc-theme="sepia"]) .pc-card__badge { background: var(--pc-accent); }

/* More room under the theme header */
.pc-main { padding-top: calc(var(--pc-gap, 0px) + 22px); }
.pc-stage { padding-top: 30px; }
.pc-topbar__in { min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.pc-side { top: calc(var(--pc-offset) + 24px); }
/* Headings pasted into lessons keep their own dark colours; make them readable in both modes */
.pc-panel h1, .pc-panel h2, .pc-panel h3, .pc-panel h4, .pc-panel h5, .pc-panel h6 { color: var(--pc-strong) !important; }
.pc-panel p, .pc-panel li { color: var(--pc-text); }

.pc-side__prog { padding: 14px 16px; border-bottom: 1px solid var(--pc-line); }
.pc-side__proglabel { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: var(--pc-muted); }
.pc-side__proglabel strong { color: var(--pc-strong); font-size: 14px; }

.pc-about img, .pc-about figure img { max-width: 100%; height: auto; border-radius: 10px; }
.pc-about figure { margin: 18px 0; }
.pc-about figcaption { margin-top: 6px; color: var(--pc-muted); font-size: 13px; }
.pc-about a { color: var(--pc-hi); text-decoration: underline; }
.pc-about h2, .pc-about h3 { margin: 26px 0 10px; color: var(--pc-strong); }
.pc-about ul, .pc-about ol { padding-left: 22px; }

.pc-listing { padding: 44px 0 64px; }
.pc-listing__title { margin-bottom: 18px; }
.pc-listing .pc-grid { margin-top: 24px; }

/* Courses page (the [ped_courses] shortcode). Follows the site's own light look. */
.pcl { padding: 56px 0 72px; color: #2e2e2e; font-family: inherit; line-height: 1.5; }
.pcl *, .pcl *::before, .pcl *::after { box-sizing: border-box; }
.pcl a { text-decoration: none; }
.pcl-in { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.pcl-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.pcl-eyebrow { margin-bottom: 14px; color: var(--pc-accent); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pcl-title { margin: 0 0 14px; color: #14161c; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; font-weight: 700; }
.pcl-intro { margin: 0; color: #5a5f6b; font-size: 17px; }
.pcl-h2 { margin: 40px 0 18px; color: #14161c; font-size: 22px; font-weight: 700; }
.pcl-h2:first-of-type { margin-top: 0; }
.pcl-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pcl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pcl-grid { grid-template-columns: repeat(3, 1fr); } }
.pcl-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3e7f0; border-radius: 14px; background: #fff; color: inherit !important; box-shadow: 0 1px 2px rgba(20, 22, 28, .04); transition: transform .18s, box-shadow .18s, border-color .18s; }
.pcl-card:hover { transform: translateY(-3px); border-color: #d3d8e4; box-shadow: 0 12px 28px rgba(20, 22, 28, .10); }
.pcl-card__img { display: block; aspect-ratio: 16 / 10; background: #eef0f5; overflow: hidden; }
.pcl-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcl-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.pcl-pill { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--pc-accent) 10%, #fff); color: var(--pc-accent); font-size: 11.5px; font-weight: 700; }
.pcl-card__title { color: #14161c; font-size: 19px; line-height: 1.28; font-weight: 700; }
.pcl-card__text { color: #4a4f5c; font-size: 14.5px; }
.pcl-card__meta { color: #7a7f8c; font-size: 13px; }
.pcl-prog { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.pcl-prog__bar { flex: 1; height: 6px; border-radius: 999px; background: #e9ecf2; overflow: hidden; }
.pcl-prog__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--pc-accent); }
.pcl-prog__txt { color: #5a5f6b; font-size: 12.5px; white-space: nowrap; }
.pcl-card__cta { margin-top: auto; padding-top: 10px; color: var(--pc-accent); font-size: 14.5px; font-weight: 700; }
.pcl-empty { text-align: center; color: #5a5f6b; }

/* Display controls: visible theme switch, text size, focus */
.pc-disp { display: inline-flex; align-items: center; gap: 8px; }
.pc-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid rgb(var(--pc-ink) / .25); border-radius: 999px; }
.pc-seg__b { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--pc-text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pc-seg__b svg { width: 15px; height: 15px; flex: none; }
.pc-seg__b:hover { background: var(--pc-card-2); }
.pc-seg__b.is-on { background: var(--pc-accent); color: #fff; }
.pc-mode--sq { padding: 0; width: 38px; justify-content: center; }
.pc-mode--sq.is-on { background: var(--pc-accent); border-color: var(--pc-accent); color: #fff; }
.pc-aa { font-size: 14px; letter-spacing: -.02em; }
.pc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc-pop { width: 230px; }
.pc-pop__row { margin-bottom: 0; }
@media (max-width: 860px) { .pc-seg__b span { display: none; } .pc-seg__b { padding: 0 9px; } .pc-focusbtn { display: none; } }

