/* JTL Academy, E3 "Coursera Pro". PROJECT SETTINGS: role tokens on :root. Manrope, #F5F5F7 ground, rounded white cards, black and white only
   (status is shown by contrast, never hue). No inline style attributes anywhere: the CSP refuses them (see the data-w and data-deg observer in app.js). */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f0f0f3;
  --track: #e8e8ed;
  --fg: #1d1d1f;
  --fg-2: #515154;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --border-soft: #e8e8ed;
  --accent: #1d1d1f;
  --accent-on: #ffffff;
  --accent-hover: color-mix(in oklab, var(--accent), white 14%);
  --media-bg: #0d0d0d;
  --code-bg: #1d1d1f;
  --code-fg: #ededed;
  --on-dark-2: #e5e5ea;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;
  --font-sign: "Caveat", "Segoe Script", cursive;
  --depth: 0 20px 40px -26px rgba(0, 0, 0, 0.2);
  --depth-lg: 0 1px 0 rgba(0, 0, 0, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.18);
  --depth-dark: 0 30px 50px -28px rgba(0, 0, 0, 0.5);
  --r-card: 28px; --r-lg: 36px; --r-md: 18px; --r-sm: 14px; --r-pill: 9999px;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px #1f6feb;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --measure: 42em;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 16px/1.5 var(--font-body); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--accent-on); padding: 8px 12px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 16px; }
.wrap { width: min(92vw, 1720px); margin: 0 auto; }
@media (max-width: 760px) { .wrap { width: calc(100% - 32px); } }

