/* Course library: compact learning route, explicit progress and accessible actions. */
.courses-hub{padding-bottom:48px;color:var(--theme-ink)}
.courses-hub .courses-hero{padding:38px 0 26px;text-align:left;isolation:isolate}
.courses-hub .courses-hero::before,.courses-hub .courses-hero::after{pointer-events:none}
.courses-hub .courses-intro{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.8fr);gap:36px;align-items:center;padding:32px;border:1px solid var(--theme-line);border-radius:26px;background:var(--theme-hero,linear-gradient(120deg,#18223b,#252047));box-shadow:var(--theme-shadow)}
.courses-kicker,.courses-path-label{display:block;font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--theme-accent,#a9c8ff);line-height:1.6}
.courses-hub .courses-hero-title{color:var(--theme-ink);background:none;-webkit-text-fill-color:currentColor;font-size:clamp(28px,3.6vw,44px);line-height:1.15;margin:12px 0 16px;letter-spacing:-.035em}
.courses-hub .courses-hero-sub{margin:0;max-width:550px;line-height:1.7;font-size:16px}
.courses-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:24px}
.courses-text-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--theme-accent,#a9c8ff);font-size:14px;font-weight:700;text-decoration:none}
.courses-text-link:hover{text-decoration:underline;text-underline-offset:4px}
.courses-resume-name{font-size:13px;color:var(--theme-muted);margin:12px 0 0}
.courses-path{padding:22px;background:var(--theme-panel);border:1px solid var(--theme-line);border-radius:20px;position:relative}
.courses-path ol{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:18px}
.courses-path li{display:flex;align-items:center;gap:14px;position:relative}
.courses-path li>b{display:grid;place-items:center;flex:0 0 40px;height:40px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-panel2,#25314b);color:var(--theme-accent,#a9c8ff);font-size:13px}
.courses-path strong,.courses-path small{display:block}
.courses-path strong{font-size:16px;line-height:1.5}
.courses-path small{font-size:12px;color:var(--theme-muted);margin-top:2px;line-height:1.5}
.courses-hub .stats-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 0}
.courses-hub .stat-pill{min-width:0;display:flex;align-items:center;gap:14px;text-align:left;padding:16px 20px}
.courses-hub .stat-pill b{font-size:25px;color:var(--theme-accent,#a9c8ff)}
.courses-library{scroll-margin-top:110px}
.courses-library-title{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:14px 0 18px}
.courses-library-title h2{font-size:25px;margin:4px 0 0;line-height:1.3}
.courses-hub .exam-switch{display:flex;gap:10px;padding:0;border:0;background:none;border-radius:0;margin:0;width:100%;justify-content:flex-start}
.courses-hub .exam-switch a{flex:1 1 150px;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;gap:3px;min-height:78px;padding:14px 18px;border:1px solid var(--theme-line);border-radius:16px;background:var(--theme-panel);color:var(--theme-ink);white-space:normal}
.courses-hub .exam-switch a span{font-size:18px;font-weight:800}
.courses-hub .exam-switch a small{font-size:11px;font-weight:500;color:var(--theme-muted)}
html .courses-hub .exam-switch a.active{background:var(--theme-action,#285aca)!important;color:#fff!important;border-color:transparent;box-shadow:0 6px 20px #14133120}
.courses-hub .exam-switch a.active small{color:#fff}
.courses-year-note{font-size:12px;line-height:1.6;color:var(--theme-muted);margin:12px 0 0}
.courses-year-note a{color:var(--theme-accent,#a9c8ff)}
.courses-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:26px 0 8px}
.courses-hub .course-search{flex:1 1 260px;max-width:450px;margin:0;animation:none}
.course-status-filters{display:flex;gap:6px;flex-wrap:wrap}
.course-status-filters button{font:600 13px/1.3 system-ui;font-family:inherit;min-height:44px;padding:10px 13px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-panel);color:var(--theme-ink);cursor:pointer}
.course-status-filters button[aria-pressed=true]{border-color:var(--theme-accent);background:var(--theme-panel2,#25314b);box-shadow:inset 0 0 0 1px var(--theme-accent)}
.course-results-count{font-size:12px;color:var(--theme-muted);min-height:20px;margin:12px 0 0}
.courses-hub .courses-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));margin-top:16px;gap:20px}
.courses-hub .course-card{padding:20px;border-radius:20px;opacity:1;animation:none;box-shadow:var(--theme-shadow);transition:transform .2s,border-color .2s}
.courses-hub .course-card[hidden]{display:none!important}
.courses-hub .course-card:hover{transform:translateY(-4px);border-color:var(--theme-accent)!important}
.course-status-badge{align-self:flex-start;font-size:11px;font-weight:700;color:var(--theme-muted);background:var(--theme-panel2,#25314b);padding:5px 9px;border-radius:7px;margin-bottom:16px}
.course-status-badge.started{color:var(--theme-accent,#a9c8ff)}
.course-status-badge.done{color:#76dfb0;background:#164535}
html:is([data-academy-theme=light],[data-academy-theme=warm]) .course-status-badge.done{color:#185b41;background:#e0f3e8}
.courses-hub .course-card-top{align-items:center;margin-bottom:14px}
.courses-hub .course-cover{max-height:160px;margin:0 0 14px}
.courses-hub .course-title{font-size:19px;line-height:1.4;margin-top:10px}
.courses-hub .course-desc{line-height:1.65;font-size:13px;margin-bottom:16px}
.courses-hub .course-footer{margin-top:auto;gap:10px;flex-wrap:wrap;border-top:1px solid var(--theme-line);padding-top:16px}
.courses-hub .course-cta{opacity:1;transform:none;display:inline-flex;align-items:center;min-height:38px;border-radius:10px;padding:9px 12px;background:var(--theme-action,#285aca);color:#fff;font-size:12px;font-weight:750}
.courses-hub .empty-state{margin:22px 0 0;padding:32px 24px;border:1px dashed var(--theme-line);border-radius:20px;background:var(--theme-panel);animation:none;line-height:1.7}
.courses-hub .empty-state h3{color:var(--theme-ink);font-size:20px;margin:10px 0}
.courses-hub .empty-state .courses-text-link{display:flex;justify-content:center;margin-top:14px}
.courses-empty-icon{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--theme-panel2,#25314b);color:var(--theme-accent,#a9c8ff);font-size:27px}
/* Rating entry points use a dedicated gold accent in every theme. */
html .tr-app a.ranking-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:14px 20px;border:1px solid #ffd987;border-radius:14px;background:linear-gradient(120deg,#ffe4a6,#ffc553);color:#332309!important;text-decoration:none;font-weight:800;box-shadow:0 4px 20px #e7a63825}
.ranking-cta>span:first-child{font-size:23px}
.ranking-spotlight{display:flex;align-items:center;gap:20px;padding:22px 24px;margin:20px 0 28px;border:1px solid #ad8135;border-radius:20px;background:var(--theme-panel,#162237);color:var(--theme-ink);text-decoration:none;transition:border-color .2s,transform .2s}
.ranking-spotlight:hover{border-color:#ffc553;transform:translateY(-2px)}
.ranking-cup{flex:0 0 62px;height:62px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,#ffe7b6,#ffc85e);font-size:32px;box-shadow:0 0 24px #f8c35318}
.ranking-spotlight-copy{flex:1;min-width:0;display:grid;gap:5px}
.ranking-spotlight-copy strong{font-size:20px;color:var(--theme-ink)}
.ranking-spotlight-copy>span{font-size:14px;line-height:1.55;color:var(--theme-muted)}
.ranking-spotlight-copy small{font-size:12px;color:var(--theme-muted)}
.ranking-spotlight-action{padding:12px 16px;border-radius:12px;background:#ffda85;color:#332309;font-size:13px;font-weight:800;white-space:nowrap}
html .tr-app .tr-card-rating{display:flex;align-items:center;justify-content:center;min-height:48px;background:#ffda85;color:#332309!important;border:1px solid #ecc373;font-weight:800;text-decoration:none;padding:10px;border-radius:0 0 16px 16px}
html .tr-app .tr-card-rating:hover{background:#ffe7af;color:#241704!important}
.tr-is-active>.ranking-spotlight{display:none}
@media(max-width:900px){.courses-hub .courses-intro{gap:22px;padding:24px;grid-template-columns:minmax(0,1fr) minmax(240px,.85fr)}.courses-hub .stats-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.ranking-spotlight{flex-wrap:wrap}.ranking-spotlight-action{margin-left:82px}}
@media(max-width:600px){.courses-hub .courses-hero{padding:20px 0}.courses-hub .courses-intro{display:block;padding:20px;border-radius:20px}.courses-hub .courses-hero-title{font-size:30px}.courses-hub .courses-hero-sub{font-size:14px}.courses-path{margin-top:24px;padding:16px}.courses-path ol{gap:14px}.courses-hub .stats-strip{gap:8px}.courses-hub .stat-pill{padding:12px;gap:10px}.courses-hub .stat-pill span{font-size:11px}.courses-hub .exam-switch{gap:8px}.courses-hub .exam-switch a{flex-basis:calc(50% - 8px);padding:12px;min-height:74px}.courses-hub .exam-switch a small{font-size:10px}.courses-library-title h2{font-size:23px}.courses-tools{gap:12px}.courses-hub .course-search{max-width:none}.course-status-filters{width:100%;display:grid;grid-template-columns:1fr 1fr}.course-status-filters button{font-size:12px}.courses-hub .course-card{padding:18px}.ranking-spotlight{gap:12px;padding:18px}.ranking-cup{flex-basis:48px;height:48px;font-size:26px;border-radius:13px}.ranking-spotlight-copy{flex-basis:calc(100% - 60px)}.ranking-spotlight-copy strong{font-size:17px}.ranking-spotlight-copy>span{font-size:12px}.ranking-spotlight-action{margin:2px 0 0;width:100%;text-align:center}.tr-app .tr-hero .tr-row{align-items:stretch}.tr-app .ranking-cta{width:100%;box-sizing:border-box}.course-return-nav:has(.course-return-secondary){padding-right:0}.course-return-secondary{margin:0 16px 10px}}

html .courses-hub .courses-ranking-link{padding:10px 16px;border:1px solid #ecc373;border-radius:12px;background:#ffda85;color:#332309;font-weight:800;box-shadow:0 4px 18px #e7a63818}
html:not([data-academy-theme]) .courses-hub{--theme-accent:#a9c8ff;--theme-action:#285aca}
.courses-hub .btn-primary{background:var(--theme-action,#285aca);color:#fff}
.courses-hub .task-type{background:var(--theme-panel2,#25314b);color:var(--theme-accent,#a9c8ff)}
