/* courses.snow.academy — approximates the Rise reading experience learners
   already know (wide leading, one calm column, accent-colored headings, blocks
   revealed by "Continue") using Snow Academy's own type and palette. */

:root {
  --ink: #0f1b2d;
  --ink-soft: #41506a;
  --ink-mute: #7a869a;
  --accent: #15b6cf;
  --accent-deep: #0e8fa6;
  --gold: #f3b340;
  --paper: #ffffff;
  --mist: #f4f7fa;
  --line: #dde4ec;
  --ok: #1f9d55;
  --bad: #d64545;
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --course: var(--accent);          /* overridden per course from Rise's color */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15,27,45,.08);
  --topbar: 64px;
  --sidebar: 300px;
  --col: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- login ---------- */
.login-page { background: var(--mist); min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 44px 40px; max-width: 460px; width: 100%; text-align: center; }
.login__logo img { width: 190px; margin: 0 auto 26px; }
.login h1 { font-size: 24px; margin-bottom: 10px; }
.login__lead { color: var(--ink-soft); font-size: 15px; margin: 0 0 24px; }
.login__form { display: grid; gap: 10px; }
.login__form input { font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 16px; }
.login__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,182,207,.18); }
.login__form button, .btn { background: var(--ink); color: #fff; border: 0; border-radius: 9px; padding: 13px 18px; font-weight: 600; font-size: 15px; }
.login__form button:disabled { opacity: .6; cursor: default; }
.login__msg { margin: 18px 0 0; padding: 12px 14px; border-radius: 9px; background: #eaf8f4; color: #145c47; font-size: 14px; }
.login__msg.is-error { background: #fdecec; color: #8a1f1f; }
.login__foot { margin: 26px 0 0; font-size: 13px; color: var(--ink-mute); }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar__logo img { height: 30px; width: auto; }
.topbar__title { flex: 1; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__right { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.topbar__link { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.topbar__link:hover { color: var(--ink); }
.topbar__progress { font-size: 13px; color: var(--ink-mute); font-weight: 500; }
.topbar__menu { display: none; width: 36px; height: 36px; border: 0; background: transparent; padding: 6px; flex-direction: column; justify-content: space-between; }
.topbar__menu span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- shell / sidebar ---------- */
.shell { display: flex; min-height: calc(100vh - var(--topbar)); }
.sidebar { width: var(--sidebar); flex: 0 0 var(--sidebar); border-right: 1px solid var(--line); background: var(--mist); position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto; padding: 22px 0 40px; }
.sidebar__path { padding: 0 22px 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.sidebar__path a { color: inherit; text-decoration: none; }
.sidebar__course { margin: 8px 0 0; }
.sidebar__course-title { display: flex; align-items: center; gap: 10px; padding: 10px 22px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.sidebar__course-title .n { width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink-soft); font-size: 11px; display: grid; place-items: center; flex: 0 0 22px; }
.sidebar__course.is-current .sidebar__course-title .n { background: var(--course); color: #fff; }
.sidebar__lessons { list-style: none; margin: 0; padding: 0 0 6px; }
.sidebar__lessons a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 22px 7px 54px; font-size: 14px; color: var(--ink-soft); text-decoration: none; line-height: 1.4; position: relative; }
.sidebar__lessons a:hover { background: rgba(15,27,45,.04); }
.sidebar__lessons a.is-current { color: var(--ink); font-weight: 600; background: #fff; box-shadow: inset 3px 0 0 var(--course); }
.sidebar__lessons .tick { position: absolute; left: 30px; top: 10px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; }
.sidebar__lessons a.is-done .tick { border-color: var(--ok); background: var(--ok); }
.sidebar__lessons a.is-done .tick::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.sidebar__section { padding: 12px 22px 4px 54px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.course-row__section { padding: 12px 0 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }

/* ---------- main ---------- */
.main { flex: 1; min-width: 0; }
.loading { padding: 60px; text-align: center; color: var(--ink-mute); }
.col { max-width: var(--col); margin: 0 auto; padding: 0 24px; }

/* dashboard */
.dash { padding: 44px 0 80px; }
.dash h1 { font-size: 30px; margin-bottom: 6px; }
.dash__lead { color: var(--ink-soft); margin: 0 0 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; background: var(--paper); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__cover { aspect-ratio: 16/9; background: var(--mist) center/cover no-repeat; }
.card__body { padding: 16px 18px 18px; }
.card__title { font-family: var(--font-head); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.card__meta { font-size: 13px; color: var(--ink-mute); }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 12px 0 6px; }
.bar > i { display: block; height: 100%; background: var(--course); border-radius: 3px; }
.card__pct { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

/* path overview */
.hero { position: relative; min-height: 300px; background: var(--ink) center/cover no-repeat; display: flex; align-items: flex-end; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,30,.15), rgba(10,18,30,.78)); }
.hero__inner { position: relative; width: 100%; max-width: var(--col); margin: 0 auto; padding: 44px 24px 34px; }
.hero__kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; font-weight: 600; margin-bottom: 8px; }
.hero h1 { color: #fff; font-size: 36px; }
.hero__meta { margin-top: 10px; opacity: .9; font-size: 14px; }
.overview { padding: 34px 0 80px; }
.overview__actions { display: flex; gap: 12px; align-items: center; margin-bottom: 30px; }
.btn--accent { background: var(--course); }
.course-row { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.course-row__head { display: flex; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; }
.course-row__n { width: 30px; height: 30px; border-radius: 50%; background: var(--course); color: #fff; font-family: var(--font-head); font-weight: 600; display: grid; place-items: center; flex: 0 0 30px; font-size: 13px; }
.course-row__title { font-family: var(--font-head); font-weight: 600; font-size: 16px; flex: 1; }
.course-row__meta { font-size: 13px; color: var(--ink-mute); white-space: nowrap; }
.course-row__lessons { list-style: none; margin: 0; padding: 0 18px 12px 62px; border-top: 1px solid var(--line); }
.course-row__lessons a { display: flex; gap: 10px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--ink-soft); font-size: 15px; border-bottom: 1px solid var(--mist); }
.course-row__lessons a:last-child { border-bottom: 0; }
.course-row__lessons .tick { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 16px; position: relative; }
.course-row__lessons a.is-done .tick { background: var(--ok); border-color: var(--ok); }
.course-row__lessons a.is-done .tick::after { content: ""; position: absolute; left: 5px; top: 2px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* lesson */
.lesson-head { background: var(--mist); border-bottom: 1px solid var(--line); }
.lesson-head__inner { max-width: var(--col); margin: 0 auto; padding: 40px 24px 34px; }
.lesson-head__kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--course); font-weight: 600; margin-bottom: 10px; }
.lesson-head h1 { font-size: 34px; }
.lesson-head__course { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
.lesson-body { padding: 10px 0 40px; }
.lesson-foot { max-width: var(--col); margin: 0 auto; padding: 20px 24px 90px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.lesson-foot .btn { text-decoration: none; display: inline-block; }
.btn--ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.lesson-foot__done { color: var(--ok); font-weight: 600; font-size: 14px; }

/* ---------- blocks ---------- */
.blk { max-width: var(--col); margin: 0 auto; padding: 22px 24px; }
.blk p { margin: 0 0 1em; }
.blk p:last-child { margin-bottom: 0; }
.blk--gated { display: none; }
.blk h2, .blk h3, .blk .h { font-family: var(--font-head); color: var(--ink); }
.blk-text .heading { font-family: var(--font-head); font-size: 26px; font-weight: 600; line-height: 1.3; margin: 0 0 12px; }
.blk-text .heading p { margin: 0; }
.blk-text .heading strong { font-weight: 700; }
.blk-text.v-heading .heading { font-size: 30px; }
.blk-text.v-subheading .heading { font-size: 22px; }
.blk-impact { font-family: var(--font-head); font-size: 26px; line-height: 1.45; font-weight: 500; }
.blk-impact.v-a { border-left: 4px solid var(--course); padding-left: 28px; }
.blk-impact.v-b { text-align: center; color: var(--course); font-size: 30px; }
.blk-impact.v-c { background: var(--course); color: #fff; padding: 40px 32px; border-radius: var(--radius); }
.blk-impact.v-c strong { color: #fff; }
.blk-impact.v-d { font-size: 32px; font-weight: 700; }
.blk-list ul, .blk-list ol { padding-left: 1.4em; margin: 0; }
.blk-list li { margin-bottom: .55em; }
.blk-list li p { margin: 0; }
.blk-list.v-checkbox ul { list-style: none; padding-left: 0; }
.blk-list.v-checkbox li { padding-left: 34px; position: relative; }
.blk-list.v-checkbox li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--course); color: #fff; font-size: 13px; display: grid; place-items: center; }
.blk-list.v-numbered ol { list-style: none; padding-left: 0; counter-reset: n; }
.blk-list.v-numbered li { counter-increment: n; padding-left: 44px; position: relative; }
.blk-list.v-numbered li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--course); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.blk-image img { border-radius: 8px; margin: 0 auto; }
.blk-image figcaption { font-size: 13px; color: var(--ink-mute); text-align: center; margin-top: 10px; }
.blk-image.v-text-aside .item, .blk-image.v-text-on-image .item { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.blk-image.v-text-aside .item:nth-child(even) img { order: 2; }
.blk-image.v-full-width, .blk-image.v-hero { max-width: none; padding-left: 0; padding-right: 0; }
.blk-image.v-full-width img, .blk-image.v-hero img { border-radius: 0; width: 100%; }
.blk-image.v-centered img { max-width: 70%; }
.blk-gallery .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.blk-gallery img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.blk-quote { text-align: center; }
.blk-quote blockquote { margin: 0; font-family: var(--font-head); font-size: 24px; font-weight: 500; line-height: 1.45; }
.blk-quote blockquote::before { content: "“"; color: var(--course); font-size: 60px; line-height: 0; vertical-align: -18px; margin-right: 6px; }
.blk-quote cite { display: block; margin-top: 14px; font-style: normal; color: var(--ink-mute); font-size: 14px; }
.blk-quote img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.blk-quote.has-bg { background-size: cover; background-position: center; border-radius: var(--radius); padding: 48px 32px; color: #fff; position: relative; overflow: hidden; }
.blk-quote.has-bg::before { content: ""; position: absolute; inset: 0; background: rgba(10,18,30,.55); }
.blk-quote.has-bg > * { position: relative; }
.blk-quote.has-bg blockquote, .blk-quote.has-bg cite { color: #fff; }
.blk-divider hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.blk-divider.v-numbered hr { display: none; }
.blk-divider.v-numbered .num { width: 44px; height: 44px; border-radius: 50%; background: var(--course); color: #fff; font-family: var(--font-head); font-weight: 600; display: grid; place-items: center; margin: 0 auto; }
.blk-continue { text-align: center; }
.blk-continue button { background: var(--course); color: #fff; border: 0; border-radius: 999px; padding: 14px 40px; font-weight: 600; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.blk-continue.is-done button { display: none; }
.blk-continue.is-done::after { content: ""; display: block; height: 1px; background: var(--line); }
.blk-embed .frame { position: relative; border-radius: 8px; overflow: hidden; background: #000; }
.blk-embed .frame--video { aspect-ratio: 16/9; }
.blk-embed .frame--form { min-height: 560px; background: var(--mist); }
.blk-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blk-embed .caption, .blk-media .caption { font-size: 13px; color: var(--ink-mute); text-align: center; margin-top: 10px; }
.blk-embed .link { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.blk-media video, .blk-media audio { width: 100%; border-radius: 8px; background: #000; }
.blk-attachment a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.blk-attachment a::before { content: "⬇"; width: 38px; height: 38px; border-radius: 8px; background: var(--course); color: #fff; display: grid; place-items: center; flex: 0 0 38px; }
.blk-attachment small { display: block; color: var(--ink-mute); font-weight: 400; font-size: 12px; }
.blk-buttons .row { display: flex; flex-wrap: wrap; gap: 12px; }
.blk-buttons a { display: inline-block; background: var(--course); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.blk-buttons .desc { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }

/* interactive: tabs / accordion / labeled */
.blk-interactive .acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.blk-interactive .acc details { border-bottom: 1px solid var(--line); }
.blk-interactive .acc details:last-child { border-bottom: 0; }
.blk-interactive .acc summary { list-style: none; cursor: pointer; padding: 16px 18px; font-family: var(--font-head); font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.blk-interactive .acc summary::-webkit-details-marker { display: none; }
.blk-interactive .acc summary::after { content: "+"; color: var(--course); font-size: 22px; font-weight: 400; }
.blk-interactive .acc details[open] summary::after { content: "–"; }
.blk-interactive .acc .body { padding: 0 18px 18px; color: var(--ink-soft); }
.blk-interactive .acc .body img { border-radius: 8px; margin: 0 0 12px; }
.blk-interactive .tabs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.blk-interactive .tabs__bar { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--mist); }
.blk-interactive .tabs__bar button { flex: 1 0 auto; border: 0; background: transparent; padding: 14px 18px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-soft); border-bottom: 3px solid transparent; white-space: nowrap; }
.blk-interactive .tabs__bar button.is-active { color: var(--ink); border-bottom-color: var(--course); background: #fff; }
.blk-interactive .tabs__panel { padding: 20px 18px; }
.blk-interactive .tabs__panel img { border-radius: 8px; margin-bottom: 12px; }
.blk-interactive .steps .step { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.blk-interactive .steps .step:last-child { border-bottom: 0; }
.blk-interactive .steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--course); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 13px; display: grid; place-items: center; flex: 0 0 30px; }
.blk-interactive .steps .t { font-family: var(--font-head); font-weight: 600; margin-bottom: 4px; }

/* labeled graphic */
.blk-labeled .lg__stage { position: relative; border-radius: var(--radius); overflow: hidden; }
.blk-labeled .lg__stage img { width: 100%; }
.blk-labeled .lg__marker { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: var(--course); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.3); animation: lgpulse 2s infinite; }
.blk-labeled .lg__marker.is-active { background: var(--ink); animation: none; }
@keyframes lgpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6), 0 4px 14px rgba(0,0,0,.3); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0), 0 4px 14px rgba(0,0,0,.3); } }
.blk-labeled .lg__panel { margin-top: 14px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--mist); }
.blk-labeled .lg__title { font-family: var(--font-head); font-weight: 600; font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.blk-labeled .lg__title .n { width: 26px; height: 26px; border-radius: 50%; background: var(--course); color: #fff; font-size: 12px; display: grid; place-items: center; }
.blk-labeled .lg__panel img { border-radius: 8px; margin: 8px 0 12px; }
.blk-labeled .hint, .blk-flashcard .hint { text-align: center; color: var(--ink-mute); font-size: 12px; margin-top: 10px; }

/* process / timeline */
.blk-process .proc__intro { background: var(--course); color: #fff; padding: 26px 28px; border-radius: var(--radius); margin-bottom: 18px; }
.blk-process .proc__intro .t { font-family: var(--font-head); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.blk-process .proc__intro img { border-radius: 8px; margin: 10px 0; }
.blk-timeline .steps .date { flex: 0 0 120px; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--course); padding-top: 3px; }

/* scenario */
.blk-scenario .sc__stage { position: relative; min-height: 340px; border-radius: var(--radius) var(--radius) 0 0; background: var(--ink) center/cover no-repeat; display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: end; padding: 24px; overflow: hidden; }
.blk-scenario .sc__stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,30,.1), rgba(10,18,30,.55)); }
.blk-scenario .sc__char { position: relative; max-height: 320px; width: auto; max-width: 100%; align-self: end; justify-self: center; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }
.blk-scenario .sc__bubble { position: relative; background: #fff; border-radius: 14px; padding: 18px 20px; font-size: 16px; line-height: 1.6; align-self: center; box-shadow: var(--shadow); }
.blk-scenario .sc__bubble::before { content: ""; position: absolute; left: -12px; top: 50%; border: 8px solid transparent; border-right-color: #fff; transform: translateY(-50%); }
.blk-scenario .sc__name { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--course); font-weight: 700; margin-bottom: 6px; }
.blk-scenario .sc__title { font-family: var(--font-head); font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.blk-scenario .sc__choices { display: grid; gap: 10px; padding: 18px 18px 0; background: var(--mist); }
.blk-scenario .sc__choice { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 16px; font-size: 15px; line-height: 1.5; }
.blk-scenario .sc__choice:hover:not(:disabled) { border-color: var(--course); }
.blk-scenario .sc__choice.is-picked { border-color: var(--course); background: #eef9fb; }
.blk-scenario .sc__choice p { margin: 0; }
.blk-scenario .sc__foot { background: var(--mist); padding: 14px 18px 18px; border-radius: 0 0 var(--radius) var(--radius); display: grid; gap: 12px; }
.blk-scenario .sc__feedback { padding: 14px 16px; border-radius: 9px; font-size: 15px; }
.blk-scenario .sc__feedback.is-correct { background: #eef9f2; border-left: 4px solid var(--ok); }
.blk-scenario .sc__feedback.is-wrong { background: #fdf0f0; border-left: 4px solid var(--bad); }
.blk-scenario .sc__feedback p { margin: 0 0 .5em; } .blk-scenario .sc__feedback p:last-child { margin: 0; }
.blk-scenario .sc__next { justify-self: end; background: var(--course); color: #fff; border: 0; border-radius: 999px; padding: 11px 26px; font-weight: 600; }
@media (max-width: 640px) { .blk-scenario .sc__stage { grid-template-columns: 1fr; } .blk-scenario .sc__char { max-height: 200px; } .blk-scenario .sc__bubble::before { display: none; } .blk-timeline .steps .date { flex-basis: 80px; } }

/* flashcards */
.blk-flashcard .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.blk-flashcard .fc { perspective: 1000px; min-height: 180px; cursor: pointer; }
.blk-flashcard .fc__in { position: relative; width: 100%; height: 100%; min-height: 180px; transition: transform .5s; transform-style: preserve-3d; }
.blk-flashcard .fc.is-flipped .fc__in { transform: rotateY(180deg); }
.blk-flashcard .face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius); padding: 20px; display: grid; place-items: center; text-align: center; font-size: 15px; overflow: auto; }
.blk-flashcard .face--front { background: var(--course); color: #fff; font-family: var(--font-head); font-weight: 600; }
.blk-flashcard .face--front img { max-height: 120px; border-radius: 6px; }
.blk-flashcard .face--full { padding: 0; }
.blk-flashcard .face--full img { max-height: none; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.blk-flashcard .face--back { background: var(--mist); border: 1px solid var(--line); transform: rotateY(180deg); }
.blk-flashcard .face--back img { max-height: 90px; border-radius: 6px; margin-bottom: 8px; }
.blk-flashcard .face > div { display: grid; place-items: center; }
.blk-flashcard .hint { text-align: center; color: var(--ink-mute); font-size: 12px; margin-top: 10px; }

/* chart */
.blk-chart .row { display: grid; grid-template-columns: 160px 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.blk-chart .bar { margin: 0; height: 18px; }

/* knowledge check + quiz */
.kc { border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kc__head { background: var(--mist); padding: 10px 20px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.kc__q { padding: 22px 20px 6px; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.4; }
.kc__q p { margin: 0; }
.kc__q img { border-radius: 8px; margin: 14px 0 0; }
.kc__answers { list-style: none; margin: 0; padding: 12px 20px 8px; }
.kc__answers li { margin-bottom: 8px; }
.kc__answers label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; cursor: pointer; transition: border-color .15s, background .15s; }
.kc__answers label:hover { border-color: var(--course); }
.kc__answers input { margin-top: 4px; accent-color: var(--course); }
.kc__answers label p { margin: 0; }
.kc.is-answered .kc__answers label { cursor: default; }
.kc.is-answered .kc__answers label.is-correct { border-color: var(--ok); background: #eef9f2; }
.kc.is-answered .kc__answers label.is-wrong { border-color: var(--bad); background: #fdf0f0; }
.kc__match { padding: 12px 20px 8px; display: grid; gap: 10px; }
.kc__match .pair { display: grid; grid-template-columns: 1fr 200px; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; }
.kc__match select { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 7px; background: #fff; }
.kc.is-answered .pair.is-correct { border-color: var(--ok); background: #eef9f2; }
.kc.is-answered .pair.is-wrong { border-color: var(--bad); background: #fdf0f0; }
.kc__actions { padding: 10px 20px 20px; display: flex; gap: 12px; align-items: center; }
.kc__submit { background: var(--course); color: #fff; border: 0; border-radius: 999px; padding: 11px 26px; font-weight: 600; }
.kc__submit:disabled { opacity: .45; cursor: default; }
.kc__retry { background: transparent; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 600; color: var(--ink-soft); }
.kc__fb { margin: 0 20px 20px; padding: 16px 18px; border-radius: 9px; font-size: 15px; }
.kc__fb.is-correct { background: #eef9f2; border-left: 4px solid var(--ok); }
.kc__fb.is-wrong { background: #fdf0f0; border-left: 4px solid var(--bad); }
.kc__fb strong.verdict { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.kc__fb p { margin: 0 0 .6em; }
.kc__fb p:last-child { margin: 0; }

.quiz-intro { background: var(--mist); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 26px; }
.quiz-intro h2 { font-size: 20px; margin-bottom: 8px; }
.quiz-intro p { margin: 0; color: var(--ink-soft); }
.quiz .kc { margin-bottom: 22px; }
.quiz__result { border-radius: var(--radius); padding: 28px; text-align: center; margin-top: 10px; }
.quiz__result.is-pass { background: #eef9f2; }
.quiz__result.is-fail { background: #fdf0f0; }
.quiz__result .score { font-family: var(--font-head); font-size: 44px; font-weight: 700; }
.quiz__result .score.is-pass { color: var(--ok); }
.quiz__result .score.is-fail { color: var(--bad); }
.quiz__submit { display: block; margin: 10px auto 0; }

/* misc */
.notice { max-width: var(--col); margin: 40px auto; padding: 18px 22px; border-radius: var(--radius); background: var(--mist); color: var(--ink-soft); }
.notice.is-error { background: #fdf0f0; color: #8a1f1f; }
.pill { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--mist); color: var(--ink-mute); }

/* =====================================================================
   EDITORIAL TYPE SYSTEM — applied by default (body[data-theme="editorial"]).
   The rules above are the base; ?theme=classic drops the attribute to show
   the original for comparison. Serif display, calm measure, quiet chrome.
   ===================================================================== */

/* ---------- A. Editorial: serif display, calm reading measure ---------- */
body[data-theme="editorial"] {
  --font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --col: 680px;
  --ink-soft: #4a5568;
  font-size: 16.5px; line-height: 1.75; letter-spacing: -0.003em;
}
body[data-theme="editorial"] h1, body[data-theme="editorial"] h2, body[data-theme="editorial"] h3,
body[data-theme="editorial"] .blk-text .heading, body[data-theme="editorial"] .blk-impact,
body[data-theme="editorial"] .card__title, body[data-theme="editorial"] .course-row__title,
body[data-theme="editorial"] .sc__title, body[data-theme="editorial"] .lg__title, body[data-theme="editorial"] .kc__q {
  font-family: var(--font-head); font-weight: 500; letter-spacing: -0.015em; font-variation-settings: "opsz" 48, "SOFT" 30;
}
body[data-theme="editorial"] .lesson-head { background: transparent; border-bottom: 0; }
body[data-theme="editorial"] .lesson-head__inner { padding: 64px 24px 20px; }
body[data-theme="editorial"] .lesson-head__kicker { font-family: var(--font-body); font-size: 11px; letter-spacing: .18em; color: var(--ink-mute); margin-bottom: 18px; }
body[data-theme="editorial"] .lesson-head h1 { font-size: 44px; line-height: 1.08; font-weight: 500; }
body[data-theme="editorial"] .lesson-head__course { font-size: 13px; color: var(--ink-mute); margin-top: 14px; }
body[data-theme="editorial"] .lesson-body { padding-top: 8px; border-top: 1px solid var(--line); margin: 20px auto 0; max-width: var(--col); }
body[data-theme="editorial"] .blk { padding: 18px 24px; }
body[data-theme="editorial"] .blk-text .heading { font-size: 28px; line-height: 1.2; margin: 26px 0 12px; }
body[data-theme="editorial"] .blk-text.v-subheading .heading { font-size: 21px; }
body[data-theme="editorial"] .blk p { margin-bottom: 1.15em; }
body[data-theme="editorial"] .blk-impact { font-size: 25px; line-height: 1.4; font-weight: 400; font-style: italic; }
body[data-theme="editorial"] .blk-impact.v-c { font-style: normal; padding: 36px 32px; }
body[data-theme="editorial"] .blk-list.v-numbered li::before, body[data-theme="editorial"] .blk-list.v-checkbox li::before {
  background: transparent; color: var(--course); border: 1.5px solid var(--course); font-family: var(--font-head); font-weight: 500; font-size: 14px; width: 26px; height: 26px;
}
body[data-theme="editorial"] .blk-list.v-numbered li { padding-left: 40px; margin-bottom: .8em; }
body[data-theme="editorial"] .blk-list li strong { font-weight: 600; }
body[data-theme="editorial"] .blk-continue button { background: var(--ink); box-shadow: none; padding: 12px 30px; font-size: 14px; }
body[data-theme="editorial"] .sidebar { background: #fff; }
body[data-theme="editorial"] .sidebar__path { font-family: var(--font-head); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; padding-bottom: 18px; }
body[data-theme="editorial"] .sidebar__course-title { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; }
body[data-theme="editorial"] .sidebar__lessons a { font-size: 13.5px; color: var(--ink-soft); }
body[data-theme="editorial"] .sidebar__lessons a.is-current { background: var(--mist); box-shadow: inset 2px 0 0 var(--ink); }
body[data-theme="editorial"] .topbar__title { font-family: var(--font-body); font-weight: 500; }
body[data-theme="editorial"] .hero h1 { font-size: 46px; }
body[data-theme="editorial"] .dash h1 { font-size: 36px; }
body[data-theme="editorial"] .dash__lead { font-size: 16px; }
body[data-theme="editorial"] .card__title { font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
body[data-theme="editorial"] .card__meta, body[data-theme="editorial"] .card__pct { font-family: var(--font-body); }
body[data-theme="editorial"] .btn, body[data-theme="editorial"] .login__form button, body[data-theme="editorial"] .kc__submit, body[data-theme="editorial"] .kc__retry, body[data-theme="editorial"] .sc__next, body[data-theme="editorial"] .blk-buttons a { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0; }
body[data-theme="editorial"] .btn--accent, body[data-theme="editorial"] .kc__submit, body[data-theme="editorial"] .sc__next { background: var(--ink); }
body[data-theme="editorial"] .hero__kicker, body[data-theme="editorial"] .kc__head, body[data-theme="editorial"] .sidebar__section, body[data-theme="editorial"] .course-row__section, body[data-theme="editorial"] .pill { font-family: var(--font-body); }
body[data-theme="editorial"] .course-row__title { font-size: 18px; }
body[data-theme="editorial"] .course-row__n { background: transparent; color: var(--ink); border: 1.5px solid var(--line); font-family: var(--font-head); }
body[data-theme="editorial"] .kc { border-color: var(--line); }
body[data-theme="editorial"] .kc__q { font-size: 21px; line-height: 1.35; }
body[data-theme="editorial"] .kc__answers label { border-radius: 6px; font-size: 15.5px; }
body[data-theme="editorial"] .quiz__result .score { font-family: var(--font-head); font-weight: 500; }
body[data-theme="editorial"] .sc__bubble { font-size: 15.5px; }
body[data-theme="editorial"] .sc__name { font-family: var(--font-body); }
body[data-theme="editorial"] .blk-quote blockquote { font-weight: 400; font-style: italic; font-size: 26px; }
body[data-theme="editorial"] .blk-quote blockquote::before { display: none; }
body[data-theme="editorial"] .blk-quote cite { font-family: var(--font-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
body[data-theme="editorial"] .blk-interactive .acc summary, body[data-theme="editorial"] .blk-interactive .tabs__bar button, body[data-theme="editorial"] .blk-interactive .steps .t, body[data-theme="editorial"] .proc__intro .t, body[data-theme="editorial"] .blk-flashcard .face--front { font-family: var(--font-body); font-weight: 600; }
body[data-theme="editorial"] .blk-image figcaption, body[data-theme="editorial"] .blk-embed .caption, body[data-theme="editorial"] .blk-media .caption { font-size: 13px; color: var(--ink-mute); margin-top: 12px; }
body[data-theme="editorial"] .lesson-foot { max-width: var(--col); border-top: 1px solid var(--line); padding-top: 24px; }
body[data-theme="editorial"] .login h1 { font-size: 28px; font-weight: 500; }
body[data-theme="editorial"] .admin h1 { font-size: 32px; }

@media (max-width: 640px) {
  body[data-theme="editorial"] .lesson-head h1 { font-size: 30px; }
  body[data-theme="editorial"] .lesson-head__inner { padding-top: 36px; }
  body[data-theme="editorial"] .blk-text .heading { font-size: 22px; }
}

/* =====================================================================
   REFINEMENTS (Shane's review, Sept 13)
   ===================================================================== */

/* 1. Breathing room between a course heading and its first lesson. */
.sidebar__lessons { padding-top: 6px; }
.course-row__lessons { padding-top: 12px; }
.course-row__lessons li:first-child a { padding-top: 6px; }

/* 2. Motion. Views rise in, revealed blocks stagger in, feedback slides in,
   every button gives a little under the click. */
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.main.view-enter > * { animation: rise-in .38s cubic-bezier(.2,.7,.2,1) both; }
.blk.is-revealed { animation: rise-in .45s cubic-bezier(.2,.7,.2,1) both; }
.kc__fb, .sc__feedback, .quiz__result, .lg__panel, .login__msg { animation: rise-in .32s cubic-bezier(.2,.7,.2,1) both; }
.kc.is-answered .kc__answers label, .kc.is-answered .pair { transition: border-color .25s, background-color .25s; }
button, .btn, .blk-buttons a, .sidebar__lessons a, .card, .course-row__head { transition: transform .12s ease, opacity .12s ease, background-color .15s, border-color .15s, box-shadow .2s; }
button:active, .btn:active, .blk-buttons a:active, .blk-continue button:active { transform: scale(.97); }
.sidebar__lessons a:active { transform: translateX(2px); }
.blk-flashcard .fc__in { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.blk-continue.is-done { animation: fade-in .3s both; }
@media (prefers-reduced-motion: reduce) { .main.view-enter > *, .blk.is-revealed, .kc__fb, .sc__feedback, .quiz__result, .lg__panel, .blk-continue.is-done { animation: none; } }

/* 3. Rise content carries inline font-size styles. The body leading (1.75)
   is far too loose once a line is 24–34px, so big inline text gets display
   leading; and the 16–18px "normal" sizes are simply the body size here. */
.blk [style*="font-size: 16px"], .blk [style*="font-size:16px"],
.blk [style*="font-size: 17px"], .blk [style*="font-size:17px"],
.blk [style*="font-size: 18px"], .blk [style*="font-size:18px"] { font-size: inherit !important; }
.blk [style*="font-size: 2"], .blk [style*="font-size:2"], .blk [style*="font-size: 3"], .blk [style*="font-size:3"] { line-height: 1.25; }
.blk p:has(> [style*="font-size: 2"]), .blk p:has(> [style*="font-size:2"]),
.blk p:has(> [style*="font-size: 3"]), .blk p:has(> [style*="font-size:3"]) { line-height: 1.25; margin-bottom: .6em; }
.blk-text .heading, .lesson-head h1, .hero h1 { text-wrap: balance; }

/* 4. Wider reading column on laptops and desktops, and real multi-column
   image layouts (Rise's "two column" / "three column" variants). */
@media (min-width: 1100px) { body[data-theme="editorial"] { --col: 780px; } :root { --col: 820px; } }
@media (min-width: 1400px) { body[data-theme="editorial"] { --col: 860px; } :root { --col: 900px; } }
.blk-image.v-two-column, .blk-image.v-three-column { display: grid; gap: 22px; }
.blk-image.v-two-column { grid-template-columns: 1fr 1fr; }
.blk-image.v-three-column { grid-template-columns: 1fr 1fr 1fr; }
.blk-image.v-two-column .item, .blk-image.v-three-column .item { display: block; }
.blk-image.v-two-column .text, .blk-image.v-three-column .text { margin-top: 12px; font-size: .95em; }
.blk-image.v-text-aside .item { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; }
.blk-gallery.v-two-column .grid { grid-template-columns: 1fr 1fr; }
.blk-gallery.v-three-column .grid { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .blk-image.v-two-column, .blk-image.v-three-column, .blk-gallery.v-two-column .grid, .blk-gallery.v-three-column .grid { grid-template-columns: 1fr; } }

/* 6. Flashcards big enough to read the back. Flex (not grid) so an odd
   last card sits centered; image fronts fill the whole card. */
.blk-flashcard .grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.blk-flashcard .fc { flex: 0 1 calc(50% - 10px); min-width: 280px; max-width: 440px; }
.blk-flashcard .fc, .blk-flashcard .fc__in { min-height: 340px; }
.blk-flashcard .face { padding: 24px; font-size: 15.5px; line-height: 1.55; }
.blk-flashcard .face--front { display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
.blk-flashcard .face--front img { max-height: none; width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.blk-flashcard .face--front > div { text-align: center; }
.blk-flashcard .face--front.face--full { padding: 0; }
.blk-flashcard .face--front.face--full img { margin: 0; border-radius: var(--radius); height: 100%; }
.blk-flashcard .face--back { align-content: start; }
.blk-flashcard .face--back > div { display: block; text-align: left; }
.blk-flashcard .face--back > div p { margin: 0 0 .7em; }
@media (max-width: 640px) { .blk-flashcard .fc { flex-basis: 100%; max-width: none; } }

/* 8. Callout boxes: uniform padding, one type size, tidy paragraph rhythm. */
.blk-impact.v-c { padding: 36px 40px; }
.blk-impact.v-c p { margin: 0 0 .7em; }
.blk-impact.v-c p:last-child { margin-bottom: 0; }
.blk-impact.v-c [style*="font-size"] { font-size: inherit !important; }
.blk-impact.v-c strong, .blk-impact.v-c b { font-weight: 600; }
body[data-theme="editorial"] .blk-impact.v-c { font-size: 23px; line-height: 1.45; font-weight: 400; }
body[data-theme="editorial"] .blk-impact.v-a { padding-left: 24px; }
body[data-theme="editorial"] .blk-impact.v-b { font-size: 28px; }
.blk-impact.v-a p, .blk-impact.v-b p, .blk-impact.v-d p { margin: 0 0 .5em; }
.blk-impact.v-a p:last-child, .blk-impact.v-b p:last-child, .blk-impact.v-d p:last-child { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .topbar__menu { display: flex; }
  .sidebar { position: fixed; left: 0; top: var(--topbar); z-index: 25; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow); }
  .sidebar.is-open { transform: none; }
  .topbar__title { display: none; }
  .topbar__right .topbar__progress { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .blk { padding: 18px 18px; }
  .blk-image.v-text-aside .item, .blk-image.v-text-on-image .item { grid-template-columns: 1fr; }
  .blk-image.v-text-aside .item:nth-child(even) img { order: 0; }
  .lesson-head h1, .hero h1 { font-size: 26px; }
  .blk-impact, .blk-impact.v-b { font-size: 21px; }
  .kc__match .pair { grid-template-columns: 1fr; }
  .login { padding: 32px 22px; }
}
