/* Online courses. Colours and fonts come from /assets/css/styles.css; the pieces below are made for audio learning. */
[hidden] { display: none !important; }
.container--form { max-width: calc(520px + 2 * var(--gutter)); }
#listen, #how-it-works, #other-states, #chapters { scroll-margin-top: 90px; }
.ico { width: 22px; height: 22px; flex-shrink: 0; display: inline-block; }
.btn .ico { width: 18px; height: 18px; }
.btn-row--center { justify-content: center; }
.center { text-align: center; margin-top: 1.2rem; }
.status { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .4rem; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps--3 { grid-template-columns: 1fr; } }
.offer-title { font-size: 1.5rem; }
.terms__sub { padding-left: 1.5rem; }

/* ---------- Cover art ---------- */
.cover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; width: 100%; border-radius: 18px; overflow: hidden; color: var(--white); background: linear-gradient(160deg, #0F4470, var(--blue-night) 70%); isolation: isolate; container-type: inline-size; }
.cover--2 { background: linear-gradient(160deg, #0E6CA4, #0A4470 75%); }
.cover--6 { background: linear-gradient(160deg, #5F93C4, #1F5E92 78%); }
.cover__lotus { width: 50%; height: auto; margin-top: -12%; }
.cover__wave { position: absolute; z-index: -1; left: 0; right: 0; bottom: 18%; width: 100%; height: 44%; fill: #fff; opacity: .17; }
.cover__title { position: absolute; left: 8%; right: 8%; bottom: 8%; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 6.9cqw; line-height: 1.25; text-wrap: balance; letter-spacing: .01em; }
.cover--sm, .cover--xs { border-radius: 12px; }
.cover--sm { width: 96px; flex-shrink: 0; }
.cover--xs { width: 52px; border-radius: 10px; flex-shrink: 0; }
.cover--sm .cover__title, .cover--xs .cover__title { display: none; }
.cover--sm .cover__lotus, .cover--xs .cover__lotus { margin-top: -4%; width: 52%; }
.cover--xs .cover__wave { opacity: .12; }

/* ---------- Small facts with icons ---------- */
.meta { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .5rem; }
.meta li { display: flex; align-items: center; gap: .65rem; line-height: 1.35; }
.meta .ico { color: var(--blue); }
.meta__k { color: var(--ink-soft); min-width: 7.2em; }
.meta__v { font-family: var(--font-head); font-weight: 600; }
.meta--center { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; }
.checks { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; }
.checks li { display: flex; gap: .65rem; line-height: 1.5; }
.checks .ico { color: var(--blue); margin-top: .1rem; width: 20px; height: 20px; }

/* ---------- Progress ring ---------- */
.ring { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring__track { stroke: var(--blue-pale); }
.ring__bar { stroke: var(--blue); stroke-linecap: round; transition: stroke-dasharray .4s; }
.ring[data-ring="0"] .ring__bar { stroke: transparent; }
.ring__label { position: absolute; font-family: var(--font-head); font-weight: 600; font-size: .86rem; font-variant-numeric: tabular-nums; }

/* ---------- Library (All Courses) ---------- */
.library { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
.lib { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(1.4rem, 4vw, 3rem); background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.lib__cover { position: relative; display: block; border-radius: 18px; }
.lib__cover .cover { transition: transform .25s; }
.lib__cover:hover .cover { transform: scale(1.015); }
.lib__play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gold-bright); color: var(--blue-night); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); transition: transform .2s; }
.lib__play .ico { width: 26px; height: 26px; margin-left: 2px; }
.lib__cover:hover .lib__play { transform: scale(1.07); }
.lib .cover__title { display: none; }
.lib .cover__lotus { margin-top: -4%; }
.lib__progress { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.lib__main h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: .2rem; color: var(--ink); }
.lib__main h3 a { color: inherit; text-decoration: none; }
.lib__main h3 a:hover { color: var(--blue); text-decoration: underline; }
.lib__main h4 { color: var(--gold-text); margin-bottom: .7rem; }
.lib__line { font-family: var(--font-head); font-weight: 600; color: var(--blue-deep); margin-bottom: 1rem; }
.lib .meta { margin: 1.2rem 0 0; }
.lib .meta__k { min-width: 6.4em; font-size: .92rem; }
.lib .meta__v { font-size: .92rem; white-space: nowrap; }
.lib .meta li { gap: .5rem; }
.lib--soon { background: var(--blue-mist); box-shadow: none; }
.also { margin: 1.8rem 0 0; }
@media (max-width: 760px) {
  .lib { grid-template-columns: 1fr; }
  .lib__art { display: grid; gap: 1rem; }
  .lib .cover { aspect-ratio: 16 / 10; }
  .lib .cover__lotus { width: 32%; }
  .lib .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Course page: the listening stage ---------- */
.stage { position: relative; color: #D5E4F1; background: radial-gradient(120% 140% at 85% 0%, #135486 0%, var(--blue-night) 58%); padding: clamp(1.8rem, 4vw, 3.2rem) 0 clamp(1.8rem, 4vw, 3rem); }
.stage h1 { color: var(--white); font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: .3em; }
.stage .script-md { color: var(--gold-bright); font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: .3rem; }
.stage :focus-visible, .dock :focus-visible { outline-color: var(--gold-bright); }
.stage__grid { display: grid; grid-template-columns: minmax(150px, 290px) 1fr; gap: clamp(1.4rem, 4vw, 3.2rem); align-items: center; }
.stage .cover { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .09); }
.stage__line { font-size: clamp(1.05rem, 1.8vw, 1.25rem); margin-bottom: 1.1rem; }
.stage__by { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.stage__by img { border-radius: 50%; width: 44px; height: 44px; }
.stage__by strong { color: var(--white); }
.stage .meta { display: flex; flex-wrap: wrap; gap: .7rem 2rem; margin: 0; }
.stage .meta .ico { color: var(--gold-bright); }
.stage .meta__k { display: none; }
.stage .meta__v { color: var(--white); }
.stage .meta li:nth-child(2) .meta__v::after { content: " chapters"; }
.stage__free { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; font-size: .94rem; }
.stage__free .ico { color: var(--gold-bright); }
.stage__grid .cover__title { font-size: 7.4cqw; }
@media (max-width: 640px) {
  .stage__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .stage__grid .cover { max-width: 210px; }
  .stage__by, .stage .meta { justify-content: center; }
  .stage__free { justify-content: center; text-align: center; }
}

/* The player */
.deck { margin-top: clamp(1.4rem, 3vw, 2.2rem); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: clamp(1.1rem, 3vw, 1.7rem) clamp(1rem, 3vw, 2rem); }
.deck p { margin: 0; }
.deck__top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .7rem !important; }
.deck__now { min-width: 0; }
.deck__now span { display: block; font-size: .84rem; color: var(--blue-soft); }
.deck__now strong { display: block; font-family: var(--font-head); font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.3; color: var(--white); }
.deck__left, .deck__times { font-size: .86rem; color: var(--blue-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.deck__times { display: flex; justify-content: space-between; }
.timeline { position: relative; height: 34px; }
.timeline__segs { position: absolute; inset: 12px 0; display: flex; gap: 3px; pointer-events: none; }
.seg { position: relative; flex: 1 1 0; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, .16); }
.seg i { position: absolute; inset: 0 auto 0 0; width: 0; }
.seg__heard { background: rgba(175, 207, 234, .42); }
.seg__played { background: var(--gold-bright); }
.timeline input, .dock__bar input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; cursor: pointer; }
.timeline input::-webkit-slider-runnable-track { height: 34px; background: transparent; }
.timeline input::-moz-range-track { height: 34px; background: transparent; }
.timeline input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: 7px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.timeline input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.timeline__tip { position: absolute; bottom: 36px; left: 0; transform: translateX(-50%); background: var(--white); color: var(--ink); font-size: .8rem; line-height: 1.35; padding: .3rem .65rem; border-radius: 8px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.deck__controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: .8rem; }
.transport { display: flex; align-items: center; gap: clamp(.2rem, 1.2vw, .7rem); }
.tbtn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; transition: background .2s, transform .15s; }
.tbtn:hover { background: rgba(255, 255, 255, .14); }
.tbtn:active { transform: scale(.94); }
.tbtn .ico { width: 24px; height: 24px; }
.tbtn .ico--skip { width: 32px; height: 32px; font-family: var(--font-head); }
.tbtn--play { width: 70px; height: 70px; background: var(--gold-bright); color: var(--blue-night); }
.tbtn--play:hover { background: #E5C069; }
.tbtn--play .ico { width: 34px; height: 34px; }
[data-i=pause], .is-playing [data-play] [data-i=play] { display: none; }
.is-playing [data-play] [data-i=pause] { display: inline-block; }
.speeds { display: inline-flex; justify-self: start; background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 4px; }
.speeds button { min-width: 48px; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--blue-soft); font-family: var(--font-head); font-weight: 600; font-size: .86rem; cursor: pointer; }
.speeds button:hover { color: var(--white); }
.speeds button[aria-pressed=true] { background: var(--white); color: var(--blue-night); }
.volume { display: flex; align-items: center; gap: .6rem; justify-self: end; color: var(--blue-soft); }
.volume span { display: flex; }
.volume input { width: 96px; accent-color: var(--gold-bright); }
@media (pointer: coarse) { .volume { visibility: hidden; } }
@media (max-width: 700px) {
  .deck__controls { grid-template-columns: 1fr; justify-items: center; }
  .deck .transport { order: -1; }
  .speeds { justify-self: center; }
  .volume { display: none; }
}
@media (max-width: 360px) { .tbtn { width: 42px; height: 42px; } .tbtn--play { width: 62px; height: 62px; } }

/* The mini player, once the main one has scrolled away */
.dock { position: sticky; bottom: 0; z-index: 40; background: var(--blue-night); color: var(--white); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -12px 30px -18px rgba(10, 49, 80, .7); }
.dock__bar { position: relative; height: 6px; background: linear-gradient(to right, var(--gold-bright) var(--done, 0%), rgba(255, 255, 255, .2) var(--done, 0%)); }
.dock__bar input { inset: -9px 0; height: 24px; opacity: 0; }
.dock__bar:focus-within { outline: 3px solid var(--gold-bright); }
.dock__inner { display: flex; align-items: center; gap: .9rem; padding-top: .55rem; padding-bottom: .55rem; }
.dock__now { flex: 1; min-width: 0; margin: 0; line-height: 1.35; }
.dock__now strong { display: block; font-family: var(--font-head); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__now > span { font-size: .82rem; color: var(--blue-soft); font-variant-numeric: tabular-nums; }
.dock .tbtn { width: 44px; height: 44px; }
.dock .tbtn--play { width: 52px; height: 52px; }
.dock .tbtn--play .ico { width: 26px; height: 26px; }
@media (max-width: 420px) { .dock .cover { display: none; } }

/* Chapters and the side column */
.study { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, 1fr); gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
.study h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.study__side { display: grid; gap: 1rem; position: sticky; top: 100px; grid-column: 2; grid-row: 1 / span 2; }
.study__main, .study__more { grid-column: 1; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracks li { border-bottom: 1px solid var(--line); }
.track { position: relative; width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: .2rem 1rem; align-items: start; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 0; padding: 1.05rem .7rem; cursor: pointer; transition: background .2s; }
.track:hover { background: var(--blue-mist); }
.track__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-pale); color: var(--blue-deep); font-family: var(--font-head); }
.track__n b { display: grid; }
.track__n b .ico { width: 18px; height: 18px; display: block !important; margin-left: 2px; }
.track__n .ico, .track__n .eq { display: none; }
.track.is-done .track__n { background: var(--blue); color: var(--white); }
.track.is-done .track__n .ico { display: block; }
.track.is-done .track__n b { display: none; }
.track.is-active { background: var(--blue-mist); }
.track.is-active .track__n { background: var(--blue-night); color: var(--gold-bright); }
.track__text strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; line-height: 1.35; margin-bottom: .15rem; }
.track.is-active .track__text strong { color: var(--blue-deep); }
.track__text > span { display: block; font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
.track__len { font-size: .9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.track__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.track__bar span { display: block; height: 100%; width: 0; background: var(--blue); }
.eq { align-items: end; gap: 3px; height: 16px; }
.eq i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.35s; }
.eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.is-playing .track.is-active .eq { display: flex; }
.is-playing .track.is-active b, .is-playing .track.is-active .track__n .ico { display: none; }
.study__about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); }
.provider { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 0; padding: .9rem 1.1rem; background: var(--blue-mist); border-radius: 14px; font-size: .95rem; }
.provider .ico { color: var(--gold-text); width: 26px; height: 26px; }

.credit { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 1.5rem; }
.credit__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.credit__head h2 { font-size: 1.16rem; margin: 0 0 .1rem; color: var(--gold-text); }
.credit__head p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
.credit .btn { width: 100%; }
.credit__note { margin: .8rem 0 0; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.path { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.path li { position: relative; display: flex; gap: .9rem; padding-bottom: 1rem; }
.path li:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: 38px; bottom: 0; width: 2px; background: var(--line); }
.path__dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); color: var(--ink-soft); background: var(--white); flex-shrink: 0; }
.path__dot .ico { width: 20px; height: 20px; }
.path__text { display: grid; line-height: 1.35; padding-top: .1rem; }
.path__text strong { font-family: var(--font-head); font-size: .98rem; }
.path__text > span { font-size: .88rem; color: var(--ink-soft); }
.path .is-done .path__dot { background: var(--blue); border-color: var(--blue); color: var(--white); }
.path .is-done:not(:last-child)::before { background: var(--blue); }
.path .is-current .path__dot { border-color: var(--gold-bright); color: var(--gold-text); }
.side-link { display: flex; gap: .9rem; align-items: flex-start; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.15rem; line-height: 1.45; transition: border-color .2s, background .2s; }
a.side-link:hover { border-color: var(--blue-soft); background: var(--blue-mist); color: var(--ink); }
.side-link > .ico { color: var(--blue); width: 26px; height: 26px; }
.side-link strong { display: block; font-family: var(--font-head); }
.side-link > span > span { display: block; font-size: .91rem; color: var(--ink-soft); }
.side-link .side-link__acts { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .5rem; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.mini { position: relative; display: flex; gap: 1.1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; }
.mini:has(a):hover { border-color: var(--blue-soft); }
.mini h3 { font-size: 1.1rem; margin: 0 0 .15rem; }
.mini h3 a { color: inherit; text-decoration: none; }
.mini h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.mini p { margin: 0; line-height: 1.45; font-size: .96rem; }
.mini__meta { font-size: .88rem; color: var(--ink-soft); margin: .25rem 0 0; }
@media (max-width: 900px) { .study { grid-template-columns: 1fr; } .study__side { position: static; } .study__side, .study__main, .study__more { grid-column: 1; grid-row: auto; } }
@media (max-width: 640px) { .study__about { grid-template-columns: 1fr; } .track { grid-template-columns: 40px 1fr auto; gap: .2rem .8rem; padding: .95rem .3rem; } }

/* ---------- Steps to the certificate ---------- */
.flow-head { background: var(--blue-mist); padding: clamp(1.4rem, 3vw, 2rem) 0 clamp(1.4rem, 3vw, 2rem); }
.flow-head__course { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); line-height: 1.35; margin-bottom: 1.4rem; }
.flow-head__course strong { display: block; font-family: var(--font-head); }
.flow-head__course span span { font-size: .9rem; color: var(--ink-soft); }
.flow-head__course:hover strong { color: var(--blue); text-decoration: underline; }
.flow-head .script-md { color: var(--gold); font-size: clamp(1.8rem, 3.2vw, 2.3rem); margin: 1.6rem 0 .2rem; }
.flow-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: .2em; }
.flow-head .lead { margin: .5rem 0 0; font-size: 1.05rem; }
.pathbar { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
.pathbar li { position: relative; display: grid; justify-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: var(--ink-soft); }
.pathbar li:not(:first-child)::before { content: ""; position: absolute; z-index: 0; right: calc(50% + 24px); left: calc(-50% + 24px); top: 20px; height: 2px; background: var(--blue-soft); }
.pathbar__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue-soft); color: var(--ink-soft); }
.pathbar .is-done .pathbar__dot { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pathbar .is-done, .pathbar .is-current { color: var(--blue-deep); }
.pathbar .is-current .pathbar__dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 5px var(--blue-pale); }
.pathbar .is-done + li::before { background: var(--blue); }
@media (max-width: 420px) { .pathbar li { font-size: .74rem; } }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.2rem); }
.panel h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-bottom: .5rem; }
.panel > :last-child { margin-bottom: 0; }
.panel--center, .ask__intro { text-align: center; }
#quiz { scroll-margin-top: 100px; }
.panel--center .btn + p { margin-top: 1.2rem; }
.panel--center .ring { width: 108px; height: 108px; margin: 0 auto 1rem; display: grid; }
.panel--center .ring__label { font-size: 1.4rem; }
.price { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.2; color: var(--blue-deep); margin: 0 0 .5rem; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1.1rem; }
.panel--pick { display: flex; flex-direction: column; align-items: flex-start; }
.panel--pick .btn { margin-top: auto; width: 100%; min-height: 56px; }
.pick__ico, .ask__badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blue-pale); color: var(--blue-deep); margin-bottom: 1rem; }
.pick__ico .ico, .ask__badge .ico { width: 28px; height: 28px; }
.code-box { margin-top: 1.4rem; }
.code-box summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--blue); }
.code-box .form { max-width: 320px; margin-top: 1rem; justify-items: start; }

