/* v7.1 readability: larger index text (desktop + phone), larger course text and 44px tap targets on phones */
.nums4 span{font-size:.85rem!important}
.sc .mt,p.mt{font-size:.92rem!important;line-height:1.55}
.c-span,.c-span span{font-size:.9rem!important}
.fig-n span{font-size:.85rem!important}
header.bar nav .ul,header.bar nav a,header.bar .rank,header.bar .v4-s-btn{font-size:.875rem!important}
.hero4 p.mono,.hero p.mono{font-size:.875rem!important}
.n,span.st,.coord span,.c-sub span,.c-meta span,.gn,.ok{font-size:.85rem!important}
.ers a{font-size:1rem!important;line-height:1.5}
.pledge{font-size:1rem!important}
.gate p{font-size:1.02rem!important}
p.st,.sc p.st{font-size:1.0625rem!important;line-height:1.55}
.g-ppl,.qq{font-size:1rem!important}
.c-go,.c-go span{font-size:1rem!important}
.glance-ix a{font-size:1.02rem}
@media (max-width:640px){
 .course-page .bp,.course-page .paras p,.course-page .lb p,.course-page .key p,.course-page .story p,.course-page .next,.course-page .thread{font-size:18px!important;line-height:1.65}
 .course-page .era-hook{font-size:1.2rem!important}
 .course-page .bh{font-size:1.15rem!important}
 .course-page .gl dd{font-size:17px!important}.course-page .gl dt{font-size:1.05rem!important}
 .course-page .rl{font-size:15.5px!important}
 .course-page .bi,.course-page .era-meta span,.course-page .label,.course-page p.mono,.course-page .begin,.course-page .yr,.course-page .k,.course-page figcaption,.course-page figcaption a,.course-page .note{font-size:13.5px!important}
 .course-page .choices button,.course-page .mc button{font-size:17px!important;min-height:44px}
 .glance-ix a,.toc li a,#toclist a{display:flex!important;align-items:center;min-height:44px;font-size:17px!important}
 .course-page details.layer>summary{min-height:44px;align-items:center}.course-page .lt{font-size:17px!important}
 .course-page .who{min-height:44px}
 .course-page .layer-tools button,.course-page .links a{display:inline-flex;align-items:center;min-height:44px}
 .ers a{min-height:44px;display:flex;align-items:center}
 .v4-fc .d{font-size:1.2rem!important}
}
/* phone dropdown bar */
.mbar{display:none}
@media (max-width:640px){
 html.has-mbar header.bar,html.has-mbar body>nav.top{display:none!important}
 .mbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.6rem;position:fixed;inset:0 0 auto;z-index:60;padding:.25rem .6rem;background:#0d0e0f;border-bottom:1px solid var(--rule,#1c1e20);min-height:52px}
 .mb-t{font-size:14px;color:var(--fg-2,#bbb);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mb-l,.mb-r{position:relative}
 .mb-btn{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:.4rem;min-height:44px;min-width:44px;padding:0 .7rem;font-size:15px;color:var(--fg,#eee);border:1px solid var(--rule-2,#2a2c2e);border-radius:2px}
 .mb-btn i{font-style:normal;font-size:11px;color:var(--fg-3,#888);transition:transform .2s}
 .mb-btn[aria-expanded=true]{border-color:var(--tq,#14a7a0)}.mb-btn[aria-expanded=true] i{transform:rotate(180deg)}
 .mb-btn:focus-visible,.mb-pop a:focus-visible,.mb-pop button:focus-visible{outline:1px solid var(--tq,#14a7a0);outline-offset:2px}
 .mb-pop{position:absolute;top:calc(100% + 6px);min-width:12.5rem;max-height:70vh;overflow:auto;list-style:none;margin:0;padding:.3rem 0;background:#101213;border:1px solid var(--rule-2,#2a2c2e);box-shadow:0 18px 40px -12px rgba(0,0,0,.7)}
 .mb-l .mb-pop{left:0}.mb-r .mb-pop{right:0}
 .mb-pop a,.mb-pop button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;width:100%;min-height:46px;padding:0 1rem;font-size:16px;color:var(--fg,#eee)}
 .mb-pop li+li{border-top:1px solid var(--rule,#1c1e20)}
 .mb-pop a:active,.mb-pop button:active{background:rgba(20,167,160,.08)}
}
/* v7.1 home atmosphere */
.field .atmos{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;image-rendering:auto;filter:blur(10px);transform:scale(1.06)}
.field .atmos-grain{position:absolute;inset:0;pointer-events:none;opacity:.055;mix-blend-mode:overlay}
@media (prefers-reduced-motion:reduce){.field .atmos-grain{opacity:.04}}
.field .atmos-m{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:blur(.6px)}

/* v8.1 phone bar lockup */
@media (max-width:760px){.mb-logo{display:flex;justify-content:center;align-items:center;min-height:44px;text-decoration:none;color:#f2efe8}.mb-logo .wm5{width:min(128px,38vw);margin:0}}
.course-page .era-title{scroll-margin-top:calc(var(--barh,3rem) + 12px)}
/* v8.1 one-scroll rule: contents collapse to one line between hero and first chapter */
.course-page details.glance{padding-top:.4rem!important;padding-bottom:.4rem!important;min-height:0!important;margin:0!important}
.course-page details.glance>summary{cursor:pointer;list-style:none;padding:.5rem 0;min-height:44px;display:flex;align-items:center;gap:.5rem}
.course-page details.glance>summary::after{content:"▾";opacity:.6}
.course-page details.glance[open]>summary::after{content:"▴"}
.guide-page .g-tiers{margin-top:.2rem!important;margin-bottom:.3rem!important}.guide-page .g-prog{margin-top:.1rem!important;margin-bottom:.2rem!important}.guide-page .sheet.era{padding-top:1rem!important}.course-page .sheet.era{scroll-margin-top:0}
/* v8.1 phone remaster (<=640px) */
@media (max-width:640px){
 .mbar{padding-top:calc(.25rem + env(safe-area-inset-top));padding-left:calc(.6rem + env(safe-area-inset-left));padding-right:calc(.6rem + env(safe-area-inset-right));min-height:calc(52px + env(safe-area-inset-top))}
 footer,.foot{padding-bottom:calc(1.2rem + env(safe-area-inset-bottom))}
 .hero4{padding-top:1.2rem!important;padding-bottom:1.2rem!important}
 .tex-still{background-color:#0d0e0f}
}

/* v8.1 phone accordions */
:root{interpolate-size:allow-keywords}
details.glance::details-content{block-size:0;overflow:hidden;transition:block-size .32s cubic-bezier(.3,.7,.2,1),content-visibility .32s allow-discrete}
details.glance[open]::details-content{block-size:auto}
@media (prefers-reduced-motion:reduce){details.glance::details-content{transition:none}}
@media (max-width:640px){
 .acc-row{display:flex;width:100%;justify-content:space-between;align-items:center;min-height:48px;padding:0 .2rem;background:none;border:0;border-top:1px solid var(--rule,#1c1e20);border-bottom:1px solid var(--rule,#1c1e20);color:var(--fg-2,#bbb);font-size:14px}
 .acc-row i{transition:transform .3s;font-style:normal}.acc.open .acc-row i{transform:rotate(180deg)}
 .acc-body{overflow:hidden}
 .acc.open .acc-body{grid-template-rows:1fr}
 .course-page details.glance>summary{font-size:14px;border-top:1px solid var(--rule,#1c1e20);border-bottom:1px solid var(--rule,#1c1e20);justify-content:space-between}
}
/* v8.1 phone: no sideways overflow, 13px floor for small print, comfortable tap targets */
@media (max-width:640px){
 html,body{overflow-x:clip}
 .field .atmos,.field .atmos-m{width:100%!important;height:100%!important;left:0;right:0}
 .mono.dim,.label,.meta,.note,small,.fig-n,.cap,.credit,.src{font-size:max(13px,1em)}
 main a.ul,.sc .meta a,.course .meta a,.credit a,.src a,figcaption a{display:inline-block;padding:.55rem .15rem;margin:-.55rem 0}
 .skip:focus{padding:.8rem 1rem}
 .ask4 input{min-height:44px;font-size:16px}.ask4 button{min-height:44px}
 .sc h3 a{display:flex;min-height:48px;align-items:center}
 .sig{max-width:100%}
}
/* v8.1 phone QA fixes (qa-phone-v8/ISSUES.md) */
@media (max-width:640px){
 body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 .v4-cap{bottom:calc(.8rem + env(safe-area-inset-bottom))!important;right:calc(.8rem + env(safe-area-inset-right))!important}
 .h-hero{font-size:clamp(28px,9vw,38px)!important;overflow-wrap:anywhere}
 .nums4{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:1.1rem;scrollbar-width:none;-webkit-overflow-scrolling:touch;mask-image:linear-gradient(90deg,#000 85%,transparent)}
 .nums4::-webkit-scrollbar{display:none}.nums4>*{flex:0 0 auto}
 .grainfix{mix-blend-mode:normal!important;opacity:.35}
 .sig-hero{max-height:140px!important}
 .era p,.paras p,.spine p,.course-page .lede,.about p,main.about p{font-size:16.5px;line-height:1.6}
 .mapwrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
 .era img,main figure img{background:#1a1c1e}
 button.ul,a.bmw,.gl input,#gq{min-height:44px;display:inline-flex;align-items:center}
 a.v4-xl{padding-block:.45rem;margin-block:-.45rem} /* f/tooltips: taller tap area without inline-flex, so names wrap, keep body size, and the underline hugs the word */
 .g-tiers{top:calc(52px + env(safe-area-inset-top))!important}
 .g-tiers button{min-height:44px!important;padding-top:.2rem!important;padding-bottom:.2rem!important}
 .acc2-row{display:flex;width:100%;justify-content:space-between;align-items:center;min-height:48px;margin:.4rem 0;padding:0 .2rem;background:none;border:0;border-top:1px solid var(--rule,#1c1e20);border-bottom:1px solid var(--rule,#1c1e20);color:var(--fg-2,#bbb);font:inherit;font-size:14px}
 .acc2-row i{font-style:normal;transition:transform .3s}.acc2-row[aria-expanded=true] i{transform:rotate(180deg)}
 .acc2-body{overflow:hidden}
 .acc2-body.open{grid-template-rows:1fr}
}
@media (max-width:640px) and (prefers-reduced-motion:reduce){.acc-body,.acc2-body{transition:none}}
@media (max-width:640px){
 .tips-panel{margin:.6rem 1rem 1rem;padding:.8rem;border:1px solid var(--rule,#1c1e20);border-radius:12px;background:#111314}
 .tips-panel .tp-h{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--fg-2,#bbb)}
 .tips-panel .tp-x{min-height:44px;min-width:44px;background:none;border:0;color:inherit;font:inherit}
 .v4-cap.inflow{position:static!important;inset:auto!important;flex-direction:column;align-items:flex-start;gap:.6rem}
 .v4-cap.inflow .v4-cap-f{position:static!important;max-width:none!important;width:100%}
 .v4-cap:not(.inflow){display:none!important}
 .mb-tips{display:flex;align-items:center;gap:.5rem}.cap-dot{width:14px;height:14px;border-radius:50%;background:var(--accent,#2bb6aa);box-shadow:0 0 0 2px #0d0e0f,0 0 0 3px var(--accent,#2bb6aa)}
 body{padding-bottom:env(safe-area-inset-bottom)}
}
@media (max-width:640px){
 .field .atmos{transform:none!important;filter:blur(6px)}
 .hero4{padding-top:calc(64px + env(safe-area-inset-top))!important}
 .course-page .sig-hero{display:none!important}
 .course-page .sheet.intro{padding-top:.6rem!important}
}
/* v8.1 phone QA round 2 */
@media (max-width:640px){
 #rail,.rail{display:none!important}
 .skip{min-height:44px;display:inline-flex;align-items:center}
 a.c-go{min-height:44px;display:inline-flex;align-items:center}
 .nums4 span,.nums4 b{font-size:max(13px,1em)}
 .course-page main :is(p,li,span,a,td,button,dd,dt,figcaption,small){font-size:max(13px,1em)}
 .course-page .era-meta,.course-page .mono{font-size:max(13px,.8rem)}
 .course-page .who,.course-page .who a{min-height:44px}
 .g-tiers{overflow-x:auto}.g-tiers button{flex:1 1 0;min-width:0}
 /* library: the decorative spine chart is not tappable at 2px; books are in the list below */
 #spines,#spineCap{display:none!important}
 body:has(#spines) main{padding-left:calc(1rem + env(safe-area-inset-left));padding-right:calc(1rem + env(safe-area-inset-right))}
 body:has(#spines) :is(.m,.a,span,a,li,p){font-size:max(13px,1em)}
 body:has(#spines) main a{min-height:44px;display:inline-flex;align-items:center}
 body:has(#spines) .t{font-size:17px}
 /* reader */
 .bar.top{padding-top:calc(.4rem + env(safe-area-inset-top))!important;padding-left:calc(.6rem + env(safe-area-inset-left));padding-right:calc(.6rem + env(safe-area-inset-right))}
 .bar.bottom{padding-bottom:calc(.4rem + env(safe-area-inset-bottom))!important;padding-left:calc(.6rem + env(safe-area-inset-left));padding-right:calc(.6rem + env(safe-area-inset-right))}
 .bar.top a,.bar.top button,.bar.bottom a,.bar.bottom button,.modes button,a.bmw{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;font-size:max(13px,1em)}
 .bar :is(span,i,b){font-size:max(13px,1em)}
 /* credits/about inline links */
 main :is(p,li) a{padding:.7rem 0;margin:-.7rem 0}
}

/* v8.1 phone-native course cards: thumbnail + text, ~150px each */
@media (max-width:640px){
 main section.course{display:grid!important;grid-template-columns:84px 1fr!important;grid-template-rows:auto!important;gap:.25rem .9rem!important;padding:1rem calc(1rem + env(safe-area-inset-right)) 1rem calc(1rem + env(safe-area-inset-left))!important;min-height:0!important;height:auto!important;align-items:start;border-top:1px solid var(--rule,#1c1e20);margin:0!important}
 main section.course .c-art{grid-column:1;grid-row:1/span 2;width:84px!important;height:84px!important;min-height:0!important;aspect-ratio:1;position:relative;border-radius:12px;overflow:hidden;margin:0!important}
 main section.course .c-art .tex{position:absolute;inset:0}
 main section.course .c-art .sig,main section.course .c-art .coord,main section.course .c-art .crop{display:none!important}
 main section.course .c-num{position:absolute;left:.45rem;bottom:.3rem;font-size:20px!important;line-height:1}
 main section.course .c-txt{grid-column:2;padding:0!important;margin:0!important;min-width:0}
 main section.course .c-sub,main section.course .c-hook{display:none!important}
 main section.course .c-title{font-size:21px!important;line-height:1.15;margin:0 0 .15rem!important}
 main section.course .c-subtitle{font-size:14.5px!important;margin:0 0 .3rem!important;color:var(--fg-2,#bbb)}
 main section.course .c-meta{font-size:13px!important;margin:0!important;flex-wrap:wrap;gap:.2rem .7rem}
 main section.course .c-go{margin-top:.1rem!important;font-size:14px}
}
/* v8.1 phone QA round 3 */
@media (max-width:640px){
 details.glance:not([open]) .glance-ix{display:none!important}
 details.glance::details-content{transition:none}
 .course-page .glance-ix{display:block!important;columns:auto!important;grid-template-columns:none!important}
 .course-page .glance-ix li{writing-mode:horizontal-tb!important;width:auto!important;height:auto!important}
 .course-page .glance-ix a{display:flex!important;align-items:center;min-height:44px;width:auto!important;height:auto!important;writing-mode:horizontal-tb!important;transform:none!important}
 .course-page main li>a{min-height:44px;display:flex;align-items:center}
 .course-page button.ct{min-height:44px}
 .course-page figcaption a,.course-page .note a.ul{min-height:44px;display:inline-flex!important;align-items:center;padding:0 .1rem!important;margin:0!important}
 .course-page .pm,.course-page .ct,.course-page li.c,.course-page .b-r button,.course-page .b-more,.course-page .titlebtn .sub{font-size:13px!important}
 body:has(.modes) :is(nav button,.modes button,.sheet button,body>a){min-height:44px;min-width:44px;font-size:13px!important}
 body:has(.modes) .rng span,body:has(.modes) .fin,body:has(.modes) .fin *{font-size:13px!important}
 body:has(.modes) .ttl{min-width:0;overflow:hidden}body:has(.modes) .ttl i{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
 body:has(.modes) nav{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
 .reader-safe{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 body:has(#spines) input,body:has(#spines) .chips button,body:has(#spines) main button{min-height:44px;font-size:16px}
 .home-sc a,#scope .sc a{min-height:44px}
 main section.course a.ul,#scope a.ul{min-height:44px;display:inline-flex;align-items:center}
 .gsc,.sc{overflow-wrap:anywhere}
 .guide-page .bt,.guide-page .bi{max-width:100%;overflow-wrap:anywhere}
}

@media (max-width:640px){
 body:has(.modes) button,body:has(.modes) .modes button{min-height:44px!important;min-width:44px!important;font-size:13px!important;padding-top:0!important;padding-bottom:0!important}
 .filters button{min-height:44px!important;min-width:44px;font-size:13px!important}
 .gsc .more a.ul,.sc .more a.ul{min-height:44px;display:inline-flex;align-items:center}
 .v4-cap-f .ul,.v4-back{font-size:13px!important;min-height:44px}
 body:has(.modes) .hide-s{display:none!important}
}
@media (max-width:640px){.v4-ix{display:none!important}}
/* v8.1 phone QA round 4 */
@media (max-width:640px){
 #atlas{display:none!important}
 .sc .ers li,.sc .ers span,.sc .more,.sc .more a,.gsc .ers li,.gsc .ers span{font-size:13px!important}
 .mb-pop li,.mb-pop a,.mb-pop button{font-size:14px!important}
 main :is(p,li) a{padding:.75rem 0;margin:-.75rem 0}
 main a{min-width:44px}
 .lb button.g,.bits button{min-height:44px;min-width:44px}
 body:has(#spines) header a,body>header a{min-height:44px;display:inline-flex;align-items:center}
}
@media (max-width:640px){footer a,main a.ul,.bits button,main button.ul{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}.lb button,.toy button{min-width:44px}}
@media (max-width:640px){.course-page main button{min-width:44px}body:has(#spines) a{min-height:44px;display:inline-flex;align-items:center}footer a,.foot a,main .more a{min-height:44px;display:inline-flex;align-items:center}}
@media (max-width:640px){.course-page main button.ul{min-height:44px!important;min-width:44px!important;display:inline-flex!important;align-items:center;justify-content:center}}
/* v8.3 phone home polish */
@media (max-width:640px){
 .hero4 .wm5{display:block!important}
 .nums4{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:.9rem .6rem!important;overflow:visible!important;mask-image:none!important;-webkit-mask-image:none!important;max-width:100%}
 .nums4>span{display:flex!important;flex-direction:column;min-width:0;font-size:12px!important;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-3,#9a9a9a)}
 .nums4>span b{font-size:26px!important;font-weight:400;letter-spacing:-.02em;color:#f2efe8;text-transform:none;line-height:1.1}
 .ask4{min-height:48px;align-items:center;gap:.5rem}
 .ask4 label{font-size:16px}.ask4 input{min-height:44px;font-size:17px!important;color:#f2efe8}.ask4 input::placeholder{color:#a9b3b0}
 .ask4 button{min-height:44px;font-size:15px}
 main section.course .c-art.has-thumb{background-size:cover;background-position:center;background-color:#1a1c1e}
 main section.course .c-art.has-thumb .tex{display:none!important}
 main section.course .c-art .tex{filter:none!important}
 main section.course .c-num{text-shadow:0 1px 6px rgba(0,0,0,.8);color:#f2efe8}
}
@media (max-width:640px){.nums4>span:nth-child(n+7){display:none!important}}
@media (max-width:640px){.course-page .endsec button.g,.course-page button.g{min-height:44px!important}}
/* v8.3 phone: clean deep near-black base, no grain, only the smooth emerald light */
@media (max-width:640px){
 html,body{background:#07090a!important}
 .field{background:#07090a!important;background-image:none!important}
 .field.tex-still,#field.tex-still{background-image:none!important}
 .atmos-grain,.grainfix,.field .vignette~.grain{display:none!important}
 .field .atmos{filter:blur(14px)!important;opacity:.9}
 .field .atmos-m{opacity:.55}
}
/* v8.3 phone: readable real facts + a large calm emerald glow framed by a soft dark vignette (CSS gradients only, no noise) */
@media (max-width:640px){
 .tips-panel .v4-cap-f .k,.tips-panel .v4-cap-f .k *{font-size:14px!important;color:#cfe9e2!important;opacity:1!important}
 .tips-panel .v4-cap-f .k .dim{color:#c9c9c4!important}
 .tips-panel .v4-cap-f .t{color:#f6f4ee!important;font-size:18px!important;line-height:1.45;opacity:1!important}
 .tips-panel .v4-cap-f .ul,.tips-panel .v4-cap-f .off{color:#e2e0da!important;opacity:1!important}
 .tips-panel .v4-cap-f .go{color:#5fd9cc!important}
 .tips-panel .v4-cap-b,.tips-panel .v4-cap-b *{opacity:1!important;color:#e7f7f2!important}
 .tips-panel .tp-h{color:#e2e0da!important}
 .field .vignette{position:absolute!important;inset:0!important;pointer-events:none;opacity:1!important;display:block!important;background-color:transparent!important;
  background-image:   radial-gradient(150% 85% at 30% 100%,rgba(20,167,160,.48) 0%,rgba(20,167,160,.36) 16%,rgba(25,160,130,.22) 34%,rgba(31,158,116,.11) 54%,rgba(31,158,116,.04) 70%,rgba(31,158,116,0) 85%),
   radial-gradient(90% 60% at 85% 0%,rgba(31,158,116,.18) 0%,rgba(31,158,116,.07) 45%,rgba(31,158,116,0) 75%),
   radial-gradient(120% 100% at 50% 45%,rgba(0,0,0,0) 55%,rgba(0,0,0,.28) 78%,rgba(0,0,0,.55) 100%)!important}
}

@media (max-width:640px){.hero4 .h-hero .soft,.hero4 .h-hero .d2{color:#cdd3d0!important;opacity:1!important}.hero4 .kicker{color:#b9c0bd!important}}
/* v8.3 phone: tips panel clears the bar + notch; "Ways in" is an open, clean list of big tappable cards */
@media (max-width:640px){
 .tips-panel{margin-top:calc(64px + env(safe-area-inset-top))!important;scroll-margin-top:calc(64px + env(safe-area-inset-top))}
 .tips-panel:not([hidden])~.hero4{padding-top:1rem!important}
 #how .gate{display:flex!important;flex-direction:column;gap:.75rem!important;margin:.6rem 0 0}
 #how .gate li{opacity:1!important;transform:none!important;border:0!important;border-radius:14px;background:rgba(255,255,255,.035);padding:1rem 1.1rem!important}
 #how .gate li.done{background:rgba(20,167,160,.10)}
 #how .gate h3{font-size:19px!important;margin:0 0 .35rem!important;color:#f2efe8}
 #how .gate .gn{font-size:13px;color:#9fd6c2}
 #how .gate p{font-size:16px!important;line-height:1.5;color:#d6d4ce!important;margin:0 0 .5rem}
 #how .gate a,#how .gate button{min-height:44px;display:inline-flex!important;align-items:center;font-size:15px!important;color:#5fd9cc;padding:0 .2rem}
 #how .gate kbd{border:0;background:rgba(255,255,255,.08);border-radius:4px;padding:.05em .35em}
 #how .pledge{font-size:15px;line-height:1.5;color:#c9c9c4}
}
@media (max-width:640px){
 .mbar .mb-r{display:flex;align-items:center;gap:.4rem}
 .mb-search{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--rule-2,#2a2d2f);border-radius:2px;color:var(--fg,#eee);padding:0}
 .mb-search:focus-visible{outline:2px solid #14a7a0;outline-offset:2px}
}
@media (max-width:640px){.mbar .mb-t{min-width:0}.mb-logo .wm5{width:min(128px,100%)!important}}
@media (max-width:360px){.mbar{gap:.35rem}.mbar .mb-btn{padding:0 .45rem;font-size:14px}}

/* v8.5 phones: course-card art is a full-width live banner (shared-GL dither/texture + desktop sig line art) */
@media (max-width:640px),(pointer:coarse) and (max-width:900px){
 main section.course{grid-template-columns:1fr!important}
 main section.course>*{grid-column:1!important;grid-row:auto!important}
 main section.course .c-art{grid-row:1!important;width:100%!important;height:auto!important;aspect-ratio:16/7!important;border-radius:4px;margin:0 0 .6rem!important;background:#0d0e0f}
 main section.course .c-art .sig{display:block!important;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
}
/* v9.0 profile hierarchy: name dominant, credit quiet */
.cast .who .nm{font-size:1.3rem!important;font-weight:500;line-height:1.2;color:var(--fg,#f2efe8)}
.cast .who .rl{font-size:.95rem!important}
.course-page .story p.cap,.course-page .story-in p.cap,.story-in .cap,figcaption .credit,.fig figcaption .credit{font-size:13px!important;line-height:1.35;color:var(--fg-4,#7c8084)!important;opacity:.85;font-family:var(--mono,monospace);letter-spacing:.01em}
@media (min-width:641px){.story-in .cap,figcaption .credit{font-size:12px!important}}
/* v9.0 tips card: close / space / fact / badge / course link / next */
.v4-cap-f.tip9{display:flex;flex-direction:column;align-items:stretch;gap:0}
.v4-cap-f.tip9[hidden]{display:none!important}
.tip9 .tip-top{display:flex;justify-content:flex-end;margin:-.4rem -.4rem 0 0}
.tip9 .tip-x{min-width:44px;min-height:44px;border:0;background:none;color:var(--fg-2,#cfcdc7);font:300 26px/1 var(--sans,system-ui);cursor:pointer;border-radius:999px}
.tip9 .tip-x:hover{background:rgba(255,255,255,.07);color:#fff}
.tip9 .tip-sp{height:.6rem}
.tip9 .t{order:0;font-size:19px!important;line-height:1.45!important;color:#f6f4ee!important;font-weight:400;margin:0 0 .9rem!important;opacity:1!important;cursor:default}
.tip9 .k{align-self:flex-start;margin:0 0 .5rem!important;padding:.15rem .55rem;border-radius:999px;background:rgba(20,167,160,.16);font-size:11px!important;color:#9fe3d7!important;letter-spacing:.04em}
.tip9 .k .dim,.tip9 .k span{display:none!important}
.tip9 .tip-go{align-self:flex-start;font:400 13px var(--mono,monospace);color:#5fd9cc!important;min-height:44px;display:inline-flex;align-items:center;text-decoration:none}
.tip9 .tip-go[hidden]{display:none}
.tip9 .tip-f{display:flex;justify-content:flex-end}
.tip9 .tip-next{min-height:44px;padding:0 1.1rem;border-radius:999px;border:0;background:linear-gradient(135deg,rgba(16,185,129,.32),rgba(20,167,160,.32));color:#eafff8;font:500 14px var(--sans,system-ui);cursor:pointer}
.tips-panel .tp-h,.tips-panel .v4-cap-b{display:none!important}
.tips-panel{padding:.6rem .9rem .8rem!important}
/* v9.0 hotfix: never hide course content on phones (reveal-on-scroll missed during iOS flings) */
@media (max-width:760px),(hover:none){.course-page .rise,.course-page .beat,.course-page .fig,.course-page .quote,.course-page .key,.course-page .era-head{opacity:1!important;transform:none!important}.course-page .wipe{-webkit-mask:none!important;mask:none!important;opacity:1!important}}
/* v9.0 section view: title + subtitle, everything else in one dropdown with columns */
.course-page .sheet.intro{min-height:0!important;padding-bottom:1rem!important}
.course-page .sheet.intro h1{margin-bottom:.3rem}
.course-page details.course-more>summary{font-size:14px}
.cm-grid{display:grid;grid-template-columns:minmax(16rem,1fr) 2fr;gap:1.6rem 2.4rem;padding:1rem 0 1.4rem}
.cm-about .tag{font-size:1.1rem;color:var(--fg-2);margin:0 0 .6rem}.cm-about .paras p,.cm-about .spine p{font-size:16px!important;color:var(--fg-3)}
.cm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem;margin:1rem 0 0}.cm-stats div{padding:.6rem;border-radius:10px;background:rgba(255,255,255,.04)}.cm-stats dt{font-size:11px;color:var(--fg-4);text-transform:uppercase;letter-spacing:.08em}.cm-stats dd{margin:0;font-size:1.3rem;color:var(--fg)}
.cm-ix{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.3rem 1.4rem;align-content:start}
.cm-ix a{display:flex;gap:.5rem;align-items:baseline;min-height:44px;padding:.4rem 0;border-bottom:1px solid var(--rule)}
@media (max-width:760px){.cm-grid{grid-template-columns:1fr}.cm-stats{grid-template-columns:repeat(2,1fr)}.cm-ix{grid-template-columns:1fr}.cm-ix a{align-items:center}}
@media (min-width:480px) and (max-width:760px){.cm-ix{grid-template-columns:1fr 1fr}}
.course-page details.course-more>summary,.course-page details.course-more .cm-grid{grid-column:2/-1;min-width:0;max-width:72rem}
.cm-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:760px){.cm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.course-page details.course-more>summary,.course-page details.course-more .cm-grid{grid-column:2/4!important}
.cm-grid{grid-template-columns:1fr!important}
.cm-about{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:1rem 2rem;align-items:start}.cm-stats{margin:0!important}
.cm-ix{grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))!important}
@media (max-width:760px){.course-page details.course-more>summary,.course-page details.course-more .cm-grid{grid-column:2/3!important}.cm-about{grid-template-columns:1fr}.cm-ix{grid-template-columns:1fr!important}}
@media (min-width:480px) and (max-width:760px){.cm-ix{grid-template-columns:1fr 1fr!important}}

.course-page .cm-wrap{padding-top:.2rem!important;padding-bottom:.2rem!important;min-height:0!important}
.course-page .cm-wrap>details.course-more{grid-column:2/4;display:block!important;min-width:0}
.course-page details.course-more>summary,.course-page details.course-more .cm-grid{grid-column:auto!important}
@media (max-width:760px){.course-page .cm-wrap>details.course-more{grid-column:2/3}}
/* v9.0 cm final */
.course-page details.course-more .cm-grid{display:flex!important;flex-direction:column;gap:1.2rem}
.course-page details.course-more .cm-about{display:flex!important;flex-direction:column;gap:.9rem}
.course-page details.course-more .cm-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,8rem))!important;gap:.6rem}
.course-page details.course-more .cm-stats dt{white-space:nowrap}
.course-page details.course-more .cm-ix{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0 1.4rem}
.course-page details.course-more .cm-ix a{display:grid!important;grid-template-columns:2.2rem 1fr;gap:0 .3rem;align-items:baseline}
.course-page details.course-more .cm-ix a>.dim:last-child{grid-column:2;font-size:11px}
@media (max-width:1100px){.course-page details.course-more .cm-ix{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:760px){.course-page details.course-more .cm-ix{grid-template-columns:1fr!important}.course-page details.course-more .cm-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.course-page details.course-more .cm-ix a{font-size:16px!important}}
.course-page details.course-more .cm-ix a{height:auto!important;min-height:44px;padding:.55rem 0!important;line-height:1.3;row-gap:3px}.course-page details.course-more .cm-ix li{height:auto!important}
@media (max-width:760px){.course-page details.course-more .cm-ix a>.dim:last-child{display:none!important}}

/* v9.1: course title clears the fixed mobile bar on first load */
@media (max-width:900px){html.has-mbar body.course-page main#course{padding-top:calc(76px + env(safe-area-inset-top,0px))!important}}
/* v9.2 real-facts card (desktop): one bordered panel, every line inside it */
@media (min-width:641px){
 .v4-cap:not(.inflow) .v4-cap-f{box-sizing:border-box;width:min(25rem,calc(100vw - 7rem));max-width:none;padding:.55rem 1.1rem 1rem 1.25rem;background:#111314;border:1px solid var(--rule-2,#2a2d30);border-radius:12px;box-shadow:0 18px 48px rgba(0,0,0,.5);text-shadow:none;overflow-wrap:break-word}
 .v4-cap:not(.inflow) .v4-cap-f::before{content:none;display:none}
 .v4-cap:not(.inflow) .tip9 .tip-top{margin:0 -.6rem 0 0}
 .v4-cap:not(.inflow) .tip9 .tip-sp{height:.15rem}
 .v4-cap:not(.inflow) .tip9 .tip-go{max-width:100%;line-height:1.4;padding:.35rem 0}
}
/* v9.2.4 round fact badge, desktop polish: same design, better made. Crisper hairlines/type on retina, eased hover tilt, a soft press, and the
   fact panel rises in instead of popping. Phones and reduced motion keep the existing behaviour. */
@media (hover:hover) and (pointer:fine) and (min-width:641px){
.v4-cap svg{shape-rendering:geometricPrecision;text-rendering:geometricPrecision}
.v4-cap svg path,.v4-cap svg circle{vector-effect:non-scaling-stroke;stroke-width:1px}
.v4-cap svg text{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-kerning:normal}
.v4-cap-b{filter:drop-shadow(0 6px 14px rgba(0,0,0,.45))}
.v4-cap-f .t{font-feature-settings:"kern","liga";text-wrap:pretty;letter-spacing:-.003em;-webkit-font-smoothing:antialiased}
.v4-cap-f .k{font-variant-numeric:tabular-nums;letter-spacing:.08em}
}
@media (hover:hover) and (pointer:fine) and (min-width:641px) and (prefers-reduced-motion:no-preference){
.v4-cap-3d{transition:transform .42s cubic-bezier(.2,.8,.2,1)}
.v4-cap-b{transition:transform .18s cubic-bezier(.2,.8,.2,1),filter .25s}
.v4-cap-b:hover{filter:drop-shadow(0 8px 18px rgba(0,0,0,.5))}
.v4-cap-b:active{transform:scale(.94);transition-duration:.08s}
.v4-cap-f:not([hidden]){animation:capin9 .34s cubic-bezier(.2,.8,.2,1) both}
@keyframes capin9{from{opacity:0;transform:translateY(6px);filter:blur(2px)}to{opacity:1;transform:none;filter:none}}
}
@media (hover:hover) and (pointer:fine) and (min-width:641px){.v4-cap-b{width:57px;height:57px}}/* v9.2.6: round badge 10% bigger on desktop */
