/* Layout: a live instrument panel. Sticky masthead, three colour-keyed sections
   (Trending = green, A List = violet, Hype = magenta) on one cool-ink ground,
   and a topic drawer that slides over everything. Dark-first like techaimag.com. */
:root{
  --bg:#05070A; --bg2:#0A0E14; --surface:#0E141C; --surface2:#131A24; --hover:#1B2430;
  --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.16);
  --fg:#F2F6FA; --body:#B9C4D2; --muted:#8794A6; --faint:#5E6B7E;
  --accent:#00CDFF; --on-accent:#00121A;
  --hype:#FF3D8B; --impact:#00CDFF; --lb:#9B7BFF; --tr:#2FD27A;
  --c-tools:#2FD27A; --c-models:#9B7BFF; --c-repos:#4C9BFF; --c-hf:#FFA53D; --c-res:#FF4F7B;
  --st-exp:#FF5C39; --st-new:#C77DFF; --st-rise:#2FD27A; --st-reg:#8794A6; --st-peak:#FFB020; --st-cool:#6FA8FF;
  --band-lo:#2FD27A; --band-mid:#FFB020; --band-hi:#FF3D8B;
  --glow:rgba(0,205,255,.16); --shade:rgba(0,0,0,.55);
  --f-display:'Orbitron','Archivo',system-ui,sans-serif;
  --f-body:'Archivo',system-ui,-apple-system,'Segoe UI',sans-serif;
  --f-mono:'JetBrains Mono',ui-monospace,'SFMono-Regular',Menlo,monospace;
  --r:14px; --r-sm:8px;
  color-scheme:dark;
}
@media (prefers-color-scheme: light){ :root:not([data-theme="dark"]){
  --bg:#EEF2F6; --bg2:#E4EAF1; --surface:#FFFFFF; --surface2:#F5F8FB; --hover:#EAF0F6;
  --line:rgba(10,20,40,.09); --line2:rgba(10,20,40,.18);
  --fg:#0A0E14; --body:#2A3543; --muted:#566377; --faint:#7E8A9B;
  --accent:#0086BF; --on-accent:#FFFFFF;
  --hype:#D4185F; --impact:#0086BF; --lb:#6B3FE0; --tr:#13894A;
  --c-tools:#13894A; --c-models:#6B3FE0; --c-repos:#1F63D6; --c-hf:#C86A00; --c-res:#C8164A;
  --st-exp:#D63A16; --st-new:#8E3FD1; --st-rise:#13894A; --st-reg:#566377; --st-peak:#B87400; --st-cool:#2C66C9;
  --band-lo:#13894A; --band-mid:#C98A00; --band-hi:#D4185F;
  --glow:rgba(0,134,191,.10); --shade:rgba(10,20,40,.35);
  color-scheme:light; }}
:root[data-theme="light"]{
  --bg:#EEF2F6; --bg2:#E4EAF1; --surface:#FFFFFF; --surface2:#F5F8FB; --hover:#EAF0F6;
  --line:rgba(10,20,40,.09); --line2:rgba(10,20,40,.18);
  --fg:#0A0E14; --body:#2A3543; --muted:#566377; --faint:#7E8A9B;
  --accent:#0086BF; --on-accent:#FFFFFF;
  --hype:#D4185F; --impact:#0086BF; --lb:#6B3FE0; --tr:#13894A;
  --c-tools:#13894A; --c-models:#6B3FE0; --c-repos:#1F63D6; --c-hf:#C86A00; --c-res:#C8164A;
  --st-exp:#D63A16; --st-new:#8E3FD1; --st-rise:#13894A; --st-reg:#566377; --st-peak:#B87400; --st-cool:#2C66C9;
  --band-lo:#13894A; --band-mid:#C98A00; --band-hi:#D4185F;
  --glow:rgba(0,134,191,.10); --shade:rgba(10,20,40,.35);
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:120px}
body{background:var(--bg); color:var(--body); font-family:var(--f-body); font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased}
body::before{content:""; position:fixed; inset:0 0 auto; height:env(safe-area-inset-top,0px); z-index:60; background:var(--bg2)}
a{color:inherit}
button{font:inherit; color:inherit}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:4px}
.wrap{max-width:1320px; margin:0 auto; padding-left:max(16px,env(safe-area-inset-left,0px)); padding-right:max(16px,env(safe-area-inset-right,0px))}
.mono{font-family:var(--f-mono)}
.num{font-variant-numeric:tabular-nums}
h1,h2,h3{color:var(--fg); text-wrap:balance; margin:0}
.eyebrow{font-family:var(--f-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted)}
.muted{color:var(--muted)}

