/* Course detail pages (courses/*.php via courses/_course-page.php). Loaded only there via $extraStyles.
   Tokens come from style.css. Scroll-reveal states apply only when assets/js/course-detail.js adds .cd-js. */

.course-detail .cd-h2 { margin: 0 0 var(--space-lg); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; }
.course-detail .cd-h2::after { content: ""; display: block; width: 3.25rem; height: 4px; margin-top: .6rem; border-radius: 4px; background: var(--gradient-amber); }

/* ---------- Hero ---------- */
.cd-hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.75rem, 6vw, 4.5rem); color: var(--color-white); background: radial-gradient(circle at 90% 10%, rgb(13 110 253 / 40%), transparent 55%), var(--gradient-blue); }
.cd-hero__ring { position: absolute; z-index: 0; border-radius: 50%; border: 2px dashed rgb(255 255 255 / 14%); pointer-events: none; animation: cd-spin 55s linear infinite; }
.cd-hero__ring--1 { top: -10rem; right: -8rem; width: 26rem; height: 26rem; }
.cd-hero__ring--2 { bottom: -9rem; left: -6rem; width: 18rem; height: 18rem; border-style: solid; border-color: rgb(245 158 11 / 24%); animation-direction: reverse; animation-duration: 40s; }
@keyframes cd-spin { to { transform: rotate(360deg); } }
.cd-hero__grid { position: relative; z-index: 1; display: grid; gap: var(--space-2xl); align-items: center; }
.cd-breadcrumb { margin-bottom: var(--space-lg); font-size: var(--text-sm); color: rgb(255 255 255 / 72%); }
.cd-breadcrumb a { color: var(--color-white); text-decoration: none; }
.cd-breadcrumb a:hover { text-decoration: underline; }
.cd-pill { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 var(--space-sm); padding: .35rem .9rem; border-radius: 999px; background: rgb(245 158 11 / 20%); border: 1px solid rgb(245 158 11 / 45%); font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FFD58A; }
.cd-pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--color-accent); animation: cd-pulse 1.8s ease-in-out infinite; }
@keyframes cd-pulse { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .4; scale: .6; } }
.cd-hero h1 { margin: 0 0 var(--space-md); color: var(--color-white); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; }
.cd-lead { max-width: 38rem; margin: 0 0 var(--space-lg); font-size: var(--text-lg); line-height: 1.7; color: rgb(255 255 255 / 86%); }
.cd-hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); margin: 0 0 var(--space-lg); padding: 0; list-style: none; }
.cd-hero__facts li { display: flex; align-items: center; gap: .65rem; max-width: 22rem; }
.cd-hero__factic { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 20%); color: var(--color-amber-soft); }
.cd-hero__factic svg, .cd-pdf svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cd-hero__facts small { display: block; font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / 68%); }
.cd-hero__facts strong { display: block; font-size: var(--text-sm); line-height: 1.35; }
.cd-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: 0 0 var(--space-lg); padding: 0; list-style: none; }
.cd-tags li { padding: .3rem .8rem; border: 1px solid rgb(255 255 255 / 30%); border-radius: 999px; background: rgb(255 255 255 / 9%); font-size: var(--text-sm); font-weight: 600; }

/* Buttons used on this page */
.cd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.course-detail .cd-btn-ghost { border: 1px solid rgb(255 255 255 / 60%); background: transparent; color: var(--color-white); }
.course-detail .cd-btn-ghost:hover { background: var(--color-white); color: var(--color-primary-dark); }
.cd-btn-main { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; animation: cd-glow 2.8s ease-out infinite; }
.cd-btn-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 55%) 50%, transparent 65%); transform: translateX(-130%); animation: cd-shine 4.2s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes cd-glow { 0% { box-shadow: 0 0 0 0 rgb(245 158 11 / 50%); } 70%, 100% { box-shadow: 0 0 0 14px rgb(245 158 11 / 0%); } }
@keyframes cd-shine { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.cd-arrow { display: inline-block; transition: transform .25s ease; }
.cd-btn-main:hover .cd-arrow { transform: translateX(6px); }
.cd-pdf { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--text-sm); font-weight: 700; color: var(--color-amber-soft); text-decoration: none; }
.cd-pdf:hover { text-decoration: underline; }
.cd-pdf--dark { color: var(--color-blue); }