/* bar */
.bar { background: var(--bg); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.012em; }
.logo img { border-radius: 9px; width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 30px; color: var(--fg-2); }
#nav-auth:empty { display: none; }
.nav a { text-decoration: none; color: var(--fg-2); }
.nav a:hover { color: #000; }
.nav a.btn, .nav a.btn:hover { color: var(--accent-on); }
@media (max-width: 760px) { .nav { gap: 16px; } .nav > a[href="/#courses"] { display: none; } }
@media (max-width: 420px) { .nav > a#nav-me { display: none; } }

/* type */
.eyebrow { font: 700 13px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 12px; }
.display { font: 800 clamp(40px, 4.8vw, 84px)/1.04 var(--font-body); letter-spacing: -0.045em; }
.display em { font-style: normal; display: block; color: var(--muted); }
.h2 { font: 800 clamp(30px, 3.2vw, 52px)/1.04 var(--font-body); letter-spacing: -0.045em; }
.h2 em { font-style: normal; color: var(--muted); }
.h3 { font: 700 22px/1.25 var(--font-body); letter-spacing: -0.03em; }
.lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.55; color: var(--fg-2); max-width: 32em; margin: 26px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-on); border: 0; text-decoration: none; font-weight: 600; font-size: 17px; cursor: pointer; transition: opacity var(--motion-base) var(--ease-standard); }
.btn:hover { opacity: 0.84; }
.btn.ghost { background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
.btn.sm { min-height: 42px; padding: 0 20px; font-size: 16px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; cursor: progress; }
.btn.google img { width: 18px; height: 18px; }
.btn svg, .ar { flex: none; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.chip-pill { display: inline-block; background: var(--surface); border-radius: var(--r-pill); padding: 8px 18px; font-weight: 600; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); margin-bottom: 26px; }
@media (max-width: 760px) { .btn { width: 100%; } .nav .btn { width: auto; } }

/* hero */
.hero { padding: 0 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 5vw, 90px); align-items: start; padding: 40px 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .lede { margin-bottom: 0; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.px { background: var(--surface); border-radius: 24px; padding: 22px 24px; box-shadow: var(--depth); }
.px b { display: block; font-weight: 800; font-size: clamp(34px, 3.2vw, 54px); letter-spacing: -0.05em; line-height: 1; }
.px span { display: block; margin-top: 8px; color: var(--fg-2); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .proof { grid-template-columns: minmax(0, 1fr); } .hero-grid { padding: 24px 0; } }

/* learner card */
.lc { padding: 30px; max-width: 640px; justify-self: end; width: 100%; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--depth); }
.lk { font-weight: 700; font-size: 20px; margin-bottom: 20px; }
.lc-top { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.lc-top > div:last-child { min-width: 0; }
.ring2 { flex: none; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--fg) 0 var(--deg, 0deg), var(--track) var(--deg, 0deg) 360deg); display: grid; place-items: center; position: relative; }
.ring2::before { content: ""; position: absolute; inset: 10px; background: var(--surface); border-radius: 50%; }
.ring2 b { position: relative; font-size: 28px; line-height: 1; font-weight: 800; display: block; text-align: center; }
.lcn { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.lcs { color: var(--muted); }
.lc-start .lcn { font-size: clamp(24px, 2vw, 30px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.lc-start .lcs { display: block; margin-top: 8px; }
.lc-start .eyebrow { margin-bottom: 14px; }
.nl3 { display: grid; gap: 2px; padding: 16px 18px; background: var(--bg); border-radius: var(--r-md); margin: 20px 0 14px; }
.lc .lc-top + .nl3 { margin-top: 0; }
.nl3 .nk { color: var(--muted); font-weight: 600; }
.nl3 b { font-size: 18px; }
.nl3 span:last-child { color: var(--fg-2); }
.goal { padding: 14px 16px; border-radius: var(--r-md); background: var(--bg); }
.lc .goal { padding: 16px 18px; background: none; box-shadow: inset 0 0 0 1px #e1e1e6; margin-bottom: 18px; }
.goal .gl { color: var(--muted); font-weight: 600; }
.gt { font-weight: 700; font-size: 18px; line-height: 1.3; margin: 2px 0 8px; }
.gs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.gs i { height: 6px; border-radius: 3px; background: var(--track); }
.gs i.f { background: var(--fg); }
.lc .btn { width: 100%; }
.mc { display: flex; gap: 16px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.mcc { flex: none; width: 132px; }
.mc span { color: var(--fg-2); }
.mcc .cert { transform: none; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); border-radius: 4px; }
.lc-start .payoff { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.lc-start .payoff .cert { transform: none; }
.lc-start .payoff p { margin-top: 16px; color: var(--fg-2); text-align: center; }
@media (max-width: 1000px) { .lc { justify-self: stretch; max-width: none; } }
@media (max-width: 760px) { .lc { padding: 22px; } .mc { flex-direction: column; align-items: flex-start; } }

/* certificate preview */
.cert { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1.414; background: var(--surface); color: var(--fg); border-radius: 6px; transform: rotate(1.4deg); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(0, 0, 0, 0.1), 0 40px 70px -10px rgba(0, 0, 0, 0.3); }
.cert::before { content: ""; position: absolute; inset: 2.4cqw; border: 0.2cqw solid var(--fg); border-radius: 2px; }
.c-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: 6cqw 7cqw; }
.c-top { display: flex; align-items: center; gap: 1.6cqw; }
.c-logo { width: 5.4cqw; height: 5.4cqw; border-radius: 1cqw; }
.c-brand { font-size: 2.5cqw; font-weight: 800; }
.c-mid { display: flex; flex-direction: column; align-items: center; }
.c-kind { font-size: 2.4cqw; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; }
.c-pre { font-size: 2.1cqw; margin-top: 2.4cqw; color: var(--fg-2); }
.c-name { font-size: 7cqw; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-top: 1cqw; }
.c-course { font-size: 3.7cqw; font-weight: 700; line-height: 1.15; margin-top: 1cqw; }
.c-foot { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 3cqw; text-align: left; }
.c-sig { display: flex; flex-direction: column; border-top: 0.25cqw solid currentColor; padding-top: 0.8cqw; min-width: 30cqw; }
.c-script { font-family: var(--font-sign); font-weight: 600; font-size: 6.4cqw; line-height: 0.9; margin-top: -5.6cqw; margin-bottom: 1cqw; }
.c-role { font-size: 1.9cqw; color: var(--fg-2); }
.c-ver { font-size: 1.8cqw; text-align: right; color: var(--fg-2); }
@media (prefers-reduced-motion: reduce) { .cert { transform: none; } }

/* sections */
.section { padding: 32px 0 48px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 18px; border-radius: var(--r-pill); border: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); background: var(--surface); cursor: pointer; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--accent-on); box-shadow: none; }

/* course cards */
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--depth); text-decoration: none; min-height: 240px; transition: box-shadow var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard); }
.card:hover { box-shadow: 0 0 0 2px var(--fg), var(--depth); }
.card .h3 { font-size: 20px; }
.card p { color: var(--fg-2); font-size: 16px; }
.card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.tag { align-self: flex-start; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); font: 700 12px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; box-shadow: inset 0 0 0 1.5px var(--fg); }
.tag.live { background: var(--fg); color: var(--accent-on); }
.tag.soon { color: var(--fg-2); box-shadow: inset 0 0 0 1.5px var(--border); }
.bar-track { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--fg); border-radius: 4px; width: 0; transition: width 400ms var(--ease-standard); }

