/* ==========================================================
   Robot Atlas — neo-brutalist "chunky pill" design system
   canvas warm grey · pure white cards · 3px ink borders
   yellow = selected · orange = primary action
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  --canvas:#E9E6E1;
  --surface:#FFFFFF;
  --ink:#1A1A1A;
  --muted:#6B6B6B;
  --hairline:#E5E2DD;
  --yellow:#FFD21E;
  --orange:#FF8A5B;
  --neg:#D93025;
  --blue:#3B6FF5;
  --green:#2E9E5B;
  --purple:#8B5CF6;
  --red2:#E5484D;
  --r-card:24px;
  --r-pill:999px;
  --b-card:3px solid var(--ink);
  --b-pill:2px solid var(--ink);
  --shadow:0 2px 4px rgba(26,26,26,.06);
  --max:1140px;
  --mono:ui-monospace,'SF Mono',Menlo,Consolas,monospace;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

body{
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:15.5px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px}
strong,b{font-weight:600}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}

/* ---------------- header ---------------- */
.site-head{padding:22px 0 10px}
.head-in{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;gap:9px;flex:0 0 auto}
.brand:hover{text-decoration:none}
.logo-tile{
  width:34px;height:34px;border-radius:9px;background:var(--yellow);
  border:var(--b-pill);display:grid;place-items:center;flex:0 0 auto;
}
.logo-tile svg{width:19px;height:19px;stroke:var(--ink);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wordmark{font-size:19px;font-weight:700;letter-spacing:-.025em;white-space:nowrap}
.head-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.pill{
  display:inline-flex;align-items:center;gap:7px;height:35px;padding:0 15px;
  border:var(--b-pill);border-radius:var(--r-pill);background:var(--surface);
  font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap;
  cursor:pointer;transition:background .12s ease,transform .12s ease;
}
.pill:hover{text-decoration:none;background:#F6F4F1}
.pill:active{transform:translateY(1px)}
.pill--active{background:var(--yellow)}
.pill--active:hover{background:#FFDD4E}
.pill--primary{background:var(--orange);padding-left:9px}
.pill--primary:hover{background:#FF9E76}
.pill-ico{
  width:22px;height:22px;border:1.5px solid var(--ink);border-radius:6px;
  background:var(--surface);display:grid;place-items:center;flex:0 0 auto;
}
.pill-ico svg{width:12px;height:12px;stroke:var(--ink);fill:none;stroke-width:1.8;stroke-linecap:round}

/* ---------------- hero card ---------------- */
.hero-card{
  background:var(--surface);border:var(--b-card);border-radius:var(--r-card);
  box-shadow:var(--shadow);padding:38px 38px 34px;margin-top:14px;
}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;height:29px;padding:0 13px;
  border:1.5px solid var(--ink);border-radius:var(--r-pill);background:#FBFAF8;
  font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  margin-bottom:20px;
}
.eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--orange);border:1.5px solid var(--ink)}
h1{
  margin:0 0 14px;font-size:clamp(2rem,4.5vw,3.35rem);line-height:1.06;
  letter-spacing:-.035em;font-weight:700;max-width:19ch;
}
h1 mark{background:var(--yellow);color:inherit;padding:0 .08em;border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.sub{margin:0 0 26px;font-size:16px;color:var(--muted);max-width:62ch;line-height:1.62}
.hero-pills{display:flex;gap:8px;flex-wrap:wrap}
.stat-pill{
  display:inline-flex;align-items:baseline;gap:7px;height:34px;padding:0 14px;
  border:var(--b-pill);border-radius:var(--r-pill);background:var(--surface);
  font-size:12.5px;font-weight:600;
}
.stat-pill span{color:var(--muted);font-weight:500}

/* ---------------- cards ---------------- */
.card{
  background:var(--surface);border:var(--b-card);border-radius:var(--r-card);
  box-shadow:var(--shadow);padding:30px;margin-top:26px;
}
.card-head{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.card-head h2{margin:0;font-size:26px;line-height:1.18;letter-spacing:-.025em;font-weight:700}
.card-sub{margin:5px 0 0;font-size:13.5px;color:var(--muted);max-width:74ch}
.card-head .aside{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* ---------------- tab bar ---------------- */
.tabbar{
  display:inline-flex;align-items:center;gap:2px;padding:5px;
  border:var(--b-pill);border-radius:var(--r-pill);background:var(--surface);
  flex-wrap:wrap;max-width:100%;
}
.tab{
  display:inline-flex;align-items:center;height:32px;padding:0 17px;
  border:2px solid transparent;border-radius:var(--r-pill);
  font-size:13.5px;font-weight:500;color:var(--ink);cursor:pointer;background:none;
  font-family:inherit;white-space:nowrap;transition:background .12s ease;
}
.tab:hover{background:#F4F2EF;text-decoration:none}
.tab.on{background:var(--yellow);border-color:var(--ink);font-weight:600}
.tab .n{color:var(--muted);font-weight:500;margin-left:6px;font-size:12px}
.tab.on .n{color:rgba(26,26,26,.62)}

/* ---------------- grid + tiles ---------------- */
.grid{display:grid;gap:16px}
.g2{grid-template-columns:repeat(2,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
@media (max-width:980px){.g3,.g4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:680px){.g2,.g3,.g4{grid-template-columns:1fr}}

.tile{
  border:2px solid var(--ink);border-radius:18px;background:var(--surface);
  padding:20px 20px 18px;display:flex;flex-direction:column;gap:9px;
  transition:transform .12s ease,box-shadow .12s ease;
}
.tile:hover{transform:translateY(-2px);box-shadow:0 4px 0 var(--ink);text-decoration:none}
.tile h3{margin:0;font-size:16px;font-weight:600;letter-spacing:-.01em}
.tile p{margin:0;font-size:13.5px;color:var(--muted);line-height:1.55}
.tile .tile-foot{
  margin-top:auto;padding-top:11px;border-top:1.5px dashed var(--hairline);
  display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:600;
}
.tile .tile-foot span{color:var(--muted);font-weight:500}
.tile-head{display:flex;align-items:center;gap:10px}

.num-badge{
  width:28px;height:28px;border-radius:50%;background:var(--yellow);
  border:var(--b-pill);display:grid;place-items:center;
  font-size:12.5px;font-weight:700;flex:0 0 auto;
}

/* ---------------- steps ---------------- */
.steps{list-style:none;margin:0;padding:0;counter-reset:st}
.steps>li{
  display:grid;grid-template-columns:34px 1fr;gap:16px;
  padding:20px 0;border-bottom:1.5px solid var(--hairline);
}
.steps>li:last-child{border-bottom:0;padding-bottom:0}
.steps>li:first-child{padding-top:0}
.steps .num-badge{counter-increment:st}
.steps .num-badge::before{content:counter(st)}
.steps h3{margin:0 0 5px;font-size:15.5px;font-weight:600;letter-spacing:-.01em}
.steps p{margin:0;font-size:13.8px;color:var(--muted);line-height:1.6;max-width:78ch}
.steps .meta{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap}
.chip{
  display:inline-flex;align-items:center;height:25px;padding:0 10px;
  border:1.5px solid var(--ink);border-radius:var(--r-pill);
  font-size:11.5px;font-weight:600;background:#FBFAF8;white-space:nowrap;
}
.chip--yellow{background:var(--yellow)}
.chip--soft{background:var(--surface);color:var(--muted);border-color:var(--hairline)}

/* ---------------- table ---------------- */
.tbl-wrap{overflow-x:auto;border:2px solid var(--ink);border-radius:18px;background:var(--surface)}
table.data{width:100%;border-collapse:collapse;font-size:14px;min-width:640px}
table.data thead th{
  text-align:left;font-size:12px;font-weight:500;color:var(--muted);
  padding:14px 18px;border-bottom:2px solid var(--ink);white-space:nowrap;background:var(--surface);
}
table.data thead th.r{text-align:right}
table.data tbody td{padding:15px 18px;border-bottom:1px solid var(--hairline);vertical-align:top}
table.data tbody tr:last-child td{border-bottom:0}
table.data tbody tr:hover td{background:#FBFAF8}
table.data td.r{text-align:right;font-weight:600}
table.data .nm{font-weight:600}
table.data .sm{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:2px}
table.data td.neg{color:var(--neg)}
.rank{
  width:26px;height:26px;border-radius:50%;background:var(--yellow);
  border:2px solid var(--ink);display:grid;place-items:center;
  font-size:12px;font-weight:700;flex:0 0 auto;
}
.cell-rank{display:flex;align-items:center;gap:12px}

/* ---------------- bars ---------------- */
.bars{display:flex;flex-direction:column;gap:14px}
.bar-row{display:grid;grid-template-columns:136px 1fr;gap:14px;align-items:center}
.bar-row .lab{font-size:13px;font-weight:600}
.bar-row .lab span{display:block;font-size:11.5px;color:var(--muted);font-weight:500}
.bar{display:flex;height:30px;border:2px solid var(--ink);border-radius:8px;overflow:hidden;background:#fff}
.bar i{display:block;height:100%;border-right:2px solid rgba(26,26,26,.16)}
.bar i:last-child{border-right:0}
.legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:16px;font-size:12px;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:11px;height:11px;border-radius:3px;border:1.5px solid var(--ink);display:inline-block}

/* ---------------- callout ---------------- */
.callout{
  border:2px solid var(--ink);border-radius:18px;padding:20px 22px;
  background:#FBFAF8;display:flex;flex-direction:column;gap:7px;
}
.callout.yellow{background:#FFF6D4}
.callout h3{margin:0;font-size:15px;font-weight:600;display:flex;align-items:center;gap:9px}
.callout p{margin:0;font-size:13.5px;color:#4A4A4A;line-height:1.6}
.callout .dot{width:9px;height:9px;border-radius:50%;background:var(--orange);border:1.5px solid var(--ink);flex:0 0 auto}

/* ---------------- part cards ---------------- */
.part-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}
.part{
  border:2px solid var(--ink);border-radius:20px;background:var(--surface);
  padding:19px 20px 16px;display:flex;flex-direction:column;gap:9px;
  transition:transform .12s ease,box-shadow .12s ease;
}
.part:hover{transform:translateY(-2px);box-shadow:0 4px 0 var(--ink)}
.part-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.part h3{margin:0;font-size:15.5px;font-weight:600;letter-spacing:-.01em}
.part h3 a:hover{text-decoration:none}
.part-sub{font-size:11.5px;color:var(--muted);margin-top:3px;font-weight:500}
.price{
  display:inline-flex;align-items:center;height:27px;padding:0 10px;
  border:2px solid var(--ink);border-radius:var(--r-pill);background:var(--yellow);
  font-size:12.5px;font-weight:700;white-space:nowrap;
}
.part p{margin:0;font-size:13.5px;color:#555;line-height:1.55}
.part-spec{
  padding-top:10px;border-top:1.5px dashed var(--hairline);
  display:flex;justify-content:space-between;gap:10px;font-size:12.5px;
}
.part-spec span{color:var(--muted);font-weight:500}
.part-spec b{font-weight:600;text-align:right}
.tags{display:flex;gap:5px;flex-wrap:wrap}
.tags .chip{height:23px;font-size:10.5px}

/* filters */
.filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.search{
  flex:1 1 250px;min-width:190px;height:37px;padding:0 15px;
  border:var(--b-pill);border-radius:var(--r-pill);background:var(--surface);
  font-family:inherit;font-size:13.5px;color:var(--ink);outline:none;
}
.search::placeholder{color:var(--muted)}
.search:focus{box-shadow:0 0 0 3px rgba(255,210,30,.55)}
.result-line{font-size:12.5px;color:var(--muted);margin-bottom:16px;font-weight:500}

/* ---------------- detail ---------------- */
.crumb{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);padding:18px 0 0;flex-wrap:wrap;font-weight:500}
.crumb a{color:var(--muted)}
.crumb a:hover{color:var(--ink)}
.crumb .sep{opacity:.5}
.detail-body{display:grid;grid-template-columns:1fr 360px;gap:24px;align-items:start;margin-top:26px}
.prose h2{font-size:18px;letter-spacing:-.02em;margin:26px 0 10px;font-weight:700}
.prose h2:first-child{margin-top:0}
.prose p{margin:0 0 13px;font-size:14.5px;color:#3E3E3E;line-height:1.68}
.prose code{
  font-family:var(--mono);font-size:12.5px;background:#F3F1ED;border:1px solid var(--hairline);
  border-radius:5px;padding:1px 5px;
}
.spec-card{border:2px solid var(--ink);border-radius:18px;background:var(--surface);overflow:hidden;position:sticky;top:16px}
.spec-card h4{
  margin:0;padding:13px 18px;background:var(--yellow);border-bottom:2px solid var(--ink);
  font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
}
.spec-list{margin:0;padding:0;list-style:none}
.spec-list li{
  display:grid;grid-template-columns:112px 1fr;gap:12px;
  padding:10px 18px;border-bottom:1px solid var(--hairline);font-size:13px;
}
.spec-list li:last-child{border-bottom:0}
.spec-list .k{color:var(--muted);font-weight:500;font-size:12px}
.spec-list .v{font-weight:500;word-break:break-word}

.note{
  border:2px solid var(--ink);border-left-width:9px;border-radius:0 14px 14px 0;
  background:#FFF6D4;padding:15px 18px;margin:18px 0;font-size:13.8px;line-height:1.6;color:#3A3A3A;
}
.note strong{display:block;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:5px}

.link-list{list-style:none;margin:0;padding:0}
.link-list li{border-bottom:1.5px solid var(--hairline)}
.link-list li:last-child{border-bottom:0}
.link-list a{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:13px 2px;font-size:14px;font-weight:500}
.link-list a:hover{text-decoration:none}
.link-list a:hover .lm{background:var(--yellow)}
.link-list .lm{font-size:11.5px;color:var(--muted);font-weight:600;white-space:nowrap;border:1.5px solid var(--hairline);border-radius:var(--r-pill);padding:2px 9px}

.empty{text-align:center;padding:60px 0;color:var(--muted);font-size:14px;font-weight:500}

/* ---------------- footer ---------------- */
.site-foot{margin:30px 0 0;padding:0 0 46px}
.foot-card{
  border:2px solid var(--ink);border-radius:var(--r-card);background:var(--surface);
  padding:24px 26px;display:flex;justify-content:space-between;gap:24px;
  align-items:center;flex-wrap:wrap;
}
.foot-card p{margin:0;font-size:13px;color:var(--muted);max-width:64ch;line-height:1.6}
.foot-links{display:flex;gap:8px;flex-wrap:wrap}

/* ---------------- responsive ---------------- */
@media (max-width:720px){
  .wrap{padding:0 16px}
  .hero-card{padding:26px 20px 24px;border-radius:20px}
  .card{padding:22px 18px;border-radius:20px;margin-top:18px}
  .head-actions{width:100%;margin-left:0;order:3}
  .head-actions .pill{height:32px;font-size:12px;padding:0 12px}
  h1{font-size:2rem}
  .bar-row{grid-template-columns:1fr;gap:6px}
  .part-grid{grid-template-columns:1fr}
  .spec-card{position:static}
  .card-head h2{font-size:21px}
  .detail-body{grid-template-columns:1fr}
}
::selection{background:var(--yellow);color:#000}