/* Hero entrance (CSS only, so it works without JS) */
.cd-hero__text > * { animation: cd-up .7s cubic-bezier(.22, 1, .36, 1) backwards; }
.cd-hero__text > :nth-child(2) { animation-delay: .06s; }
.cd-hero__text > :nth-child(3) { animation-delay: .12s; }
.cd-hero__text > :nth-child(4) { animation-delay: .18s; }
.cd-hero__text > :nth-child(5) { animation-delay: .24s; }
.cd-hero__text > :nth-child(6) { animation-delay: .3s; }
.cd-hero__text > :nth-child(7) { animation-delay: .36s; }
@keyframes cd-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Hero picture with frame, dots and a floating badge */
.cd-hero__visual { position: relative; max-width: 34rem; width: 100%; margin-inline: auto; padding-bottom: 1.5rem; animation: cd-pop .9s cubic-bezier(.22, 1, .36, 1) .2s backwards; }
@keyframes cd-pop { from { opacity: 0; transform: scale(.94) translateY(16px); } to { opacity: 1; transform: none; } }
.cd-hero__shape { position: absolute; inset: 1.5rem -1rem 0 1.25rem; border-radius: 1.75rem; background: linear-gradient(135deg, rgb(245 158 11 / 85%), rgb(232 135 0 / 60%)); }
.cd-hero__dots { position: absolute; top: -1.25rem; left: -1.25rem; width: 7rem; height: 7rem; background-image: radial-gradient(rgb(255 255 255 / 70%) 22%, transparent 24%); background-size: 14px 14px; opacity: .5; animation: cd-dots 9s ease-in-out infinite; }
@keyframes cd-dots { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
.cd-hero__media { position: relative; margin: 0; overflow: hidden; border: 5px solid var(--color-white); border-radius: 1.5rem; box-shadow: 0 26px 50px rgb(0 0 0 / 30%); background: var(--color-white); }
.cd-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; animation: cd-kenburns 18s ease-in-out infinite alternate; }
@keyframes cd-kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.cd-hero__badge { position: absolute; left: -.75rem; bottom: 0; z-index: 2; display: flex; align-items: center; gap: .75rem; padding: .7rem 1.1rem .7rem .8rem; border-radius: 1rem; background: rgb(255 255 255 / 95%); backdrop-filter: blur(6px); box-shadow: 0 14px 30px rgb(0 0 0 / 25%); color: var(--color-primary); animation: cd-bob 5s ease-in-out infinite; }
.cd-hero__badge > span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--gradient-amber); color: var(--color-primary-dark); }
.cd-hero__badge svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cd-hero__badge strong { display: block; font-family: var(--font-heading); line-height: 1.2; }
.cd-hero__badge small { font-size: var(--text-xs); color: var(--color-text-secondary); }
@keyframes cd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Body: content + sticky enrol card ---------- */
.cd-body { padding-block: var(--space-2xl) var(--section-space); background: var(--color-background); }
.cd-body__grid { display: grid; gap: var(--space-2xl); align-items: start; }
.cd-main { display: grid; gap: var(--space-2xl); min-width: 0; }
.cd-block { min-width: 0; }
.cd-note { margin: var(--space-lg) 0 0; font-size: var(--text-sm); color: var(--color-text-secondary); }

