/* hub pages — same design system as the exam (themes from exam.css) */
body{min-height:100vh;}
.hub{max-width:860px; margin:0 auto; padding:66px 14px 40px;}
.hub-hero{background:var(--card); border-radius:18px; padding:26px 20px 20px; text-align:center; box-shadow:0 10px 40px rgba(15,31,61,.14); position:relative; overflow:hidden;}
.hub-hero::before{content:""; position:absolute; inset:0 0 auto 0; height:6px; background:var(--bg1, linear-gradient(90deg,#f5a623,#e0508a,#8a5cf6,#17a2b8));}
.hub-hero .cover-logo{width:110px; height:110px;}
.kicker{font-size:12px; font-weight:800; letter-spacing:.6px; color:var(--accent); margin-top:6px;}
.hub-hero h1{font-size:23px; color:var(--navy); margin:8px 0 4px; line-height:1.5;}
.hub-hero h1 .hl{background:linear-gradient(90deg,#f5a623,#e0508a); -webkit-background-clip:text; background-clip:text; color:transparent;}
.hub-hero h1 .jp{font-size:16px; color:var(--muted); font-weight:700;}
.bookbadge{display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:11px; color:#fff; font-weight:900; font-size:22px; vertical-align:middle; box-shadow:0 4px 12px rgba(0,0,0,.2);}
.tag{color:var(--accent); font-weight:700; font-size:14px; margin:4px 0 6px;}
.prog{height:8px; background:var(--soft); border-radius:8px; overflow:hidden; margin:12px auto 0; max-width:420px; border:1px solid var(--line);}
.prog-fill{height:100%; width:0; border-radius:8px; transition:width 1s cubic-bezier(.22,.9,.32,1);}
.share{display:flex; gap:8px; margin:16px auto 0; max-width:560px;}
.share input{flex:1; min-width:0; font-size:12.5px; padding:9px 10px; border-radius:9px; border:1px solid var(--line); background:var(--soft); color:var(--ink);}
.share button{background:var(--navy); color:#fff; font-size:13px; padding:9px 12px; white-space:nowrap;}
[data-theme="dark"] .share button{background:#3557b7;}

/* lesson grid */
.lgrid{display:grid; grid-template-columns:1fr; gap:10px; margin-top:18px;}
@media(min-width:640px){ .lgrid{grid-template-columns:1fr 1fr;} }
.lcard{display:flex; align-items:center; gap:12px; background:var(--card); border:1.5px solid var(--line); border-left:6px solid var(--bc); border-radius:14px; padding:12px 12px 12px 12px; text-decoration:none; color:var(--ink); box-shadow:0 3px 12px rgba(15,31,61,.06); transition:transform .15s, box-shadow .15s;}
.lcard:hover{transform:translateY(-2px); box-shadow:0 8px 22px rgba(15,31,61,.12);}
.lcard:active{transform:scale(.98);}
.lnum{flex-shrink:0; width:50px; height:50px; border-radius:13px; background:var(--bs); color:#2a1d00; border:2.5px solid var(--bc); display:flex; align-items:center; justify-content:center; font-size:21px; font-weight:900;}
.lcard.done .lnum{background:var(--bc); color:#fff;}
.lbody{flex:1; min-width:0;}
.ltitle{font-weight:800; font-size:16px; color:var(--navy);}
.lkadai{font-size:12.5px; color:var(--muted); font-weight:700; margin-left:4px;}
.lsub{font-size:12px; color:var(--muted); margin-top:2px; line-height:1.9;}
.lmeta{font-size:12.5px; color:var(--muted); margin-top:3px; font-weight:600;}
.lbest{display:inline-block; margin-left:6px; font-weight:800; color:var(--green);}
.lcopy{flex-shrink:0; background:var(--soft); border:1px solid var(--line); width:40px; height:40px; padding:0; border-radius:10px; font-size:17px;}
.hub-foot{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:22px 0 6px;}
.hbtn{display:inline-block; text-align:center; text-decoration:none; background:var(--navy); color:#fff; border-radius:10px; padding:11px 16px; font-weight:800; font-size:14px; border:0; cursor:pointer; font-family:inherit;}
.hbtn.sec{background:#e2e6f0; color:var(--navy);}
[data-theme="dark"] .hbtn.sec{background:#2f3b5c; color:#e8ecf6;}

/* book cards */
.bgrid{display:grid; grid-template-columns:1fr; gap:14px; margin-top:18px;}
@media(min-width:760px){ .bgrid{grid-template-columns:1fr 1fr 1fr;} }
.bcard{display:flex; flex-direction:column; background:var(--card); border-radius:18px; overflow:hidden; text-decoration:none; color:var(--ink); box-shadow:0 8px 26px rgba(15,31,61,.12); transition:transform .15s;}
.bcard:hover{transform:translateY(-3px);}
.bband{display:flex; align-items:flex-end; justify-content:space-between; padding:16px 18px; color:#fff; min-height:92px;}
.bkey{font-size:54px; font-weight:900; line-height:1; text-shadow:0 3px 12px rgba(0,0,0,.2);}
.bstep{font-size:12px; font-weight:800; background:rgba(255,255,255,.25); padding:3px 10px; border-radius:20px;}
.bbody{padding:14px 16px 16px;}
.btitle{font-size:18px; font-weight:800; color:var(--navy);}
.btitle .jp{font-size:13.5px; color:var(--muted);}
.ben{font-size:12px; color:var(--muted); margin-top:2px;}
.bbody .prog{margin:10px 0 0; max-width:none;}
.bdone{font-size:12px; color:var(--green); font-weight:800; margin-top:6px;}
.bacts{display:flex; gap:8px; margin-top:12px;}
.bacts .hbtn{flex:1; padding:10px 8px; font-size:13px;}
.howto{background:var(--card); border-radius:16px; padding:14px 18px; margin-top:18px; box-shadow:0 4px 16px rgba(15,31,61,.08); font-size:14px; line-height:1.8;}
.howto h3{margin:0 0 4px; color:var(--navy); font-size:16px;}
.howto ol{margin:0; padding-left:20px;}
.toast{position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(30px); background:#1a1a2e; color:#fff; padding:10px 18px; border-radius:24px; font-size:14px; font-weight:700; opacity:0; transition:all .25s; z-index:100000; pointer-events:none; max-width:90vw; text-align:center;}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}
[data-theme="color"] .hub-hero, [data-theme="color"] .lcard, [data-theme="color"] .bcard, [data-theme="color"] .howto{border-color:#ffd2a6;}
[data-theme="dark"] .lnum{color:#1a1a2e;}
.lcard{position:relative;}
.lcard a.stretch{color:inherit; text-decoration:none;}
.lcard a.stretch::after{content:""; position:absolute; inset:0; border-radius:14px; z-index:1;}
.lcard .lcopy{position:relative; z-index:2;}
