/* TraderDaniel Academy — course and classroom experience v0.3.1. */
.tda-learning-back { display:inline-flex; align-items:center; gap:.4rem; width:fit-content; color:rgba(255,255,255,.82); font-size:.76rem; font-weight:780; text-decoration:none; }
.tda-course-hero { position:relative; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr); min-height:520px; overflow:hidden; border:1px solid rgba(255,255,255,.26); border-radius:30px; background:linear-gradient(130deg,#151833 0%,#39267d 48%,#117da2 100%); box-shadow:var(--tda-shadow-lg); color:#fff; }
.tda-course-hero::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 12% 16%,rgba(109,74,255,.36),transparent 33%),radial-gradient(circle at 88% 10%,rgba(24,189,232,.30),transparent 30%); pointer-events:none; }
.tda-course-hero__content { position:relative; z-index:2; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:1.2rem; padding:clamp(2rem,5vw,4.5rem); }
.tda-course-hero__badges { display:flex; flex-wrap:wrap; gap:.55rem; }
.tda-course-hero__badges span { padding:.48rem .72rem; border:1px solid rgba(255,255,255,.22); border-radius:999px; background:rgba(255,255,255,.08); font-size:.68rem; font-weight:780; backdrop-filter:blur(12px); }
.tda-course-hero h1 { max-width:780px; margin:0; font-size:clamp(2.4rem,5.3vw,5rem); font-weight:650; line-height:.98; letter-spacing:-.06em; }
.tda-course-hero p { max-width:700px; margin:0; color:rgba(255,255,255,.78); font-size:1.02rem; line-height:1.72; }
.tda-course-hero .tda-button--primary { background:linear-gradient(135deg,#fff,#dff8ff); color:#211a57; box-shadow:0 18px 45px rgba(0,0,0,.22); }
.tda-course-hero__progress { width:min(100%,620px); }
.tda-course-hero__progress > div:first-child,.tda-course-hero__progress small { color:rgba(255,255,255,.8); }
.tda-course-hero__progress > div:first-child strong { color:#fff; }
.tda-course-hero__progress .tda-course-progress__track { background:rgba(255,255,255,.16); }
.tda-course-hero__visual { position:relative; z-index:1; min-height:100%; background-image:linear-gradient(to left,rgba(9,14,34,.05),rgba(20,19,53,.55)),var(--tda-course-hero-image,linear-gradient(150deg,rgba(109,74,255,.15),rgba(24,189,232,.18))); background-size:cover; background-position:center; }
.tda-course-hero__visual::before { content:""; position:absolute; inset:10% 10% 10% 0; border:1px solid rgba(255,255,255,.16); border-radius:30px 0 0 30px; background:linear-gradient(150deg,rgba(255,255,255,.12),rgba(255,255,255,.02)); backdrop-filter:blur(8px); }
.tda-course-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:2rem; padding-top:clamp(2.6rem,5vw,4.6rem); }
.tda-course-content { min-width:0; }
.tda-course-section-heading { margin-bottom:1.2rem; }
.tda-course-section-heading h2 { margin:.42rem 0 0; font-size:clamp(1.9rem,3vw,3rem); font-weight:650; line-height:1.08; letter-spacing:-.048em; }
.tda-course-section-heading--curriculum { margin-top:3.8rem; }
.tda-course-richtext,.tda-lesson-richtext { padding:clamp(1.3rem,3vw,2rem); border:1px solid var(--tda-color-border); border-radius:24px; background:rgba(255,255,255,.86); box-shadow:var(--tda-shadow-sm); color:var(--tda-color-text); font-size:1rem; line-height:1.82; }
.tda-course-richtext > :first-child,.tda-lesson-richtext > :first-child { margin-top:0; }
.tda-course-richtext > :last-child,.tda-lesson-richtext > :last-child { margin-bottom:0; }
.tda-course-richtext img,.tda-lesson-richtext img { max-width:100%; height:auto; border-radius:16px; }
.tda-curriculum { display:grid; gap:1rem; }
.tda-curriculum-topic { overflow:hidden; border:1px solid var(--tda-color-border); border-radius:22px; background:#fff; box-shadow:var(--tda-shadow-sm); }
.tda-curriculum-topic > header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.2rem 1.35rem; border-bottom:1px solid var(--tda-color-border); background:linear-gradient(145deg,#fff,#f5f7ff); }
.tda-curriculum-topic > header span { color:var(--tda-color-primary-strong); font-size:.65rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.tda-curriculum-topic > header h3 { margin:.28rem 0 0; font-size:1.15rem; }
.tda-curriculum-topic > header > strong { color:var(--tda-color-muted); font-size:.72rem; white-space:nowrap; }
.tda-curriculum-topic__description { margin:0; padding:1rem 1.35rem 0; color:var(--tda-color-muted); font-size:.86rem; line-height:1.6; }
.tda-curriculum-topic ul { margin:0; padding:.45rem 1rem 1rem; list-style:none; }
.tda-curriculum-topic li { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:.8rem; padding:.9rem .4rem; border-bottom:1px solid rgba(38,47,80,.08); }
.tda-curriculum-topic li:last-child { border-bottom:0; }
.tda-curriculum-item__icon { display:grid; place-items:center; width:30px; height:30px; border-radius:10px; background:rgba(109,74,255,.09); color:var(--tda-color-primary-strong); font-size:.72rem; font-weight:850; }
.tda-curriculum-topic li.is-completed .tda-curriculum-item__icon { background:var(--tda-color-success-soft); color:var(--tda-color-success); }
.tda-curriculum-topic li > div { display:grid; gap:.18rem; }
.tda-curriculum-topic li strong { font-size:.88rem; }
.tda-curriculum-topic li small { color:var(--tda-color-muted); font-size:.66rem; text-transform:capitalize; }
.tda-curriculum-topic li > a,.tda-curriculum-item__locked { color:var(--tda-color-primary-strong); font-size:.72rem; font-weight:800; text-decoration:none; }
.tda-curriculum-topic li.is-locked { opacity:.72; }
.tda-course-sidebar { align-self:start; }
.tda-course-sidebar__card { position:sticky; top:calc(96px + var(--tda-admin-bar-offset,0px)); display:grid; gap:1rem; padding:1.5rem; border:1px solid var(--tda-color-border); border-radius:24px; background:rgba(255,255,255,.88); box-shadow:var(--tda-shadow-md); backdrop-filter:blur(16px); }
.tda-course-sidebar__card h2 { margin:0; font-size:1.6rem; letter-spacing:-.035em; }
.tda-course-sidebar__card ul { display:grid; gap:.7rem; margin:.3rem 0; padding:0; list-style:none; color:var(--tda-color-muted); font-size:.82rem; }
.tda-course-sidebar__card li { position:relative; padding-left:1.2rem; }
.tda-course-sidebar__card li::before { content:""; position:absolute; top:.55em; left:0; width:6px; height:6px; border-radius:50%; background:var(--tda-gradient-brand); }

/* Classroom. */
.tda-lesson-page { padding:0; }
.tda-lesson-shell { display:grid; grid-template-columns:330px minmax(0,1fr); min-height:calc(100vh - 78px - var(--tda-admin-bar-offset,0px)); }
.tda-lesson-sidebar { position:sticky; top:calc(78px + var(--tda-admin-bar-offset,0px)); height:calc(100vh - 78px - var(--tda-admin-bar-offset,0px)); overflow:auto; border-right:1px solid var(--tda-color-border); background:rgba(246,248,255,.94); }
.tda-lesson-sidebar__top { display:grid; gap:.9rem; padding:1.35rem; border-bottom:1px solid var(--tda-color-border); background:rgba(255,255,255,.78); }
.tda-lesson-sidebar__top > a { color:var(--tda-color-primary-strong); font-size:.72rem; font-weight:800; text-decoration:none; }
.tda-lesson-sidebar__top h2 { margin:0; font-size:1.05rem; line-height:1.35; letter-spacing:-.025em; }
.tda-lesson-curriculum { padding:1rem; }
.tda-lesson-curriculum section + section { margin-top:1.1rem; }
.tda-lesson-curriculum h3 { display:grid; gap:.2rem; margin:0 0 .5rem; padding:.45rem .5rem; font-size:.82rem; line-height:1.3; }
.tda-lesson-curriculum h3 span { color:var(--tda-color-primary-strong); font-size:.58rem; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.tda-lesson-curriculum ul { display:grid; gap:.28rem; margin:0; padding:0; list-style:none; }
.tda-lesson-curriculum li a { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:start; gap:.55rem; padding:.68rem .62rem; border-radius:11px; color:var(--tda-color-muted); font-size:.76rem; line-height:1.35; text-decoration:none; }
.tda-lesson-curriculum li a span { display:grid; place-items:center; width:22px; height:22px; border-radius:7px; background:rgba(109,74,255,.08); color:var(--tda-color-primary-strong); font-size:.58rem; }
.tda-lesson-curriculum li.is-current a { background:linear-gradient(135deg,rgba(109,74,255,.12),rgba(24,189,232,.10)); color:var(--tda-color-text); }
.tda-lesson-curriculum li.is-completed a span { background:var(--tda-color-success-soft); color:var(--tda-color-success); }
.tda-lesson-workspace { min-width:0; background:radial-gradient(circle at 85% 0%,rgba(24,189,232,.08),transparent 24rem),#f7f9ff; }
.tda-lesson-toolbar { position:sticky; top:calc(78px + var(--tda-admin-bar-offset,0px)); z-index:40; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:1rem; min-height:64px; padding:.7rem 1.4rem; border-bottom:1px solid var(--tda-color-border); background:rgba(250,251,255,.90); backdrop-filter:blur(16px); }
.tda-lesson-toolbar > div { display:grid; justify-items:center; min-width:0; }
.tda-lesson-toolbar span { max-width:560px; overflow:hidden; color:var(--tda-color-muted); font-size:.65rem; text-overflow:ellipsis; white-space:nowrap; }
.tda-lesson-toolbar strong { max-width:620px; overflow:hidden; font-size:.82rem; text-overflow:ellipsis; white-space:nowrap; }
.tda-lesson-toolbar > a { color:var(--tda-color-primary-strong); font-size:.72rem; font-weight:800; text-decoration:none; }
.tda-lesson-sidebar-toggle { display:none; padding:.55rem .7rem; border:1px solid var(--tda-color-border); border-radius:10px; background:#fff; color:var(--tda-color-text); font:inherit; font-size:.72rem; font-weight:800; }
.tda-lesson-content-wrap { width:min(calc(100% - 48px),960px); margin:0 auto; padding:clamp(1.5rem,4vw,3.5rem) 0 4.5rem; }
.tda-lesson-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1.2rem; margin-bottom:1.4rem; }
.tda-lesson-heading h1 { margin:.45rem 0 0; font-size:clamp(2.1rem,4vw,3.7rem); font-weight:650; line-height:1.02; letter-spacing:-.055em; }
.tda-lesson-complete-badge { flex:0 0 auto; padding:.58rem .8rem; border:1px solid rgba(19,138,97,.18); border-radius:999px; background:var(--tda-color-success-soft); color:#0b6d49; font-size:.7rem; font-weight:800; }
.tda-lesson-video { position:relative; margin-bottom:1.3rem; overflow:hidden; border:1px solid rgba(255,255,255,.75); border-radius:24px; background:#101426; box-shadow:var(--tda-shadow-lg); aspect-ratio:16/9; }
.tda-lesson-video iframe,.tda-lesson-video video { width:100%; height:100%; border:0; object-fit:contain; }
.tda-lesson-video-link { display:grid; place-items:center; width:100%; height:100%; color:#fff; font-weight:800; text-decoration:none; }
.tda-lesson-resources { margin-top:2.2rem; }
.tda-lesson-resource-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.tda-lesson-resource-list a { display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; gap:.8rem; padding:1rem; border:1px solid var(--tda-color-border); border-radius:16px; background:#fff; color:var(--tda-color-text); text-decoration:none; box-shadow:var(--tda-shadow-sm); }
.tda-lesson-resource-list a > span { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:rgba(109,74,255,.09); color:var(--tda-color-primary-strong); font-weight:900; }
.tda-lesson-resource-list a div { display:grid; gap:.2rem; min-width:0; }
.tda-lesson-resource-list a strong { overflow:hidden; font-size:.82rem; text-overflow:ellipsis; white-space:nowrap; }
.tda-lesson-resource-list a small { color:var(--tda-color-muted); font-size:.65rem; }
.tda-lesson-actions { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:2.3rem; padding-top:1.4rem; border-top:1px solid var(--tda-color-border); }
.tda-lesson-navigation { display:flex; flex-wrap:wrap; gap:.55rem; }
.tda-lesson-actions form { margin:0; }
.tda-lesson-actions button:disabled { cursor:wait; opacity:.65; }

@media (max-width:1100px) {
	.tda-course-hero { grid-template-columns:1fr; min-height:auto; }
	.tda-course-hero__visual { min-height:260px; order:-1; }
	.tda-course-hero__visual::before { inset:10%; border-radius:24px; }
	.tda-course-layout { grid-template-columns:1fr; }
	.tda-course-sidebar__card { position:static; }
	.tda-lesson-shell { grid-template-columns:1fr; }
	.tda-lesson-sidebar { position:fixed; top:calc(68px + var(--tda-admin-bar-offset,0px)); bottom:0; left:0; z-index:90; width:min(88vw,340px); height:auto; transform:translateX(-105%); box-shadow:var(--tda-shadow-lg); transition:transform .24s ease; }
	.tda-lesson-sidebar.is-open { transform:translateX(0); }
	.tda-lesson-sidebar-toggle { display:inline-flex; }
	.tda-lesson-toolbar { top:calc(68px + var(--tda-admin-bar-offset,0px)); }
}
@media (max-width:760px) {
	.tda-course-hero { border-radius:22px; }
	.tda-course-hero__content { padding:1.5rem; }
	.tda-course-hero h1 { font-size:clamp(2.2rem,11vw,3.5rem); }
	.tda-course-hero__visual { min-height:210px; }
	.tda-course-layout { gap:1.2rem; }
	.tda-curriculum-topic > header { align-items:flex-start; }
	.tda-curriculum-topic li { grid-template-columns:32px minmax(0,1fr); }
	.tda-curriculum-topic li > a,.tda-curriculum-item__locked { grid-column:2; justify-self:start; }
	.tda-lesson-toolbar { grid-template-columns:auto minmax(0,1fr); padding:.65rem .9rem; }
	.tda-lesson-toolbar > a { display:none; }
	.tda-lesson-toolbar > div { justify-items:start; }
	.tda-lesson-content-wrap { width:min(calc(100% - 28px),960px); }
	.tda-lesson-heading { display:grid; }
	.tda-lesson-complete-badge { justify-self:start; }
	.tda-lesson-resource-list { grid-template-columns:1fr; }
	.tda-lesson-actions { align-items:stretch; flex-direction:column-reverse; }
	.tda-lesson-actions .tda-button,.tda-lesson-actions form,.tda-lesson-actions form .tda-button { width:100%; }
	.tda-lesson-navigation { display:grid; grid-template-columns:1fr 1fr; }
}
@media (max-width:480px) {
	.tda-course-hero__badges span:nth-child(3) { display:none; }
	.tda-lesson-navigation { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
	.tda-lesson-sidebar { transition:none; }
}

/* v0.3.1 — course polish, completion state, resources and mobile classroom. */
.tda-course-completion-chip { display:inline-flex; align-items:center; gap:.4rem; padding:.55rem .78rem; border:1px solid rgba(178,255,222,.26); border-radius:999px; background:rgba(17,121,84,.24); color:#d8ffef; font-size:.72rem; font-weight:850; letter-spacing:.01em; }
.tda-button--course-review { min-height:48px; border:1px solid rgba(255,255,255,.55); background:#fff; color:#23185d !important; box-shadow:0 16px 38px rgba(8,11,35,.26); }
.tda-button--course-review:hover { background:#eafcff; color:#16113f !important; box-shadow:0 20px 44px rgba(8,11,35,.32); }
.tda-course-hero__visual { display:grid; place-items:center; isolation:isolate; overflow:hidden; }
.tda-course-hero__visual > img { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; }
.tda-course-hero.has-image .tda-course-hero__visual { background:none; }
.tda-course-hero.has-image .tda-course-hero__visual::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(23,20,66,.72),rgba(9,20,51,.08) 48%,rgba(6,23,44,.16)); }
.tda-course-hero.has-placeholder .tda-course-hero__visual { background:radial-gradient(circle at 74% 26%,rgba(90,218,255,.24),transparent 24%),linear-gradient(145deg,rgba(62,47,151,.88),rgba(21,161,201,.72)); }
.tda-course-hero.has-placeholder .tda-course-hero__visual::before { inset:10%; border-radius:28px; background:linear-gradient(150deg,rgba(255,255,255,.13),rgba(255,255,255,.025)); }
.tda-course-visual-placeholder { position:relative; z-index:2; display:grid; align-content:space-between; gap:1.4rem; width:min(78%,420px); min-height:58%; padding:clamp(1.4rem,3vw,2rem); border:1px solid rgba(255,255,255,.22); border-radius:26px; background:rgba(10,16,48,.14); box-shadow:0 24px 70px rgba(9,12,38,.24); backdrop-filter:blur(18px); }
.tda-course-visual-placeholder__mark { display:grid; place-items:center; width:58px; height:58px; border-radius:18px; background:linear-gradient(135deg,#7654ff,#1bc5eb); color:#fff; font-size:1rem; font-weight:900; box-shadow:0 16px 34px rgba(23,19,71,.28); }
.tda-course-visual-placeholder > div { display:grid; gap:.45rem; }
.tda-course-visual-placeholder small { color:rgba(255,255,255,.7); font-size:.68rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.tda-course-visual-placeholder strong { max-width:300px; color:#fff; font-size:clamp(1.45rem,2.3vw,2.35rem); line-height:1.08; letter-spacing:-.04em; }
.tda-course-visual-placeholder__meta { color:rgba(255,255,255,.76); font-size:.72rem; font-weight:750; }
.tda-course-sidebar__card.is-completed { border-color:rgba(19,138,97,.18); background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(235,255,247,.84)); }
.tda-course-sidebar__completion-copy { margin:0; color:var(--tda-color-muted); font-size:.82rem; line-height:1.65; }
.tda-curriculum-topic li > a:hover,.tda-curriculum-topic li > a:focus-visible { text-decoration:underline; text-underline-offset:3px; }

.tda-lesson-curriculum li a { position:relative; grid-template-columns:24px minmax(0,1fr) auto; }
.tda-lesson-curriculum li a small { align-self:center; padding:.22rem .42rem; border-radius:999px; background:rgba(109,74,255,.11); color:var(--tda-color-primary-strong); font-size:.52rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.tda-lesson-curriculum li.is-current a { padding-right:1.65rem; box-shadow:inset 3px 0 0 var(--tda-color-primary); }
.tda-lesson-curriculum li.is-current a::after { content:""; position:absolute; top:50%; right:.5rem; width:6px; height:6px; border-radius:50%; background:var(--tda-color-secondary); box-shadow:0 0 0 5px rgba(24,189,232,.12); transform:translateY(-50%); }
.tda-lesson-resource-list a { transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.tda-lesson-resource-list a:hover,.tda-lesson-resource-list a:focus-visible { border-color:rgba(109,74,255,.26); box-shadow:var(--tda-shadow-md); transform:translateY(-2px); }
.tda-lesson-resource-list a small { line-height:1.35; }
.tda-learning-complete-card { display:grid; grid-template-columns:auto minmax(0,1fr); gap:1.1rem 1.3rem; margin-top:2.25rem; padding:clamp(1.35rem,3vw,2rem); border:1px solid rgba(19,138,97,.18); border-radius:24px; background:radial-gradient(circle at 95% 0%,rgba(24,189,232,.13),transparent 18rem),linear-gradient(145deg,#f8fffc,#effcf7); box-shadow:var(--tda-shadow-md); }
.tda-learning-complete-card__icon { display:grid; place-items:center; width:56px; height:56px; border-radius:18px; background:linear-gradient(135deg,#19a873,#27d6ae); color:#fff; font-size:1.35rem; font-weight:900; box-shadow:0 14px 30px rgba(19,138,97,.2); }
.tda-learning-complete-card h2 { margin:.35rem 0 .45rem; font-size:clamp(1.6rem,3vw,2.4rem); line-height:1.08; letter-spacing:-.04em; }
.tda-learning-complete-card p { max-width:680px; margin:0; color:var(--tda-color-muted); line-height:1.7; }
.tda-learning-complete-card__actions { grid-column:2; display:flex; flex-wrap:wrap; gap:.65rem; }
.tda-lesson-sidebar-backdrop { display:none; position:fixed; inset:calc(68px + var(--tda-admin-bar-offset,0px)) 0 0; z-index:80; border:0; background:rgba(9,12,31,.44); backdrop-filter:blur(3px); }
body.tda-classroom-scroll-lock { overflow:hidden; }

@media (max-width:1100px) {
	.tda-student-app.is-classroom-nav-open .tda-lesson-sidebar-backdrop { display:block; }
	.tda-course-visual-placeholder { width:min(86%,520px); min-height:190px; }
}
@media (max-width:760px) {
	.tda-course-completion-chip { font-size:.66rem; }
	.tda-course-visual-placeholder { min-height:160px; padding:1.2rem; }
	.tda-course-visual-placeholder__mark { width:48px; height:48px; border-radius:15px; }
	.tda-course-visual-placeholder strong { font-size:1.4rem; }
	.tda-learning-complete-card { grid-template-columns:1fr; }
	.tda-learning-complete-card__actions { grid-column:1; display:grid; }
	.tda-learning-complete-card__actions .tda-button { width:100%; }
	.tda-lesson-curriculum li a { grid-template-columns:24px minmax(0,1fr); }
	.tda-lesson-curriculum li a small { grid-column:2; justify-self:start; }
	.tda-lesson-curriculum li.is-current a::after { right:.7rem; }
}
@media (prefers-reduced-motion:reduce) {
	.tda-lesson-resource-list a { transition:none; }
}


/* Public course access additions v0.4.0. */
.tda-student-auth-actions,
.tda-course-guest-actions {
	display: flex;
	align-items: center;
	gap: .7rem;
}
.tda-student-auth-actions > a:first-child {
	color: var(--tda-color-muted);
	font-size: .82rem;
	font-weight: 760;
	text-decoration: none;
}
.tda-student-auth-actions .tda-button {
	min-height: 42px;
	padding: .65rem 1rem;
	font-size: .78rem;
}
.tda-course-guest-actions { flex-wrap: wrap; }
@media (max-width: 760px) {
	.tda-student-auth-actions > a:first-child { display: none; }
	.tda-student-auth-actions .tda-button { padding-inline: .8rem; }
}


/* 0.4.11 — course and classroom button visibility audit. */
.tda-course-hero .tda-button--primary {
	border-color: rgba(255,255,255,.74);
	background: linear-gradient(135deg,#ffffff 0%,#e7f9ff 100%);
	color: #211a57 !important;
	text-shadow: none;
	box-shadow: 0 18px 45px rgba(0,0,0,.22);
}
.tda-course-hero .tda-button--primary:hover,
.tda-course-hero .tda-button--primary:focus-visible {
	background: linear-gradient(135deg,#ffffff 0%,#d7f5ff 100%);
	color: #17123f !important;
	box-shadow: 0 22px 52px rgba(5,10,40,.28);
}
.tda-course-hero .tda-button--primary:disabled,
.tda-course-hero .tda-button--primary[aria-disabled="true"] {
	border-color: rgba(255,255,255,.38);
	background: rgba(235,242,250,.78);
	color: #4f5871 !important;
	opacity: 1;
}
.tda-lesson-actions button:disabled,
.tda-enroll-form button:disabled {
	background: linear-gradient(135deg,#6753d5,#238fb5);
	color: #fff !important;
	opacity: .78;
}
@media (max-width:760px) {
	.tda-course-hero__content > .tda-button,
	.tda-course-hero__content > .tda-enroll-form,
	.tda-course-hero__content > .tda-enroll-form .tda-button {
		width: 100%;
	}
}

/* LEGION ACADEMY course branding v0.4.13. */
.tda-course-visual-placeholder__mark img {
	display:block;
	width: 42px;
	height: 34px;
	object-fit:contain;
}
.tda-course-visual-placeholder__mark {
	border:1px solid rgba(255,255,255,.2);
	background:rgba(13,18,48,.2);
	backdrop-filter:blur(10px);
}


/* 0.4.20 — compact non-sticky header for course pages. */
body.tda-course-document .tda-student-header {
	position: relative;
	top: auto;
	z-index: 40;
	background: rgba(250,251,255,.96);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
body.tda-course-document .tda-student-header__inner {
	grid-template-columns: minmax(170px,1fr) auto minmax(190px,1fr);
	min-height: 72px;
	gap: 1.25rem;
}
body.tda-course-document .tda-student-brand {
	min-width: 0;
	max-width: 176px;
}
body.tda-course-document .tda-student-brand .tda-brand-logo,
body.tda-course-document .tda-student-brand .tda-brand-logo--student {
	display: block;
	width: 168px;
	max-width: 168px;
	height: auto;
	max-height: 50px;
	object-fit: contain;
}
body.tda-course-document .tda-student-nav {
	gap: 1.35rem;
}
body.tda-course-document .tda-student-nav a {
	padding: 1.55rem 0;
	font-size: .8rem;
}
body.tda-course-document .tda-student-nav a::after {
	bottom: 1rem;
}
body.tda-course-document .tda-student-auth-actions {
	justify-self: end;
}
body.tda-course-document .tda-student-auth-actions .tda-button {
	white-space: nowrap;
}

@media (max-width: 1050px) {
	body.tda-course-document .tda-student-header__inner {
		grid-template-columns: minmax(0,1fr) auto;
		min-height: 68px;
	}
	body.tda-course-document .tda-student-brand .tda-brand-logo,
	body.tda-course-document .tda-student-brand .tda-brand-logo--student {
		width: 150px;
		max-width: 150px;
		max-height: 44px;
	}
	body.tda-course-document .tda-student-nav {
		top: calc(100% + 1px);
	}
}

@media (max-width: 760px) {
	body.tda-course-document .tda-student-header__inner {
		min-height: 64px;
	}
	body.tda-course-document .tda-student-brand .tda-brand-logo,
	body.tda-course-document .tda-student-brand .tda-brand-logo--student {
		width: 138px;
		max-width: 138px;
		max-height: 41px;
	}
	body.tda-course-document .tda-student-nav {
		right: 14px;
		left: 14px;
	}
}

@media (max-width: 420px) {
	body.tda-course-document .tda-student-brand .tda-brand-logo,
	body.tda-course-document .tda-student-brand .tda-brand-logo--student {
		width: 126px;
		max-width: 126px;
	}
}


/* 0.4.21 — clean course cover presentation */
.tda-course-hero.has-image .tda-course-hero__visual::before {
	content: none;
	display: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.tda-course-hero.has-image .tda-course-hero__visual::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(31,25,94,.22) 0%, rgba(9,20,51,.04) 38%, rgba(6,23,44,.08) 100%);
}
.tda-course-hero.has-image .tda-course-hero__visual > img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: none;
	transform: none;
}
@media (max-width: 900px) {
	.tda-course-hero.has-image .tda-course-hero__visual::after {
		background: linear-gradient(180deg, rgba(21,18,69,.05), rgba(12,18,45,.13));
	}
}


/* 0.4.22 — preserve Tutor LMS course cover ratio */
.tda-course-hero.has-image .tda-course-hero__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: clamp(1rem, 2vw, 1.65rem);
	background:
		radial-gradient(circle at 50% 38%, rgba(47, 112, 72, .18), transparent 42%),
		linear-gradient(145deg, #08130d 0%, #09141a 100%);
}
.tda-course-hero.has-image .tda-course-hero__visual::before,
.tda-course-hero.has-image .tda-course-hero__visual::after {
	content: none !important;
	display: none !important;
}
.tda-course-hero.has-image .tda-course-hero__visual > img {
	position: relative;
	inset: auto;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	border-radius: 20px;
	box-shadow: 0 22px 55px rgba(0,0,0,.22);
}

@media (max-width: 900px) {
	.tda-course-hero.has-image .tda-course-hero__visual {
		min-height: 0;
		padding: .9rem;
	}
	.tda-course-hero.has-image .tda-course-hero__visual > img {
		width: 100%;
		height: auto;
		max-height: none;
		border-radius: 18px;
	}
}

@media (max-width: 560px) {
	.tda-course-hero.has-image .tda-course-hero__visual {
		padding: .7rem;
	}
	.tda-course-hero.has-image .tda-course-hero__visual > img {
		border-radius: 14px;
	}
}