/* how it works */
.steps { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { padding: 28px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--depth); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fg); color: var(--accent-on); font-weight: 700; }
.step h3 { margin: 16px 0 8px; font-size: 20px; letter-spacing: -0.03em; }
.step p { color: var(--fg-2); }

/* offer: a dark card (beside the video) or a wide band */
.offer { background: var(--fg); color: var(--accent-on); border-radius: var(--r-card); padding: 32px 30px; box-shadow: var(--depth-dark); }
.offer .eyebrow { color: #d2d2d7; text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; line-height: 1.5; margin: 0; }
.offer .h2 { font-size: 32px; line-height: 1.05; margin-bottom: 14px; color: var(--accent-on); }
.offer p { color: var(--on-dark-2); font-size: 17px; margin-bottom: 24px; }
.offer .btn { background: var(--accent-on); color: var(--fg); width: 100%; }
.offer.band { margin: 32px 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 36px clamp(24px, 3vw, 48px); }
.offer.band p { margin: 0; max-width: 54ch; }
.offer.band .h2 { margin-bottom: 10px; }
.offer.band .btn { width: auto; }

/* course page */
.course-hero { padding: 24px 0 24px; }
.course-hero .meta-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px; color: var(--muted); font-weight: 600; }
.crumbs { color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--fg-2); }
.course-hero .tag { margin-bottom: 18px; }
.course-hero .display { font-size: clamp(38px, 4.4vw, 76px); }
.cols { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding: 16px 0 32px; align-items: start; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) 360px; } }
.cols > div, .lesson article { min-width: 0; }
.main-card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--depth); padding: clamp(24px, 3vw, 40px); }
.outcomes { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.outcomes li { padding-left: 32px; position: relative; }
.outcomes li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 14px; height: 8px; border-left: 2.5px solid var(--fg); border-bottom: 2.5px solid var(--fg); transform: rotate(-45deg); }
.lessons { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; }
.lessons a, .lessons .row { display: flex; align-items: center; gap: 16px; padding: 10px 12px; text-decoration: none; min-height: 56px; border-radius: var(--r-sm); }
.lessons a:hover { background: var(--bg); }
.lessons .ex-row a { background: var(--fg); color: var(--accent-on); margin-top: 8px; }
.lessons .ex-row .lm { color: #d2d2d7; }
.lessons .ex-row .num { box-shadow: inset 0 0 0 1.5px #8e8e93; color: var(--accent-on); }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b9b9c0; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--fg-2); }
.num.done { background: var(--fg); color: var(--accent-on); box-shadow: none; }
.num svg { display: block; }
.lt { flex: 1; font-weight: 600; line-height: 1.3; }
.lm { font-size: 14px; color: var(--muted); white-space: nowrap; }
.side { display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--depth); padding: 28px; }
.panel h3 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 14px; }
.panel .btn { width: 100%; }
.res { list-style: none; padding: 0; display: grid; gap: 12px; }
.res a { display: block; text-decoration: none; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); }
.res a:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.res b { display: block; font-weight: 700; }
.res span { font-size: 15px; color: var(--muted); }
.thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: 10px; margin-bottom: 8px; background: var(--track); }

