/* Layout: a parts-counter price board. Site nav (DDR5 / DDR4) on top, capacity tabs,
   six store "bins" with each store's cheapest kit, the full sortable listing, then a same-part cross-check. */
:root{
  --bg:#f3f5f1; --surface:#ffffff; --ink:#18201a; --muted:#5d6a60; --line:#d9dfd6;
  --pcb:#1d6b45; --pcb-soft:#e3efe7; --gold:#9a6f1f; --gold-soft:#f6ecd6; --warn:#a14a1c;
  --f-display:"Archivo","Arial Narrow",system-ui,sans-serif;
  --f-body:"IBM Plex Sans",system-ui,-apple-system,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0f1511; --surface:#161e18; --ink:#e6ece6; --muted:#9aa89d; --line:#29342c;
  --pcb:#4fc488; --pcb-soft:#173324; --gold:#e1b35a; --gold-soft:#33291a; --warn:#f08a5a; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0f1511; --surface:#161e18; --ink:#e6ece6; --muted:#9aa89d; --line:#29342c;
  --pcb:#4fc488; --pcb-soft:#173324; --gold:#e1b35a; --gold-soft:#33291a; --warn:#f08a5a; color-scheme:dark}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.5}
.wrap{max-width:1160px;margin:0 auto;padding-block:20px 56px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:32px}
.site{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.brand{font-family:var(--f-mono);font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.brand span{color:var(--pcb)}
a.brand{color:var(--ink);text-decoration:none}
a.brand:hover span{text-decoration:underline}
/* ---- home page */
.home h1{max-width:20ch}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width:900px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.tiles{grid-template-columns:1fr}}
.tile{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto 1fr auto;column-gap:14px;row-gap:8px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--ink);text-decoration:none;transition:border-color .15s,transform .15s}
.tile:hover{border-color:var(--pcb)}
@media (prefers-reduced-motion:no-preference){.tile:hover{transform:translateY(-2px)}}
.tile:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.ticon{grid-row:1/span 3;width:56px;height:56px;fill:none;stroke:var(--pcb);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.tname{font-family:var(--f-display);font-stretch:90%;font-weight:800;font-size:24px;line-height:1.1}
.tlines{display:flex;flex-direction:column;gap:10px}
.tline{display:flex;flex-direction:column;gap:2px}
.tlabel{font-family:var(--f-mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tprice{font-family:var(--f-mono);font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.tgo{font-family:var(--f-mono);font-size:12px;font-weight:600;color:var(--pcb)}
.deals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media (max-width:1040px){.deals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.deals{grid-template-columns:1fr}}
.deal{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:8px;min-width:0}
.deal-top{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.deal-cat{font-family:var(--f-mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.deal .chg{font-size:12px;white-space:normal}
.bv.off{color:var(--pcb);background:var(--pcb-soft)}
.deal-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}
.deal-foot a{color:var(--pcb);font-weight:600;text-decoration:none;font-family:var(--f-mono)}
.deal .thumb{height:110px}
.gens{display:flex;flex-wrap:wrap;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:3px}
.gens a{font-family:var(--f-mono);font-size:14px;font-weight:600;color:var(--muted);text-decoration:none;padding:6px 14px;border-radius:5px}
.gens a[aria-current="page"]{background:var(--ink);color:var(--bg)}
.gens a:not([aria-current]):hover{color:var(--ink)}
.gens{gap:9px;overflow:hidden} /* clips the divider that would start a wrapped line */
.gens a:focus-visible{outline-offset:-2px}
.gens>*{position:relative}
.gens>*+*::before{content:"";position:absolute;left:-5px;top:20%;height:60%;width:1px;background:var(--ink)}
.gens .soon{font-family:var(--f-mono);font-size:14px;font-weight:600;color:var(--muted);padding:6px 10px;display:inline-flex;align-items:baseline;gap:5px;cursor:default}
.gens .soon small{font-size:10px;font-weight:500;letter-spacing:.06em;text-transform:uppercase}
.brand{white-space:nowrap}
header.hero{display:flex;flex-direction:column;gap:10px}
.subnav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.subnav a{font-family:var(--f-mono);font-size:14px;font-weight:600;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:7px 16px;border-radius:6px;text-decoration:none}
.subnav a[aria-current="page"]{background:var(--pcb);border-color:var(--pcb);color:var(--bg)}
.subnav a:not([aria-current]):hover{border-color:var(--pcb)}
.subnav a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.eyebrow{font-family:var(--f-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
h1{font-family:var(--f-display);font-stretch:85%;font-weight:800;font-size:clamp(34px,6vw,56px);line-height:1;margin:0;text-wrap:balance}
h1 em{font-style:normal;color:var(--pcb)}
.lede{max-width:66ch;color:var(--muted);margin:0}
.fingers{height:10px;background:repeating-linear-gradient(90deg,var(--gold) 0 6px,transparent 6px 10px);border-radius:2px;opacity:.85}
h2{font-family:var(--f-display);font-stretch:90%;font-weight:700;font-size:22px;margin:0;text-wrap:balance}
.sec{display:flex;flex-direction:column;gap:14px}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px}
.note{font-size:13px;color:var(--muted)}
.tabs{display:flex;flex-wrap:wrap;gap:8px}
.tab{font-family:var(--f-mono);font-size:14px;font-weight:500;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:9px 14px;border-radius:6px;cursor:pointer}
.tab[aria-selected="true"]{background:var(--pcb);border-color:var(--pcb);color:var(--bg)}
.tab:focus-visible,.chip:focus-visible,th button:focus-visible,.gens a:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.bins{display:grid;grid-template-columns:repeat(var(--n,5),minmax(0,1fr));gap:12px}
@media (max-width:1040px){.bins{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:720px){.bins{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.bins{grid-template-columns:1fr}}
.bin{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:8px;min-width:0}
.bin.best{border-color:var(--pcb);box-shadow:inset 0 3px 0 var(--pcb)}
.bin.none{background:transparent;border-style:dashed}
.bin-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.store{font-family:var(--f-mono);font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.badge{font-family:var(--f-mono);font-size:11px;padding:2px 7px;border-radius:999px;background:var(--pcb-soft);color:var(--pcb);font-weight:600}
.trend{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;justify-content:space-between;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:14px 16px}
.trend-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.trend-title{font-family:var(--f-mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.trend-now{font-family:var(--f-mono);font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
.trend-chart{flex:1 1 260px;max-width:420px;min-width:0}
.spark{display:block;width:100%;height:72px;overflow:visible}
.trend-axis{display:flex;justify-content:space-between;font-family:var(--f-mono);font-size:11px;color:var(--muted)}
.ext{display:inline-flex;align-items:baseline;gap:5px;font-family:var(--f-mono);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:999px;white-space:nowrap}
.ext small{font-weight:500;text-transform:none;letter-spacing:0;opacity:.85}
.ext.low{background:var(--pcb);color:var(--bg)}
.ext.high{background:var(--warn);color:var(--bg)}
.ext.sm,.tgt.sm{font-size:11px;padding:2px 7px;font-weight:600;text-transform:none;letter-spacing:0}
.ext.sm.low{background:var(--pcb-soft);color:var(--pcb)}
.ext.sm.high{background:transparent;color:var(--warn);border:1px solid var(--warn)}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tgt{font-family:var(--f-mono);font-size:13px;font-weight:600}
.tgt.hit{color:var(--pcb)}
.tgt.miss{color:var(--gold)}
.tgt.sm.hit{background:var(--pcb-soft);border-radius:999px;display:inline-block}
.tform{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px}
.tform label{display:inline-flex;align-items:center;gap:6px;font-family:var(--f-mono);font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.tform .cur{color:var(--ink)}
.tform input{width:110px;font:inherit;font-family:var(--f-mono);font-size:14px;text-transform:none;letter-spacing:0;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:6px 8px}
.tform button{font-family:var(--f-mono);font-size:12px;font-weight:600;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:6px 12px;border-radius:6px;cursor:pointer}
.tform button[type=submit]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.tform input:focus-visible,.tform button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.tstat{min-height:20px}
.tab .dot{color:var(--gold);font-size:10px;vertical-align:middle}
.tab[aria-selected="true"] .dot{color:var(--bg)}
.perf-grid{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:820px){.perf-grid{grid-template-columns:1fr}}
.speccard{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:16px}
.sc-item{display:flex;flex-direction:column;gap:10px}
.sc-item+.sc-item{border-top:1px solid var(--line);padding-top:14px}
.sc-name{font-family:var(--f-display);font-weight:700;font-size:18px}
.speccard dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0;font-size:13px}
.speccard dt{color:var(--muted)}
.speccard dd{margin:0;font-family:var(--f-mono);font-size:12px;text-align:right}
.sc-scores{display:flex;flex-direction:column;gap:6px}
.sc-row{display:grid;grid-template-columns:1fr 70px 48px;gap:8px;align-items:center;font-size:12px;color:var(--muted)}
.sc-row b{font-family:var(--f-mono);color:var(--ink);text-align:right;font-weight:600}
.mini{height:6px;background:var(--line);border-radius:3px;overflow:hidden}
.mini i{display:block;height:100%;background:var(--pcb)}
.sc-price{font-family:var(--f-mono);font-size:13px;font-weight:600}
.ladder{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:2px;min-width:0}
.lad-head,.lad-row{display:grid;grid-template-columns:minmax(110px,170px) minmax(0,1fr) 84px;gap:12px;align-items:center}
.lad-head{font-family:var(--f-mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:4px 8px 8px}
.lad-head span:last-child,.lad-price{text-align:right}
.lad-row{all:unset;display:grid;grid-template-columns:minmax(110px,170px) minmax(0,1fr) 84px;gap:12px;align-items:center;padding:6px 8px;border-radius:6px;cursor:pointer}
.lad-row:hover{background:var(--bg)}
.lad-row.on{background:var(--pcb-soft)}
.lad-row:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.lad-name{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lad-row.on .lad-name{font-weight:700;color:var(--pcb)}
.lad-bar{position:relative;height:22px;display:flex;align-items:center;min-width:0}
.lad-bar i{position:absolute;left:0;top:3px;bottom:3px;background:var(--line);border-radius:3px}
.lad-row.on .lad-bar i{background:var(--pcb)}
.lad-bar b{position:relative;font-family:var(--f-mono);font-size:12px;font-weight:600;padding-left:6px;white-space:nowrap}
.lad-row.on .lad-bar b{color:var(--bg)}
.lad-bar small{font-weight:400;opacity:.8}
.lad-price{font-family:var(--f-mono);font-size:13px;font-variant-numeric:tabular-nums}
@media (max-width:480px){.lad-head,.lad-row{grid-template-columns:104px minmax(0,1fr) 72px;gap:8px}.lad-bar small{display:none}
  .lad-name{white-space:normal;overflow:visible;font-size:13px;line-height:1.25}.lad-price{font-size:12px}}
.scatter-wrap{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
#scatter{overflow-x:auto;-webkit-overflow-scrolling:touch}
.scatter{display:block;width:100%;min-width:640px;height:auto;font-family:var(--f-mono);font-size:11px}
.scatter text{fill:var(--muted)}
.scatter .grid{stroke:var(--line);stroke-width:1}
.scatter .ax{fill:var(--muted);font-size:11px}
.scatter .hint{fill:var(--pcb);font-size:12px;font-weight:600}
.scatter .pt circle{fill:var(--muted);opacity:.75;cursor:pointer}
.scatter .pt text{fill:var(--ink);font-size:11px;cursor:pointer}
.scatter .pt.on circle{fill:var(--pcb);opacity:1}
.scatter .pt.on text{fill:var(--pcb);font-weight:700}
.bv{display:inline-block;font-family:var(--f-mono);font-size:11px;font-weight:700;color:var(--gold);background:var(--gold-soft);border-radius:999px;padding:2px 8px;white-space:nowrap}
.bv-line{font-size:13px;color:var(--muted);padding:6px 8px 4px}
.bv-line b{color:var(--ink)}
.star{color:var(--gold)}
.scatter .pt.bv text{fill:var(--gold);font-weight:700}
.scatter .ring{fill:none;stroke:var(--gold);stroke-width:2}
.mytargets table{min-width:560px}
.mytargets tr.hit td{background:var(--pcb-soft)}
.mytargets td a{color:var(--pcb);font-weight:600;text-decoration:none}
.chg{font-family:var(--f-mono);font-size:12px;font-weight:600;white-space:nowrap}
.chg.down{color:var(--pcb)}
.chg.up{color:var(--warn)}
.chg.same{color:var(--muted);font-weight:500}
.thumb{display:block;width:100%;height:120px;object-fit:contain;background:#fff;border-radius:6px;padding:6px}
.withpic{display:flex;gap:12px;align-items:flex-start}
.lthumb{flex:none;width:48px;height:48px;object-fit:contain;background:#fff;border-radius:4px;border:1px solid var(--line)}
.lthumb.none{display:inline-block;background:transparent;border-style:dashed}
.thumb.none{background:transparent;border:1px dashed var(--line)}
.price{font-family:var(--f-mono);font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1}
.pgb{font-family:var(--f-mono);font-size:12px;color:var(--muted)}
.kit{font-size:14px;min-width:0;overflow-wrap:anywhere}
.kit a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line)}
.kit a:hover{border-color:var(--pcb)}
.spec{font-family:var(--f-mono);font-size:12px;color:var(--muted)}
.empty{color:var(--muted);font-size:14px}
.flag{font-size:12px;color:var(--warn)}
.promo{font-size:12px;color:var(--gold)}
.filters{display:flex;flex-wrap:wrap;gap:6px}
.chip{font-family:var(--f-mono);font-size:12px;border:1px solid var(--line);background:var(--surface);color:var(--muted);padding:5px 10px;border-radius:999px;cursor:pointer}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.tbl{overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
table{border-collapse:collapse;width:100%;font-size:14px}
#list{min-width:760px}
#cross{min-width:1000px}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
tr:last-child td{border-bottom:0}
th{font-family:var(--f-mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:500;white-space:nowrap}
th button{all:unset;cursor:pointer}
th button::after{content:" ↕";opacity:.4}
th button[data-dir="asc"]::after{content:" ↑";opacity:1}
th button[data-dir="desc"]::after{content:" ↓";opacity:1}
td.num,th.num{text-align:right;font-family:var(--f-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
td.mono{font-family:var(--f-mono);font-size:13px;white-space:nowrap}
td a{color:var(--ink);text-decoration:none}
td a:hover{color:var(--pcb);text-decoration:underline}
tr.low td.num.p{color:var(--pcb);font-weight:600}
#cross td.win,#cross td.win a{color:var(--pcb);font-weight:600}
#cross td.na{color:var(--muted)}
.save{font-family:var(--f-mono);font-size:12px;background:var(--gold-soft);color:var(--gold);padding:2px 6px;border-radius:4px;white-space:nowrap}
.status{padding:20px;border:1px dashed var(--line);border-radius:8px;color:var(--muted)}
footer{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);max-width:78ch;border-top:1px solid var(--line);padding-top:16px}
footer p{margin:0}
@media (prefers-reduced-motion:no-preference){.bin,.tab,.chip,.gens a{transition:background-color .15s,border-color .15s,color .15s}}
/* ---- buying guides */
.guidelink{margin:0;font-size:14px;color:var(--muted)}
.guidelink a{color:var(--pcb);font-weight:600;margin-right:12px}
.article{display:flex;flex-direction:column;gap:36px;max-width:860px}
.prose p,.answer p{margin:0;max-width:70ch}
.prose{gap:12px}
.answer{display:flex;flex-direction:column;gap:14px;padding:20px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--pcb);border-radius:10px}
.picks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.picks li{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:baseline}
.pick{font-family:var(--f-mono);font-size:12px;font-weight:600;text-align:center;padding:3px 0;border-radius:4px}
.pick.d5{background:var(--pcb);color:var(--surface)}
.pick.d4{background:var(--pcb-soft);color:var(--pcb)}
.pick.both{background:var(--gold-soft);color:var(--gold)}
.live b{font-family:var(--f-mono);font-weight:600;white-space:nowrap}
.live b a,.article td a{color:var(--pcb)}
.cmp th[scope=row]{font-weight:600;white-space:nowrap;color:var(--muted);width:24%}
.cmp td{width:38%}
.formula{font-family:var(--f-mono);font-size:15px;padding:12px 16px;background:var(--gold-soft);border-radius:8px;width:fit-content;max-width:100%}
.tips{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px;max-width:72ch}
.cta-row,.guide-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.cta{display:flex;flex-direction:column;gap:4px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--ink);text-decoration:none;transition:border-color .15s}
.cta:hover{border-color:var(--pcb)}
.cta-name{font-family:var(--f-display);font-stretch:90%;font-weight:800;font-size:20px;color:var(--pcb)}
.cta b{font-family:var(--f-mono)}
@media (max-width:560px){.cmp th[scope=row]{white-space:normal}.picks li{grid-template-columns:60px minmax(0,1fr)}}
@media (max-width:560px){#liveCompare td .note{display:block;font-size:11px}#liveCompare th,#liveCompare td{padding:8px}}
.cmp.chips td,.cmp.pairs td{width:auto}
.cmp.chips th[scope=row],.cmp.pairs th[scope=row]{width:auto;color:var(--ink);font-family:var(--f-mono);font-size:13px}
.cmp.chips th[scope=col]{font-family:var(--f-mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:600}
.cmp .fam th{background:var(--pcb-soft);color:var(--pcb);font-family:var(--f-mono);font-size:12px;letter-spacing:.04em}
td.yes{color:var(--pcb);font-weight:600}
td.no{color:var(--muted)}
td.some{color:var(--gold);font-weight:600}
.prose a,.tips a,.note a{color:var(--pcb)}
.perfpick{display:flex;flex-direction:column;gap:12px}
.pp td{vertical-align:middle}
.pp td:nth-child(2){width:38%;min-width:120px}
.pp tr.f100 .lad-bar i{background:var(--pcb);opacity:.35}
.pp tr.f60 .lad-bar i{background:var(--pcb-soft)}
.pp tr.flow td{opacity:.6}
.pp .tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.pp .tags:empty{display:none}
.perflines .pl-name{font-family:var(--f-body);font-weight:600}
.perflines b{white-space:normal}
/* Power supply calculator */
.psucalc .pc-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-bottom:16px}
.psucalc label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.psucalc select{font:inherit;font-size:15px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 10px;max-width:100%}
.psucalc .pc-check{flex-direction:row;align-items:center;gap:8px;grid-column:1/-1;color:var(--ink);font-size:14px}
.psucalc .pc-out{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.pc-stat{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--surface)}
.pc-stat.rec{border-color:var(--pcb);background:var(--pcb-soft)}
.pc-w{font-family:var(--f-mono);font-size:28px;font-weight:600;color:var(--ink)}
.pc-stat.rec .pc-w{color:var(--pcb)}
/* ---- "How it works" animated diagrams (explain.js) */
.mx{display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.mx-ctrl{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.mx-ctrl label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);min-width:0;flex:1 1 240px;max-width:360px}
.mx-ctrl select{font:inherit;font-size:14px;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 10px;max-width:100%}
.mx-btn,.mx-segs button{font-family:var(--f-mono);font-size:13px;font-weight:600;border:1px solid var(--line);background:var(--bg);color:var(--ink);padding:8px 14px;border-radius:8px;cursor:pointer}
.mx-btn.primary{background:var(--pcb);border-color:var(--pcb);color:var(--surface)}
.mx-segs{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.mx-segs button{border:0;border-radius:0;background:var(--bg)}
.mx-segs button+button{border-left:1px solid var(--line)}
.mx-segs button[aria-pressed="true"]{background:var(--pcb);color:var(--surface)}
.mx-btn:focus-visible,.mx-segs button:focus-visible,.mx-ctrl select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.mx-stage{overflow-x:auto}
.mx-stage svg{display:block;width:100%;min-width:560px;height:auto}
.mx-status{min-height:3em;margin:0;font-size:14px}
.mx-failed .mx{display:none}
/* svg parts */
.mx svg text,.mx-zoom svg text{font-family:var(--f-body)}
.mx-cap{font-family:var(--f-mono)!important;font-size:12px;fill:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.mx-lbl{font-size:12px;fill:var(--muted)}
.mx-lbl.strong{fill:var(--ink);font-weight:600}
.mx-lbl.ok{fill:var(--pcb);font-weight:700;font-size:13px}
.mx-blk{fill:var(--bg);stroke:var(--line);stroke-width:1.5}
.mx-c rect,rect.mx-c{fill:var(--bg);stroke:var(--line);stroke-width:1;transition:fill .25s}
rect.mx-c.old,.mx-b.old{fill:var(--gold-soft);stroke:var(--gold)}
rect.mx-c.on,.mx-c rect.on{fill:var(--pcb-soft);stroke:var(--pcb)}
rect.mx-c.want{stroke:var(--gold);stroke-width:2}
rect.mx-c.on.want{fill:var(--gold-soft)}
.mx-b{fill:var(--bg);stroke:var(--line);transition:fill .15s}
.mx-b.on{fill:var(--pcb-soft);stroke:var(--pcb)}
.mx-b.sel{fill:var(--gold)}
.mx-sel{fill:none;stroke:var(--gold);stroke-width:2;stroke-dasharray:5 4;transition:opacity .2s}
.mx-ptr{fill:var(--pcb);transition:opacity .2s}
.mx-bus{fill:none;stroke:var(--line);stroke-width:4;stroke-linejoin:round}
.mx-beat{fill:var(--gold)}
.mx-beat.big{fill:var(--pcb-soft);stroke:var(--pcb)}
.mx-beat.big.alt{fill:var(--gold-soft);stroke:var(--gold)}
.mx-wave{fill:none;stroke:var(--ink);stroke-width:2.5}
.mx-guide{stroke:var(--line);stroke-dasharray:3 3}
.mx-wire{fill:none;stroke:var(--line);stroke-width:2}
.mx-wire.thick{stroke-width:4}
.mx-wire.live{stroke:var(--pcb);opacity:.55}
.mx-pk{fill:var(--gold)}
.mx-slot{fill:none;stroke:var(--line);stroke-width:1.5;stroke-dasharray:4 3}
.mx-stick{fill:var(--pcb)}
.mx-chip,.mx-chip rect{fill:var(--ink);opacity:.75}
.mx-pins rect{fill:var(--gold)}
.mx-thr{stroke:var(--warn);stroke-dasharray:6 4;stroke-width:1.5}
.mx-charge{fill:var(--pcb)}
.mx-charge.low{fill:var(--warn)}
.mx-bit{font-family:var(--f-mono)!important;font-size:20px;font-weight:700;fill:var(--ink)}
.mx-bit.bad{fill:var(--warn)}
.mx-flash{fill:var(--pcb-soft);opacity:0;pointer-events:none}
.mx-schem path,.mx-schem circle{stroke:var(--ink);stroke-width:2;fill:none}
/* race */
.mx-lanes{display:flex;flex-direction:column;gap:10px}
.mx-lane{display:grid;grid-template-columns:150px minmax(0,1fr) 190px;gap:12px;align-items:center}
.mx-ln{display:flex;flex-direction:column;line-height:1.25}
.mx-track{position:relative;height:14px;background:var(--bg);border:1px solid var(--line);border-radius:7px}
.mx-dot{position:absolute;top:-1px;left:0;width:14px;height:14px;border-radius:50%;background:var(--gold)}
.mx-dot.arrived{background:var(--pcb)}
.mx-t{font-family:var(--f-mono);font-size:13px}
.mx-t.slow{color:var(--warn);font-family:var(--f-body)}
@media (max-width:640px){.mx-lane{grid-template-columns:1fr;gap:4px}.mx-ln{flex-direction:row;gap:8px;align-items:baseline}}
/* dram timeline */
.mx-tl{display:flex;gap:4px;flex-wrap:nowrap}
.mx-seg-t{position:relative;min-width:0;display:flex;flex-direction:column;gap:2px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--bg)}
.mx-seg-t>i{position:absolute;inset:0 auto 0 0;width:0;background:var(--pcb-soft);z-index:0}
.mx-seg-t b,.mx-seg-t span{position:relative;z-index:1}
.mx-seg-t b{font-family:var(--f-mono);font-size:13px}
.mx-seg-t span{font-size:12px;color:var(--muted)}
.mx-seg-t.now{border-color:var(--pcb)}
.mx-seg-t.s-burst>i{background:var(--gold-soft)}
@media (max-width:640px){.mx-tl{flex-direction:column}.mx-seg-t{flex:none!important}}
/* channels */
.mx-bw{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
.mx-big{font-family:var(--f-mono);font-size:28px;font-weight:600;color:var(--pcb)}
/* zoom strip */
.mx-zoom{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;counter-reset:z}
.mx-zoom li{position:relative;display:flex;flex-direction:column;gap:6px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:10px;font-size:14px}
.mx-zoom li+li::before{content:"→";position:absolute;left:-12px;top:44px;width:12px;text-align:center;color:var(--muted)}
.mx-zoom svg{width:100%;max-width:160px;height:auto;margin-bottom:4px}
.mx-zoom span{color:var(--muted)}
@media (max-width:820px){.mx-zoom{grid-template-columns:repeat(2,minmax(0,1fr))}.mx-zoom li+li::before{display:none}}
@media (max-width:420px){.mx-zoom{grid-template-columns:1fr}}
/* ---- CPU explainer widgets */
.mx-gold{fill:var(--gold-soft);stroke:var(--gold);stroke-width:1.5}
.mx-arrow{fill:none;stroke:var(--warn);stroke-width:2}
.mx-lbl.on-dark{fill:var(--surface)}
.mx-fig{margin:0;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow-x:auto}
.mx-fig{display:flex;flex-direction:column;gap:8px}
.mx-fig svg{display:block;width:100%;max-width:620px;margin:0 auto;height:auto}
.sec.bench-sec.mx-failed{display:none}
/* fetch/decode/execute */
.cy-grid{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1.2fr);gap:12px;align-items:stretch}
.cy-arrow{display:flex;align-items:center;justify-content:center;font-size:20px;color:var(--muted)}
.cy-mem ol{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.cy-mem li{display:flex;gap:10px;align-items:center;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);transition:background .2s,border-color .2s}
.cy-mem li.on{border-color:var(--pcb);background:var(--pcb-soft)}
.cy-mem li.cy-data{margin-top:6px;border-style:dashed}
.cy-addr{font-family:var(--f-mono);font-size:12px;color:var(--muted);min-width:3.2em}
.cy-mem code,.cy-regs b{font-family:var(--f-mono);font-size:13px;font-weight:600}
.cy-cpu{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.cy-stages{display:flex;gap:6px}
.cy-stages span{flex:1;text-align:center;font-family:var(--f-mono);font-size:12px;font-weight:600;padding:6px 4px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--muted);transition:all .2s}
.cy-stages span.on{background:var(--pcb);border-color:var(--pcb);color:var(--surface)}
.cy-regs{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px}
.cy-regs div{display:flex;flex-direction:column;gap:2px;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);min-width:0}
.cy-regs b{overflow-wrap:anywhere}
.cy-dec{margin:0;min-height:2.6em}
.flash{animation:mxflash .9s ease-out}
@keyframes mxflash{0%{background:var(--gold-soft);box-shadow:0 0 0 3px var(--gold)}100%{box-shadow:0 0 0 0 transparent}}
@media (max-width:640px){.cy-grid{grid-template-columns:1fr}.cy-arrow{transform:rotate(90deg);height:20px}.cy-regs{grid-template-columns:1fr 1fr}.cy-regs div:nth-child(2){grid-column:1/-1;order:3}}
/* pipeline */
.pp-wrap{overflow-x:auto}
.pp-grid{display:grid;gap:3px;min-width:480px}
.pp-h{font-family:var(--f-mono);font-size:11px;color:var(--muted);text-align:center;padding-bottom:2px}
.pp-h:first-child{text-align:left}
.pp-h.now{color:var(--ink);font-weight:700}
.pp-l{font-family:var(--f-mono);font-size:12px;font-weight:600;display:flex;align-items:center;white-space:nowrap}
.pp-l.bad{color:var(--warn)}
.pp-l.br{color:var(--gold)}
.pp-c{display:flex;align-items:center;justify-content:center;height:26px;border-radius:4px;font-family:var(--f-mono);font-size:12px;font-weight:700;background:var(--bg);border:1px solid var(--line);opacity:.35}
.pp-grid .pp-c{opacity:1}
.pp-grid .pp-c:not(.vis){background:transparent;border-color:transparent;color:transparent}
.pp-grid .pp-c.e{background:var(--bg);border-color:transparent}
.pp-grid .pp-c.e:not(.vis){background:transparent}
.pp-c.s0{background:var(--pcb-soft);border-color:var(--pcb);color:var(--pcb)}
.pp-c.s1{background:var(--gold-soft);border-color:var(--gold);color:var(--gold)}
.pp-c.s2{background:var(--pcb);border-color:var(--pcb);color:var(--surface)}
.pp-c.s3{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.pp-grid .pp-c.now:not(.e){box-shadow:0 0 0 2px var(--gold)}
.pp-c.fl.gone{background:transparent!important;border:1px dashed var(--warn)!important;color:var(--warn)!important;text-decoration:line-through}
.pp-key{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted)}
.pp-key span{display:inline-flex;align-items:center;gap:6px}
.pp-key .pp-c{width:22px;height:20px;opacity:1}
/* cores */
.co-lanes{display:flex;flex-direction:column;gap:4px}
.co-lane{display:grid;grid-template-columns:62px minmax(0,1fr);gap:8px;align-items:center}
.co-n{font-family:var(--f-mono);font-size:11px;color:var(--muted)}
.co-track{position:relative;height:16px;background:var(--bg);border-radius:4px}
.co-lane.axis .co-track{height:8px;background:none}
.co-task{position:absolute;top:0;bottom:0;padding:0 1px}
.co-task i{display:block;height:100%;width:0;background:var(--pcb);border-radius:3px;opacity:.85}
.co-task.main i{background:var(--gold);opacity:1}
.co-end{position:absolute;top:-6px;width:2px;height:14px;background:var(--warn);transform:translateX(-1px)}
/* benchmark chart */
table.bn th[scope=row]{font-family:var(--f-body);font-size:14px;text-transform:none;letter-spacing:0;color:var(--ink);white-space:nowrap}
.bn-tag{display:inline-block;margin-left:4px;font-family:var(--f-mono);font-size:10px;font-weight:600;padding:1px 6px;border-radius:4px;background:var(--gold-soft);color:var(--gold);vertical-align:1px}
.bn-cores b{font-family:var(--f-mono)}
.bn-cell{display:flex;align-items:center;gap:8px;min-width:150px}
.bn-bar{flex:1;height:10px;background:var(--bg);border-radius:5px;overflow:hidden;max-width:220px}
.bn-bar i{display:block;height:100%;border-radius:5px}
.bn-bar.g i{background:var(--pcb)}
.bn-bar.m i{background:var(--gold)}
.bn-v{font-family:var(--f-mono);font-size:12px;min-width:2.2em;text-align:right}
@media (max-width:520px){.mx-big{font-size:22px}}
/* ---- SSD explainer widgets */
.hd-plat{fill:var(--bg);stroke:var(--line);stroke-width:2}
.hd-trk{fill:none;stroke:var(--line);stroke-width:1}
.hd-file{fill:var(--gold-soft);stroke:var(--gold);stroke-width:1.5}
.hd-file.got{fill:var(--pcb);stroke:var(--pcb)}
.hd-arm{stroke:var(--ink);stroke-width:5;stroke-linecap:round}
.hd-head{fill:var(--warn)}
.hd-chip{fill:var(--bg);stroke:var(--line);stroke-width:1.5;transition:fill .2s}
.hd-chip.on{fill:var(--pcb-soft);stroke:var(--pcb)}
.hd-read{display:flex;flex-wrap:wrap;gap:12px}
.hd-read>div{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--bg);min-width:200px}
.hd-read b{font-family:var(--f-mono);font-size:16px}
.lv-bin{fill:var(--bg);stroke:var(--line)}
.lv-bin.tgt{fill:var(--pcb-soft);stroke:var(--pcb);stroke-width:1.5}
.lv-bits{font-family:var(--f-mono)!important;font-size:11px;fill:var(--muted)}
.lv-dot{fill:var(--pcb);stroke:var(--surface);stroke-width:2}
.lv-dot.bad{fill:var(--warn)}
.lv-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.lv-facts>div{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.lv-facts b{font-family:var(--f-mono);font-size:18px}
.gc-grid{display:flex;flex-direction:column;gap:8px}
.gc-blk{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;align-items:center;border-radius:8px;transition:background .3s}
.gc-blk.erased{background:var(--gold-soft)}
.gc-bl{font-family:var(--f-mono);font-size:12px;color:var(--muted)}
.gc-pages{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
.gc-p{display:flex;align-items:center;justify-content:center;height:34px;border:1px dashed var(--line);border-radius:5px;font-family:var(--f-mono);font-style:normal;font-weight:700;font-size:13px;background:var(--bg)}
.gc-p.v{border-style:solid;color:var(--surface)}
.gc-p.A{background:var(--pcb);border-color:var(--pcb)}
.gc-p.B{background:var(--gold);border-color:var(--gold)}
.gc-p.C{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.gc-p.stale{background:var(--bg)!important;border:1px solid var(--warn)!important;color:var(--warn)!important;text-decoration:line-through;opacity:.8}
.gc-p.src{box-shadow:inset 0 0 0 2px var(--gold)}
.gc-key{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted)}
.gc-key span{display:inline-flex;align-items:center;gap:6px}
.gc-key .gc-p{width:26px;height:22px;font-size:11px}
.lk-track{height:18px;border-radius:5px;overflow:hidden}
.lk-fill{display:block;height:100%;width:0;background:var(--pcb)}
.hd-stage{display:flex;flex-wrap:wrap;gap:12px}
.hd-stage svg{display:block;height:auto;min-width:0}
.hd-a{flex:360 1 300px}
.hd-b{flex:300 1 260px}
/* ---- graphics card explainer widgets */
.pt-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.pt-col{display:flex;flex-direction:column;gap:6px}
.pt-head{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.pt-col canvas{width:100%;height:auto;border:1px solid var(--line);border-radius:8px;image-rendering:pixelated;background:var(--bg)}
.pt-t{font-family:var(--f-mono);font-size:13px}
.rd-wrap{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:16px;align-items:start}
.rd-wrap .mx-stage svg{min-width:0}
.rd-px{fill:var(--bg);stroke:var(--line);stroke-width:.5;transition:fill .35s}
.rd-px.nogrid{stroke:none}
.rd-wire{transition:opacity .3s}
.rd-wire polygon{fill:none;stroke:var(--pcb);stroke-width:1.5}
.rd-wire circle{fill:var(--gold)}
.rd-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.rd-list li{font-family:var(--f-mono);font-size:12px;font-weight:600;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--muted)}
.rd-list li.done{color:var(--ink)}
.rd-list li.on{background:var(--pcb);border-color:var(--pcb);color:var(--surface)}
.rd-objs{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.rd-objs span{font-family:var(--f-mono);font-size:12px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:var(--bg)}
@media (max-width:700px){.rd-wrap{grid-template-columns:1fr}.rd-list{flex-direction:row;flex-wrap:wrap}.rd-list li{flex:1 1 40%}}
.gr-rows{display:flex;flex-direction:column;gap:12px}
.gr-row{display:grid;grid-template-columns:60px minmax(0,1fr);gap:12px;align-items:center}
.gr-row>b{font-family:var(--f-mono)}
.gr-bars{display:flex;flex-direction:column;gap:4px}
.gr-b{display:grid;grid-template-columns:110px minmax(0,1fr) 48px;gap:8px;align-items:center}
.gr-b .bn-bar{max-width:none}
.gr-vram{display:flex;flex-direction:column;gap:6px}
.up-read>div{min-width:180px}
.up-h{margin:8px 0 0;font-size:16px}
.fg-strip{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.fg-strip svg{display:block;width:100%;height:auto;min-width:0}
.fg-r{fill:var(--pcb)}
.fg-g{fill:var(--gold-soft);stroke:var(--gold);stroke-width:1.5;stroke-dasharray:4 3}
.pt-key{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted)}
.pt-key span{display:inline-flex;align-items:center;gap:6px}
.fg-k{display:inline-block;width:14px;height:18px;border-radius:3px}
.fg-k.r{background:var(--pcb)}
.fg-k.g{background:var(--gold-soft);border:1.5px dashed var(--gold)}
/* link-only store card (e.g. Amazon: no price shown, just a link) */
.bin.linkbin{border-style:dashed;justify-content:flex-start}
.checkbtn{display:inline-block;margin-top:6px;padding:9px 12px;border-radius:8px;background:var(--ink);color:var(--bg);font-family:var(--f-mono);font-size:13px;font-weight:600;text-decoration:none;text-align:center}
.checkbtn:hover{background:var(--pcb)}
.linkbin .note{font-size:12px}
/* site-wide footer */
.sitefoot{display:flex;flex-direction:column;gap:8px;padding-top:18px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.sitefoot p{margin:0;max-width:80ch}
.sitefoot nav{display:flex;flex-wrap:wrap;gap:6px 18px}
.sitefoot nav a{color:var(--ink);font-family:var(--f-mono);font-size:12px;font-weight:600}
.sitefoot a{color:var(--pcb)}
.static .article{max-width:760px}
/* ad space (only rendered when AdSense is switched on in catalog.json) */
.adslot{display:flex;flex-direction:column;gap:6px;min-height:120px;padding:10px 0;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line)}
.adlabel{font-family:var(--f-mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
