/* Layout idea: a pickleball court. Court blue and green surfaces, white lines, the optic-yellow ball as the one accent.
   Single light theme by choice: the page keeps the court colors in every viewer theme. */
:root {
  color-scheme: light;
  --ink: #0d1b2a;
  --ink-2: #33475b;
  --muted: #5f7184;
  --paper: #f3f5ec;
  --card: #ffffff;
  --line: #dfe5d6;
  --court: #1d5fa8;
  --court-dark: #12406f;
  --court-soft: #e4eef9;
  --grass: #2e7d5b;
  --grass-soft: #e2f1e9;
  --ball: #dcf53b;
  --ball-dark: #b7cf12;
  --ball-ink: #3d4700;
  --coral: #ff6b4a;
  --coral-soft: #ffe7e1;
  --amber: #a66a00;
  --amber-soft: #fff1d6;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 10px 30px rgba(13, 27, 42, .06);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--court); }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ball); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--court-dark); color: #fff; border-bottom: 3px solid #fff; }
.top-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; flex: none; }
.logo-ball { width: 34px; height: 34px; }
.logo-ball .ball { fill: var(--ball); }
.logo-ball .hole { fill: var(--ball-dark); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; }
.wordmark b { color: var(--ball); font-weight: 800; }
.wordmark.small { font-size: 1.2rem; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #c9d6e3; text-decoration: none; padding: 8px 11px; border-radius: 999px; font-weight: 600; font-size: .94rem; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.on { color: var(--ink); background: var(--ball); }
.rack-btn { display: flex; align-items: center; gap: 7px; color: var(--ink); background: #fff; text-decoration: none; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: .92rem; flex: none; }
.rack-btn svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.rack-btn em { font-style: normal; background: var(--coral); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .78rem; padding: 0 6px; }
.rack-btn.on { box-shadow: 0 0 0 3px var(--ball); }
.promo { display: block; background: var(--ball); color: var(--ink); font-size: .9rem; padding: 8px 0; text-align: center; text-decoration: none; }
.promo[hidden] { display: none; }
.promo .promo-go { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.promo:hover .promo-go { text-decoration-thickness: 2px; }

main { padding-top: 26px; padding-bottom: 60px; min-height: 60vh; }

/* buttons, chips, cards */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:active { transform: translateY(1px); }
.btn.ball { background: var(--ball); color: var(--ink); box-shadow: 0 3px 0 var(--ball-dark); }
.btn.ball:hover { box-shadow: 0 5px 0 var(--ball-dark); transform: translateY(-1px); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost.light { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.tiny { padding: 6px 11px; font-size: .82rem; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .86rem; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; color: var(--grass); margin-bottom: 6px; font-family: var(--body); }
.lede { color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .84rem; }
.section { margin: 54px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--court-soft); color: var(--court-dark); }
.tag.est { background: var(--amber-soft); color: var(--amber); }
.tag.lab { background: var(--grass-soft); color: var(--grass); }
.tag.hot { background: var(--coral-soft); color: #c2412a; }
.tag.ok { background: var(--grass-soft); color: var(--grass); }
.tag.no { background: #f2f2f2; color: #666; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; background: var(--court); color: #fff; border-radius: 28px; padding: 46px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 10px var(--grass), inset 0 0 0 13px #fff; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--ball); }
.hero .lede { color: #e4eef9; }
.hero .court-art .surround { fill: var(--court-dark); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-stats { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--display); font-size: 1.8rem; color: var(--ball); line-height: 1; }
.hero-stats span { font-size: .82rem; color: #cfe0f5; }
.court-art { width: 100%; height: auto; max-height: 420px; }
.court-art .surround { fill: var(--grass); }
.court-art .surface { fill: var(--court); }
.court-art .kitchen { fill: var(--ball); opacity: .22; }
.court-art .lines { stroke: #fff; stroke-width: 2.2; fill: none; }
.court-art .netline { stroke: #fff; stroke-width: 4; }
.court-art .trail { stroke: var(--ball); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; fill: none; opacity: .85; }
.court-art .pball { fill: var(--ball); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillars .pillar { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 16px 0 0; border-top: 4px solid var(--court); }
.pillar h3 { display: flex; align-items: center; gap: 10px; }
.pillar .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ball); color: var(--ink); font-family: var(--display); font-weight: 800; }

/* hero photo cards on the court */
.hero-art { position: relative; }
.hero-art .court-art { display: block; margin: 0 auto; }
.fan { position: absolute; width: 44%; aspect-ratio: 3 / 4; background: #fff; border-radius: 18px; overflow: hidden; display: block;
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 18px 40px rgba(5, 25, 50, .35); transition: transform .25s ease; }
.fan img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px 6px 26px; }
.fan-1 { left: 0; top: 18%; transform: rotate(-9deg); }
.fan-2 { left: 28%; top: 6%; transform: rotate(2deg); z-index: 2; }
.fan-3 { right: 0; top: 20%; transform: rotate(10deg); }
.fan:hover, .fan:focus-visible { transform: rotate(0) translateY(-8px) scale(1.04); z-index: 3; }
.fan-score { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; background: var(--ball); color: var(--ink);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1rem; box-shadow: 0 2px 0 var(--ball-dark); }
.fan-name { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: .75rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2); }

/* shop by category */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 168px; padding: 20px; color: #fff; text-decoration: none;
  display: grid; grid-template-columns: 1fr 44%; gap: 10px; align-items: center; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13,27,42,.08), 0 18px 36px rgba(13,27,42,.16); }
.cat h3 { color: #fff; margin: 0; font-size: 1.45rem; }
.cat p { margin: 4px 0 12px; font-size: .9rem; opacity: .88; }
.cat-go { display: inline-block; font-weight: 800; font-size: .86rem; background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; }
.cat-ph { background: #fff; border-radius: 16px; aspect-ratio: 1; overflow: hidden; transform: rotate(4deg); box-shadow: 0 10px 24px rgba(0,0,0,.22); transition: transform .25s; }
.cat:hover .cat-ph { transform: rotate(0) scale(1.04); }
.cat-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.c-paddles { background: var(--court); }
.c-deals { background: var(--coral); }
.c-deals .cat-go { background: rgba(0,0,0,.14); }
.c-shoes { background: var(--grass); }
.c-balls { background: var(--ink); }
.c-gear { background: #7a3e9d; }
.c-apparel { background: #0f7c86; }

/* paddle cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(13,27,42,.06), 0 16px 36px rgba(13,27,42,.10); }
.pcard-top { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; }
.pcard-top > div { padding-right: 60px; min-width: 0; }
.sil { width: 100%; height: auto; display: block; }
.sil .face { stroke: var(--ink); stroke-width: .12; }
.sil .grip { fill: var(--ink); }
.pcard h3 { font-size: 1.08rem; margin: 0; }
.pcard h3 a { color: inherit; text-decoration: none; }
.pcard h3 a:hover { text-decoration: underline; }
.brand { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.meta { display: flex; flex-wrap: wrap; gap: 5px; }
.overall { position: absolute; top: 14px; right: 14px; width: 56px; height: 56px; border-radius: 50%; background: var(--ball); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.1rem; box-shadow: 0 2px 0 var(--ball-dark); }
.overall small { display: block; font-size: .75rem; font-family: var(--body); font-weight: 700; margin-top: -4px; letter-spacing: .04em; }
.overall.est { background: var(--amber-soft); box-shadow: 0 2px 0 #f0cf8c; }
.bars { display: grid; gap: 5px; }
.bar { display: grid; grid-template-columns: 84px 1fr 30px; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-2); }
.bar i { display: block; height: 8px; border-radius: 999px; background: #edf0e6; overflow: hidden; position: relative; }
.bar i b { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--court); }
.bar.est i b { background: repeating-linear-gradient(45deg, #e8b85c, #e8b85c 4px, #f3d491 4px, #f3d491 8px); }
.bar span:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pcard-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .84rem; cursor: pointer; }
.icon-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn.cmp.on { background: var(--court); border-color: var(--court); }

/* deals */
.nav a.nav-deals { color: var(--ball); }
.nav a.nav-deals.on { color: var(--ink); }
.was { color: var(--muted); font-size: .85rem; font-weight: 600; font-family: var(--body); }
.deal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.deal .off { position: absolute; top: 14px; right: 14px; background: var(--coral); color: #fff; border-radius: 14px; padding: 6px 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1; text-align: center; transform: rotate(3deg); }
.deal .off small { display: block; font: 700 .75rem var(--body); letter-spacing: .08em; text-transform: uppercase; }
.deal-top { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding-right: 64px; }
.deal-top .mono { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; }
.deal h3 { font-size: 1.05rem; margin: 0; }
.deal h3 a { color: inherit; text-decoration: none; }
.deal h3 a:hover { text-decoration: underline; }
.dprice b { font-family: var(--display); font-size: 1.5rem; }
.dprice s { color: var(--muted); font-weight: 600; margin-left: 6px; }

/* explorer */
.explorer { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.filters { position: sticky; top: 84px; display: grid; gap: 16px; }
.fgroup h4 { font-family: var(--body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 7px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--court); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sort { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.empty { text-align: center; padding: 40px; color: var(--muted); }

/* compare bar */
.compare-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 40px rgba(13,27,42,.35); max-width: calc(100% - 24px); }
.compare-bar[hidden] { display: none; }
.compare-bar .names { font-size: .88rem; color: #c9d6e3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.compare-bar .x { background: transparent; border: 0; color: #9fb3c7; cursor: pointer; font-weight: 700; }

/* detail */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.detail-art { background: var(--court); border-radius: 24px; padding: 26px; position: sticky; top: 84px; }
.detail-art .sil { max-width: 220px; margin: 0 auto; }
.detail-art .sil .face { stroke: #fff; stroke-width: .1; }
.detail-art .sil .grip { fill: #0b2440; }
.radar { width: 100%; max-width: 330px; height: auto; display: block; }
.radar .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .axis { stroke: var(--line); stroke-width: 1; }
.radar .lbl { font: 600 13px var(--body); fill: var(--ink-2); }
.radar .shape { stroke-width: 2.5; fill-opacity: .18; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; }
.spec-table td { font-weight: 600; }
.spec-table.wide th { width: auto; }
.src { font-size: .8rem; color: var(--muted); }
.src a { color: var(--muted); }
.buy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.suits { display: grid; gap: 8px; padding: 0; list-style: none; margin: 0; }
.suits li { padding-left: 26px; position: relative; }
.suits li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ball); box-shadow: inset 0 0 0 3px var(--ball-dark); }

/* compare page */
.cmp-head { display: grid; gap: 16px; }
.cmp-table-wrap { overflow-x: auto; }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
.cmp-table thead th { font-family: var(--display); font-size: 1.05rem; }
.cmp-table .best { background: var(--grass-soft); font-weight: 800; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.overlay-art { background: var(--court); border-radius: 22px; padding: 20px; }
.overlay-art .sil .face { fill-opacity: .25; stroke-width: .14; }

/* quiz */
.quiz { max-width: 820px; margin: 0 auto; }
.quiz-card { padding: 30px; }
.qprogress { display: flex; gap: 6px; margin-bottom: 18px; }
.qprogress span { height: 6px; flex: 1; border-radius: 999px; background: var(--line); }
.qprogress span.done { background: var(--grass); }
.qprogress span.now { background: var(--ball-dark); }
.qopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.qopt { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: border-color .12s, background .12s; }
.qopt:hover { border-color: var(--court); }
.qopt.on { border-color: var(--ink); background: var(--ball); }
.qopt b { font-size: 1.02rem; }
.qopt span { font-size: .86rem; color: var(--ink-2); }
.qnav { display: flex; justify-content: space-between; margin-top: 22px; }
.match-list { display: grid; gap: 14px; }
.match { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; }
.match .pct { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--grass); line-height: 1; text-align: right; }
.match .pct small { display: block; font: 600 .78rem var(--body); color: var(--muted); }
.why { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.rank { font-family: var(--display); font-weight: 800; font-size: .9rem; background: var(--ink); color: var(--ball); border-radius: 999px; padding: 2px 10px; }

/* gear pages */
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.gcard .mono { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.05rem; }
.gcard-head { display: flex; gap: 12px; align-items: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.note-box { background: var(--court-soft); border-radius: 14px; padding: 14px 16px; color: var(--court-dark); font-size: .95rem; }
.note-box.ball { background: #f6fbd6; color: var(--ball-ink); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .93rem; }
.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbf6; }
.data-table tr:last-child td { border-bottom: 0; }

/* kits */
.kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kit { display: flex; flex-direction: column; gap: 10px; }
.kit-top { border-radius: 14px; padding: 16px; color: #fff; }
.kit-top h3 { color: #fff; margin: 0; }
.kit-top .total { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--ball); }
.kit ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.kit li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; font-size: .92rem; }
.kit li span:first-child { color: var(--ink-2); }
.kit li a { font-weight: 700; color: var(--ink); }

/* ratings guide */
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric h3 { display: flex; align-items: center; gap: 8px; }
.formula { font-family: ui-monospace, Consolas, monospace; font-size: .84rem; background: #f4f6ef; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--ink); overflow-x: auto; white-space: pre-wrap; }
.levels { display: grid; gap: 10px; }
.level { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; }
.level .lv { font-family: var(--display); font-weight: 800; font-size: 1.4rem; background: var(--ink); color: var(--ball); border-radius: 12px; text-align: center; padding: 10px 0; }

/* rack */
.rack-list { display: grid; gap: 10px; }
.rack-row { display: grid; grid-template-columns: 50px 1fr auto auto; gap: 14px; align-items: center; }
.copy-fallback { width: 100%; font: .82rem/1.4 ui-monospace, Consolas, monospace; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; margin-top: 8px; }

.toast { position: fixed; top: 76px; right: 16px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .9rem; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

.foot { background: var(--court-dark); color: #cfe0f5; padding: 34px 0; border-top: 3px solid #fff; }
.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 6px 0 0; font-size: .9rem; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: #fff; font-weight: 600; font-size: .9rem; }

/* Product photos (self-hosted, 640 x 640 on white) */
.overall { z-index: 2; }
.card-photo { display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.pcard .card-photo { margin: -16px -16px 2px; border-radius: var(--radius) var(--radius) 0 0; }
.gcard .card-photo { margin: -18px -18px 4px; border-radius: var(--radius) var(--radius) 0 0; }
.card-photo img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s ease; }
.card-photo.no-photo { display: grid; place-items: center; }
.card-photo.no-photo span { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: #fff; opacity: .9; }
.pcard:hover .card-photo img, .gcard:hover .card-photo img { transform: scale(1.04); }
.pcard.has-photo .pcard-top { grid-template-columns: 1fr; }
.pcard.has-photo .pcard-top > div { padding-right: 0; }
.thumb { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: block; }
.thumb.sm { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.thumb.xs { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.match .thumb { width: 90px; height: 90px; border-radius: 14px; }
.rack-row .thumb { width: 50px; height: 50px; }
.cmp-thumb { width: 72px; height: 72px; margin-bottom: 8px; }
.kit-item { display: inline-flex; align-items: center; gap: 8px; text-align: right; }
.deal .off { z-index: 2; }
.deal .card-photo { margin: -16px -16px 2px; border-radius: var(--radius) var(--radius) 0 0; }
.deal.has-photo .deal-top { grid-template-columns: 1fr; padding-right: 0; }
.deal:hover .card-photo img { transform: scale(1.04); }
.ppb { display: flex; align-items: baseline; gap: 6px; }
.ppb b { font-family: var(--display); font-size: 1.7rem; color: var(--grass); line-height: 1; }
.ppb span { color: var(--muted); font-size: .86rem; font-weight: 600; }
.kit-photos { display: flex; gap: 8px; }
.kit-ph { flex: 1; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 25%; }
.kit-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mini { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.mini:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(13,27,42,.06), 0 16px 36px rgba(13,27,42,.10); }
.mini-ph { aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.mini-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mini-ph .sil { width: 34%; }
.mini-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.mini-body b { font-size: .98rem; line-height: 1.25; }
.mini-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-weight: 700; }
.mini-score { background: var(--ball); border-radius: 999px; padding: 2px 9px; font-family: var(--display); font-weight: 800; font-size: .9rem; }
.mini-score.est { background: var(--amber-soft); }
.mini-label { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 10px;
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.foot-fine { font-size: .8rem !important; color: #9fb3c7; max-width: 60ch; }
.detail-photo { background: #fff; border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.detail-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.detail-art .credit { color: #cfe0f5; text-align: center; margin: 8px 0 18px; }
.detail-art .credit a { color: #fff; }
.detail-art.has-photo .sil-wrap { border-top: 1px solid rgba(255,255,255,.25); padding-top: 18px; }
.detail-art.has-photo .sil { max-width: 120px; }
.credit { font-size: .76rem; color: var(--muted); margin: 6px 0 0; }

/* Filters button (phones and tablets only) */
.filter-toggle { display: none; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-done { display: none; }

/* Touch screens and narrow windows: tap targets of at least 44 x 44 px (WCAG 2.5.5, Apple HIG). */
@media (max-width: 900px), (pointer: coarse) {
  .logo, .rack-btn { min-height: 44px; }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .promo { padding: 12px 0; }
  .btn, .btn.small, .btn.tiny { min-height: 44px; }
  .icon-btn { min-height: 44px; min-width: 44px; padding: 8px 14px; justify-content: center; font-size: .88rem; }
  .chip { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
  .toggle { min-height: 44px; }
  .toggle input { width: 22px; height: 22px; }
  .compare-bar .x { min-height: 44px; padding: 0 12px; }
  .foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .pcard h3 a, .deal h3 a, .match h3 a, .rack-row strong a { display: block; padding: 13px 0; margin: -13px 0; }
  body.has-cmp main { padding-bottom: 110px; }
}

@media (max-width: 900px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .filter-toggle { display: inline-flex; margin-bottom: 12px; }
  .filters:not(.open) { display: none; }
  .filter-done { display: inline-flex; }
  #results { scroll-margin-top: 140px; } /* below the sticky header, which wraps to two rows on phones */
  .sort { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; max-width: 100%; }
  .sort::-webkit-scrollbar { display: none; }
  .results-head { flex-direction: column; align-items: stretch; }
  .hero { grid-template-columns: 1fr; padding: 30px 24px; }
  .court-art { max-height: 260px; }
  .filters { position: static; grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail-art { position: static; }
  .cats { grid-template-columns: 1fr 1fr; }
  .minis { grid-template-columns: 1fr 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .kits, .guide, .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-inner { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .rack-btn { margin-left: auto; }
  .rack-btn span { display: none; }
  .filters { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .match { grid-template-columns: 64px 1fr; }
  .match .pct { grid-column: 2; text-align: left; }
  .cats { grid-template-columns: 1fr; }
  .cat { min-height: 140px; grid-template-columns: 1fr 38%; }
  .rack-row { grid-template-columns: 40px 1fr; }
  .rack-row .thumb { width: 40px; height: 40px; }
  .match .thumb { width: 64px; height: 64px; }
  .detail-photo { max-width: 360px; margin: 0 auto; }
  .card { padding: 18px; }
  .quiz-card { padding: 20px; }
  .compare-bar .names { max-width: 30vw; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