/* lesson */
.tbar { display: flex; gap: 10px; align-items: center; height: 48px; color: var(--muted); margin-bottom: 12px; overflow: hidden; white-space: nowrap; }
.tbar i { font-style: normal; color: #aaa; }
.tbar a { text-decoration: none; }
.tbar a:hover { color: var(--fg); }
.tbar b { color: var(--fg); font-weight: 600; }
.tb-m { display: none; }
.lesson { display: grid; gap: 24px; grid-template-columns: 320px minmax(0, 1fr) 316px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 16px; padding: 18px 14px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--depth); }
.toc .gp { padding: 0 8px 14px; }
.toc-prog { padding: 0 8px 14px; }
.toc-prog p { font-weight: 600; margin-bottom: 8px; color: var(--fg-2); }
.toc ol { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--border-soft); }
.toc a { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 10px; border-radius: var(--r-sm); text-decoration: none; }
.toc a:hover { background: var(--bg); }
.toc .num { grid-row: 1 / 3; }
.toc .tt { font-weight: 600; line-height: 1.3; min-width: 0; display: flex; flex-direction: column; }
.toc .tm { font-size: 14px; color: var(--muted); font-weight: 500; }
.toc a[aria-current="page"] { background: var(--surface-2); }
.toc a[aria-current="page"] .num { background: var(--surface); box-shadow: inset 0 0 0 2px var(--fg); color: var(--fg); }
.toc a[aria-current="page"] .num.done { background: var(--fg); color: var(--accent-on); }
.toc li.ex { margin-top: 8px; }
.toc li.ex a { background: var(--fg); color: var(--accent-on); }
.toc li.ex .num { box-shadow: inset 0 0 0 1.5px #8e8e93; color: var(--accent-on); }
.toc li.ex .tm { color: #d2d2d7; }
.lesson article { display: grid; gap: 24px; }
.lesson article h1 { font: 800 clamp(28px, 2.6vw, 42px)/1.04 var(--font-body); letter-spacing: -0.045em; margin-bottom: 4px; }
.vcard { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--depth); padding: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--media-bg); border-radius: 20px; overflow: hidden; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--media-bg); }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.video-poster span { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(0, 0, 0, 0.72); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.28); display: grid; place-items: center; }
.video-poster:hover span { opacity: 0.88; }
.video-poster span::after { content: ""; margin-left: 5px; border-left: 24px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.vr { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 10px 6px; flex-wrap: wrap; }
.vm { color: var(--muted); font-weight: 600; }
.video-note { font-size: 15px; color: var(--muted); padding: 4px 10px 8px; }
.vr .btn { min-height: 50px; padding: 0 22px; font-size: 16px; }
.dash-row .hero-ctas { margin-top: 0; }
#exam { max-width: 900px; margin-top: 24px; }
.next { display: inline-flex; gap: 10px; align-items: center; background: var(--fg); color: var(--accent-on); padding: 14px 22px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.next:hover { opacity: 0.84; }
.lesson article .prose-card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--depth); padding: 34px 38px 18px; min-width: 0; }
.prose { max-width: var(--measure); }
.prose h2 { font: 800 26px/1.2 var(--font-body); letter-spacing: -0.035em; margin: 0 0 14px; }
.prose h2:not(:first-child) { margin-top: 28px; }
.prose h3 { font-size: 20px; letter-spacing: -0.02em; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { font-size: 18px; line-height: 1.7; color: #333336; margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose code, code { font: 500 0.9em/1.4 var(--font-mono); background: var(--surface-2); padding: 2px 7px; border-radius: 6px; overflow-wrap: anywhere; }
.prose pre { background: var(--code-bg); color: var(--code-fg); padding: 18px 20px; border-radius: var(--r-md); overflow-x: auto; margin: 0 0 18px; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: 15px; }
.prose blockquote { margin: 0 0 18px; padding: 16px 20px; background: var(--bg); border-radius: var(--r-md); box-shadow: inset 4px 0 0 var(--fg); }
.prose blockquote p { margin: 0; }
.try { padding: 24px 28px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--depth), inset 0 0 0 1.5px var(--fg); }
.try p:last-child { font-size: 18px; line-height: 1.6; }
.sd { position: sticky; top: 16px; display: grid; gap: 24px; }

/* quiz and exam */
.quiz { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--depth); padding: 30px 34px; }
.quiz .eyebrow { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; }
.quiz .h3 { margin-bottom: 18px; }
.q { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.q legend { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; padding: 0; line-height: 1.3; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--border); margin-bottom: 10px; cursor: pointer; min-height: 52px; }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--fg-2); }
.opt input { margin-top: 3px; accent-color: var(--fg); width: 18px; height: 18px; flex: none; }
.opt.right { background: var(--fg); color: var(--accent-on); box-shadow: none; font-weight: 600; }
.opt.right input { accent-color: #fff; }
.opt.wrong { box-shadow: inset 0 0 0 2px var(--fg); }
.opt.wrong span { text-decoration: line-through; }
.why { font-size: 16px; color: var(--fg-2); margin: 8px 0 0; }
.why b { font-weight: 700; color: var(--fg); }
.result { padding: 22px; border-radius: var(--r-md); background: var(--bg); margin: 16px 0 0; }
.result.pass { background: var(--surface); box-shadow: inset 0 0 0 2px var(--fg); }
.result-next { margin-top: 16px; }
.next-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* forms */
.form { display: grid; gap: 16px; max-width: 520px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .help { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.field input[type="text"], .field input[type="tel"] { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font: inherit; font-size: 16px; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--fg), var(--focus-ring); }
.field.bad input { box-shadow: inset 0 0 0 2.5px var(--fg); background: var(--bg); }
.err { color: var(--fg); font-weight: 700; font-size: 15px; margin: 6px 0 0; padding-left: 12px; box-shadow: inset 3px 0 0 var(--fg); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--fg-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fg); flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.exam-wrap { max-width: 860px; }

/* flash and dashboard */
.flash { background: var(--fg); color: var(--accent-on); text-align: center; padding: 10px 16px; font-size: 15px; }
.dash { display: grid; gap: 20px; }
.dash-row { display: grid; gap: 14px; padding: 26px 28px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--depth); }
.dash-row .top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.empty { padding: 32px; text-align: center; border-radius: var(--r-card); box-shadow: inset 0 0 0 1.5px var(--border); }

/* course done */
.dcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 64px); margin-top: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--depth); }
.dcard h1 { font: 800 clamp(38px, 4.2vw, 74px)/1.02 var(--font-body); letter-spacing: -0.045em; }
.ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin: 26px 0 8px; }
.ticks li { height: 40px; border-radius: 12px; background: var(--fg); color: var(--accent-on); display: grid; place-items: center; }
.ticks li.todo { background: var(--track); color: var(--muted); font-weight: 700; }
.dl .lede { margin: 18px 0 34px; }
.dl .row { display: flex; gap: 12px; flex-wrap: wrap; }
.dr { position: relative; background: var(--bg); border-radius: var(--r-card); padding: clamp(22px, 3vw, 44px); display: grid; place-items: center; }
.dr .sheet-bg { position: absolute; left: 14%; right: 14%; top: 24%; bottom: 14%; background: #e3e3e8; border-radius: 6px; transform: rotate(-3deg); }
.dr .cert { position: relative; z-index: 1; }
.left-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 4px; }
.left-list a { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; background: var(--bg); font-weight: 600; }
.left-list a:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
@media (max-width: 1000px) { .dcard { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .dcard { padding: 22px; } .ticks { gap: 4px; } .ticks li { height: 32px; } }

/* footer */
.foot { padding: 32px 0 48px; margin-top: 16px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); }
.foot .fine { font-size: 15px; color: var(--muted); max-width: 52ch; margin: 12px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--fg-2); }