/* Modules: accordion with a numbered node on each row */
.cd-modules { display: grid; gap: var(--space-sm); }
.cd-modules__tools { margin: 0 0 var(--space-xs); text-align: right; }
.cd-modules__tools[hidden] { display: none; }
.cd-link-btn { padding: 0; border: 0; background: none; font: inherit; font-size: var(--text-sm); font-weight: 700; color: var(--color-blue); cursor: pointer; }
.cd-link-btn:hover { text-decoration: underline; }
.cd-module { overflow: hidden; border: 1px solid #DCE5EE; border-radius: 1rem; background: var(--color-white); box-shadow: 0 4px 14px rgb(7 54 106 / 6%); transition: border-color .3s ease, box-shadow .3s ease; }
.cd-module:hover { border-color: var(--color-blue); }
.cd-module[open] { border-color: var(--color-blue); box-shadow: 0 14px 28px rgb(7 54 106 / 14%); }
.cd-module summary { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); cursor: pointer; list-style: none; font-weight: 600; color: var(--color-primary); }
.cd-module summary::-webkit-details-marker { display: none; }
.cd-module summary:focus-visible { outline: 3px solid var(--color-blue); outline-offset: -3px; border-radius: 1rem; }
.cd-module__no, .cd-steps__no { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--color-primary-light); color: var(--color-primary); font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; font-variant-numeric: tabular-nums; transition: background .3s ease, color .3s ease, rotate .3s ease; }
.cd-module[open] .cd-module__no { background: var(--gradient-amber); color: var(--color-primary-dark); rotate: -6deg; }
.cd-module__title { flex: 1; min-width: 0; }
.cd-module__count { flex: none; padding: .2rem .65rem; border-radius: 999px; background: var(--color-accent-light); color: var(--color-accent-dark); font-size: var(--text-xs); font-weight: 700; }
.cd-module summary::after { content: ""; flex: none; width: .6rem; height: .6rem; border-right: 2px solid var(--color-text-secondary); border-bottom: 2px solid var(--color-text-secondary); transform: rotate(45deg) translateY(-2px); transition: transform .25s ease; }
.cd-module[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.cd-module__body { padding: 0 var(--space-lg) var(--space-lg) calc(var(--space-lg) + 2.5rem + var(--space-md)); }
.cd-module[open] .cd-module__body { animation: cd-open .4s cubic-bezier(.22, 1, .36, 1); }
@keyframes cd-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.cd-module__body ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.cd-module__body li { position: relative; padding-left: 1.5rem; line-height: 1.55; color: var(--color-text-secondary); }
.cd-module__body li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--color-accent); }
.cd-steps { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.cd-steps li { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border: 1px solid #DCE5EE; border-radius: 1rem; background: var(--color-white); box-shadow: 0 4px 14px rgb(7 54 106 / 6%); font-weight: 600; color: var(--color-primary); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.cd-steps li:hover { transform: translateX(6px); border-color: var(--color-blue); box-shadow: 0 12px 24px rgb(7 54 106 / 12%); }
.cd-steps li:hover .cd-steps__no { background: var(--gradient-amber); color: var(--color-primary-dark); }

/* Audience / why choose cards */
.cd-cards { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.cd-cards li { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-lg); border: 1px solid #DCE5EE; border-radius: 1.25rem; background: var(--color-white); box-shadow: 0 6px 18px rgb(7 54 106 / 7%); font-weight: 600; line-height: 1.5; color: var(--color-primary); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.cd-cards li:hover { transform: translateY(-5px); border-color: var(--color-blue); box-shadow: 0 16px 30px rgb(7 54 106 / 14%); }
.cd-cards__ic { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; background: var(--gradient-blue); color: var(--color-white); box-shadow: 0 8px 16px rgb(7 54 106 / 24%); animation: cd-bob 5s ease-in-out infinite; }
.cd-cards--check .cd-cards__ic { background: var(--gradient-amber); color: var(--color-primary-dark); box-shadow: 0 8px 16px rgb(245 158 11 / 32%); }
.cd-cards li:nth-child(2) .cd-cards__ic { animation-delay: -1.5s; }
.cd-cards li:nth-child(3) .cd-cards__ic { animation-delay: -3s; }
.cd-cards__ic svg, .cd-outcome__ic svg, .cd-enrol__facts svg, .cd-call__ic svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Outcome banner */
.cd-outcome { position: relative; overflow: hidden; display: flex; gap: var(--space-lg); align-items: flex-start; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 1.5rem; color: var(--color-white); background: var(--gradient-blue); box-shadow: 0 22px 44px rgb(7 54 106 / 24%); }
.cd-outcome::before { content: ""; position: absolute; top: -5rem; right: -4rem; width: 16rem; height: 16rem; border-radius: 50%; background: rgb(245 158 11 / 24%); filter: blur(50px); animation: cd-drift 14s ease-in-out infinite; }
@keyframes cd-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 24px); } }
.cd-outcome > * { position: relative; }
.cd-outcome__ic { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--gradient-amber); color: var(--color-primary-dark); box-shadow: 0 10px 22px rgb(245 158 11 / 38%); }
.cd-outcome__ic svg { width: 1.75rem; height: 1.75rem; }
.cd-outcome h2 { margin: 0 0 var(--space-sm); color: var(--color-white); font-size: var(--text-xl); }
.cd-outcome p { margin: 0; line-height: 1.75; color: rgb(255 255 255 / 88%); }

