/* ==========================================================================
   Public pages — catalogue, course, checkout, verify, auth + shared pieces
   ========================================================================== */

.logo__handles { fill: var(--logo-bg, var(--card)); }
.site-main { padding-top: 24px; min-height: 70vh; }

/* ---------- certificate artwork (scales with its width) ---------- */
.cert {
  --c-ink: #171717; --c-mute: #737373; --c-rule: #E5E5E5; --c-brand: #FF4D3D;
  container-type: inline-size; position: relative; aspect-ratio: 297 / 210; width: 100%;
  background: #FFFFFF; color: var(--c-ink); border-radius: .5cqw; overflow: hidden; text-align: left;
}
.cert__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.cert__border { fill: none; stroke: var(--c-ink); stroke-width: .5; vector-effect: non-scaling-stroke; }
.cert__inner { fill: none; stroke: var(--c-rule); stroke-width: .35; vector-effect: non-scaling-stroke; }
.cert__ribbon {
  position: absolute; top: 2cqw; right: 7cqw; width: 15cqw; height: 31cqw; padding-top: 3.4cqw;
  display: flex; flex-direction: column; align-items: center; gap: .55cqw;
  background: var(--c-ink); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}
.cert__ribbon-mark { width: 6.4cqw; height: 6.4cqw; border-radius: 50%; margin-bottom: .6cqw; }
.cert__ribbon b { font-size: 1.95cqw; font-weight: 750; font-stretch: 88%; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.cert__ribbon em { font-family: var(--f-serif); font-size: 1.9cqw; line-height: 1; margin-top: -.2cqw; }
.cert__ribbon i { width: 5cqw; height: .3cqw; background: var(--c-brand); margin: .9cqw 0 .5cqw; }
.cert__ribbon small { font-family: var(--f-mono); font-size: .78cqw; letter-spacing: .2em; text-transform: uppercase; color: #A3A3A3; }
.cert__body { position: absolute; left: 7cqw; top: 8cqw; width: 60cqw; }
.cert__title { display: grid; line-height: .9; }
.cert__title span { font-size: 7.4cqw; font-weight: 800; font-stretch: 92%; letter-spacing: .005em; text-transform: uppercase; color: var(--c-brand); }
.cert__title em { font-style: normal; font-size: 2.55cqw; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin-top: .7cqw; }
.cert__given { margin-top: 3.4cqw; font-size: 1.3cqw; color: var(--c-mute); }
.cert__name { margin-top: .9cqw; }
.cert__name > span { display: block; font-size: 4.5cqw; font-weight: 620; font-stretch: 94%; letter-spacing: -.02em; line-height: 1.1; }
.cert__line { display: block; width: 50cqw; height: .32cqw; margin-top: .9cqw; background: var(--c-brand); transform-origin: left; }
.cert__text { margin-top: 2.4cqw; max-width: 56cqw; font-size: 1.16cqw; line-height: 1.6; color: #404040; }
.cert__text b { color: var(--c-ink); font-weight: 650; }
.cert__signs { display: flex; gap: 6cqw; margin-top: 3.4cqw; }
.cert__signs div { display: grid; width: 19cqw; }
.cert__sig { width: 15cqw; height: auto; fill: none; stroke: var(--c-ink); stroke-width: 1.5; stroke-linecap: round; margin-bottom: .3cqw; }
.cert__signs b { padding-top: .7cqw; border-top: .12cqw solid var(--c-ink); font-size: 1.15cqw; font-weight: 650; }
.cert__signs small { font-family: var(--f-mono); font-size: .74cqw; color: var(--c-mute); text-transform: uppercase; letter-spacing: .08em; margin-top: .3cqw; }
.cert__qr { position: absolute; right: 9.5cqw; top: 36cqw; width: 10cqw; display: grid; justify-items: center; gap: .7cqw; }
.cert__qrcode { width: 10cqw; }
.cert__qrcode svg { width: 100%; height: auto; }
.cert__qr small { font-family: var(--f-mono); font-size: .7cqw; color: var(--c-mute); text-transform: uppercase; letter-spacing: .1em; }
.cert__foot { position: absolute; left: 7cqw; right: 7cqw; bottom: 4.4cqw; display: flex; justify-content: space-between; gap: 2cqw; font-family: var(--f-mono); font-size: .82cqw; color: var(--c-mute); }
.cert__foot b { color: var(--c-ink); font-weight: 500; }
.cert--revoked { filter: grayscale(1); }
.cert__void {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); z-index: 3;
  border: .4cqw solid var(--bad); color: var(--bad); padding: 1cqw 3cqw; font-size: 6cqw; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: rgb(255 255 255 / .85);
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 40px 0 48px; }
.page-hero .h1 { margin: 14px 0 16px; }
.page-hero .h1 .serif { font-weight: 400; letter-spacing: -.02em; }
.crumbline { font-family: var(--f-mono); font-size: 12px; color: var(--mute); display: flex; gap: 8px; align-items: center; }
.crumbline a { text-decoration: none; }
.crumbline a:hover { color: var(--signal-ink); }

/* ---------- catalogue ---------- */
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding-bottom: 40px; }
.ccard { --sel: var(--accent, var(--signal)); position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ccard__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.ccard__cover { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.ccard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ccard__meta { --gap: 10px; }
.ccard__title { font-size: 1.45rem; letter-spacing: -.015em; }
.ccard__sub { color: var(--mute); font-size: 15px; }
.ccard__foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--rule); display: flex; align-items: center; justify-content: space-between; }
.ccard__price { display: flex; align-items: baseline; gap: 2px 8px; flex-wrap: wrap; }
.ccard__emi { flex-basis: 100%; font-size: 13px; color: var(--mute); }
.ccard__price b { font-size: 1.5rem; color: var(--ink); font-weight: 660; letter-spacing: -.01em; }
.ccard__go { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); transition: background .2s, color .2s; }
.ccard:hover .ccard__go { background: var(--ink); color: var(--paper); }