/* (unused) ribbon */
.ribbon{background:repeating-linear-gradient(135deg,var(--bg2) 0 12px,var(--surface) 12px 24px); border-bottom:1px solid var(--line); font-family:var(--f-mono); font-size:11.5px; color:var(--muted)}
.ribbon .wrap{display:flex; gap:10px 18px; align-items:center; flex-wrap:wrap; padding-block:7px}
.ribbon b{color:var(--fg); font-weight:600}
.ribbon .sp{flex:1}

/* masthead */
.mast{position:sticky; top:env(safe-area-inset-top,0px); z-index:50; background:color-mix(in srgb,var(--bg2) 88%,transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid var(--line)}
.mast .wrap{display:flex; align-items:center; gap:18px; padding-block:10px}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--fg); flex-shrink:0}
.brand svg{height:34px; width:auto}
.brand .tag{font-family:var(--f-display); font-weight:800; font-size:13px; letter-spacing:.22em; color:var(--accent); border-left:1px solid var(--line2); padding-left:12px}
.nav{display:flex; gap:4px; margin-left:auto}
.nav a{font-size:13.5px; font-weight:600; text-decoration:none; padding:8px 12px; border-radius:999px; color:var(--body); display:flex; align-items:center; gap:7px}
.nav a i{width:7px; height:7px; border-radius:50%; display:inline-block}
.nav a:hover{background:var(--hover); color:var(--fg)}
.tier{display:flex; background:var(--surface); border:1px solid var(--line2); border-radius:999px; padding:3px; flex-shrink:0}
.tier button{border:0; background:none; font-size:12px; font-weight:700; padding:6px 11px; border-radius:999px; cursor:pointer; color:var(--muted)}
.tier button[aria-pressed="true"]{background:var(--accent); color:var(--on-accent)}
.ticker{border-top:1px solid var(--line); overflow:hidden; white-space:nowrap; font-family:var(--f-mono); font-size:12px}
.ticker .tk-track{display:inline-flex; gap:34px; padding:7px 0; animation:tick 70s linear infinite}
.ticker:hover .tk-track{animation-play-state:paused}
.ticker span b{color:var(--fg); font-weight:500; margin-right:6px}
.up{color:var(--st-rise)} .down{color:var(--st-cool)} .hot{color:var(--st-exp)}
@keyframes tick{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ticker .tk-track{animation:none} .needle{transition:none!important}}
@media (max-width:980px){.mast .wrap{flex-wrap:wrap; row-gap:6px} .acct{margin-left:auto} .nav{order:3; width:100%; margin:0 -4px; overflow-x:auto; scrollbar-width:none; flex-wrap:nowrap} .nav::-webkit-scrollbar{display:none} .nav a{white-space:nowrap; padding:6px 11px; font-size:13px}}
@media (max-width:420px){.nav{gap:0} .nav a{padding:6px 8px; font-size:12.5px; gap:5px} .nav a i{display:none}}
@media (max-width:560px){.brand .tag{display:none} .brand svg{height:30px} .tier button{padding:6px 9px}}

/* hero */
.hero{padding-block:44px 30px; position:relative; overflow:hidden}
.hero::before{content:""; position:absolute; inset:-40% -10% auto auto; width:760px; height:760px; background:radial-gradient(closest-side,var(--glow),transparent); pointer-events:none}
.hero-grid{display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:34px; align-items:end; position:relative}
.hero h1{font-family:var(--f-display); font-weight:800; font-size:clamp(34px,5.4vw,66px); line-height:1.02; letter-spacing:.01em; text-transform:uppercase}
.hero h1 em{font-style:normal; color:var(--accent)}
.hero p.lede{font-size:17px; max-width:56ch; margin:16px 0 0; color:var(--body)}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:20px}
.chip{font-family:var(--f-mono); font-size:12px; border:1px solid var(--line2); border-radius:999px; padding:5px 11px; display:inline-flex; gap:7px; align-items:center; color:var(--body); background:var(--surface)}
.live-dot{width:8px; height:8px; border-radius:50%; background:var(--tr); box-shadow:0 0 0 0 var(--tr); animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--tr) 60%,transparent)}70%{box-shadow:0 0 0 8px transparent}100%{box-shadow:0 0 0 0 transparent}}
@media (prefers-reduced-motion:reduce){.live-dot{animation:none}}
.pulse-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px}
.pulse{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:14px; text-decoration:none; display:flex; flex-direction:column; gap:6px; min-width:0; transition:border-color .2s, transform .2s}
.pulse:hover{border-color:var(--line2); transform:translateY(-2px)}
.pulse .k{font-family:var(--f-display); font-weight:700; font-size:34px; color:var(--fg); line-height:1}
.pulse .k small{font-family:var(--f-mono); font-size:12px; font-weight:500; margin-left:6px}
.pulse .t{font-size:12.5px; color:var(--muted); line-height:1.35}
.pulse .bar{height:3px; border-radius:2px}
.corpus{margin-top:10px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:12px 14px}
.corpus .row{display:flex; justify-content:space-between; gap:10px; align-items:baseline}
.corpus svg{display:block; width:100%; height:64px; margin-top:6px}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr} .hero{padding-block:30px 20px}}
@media (max-width:520px){.pulse-grid{grid-template-columns:1fr 1fr} .pulse:last-child{grid-column:1/-1}}

