/* =========================================================
   Course page — /courses/{slug}
   Transcribed from design_files/course.html's own <style> block.
   Loaded only on course pages; see functions.php.
   ========================================================= */

.c-hero { background: var(--char); color: #fff; padding: 30px 0 44px; }
.c-hero .abbr-tag { display: inline-flex; align-items: center; gap: 9px; background: var(--char-2); border: 1px solid var(--line-d); border-radius: 99px; padding: 6px 14px 6px 6px; font-weight: 700; font-size: 12.5px; color: #BFC1C8; margin-bottom: 20px; }
.c-hero .abbr-tag .ab { font-family: var(--anton); background: var(--hivis); color: var(--char); padding: 3px 9px; border-radius: 99px; font-size: 12px; letter-spacing: .02em; }
.c-hero h1 { font-family: var(--anton); text-transform: uppercase; font-size: clamp(38px, 6vw, 72px); margin: 0 0 18px; letter-spacing: .01em; line-height: .9; }
.c-hero h1 .hl { color: var(--hivis); }
.c-hero .lede { font-size: 18px; line-height: 1.6; color: #BFC1C8; max-width: 60ch; margin: 0; }

.c-facts { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.c-fact .l { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.c-fact .v { font-family: var(--anton); font-size: 24px; color: #fff; line-height: 1; }

.course-tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 30; }
.course-tabs .inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.course-tabs .inner::-webkit-scrollbar { display: none; }
.ctab { font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 8px; color: var(--muted); white-space: nowrap; border: 1px solid transparent; text-decoration: none; }
.ctab:hover { background: var(--concrete); color: var(--char); }
.ctab.active { background: var(--char); color: #fff; }

.c-body { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; padding: 54px 0 70px; }
.c-body .prose > section + section { margin-top: 44px; }
.c-body .prose h2 { font-family: var(--anton); text-transform: uppercase; font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 14px; letter-spacing: .01em; }
.c-body .prose p { font-size: 16px; line-height: 1.7; color: #2c2e34; margin: 0 0 14px; }

.callout { background: var(--green-soft); border: 1px solid #bfe6d2; border-radius: var(--r-lg); padding: 20px 22px; margin: 24px 0; display: flex; gap: 14px; }
.callout svg { flex: none; margin-top: 2px; color: var(--green); }
.callout .ct-t { font-weight: 800; font-size: 14.5px; margin-bottom: 4px; }
.callout .ct-b { font-size: 14px; color: #2c4d3c; line-height: 1.55; }

.req-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 8px 0 6px; }
.req-table th, .req-table td { padding: 14px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.req-table tr:last-child th, .req-table tr:last-child td { border-bottom: none; }
.req-table th { font-weight: 700; width: 42%; background: var(--concrete); }

.step-list { counter-reset: s; display: flex; flex-direction: column; gap: 14px; margin: 6px 0 8px; }
.step-list .sl { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.step-list .sl .n { counter-increment: s; font-family: var(--anton); font-size: 14px; color: var(--char); background: var(--hivis); width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.step-list .sl .n::before { content: counter(s); }
.step-list .sl .st { font-weight: 800; font-size: 15px; margin-bottom: 3px; }
.step-list .sl p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

.c-aside { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 18px; }
.aside-cta { background: var(--char); color: #fff; border-radius: var(--r-lg); padding: 24px; }
.aside-cta h3 { font-family: var(--anton); text-transform: uppercase; font-size: 21px; margin: 0 0 6px; letter-spacing: .01em; }
.aside-cta p { font-size: 13.5px; color: #BFC1C8; margin: 0 0 16px; line-height: 1.5; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.aside-card h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

.toc { display: flex; flex-direction: column; gap: 2px; }
.toc a { font-size: 14px; font-weight: 600; color: #43454c; padding: 7px 10px; border-radius: 7px; border-left: 2px solid var(--line); text-decoration: none; display: flex; justify-content: space-between; gap: 10px; }
.toc a:hover { background: var(--concrete); color: var(--char); border-left-color: var(--char); }
.toc a .count { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 1000px) {
	.c-body { grid-template-columns: 1fr; gap: 30px; }
	.c-aside { position: static; }
	.course-tabs { top: 0; }
}

@media (max-width: 860px) {
	.rel-grid { grid-template-columns: 1fr; }
	.c-facts { gap: 22px; }
}
