:root{
  --bg:#f4f4f7;
  --paper:#ffffff;
  --paper-2:#efeff6;
  --text:#15161a;
  --muted:#6e727b;
  --line:#e2e3e8;
  --dark:#17181d;
  --accent:#6657ff;
  --accent-2:#8b7cff;
  --accent-soft:#ece9ff;
  --green:#2e7d51;
  --green-bg:#e8f6ee;
  --amber:#98621a;
  --amber-bg:#fff1d9;
  --radius:24px;
  --shadow:0 18px 55px rgba(24,25,30,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.58 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%}
button,input{font:inherit}
.wrap{width:min(1280px,calc(100% - 48px));margin:auto}
.top{position:sticky;top:0;z-index:30;background:rgba(244,244,247,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,227,232,.85)}
.topin{height:78px;display:flex;align-items:center;gap:34px}
.brand{display:flex;align-items:center;gap:11px;font-weight:850;font-size:22px;letter-spacing:-.03em;white-space:nowrap}
.brandmark{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#15161a,#2c2e36);color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 8px 18px rgba(17,18,22,.16)}
.top nav{display:flex;gap:26px;margin-right:auto}
.top nav a{color:#555963;font-size:15px;transition:.2s}
.top nav a:hover{color:var(--text)}
.search{display:flex;gap:8px;min-width:360px}
.search input,.hero-search input,.login input{border:1px solid var(--line);background:#fff;padding:13px 15px;border-radius:14px;outline:0;transition:.2s}
.search input{width:100%}
.search input:focus,.hero-search input:focus,.login input:focus{border-color:#b8b0ff;box-shadow:0 0 0 4px rgba(102,87,255,.08)}
.search button,.hero-search button,.login button{border:0;background:var(--dark);color:#fff;padding:13px 18px;border-radius:14px;font-weight:800;cursor:pointer;transition:.2s;white-space:nowrap}
.search button:hover,.hero-search button:hover,.login button:hover,.primary:hover{transform:translateY(-1px);background:#262831}
main.wrap{padding-bottom:78px}

/* Home hero */
.hero{margin:34px 0 64px}
.hero-home{position:relative;display:grid;grid-template-columns:minmax(0,1.52fr) minmax(310px,.62fr);gap:22px;align-items:stretch;padding:0}
.hero-main{position:relative;overflow:hidden;min-height:520px;border:1px solid var(--line);border-radius:34px;padding:62px 58px;background:
  radial-gradient(circle at 83% 18%,rgba(121,103,255,.18) 0 11%,transparent 11.5%),
  radial-gradient(circle at 91% 35%,rgba(255,255,255,.95) 0 14%,transparent 14.5%),
  linear-gradient(140deg,#ffffff 0%,#f9f8ff 58%,#eeebff 100%);
box-shadow:0 18px 55px rgba(43,39,85,.05)}
.hero-main:after{content:"";position:absolute;right:-78px;bottom:-125px;width:340px;height:340px;border-radius:50%;border:44px solid rgba(102,87,255,.08)}
.eyebrow{display:inline-flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:.13em;font-size:11px;font-weight:900;color:#777b85}
.eyebrow:before{content:"";width:18px;height:2px;border-radius:10px;background:var(--accent)}
.hero h1,.pagehead h1{font-size:clamp(42px,5.25vw,74px);line-height:.98;letter-spacing:-.055em;margin:18px 0 24px;max-width:920px}
.hero-main>p,.pagehead p{font-size:19px;color:var(--muted);max-width:760px;margin:0}
.hero-search{display:flex;gap:10px;margin-top:32px;max-width:720px;position:relative;z-index:2}
.hero-search input{flex:1;padding:17px 18px;background:rgba(255,255,255,.94)}
.hero-search button{padding:17px 24px;background:var(--accent);box-shadow:0 12px 24px rgba(102,87,255,.22)}
.hero-search button:hover{background:#5748f0}
.quicklinks{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:20px;position:relative;z-index:2;font-size:13px}
.quicklinks>span{color:#8a8e97}
.quicklinks a{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.78);border:1px solid rgba(218,216,234,.9);color:#555965;transition:.2s}
.quicklinks a:hover{background:#fff;color:var(--text)}
.hero-panel{display:grid;grid-template-rows:1.25fr auto auto;gap:12px}
.hero-total,.hero-mini>div,.hero-note{background:var(--paper);border:1px solid var(--line);border-radius:26px}
.hero-total{padding:34px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(155deg,#191a20,#292b35);color:#fff;position:relative;overflow:hidden;min-height:260px}
.hero-total:after{content:"";position:absolute;right:-55px;top:-55px;width:180px;height:180px;border-radius:50%;background:linear-gradient(145deg,rgba(139,124,255,.9),rgba(102,87,255,.18))}
.hero-total span{font-size:13px;color:#bfc2cb;text-transform:uppercase;letter-spacing:.08em;font-weight:800;position:relative;z-index:1}
.hero-total b{font-size:56px;line-height:1;letter-spacing:-.05em;margin:16px 0 8px;position:relative;z-index:1}
.hero-total small{color:#c4c7cf;font-size:14px;position:relative;z-index:1}
.hero-mini{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hero-mini>div{padding:22px}
.hero-mini b{display:block;font-size:28px;letter-spacing:-.04em}
.hero-mini span{color:var(--muted);font-size:13px}
.hero-note{padding:19px 20px;display:flex;align-items:center;gap:11px;color:#5f636d;font-size:13px}
.hero-note i{width:10px;height:10px;border-radius:50%;background:#49a76d;box-shadow:0 0 0 6px rgba(73,167,109,.11);flex:0 0 auto}

/* Sections */
section{margin:54px 0}
.home-section{margin-top:72px}
.sectionhead{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px;gap:24px}
.sectionhead h2{font-size:36px;line-height:1.05;letter-spacing:-.04em;margin:7px 0 0}
.sectionhead>a{color:#626772;font-size:14px;display:inline-flex;gap:7px;align-items:center;white-space:nowrap}
.sectionhead>a span{transition:.2s}
.sectionhead>a:hover span{transform:translateX(3px)}
.catgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.catgrid.large{grid-template-columns:repeat(3,1fr)}
.cat{position:relative;background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px 22px 20px;min-height:142px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;transition:.22s}
.cat:before{content:"";position:absolute;inset:0;background:linear-gradient(145deg,transparent 50%,rgba(102,87,255,.055));opacity:0;transition:.22s}
.cat:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#d9d5ff}
.cat:hover:before{opacity:1}
.catnum{position:absolute;left:22px;top:18px;font-size:11px;font-weight:900;letter-spacing:.12em;color:#a0a3ab}
.cat b{font-size:19px;line-height:1.2;letter-spacing:-.02em;position:relative;max-width:82%}
.catcount{font-size:13px;color:var(--muted);margin-top:10px;position:relative}
.catarrow{position:absolute;right:18px;bottom:18px;width:34px;height:34px;border-radius:50%;background:#f1f1f5;display:grid;place-items:center;font-size:15px;transition:.2s}
.cat:hover .catarrow{background:var(--accent);color:#fff;transform:rotate(8deg)}

/* Cards */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid.small{grid-template-columns:repeat(3,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;min-width:0;display:flex;flex-direction:column;transition:.22s}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#dcdde4}
.cover,.coursecover{position:relative;overflow:hidden;background:linear-gradient(135deg,hsl(calc(228 + var(--v)*15),58%,87%),hsl(calc(296 + var(--v)*12),68%,95%))}
.cover{height:225px;display:flex;flex-direction:column;justify-content:flex-end;padding:20px}
.cover:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(255,255,255,.22),transparent 48%);pointer-events:none}
.orb{position:absolute;border-radius:999px;background:rgba(255,255,255,.66)}
.orb.a{width:190px;height:190px;right:-52px;top:-58px}
.orb.b{width:120px;height:120px;left:18px;bottom:-60px;background:rgba(32,33,39,.09)}
.coverbrand{position:absolute;top:17px;left:19px;font-size:10px;font-weight:950;letter-spacing:.16em;z-index:2}
.coverlabel{position:absolute;right:16px;top:15px;background:rgba(255,255,255,.76);backdrop-filter:blur(8px);padding:7px 9px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.08em;z-index:2}
.covertitle{font-size:22px;line-height:1.08;letter-spacing:-.035em;max-width:87%;position:relative;z-index:2}
.coverauthor{font-size:12px;margin-top:9px;position:relative;z-index:2;color:#3f424a}
.cardbody{padding:20px 20px 18px;display:flex;flex-direction:column;flex:1}
.meta{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:10px}
.status,.availability{border-radius:999px;padding:4px 8px;font-weight:850}
.ok{background:var(--green-bg);color:var(--green)}
.soon{background:var(--amber-bg);color:var(--amber)}
.card h3{font-size:20px;line-height:1.28;letter-spacing:-.025em;margin:0 0 8px}
.card h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.author{font-size:14px;color:#5950b9;width:max-content}
.card p{color:var(--muted);font-size:14px;margin:13px 0 16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cardmore{margin-top:auto;border-top:1px solid #ededf1;padding-top:13px;color:#525761;font-size:13px;font-weight:750;display:flex;justify-content:space-between;align-items:center}
.cardmore span{transition:.2s}
.card:hover .cardmore span{transform:translateX(3px)}

/* Inner pages */
.pagehead{padding:64px 0 22px}
.pagehead h1{font-size:56px}
.count{margin-top:20px;font-weight:850;display:inline-flex;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff}
.pager{display:flex;justify-content:center;align-items:center;gap:25px;margin:40px 0}
.pager a{background:#fff;border:1px solid var(--line);padding:10px 14px;border-radius:11px}
.breadcrumbs{display:flex;gap:8px;color:var(--muted);font-size:13px;padding-top:28px;flex-wrap:wrap}
.coursehero{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(300px,.62fr);gap:46px;align-items:center;padding:42px 0 56px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips a,.topics a{font-size:12px;background:var(--accent-soft);color:#574db5;padding:7px 10px;border-radius:999px}
.coursehero h1{font-size:clamp(40px,5.2vw,70px);line-height:.98;letter-spacing:-.055em;margin:18px 0 20px;max-width:900px}
.by{color:var(--muted);margin:0 0 22px}
.by a{text-decoration:underline;text-underline-offset:3px}
.lead{font-size:19px;line-height:1.62;color:#555963;max-width:820px;margin:0}
.cta{display:flex;gap:12px;align-items:center;margin-top:28px}
.primary{background:var(--dark);color:#fff;padding:15px 20px;border-radius:14px;font-weight:850;display:inline-flex;align-items:center;gap:7px;transition:.2s}
.availability{font-size:13px}
.coursecover{height:430px;border-radius:32px;padding:30px;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid rgba(0,0,0,.03);box-shadow:0 22px 60px rgba(31,29,50,.08)}
.coursecover:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(255,255,255,.16),transparent 46%)}
.coursecover small{position:absolute;top:28px;left:28px;font-weight:900;letter-spacing:.15em;text-transform:uppercase;z-index:2}
.coursecover b{font-size:31px;line-height:1.07;letter-spacing:-.035em;position:relative;z-index:2}
.coursecover>span:last-child{position:relative;margin-top:12px;z-index:2}
.contentcols{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:34px;align-items:start}
.textblock{background:#fff;border:1px solid var(--line);border-radius:24px;padding:32px 34px;margin:0 0 18px}
.textblock h2{margin:0 0 22px;font-size:30px;line-height:1.1;letter-spacing:-.035em}
.textblock p,.textblock li{color:#4f535b}
.textblock p{margin:0 0 18px}
.textblock p:last-child{margin-bottom:0}
.textblock ul{padding-left:22px}
.textblock li{margin:8px 0}
.checklist{padding:0!important;list-style:none}
.checklist li{padding:10px 0 10px 32px;position:relative;margin:0!important}
.checklist li:before{content:"✓";position:absolute;left:0;top:9px;width:21px;height:21px;border-radius:50%;background:var(--green-bg);color:var(--green);display:grid;place-items:center;font-size:12px;font-weight:900}
.facts,.topics{position:sticky;top:100px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;margin-bottom:16px}
.facts h3,.topics h3{margin:0 0 14px;font-size:18px}
.facts div{display:flex;flex-direction:column;border-top:1px solid var(--line);padding:13px 0}
.facts span{font-size:12px;color:var(--muted)}
.facts b{font-size:15px}
.topics{position:static}
.topics div{display:flex;flex-wrap:wrap;gap:7px}
.faq details{border-top:1px solid var(--line);padding:14px 0}
.faq summary{font-weight:750;cursor:pointer}

/* Utility pages */
.empty,.login{background:#fff;border:1px solid var(--line);border-radius:22px;padding:40px}
.login form{display:flex;gap:10px;max-width:500px}
.adminstats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.adminstats div{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:22px}
.adminstats b{font-size:30px;display:block}
.adminstats span{color:var(--muted)}
table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}
th{background:#f0f1f4}

/* Footer */
footer{margin-top:10px;border-top:1px solid var(--line);padding:46px 0 52px;color:var(--muted);background:rgba(255,255,255,.42)}
.foot{display:flex;justify-content:space-between;gap:30px;align-items:flex-start}
.foot>div:first-child{max-width:610px}
.footbrand{display:flex;align-items:center;gap:10px;color:var(--text);font-size:20px}
.footbrand .brandmark{width:34px;height:34px;border-radius:10px}
.foot p{margin:15px 0 0}
.footnav{display:flex;gap:22px;align-items:center}
.footnav a:hover{color:var(--text)}

@media(max-width:1080px){
  .top nav{display:none}.search{min-width:320px}
  .hero-home{grid-template-columns:1fr}.hero-panel{grid-template-columns:1.2fr 1fr;grid-template-rows:auto auto}.hero-note{grid-column:1/-1}
  .catgrid,.catgrid.large{grid-template-columns:repeat(2,1fr)}
  .grid,.grid.small{grid-template-columns:repeat(2,1fr)}
  .coursehero,.contentcols{grid-template-columns:1fr}.coursecover{height:360px}.facts{position:static}.adminstats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .wrap{width:min(100% - 28px,1280px)}
  .topin{height:68px;gap:16px}.brand{font-size:20px}.brandmark{width:35px;height:35px}.search{display:none}
  .hero{margin-top:22px}.hero-main{min-height:auto;padding:42px 30px;border-radius:26px}.hero h1,.pagehead h1{font-size:44px}.hero-main>p,.pagehead p{font-size:17px}
  .hero-search{flex-direction:column}.hero-panel{grid-template-columns:1fr 1fr}.hero-total{grid-column:1/-1;min-height:220px}.hero-note{grid-column:1/-1}.hero-total b{font-size:48px}
  .sectionhead{align-items:flex-start}.sectionhead h2{font-size:31px}.sectionhead>a{padding-top:4px}
  .catgrid,.catgrid.large,.grid,.grid.small{grid-template-columns:1fr}
  .cover{height:220px}.coursehero{padding-top:28px;gap:30px}.coursecover{height:320px}.contentcols{gap:10px}.textblock{padding:26px 22px}.cta{align-items:flex-start;flex-direction:column}.foot{flex-direction:column}.footnav{flex-direction:column;align-items:flex-start;gap:10px}
}
@media(max-width:480px){
  .wrap{width:min(100% - 20px,1280px)}
  .hero-main{padding:34px 22px}.hero h1,.pagehead h1,.coursehero h1{font-size:38px}.quicklinks{display:none}.hero-mini{grid-template-columns:1fr}.hero-panel{display:block}.hero-panel>*{margin-bottom:10px}.sectionhead{display:block}.sectionhead>a{display:inline-flex;margin-top:12px}.pagehead{padding-top:44px}.coursecover{height:290px;padding:24px}.coursecover b{font-size:27px}
}

/* v0.3.1 — denser category tiles + non-duplicating course covers */
.cat{min-height:158px;padding:22px 22px 19px;justify-content:flex-end;background:linear-gradient(145deg,#fff 0%,#fff 62%,#faf9ff 100%)}
.catart{position:absolute;right:18px;top:18px;width:64px;height:48px;display:block;opacity:.95}
.catart:before,.catart:after,.catart i{content:"";position:absolute;display:block;border-radius:999px}
.catart:before{width:42px;height:42px;right:0;top:0;background:var(--accent-soft)}
.catart:after{width:26px;height:26px;right:29px;top:17px;background:rgba(21,22,26,.08)}
.catart i:first-child{width:30px;height:7px;right:9px;top:17px;background:rgba(102,87,255,.42);transform:rotate(-28deg)}
.catart i:last-child{width:18px;height:18px;right:41px;top:3px;border-radius:6px;background:rgba(102,87,255,.12);transform:rotate(18deg)}
.catnum{padding:4px 7px;border-radius:999px;background:#f3f1ff;color:#7568d8;letter-spacing:.08em}
.cat b{max-width:72%;font-size:18px}
.catcount{margin-top:8px}
.cat:nth-child(4n+2) .catart:before{background:#eaf5ff}.cat:nth-child(4n+2) .catart i:first-child{background:rgba(63,137,207,.36)}
.cat:nth-child(4n+3) .catart:before{background:#fff0e6}.cat:nth-child(4n+3) .catart i:first-child{background:rgba(211,125,68,.34)}
.cat:nth-child(4n) .catart:before{background:#eaf7ef}.cat:nth-child(4n) .catart i:first-child{background:rgba(66,146,94,.32)}
.catgrid.large .cat{min-height:164px}

.cover{height:205px;justify-content:center;align-items:center;padding:20px}
.coverbrand{top:17px;left:19px}
.coverlabel{right:16px;top:15px}
.covermark{position:relative;width:86px;height:86px;border-radius:26px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.65);box-shadow:0 16px 35px rgba(40,35,82,.08);display:flex;align-items:flex-end;justify-content:center;gap:6px;padding:22px;z-index:2;transform:rotate(-3deg)}
.covermark:before{content:"K";position:absolute;left:17px;top:9px;font-weight:950;font-size:21px;letter-spacing:-.05em;color:rgba(21,22,26,.82)}
.covermark i{display:block;width:9px;border-radius:8px;background:rgba(21,22,26,.72)}
.covermark i:nth-child(1){height:20px}.covermark i:nth-child(2){height:31px}.covermark i:nth-child(3){height:24px}
.covercaption{position:absolute;left:19px;bottom:16px;font-size:9px;font-weight:900;letter-spacing:.14em;color:rgba(35,36,42,.58);z-index:2}
.covertitle,.coverauthor{display:none!important}
.cardbody{padding-top:18px}
.card h3{font-size:19px}

@media(max-width:760px){
  .cat{min-height:145px}.cat b{max-width:76%}.cover{height:195px}
}
\n\n/* v0.3.2 — meaningful typography instead of decorative widgets */\n.cat{min-height:142px;padding:20px 22px 18px;background:#fff}\n.catword{position:absolute;right:18px;top:18px;max-width:58%;font-size:31px;line-height:.9;font-weight:950;letter-spacing:-.055em;text-align:right;color:rgba(102,87,255,.075);white-space:nowrap;overflow:hidden;text-overflow:clip;pointer-events:none}\n.catnum{left:20px;top:18px;background:transparent;padding:0;color:#8074df;font-size:11px}\n.cat b{max-width:78%;font-size:19px;z-index:2}\n.catcount{z-index:2}\n.cat:nth-child(4n+2) .catword{color:rgba(51,132,201,.075)}\n.cat:nth-child(4n+3) .catword{color:rgba(204,119,58,.075)}\n.cat:nth-child(4n) .catword{color:rgba(52,140,84,.075)}\n.catart{display:none!important}\n\n.cover{height:168px;justify-content:flex-end;align-items:stretch;padding:18px 19px}\n.covermark{display:none!important}\n.coverghost{position:absolute;left:16px;right:16px;top:48%;transform:translateY(-50%);font-size:58px;line-height:1;font-weight:950;letter-spacing:.08em;color:rgba(35,32,58,.075);z-index:1;white-space:nowrap}\n.covercaption{left:19px;bottom:17px;font-size:9px;letter-spacing:.16em}\n.cover:before{content:"";position:absolute;left:19px;right:19px;bottom:38px;height:1px;background:rgba(35,32,58,.09);z-index:1}\n.cardbody{padding:18px 20px 17px}\n.card h3{font-size:19px}\n.card p{margin:11px 0 15px}\n\n.source-content{display:flex;flex-direction:column;gap:0}\n.source-content p{margin:0;padding:8px 0;color:#4f535b;line-height:1.65}\n.source-content h3{margin:18px 0 5px;font-size:18px;line-height:1.25;letter-spacing:-.02em}\n.source-content h3:first-child{margin-top:0}\n\n@media(max-width:760px){\n  .cat{min-height:132px}.catword{font-size:27px}.cover{height:158px}.coverghost{font-size:49px}\n}\n

/* v0.3.3 — no duplicated title/author on full course poster */
.coursecover{justify-content:flex-end;align-items:stretch}
.coursecover b,.coursecover>span:last-child{display:none!important}
.coursecover-label{position:absolute;right:24px;top:24px;background:rgba(255,255,255,.76);backdrop-filter:blur(8px);padding:8px 11px;border-radius:999px;font-size:11px;font-weight:900;letter-spacing:.1em;z-index:3}
.coursecover-ghost{position:absolute;left:26px;right:26px;top:50%;transform:translateY(-50%);font-size:clamp(72px,8vw,118px);line-height:.85;font-weight:950;letter-spacing:.06em;color:rgba(35,32,58,.075);z-index:1;white-space:nowrap;overflow:hidden}
.coursecover-caption{position:relative;z-index:3;font-size:11px;font-weight:900;letter-spacing:.16em;color:rgba(35,36,42,.62)}
.coursecover:before{content:"";position:absolute;left:30px;right:30px;bottom:58px;height:1px;background:rgba(35,32,58,.09);z-index:2}
@media(max-width:760px){.coursecover-ghost{font-size:74px}.coursecover-label{right:20px;top:20px}}

/* v0.3.4 — calmer category tiles and purely visual course covers */
/* Category cards: no duplicated words or decorative widgets. */
.cat{
  min-height:146px;
  padding:22px 22px 20px;
  justify-content:flex-end;
  background:linear-gradient(145deg,#fff 0%,#fff 68%,#f1efff 100%);
}
.cat:nth-child(4n+2){background:linear-gradient(145deg,#fff 0%,#fff 68%,#edf6ff 100%)}
.cat:nth-child(4n+3){background:linear-gradient(145deg,#fff 0%,#fff 68%,#fff2e9 100%)}
.cat:nth-child(4n){background:linear-gradient(145deg,#fff 0%,#fff 68%,#eef8f1 100%)}
.cat:after{
  content:"";
  position:absolute;
  right:-24px;
  top:-34px;
  width:112px;
  height:112px;
  border-radius:50%;
  border:22px solid rgba(102,87,255,.07);
  pointer-events:none;
}
.cat:nth-child(4n+2):after{border-color:rgba(62,139,207,.07)}
.cat:nth-child(4n+3):after{border-color:rgba(210,126,67,.07)}
.cat:nth-child(4n):after{border-color:rgba(61,145,91,.07)}
.catword,.catart{display:none!important}
.catnum{
  position:absolute;
  left:22px;
  top:19px;
  padding:0;
  background:transparent;
  color:#8d83d9;
  font-size:11px;
  letter-spacing:.12em;
  z-index:2;
}
.cat b{max-width:78%;font-size:19px;line-height:1.18;z-index:2}
.catcount{margin-top:8px;z-index:2}
.catarrow{z-index:2;background:rgba(255,255,255,.72);border:1px solid rgba(226,227,232,.9)}

/* Course cards: the image area is now just an abstract visual, never text. */
.cover{
  height:154px;
  padding:0;
  display:block;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,255,255,.74) 0 18%,transparent 18.5%),
    linear-gradient(135deg,hsl(calc(228 + var(--v)*15),58%,86%),hsl(calc(296 + var(--v)*12),66%,95%));
}
.cover:before{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  left:-52px;
  bottom:-86px;
  border-radius:50%;
  border:24px solid rgba(37,33,67,.065);
}
.cover:after{
  content:"";
  position:absolute;
  width:86px;
  height:86px;
  right:32px;
  top:34px;
  border-radius:26px;
  background:rgba(255,255,255,.32);
  border:1px solid rgba(255,255,255,.46);
  transform:rotate(12deg);
  box-shadow:0 20px 42px rgba(44,40,78,.06);
}
.cover .orb{display:block;position:absolute;z-index:1}
.cover .orb.a{width:64px;height:64px;left:42px;top:30px;border-radius:50%;background:rgba(102,87,255,.11)}
.cover .orb.b{width:34px;height:34px;left:84px;top:72px;border-radius:50%;background:rgba(255,255,255,.45)}
.cover-shape{position:absolute;display:block;z-index:2;background:rgba(24,25,30,.58);border-radius:999px;transform-origin:center}
.cover-shape.one{width:52px;height:8px;right:47px;top:66px;transform:rotate(-28deg)}
.cover-shape.two{width:34px;height:8px;right:74px;top:84px;transform:rotate(33deg);opacity:.5}
.cover-dot{position:absolute;right:47px;top:47px;width:10px;height:10px;border-radius:50%;background:rgba(24,25,30,.68);z-index:3}
.coverbrand,.coverlabel,.coverghost,.covercaption,.covermark{display:none!important}
.cardbody{padding:18px 20px 17px}
.card h3{font-size:19px}

/* Full course visual: abstract editorial poster, no repeated words. */
.coursehero{grid-template-columns:minmax(0,1.48fr) minmax(280px,.52fr);gap:54px}
.coursecover{
  height:360px;
  border-radius:30px;
  padding:0;
  display:block;
  background:
    radial-gradient(circle at 84% 17%,rgba(255,255,255,.76) 0 20%,transparent 20.5%),
    linear-gradient(145deg,hsl(calc(228 + var(--v)*15),58%,86%),hsl(calc(296 + var(--v)*12),64%,95%));
  box-shadow:0 24px 62px rgba(31,29,50,.08);
}
.coursecover:before{
  content:"";
  position:absolute;
  left:-58px;
  bottom:-84px;
  width:210px;
  height:210px;
  border-radius:50%;
  border:34px solid rgba(33,29,62,.06);
}
.coursecover:after{
  content:"";
  position:absolute;
  right:38px;
  top:72px;
  width:118px;
  height:118px;
  border-radius:34px;
  background:rgba(255,255,255,.3);
  border:1px solid rgba(255,255,255,.48);
  transform:rotate(11deg);
  box-shadow:0 28px 48px rgba(42,38,77,.07);
}
.coursecover small,.coursecover-label,.coursecover-ghost,.coursecover-caption{display:none!important}
.coursecover .orb{display:block;position:absolute}
.coursecover .orb.a{width:92px;height:92px;left:50px;top:54px;border-radius:50%;background:rgba(102,87,255,.11)}
.coursecover .orb.b{width:48px;height:48px;left:112px;top:118px;border-radius:50%;background:rgba(255,255,255,.46)}
.poster-ring{position:absolute;right:54px;bottom:58px;width:104px;height:104px;border:18px solid rgba(24,25,30,.09);border-radius:50%;z-index:2}
.poster-block{position:absolute;left:66px;bottom:64px;width:84px;height:84px;border-radius:24px;background:rgba(255,255,255,.34);border:1px solid rgba(255,255,255,.48);transform:rotate(-8deg);z-index:2}
.poster-line{position:absolute;height:9px;border-radius:999px;background:rgba(24,25,30,.58);z-index:3}
.poster-line.l1{width:78px;left:72px;top:178px;transform:rotate(-18deg)}
.poster-line.l2{width:48px;left:111px;top:206px;transform:rotate(25deg);opacity:.55}
.poster-line.l3{width:28px;left:72px;top:224px;opacity:.32}

@media(max-width:1080px){
  .coursehero{grid-template-columns:1fr}.coursecover{height:310px;max-width:520px;width:100%;justify-self:start}
}
@media(max-width:760px){
  .cat{min-height:136px}.cover{height:145px}.coursecover{height:280px}.coursehero{gap:28px}
}

/* v0.8 — brand system, premium header/footer and static SEO pages */
:root{
  --brand-charcoal:#111217;
  --brand-lavender:#8b7cf6;
  --brand-lilac:#edeafc;
  --brand-shell:#f7f7fa;
}
.top{background:rgba(255,255,255,.94);border-bottom:1px solid #e7e7ec;box-shadow:0 1px 0 rgba(17,18,23,.02)}
.topin{height:84px;gap:38px}
.brand-v8{display:inline-flex;align-items:center;gap:12px;font-size:23px;font-weight:900;letter-spacing:-.045em;color:var(--brand-charcoal)}
.brand-v8 img{display:block;width:42px;height:42px;filter:drop-shadow(0 8px 16px rgba(17,18,23,.12))}
.top nav{gap:30px}
.top nav a{font-size:15px;font-weight:600;color:#575b65}
.top nav a:hover{color:#111217}
.search-v8{position:relative;min-width:390px;align-items:center}
.search-v8 .search-symbol{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#777b87;pointer-events:none;z-index:2}
.search-v8 .search-symbol svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.search-v8 input{padding-left:43px;height:48px;border-radius:15px;background:#fff}
.search-v8 button{height:48px;padding:0 22px;border-radius:15px;background:#111217}

.site-footer{margin-top:20px;padding:0;background:linear-gradient(180deg,#f3f1ff 0%,#f9f9fc 100%);border-top:1px solid #e2e0ef;color:#696d77}
.footer-main{display:grid;grid-template-columns:minmax(340px,1.7fr) minmax(170px,.65fr) minmax(170px,.65fr);gap:72px;padding:54px 0 42px}
.footer-brand-col{max-width:580px}
.footbrand{display:inline-flex;align-items:center;gap:12px;color:#111217;font-size:24px;letter-spacing:-.035em}
.footbrand img{width:42px;height:42px;display:block}
.footer-brand-col p{font-size:14px;line-height:1.75;margin:17px 0 0;max-width:520px}
.footer-col{display:flex;flex-direction:column;gap:12px}
.footer-col h3{margin:3px 0 8px;color:#111217;font-size:14px;text-transform:uppercase;letter-spacing:.09em}
.footer-col a{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:14px;color:#60646e;transition:.2s}
.footer-col a:hover{color:#6557e8;transform:translateX(2px)}
.footer-col a span{color:#979aa4}
.footer-bottom{display:flex;justify-content:space-between;gap:30px;align-items:center;padding:22px 0 27px;border-top:1px solid rgba(111,104,151,.14);font-size:12px;color:#858995}
.footer-bottom>div{display:flex;gap:24px;flex-wrap:wrap}
.footer-bottom a:hover{color:#111217}

.static-page-head{max-width:900px;padding-bottom:12px}
.static-page{max-width:900px;margin:24px 0 70px;padding:38px 42px}
.static-page h2{font-size:27px;margin:28px 0 10px;letter-spacing:-.035em}
.static-page h2:first-child{margin-top:0}
.static-page p{color:#555a64;line-height:1.75}
.static-page .inline-link{display:inline-flex;padding:11px 15px;border:1px solid #dedee7;border-radius:12px;background:#fff;font-weight:800;color:#111217}
.static-faq details{background:#fff}

/* subtle brand polish */
.hero-main{border-color:#e5e3ef;background:radial-gradient(circle at 83% 18%,rgba(139,124,246,.14) 0 11%,transparent 11.5%),radial-gradient(circle at 91% 35%,rgba(255,255,255,.96) 0 14%,transparent 14.5%),linear-gradient(140deg,#fff 0%,#fbfaff 58%,#f1efff 100%)}
.hero-search button{background:#6657f4}
.hero-search button:hover{background:#574be0}

@media(max-width:1080px){
  .search-v8{min-width:300px}.footer-main{grid-template-columns:1.5fr .75fr .75fr;gap:38px}
}
@media(max-width:760px){
  .topin{height:auto;min-height:76px;flex-wrap:wrap;padding:14px 0;gap:14px 20px}.brand-v8{font-size:21px}.brand-v8 img{width:38px;height:38px}.top nav{order:3;width:100%;gap:20px;padding:2px 0 4px;overflow:auto}.search-v8{margin-left:auto;min-width:0;width:min(48vw,330px)}.search-v8 input{min-width:0}.search-v8 button{display:none}
  .footer-main{grid-template-columns:1fr 1fr;gap:34px;padding:42px 0 30px}.footer-brand-col{grid-column:1/-1}.footer-bottom{align-items:flex-start;flex-direction:column;gap:12px}.static-page{padding:28px 24px}
}
@media(max-width:480px){
  .topin{gap:12px}.brand-v8 span{font-size:19px}.search-v8{width:46vw}.search-v8 .search-symbol{left:12px}.search-v8 input{padding-left:36px;font-size:13px}.footer-main{grid-template-columns:1fr}.footer-brand-col{grid-column:auto}.footer-bottom>div{flex-direction:column;gap:8px}.static-page{padding:24px 19px}
}

/* v0.9 — collections, richer author/topic hubs and internal linking */
.entity-extra{margin:24px 0 34px}
.sectionhead.compact{margin-bottom:16px}
.sectionhead.compact h2{font-size:30px;margin-top:5px}
.collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.collection-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.collection-card{position:relative;min-height:176px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,#fff 0%,#fff 58%,#f5f2ff 100%);padding:22px;display:flex;flex-direction:column;overflow:hidden;transition:.2s}
.collection-card:before{content:"";position:absolute;width:130px;height:130px;border-radius:50%;right:-45px;top:-52px;background:rgba(139,124,246,.11)}
.collection-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#d9d6ee}
.collection-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:#776bd4;font-weight:900;margin-bottom:28px}
.collection-card b{font-size:20px;line-height:1.15;letter-spacing:-.025em;max-width:85%}
.collection-card small{font-size:13px;color:var(--muted);margin-top:7px}
.collection-count{font-size:12px;color:var(--muted);margin-top:auto;padding-top:20px}
.collection-card i{position:absolute;right:18px;bottom:18px;font-style:normal;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f1efff;color:#5f53bd}
.collection-index{margin-bottom:40px}
.collection-head a{text-decoration:underline;text-underline-offset:3px}
.collection-meta{margin-top:22px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.collection-meta a{background:var(--accent-soft);color:#574db5;padding:7px 10px;border-radius:999px;font-size:13px}
.collection-meta b{margin-left:4px;padding:7px 10px;border:1px solid var(--line);background:#fff;border-radius:999px;font-size:13px}
.entity-stats{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.entity-stats span{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 13px;color:var(--muted);font-size:13px}
.entity-stats b{color:var(--text);font-size:17px;margin-right:4px}
.facet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.facet-card{position:relative;border:1px solid var(--line);border-radius:18px;background:#fff;padding:18px 46px 18px 18px;display:flex;flex-direction:column;min-height:104px}
.facet-card:hover{border-color:#d7d4ee;background:#fcfbff}
.facet-card span{font-weight:800;line-height:1.2}
.facet-card b{margin-top:auto;padding-top:14px;font-size:12px;color:var(--muted)}
.facet-card i{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-style:normal;color:#6759cd}
.tag-cloud{display:flex;gap:8px;flex-wrap:wrap}
.tag-cloud a{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:13px}
.tag-cloud a:hover{background:var(--accent-soft);border-color:#ddd8ff;color:#574db5}
.tag-cloud small{color:var(--muted);font-size:11px}
.topic-insights{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin:24px 0 34px}
.topic-insights>div{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px}
.topic-insights h2{font-size:25px;margin:6px 0 18px}
.author-mini-list{display:flex;flex-direction:column}
.author-mini-list a{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:11px 0}
.author-mini-list a:first-child{border-top:0;padding-top:0}
.author-mini-list b{font-size:14px}.author-mini-list span{font-size:12px;color:var(--muted);white-space:nowrap}
.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:46px}
.directory-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;display:grid;grid-template-columns:46px 1fr 24px;gap:13px;align-items:center}
.directory-card:hover{border-color:#d7d4ee;background:#fcfbff}
.directory-avatar{width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#ece9ff,#f7f5ff);display:grid;place-items:center;font-weight:900;color:#6659c7}
.directory-card b{display:block;font-size:15px}.directory-card small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.directory-card i{font-style:normal;color:#6a5bca}
.topic-directory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:46px}
.topic-directory a{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;justify-content:space-between;gap:10px;align-items:center}
.topic-directory a:hover{border-color:#d7d4ee;background:var(--accent-soft)}
.topic-directory b{font-size:14px}.topic-directory span{font-size:11px;color:var(--muted);white-space:nowrap}
.sidebar-collections{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;margin-bottom:16px}
.sidebar-collections h3{margin:0 0 10px;font-size:18px}
.sidebar-collections a{display:flex;flex-direction:column;padding:11px 0;border-top:1px solid var(--line)}
.sidebar-collections a:first-of-type{border-top:0}.sidebar-collections b{font-size:13px}.sidebar-collections span{font-size:11px;color:var(--muted);margin-top:3px}
.course-more{margin-top:46px}
.course-more+.course-more{margin-top:56px}

@media(max-width:1080px){
  .collection-grid{grid-template-columns:repeat(2,1fr)}.collection-grid.compact{grid-template-columns:repeat(2,1fr)}
  .facet-grid{grid-template-columns:repeat(2,1fr)}.directory-grid{grid-template-columns:repeat(2,1fr)}.topic-directory{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  .collection-grid,.collection-grid.compact,.facet-grid,.directory-grid,.topic-directory,.topic-insights{grid-template-columns:1fr}
  .collection-card{min-height:150px}.collection-kicker{margin-bottom:18px}.topic-insights>div{padding:20px}
}

/* v0.9.1 — footer alignment polish */
.footer-main-v9{grid-template-columns:minmax(300px,1.45fr) repeat(3,minmax(145px,.62fr));gap:46px;align-items:start;padding-top:48px;padding-bottom:38px}
.footer-main-v9 .footer-brand-col{max-width:470px;padding-right:18px}
.footer-main-v9 .footer-col{padding-top:2px;min-width:0}
.footer-main-v9 .footer-col h3{margin:0 0 14px;font-size:12px;line-height:1.2;letter-spacing:.12em;color:#4e5260}
.footer-main-v9 .footer-col a{min-height:28px;padding:2px 0;line-height:1.35}
.footer-search-link{display:inline-flex;align-items:center;gap:10px;margin-top:19px;padding:9px 12px;border:1px solid rgba(111,104,151,.16);border-radius:11px;background:rgba(255,255,255,.62);font-size:12px;font-weight:800;color:#545962}
.footer-search-link span{color:#7567dc;transition:.2s}
.footer-search-link:hover{color:#111217;border-color:#d7d2f6;background:#fff}
.footer-search-link:hover span{transform:translateX(2px)}
.footer-bottom{min-height:68px}
@media(max-width:1080px){.footer-main-v9{grid-template-columns:1.25fr repeat(3,.7fr);gap:28px}}
@media(max-width:860px){.footer-main-v9{grid-template-columns:1fr 1fr;gap:30px 44px}.footer-main-v9 .footer-brand-col{grid-column:1/-1;max-width:620px;padding-right:0}.footer-main-v9 .footer-col:last-child{grid-column:auto}}
@media(max-width:560px){.footer-main-v9{grid-template-columns:1fr;gap:26px}.footer-main-v9 .footer-brand-col{grid-column:auto}.footer-main-v9 .footer-col{padding-top:0}.footer-main-v9 .footer-col h3{margin-bottom:9px}.footer-bottom{padding-top:18px}}

/* v1.0 — richer collections, tag directory, footer icons */
.ui-icon{width:20px;height:20px;display:block}
.footer-col-title{display:flex;align-items:center;gap:9px;margin-bottom:13px}
.footer-col-title h3{margin:0!important}
.footer-col-icon{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:rgba(139,124,246,.10);color:#6b5fce;flex:0 0 auto}
.footer-col-icon .ui-icon{width:15px;height:15px}
.footer-search-link .ui-icon{width:15px;height:15px;color:#7468d5}
.footer-search-link b{font-size:15px;color:#7567dc;transition:.2s;margin-left:2px}
.footer-search-link:hover b{transform:translateX(2px)}

.collection-index-head{padding-bottom:30px}
.collection-index-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.collection-index-stats span{display:inline-flex;align-items:center;gap:5px;padding:8px 11px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12px;color:var(--muted)}
.collection-index-stats b{font-size:15px;color:var(--text)}
.collection-index-v10{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.collection-card-v10{min-height:0;padding:0;background:#fff;display:flex;border-radius:24px;overflow:hidden}
.collection-card-v10:before{display:none}
.collection-card-v10:hover{transform:translateY(-4px);box-shadow:0 20px 52px rgba(26,27,34,.09)}
.collection-visual{position:relative;height:156px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:
  radial-gradient(circle at 84% 15%,rgba(255,255,255,.68) 0 18%,transparent 18.5%),
  radial-gradient(circle at 15% 88%,rgba(255,255,255,.18) 0 20%,transparent 20.5%),
  linear-gradient(135deg,hsl(var(--collection-h) 78% 69%),hsl(calc(var(--collection-h) + 34) 72% 42%));
color:#fff}
.collection-visual:after{content:"";position:absolute;left:-28px;bottom:-55px;width:145px;height:145px;border-radius:50%;border:28px solid rgba(255,255,255,.10)}
.collection-icon{width:64px;height:64px;border-radius:20px;background:rgba(255,255,255,.18);backdrop-filter:blur(9px);display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);position:relative;z-index:2}
.collection-icon .ui-icon{width:34px;height:34px;stroke-width:1.6}
.collection-badge{position:absolute;right:14px;top:14px;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.90);color:#24252b;font-size:10px;font-weight:900;z-index:2}
.collection-body{padding:20px 20px 18px;display:flex;flex-direction:column;min-height:228px}
.collection-card-v10 .collection-kicker{margin:0 0 8px;font-size:9px}
.collection-card-v10 b{font-size:21px;line-height:1.16;max-width:none}
.collection-card-v10 small{margin-top:8px;font-size:12px}
.collection-desc{color:var(--muted);font-size:13px;line-height:1.48;margin-top:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.collection-link{margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-size:12px;font-weight:850;color:#6255cc;display:flex;justify-content:space-between;align-items:center}
.collection-link i{position:static;width:auto;height:auto;background:none;color:inherit;font-style:normal;transition:.2s}
.collection-card-v10:hover .collection-link i{transform:translateX(3px)}

.collection-hero-v10{position:relative;overflow:hidden;margin:26px 0 34px;padding:54px 56px;border-radius:32px;color:#fff;background:
  radial-gradient(circle at 88% 14%,rgba(255,255,255,.20) 0 13%,transparent 13.5%),
  radial-gradient(circle at 92% 86%,rgba(255,255,255,.09) 0 20%,transparent 20.5%),
  linear-gradient(135deg,hsl(var(--collection-h) 76% 54%),hsl(calc(var(--collection-h) + 28) 78% 30%));
box-shadow:0 18px 50px rgba(34,32,62,.10)}
.collection-hero-v10 .eyebrow{color:rgba(255,255,255,.76)}
.collection-hero-v10 .eyebrow:before{background:#fff}
.collection-hero-v10 h1{font-size:clamp(40px,5.1vw,66px);line-height:1;letter-spacing:-.05em;margin:17px 0 18px;max-width:820px}
.collection-hero-v10>p{font-size:17px;line-height:1.55;max-width:760px;color:rgba(255,255,255,.88);margin:0}
.collection-hero-icon{position:absolute;right:54px;top:46px;width:82px;height:82px;border-radius:24px;background:rgba(255,255,255,.15);display:grid;place-items:center;backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.collection-hero-icon .ui-icon{width:42px;height:42px}
.collection-hero-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:25px}
.collection-hero-meta span,.collection-hero-meta a{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.17);font-size:12px;color:#fff}
.collection-hero-meta a:hover{background:rgba(255,255,255,.24)}
.collection-editorial{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin:0 0 34px}
.collection-editorial>div{background:#fff;border:1px solid var(--line);border-radius:22px;padding:25px}
.collection-editorial h2{font-size:25px;margin:6px 0 13px;letter-spacing:-.03em}
.collection-editorial p{color:var(--muted);margin:0}
.collection-authors{margin:30px 0 40px}
.author-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.author-strip a{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:17px;padding:13px}
.author-strip a:hover{border-color:#d7d4ee;background:#fcfbff}
.author-strip>a>span{width:44px;height:44px;border-radius:13px;background:var(--accent-soft);color:#6357c3;font-weight:900;display:grid;place-items:center}
.author-strip b{display:block;font-size:13px;line-height:1.25}.author-strip small{display:block;font-size:10px;color:var(--muted);margin-top:4px}

.tags-head{padding-bottom:24px}
.tag-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.tag-stats span{display:inline-flex;align-items:center;gap:5px;padding:8px 11px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12px;color:var(--muted)}
.tag-stats b{font-size:15px;color:var(--text)}
.tag-alpha-nav{position:sticky;top:88px;z-index:12;display:flex;flex-wrap:wrap;gap:6px;padding:11px 13px;margin:12px 0 28px;border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.90);backdrop-filter:blur(14px)}
.tag-alpha-nav a{min-width:31px;height:31px;padding:0 8px;border-radius:9px;display:grid;place-items:center;color:#5d616b;font-size:12px;font-weight:850}
.tag-alpha-nav a:hover{background:var(--accent-soft);color:#584dbc}
.tag-directory-v10{display:grid;grid-template-columns:1fr 1fr;gap:26px 30px;margin-bottom:50px}
.tag-letter{margin:0;min-width:0}
.tag-letter h2{font-size:27px;color:#6657e7;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.tag-letter>div{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden}
.tag-letter a{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:11px 14px;border-top:1px solid #ececf0;font-size:13px}
.tag-letter a:first-child{border-top:0}
.tag-letter a:hover{background:#faf9ff;color:#574db5}
.tag-letter a span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tag-letter a b{font-size:11px;color:#8b8f99;font-weight:750;white-space:nowrap}

@media(max-width:1080px){
  .collection-index-v10{grid-template-columns:repeat(2,minmax(0,1fr))}
  .collection-hero-icon{right:34px;top:34px}
  .author-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .collection-index-v10{grid-template-columns:1fr}
  .collection-hero-v10{padding:38px 25px 32px}.collection-hero-icon{position:static;width:62px;height:62px;border-radius:18px;margin-bottom:24px}.collection-hero-icon .ui-icon{width:31px;height:31px}
  .collection-editorial,.tag-directory-v10{grid-template-columns:1fr}
  .author-strip{grid-template-columns:1fr}
  .tag-alpha-nav{top:70px}
}


/* =========================================================
   v1.1 — SEO title polish, category icons, outbound CTA,
   responsive burger menu
   ========================================================= */

/* Category pictograms */
.cat-icon{
  position:absolute;right:22px;top:18px;width:48px;height:48px;border-radius:15px;
  display:grid;place-items:center;z-index:3;color:#7164df;
  background:rgba(139,124,246,.105);border:1px solid rgba(139,124,246,.09);
  transition:transform .2s ease,background .2s ease,color .2s ease;
}
.cat-icon .ui-icon{width:25px;height:25px;stroke-width:1.65}
.cat:nth-child(4n+2) .cat-icon{color:#4388bd;background:rgba(75,151,211,.10);border-color:rgba(75,151,211,.08)}
.cat:nth-child(4n+3) .cat-icon{color:#c77843;background:rgba(219,139,84,.10);border-color:rgba(219,139,84,.08)}
.cat:nth-child(4n) .cat-icon{color:#4f9968;background:rgba(78,157,104,.10);border-color:rgba(78,157,104,.08)}
.cat:hover .cat-icon{transform:translateY(-2px) rotate(-3deg);background:#fff}
.cat:after{right:-38px;top:-48px;width:130px;height:130px;opacity:.72}
.cat b{max-width:72%}
.catgrid.large .cat-icon{width:52px;height:52px;border-radius:16px}
.catgrid.large .cat-icon .ui-icon{width:27px;height:27px}

/* External course CTA */
.course-outbound{padding:15px 22px;box-shadow:0 10px 26px rgba(17,18,23,.12)}
.course-outbound span{transition:transform .2s ease}
.course-outbound:hover span{transform:translate(2px,-2px)}

/* Mobile navigation */
.mobile-nav-toggle{display:none;margin-left:auto;width:46px;height:46px;border:1px solid #e2e2e9;border-radius:14px;background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer;box-shadow:0 8px 20px rgba(17,18,23,.05)}
.mobile-nav-toggle span{display:block;width:19px;height:2px;border-radius:9px;background:#17181d;transition:.2s}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.mobile-nav-panel{border-top:1px solid #ececf1;background:rgba(255,255,255,.98);box-shadow:0 18px 40px rgba(17,18,23,.08)}
.mobile-nav-panel[hidden]{display:none!important}
.mobile-nav-inner{padding:18px 0 22px}
.mobile-nav-search{display:flex;gap:9px;margin-bottom:15px;position:relative}
.mobile-nav-search .search-symbol{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#7a7e89;pointer-events:none}
.mobile-nav-search .ui-icon{width:18px;height:18px}
.mobile-nav-search input{min-width:0;flex:1;height:46px;border:1px solid #e0e1e7;border-radius:13px;background:#fff;padding:0 14px 0 42px;font:inherit}
.mobile-nav-search button{height:46px;border:0;border-radius:13px;padding:0 18px;background:#111217;color:#fff;font-weight:850}
.top .mobile-nav-links{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0!important;width:100%!important;padding:0!important;overflow:visible!important}
.top .mobile-nav-links a{display:flex;align-items:center;gap:9px;min-height:48px;border:1px solid #ededf2;border-radius:13px;padding:10px 12px;color:#3f434c!important;background:#fafafd;font-size:13px!important;font-weight:750!important}
.top .mobile-nav-links a:hover{background:#f2f0ff;color:#5d50cf!important}
.mobile-nav-links .ui-icon{width:18px;height:18px;color:#7467df;flex:0 0 auto}

@media(max-width:1080px){
  .topin{flex-wrap:nowrap!important}
  .top .desktop-nav{display:none!important}
  .mobile-nav-toggle{display:flex}
  .desktop-search{margin-left:auto}
}
@media(max-width:760px){
  .topin{min-height:68px!important;padding:10px 0!important;flex-wrap:nowrap!important}
  .desktop-search{display:none!important}
  .mobile-nav-toggle{display:flex;flex:0 0 46px}
  .brand-v8{margin-right:auto}
  .top .mobile-nav-links{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cat-icon{right:18px;top:16px;width:44px;height:44px}
  .cat b{max-width:74%}
}
@media(max-width:480px){
  .mobile-nav-search{display:grid;grid-template-columns:1fr auto}
  .mobile-nav-search button{padding:0 15px}
  .top .mobile-nav-links{grid-template-columns:1fr 1fr}
  .top .mobile-nav-links a{min-height:45px;padding:9px 10px}
  .brand-v8 img{width:36px;height:36px}
  .brand-v8 span{font-size:18px}
}

/* v1.2 — behavioral popularity */
.popular-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#f1efff;color:#6555d9;font-size:11px;font-weight:800;line-height:1}
.popular-chip:before{content:"";width:6px;height:6px;border-radius:50%;background:#8b7cf6;box-shadow:0 0 0 4px rgba(139,124,246,.1)}
.popular-head{padding-bottom:18px}
.popular-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.popular-stats span{display:inline-flex;align-items:baseline;gap:6px;padding:9px 13px;border:1px solid #e1e2e8;border-radius:999px;background:#fff;color:#6c7180;font-size:13px}
.popular-stats b{color:#111217;font-size:15px}
.popular-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.popular-ranked{position:relative;min-width:0}
.popular-ranked>.card{height:100%}
.popular-rank{position:absolute;z-index:6;top:12px;left:12px;display:flex;align-items:center;justify-content:center;min-width:38px;height:30px;padding:0 10px;border-radius:999px;background:#111217;color:#fff;font-size:12px;font-weight:900;box-shadow:0 7px 18px rgba(17,18,23,.16)}
.popular-section .sectionhead .eyebrow,.popular-inline .sectionhead .eyebrow{color:#6d5ce8}
.popular-inline{margin-bottom:34px}

@media (max-width:1100px){
  .popular-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .popular-grid{grid-template-columns:1fr}
  .popular-stats{gap:8px}
  .popular-stats span{font-size:12px}
}

/* =========================================================
   v1.3 — retention: favorites, compare, recently viewed
   ========================================================= */
.retention-tools{display:flex;gap:7px;align-items:center;flex:0 0 auto}
.retention-tool{position:relative;width:42px;height:42px;border:1px solid #e1e2e8;border-radius:13px;background:#fff;display:grid;place-items:center;color:#555b66;transition:.2s}
.retention-tool:hover{background:#f6f4ff;border-color:#d6d1f7;color:#6456d4;transform:translateY(-1px)}
.retention-tool .ui-icon{width:19px;height:19px}
.retention-count{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#7162eb;color:#fff;border:2px solid #fff;font-size:9px;font-weight:900;display:grid;place-items:center}

.cover-wrap{position:relative;min-width:0}
.card-tools{position:absolute;right:12px;top:12px;z-index:8;display:flex;gap:7px;opacity:0;transform:translateY(-4px);transition:.18s}
.card:hover .card-tools,.card-tools:focus-within{opacity:1;transform:none}
.card-tool{width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.72);background:rgba(255,255,255,.83);backdrop-filter:blur(9px);display:grid;place-items:center;color:#474b55;cursor:pointer;box-shadow:0 7px 18px rgba(30,28,45,.08);transition:.18s}
.card-tool:hover{background:#fff;color:#6254d2;transform:translateY(-1px)}
.card-tool.is-active{background:#7162eb;color:#fff;border-color:#7162eb}
.card-tool .ui-icon{width:18px;height:18px}

.course-cta{margin-bottom:0}
.cta-note{margin:9px 0 0!important;max-width:610px;color:#858995!important;font-size:12px!important;line-height:1.45!important}
.course-save-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}
.secondary-action{height:42px;padding:0 14px;border:1px solid #dddfe6;border-radius:12px;background:#fff;color:#555b65;font:inherit;font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:.18s}
.secondary-action:hover{border-color:#d1cbf7;background:#f8f7ff;color:#6255cf}
.secondary-action.is-active{background:#f0edff;border-color:#d1caf9;color:#5e50ca}
.secondary-action .ui-icon{width:16px;height:16px}
.related-choice .sectionhead p{margin:7px 0 0;color:var(--muted);font-size:13px}

.compare-dock{position:fixed;left:50%;bottom:22px;z-index:80;transform:translateX(-50%);min-width:390px;max-width:calc(100vw - 28px);padding:10px 11px 10px 14px;border:1px solid rgba(111,98,235,.18);border-radius:18px;background:rgba(24,25,31,.94);color:#fff;box-shadow:0 18px 60px rgba(20,21,29,.24);backdrop-filter:blur(14px);display:flex;align-items:center;gap:14px}
.compare-dock[hidden]{display:none!important}
.compare-dock>div{display:grid;grid-template-columns:28px auto;grid-template-rows:auto auto;column-gap:8px;align-items:center;min-width:0;flex:1}
.compare-dock>div>span{grid-row:1/3;width:28px;height:28px;border-radius:9px;background:rgba(139,124,246,.18);color:#aa9fff;display:grid;place-items:center}
.compare-dock>div .ui-icon{width:16px;height:16px}
.compare-dock b{font-size:12px}.compare-dock small{font-size:10px;color:#aeb0b9}
.compare-dock>a{height:38px;padding:0 14px;border-radius:11px;background:#8171f4;color:#fff;display:flex;align-items:center;font-size:11px;font-weight:850;white-space:nowrap}
.compare-dock>button{width:31px;height:31px;border-radius:9px;border:0;background:rgba(255,255,255,.08);color:#d7d8df;font-size:18px;cursor:pointer}
.compare-dock>button:hover{background:rgba(255,255,255,.14);color:#fff}

.retention-toast{position:fixed;right:22px;bottom:22px;z-index:100;max-width:310px;padding:11px 14px;border-radius:13px;background:#111217;color:#fff;box-shadow:0 14px 40px rgba(17,18,23,.22);font-size:12px;font-weight:750;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}
.retention-toast.show{opacity:1;transform:none}
.compare-dock:not([hidden])~.retention-toast{bottom:88px}

.recent-section{transition:.2s}.recent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.recent-card{position:relative;min-height:120px;padding:17px 42px 16px 17px;border:1px solid #e1e2e8;border-radius:17px;background:#fff;display:flex;flex-direction:column;transition:.18s}
.recent-card:hover{transform:translateY(-2px);border-color:#d5d0f5;box-shadow:0 12px 30px rgba(24,25,31,.05)}
.recent-card small{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#796de0;font-weight:850;margin-bottom:9px}
.recent-card b{font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.recent-card span{font-size:11px;color:var(--muted);margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-card i{position:absolute;right:16px;bottom:15px;font-style:normal;color:#6c5fd9}

.saved-page-head,.compare-page-head{padding-bottom:22px}
.saved-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}
.saved-toolbar>span{display:inline-flex;align-items:baseline;gap:5px;padding:8px 12px;border:1px solid #e0e1e7;border-radius:999px;background:#fff;color:#777c88;font-size:12px}.saved-toolbar b{color:#111217;font-size:15px}
.ghost-action{height:36px;padding:0 12px;border:1px solid #e0e1e7;border-radius:10px;background:#fff;color:#5e626c;font-size:11px;font-weight:800;cursor:pointer}.ghost-action:hover{background:#f6f4ff;border-color:#d4cff5;color:#6254cd}
.saved-empty{margin-top:18px}.small-primary{display:inline-flex;margin-top:14px;padding:12px 16px;border-radius:12px;color:#fff!important}

.compare-scroll{overflow-x:auto;padding:3px 2px 25px;margin-bottom:32px}
.compare-table{display:grid;grid-template-columns:repeat(var(--compare-cols),minmax(270px,1fr));gap:12px;min-width:calc(var(--compare-cols) * 270px)}
.compare-course{position:relative;background:#fff;border:1px solid #dedfe6;border-radius:22px;padding:15px;min-width:0;box-shadow:0 10px 28px rgba(22,23,30,.03)}
.compare-remove{position:absolute;right:12px;top:12px;z-index:5;width:31px;height:31px;border-radius:10px;border:1px solid rgba(255,255,255,.75);background:rgba(255,255,255,.88);font-size:18px;color:#626670;cursor:pointer}.compare-remove:hover{background:#fff;color:#111217}
.compare-cover{height:126px;border-radius:16px;display:block;position:relative;overflow:hidden;background:linear-gradient(135deg,hsl(calc(228 + var(--v)*15),58%,87%),hsl(calc(296 + var(--v)*12),68%,95%));margin-bottom:15px}
.compare-cover:before{content:"";position:absolute;right:-28px;top:-34px;width:108px;height:108px;border-radius:50%;border:25px solid rgba(255,255,255,.55)}
.compare-cover span{position:absolute;left:25px;bottom:23px;width:75px;height:35px;border-radius:22px;background:rgba(111,98,235,.10);transform:rotate(-14deg)}
.compare-course h2{font-size:18px;line-height:1.25;margin:0 0 13px;letter-spacing:-.025em}.compare-course h2 a:hover{text-decoration:underline}
.compare-row{border-top:1px solid #ececf1;padding:11px 0}.compare-row>span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#989ba5;font-weight:850;margin-bottom:5px}.compare-row b{font-size:12px;line-height:1.4}.compare-row p{font-size:12px;line-height:1.55;color:#5f636e;margin:0}.compare-row ul{margin:5px 0 0;padding-left:17px;font-size:11px;color:#5b606a}.compare-row li+li{margin-top:5px}
.compare-tags{display:flex;gap:5px;flex-wrap:wrap}.compare-tags a{padding:5px 7px;border-radius:999px;background:#f2f0ff;color:#6558cb;font-size:9px;font-weight:750}
.compare-actions{display:grid;gap:7px;margin-top:14px}.compare-actions>a{height:39px;border-radius:11px;border:1px solid #e0e1e7;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:850}.compare-actions .primary{border:0;color:#fff;background:#111217;padding:0 10px;box-shadow:none}

@media(max-width:1180px){.retention-tools{margin-left:0}.retention-tool{width:40px;height:40px}}
@media(max-width:1080px){.retention-tools{display:none}.card-tools{opacity:1;transform:none}.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .card-tool{width:36px;height:36px}.card-tools{right:10px;top:10px}
  .course-save-actions{width:100%}.secondary-action{flex:1;justify-content:center}
  .recent-grid{grid-template-columns:1fr 1fr}
  .compare-dock{left:14px;right:14px;transform:none;min-width:0;bottom:14px}.compare-dock>a{padding:0 11px}
  .retention-toast{right:14px;left:14px;bottom:78px;max-width:none;text-align:center}
}
@media(max-width:480px){.recent-grid{grid-template-columns:1fr}.compare-dock>div small{display:none}.compare-dock{gap:8px;padding-left:10px}.compare-dock>a{font-size:10px}.secondary-action{font-size:11px}}


/* =========================================================
   v1.4 — desktop header fit + analytics-ready polish
   ========================================================= */
@media(min-width:1081px){
  .topin{
    height:78px;
    gap:20px;
    flex-wrap:nowrap;
  }
  .brand-v8{
    flex:0 0 auto;
    white-space:nowrap;
    gap:10px;
    font-size:21px;
  }
  .brand-v8 img{width:40px;height:40px}
  .top .desktop-nav{
    flex:1 1 auto;
    min-width:0;
    margin:0!important;
    gap:16px!important;
    justify-content:center;
    align-items:center;
  }
  .top .desktop-nav a{
    flex:0 0 auto;
    white-space:nowrap;
    font-size:13px;
    font-weight:650;
  }
  .desktop-search{
    flex:0 1 326px;
    width:326px;
    min-width:260px!important;
    max-width:326px;
    margin-left:auto;
  }
  .search-v8 input{height:44px}
  .search-v8 button{height:44px;padding:0 18px}
  .retention-tools{flex:0 0 auto}
  .retention-tool{width:40px;height:40px}
}
@media(min-width:1081px) and (max-width:1230px){
  .top .desktop-nav{gap:13px!important}
  .top .desktop-nav a{font-size:12px}
  .top .desktop-nav .nav-optional{display:none}
  .desktop-search{flex-basis:292px;width:292px;max-width:292px}
}

/* =========================================================
   v1.5 — richer internal linking / authors / alternatives
   ========================================================= */
.category-authors .sectionhead p,.topic-insights-v15 p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.55;max-width:650px}
.author-rank-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.author-rank-card{min-height:92px;padding:14px;border:1px solid #e1e2e8;border-radius:16px;background:#fff;display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:10px;transition:.18s;position:relative;overflow:hidden}
.author-rank-card:before{content:"";position:absolute;right:-24px;top:-24px;width:80px;height:80px;border-radius:50%;background:linear-gradient(145deg,#f4f1ff,#fafaff);pointer-events:none}
.author-rank-card:hover{transform:translateY(-2px);border-color:#d5cff7;box-shadow:0 12px 28px rgba(25,24,38,.05)}
.author-rank-num{font-size:9px;font-weight:900;color:#8a7df1;letter-spacing:.08em;align-self:start;margin-top:2px}
.author-rank-avatar{width:36px;height:36px;border-radius:12px;background:#f1efff;color:#6759d2;display:grid;place-items:center;font-size:14px;font-weight:900}
.author-rank-copy{display:grid;gap:4px;min-width:0}.author-rank-copy b{font-size:12px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.author-rank-copy small{font-size:10px;color:var(--muted)}
.author-rank-card i{font-style:normal;color:#7266d7;position:relative;z-index:1}

.topic-insights-v15{align-items:start}.topic-related-panel,.topic-author-panel{min-width:0}
.related-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:15px}
.related-topic-card{padding:11px;border:1px solid #e2e3e9;border-radius:14px;background:#fff;display:grid;grid-template-columns:34px 1fr auto;gap:9px;align-items:center;transition:.18s}
.related-topic-card:hover{border-color:#d4cef7;background:#fcfbff;transform:translateY(-1px)}
.related-topic-icon{width:34px;height:34px;border-radius:11px;background:#f2f0ff;color:#6c5fd6;display:grid;place-items:center}.related-topic-icon .ui-icon{width:17px;height:17px}
.related-topic-card>span:nth-child(2){display:grid;gap:2px;min-width:0}.related-topic-card b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.related-topic-card small{font-size:9px;color:var(--muted)}.related-topic-card i{font-style:normal;color:#7669df}

.alternatives-section{margin-top:36px;padding:22px;border:1px solid #dfdfee;border-radius:24px;background:linear-gradient(135deg,#fff 0%,#fbfaff 60%,#f5f2ff 100%)}
.alternatives-head{display:flex;gap:20px;align-items:flex-end;justify-content:space-between;margin-bottom:16px}.alternatives-head h2{font-size:26px;margin:4px 0 0}.alternatives-head p{margin:7px 0 0;max-width:650px;color:var(--muted);font-size:12px;line-height:1.55}
.compare-hint{height:38px;padding:0 12px;border:1px solid #dedaf7;border-radius:11px;background:#fff;color:#6255cc;font-size:10px;font-weight:850;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.compare-hint .ui-icon{width:14px;height:14px}
.alternative-list{display:grid;gap:8px}.alternative-card{display:grid;grid-template-columns:36px 1fr auto;gap:12px;align-items:center;padding:14px 15px;border:1px solid #e2e2eb;border-radius:16px;background:rgba(255,255,255,.9);transition:.18s}
.alternative-card:hover{border-color:#d2ccf4;box-shadow:0 10px 24px rgba(34,31,57,.04);transform:translateY(-1px)}
.alternative-num{width:30px;height:30px;border-radius:10px;background:#f0edff;color:#6658cd;display:grid;place-items:center;font-size:9px;font-weight:900}
.alternative-main{min-width:0}.alternative-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:3px}.alternative-meta a,.alternative-meta span{font-size:9px;color:#7a6de1}.alternative-meta span{color:#9a9da7}.alternative-main h3{font-size:15px;line-height:1.3;margin:0 0 5px}.alternative-main h3 a:hover{text-decoration:underline}.alternative-main p{margin:0;color:#727681;font-size:10px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.alternative-score{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:235px}.alternative-score>span{padding:5px 7px;border-radius:999px;background:#f7f7fa;color:#8a8d96;font-size:8px;font-weight:800}.alt-compare{height:32px;padding:0 9px;border:1px solid #ddd9f8;border-radius:9px;background:#fff;color:#6456cb;font-size:9px;font-weight:850;display:inline-flex;align-items:center;gap:5px;cursor:pointer}.alt-compare .ui-icon{width:13px;height:13px}.alt-compare:hover,.alt-compare.is-active{background:#7162eb;color:#fff;border-color:#7162eb}

@media(max-width:1080px){.author-rank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.alternatives-head{align-items:flex-start}.alternative-card{grid-template-columns:32px 1fr}.alternative-score{grid-column:2;justify-content:flex-start;max-width:none}}
@media(max-width:760px){.author-rank-grid{grid-template-columns:1fr}.topic-insights-v15{display:block}.topic-author-panel{margin-top:24px}.related-topic-grid{grid-template-columns:1fr}.alternatives-section{padding:16px;border-radius:19px}.alternatives-head{display:block}.compare-hint{margin-top:12px}.alternatives-head h2{font-size:22px}.alternative-card{padding:12px}.alternative-main h3{font-size:14px}}

/* KursList v1.6 — quick course finder + numbered pagination */
.finder-promo{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;margin:26px 0 54px;padding:22px 24px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,#fff 0%,#f7f5ff 100%);box-shadow:0 14px 34px rgba(17,18,23,.05)}
.finder-promo-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:#111217;color:#fff}.finder-promo-icon .ui-icon{width:26px;height:26px}.finder-promo-copy h2{margin:2px 0 5px;font-size:24px}.finder-promo-copy p{margin:0;color:var(--muted);max-width:720px}.finder-promo-action{display:inline-flex;align-items:center;gap:12px;padding:13px 17px;border-radius:13px;background:#6f58f6;color:#fff;font-weight:800;white-space:nowrap}.finder-promo-action:hover{transform:translateY(-1px)}
.finder-head{max-width:820px;margin:50px 0 28px}.finder-head h1{font-size:clamp(38px,5vw,66px);line-height:.98;margin:10px 0 18px;letter-spacing:-.045em}.finder-head p{font-size:18px;color:var(--muted);max-width:720px}
.course-finder{display:grid;gap:18px;margin-bottom:44px}.finder-step{display:grid;grid-template-columns:54px 1fr;gap:18px;padding:24px;border:1px solid var(--line);border-radius:22px;background:#fff}.finder-step-num{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#111217;color:#fff;font-weight:900}.finder-step-title{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px}.finder-step-title h2{margin:0;font-size:24px}.finder-step-title span{color:var(--muted);font-size:13px}
.finder-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.finder-choice{position:relative;display:grid;grid-template-columns:38px 1fr;grid-template-areas:'icon title' 'icon meta';gap:2px 10px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:15px;cursor:pointer;background:#fbfbfd;transition:.18s ease}.finder-choice:hover,.finder-choice.active{border-color:#9b8df8;background:#f6f3ff;box-shadow:0 7px 18px rgba(111,88,246,.08)}.finder-choice input,.finder-topic-choice input,.finder-sort-choice input{position:absolute;opacity:0;pointer-events:none}.finder-choice-icon{grid-area:icon;width:38px;height:38px;border-radius:11px;background:#ede9ff;color:#6852ef;display:grid;place-items:center}.finder-choice-icon .ui-icon{width:20px;height:20px}.finder-choice b{grid-area:title;font-size:14px}.finder-choice small{grid-area:meta;color:var(--muted);font-size:11px}
.finder-topic-grid{display:flex;flex-wrap:wrap;gap:9px}.finder-topic-choice{position:relative;display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:999px;background:#fbfbfd;cursor:pointer}.finder-topic-choice span{font-weight:750}.finder-topic-choice small{color:var(--muted)}.finder-topic-choice.active{background:#111217;color:#fff;border-color:#111217}.finder-topic-choice.active small{color:#d8d9df}
.finder-sort-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.finder-sort-choice{position:relative;display:grid;gap:6px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fbfbfd;cursor:pointer}.finder-sort-choice b{font-size:15px}.finder-sort-choice span{font-size:12px;color:var(--muted);line-height:1.45}.finder-sort-choice.active{border-color:#7763f4;background:#f5f2ff;box-shadow:inset 0 0 0 1px #7763f4}.finder-submit{margin-top:16px;border:0;border-radius:14px;background:#111217;color:#fff;padding:14px 18px;font-weight:850;display:inline-flex;align-items:center;gap:14px;cursor:pointer}.finder-results{margin:40px 0 60px}.finder-results .sectionhead p{margin:6px 0 0;color:var(--muted);max-width:720px}

.pager-v16{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;margin:42px 0 18px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(17,18,23,.035)}.pager-v16 a{background:#f7f7fa!important;border:1px solid transparent!important;padding:9px 12px!important;border-radius:10px!important;text-decoration:none}.pager-v16 .pager-arrow{font-weight:800}.pager-v16 .pager-arrow.disabled{opacity:.35;pointer-events:none}.pager-pages{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.pager-pages a{min-width:38px;text-align:center}.pager-pages a.current{background:#111217!important;color:#fff!important}.pager-dots{display:grid;place-items:center;min-width:28px;color:var(--muted)}.pager-label{font-size:12px;color:var(--muted);white-space:nowrap}

@media(max-width:1050px){.finder-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.finder-promo{grid-template-columns:auto 1fr}.finder-promo-action{grid-column:1/-1;justify-content:center}.finder-step{grid-template-columns:1fr;padding:18px}.finder-step-num{width:34px;height:34px}.finder-step-title{align-items:flex-start;flex-direction:column;gap:4px}.finder-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finder-sort-grid{grid-template-columns:1fr}.pager-v16{grid-template-columns:1fr 1fr}.pager-pages{grid-column:1/-1;grid-row:1}.pager-label{display:none}.pager-v16 .pager-arrow:last-child{text-align:right}.pager-v16 .pager-arrow span{display:none}}
@media(max-width:480px){.finder-category-grid{grid-template-columns:1fr}.finder-head{margin-top:30px}.finder-head h1{font-size:40px}.finder-topic-choice{width:100%;justify-content:space-between}}

/* =========================================================
   v1.7 — autonomous system dashboard / health monitoring
   ========================================================= */
.admin-head-v17{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:46px 0 22px}.admin-head-v17 h1{font-size:clamp(38px,5vw,62px);line-height:1;margin:7px 0 10px;letter-spacing:-.045em}.admin-head-v17 p{margin:0;color:var(--muted);max-width:760px}.admin-head-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-head-actions a{height:40px;padding:0 13px;border:1px solid var(--line);border-radius:11px;background:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:800}.admin-head-actions a:hover{border-color:#d2cdf4;background:#faf9ff}
.admin-login-v17{max-width:540px;margin:90px auto;padding:34px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 20px 50px rgba(18,18,30,.06)}.admin-login-v17 h1{font-size:36px;margin:8px 0}.admin-login-v17 p{color:var(--muted);line-height:1.6}.admin-login-v17 form{display:flex;gap:9px;margin-top:20px}.admin-login-v17 input{flex:1;height:46px;border:1px solid var(--line);border-radius:12px;padding:0 14px;background:#fbfbfd}.admin-login-v17 button{height:46px;border:0;border-radius:12px;background:#111217;color:#fff;padding:0 18px;font-weight:850}.admin-warning-text{padding:12px 14px;border-radius:12px;background:#fff4e8;color:#8d5319}
.health-hero-v17{position:relative;overflow:hidden;display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center;padding:24px 26px;border:1px solid var(--line);border-radius:22px;background:#fff;margin-bottom:14px}.health-hero-v17:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#30a46c}.health-hero-v17.health-stale:before,.health-hero-v17.health-error:before{background:#df7d31}.health-hero-v17.health-never:before{background:#8e93a1}.health-hero-v17.health-running:before{background:#7662ed}.health-light{position:absolute;right:-80px;top:-110px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(112,91,244,.12),rgba(112,91,244,0) 70%);pointer-events:none}.health-kicker{display:inline-flex;margin-bottom:5px;color:#6f60df;font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.health-hero-v17 h2{font-size:27px;margin:0 0 7px}.health-hero-v17 p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.health-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:relative;z-index:1}.health-times span{padding:12px;border:1px solid #e5e5ec;border-radius:14px;background:rgba(255,255,255,.8);display:grid;gap:5px}.health-times small{color:var(--muted);font-size:9px}.health-times b{font-size:11px}.admin-alert-v17{padding:13px 15px;border:1px solid #f1c8a7;border-radius:13px;background:#fff7ef;color:#8d4d19;font-size:11px;margin-bottom:14px}
.adminstats-v17{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:14px 0}.adminstats-v17>div{min-height:112px;padding:15px;border:1px solid var(--line);border-radius:16px;background:#fff;display:flex;flex-direction:column;justify-content:flex-end;gap:3px}.adminstats-v17 span{font-size:10px;color:var(--muted);order:-2}.adminstats-v17 b{font-size:27px;line-height:1.05;letter-spacing:-.04em}.adminstats-v17 small{font-size:9px;color:#8c8f99}.adminstats-v17 .has-warning{border-color:#efc29f;background:#fffaf5}.adminstats-v17 .has-warning b{color:#b46524}
.admin-progress-v17{padding:20px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,#fff,#faf9ff);margin:14px 0}.admin-progress-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.admin-progress-title h2{font-size:20px;margin:3px 0 0}.admin-progress-title>b{font-size:24px}.admin-progress-track{height:10px;border-radius:999px;background:#ececf1;overflow:hidden;margin:16px 0 9px}.admin-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#15161b,#7460ee)}.admin-progress-meta{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:9px}
.admin-columns-v17{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.admin-panel-v17{margin:14px 0;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff}.admin-columns-v17 .admin-panel-v17{margin:0}.admin-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:15px}.admin-panel-head h2{font-size:20px;margin:3px 0 0}.today-grid-v17{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.today-grid-v17>div{padding:13px;border-radius:13px;background:#f7f7fa;display:grid;gap:4px}.today-grid-v17 b{font-size:21px}.today-grid-v17 span{font-size:9px;color:var(--muted)}.config-list-v17{margin:0;display:grid;gap:0}.config-list-v17>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #efeff3}.config-list-v17>div:last-child{border-bottom:0}.config-list-v17 dt{font-size:10px;color:var(--muted)}.config-list-v17 dd{margin:0;font-size:10px;font-weight:800;text-align:right}.admin-mini-badges{display:flex;gap:6px;flex-wrap:wrap}.admin-mini-badges span{padding:6px 8px;border-radius:999px;background:#f3f1ff;color:#6658cb;font-size:8px;font-weight:850}.admin-empty-v17{padding:16px;border-radius:13px;background:#f7faf8;color:#49725e;font-size:11px}.table-scroll-v17{overflow:auto}.admin-table-v17{width:100%;border-collapse:collapse;min-width:720px}.admin-table-v17 th{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);color:#9699a2;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.admin-table-v17 td{padding:10px;border-bottom:1px solid #efeff3;font-size:9px;line-height:1.45;vertical-align:top}.admin-table-v17 td b{display:block;font-size:10px;margin-bottom:2px}.admin-table-v17 td small{color:var(--muted)}.log-grid-v17{display:grid;grid-template-columns:1fr 1fr;gap:10px}.log-grid-v17>div{min-width:0}.log-grid-v17 h3{font-size:11px;margin:0 0 7px}.log-grid-v17 pre{min-height:170px;max-height:320px;overflow:auto;margin:0;padding:13px;border-radius:13px;background:#111217;color:#dcdde3;font:9px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word}.admin-note-v17{margin:10px 0 0;color:var(--muted);font-size:9px}
@media(max-width:1180px){.adminstats-v17{grid-template-columns:repeat(3,minmax(0,1fr))}.health-hero-v17{grid-template-columns:1fr}.health-times{max-width:700px}}
@media(max-width:760px){.admin-head-v17{align-items:flex-start;flex-direction:column}.admin-head-v17 h1{font-size:40px}.adminstats-v17{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-columns-v17{grid-template-columns:1fr}.today-grid-v17{grid-template-columns:repeat(2,minmax(0,1fr))}.health-times{grid-template-columns:1fr}.log-grid-v17{grid-template-columns:1fr}.admin-progress-title{align-items:flex-start;flex-direction:column;gap:6px}.admin-login-v17 form{display:grid}.admin-panel-v17{padding:15px}}

/* =========================================================
   v1.10 — catalog list/grid switcher
   ========================================================= */
.catalog-view-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin:0 0 14px;color:var(--muted);font-size:12px}
.catalog-view-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 7px 20px rgba(17,18,23,.025)}
.catalog-view-switch button{height:34px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:#717580;font:inherit;font-size:11px;font-weight:800;display:inline-flex;align-items:center;gap:6px;cursor:pointer;transition:.18s}
.catalog-view-switch button:hover{background:#f5f4fb;color:#4f46a8}
.catalog-view-switch button.active{background:#111217;color:#fff}
.catalog-view-switch svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

[data-catalog-view].catalog-view-list{display:flex!important;flex-direction:column;gap:12px}
[data-catalog-view].catalog-view-list>.card,
.popular-grid.catalog-view-list .popular-ranked>.card{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:188px;border-radius:18px;transform:none}
[data-catalog-view].catalog-view-list>.card:hover,
.popular-grid.catalog-view-list .popular-ranked>.card:hover{transform:translateY(-2px)}
[data-catalog-view].catalog-view-list .cover-wrap,
.popular-grid.catalog-view-list .cover-wrap{height:100%;min-height:188px}
[data-catalog-view].catalog-view-list .cover,
.popular-grid.catalog-view-list .cover{height:100%;min-height:188px;padding:15px}
[data-catalog-view].catalog-view-list .cardbody,
.popular-grid.catalog-view-list .cardbody{padding:18px 20px;min-width:0}
[data-catalog-view].catalog-view-list .card h3,
.popular-grid.catalog-view-list .card h3{font-size:19px;margin-bottom:6px}
[data-catalog-view].catalog-view-list .card p,
.popular-grid.catalog-view-list .card p{margin:9px 0 12px;-webkit-line-clamp:2}
[data-catalog-view].catalog-view-list .cardmore,
.popular-grid.catalog-view-list .cardmore{padding-top:10px}
[data-catalog-view].catalog-view-list .card-tools,
.popular-grid.catalog-view-list .card-tools{opacity:1;transform:none}

.popular-grid.catalog-view-list{grid-template-columns:1fr!important}
.popular-grid.catalog-view-list .popular-ranked{min-height:188px}
.popular-grid.catalog-view-list .popular-rank{top:12px;left:12px}

@media(max-width:720px){
  .catalog-view-toolbar{justify-content:space-between;margin-top:2px}
  .catalog-view-switch button span{display:none}
  .catalog-view-switch button{width:36px;padding:0;justify-content:center}
  [data-catalog-view].catalog-view-list>.card,
  .popular-grid.catalog-view-list .popular-ranked>.card{grid-template-columns:118px minmax(0,1fr);min-height:160px}
  [data-catalog-view].catalog-view-list .cover-wrap,
  .popular-grid.catalog-view-list .cover-wrap,
  [data-catalog-view].catalog-view-list .cover,
  .popular-grid.catalog-view-list .cover{min-height:160px}
  [data-catalog-view].catalog-view-list .cardbody,
  .popular-grid.catalog-view-list .cardbody{padding:14px 14px 13px}
  [data-catalog-view].catalog-view-list .meta,
  .popular-grid.catalog-view-list .meta{margin-bottom:7px;gap:5px;flex-wrap:wrap}
  [data-catalog-view].catalog-view-list .card h3,
  .popular-grid.catalog-view-list .card h3{font-size:15px;line-height:1.25}
  [data-catalog-view].catalog-view-list .author,
  .popular-grid.catalog-view-list .author{font-size:12px}
  [data-catalog-view].catalog-view-list .card p,
  .popular-grid.catalog-view-list .card p{display:none}
  [data-catalog-view].catalog-view-list .cardmore,
  .popular-grid.catalog-view-list .cardmore{font-size:11px}
  [data-catalog-view].catalog-view-list .card-tools,
  .popular-grid.catalog-view-list .card-tools{right:7px;top:7px;gap:4px}
  [data-catalog-view].catalog-view-list .card-tool,
  .popular-grid.catalog-view-list .card-tool{width:31px;height:31px;border-radius:9px}
}

@media(max-width:430px){
  [data-catalog-view].catalog-view-list>.card,
  .popular-grid.catalog-view-list .popular-ranked>.card{grid-template-columns:96px minmax(0,1fr)}
  [data-catalog-view].catalog-view-list .cover-wrap,
  .popular-grid.catalog-view-list .cover-wrap,
  [data-catalog-view].catalog-view-list .cover,
  .popular-grid.catalog-view-list .cover{min-height:148px}
}