.compare { margin: 64px 0 96px; }
.compare .table td:first-child { font-weight: 560; color: var(--ink); }
.compare .table td, .compare .table th { white-space: nowrap; }
.compare-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 8px; vertical-align: middle; }

/* ---------- course detail ---------- */
.course-hero { padding: 36px 0 56px; }
.course-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.course-hero h1 { margin: 16px 0 14px; font-size: clamp(2.6rem, 6vw, 5rem); }
.course-hero .lede { max-width: 52ch; }
.course-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 30px; border-top: 1px solid var(--ink); }
.course-meta div { padding: 14px 22px 0 0; min-width: 120px; }
.course-meta div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.course-meta dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); }
.course-meta dd { font-weight: 600; color: var(--ink); margin-top: 4px; }
.buybox { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; }
.buybox__body { padding: 22px 24px 24px; display: grid; gap: 14px; }
.buybox__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buybox__price b { font-size: 2.6rem; font-weight: 660; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.buybox__save { font-family: var(--f-mono); font-size: 12px; background: var(--signal-soft); color: var(--signal-ink); padding: 4px 7px; border-radius: 4px; }
.buybox ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.buybox li { display: flex; gap: 10px; align-items: center; }
.buybox li .i { color: var(--signal); }
.buybox__note { font-size: 12.5px; color: var(--mute); text-align: center; }
.course-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: clamp(28px, 4vw, 64px); padding-bottom: 96px; }
.course-section + .course-section { margin-top: 64px; }
.course-section > .eyebrow { margin-bottom: 18px; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.outcomes li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); font-size: 15px; color: var(--ink); }
.outcomes .mono { color: var(--signal-ink); font-size: 12px; margin-top: 4px; }
.syllabus { border-top: 1px solid var(--ink); }
.syl { border-bottom: 1px solid var(--rule); }
.syl summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto 22px; gap: 12px; align-items: center; padding: 20px 0; }
.syl summary::-webkit-details-marker { display: none; }
.syl summary .num-tag { font-family: var(--f-mono); font-size: 12px; color: var(--faint); }
.syl summary b { font-size: 1.15rem; color: var(--ink); font-weight: 620; letter-spacing: -.015em; }
.syl summary small { display: block; color: var(--mute); font-size: 13.5px; font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.syl summary .chev { transition: transform .3s var(--ease); color: var(--mute); }
.syl[open] summary .chev { transform: rotate(180deg); }
.syl ol { list-style: none; padding: 0 0 18px 56px; display: grid; gap: 2px; }
.syl li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 8px; font-size: 15px; }
.syl li:hover { background: var(--card); }
.syl li span:first-child { display: flex; gap: 10px; align-items: center; }
.syl li .i { color: var(--faint); }
.briefs { display: grid; gap: 12px; }
.brief-card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); }
.brief-card__n { width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; }
.brief-card h3 { font-size: 1.05rem; }
.brief-card p { color: var(--mute); font-size: 14px; margin-top: 4px; }
.mentor-card { display: grid; gap: 14px; padding: 22px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.mentor-card .row { --gap: 14px; }
.mentor-card h3 { font-size: 1.25rem; }
.cert-mini { padding: 18px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--rule); }
.cert-mini .cert { box-shadow: var(--shadow-1); }
@media (max-width: 980px) {
  .course-hero__grid, .course-body { grid-template-columns: minmax(0, 1fr); }
  .buybox { position: static; }
  /* Phones: name, summary and details first, then the price box right after (not before them). */
  .course-side { order: 0; }
}
@media (max-width: 600px) {
  .course-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-meta div, .course-meta div + div { min-width: 0; padding: 12px 12px 12px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .course-meta div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }
  .course-hero { padding-bottom: 32px; }
}
@media (max-width: 600px) { .outcomes { grid-template-columns: minmax(0, 1fr); } .syl ol { padding-left: 0; } }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(24px, 4vw, 56px); padding: 24px 0 96px; align-items: start; }
.order { background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; position: sticky; top: 96px; }
.order__head { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 18px; border-bottom: 1px solid var(--rule); align-items: center; }
.order__head .cover-frame { border-radius: 10px; }
.order__lines { padding: 18px; display: grid; gap: 10px; }
.order__line { display: flex; justify-content: space-between; font-size: 15px; }
.order__line--discount { color: var(--ok); }
.order__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; border-top: 1px solid var(--ink); }
.order__total b { font-size: 2rem; font-weight: 660; letter-spacing: -.01em; color: var(--ink); }
.order__pay { padding: 0 18px 18px; display: grid; gap: 10px; }
.trust { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-family: var(--f-mono); font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.trust span { display: inline-flex; gap: 5px; align-items: center; }
.coupon { display: flex; gap: 8px; }
.coupon .input { text-transform: uppercase; }
.steps-list { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.steps-list li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 9px; color: var(--ink); }
.steps-list b { display: block; color: var(--ink); }
.steps-list p { color: var(--mute); font-size: 14.5px; }
.testpay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgb(23 23 23 / .45); }
.testpay__card { width: min(420px, 100%); background: var(--card); border-radius: 18px; padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow-2); animation: flash-in .4s var(--ease) both; }
.testpay__card .row { --gap: 10px; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } .order { position: static; } }