/* Enrol card */
.cd-enrol { overflow: hidden; border: 1px solid #DCE5EE; border-radius: 1.5rem; background: var(--color-white); box-shadow: 0 20px 44px rgb(7 54 106 / 16%); }
.cd-enrol__head { display: grid; gap: .15rem; padding: var(--space-lg); color: var(--color-white); background: radial-gradient(circle at 90% 0, rgb(245 158 11 / 30%), transparent 60%), var(--gradient-blue); }
.cd-enrol__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FFD58A; }
.cd-enrol__price { font-family: var(--font-heading); font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.15; }
.cd-enrol__price--text { font-size: var(--text-xl); }
.cd-enrol__note { font-size: var(--text-sm); color: rgb(255 255 255 / 80%); }
.cd-enrol__body { display: grid; gap: var(--space-sm); padding: var(--space-lg); }
.cd-enrol__facts { display: grid; gap: var(--space-md); margin: 0 0 var(--space-sm); padding: 0 0 var(--space-md); border-bottom: 1px solid var(--color-border); list-style: none; }
.cd-enrol__facts li { display: flex; align-items: flex-start; gap: .75rem; }
.cd-enrol__facts svg { flex: none; width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: .75rem; background: var(--color-primary-light); color: var(--color-blue); }
.cd-enrol__facts small, .cd-call small { display: block; font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-secondary); }
.cd-enrol__facts strong { display: block; font-size: var(--text-sm); line-height: 1.4; color: var(--color-primary); }
.cd-enrol__body .btn { width: 100%; justify-content: center; text-align: center; }
.cd-call { display: flex; align-items: center; gap: .8rem; margin-top: var(--space-xs); padding-top: var(--space-md); border-top: 1px solid var(--color-border); color: var(--color-primary); text-decoration: none; }
.cd-call strong { display: block; font-size: var(--text-lg); }
.cd-call__ic { position: relative; flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--color-primary-light); color: var(--color-blue); transition: background .25s ease, color .25s ease; }
.cd-call__ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(245 158 11 / 70%); animation: cd-ring 2.4s ease-out infinite; }
@keyframes cd-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
.cd-call:hover .cd-call__ic { background: var(--color-accent); color: var(--color-primary-dark); }
.cd-enrol__body .cd-pdf { justify-content: center; margin-top: var(--space-xs); }