/* ---------- Quiz, survey and forms ---------- */
.ask__badge { margin: 0 auto 1rem; }
.ask__bar { height: 8px; border-radius: 4px; background: var(--blue-pale); overflow: hidden; margin-bottom: 1.6rem; }
.ask__bar span { display: block; height: 100%; border-radius: 4px; background: var(--blue); transition: width .3s; }
.ask__score { display: grid; justify-items: center; text-align: center; }
.ask__score .ring { width: 148px; height: 148px; margin-bottom: 1.2rem; }
.ask__score .ring__label { font-size: 2rem; color: var(--blue-deep); }
.ask__score.is-pass .ring__bar { stroke: var(--gold); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.45; padding: 0; margin-bottom: .9rem; }
.ask .form legend { font-size: clamp(1.12rem, 2.4vw, 1.35rem); margin-bottom: 1.2rem; }
.form legend:focus { outline: none; }
.survey fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: .6rem; }
.survey__n { display: block; font-size: .8rem; letter-spacing: .04em; color: var(--gold-text); margin-bottom: .35rem; }
.form .choice { display: flex; align-items: center; gap: .85rem; font-family: var(--font-body); font-weight: 400; font-size: 1rem; line-height: 1.5; border: 1.5px solid var(--line); border-radius: 14px; padding: .85rem 1.05rem; margin: 0 0 .65rem; cursor: pointer; transition: border-color .15s, background .15s; }
.form .choice:hover { border-color: var(--blue-mid); }
.form .choice:has(> input:checked) { border-color: var(--blue); background: #F0F7FC; box-shadow: inset 0 0 0 1px var(--blue); }
.form .choice:has(> input:focus-visible) { outline: 3px solid var(--blue-mid); outline-offset: 2px; }
.form .choice > input[type=radio], .form .choice > input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; margin: 0; padding: 0; accent-color: var(--blue); }
.form .choice--other > input[type=text] { flex: 1; min-width: 0; padding: .4rem .6rem; }
.choice__letter { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; background: var(--blue-pale); color: var(--blue-deep); font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.choice:has(> input:checked) .choice__letter { background: var(--blue); color: var(--white); }
.ask .choice > input { position: absolute; opacity: 0; width: 1px !important; height: 1px !important; }
.form .btn { justify-self: start; }
.ask .btn-row { justify-content: space-between; margin-top: 1.4rem; }
.ask .btn-row .btn:only-child { margin-left: auto; }
.ask__score .btn-row { justify-content: center; }
.ask__score .btn-row .btn:only-child { margin: 0; }
.form-error { color: #9B1C1C; background: #FDF2F2; border-radius: var(--radius-sm); padding: .7rem .95rem; margin: 0 0 .8rem; font-size: .96rem; }
.form-done { color: var(--blue-deep); background: var(--blue-mist); border-radius: var(--radius-sm); padding: .7rem .95rem; margin: 0; }
.is-busy .btn { opacity: .6; }
.form .code-input { font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; letter-spacing: .3em; text-align: center; }

/* ---------- Sign in ---------- */
.door { background: var(--blue-mist); padding: clamp(1.4rem, 5vw, 4rem) 0; }
.door__grid { display: grid; grid-template-columns: 1fr 1.25fr; max-width: calc(960px + 2 * var(--gutter)); }
.door__side { background: radial-gradient(120% 120% at 80% 0%, #135486, var(--blue-night) 65%); color: #D5E4F1; border-radius: 22px 0 0 22px; padding: clamp(1.6rem, 4vw, 2.8rem); }
.door__side img { width: 92px; height: auto; }
.door__side .script-md { color: var(--gold-bright); margin: 1.2rem 0 1.4rem; }
.door__side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.door__side li { display: flex; gap: .8rem; line-height: 1.45; }
.door__side .ico { color: var(--gold-bright); }
.door__main { background: var(--white); border: 1px solid var(--line); border-left: 0; border-radius: 0 22px 22px 0; padding: clamp(1.6rem, 4vw, 2.8rem); }
.door__main h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.door__main .form .btn { width: 100%; }
.door__alt { margin: 1.3rem 0 0; }
@media (max-width: 760px) {
  .door__grid { grid-template-columns: 1fr; }
  .door__side { border-radius: 22px 22px 0 0; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; }
  .door__side img { width: 46px; }
  .door__side .script-md { margin: 0; }
  .door__side ul { display: none; }
  .door__main { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px; }
}

/* ---------- My Courses ---------- */
.stage--hub .script-md { margin-bottom: .1rem; }
.resume { display: grid; grid-template-columns: minmax(140px, 230px) 1fr; gap: clamp(1.2rem, 4vw, 2.6rem); align-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: clamp(1.1rem, 3vw, 1.8rem); margin-top: 1.2rem; }
.resume h2 { color: var(--white); margin-bottom: .2rem; }
.resume__k { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--gold-bright); margin-bottom: .3rem; }
.resume .pathbar { margin: 0 0 1.5rem; max-width: 520px; }
.resume .pathbar li, .resume .pathbar .is-done, .resume .pathbar .is-current { color: #D5E4F1; }
.resume .pathbar .is-current .pathbar__dot { border-color: var(--gold-bright); color: var(--gold-text); box-shadow: 0 0 0 4px rgba(217, 174, 82, .28); }
.resume .pathbar .is-done .pathbar__dot { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--blue-night); }
.resume .pathbar li::before { background: rgba(255, 255, 255, .25) !important; }
@media (max-width: 640px) { .resume { grid-template-columns: 1fr; } .resume .cover { max-width: 170px; } .resume .btn { width: 100%; } }
.shelf { display: grid; border-top: 1px solid var(--line); }
.shelf__row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1.3rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.shelf__text h3 { margin: 0 0 .1rem; }
.shelf__text h3 a { color: inherit; text-decoration: none; }
.shelf__text h3 a:hover { color: var(--blue); text-decoration: underline; }
.shelf__text p { margin: 0; line-height: 1.45; }
.shelf__go { display: grid; gap: .4rem; justify-items: center; }
@media (max-width: 700px) { .shelf__row { grid-template-columns: auto 1fr; } .shelf__row .ring { display: none; } .shelf__go { grid-column: 1 / -1; justify-items: stretch; text-align: center; } }
.hub { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); }
@media (max-width: 760px) { .hub { grid-template-columns: 1fr; } }
.invoice-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .6rem; }
.invoice-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; text-decoration: none; color: var(--ink); }
.invoice-list a:hover { border-color: var(--blue-soft); }
.invoice-list a > span > span { display: block; }
.invoice__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.invoice__head h1 { font-size: 1.5rem; }
.invoice .compare td:last-child, .invoice .compare th:last-child { text-align: right; white-space: nowrap; }

/* ---------- Certificate ---------- */
.diploma { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 1.6rem; box-shadow: 0 22px 46px -34px rgba(10, 49, 80, .55); }
@media (min-width: 1060px) { .diploma { width: 1000px; margin-left: calc(50% - 500px); } }
.diploma img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .diploma { margin-inline: calc(-1 * var(--gutter)); border-inline: 0; border-radius: 0; } }
.next-steps { display: grid; gap: .9rem; margin: 2rem 0; }
.next-steps p { display: flex; gap: .9rem; margin: 0; }
.next-steps .next-steps__sent { background: #F0F7FC; border-radius: 14px; padding: .95rem 1.1rem; overflow-wrap: anywhere; }
.next-steps .ico { color: var(--blue); margin-top: .2rem; }
@media (max-width: 520px) { .btn-row--center .btn { flex: 1 1 100%; } }

@media print { .dock, .stage, .flow-head { display: none !important; } }