/* ---------- verify ---------- */
.verify { padding: 24px 0 96px; }
.verify__form { display: flex; gap: 10px; max-width: 560px; margin-top: 26px; }
.verify__form .input { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.verify__result { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 40px; }
.verify__status { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--ok-soft); color: var(--ok); margin-bottom: 18px; }
.verify__status--bad { background: var(--bad-soft); color: var(--bad); }
.verify__status .i { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: currentColor; stroke: #fff; }
.verify__status b { display: block; color: var(--ink); font-size: 1.05rem; }
.verify__status span { font-size: 14px; }
.verify dl.facts { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.verify dl.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.verify dl.facts dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding-top: 3px; }
.verify dl.facts dd { color: var(--ink); font-weight: 560; word-break: break-word; }
.verify__stage { padding: clamp(12px, 2.5vw, 28px); border-radius: var(--r-lg); background: var(--paper-2) radial-gradient(var(--rule-2) 1px, transparent 1.2px) 0 0 / 18px 18px; border: 1px solid var(--rule); }
.verify__stage .cert { box-shadow: var(--shadow-2); }
@media (max-width: 900px) { .verify__result { grid-template-columns: minmax(0, 1fr); } }

/* ---------- auth ---------- */
.auth { background: var(--paper); }
.auth__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100dvh; }
.auth__art {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px;
  background: var(--night); color: #A3A3A3; overflow: hidden;
}
.auth__art .logo { color: #fff; }
.auth__pitch .display { color: #fff; font-size: clamp(2.2rem, 3.6vw, 3.4rem); max-width: 14ch; margin-bottom: 16px; }
.auth__pitch p { font-size: 17px; max-width: 40ch; line-height: 1.6; }
.auth__proof { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth__proof li { padding: 16px; border-radius: var(--r); background: #1F1F1F; border: 1px solid #2E2E2E; display: grid; gap: 4px; }
.auth__proof b { color: #fff; font-size: 1.6rem; font-weight: 750; letter-spacing: -.01em; }
.auth__proof span { font-size: 13px; line-height: 1.4; }
.auth__main { display: grid; place-items: center; padding: 48px var(--gutter); }
.auth__card { width: min(420px, 100%); }
.auth__card .h2 { margin: 12px 0 8px; }
.auth__card form { margin-top: 28px; }
.auth__alt { margin-top: 22px; font-size: 15px; color: var(--mute); }
.auth__mobile-logo { display: none; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bad-soft); color: var(--bad); font-size: 14.5px; margin-top: 18px; }
.alert--info { background: #E2E6FF; color: var(--cobalt); }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--warn { background: var(--warn-soft); color: var(--warn); }
.alert--warn b { color: inherit; }
.alert .grow { flex: 1; }
@media (max-width: 900px) {
  .auth__grid { grid-template-columns: minmax(0, 1fr); }
  .auth__art { display: none; }
  .auth__main { place-items: start center; padding-top: 28px; padding-bottom: 110px; }
  .auth__mobile-logo { display: block; margin-bottom: 36px; }
}

/* ---------- error ---------- */
.error-page { padding: 40px 0 120px; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.error-page__code { font-size: clamp(6rem, 20vw, 15rem); font-weight: 700; font-stretch: 75%; letter-spacing: -.01em; line-height: .8; color: var(--ink); position: relative; padding: 10px 14px; }
.error-page pre { white-space: pre-wrap; font-family: var(--f-mono); font-size: 11px; background: var(--card); border: 1px solid var(--rule); padding: 14px; border-radius: var(--r-sm); max-height: 260px; overflow: auto; margin-top: 16px; }
@media (max-width: 700px) { .error-page { grid-template-columns: minmax(0, 1fr); } }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }

/* ---------- course page testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.quote { display: grid; gap: 12px; padding: 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); }
.quote__stars { color: var(--signal); letter-spacing: 2px; font-size: 13px; }
.quote blockquote { font-size: 15.5px; color: var(--ink); line-height: 1.55; }
.quote figcaption { display: flex; gap: 10px; align-items: center; }
.quote figcaption span:not(.avatar) { display: grid; font-size: 12.5px; color: var(--mute); }
.quote figcaption b { color: var(--ink); font-size: 14px; }

/* ---------- EMI ---------- */
.emi { border-radius: var(--r); background: var(--paper); }
.emi summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 14.5px; color: var(--ink-2); }
.emi summary::-webkit-details-marker { display: none; }
.emi summary > .i:first-child { color: var(--signal); }
.emi summary span { flex: 1; }
.emi summary b { color: var(--ink); font-weight: 600; }
.emi__chev { transition: transform .3s var(--ease); color: var(--mute); }
.emi[open] .emi__chev { transform: rotate(180deg); }
.emi .emi__table, .emi .emi__note { margin: 0 14px; }
.emi .emi__note { padding-bottom: 12px; }
.emi__table { width: calc(100% - 28px); border-collapse: collapse; font-size: 14px; }
.paywith .emi__table { width: 100%; }
.emi__table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--mute); padding: 6px 0; border-bottom: 1px solid var(--rule-2); }
.emi__table td { padding: 8px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.emi__table :is(th, td):not(:first-child) { text-align: right; }
.emi__table b { color: var(--ink); font-weight: 600; }
.emi__note { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.paywith { border: 0; padding: 0 18px 16px; margin: 0; display: grid; gap: 8px; }
.paywith__opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); border: 1px solid var(--rule-2); background: var(--card); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.paywith__opt:has(input:checked) { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.paywith__opt input { flex: none; width: 18px; height: 18px; accent-color: var(--signal); }
.paywith__opt span { flex: 1; display: grid; gap: 1px; min-width: 0; }
.paywith__opt b { color: var(--ink); font-size: 15px; font-weight: 600; }
.paywith__opt small { color: var(--mute); font-size: 12.5px; }
.paywith__opt em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.paywith__plans { padding: 4px 4px 0; }
/* Phones: the order summary and Pay button come first; "what happens next" follows. */
@media (max-width: 900px) {
  /* Phones: heading and "you're enrolling as…" → order & Pay → what happens next. */
  .checkout { row-gap: 18px; }
  .checkout > div:first-child { display: contents; }
  .checkout > div:first-child > :is(h1, .lede) { order: -2; }
  .checkout > div:first-child > h1 { margin: 6px 0 -8px !important; font-size: clamp(2.2rem, 10vw, 3rem); }
  .checkout > .order { order: -1; }
  .checkout > div:first-child > .card { order: 0; margin-top: 0 !important; }
}

/* Sign-in / sign-up arriving from "Enroll": which course you're joining. */
.auth__course { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 22px; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); }
.auth__course-art { flex: none; width: 64px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; }
.auth__course-art svg, .auth__course-art > * { display: block; width: 100%; height: 100%; }
.auth__course small { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.auth__course b { display: block; font-size: 15px; line-height: 1.25; color: var(--ink); }
.auth__course span:not(.auth__course-art) { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mute); }
.auth__or { display: flex; align-items: center; gap: 10px; margin: 18px 0 4px; font-size: 12.5px; color: var(--faint); }
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
/* Breadcrumbs wrap like a sentence instead of squeezing a long course name into a column. */
.crumbline { display: block; line-height: 1.6; overflow-wrap: anywhere; }
.crumbline > * { display: inline; }

/* Verify page opened from a link: the verdict first, then the certificate, then "check another". */
.verify:has(.verify__result) { display: flex; flex-direction: column; }
.verify:has(.verify__result) > .verify__result { order: 1; margin-top: 18px; }
.verify:has(.verify__result) > .verify__form { order: 2; margin-top: 32px; }
.verify:has(.verify__result) > .lede { order: 3; margin-top: 10px; font-size: 14.5px; }
@media (max-width: 900px) {
  .verify__result > div:not(.verify__stage) { order: -1; }
}

/* Course grid: never a half-empty last row, whatever the number of courses.
   Desktop uses six tracks — three cards a row — and evens out the remainder:
   5, 8 … courses put the first two in a row of their own (2 + 3), and
   4, 7 … go two by two first (2 + 2 + 3). */
@media (min-width: 1000px) {
  .catalogue { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .catalogue > .ccard { grid-column: span 2; }
  .catalogue:has(> .ccard:nth-child(3n + 2):last-child) > .ccard:nth-child(-n + 2),
  .catalogue:has(> .ccard:nth-child(3n + 1):last-child) > .ccard:nth-child(-n + 4) { grid-column: span 3; }
}
/* Tablets: two a row; an odd last card takes the whole row, cover on the left. */
@media (min-width: 721px) and (max-width: 999px) {
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue > .ccard:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .catalogue > .ccard:last-child:nth-child(odd) .ccard__cover { flex: 0 0 46%; border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .catalogue > .ccard:last-child:nth-child(odd) .ccard__cover .cover { height: 100%; aspect-ratio: auto; }
}