/* ---------- CTA band ---------- */
.cd-cta { padding-block: 0 var(--section-space); background: var(--color-background); }
.cd-cta__card { position: relative; overflow: hidden; display: grid; gap: var(--space-lg); align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 2rem; color: var(--color-white); background: radial-gradient(circle at 85% 15%, rgb(13 110 253 / 45%), transparent 55%), var(--gradient-blue); box-shadow: 0 28px 56px rgb(7 54 106 / 28%); }
.cd-cta__card > div { position: relative; z-index: 1; }
.cd-cta__ring { position: absolute; top: -8rem; right: -6rem; width: 22rem; height: 22rem; border-radius: 50%; border: 2px dashed rgb(255 255 255 / 16%); animation: cd-spin 50s linear infinite; pointer-events: none; }
.cd-cta h2 { margin: 0 0 var(--space-xs); color: var(--color-white); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; }
.cd-cta p { margin: 0; color: rgb(255 255 255 / 86%); font-size: var(--text-lg); }

/* ---------- Related courses ---------- */
.cd-related { padding-block: 0 var(--section-space); background: var(--color-background); }
.cd-related__grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.cd-rel { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #DCE5EE; border-radius: 1.5rem; background: var(--color-white); box-shadow: 0 8px 22px rgb(7 54 106 / 8%); color: var(--color-text); text-decoration: none; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .7s ease var(--d, 0ms), translate .7s ease var(--d, 0ms); }
.cd-rel:hover { transform: translateY(-8px); border-color: var(--color-blue); box-shadow: 0 22px 40px rgb(7 54 106 / 18%); }
.cd-rel__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--gradient-blue); }
.cd-rel__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.cd-rel:hover .cd-rel__media img { transform: scale(1.1); }
.cd-rel__body { display: flex; flex: 1; flex-direction: column; gap: .35rem; padding: var(--space-lg); }
.cd-rel__body small { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-dark); }
.cd-rel__body strong { font-family: var(--font-heading); font-size: var(--text-xl); line-height: 1.3; color: var(--color-primary); }
.cd-rel__body > span { font-size: var(--text-sm); line-height: 1.6; color: var(--color-text-secondary); }
.cd-rel__body em { margin-top: auto; padding-top: var(--space-sm); font-size: var(--text-sm); font-style: normal; font-weight: 700; color: var(--color-blue); }
.cd-rel__body em span { display: inline-block; transition: transform .25s ease; }
.cd-rel:hover em span { transform: translateX(6px); }
.cd-related__all { margin: var(--space-xl) 0 0; text-align: center; font-weight: 700; }
.cd-related__all a { color: var(--color-blue); }

/* ---------- Scroll reveal (only when JS adds .cd-js) ---------- */
.course-detail.cd-js .cd-reveal { transition: opacity .8s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms), translate .8s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms), transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.course-detail.cd-js .cd-reveal:not(.is-in) { opacity: 0; translate: 0 26px; }

