/* RigGator styles. Written phone-first: the base rules are the phone layout,
   and the min-width blocks further down add room for tablets and desktops. */
:root{--bg:#f5f6f8;--panel:#eceef1;--line:#d9dde3;--line2:#a3aab5;--text:#16181c;--muted:#5b6270;--acc:#e8590c;--acc-ink:#b83d0a;--acc-hover:#9c3308;--tint:#fbeee8;
--head:"Barlow Condensed","Arial Narrow",sans-serif;--body:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
--pad:16px;--gap:48px;--r:8px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:16px}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:16px;line-height:1.5}
a{color:var(--acc-ink);text-underline-offset:3px}a:hover{color:var(--acc-hover)}
img{max-width:100%}
:focus-visible{outline:3px solid var(--acc);outline-offset:2px;border-radius:4px}
[hidden]{display:none!important}
.wrap{max-width:1200px;margin:0 auto;padding-left:var(--pad);padding-right:var(--pad)}
.preview{background:var(--acc);color:var(--text);text-align:center;font-size:13px;font-weight:600;padding:6px 12px}

/* header: logo and search share the first row, the menu sits on a second row you can swipe */
.top{background:#fff;border-bottom:1px solid var(--line)}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding-top:10px;padding-bottom:0}
.top img{height:30px;width:auto;display:block}
.find{position:relative;flex:1 1 140px;min-width:0}
.find input,.field{width:100%;min-height:44px;padding:0 14px;font:inherit;border:1px solid var(--line2);border-radius:6px;background:#fff;color:var(--text)}
.top nav{display:flex;gap:4px;width:calc(100% + 2*var(--pad));margin:0 calc(-1*var(--pad));padding:0 calc(var(--pad) - 10px);overflow-x:auto;scrollbar-width:none;border-top:1px solid var(--line);font-weight:500;font-size:15px}
.top nav::-webkit-scrollbar{display:none}
.top nav a{flex:0 0 auto;display:flex;align-items:center;min-height:44px;padding:0 10px;color:var(--text);text-decoration:none;white-space:nowrap}
.top nav a:hover{color:var(--acc-ink)}
.results{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:0 10px 30px rgba(22,24,28,.14);overflow:hidden}
.results:empty{display:none}.results a{padding:13px 16px;border-top:1px solid var(--line);text-decoration:none;color:var(--text)}.results a:first-child{border-top:0}.results a:hover{background:var(--bg)}

/* type */
h1,h2,.num,.big-num,.sub{font-family:var(--head);margin:0}
h1{font-weight:700;font-size:clamp(34px,9vw,56px);line-height:1.02;text-transform:uppercase;letter-spacing:.01em;text-wrap:balance}
h2{font-weight:700;font-size:clamp(26px,6vw,32px);line-height:1.1;text-transform:uppercase;text-wrap:balance}
h3,.eyebrow{margin:0;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
h4{margin:0;font-size:17px;font-weight:600;line-height:1.3;text-wrap:balance}
p{margin:0;text-wrap:pretty}.muted{color:var(--muted)}.small{font-size:14px}.xs{font-size:13px}
.lede{font-size:17px;color:var(--muted);max-width:68ch}
.sub{font-weight:600;font-size:clamp(21px,5vw,30px);line-height:1.15;text-wrap:balance}
.num{font-weight:700}.num,.big-num,td,.barlab{font-variant-numeric:tabular-nums}
.crumbs{font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 8px}.crumbs a{color:var(--muted)}

/* page rhythm */
main.wrap{display:flex;flex-direction:column;gap:var(--gap);padding-top:24px;padding-bottom:64px}
.hero+main.wrap{padding-top:40px}
section,.stack{display:flex;flex-direction:column;gap:16px;min-width:0}
.row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px}
.grid{display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
.g-rig{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-two,.g-moves{gap:20px;align-items:start}
.hero{background:#fff;border-bottom:1px solid var(--line);padding:32px 0 36px}
.hero .wrap{display:flex;flex-direction:column;gap:20px}
.hero form{display:flex;flex-direction:column;gap:10px;position:relative;max-width:820px}
.hero form input{min-height:52px;padding:0 16px;font:inherit;border:1px solid var(--line2);border-radius:6px;width:100%}
.hero form .btn{min-height:52px}

/* cards */
.card,.rig,.lcard,.tbl,.filters{background:#fff;border:1px solid var(--line);border-radius:var(--r)}
.card{display:flex;flex-direction:column;gap:8px;padding:20px;text-decoration:none;color:var(--text)}
.card .num{font-size:34px;line-height:1.1}
.card.strong{border:2px solid var(--text);gap:14px}
.card.dark{background:var(--text);color:#fff;border-color:var(--text)}.card.dark .muted{color:#cfd4db}
.rig{display:flex;flex-direction:column;overflow:hidden;text-decoration:none;color:var(--text)}
.rig .meta{display:flex;flex-direction:column;gap:2px;padding:10px 12px 12px;font-weight:600;line-height:1.25}
.rig .meta span:last-child{font-weight:400;color:var(--muted);font-size:13px}
.rig.all{align-items:center;justify-content:center;min-height:120px;background:var(--bg);color:var(--acc-ink);font-weight:600}
.lcard{display:flex;gap:12px;padding:12px;text-decoration:none;color:var(--text)}
.lcard>div:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}.lcard .num{font-size:26px;line-height:1}
.lcard strong{font-weight:600;line-height:1.35}
a.card,a.rig,a.lcard{transition:border-color .15s,box-shadow .15s}
a.card:hover,a.rig:hover,a.lcard:hover{border-color:var(--line2);box-shadow:0 6px 20px rgba(22,24,28,.08);color:var(--text)}
a.lcard:hover strong,a.card:hover h4{color:var(--acc-ink)}
.ph{display:flex;align-items:center;justify-content:center;padding:6px;background:var(--panel);border:1px dashed var(--line2);border-radius:6px;color:var(--muted);font-size:12px;line-height:1.25;text-align:center}
.rig .ph{aspect-ratio:16/10;border:0;border-radius:0}
.thumb{width:72px;height:72px;flex:0 0 72px}.lcard .thumb{width:88px;height:88px;flex:0 0 88px}
.photo{aspect-ratio:16/10;font-size:14px}.photo.big{aspect-ratio:4/3}.photo.sm{aspect-ratio:auto;min-height:64px}
.big-num{font-weight:700;font-size:clamp(44px,13vw,76px);line-height:1}
.bar{position:relative;height:12px;background:var(--panel);border-radius:6px}
.bar i{position:absolute;top:0;height:12px;background:var(--acc);border-radius:6px}
.bar b{position:absolute;top:-4px;width:3px;height:20px;background:var(--text)}
.barlab{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:6px}
.tag{padding:3px 8px;background:var(--tint);color:var(--acc-hover);border-radius:4px;font-size:13px;font-weight:600;white-space:nowrap}
.note{padding:20px;background:var(--panel);border-radius:var(--r);gap:8px}
ul.plain{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column}
ul.plain li{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:40px;border-top:1px solid var(--line)}
dl.spec{margin:0;display:grid;grid-template-columns:minmax(110px,40%) 1fr;gap:10px 16px}dl.spec dt{color:var(--muted)}dl.spec dd{margin:0;font-weight:500}

/* tables */
.tbl{overflow:hidden}
table{width:100%;border-collapse:collapse;font-size:15px}
th{padding:12px 16px;text-align:left;color:var(--muted);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
td{padding:14px 16px;border-top:1px solid var(--line);vertical-align:middle}
.tbl.fixed table{table-layout:fixed}.tbl.fixed td{overflow-wrap:anywhere}
.tbl.fixed th,.tbl.fixed td{padding:10px 8px;font-size:14px}.tbl.fixed th{font-size:11px;letter-spacing:.02em}
.tbl.fixed th:first-child,.tbl.fixed td:first-child{padding-left:14px}

/* on a phone, the wide tables turn into stacked cards: one listing, category or set per card */
.cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.cards table,.cards tbody{display:block}
.cards tr{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:14px;border-top:1px solid var(--line)}
.cards tbody tr:first-child{border-top:0}
.cards td{display:block;padding:0;border:0}
.listings tr{position:relative;padding-left:98px;min-height:100px;align-content:start}
.listings td:nth-child(1){position:absolute;left:14px;top:14px}
.listings td:nth-child(2){font-family:var(--head);font-size:26px;font-weight:700;line-height:1;order:1}
.listings td:nth-child(8){order:2}
.listings td:nth-child(3){order:3;flex:1 1 100%;font-weight:600;line-height:1.35}
.listings td:nth-child(n+4):nth-child(-n+7){order:4;font-size:13px;color:var(--muted)}
.listings td:nth-child(9){order:5;flex:1 1 100%;margin-top:2px}
.listings td:empty{display:none}
.board td:nth-child(1){flex:1 1 100%;font-size:17px}
.board td:nth-child(2){font-family:var(--head);font-size:24px;line-height:1}
.board td:nth-child(3){color:var(--muted);font-size:14px}.board td:nth-child(3)::before{content:"Median "}
.board td:nth-child(4){flex:1 1 100%;padding:6px 0 2px}
.board td:nth-child(5){color:var(--muted);font-size:13px}.board td:nth-child(5)::after{content:" listings"}
.sets tr{position:relative;padding-left:98px;min-height:100px;align-content:start}
.sets td:nth-child(1){position:absolute;left:14px;top:14px}
.sets td:nth-child(2){flex:1 1 100%;font-size:17px;line-height:1.3}
.sets td:nth-child(3){flex:1 1 100%}
.sets td:nth-child(4){flex:1 1 100%;font-size:13px}.sets td:nth-child(4)::before{content:"New: "}
.sets td:nth-child(5){flex:1 1 100%;margin-top:6px}.sets td:nth-child(5) .btn{width:100%}

/* controls: every tap target is at least 44px tall */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;background:var(--acc-ink);color:#fff;border:1px solid var(--acc-ink);font:inherit;font-weight:600;text-decoration:none;border-radius:6px;white-space:nowrap;cursor:pointer;transition:background-color .15s}
.btn:hover{background:var(--acc-hover);color:#fff}.btn.alt{background:#fff;color:var(--text);border-color:var(--line2)}.btn.alt:hover{background:var(--bg);color:var(--text)}
.btn.hot{background:var(--acc);border-color:var(--acc);color:var(--text)}
.btns{display:flex;flex-wrap:wrap;gap:10px}.btns .btn{flex:1 1 auto}
.filters{padding:16px;gap:14px}
.fgroup{display:flex;flex-direction:column;gap:8px;min-width:0}.fgroup>span{font-size:13px;font-weight:600;color:var(--muted)}
.fgroup{--bleed:16px}
.fgroup .chips,.tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.fgroup .chips::-webkit-scrollbar,.tabs::-webkit-scrollbar{display:none}
.fgroup .chips{margin:0 calc(-1*var(--bleed));padding:2px var(--bleed)}
.chip{flex:0 0 auto;min-height:44px;padding:0 16px;font:inherit;font-weight:500;border-radius:22px;cursor:pointer;background:#fff;color:var(--text);border:1px solid var(--line2);white-space:nowrap}
.chip:hover{border-color:var(--text)}
.chip[aria-pressed=true]{background:var(--text);color:#fff;border-color:var(--text)}
.tabs{gap:0;border-bottom:1px solid var(--line)}
.tab{flex:0 0 auto;min-height:48px;padding:0 14px;font:inherit;font-weight:600;cursor:pointer;background:none;border:0;border-bottom:3px solid transparent;color:var(--muted);white-space:nowrap}
.tab[aria-pressed=true]{border-bottom-color:var(--acc);color:var(--text)}
form.inline{display:flex;flex-direction:column;gap:10px}form.inline .field{min-height:48px}

footer{background:var(--text);color:#cfd4db}
footer .wrap{display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding-top:36px;padding-bottom:40px}
footer img{height:28px;width:auto}footer p{font-size:14px}
footer nav{display:flex;flex-wrap:wrap;gap:4px 20px}footer a{color:#fff;font-size:14px;display:inline-flex;align-items:center;min-height:44px}

/* small tablets and up */
@media (min-width:600px){
  :root{--pad:24px}
  .g-rig{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
  .g-card{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
  .g-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
  .g-three{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
  .hero form{flex-direction:row}.hero form input{flex:1}.hero form .btn{padding:0 28px}
  .btns .btn{flex:0 0 auto}
  form.inline{flex-direction:row;flex-wrap:wrap}form.inline .field{flex:1 1 140px;width:auto}
  .card{padding:24px}.card.strong{padding:28px}
  .tbl.fixed th,.tbl.fixed td{padding:12px 14px;font-size:15px}.tbl.fixed th{font-size:12px}
  footer .wrap{flex-direction:row;flex-wrap:wrap;align-items:center;gap:24px}footer p{flex:1 1 320px}
}
/* tablets in landscape and desktops: real tables come back, header goes on one line */
@media (min-width:860px){
  :root{--gap:64px}
  .top{position:sticky;top:0;z-index:20}
  .top .wrap{flex-wrap:nowrap;gap:24px;padding-top:14px;padding-bottom:14px}
  .top img{height:36px}
  .find{flex:1 1 260px;max-width:420px}
  .top nav{width:auto;margin:0 0 0 auto;padding:0;overflow:visible;border-top:0;gap:8px;font-size:16px}
  main.wrap{padding-top:40px;padding-bottom:88px}
  .hero{padding:56px 0 48px}.hero .wrap{gap:24px}.hero+main.wrap{padding-top:56px}
  section,.stack{gap:20px}
  .lede{font-size:18px}
  .g-two{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .g-moves{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .g-rig{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
  .g-card{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
  .g-list{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}
  .rig .meta{flex-direction:row;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:0 14px}
  .rig.all{min-height:172px}
  .card .num{font-size:38px}
  .filters{padding:20px}
  .fgroup{flex-direction:row;align-items:center}.fgroup>span{min-width:86px;font-weight:400;font-size:14px}
  .fgroup .chips{flex-wrap:wrap;overflow:visible;margin:0;padding:0}
  .cards thead{position:static;width:auto;height:auto;clip-path:none;display:table-header-group}
  .cards table{display:table}.cards tbody{display:table-row-group}
  .cards tr{display:table-row;padding:0;min-height:0;position:static}
  .cards td{display:table-cell;padding:14px 16px;border-top:1px solid var(--line);position:static!important;font-family:inherit!important;font-size:15px!important;font-weight:inherit;color:inherit!important;line-height:inherit!important;margin:0}
  .cards td::before,.cards td::after{content:none!important}
  .listings td:nth-child(2),.board td:nth-child(2){font-weight:600}
  .listings td:empty{display:table-cell}
  .sets td:nth-child(5) .btn{width:auto}
  .bar{min-width:180px}
  tbody tr:hover td{background:#fafbfc}
  footer .wrap{padding-top:44px;padding-bottom:44px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* breakdown tables on phones: numbers never break mid-figure */
@media (max-width:599px){
  .tbl.fixed col:nth-child(1){width:27%!important}.tbl.fixed col:nth-child(2){width:37%!important}.tbl.fixed col:nth-child(3){width:18%!important}.tbl.fixed col:nth-child(4){width:18%!important}
  .tbl.fixed td:nth-child(n+3){white-space:nowrap;overflow-wrap:normal}
  .tbl.fixed th{font-size:10px;letter-spacing:0}
}
/* phones: the price comes before the photos on a product page */
.lead>:first-child{order:2}
@media (min-width:860px){.lead>:first-child{order:0}#deal .field{flex:0 1 220px}}
@media (max-width:599px){
  .tbl.fixed col:nth-child(1){width:31%!important}.tbl.fixed col:nth-child(2){width:35%!important}.tbl.fixed col:nth-child(3){width:17%!important}.tbl.fixed col:nth-child(4){width:17%!important}
  .tbl.fixed td{font-size:13px;overflow-wrap:normal}.tbl.fixed th:first-child,.tbl.fixed td:first-child{padding-left:12px}
}

/* deals band, and the controls for the listings table */
.band{background:var(--text);color:#fff;padding:20px 16px 24px;border-radius:var(--r);margin:0 calc(-1*var(--pad) + 4px)}
.band p{color:#cfd4db}.band .row a{color:#fff}
.controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.ctl{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--muted);min-width:0}
.ctl.wide2{grid-column:1/-1}
.ctl select.field{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6270' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;padding-right:36px;font-weight:400}
.ctl.check{flex-direction:row;align-items:center;gap:10px;min-height:44px;align-self:end;font-size:15px;color:var(--text)}
.ctl.check input{width:22px;height:22px;accent-color:var(--acc-ink)}
.morefilters summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--acc-ink)}
.morefilters .controls{padding-top:8px}
.ltitle{color:var(--text);font-weight:600;text-decoration:none}.ltitle:hover{color:var(--acc-ink);text-decoration:underline}
@media (min-width:600px){.band{padding:28px;margin:0}.controls{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:860px){.controls{grid-template-columns:2fr repeat(3,1fr)}.ctl.wide2{grid-column:auto}.cards.listings td:nth-child(3){font-weight:400}}
/* a price is never split across lines, at any screen width */
.num,.big-num,.barlab span,.tag,.tbl.fixed td:nth-child(n+2),.cards td:nth-child(2),.board td:nth-child(n+2),.sets td:nth-child(3) strong{white-space:nowrap}
.tbl.fixed td{overflow-wrap:normal}
.big-num{font-size:clamp(34px,10.5vw,76px)}
.tbl.fixed col:nth-child(1){width:30%!important}.tbl.fixed col:nth-child(2){width:37%!important}.tbl.fixed col:nth-child(3){width:17%!important}.tbl.fixed col:nth-child(4){width:16%!important}
@media (max-width:599px){
  .tbl.fixed col:nth-child(1){width:28%!important}.tbl.fixed col:nth-child(2){width:39%!important}.tbl.fixed col:nth-child(3){width:17%!important}.tbl.fixed col:nth-child(4){width:16%!important}
  .tbl.fixed th,.tbl.fixed td{padding:10px 5px;font-size:12.5px}.tbl.fixed th{font-size:9.5px}
  .tbl.fixed th:first-child,.tbl.fixed td:first-child{padding-left:10px}
}
@media (min-width:860px) and (max-width:1100px){.tbl.fixed th,.tbl.fixed td{padding:12px 8px;font-size:14px}.tbl.fixed th{font-size:11px;letter-spacing:.02em}.tbl.fixed th:first-child,.tbl.fixed td:first-child{padding-left:14px}}
/* the big price sizes itself to its card, so it always fits on one line */
.card.strong{container-type:inline-size}
.big-num{font-size:clamp(30px,13cqi,76px)}
@media (max-width:359px){.tbl.fixed th{font-size:8.5px}}
/* listing photos are always a square, whatever shape the seller's photo is */
img.thumb{width:88px;height:88px;min-width:88px;max-width:none;aspect-ratio:1/1;object-fit:cover;border-radius:6px;background:var(--panel);display:block}
.listings .ph.thumb,.lcard .thumb{width:88px;height:88px;min-width:88px;flex:0 0 88px}
@media (max-width:859px){.listings tr,.sets tr{padding-left:114px;min-height:116px}}