/* sections */
section.sec{padding-block:46px 30px; border-top:1px solid var(--line)}
.sec-head{display:flex; gap:20px 34px; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; margin-bottom:22px}
.sec-head .ttl{display:flex; flex-direction:column; gap:8px; min-width:0}
.sec-head h1,.sec-head h2{font-family:var(--f-display); font-weight:800; font-size:clamp(28px,4vw,46px); text-transform:uppercase; line-height:1}
.sec-head h1 span,.sec-head h2 span{color:var(--k)}
.sec-head p{margin:0; max-width:62ch; color:var(--body)}
.badge{display:inline-flex; align-items:center; gap:6px; align-self:flex-start; font-family:var(--f-mono); font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; padding:4px 10px; border-radius:6px; background:color-mix(in srgb,var(--k) 16%,transparent); color:var(--k)}
.seg{display:inline-flex; background:var(--surface); border:1px solid var(--line2); border-radius:10px; padding:3px; gap:2px; flex-wrap:wrap}
.seg button{border:0; background:none; padding:7px 12px; border-radius:7px; font-size:13px; font-weight:600; color:var(--muted); cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--hover); color:var(--fg); box-shadow:inset 0 0 0 1px var(--line2)}
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:18px; min-width:0}
.card h3{font-family:var(--f-body); font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--fg); display:flex; gap:8px; align-items:center}
.card .sub{font-size:12.5px; color:var(--muted); margin-top:3px}
.grid{display:grid; gap:14px}
.g-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-hero{grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr)}
@media (max-width:900px){.g-2,.g-3,.g-hero{grid-template-columns:1fr}}