@media (min-width: 48rem) {
    .cd-cta__card { grid-template-columns: 1fr auto; }
}
@media (min-width: 64rem) {
    .cd-hero__grid { grid-template-columns: 1.1fr .9fr; }
    .cd-hero--solo .cd-hero__grid { grid-template-columns: 1fr; }
    .cd-body__grid { grid-template-columns: minmax(0, 1fr) 21rem; }
    .cd-aside { position: sticky; top: 6.5rem; }
}
@media (max-width: 47.99rem) {
    .cd-actions .btn { flex: 1 1 100%; }
    .cd-module summary { padding: var(--space-md); gap: var(--space-sm); }
    .cd-module__count { display: none; }
    .cd-module__body { padding: 0 var(--space-md) var(--space-md); }
    .cd-outcome { flex-direction: column; }
    .cd-hero__badge { left: .5rem; }
    .cd-hero__facts li { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cd-hero__ring, .cd-pill::before, .cd-hero__dots, .cd-hero__badge, .cd-hero__media img, .cd-btn-main, .cd-btn-main::after, .cd-cards__ic, .cd-outcome::before, .cd-call__ic::after, .cd-cta__ring { animation: none; }
    .cd-hero__text > *, .cd-hero__visual, .cd-module[open] .cd-module__body { animation: none; }
    .course-detail.cd-js .cd-reveal:not(.is-in) { opacity: 1; translate: none; }
    .cd-module, .cd-steps li, .cd-cards li, .cd-rel, .cd-rel__media img, .cd-arrow { transition: none; }
    .cd-rel:hover, .cd-cards li:hover, .cd-steps li:hover { transform: none; }
}

/* ---------- Extra sections (shown only when a course record supplies the data) ---------- */
.cd-sub { margin: calc(var(--space-sm) * -1) 0 var(--space-lg); color: var(--color-text-secondary); line-height: 1.65; }
.cd-note--box { padding: var(--space-md) var(--space-lg); border-left: 4px solid var(--color-accent); border-radius: .75rem; background: var(--color-accent-light); color: var(--color-text); }
.cd-note--box strong { color: var(--color-accent-dark); }

.cd-assign { display: flex; gap: var(--space-lg); align-items: flex-start; padding: var(--space-lg); border: 1px dashed var(--color-blue); border-radius: 1.25rem; background: var(--color-white); }
.cd-assign__ic { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .875rem; background: var(--gradient-amber); color: var(--color-primary-dark); }
.cd-assign__ic svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cd-assign h3 { margin: 0 0 var(--space-xs); font-size: var(--text-lg); color: var(--color-primary); }
.cd-assign p { margin: 0; line-height: 1.7; color: var(--color-text-secondary); }

.cd-path { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-lg) 0 0; padding: 0; list-style: none; counter-reset: none; }
.cd-path li { display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem .55rem .6rem; border-radius: 999px; background: var(--color-primary-light); font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); }
.cd-path li:not(:last-child)::after { content: "\2192"; margin-left: .35rem; color: var(--color-accent-dark); }
.cd-path li span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--gradient-blue); color: var(--color-white); font-size: var(--text-xs); }

.cd-ai { display: grid; overflow: hidden; border: 1px solid #DCE5EE; border-radius: 1.25rem; background: var(--color-white); box-shadow: 0 6px 18px rgb(7 54 106 / 7%); }
.cd-ai__row { display: grid; gap: .25rem var(--space-lg); padding: var(--space-md) var(--space-lg); border-top: 1px solid #DCE5EE; line-height: 1.55; transition: background .25s ease; }
.cd-ai__row:first-child { border-top: 0; }
.cd-ai__row:hover { background: var(--color-primary-light); }
.cd-ai__row strong { color: var(--color-primary); font-family: var(--font-heading); }
.cd-ai__row span { color: var(--color-text-secondary); }

.cd-steps--desc li { align-items: flex-start; }
.cd-steps--desc strong { display: block; color: var(--color-primary); }
.cd-steps--desc small { display: block; margin-top: .15rem; font-size: var(--text-sm); font-weight: 400; line-height: 1.55; color: var(--color-text-secondary); }

.cd-tags--light li { border-color: #DCE5EE; background: var(--color-primary-light); color: var(--color-primary); }
.cd-block > .cd-tags { margin-bottom: var(--space-lg); }

.cd-two { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.cd-panel { padding: var(--space-lg); border: 1px solid #DCE5EE; border-radius: 1.25rem; background: var(--color-white); box-shadow: 0 6px 18px rgb(7 54 106 / 7%); }
.cd-panel h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 var(--space-md); font-size: var(--text-lg); color: var(--color-primary); }
.cd-panel h3 svg { flex: none; width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: .75rem; background: var(--color-primary-light); color: var(--color-blue); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cd-panel ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.cd-panel li { position: relative; padding-left: 1.5rem; line-height: 1.55; color: var(--color-text-secondary); }
.cd-panel li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--color-accent); }

@media (min-width: 48rem) {
    .cd-ai__row { grid-template-columns: 11rem 1fr; align-items: baseline; }
}
@media (max-width: 47.99rem) {
    .cd-assign { flex-direction: column; }
}
.cd-cards--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
