/* MotoPick by Arcade Performance: shared styles (public site + admin).
   Brand colours from the Arcade Performance logo: black, red, white. */
:root {
  --bg: #f7f7f8; --surface: #fff; --line: #e7e7ea; --line-2: #f0f0f2;
  --text: #0b0b0c; --muted: #6b6b76; --faint: #9a9aa3;
  --accent: #e3121b; --accent-ink: #b10d14; --accent-soft: #fdecec; --ink: #0b0b0c;
  --ok: #15803d; --ok-soft: #ecfdf3; --warn: #a16207; --warn-soft: #fef9e7; --info-soft: #f1f3f9;
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(17,17,19,.04), 0 4px 16px rgba(17,17,19,.05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-size: 12px; background: var(--line-2); padding: 1px 5px; border-radius: 5px; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; border-bottom: 3px solid var(--accent); }
.bar { max-width: 1160px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 10px; color: #fff; }
.logo img { width: 40px; height: 40px; border-radius: 50%; display: block; background: #fff; }
.logo .wm { font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1; display: flex; flex-direction: column; }
.logo .wm em { font-style: normal; color: var(--accent); }
.logo .wm small { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a3a3ab; margin-top: 4px; }
.logo .wm b { font-weight: 800; }
.bar .sp { flex: 1; }
.bar a.small { font-size: 14px; text-decoration: none; color: #c9c9cf; white-space: nowrap; }
.bar a.small:hover { color: #fff; }
.pill-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }

main { max-width: 1160px; margin: 0 auto; padding: 8px 20px 40px; min-height: 60vh; }
.hero { padding: 28px 0 18px; }
.hero h1 { font-size: clamp(26px, 4.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 10px; font-weight: 750; }
.hero p { color: var(--muted); margin: 0; max-width: 620px; font-size: 16px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 8px; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; }

/* bike cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bike { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; display: block; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.bike:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #dcdce0; }
.bike .art { aspect-ratio: 16/10; background: var(--line-2); color: var(--accent); display: flex; align-items: center; justify-content: center; position: relative; }
.bike .art svg { width: 60%; height: 60%; }
.bike .art img { width: 100%; height: 100%; object-fit: cover; }
.bike .art .alias { position: absolute; right: 8px; bottom: 8px; font-size: 11px; background: rgba(17,17,19,.6); color: #fff; padding: 2px 8px; border-radius: 99px; }
.bike .info { padding: 14px 16px 16px; }
.bike h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.bike .spec { font-size: 13px; color: var(--muted); }
.bike .count span, .bike .count b { white-space: nowrap; }
.bike .count { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; }
.bike .count b { color: var(--accent); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

/* bike page head */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--text); }
.bikehead { display: flex; gap: 18px; align-items: center; padding: 18px 0 6px; }
.bikehead img { width: 112px; height: 74px; object-fit: cover; border-radius: var(--r-sm); background: var(--line-2); flex: 0 0 auto; }
.bikehead h1 { font-size: clamp(22px, 4vw, 32px); letter-spacing: -.025em; margin: 0 0 8px; line-height: 1.15; }
.views { display: inline-flex; gap: 4px; padding: 4px; margin: 14px 0 0; background: #ececef; border-radius: 99px; }
.views a { padding: 7px 16px; font-size: 14px; text-decoration: none; color: var(--muted); border-radius: 99px; font-weight: 500; }
.views a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(17,17,19,.1); }

/* search + filters */
.searchwrap { position: relative; margin-top: 16px; }
.searchwrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search { width: 100%; padding: 12px 16px 12px 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; font-size: 14px; }
.filters select, .filters label { border: 1px solid var(--line); background: var(--surface); padding: 7px 12px; border-radius: 99px; font-size: 13px; color: var(--text); cursor: pointer; }
.filters label { display: inline-flex; gap: 6px; align-items: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 7px 14px; border-radius: 99px; cursor: pointer; font-size: 14px; }
.chip.on { border-color: var(--text); background: var(--text); color: #fff; }
h2.cat { font-size: 18px; letter-spacing: -.015em; margin: 28px 0 10px; }

/* product cards */
.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.part { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, border-color .2s; }
.part:hover { box-shadow: var(--shadow); border-color: #dcdce0; }
.part .pic { aspect-ratio: 1/1; overflow: hidden; display: block; position: relative; background: #fff; }
.part .pic svg, .part .pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vlabel { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 10px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(17,17,19,.72); border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vlabel.type { background: rgba(17,17,19,.55); }
.vlabel.all { background: var(--ok); }
h3.pname { font-size: 15px; margin: 22px 2px 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
h3.pname span { font-size: 13px; font-weight: 400; color: var(--muted); }
h3.pname .more { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.part .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.part h4 { margin: 0 0 2px; font-size: 14px; font-weight: 500; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fits, .meta { font-size: 12px; color: var(--muted); }
.hint { font-size: 12px; color: var(--accent); }
.price { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; background: var(--ok); color: #fff; border-radius: 99px; z-index: 1; }
.mall { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 5px; background: #d0011b; color: #fff; border-radius: 4px; margin-right: 4px; vertical-align: 1px; }
.btn { margin-top: auto; display: block; text-align: center; text-decoration: none; padding: 9px 12px; border-radius: 10px; background: var(--text); color: #fff; font-weight: 600; font-size: 13px; border: 0; cursor: pointer; transition: background .15s; }
.part .btn { margin-top: 10px; }
.btn:hover { background: #2b2b31; }
.btn.accent { background: var(--accent); } .btn.accent:hover { background: var(--accent-ink); }
.btn.alt { background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.btn.alt:hover { border-color: var(--text); }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 28px 0; }
.box h3 { margin: 0 0 10px; font-size: 16px; }
.box ul { margin: 0; padding-left: 18px; color: var(--muted); }
.box li { margin: 5px 0; }
.note { font-size: 13px; color: var(--muted); }
.warn { font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: var(--r-sm); padding: 10px 14px; margin: 12px 0; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }


/* full catalog: systems > assemblies > parts */
.sum { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.syslist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
details.sys { border-top: 1px solid var(--line-2); }
details.sys:first-child { border-top: 0; }
details.sys > summary { cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 15px; list-style: none; display: flex; gap: 10px; align-items: center; }
details.sys > summary:hover { background: #fbfbfc; }
summary::-webkit-details-marker { display: none; }
details.sys > summary::after, details.asm > summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(-45deg); margin-left: 6px; transition: transform .2s; flex: 0 0 auto; }
details[open].sys > summary::after, details[open].asm > summary::after { transform: rotate(45deg); }
details.sys > summary .n, details.asm > summary .n { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--muted); white-space: nowrap; }
details.asm { margin: 0 14px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fcfcfd; }
details.asm > summary { cursor: pointer; padding: 10px 14px; font-size: 14px; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; }
details.prow { border-top: 1px solid var(--line-2); background: var(--surface); }
details.prow > summary { cursor: pointer; list-style: none; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
details.prow > summary:hover { background: #fafafb; }
details.prow:last-child { border-radius: 0 0 var(--r-sm) var(--r-sm); }
details.prow .pn { flex: 1 1 180px; }
details.prow .q { font-size: 12px; color: var(--faint); }
.st { font-size: 11.5px; font-weight: 500; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.st.ok { background: var(--ok-soft); color: var(--ok); } .st.need { background: var(--line-2); color: var(--muted); }
.st.unk { background: var(--warn-soft); color: var(--warn); } .st.na { background: var(--line-2); color: var(--faint); }
.st.perf { background: var(--accent-soft); color: var(--accent-ink); } .st.ref { background: var(--info-soft); color: #4b5578; }
.bb { border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 99px; cursor: pointer; }
.bb:hover { border-color: var(--text); }
.bb.in { background: var(--text); border-color: var(--text); color: #fff; }
.pbody { padding: 4px 16px 18px; font-size: 14px; }
.pbody .facts { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.pbody .parts { margin-top: 10px; }
.needsrc { background: var(--line-2); padding: 12px 14px; border-radius: var(--r-sm); color: var(--muted); font-size: 13px; }
.needsrc a { color: var(--accent); }
.hidden-sys { font-size: 13px; color: var(--muted); margin: 12px 2px; }

/* tables (coverage) */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table.cov { width: 100%; border-collapse: collapse; font-size: 13px; }
table.cov th, table.cov td { border-bottom: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; }
table.cov th { color: var(--muted); font-weight: 500; background: #fbfbfc; }
table.cov tr:last-child td { border-bottom: 0; }
.bar-in { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; min-width: 60px; }
.bar-in i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }

/* build list */
.bitem { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 14px; background: var(--surface); flex-wrap: wrap; }
.bitem:first-child { border-top: 0; }
.bitem .pn { flex: 1 1 200px; }
.bitem a { color: var(--accent); }

/* header nav */
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { font-size: 14px; text-decoration: none; color: #c9c9cf; padding: 7px 12px; border-radius: 99px; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a.on { color: #fff; background: rgba(227,18,27,.9); }

/* home extras */
.stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.stats b { color: var(--text); font-size: 16px; margin-right: 3px; }
.sec { margin: 36px 0 0; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sechead h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.sechead p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
a.more { color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.badge.hot { background: var(--accent); }
h2.cat .ico, details.sys > summary .ico { margin-right: 6px; }
h2.cat span:not(.ico) { font-size: 13px; font-weight: 400; color: var(--muted); }
.howto-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 0; padding: 18px 22px; border-radius: var(--r); background: var(--ink); color: #fff; text-decoration: none; border-left: 4px solid var(--accent); }
.howto-cta .go { font-weight: 700; color: #fff; background: var(--accent); padding: 8px 14px; border-radius: 99px; white-space: nowrap; font-size: 14px; }

/* posts (Balita) */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post .pimg { aspect-ratio: 16/9; background: var(--line-2); }
.post .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbody2 { padding: 14px 16px 16px; }
.post h3 { margin: 8px 0 6px; font-size: 16px; letter-spacing: -.01em; line-height: 1.3; }
.post p { margin: 0; font-size: 14px; color: var(--muted); }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.ptype, .pin, .soon { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.ptype { background: var(--line-2); color: var(--text); }
.ptype.t-update { background: var(--info-soft); color: #33406b; }
.ptype.t-event { background: var(--accent-soft); color: var(--accent-ink); }
.ptype.t-tutorial { background: var(--ok-soft); color: var(--ok); }
.pin { background: var(--ink); color: #fff; }
.soon { background: var(--accent); color: #fff; }
.article { max-width: 720px; margin: 18px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; }
.article h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.025em; line-height: 1.15; margin: 10px 0 14px; }
.article .cover { width: 100%; border-radius: var(--r-sm); margin: 6px 0 14px; display: block; }
.evbox { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 12px 16px; background: var(--accent-soft); border-radius: var(--r-sm); margin-bottom: 14px; font-size: 14px; }
.evbox b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.prose { font-size: 15px; line-height: 1.65; }
.prose p { margin: 0 0 12px; } .prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose a { color: var(--accent); }
.btn.inline { display: inline-block; margin-top: 6px; padding: 10px 18px; }

/* tutorial */
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; max-width: 760px; }
.steps li { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.steps .num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: 4px 0 6px; font-size: 16px; }
.steps .prose { color: var(--muted); font-size: 14px; }
.stepimg { max-width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line); margin-top: 6px; display: block; }

/* contact */
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); max-width: 640px; overflow: hidden; }
.crow { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line-2); font-size: 14px; }
.crow:first-child { border-top: 0; }
.crow span { color: var(--muted); }
.crow b { font-weight: 600; text-align: right; word-break: break-word; }
.crow a { color: var(--accent); text-decoration: none; }
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.linkgrid a { display: flex; justify-content: space-between; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.linkgrid a:hover { border-color: var(--accent); color: var(--accent); }

/* ads */
.adslot { display: block; position: relative; margin: 24px 0 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.adslot img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.adlabel { position: absolute; top: 8px; right: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: rgba(11,11,12,.6); color: #fff; }

/* footer */
footer.site { background: var(--ink); color: #a3a3ab; font-size: 13px; margin-top: 40px; border-top: 3px solid var(--accent); }
footer.site > * { max-width: 1160px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 20px; }
.fcol { display: flex; flex-direction: column; gap: 8px; }
.fcol h4 { margin: 0 0 4px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.fcol a { color: #d4d4d8; text-decoration: none; word-break: break-word; }
.fcol a:hover { color: #fff; }
.fbrand p { margin: 6px 0 0; max-width: 340px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.socials a { border: 1px solid #34343a; padding: 5px 12px; border-radius: 99px; font-size: 12px; }
.socials a:hover { border-color: var(--accent); }
.fnote { margin-top: 8px; padding-top: 18px; border-top: 1px solid #24242a; }
.credits { font-size: 12px; color: #74747c; }
.credits a, .fcopy a { color: #a3a3ab; }
.fcopy { padding-bottom: 40px; }

@media (max-width: 560px) {
  .bar { flex-wrap: wrap; row-gap: 6px; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
  .posts { grid-template-columns: 1fr; }
  .howto-cta { flex-direction: column; align-items: flex-start; }
  .article { padding: 18px; }
  .steps li { padding: 14px; gap: 12px; }

  body { font-size: 14px; }
  .bar { padding: 8px 12px; gap: 12px; }
  .bar a.hide-sm { display: none; }
  .logo img { width: 36px; height: 36px; }
  .logo .wm { font-size: 18px; }
  .logo .wm small { font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
  .bike .count { flex-wrap: wrap; gap: 0 8px; font-size: 12px; }
  main { padding: 4px 12px 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bike .info { padding: 10px 12px 12px; }
  .bike h3 { font-size: 14px; }
  .bike .spec { font-size: 12px; }
  .parts { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .part .body { padding: 10px; }
  .bikehead img { width: 84px; height: 56px; }
  details.asm { margin: 0 8px 8px; }
  details.sys > summary { padding: 13px 14px; }
}