/* hype */
#hype{--k:var(--hype)}
.gauge-card{display:flex; flex-direction:column; align-items:center; text-align:center}
.gauge-card svg{width:100%; max-width:380px; height:auto; overflow:visible}
.g-score{font-family:var(--f-display); font-weight:800; fill:var(--fg)}
.g-lbl{font-family:var(--f-mono); font-size:3.4px; fill:var(--muted)}
.g-band{font-family:var(--f-mono); font-size:3.3px; font-weight:600; letter-spacing:.06em; text-transform:uppercase}
.delta{font-family:var(--f-mono); font-size:13px; padding:5px 12px; border-radius:999px; margin-top:4px; border:1px solid var(--line2)}
.gauge-legend{display:flex; justify-content:space-between; width:100%; max-width:380px; font-size:11.5px; font-family:var(--f-mono); margin-top:10px}
.chart svg{display:block; width:100%; height:auto; overflow:visible}
.ax{font-family:var(--f-mono); font-size:10px; fill:var(--muted)}
.ax-strong{font-family:var(--f-mono); font-size:11px; font-weight:600; fill:var(--fg)}
.gridl{stroke:var(--line); stroke-width:1}
.verdict{background:color-mix(in srgb,var(--hype) 9%,var(--surface)); border-color:color-mix(in srgb,var(--hype) 30%,transparent)}
.verdict h3{font-family:var(--f-display); text-transform:none; letter-spacing:.01em; font-size:22px; font-weight:700}
.verdict p{margin:10px 0 0; font-size:15.5px; color:var(--body)}
.takeaways{display:flex; flex-direction:column; gap:12px; margin-top:12px}
.takeaways div{display:grid; grid-template-columns:56px 1fr; gap:12px; align-items:baseline}
.takeaways b{font-family:var(--f-display); font-size:20px; color:var(--hype); font-weight:700}
.movers ol{list-style:none; margin:14px 0 0; padding:0; display:flex; flex-direction:column; gap:10px}
.movers li{display:grid; grid-template-columns:18px minmax(0,1.1fr) minmax(0,1fr) 44px; gap:10px; align-items:center; font-size:13.5px}
.movers li .rk{font-family:var(--f-mono); color:var(--faint); font-size:12px}
.movers li .nm{color:var(--fg); font-weight:600; line-height:1.2}
.movers li .v{font-family:var(--f-mono); font-weight:600; text-align:right}
.track{height:8px; background:var(--surface2); border-radius:4px; overflow:hidden; display:block}
.fill{display:block; height:100%; border-radius:4px; transform-origin:left; animation:grow .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes grow{from{transform:scaleX(.05)}}
@media (prefers-reduced-motion:reduce){.fill{animation:none}}
.movers .rise h3 i{color:var(--st-rise)} .movers .cool h3 i{color:var(--st-cool)} .movers .lead h3 i{color:var(--impact)}
.ico{width:18px; height:18px; flex-shrink:0}
.quad-wrap{display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:20px; align-items:center}
.quad-note{display:flex; flex-direction:column; gap:12px; font-size:14px}
.quad-note .k{display:flex; gap:10px; align-items:flex-start}
.quad-note .sw{width:12px; height:12px; border-radius:3px; margin-top:4px; flex-shrink:0}
@media (max-width:900px){.quad-wrap{grid-template-columns:1fr}}
.topics10{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px}
@media (max-width:1150px){.topics10{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){.topics10{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tcard{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column; cursor:pointer; text-align:left; padding:0; transition:transform .2s,border-color .2s; min-width:0}
.tcard:hover{transform:translateY(-3px); border-color:var(--line2)}
.tcard .im{aspect-ratio:4/3; background:var(--surface2) center/cover no-repeat; position:relative; max-width:100%}
.tcard .im::after{content:""; position:absolute; inset:0; background:linear-gradient(to top,var(--shade),transparent 55%)}
.tcard .rank{position:absolute; left:10px; bottom:6px; z-index:1; font-family:var(--f-display); font-weight:900; font-size:38px; color:#fff; line-height:1; text-shadow:0 2px 10px rgba(0,0,0,.5)}
.tcard .bd{padding:12px; display:flex; flex-direction:column; gap:8px; flex:1}
.tcard .nm{font-weight:700; color:var(--fg); font-size:14.5px; line-height:1.2}
.dual{display:grid; grid-template-columns:44px 1fr 24px; gap:6px; align-items:center; font-family:var(--f-mono); font-size:11px}
.dual .v{text-align:right; color:var(--fg)}
.tcard .ln{font-size:12.5px; color:var(--muted); line-height:1.4}
.legend{display:flex; gap:14px; flex-wrap:wrap; font-family:var(--f-mono); font-size:11.5px; color:var(--muted)}
.legend i{display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:6px; vertical-align:-1px}
.devs{list-style:none; padding:0; margin:12px 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px}
.devs li{display:flex; gap:10px; align-items:baseline; font-size:14px}
.devs li::before{content:""; width:6px; height:6px; border-radius:50%; background:var(--hype); flex-shrink:0; transform:translateY(-2px)}
.src{font-family:var(--f-mono); font-size:10.5px; padding:1px 7px; border-radius:4px; background:var(--surface2); color:var(--muted); border:1px solid var(--line); white-space:nowrap}
@media (max-width:700px){.devs{grid-template-columns:1fr}}
details.method{border-top:1px solid var(--line); margin-top:16px; padding-top:12px}
details.method summary{cursor:pointer; font-weight:700; color:var(--fg); font-size:14px}
details.method p{max-width:85ch; font-size:14px}

/* leaderboard */
#leaderboard{--k:var(--lb)}
.trends5{display:grid; grid-template-columns:repeat(var(--n,5),minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; margin-bottom:16px}
.trends5 div{background:var(--surface); padding:14px; display:flex; gap:10px; font-size:13.5px; color:var(--body); line-height:1.35}
.trends5 b{font-family:var(--f-display); font-size:26px; color:var(--lb); line-height:1}
@media (max-width:900px){.trends5{grid-template-columns:1fr 1fr} }
@media (max-width:520px){.trends5{grid-template-columns:1fr}}
.cols-tabs{display:none; margin-bottom:12px}
.cols{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px}
@media (max-width:1200px){.cols{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:800px){.cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.cols-tabs{display:flex; overflow-x:auto} .cols{grid-template-columns:1fr} .col:not(.on){display:none}}
.col{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column; min-width:0}
.col-h{padding:12px 14px; background:color-mix(in srgb,var(--c) 15%,var(--surface)); border-bottom:2px solid var(--c)}
.col-h h3{font-family:var(--f-display); font-size:13px; letter-spacing:.08em; color:var(--fg); text-transform:uppercase}
.col-h p{margin:4px 0 0; font-size:12px; color:var(--muted); line-height:1.35}
.col ol{list-style:none; margin:0; padding:0; flex:1}
.ent{padding:12px 14px; border-bottom:1px solid var(--line); display:grid; grid-template-columns:30px minmax(0,1fr); gap:4px 10px; position:relative}
.ent:last-child{border-bottom:0}
.ent .rk{font-family:var(--f-display); font-weight:800; font-size:18px; color:var(--c); grid-row:span 4}
.ent > :not(.rk){grid-column:2}
.ent .nm{font-weight:700; color:var(--fg); font-size:14px; line-height:1.25; display:flex; gap:6px; align-items:flex-start; justify-content:space-between; min-width:0}
.ent .nm a{text-decoration:none; overflow-wrap:anywhere}
.ent .nm a:hover{text-decoration:underline}
.ent .ln{font-size:12.5px; color:var(--muted); line-height:1.38; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden}
.ent .mt{font-family:var(--f-mono); font-size:11px; color:var(--body)}
.arrow{font-size:11px; font-family:var(--f-mono); flex-shrink:0; padding:1px 6px; border-radius:4px; border:1px solid var(--line2)}
.arrow.u{color:var(--st-rise)} .arrow.d{color:var(--st-cool)} .arrow.f{color:var(--faint)} .arrow.n{color:var(--st-exp)}
.sample{font-family:var(--f-mono); font-size:10px; padding:2px 6px; border-radius:4px; background:color-mix(in srgb,var(--c-hf) 20%,transparent); color:var(--c-hf); margin-left:6px; vertical-align:2px}
.hbars{display:flex; flex-direction:column; gap:9px; margin-top:14px}
.hbar{display:grid; grid-template-columns:minmax(0,150px) minmax(0,1fr) 52px; gap:10px; align-items:center; font-size:13px; cursor:default}
.hbar .l{color:var(--fg); line-height:1.2}
.hbar .v{font-family:var(--f-mono); text-align:right; color:var(--fg); font-size:12.5px}
.hbar button.l{background:none; border:0; text-align:left; padding:0; cursor:pointer; text-decoration:underline; text-decoration-color:var(--line2); text-underline-offset:3px}
.hn{list-style:none; padding:0; margin:12px 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px}
.hn li{display:grid; grid-template-columns:62px 1fr; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); font-size:14px; align-items:baseline}
.hn li a{color:var(--fg); text-decoration:none} .hn li a:hover{text-decoration:underline}
.hn .pts{font-family:var(--f-mono); font-size:12px; color:var(--c-hf)}
@media (max-width:800px){.hn{grid-template-columns:1fr}}

/* trending */
#topics{--k:var(--tr)}
.toolbar{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:12px}
.search{flex:1 1 240px; display:flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--line2); border-radius:10px; padding:0 12px; min-width:0}
.search input{flex:1; min-width:0; background:none; border:0; outline:0; color:var(--fg); font:inherit; padding:10px 0}
.search:focus-within{border-color:var(--accent)}
select{background:var(--surface); color:var(--fg); border:1px solid var(--line2); border-radius:10px; padding:9px 10px; font:inherit; font-size:13px}
.cats{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px}
.cat{border:1px solid var(--line2); background:var(--surface); border-radius:999px; padding:6px 12px; font-size:12.5px; font-weight:600; cursor:pointer; color:var(--body)}
.cat span{font-family:var(--f-mono); color:var(--faint); margin-left:5px; font-weight:400}
.cat[aria-pressed="true"]{background:var(--fg); color:var(--bg); border-color:var(--fg)}
.cat[aria-pressed="true"] span{color:inherit; opacity:.7}
.stline{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; align-items:center}
.status{display:inline-flex; align-items:center; gap:5px; font-family:var(--f-mono); font-size:11px; font-weight:600; letter-spacing:.04em; padding:3px 8px; border-radius:999px; background:color-mix(in srgb,var(--sc) 14%,transparent); color:var(--sc); white-space:nowrap}
.status svg{width:12px; height:12px}
button.status{border:1px solid transparent; cursor:pointer; padding:5px 10px}
button.status[aria-pressed="true"]{border-color:var(--sc)}
button.status[aria-pressed="false"]{opacity:.55}
.tgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:12px}
.topic{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:14px 14px 12px; display:flex; flex-direction:column; gap:10px; cursor:pointer; text-align:left; position:relative; transition:border-color .2s, transform .2s; min-width:0}
.topic:hover{border-color:var(--line2); transform:translateY(-2px)}
.topic .top{display:flex; justify-content:space-between; gap:8px; align-items:flex-start}
.topic .nm{font-weight:700; color:var(--fg); font-size:16px; line-height:1.2}
.topic .ct{font-size:11.5px; color:var(--muted); margin-top:3px}
.topic svg.spark{width:100%; height:62px; display:block}
.topic .stats{display:flex; justify-content:space-between; align-items:flex-end; gap:8px}
.topic .g{font-family:var(--f-display); font-weight:800; font-size:22px; line-height:1}
.topic .vol{font-family:var(--f-mono); font-size:11.5px; color:var(--muted); text-align:right; line-height:1.35}
.dots{display:flex; gap:3px; margin-top:3px; justify-content:flex-end}
.dots i{width:6px; height:6px; border-radius:50%; background:var(--line2)}
.dots i.on{background:var(--tr)}
.star{position:absolute; top:10px; right:10px; width:30px; height:30px; display:grid; place-items:center; border-radius:8px; background:none; border:0; cursor:pointer; color:var(--faint)}
.star:hover{background:var(--hover); color:var(--fg)}
.star[aria-pressed="true"]{color:var(--st-peak)}
.topic .top{padding-right:28px}
.empty{grid-column:1/-1; padding:40px; text-align:center; border:1px dashed var(--line2); border-radius:var(--r); color:var(--muted)}

/* gating */
.lockable{position:relative}
.gate{display:none}
[data-tier="visitor"] .locked{filter:blur(5px); pointer-events:none; user-select:none; opacity:.55}
[data-tier="visitor"] .gate{display:flex}
.gate{position:relative; grid-column:1/-1; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:22px; border-radius:var(--r); border:1px solid color-mix(in srgb,var(--accent) 45%,transparent); background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 10%,var(--surface)),var(--surface)); margin-top:12px}
.gate h4{margin:0; color:var(--fg); font-size:17px}
.gate p{margin:0; font-size:14px; max-width:52ch}
.btn{border:0; border-radius:999px; padding:10px 18px; font-weight:700; font-size:14px; cursor:pointer; background:var(--accent); color:var(--on-accent); display:inline-flex; align-items:center; gap:8px; text-decoration:none}
.btn.ghost{background:none; color:var(--fg); box-shadow:inset 0 0 0 1px var(--line2)}
.pro-tag{font-family:var(--f-mono); font-size:10px; font-weight:600; letter-spacing:.08em; color:var(--accent); border:1px solid color-mix(in srgb,var(--accent) 50%,transparent); border-radius:4px; padding:1px 5px; vertical-align:2px}
[data-tier="subscriber"] .visitor-only{display:none!important}
[data-tier="visitor"] .sub-only{display:none!important}

/* drawer */
.scrim{position:fixed; inset:0; background:var(--shade); z-index:70; opacity:0; pointer-events:none; transition:opacity .25s}
.scrim.on{opacity:1; pointer-events:auto}
.drawer{position:fixed; z-index:80; top:0; right:0; bottom:0; width:min(560px,100%); background:var(--bg2); border-left:1px solid var(--line2); transform:translateX(102%); transition:transform .32s cubic-bezier(.2,.8,.2,1); display:flex; flex-direction:column; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px); padding-right:env(safe-area-inset-right,0px)}
.drawer.on{transform:none}
@media (prefers-reduced-motion:reduce){.drawer,.scrim{transition:none}}
.dr-h{display:flex; gap:12px; align-items:flex-start; padding:18px 20px 14px; border-bottom:1px solid var(--line)}
.dr-h h3{font-family:var(--f-display); font-size:24px; font-weight:700; line-height:1.1}
.dr-h .x{margin-left:auto; flex-shrink:0; width:36px; height:36px; border-radius:10px; border:1px solid var(--line2); background:var(--surface); cursor:pointer; display:grid; place-items:center}
.dr-b{overflow-y:auto; padding:16px 20px 30px; display:flex; flex-direction:column; gap:18px; overscroll-behavior:contain}
.dr-hero{aspect-ratio:21/9; border-radius:var(--r-sm); background:var(--surface2) center/cover; max-width:100%}
.kv{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; background:var(--line); border-radius:var(--r-sm); overflow:hidden; border:1px solid var(--line)}
.kv div{background:var(--surface); padding:10px 12px}
.kv b{display:block; font-family:var(--f-display); font-size:19px; color:var(--fg); font-weight:700}
.kv span{font-size:11px; color:var(--muted); font-family:var(--f-mono)}
@media (max-width:480px){.kv{grid-template-columns:1fr 1fr}}
.dr-sec h4{margin:0 0 8px; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-family:var(--f-mono); font-weight:500; display:flex; justify-content:space-between; align-items:center; gap:8px}
.rel{display:flex; flex-wrap:wrap; gap:6px}
.rel button{border:1px solid var(--line2); background:var(--surface); border-radius:999px; padding:5px 11px; font-size:12.5px; cursor:pointer}
.rel button:hover{border-color:var(--tr); color:var(--fg)}
.rel span{border:1px dashed var(--line2); border-radius:999px; padding:5px 11px; font-size:12.5px; color:var(--muted)}
.ev{list-style:none; padding:0; margin:0; display:flex; flex-direction:column}
.ev li{padding:10px 0; border-bottom:1px solid var(--line); display:flex; flex-direction:column; gap:4px}
.ev a{color:var(--fg); text-decoration:none; font-weight:600; font-size:14px; line-height:1.3} .ev a:hover{text-decoration:underline}
.ev .meta{display:flex; gap:8px; align-items:center; font-size:12px; color:var(--muted)}
.ev p{margin:0; font-size:13px; color:var(--muted)}
.why{display:flex; flex-direction:column; gap:8px}
.why div{display:flex; gap:10px; align-items:flex-start; font-size:14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); padding:10px 12px}
.why svg{color:var(--tr); margin-top:2px}