/* lesson layout breakpoints (the E3 mock) */
@media (max-width: 1280px) { .lesson { grid-template-columns: 290px minmax(0, 1fr); } .sd { grid-column: 1 / -1; position: static; } }
@media (max-width: 760px) {
  .lesson { grid-template-columns: minmax(0, 1fr); }
  .lesson article { order: 1; }
  .sd { order: 2; }
  .toc { order: 3; position: static; max-height: none; }
  .tbar a, .tbar i, .tb-d { display: none; }
  .tb-m { display: inline; white-space: normal; }
  .quiz, .lesson article .prose-card { padding: 24px 20px; }
  .vr .btn { width: 100%; justify-content: space-between; }
  .btn { justify-content: center; }
  .hero { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* spacing utilities (the CSP allows no inline style attributes) */
.bt0 { border-top: 0; } .m0 { margin: 0; } .mb12 { margin-bottom: 12px; } .mb16 { margin: 0 0 16px; } .mb20 { margin-bottom: 20px; }
.mt12 { margin-top: 12px; } .mt32 { margin-top: 32px; } .mt40 { margin-top: 40px; } .mt48 { margin-top: 48px; }
.py48 { padding-top: 48px; padding-bottom: 48px; } .py80 { padding-top: 80px; padding-bottom: 80px; }