/* tooltip */
.tip{position:fixed; z-index:90; pointer-events:none; background:var(--surface2); color:var(--fg); border:1px solid var(--line2); border-radius:8px; padding:8px 10px; font-size:12.5px; line-height:1.4; box-shadow:0 8px 30px var(--shade); opacity:0; transition:opacity .12s; max-width:260px}
.tip.on{opacity:1}
.tip .tt{font-weight:700} .tip .tm{font-family:var(--f-mono); font-size:11.5px; color:var(--muted)}
.hit{fill:transparent; cursor:crosshair}

/* subscribe band & footer */
.subband{margin-top:10px; border-radius:20px; padding:30px; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:24px; align-items:center; background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 60%),var(--surface); border:1px solid var(--line2)}
.subband h2{font-family:var(--f-display); font-size:clamp(24px,3vw,34px); text-transform:uppercase}
.subband ul{margin:0; padding:0; list-style:none; display:grid; gap:8px; font-size:14.5px}
.subband li{display:flex; gap:10px} .subband li svg{color:var(--accent); flex-shrink:0; margin-top:3px}
@media (max-width:800px){.subband{grid-template-columns:1fr}}
footer{padding-block:34px 40px; border-top:1px solid var(--line); margin-top:40px; font-size:13px; color:var(--muted)}
footer .wrap{display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 24px}
footer a{color:var(--body); text-decoration:none} footer a:hover{color:var(--fg)}
.toast{position:fixed; z-index:95; left:50%; bottom:calc(20px + env(safe-area-inset-bottom,0px)); transform:translate(-50%,20px); background:var(--fg); color:var(--bg); padding:10px 16px; border-radius:999px; font-weight:600; font-size:13.5px; opacity:0; transition:all .25s; pointer-events:none; max-width:calc(100% - 32px); text-align:center}
.toast.on{opacity:1; transform:translate(-50%,0)}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}
a.btn{text-decoration:none; display:inline-flex; align-items:center}
.acct{display:flex; gap:8px; align-items:center; flex-shrink:0}
.acct .btn{padding:7px 13px; font-size:12.5px}
.acct .hi{font-size:13px; color:var(--muted); white-space:nowrap}
@media (max-width:560px){.acct #acct-in{display:none}}

/* multi-page: current section in the nav, sub-page bar, home hub */
.nav a[aria-current="page"]{background:var(--hover); color:var(--fg); box-shadow:inset 0 0 0 1px var(--line2)}
.pagebar{border-bottom:1px solid var(--line); background:var(--bg2)}
.pagebar .wrap{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 18px; padding-block:12px}
.pagebar .chips{margin-top:0}
.pagebar .back{font-size:13px; font-weight:600; color:var(--muted); text-decoration:none; display:inline-flex; gap:6px; align-items:center}
.pagebar .back:hover{color:var(--fg)}
.pagebar + section.sec{border-top:0}
#hub{--k:var(--accent)}
.hub{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px}
@media (max-width:980px){.hub{grid-template-columns:1fr}}
.hubcard{position:relative; display:flex; flex-direction:column; gap:10px; min-width:0; padding:22px 22px 20px; border-radius:18px; text-decoration:none; color:var(--body);
  background:linear-gradient(180deg,color-mix(in srgb,var(--k) 9%,var(--surface)),var(--surface) 55%); border:1px solid color-mix(in srgb,var(--k) 28%,var(--line)); overflow:hidden; transition:border-color .2s, transform .2s, box-shadow .2s}
.hubcard::before{content:""; position:absolute; inset:0 0 auto; height:3px; background:var(--k)}
.hubcard:hover{transform:translateY(-3px); border-color:color-mix(in srgb,var(--k) 60%,var(--line)); box-shadow:0 18px 40px -24px color-mix(in srgb,var(--k) 70%,transparent)}
.hubcard .eyebrow{color:var(--k)}
.hubcard h3{font-family:var(--f-display); font-weight:800; font-size:clamp(22px,2.4vw,28px); text-transform:uppercase; line-height:1.05}
.hubcard > p{margin:0; font-size:14.5px}
.hub-tease{flex:1; border-top:1px solid var(--line); padding-top:12px; margin-top:2px; min-height:150px}
.hub-list{list-style:none; margin:0; padding:0; display:grid; gap:7px}
.hub-list li{display:flex; align-items:baseline; gap:10px; font-size:14px; min-width:0}
.hub-n{font-family:var(--f-display); font-weight:700; color:var(--k); width:14px; flex-shrink:0}
.hub-name{flex:1; min-width:0; color:var(--fg); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hub-list b{font-family:var(--f-mono); font-size:13px; font-weight:600}
.hub-k{font-family:var(--f-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--kc); width:96px; flex-shrink:0}
.hub-foot{font-family:var(--f-mono); font-size:11.5px; color:var(--muted); margin-top:12px}
.hub-foot b{color:var(--fg); font-weight:600}
.hub-gauge{display:flex; justify-content:center} .hub-gauge svg{width:100%; max-width:240px; height:auto; overflow:visible}
.hub-gauge + .hub-foot{text-align:center; margin-top:6px}
.hub-verdict{margin:8px 0 0; text-align:center; color:var(--fg); font-weight:600; font-size:14px}
.hub-cta{display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:14px; color:var(--k)}
.hub-cta svg{transition:transform .2s} .hubcard:hover .hub-cta svg{transform:translateX(4px)}
.foot-nav{display:flex; flex-wrap:wrap; gap:6px 16px}
@media (max-width:560px){.pagebar .chip:not(:first-child){display:none}}

/* paid-only locks */
.lk{vertical-align:-1px; opacity:.8}
.seg button.is-locked{color:var(--faint)}
.seg button[data-lock]{color:var(--faint)}
.hy-gate{display:flex!important; margin-bottom:14px}
.hy-gate[hidden]{display:none!important}
#lb-hn li.locked span:last-child{color:var(--body)}

/* light / dark switch */
.theme-btn{flex-shrink:0; width:36px; height:36px; border-radius:999px; border:0; background:none; color:var(--body); box-shadow:inset 0 0 0 1px var(--line2); display:inline-grid; place-items:center; cursor:pointer}
.theme-btn:hover{background:var(--hover); color:var(--fg)}
.theme-btn .i-sun{display:none}
.theme-btn[data-mode="dark"] .i-moon{display:none} .theme-btn[data-mode="dark"] .i-sun{display:block}
@media (max-width:980px){.theme-btn{margin-left:auto} .theme-btn + .acct{margin-left:0}}
