/* SELVO round 15 (2026-11-20): the community part. /community/ (promises, you asked we built, ideas board, test notes,
   rides, dream box), the home section, and the price breakdown + rider promises strip on every bike page.
   Black and white like the rest, flat fills, no borders on dark, nothing teleports, presses only dim. */

/* ---------- page frame ---------- */
.cm .cf-sub { color: var(--mute); margin-top: 10px; max-width: 640px; font-size: 16px; line-height: 1.5; }
.cm-sec { padding-top: clamp(56px, 7vw, 104px); scroll-margin-top: 130px; }
.cm-sec > h2 { font-size: clamp(30px, 3.6vw, 48px); }
.cm-sec:last-of-type { padding-bottom: clamp(60px, 7vw, 100px); }
.cm .go { font-size: 15px; }
.cm-demo { margin-top: 14px; font-size: 13px; color: var(--mute); max-width: 640px; }

/* in-page tabs: one white thumb glides to the section on screen (r15.js) */
html:has(.nav.away) .cm-nav { top: 8px; }
.cm-nav { position: sticky; top: calc(var(--nav, 60px) + 8px); z-index: 5; margin-top: 26px; transition: top .5s var(--out); }
.cm-tabs { position: relative; display: flex; gap: 2px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 12px; background: rgba(240, 240, 243, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.cm-tabs::-webkit-scrollbar { display: none; }
.cm-tabs a { position: relative; z-index: 1; flex: none; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--mute); text-decoration: none; transition: color .25s linear; }
.cm-tabs a:hover, .cm-tabs a.on { color: var(--ink); }
.cm-tabs .thumb { position: absolute; z-index: 0; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); opacity: 0;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), width .22s cubic-bezier(.22, 1, .36, 1), opacity .2s linear; }

/* ---------- promises ---------- */
.cm-pr { list-style: none; margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.cm-pr li { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 22px; background: var(--grey); border-radius: 20px; }
.cm-pr h3 { font-size: clamp(20px, 1.7vw, 24px); }
.cm-pr p { font-size: 15.5px; line-height: 1.55; flex: 1; }
.cm-pr .go { margin-top: 6px; color: var(--ink); }
@media (max-width: 760px) { .cm-pr { grid-template-columns: minmax(0, 1fr); } .cm-pr li { padding: 20px; } }

/* ---------- you asked, we built ---------- */
.cm-asked { list-style: none; margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.cm-asked li { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--hair); }
.cm-asked .mo { font-size: 13px; color: var(--mute); }
.cm-asked blockquote { margin: 0; font: 600 clamp(19px, 1.7vw, 23px)/1.3 'Clash Display', sans-serif; text-wrap: balance; }
.cm-asked blockquote::before { content: '\201C'; } .cm-asked blockquote::after { content: '\201D'; }
.cm-asked .what { font-size: 15px; line-height: 1.5; color: var(--ink); flex: 1; }
.cm-asked .what b { font-weight: 600; }
@media (max-width: 760px) { .cm-asked { grid-template-columns: minmax(0, 1fr); } .cm-asked li { padding: 20px; } }

/* ---------- ideas board ---------- */
.cm-board { margin-top: clamp(22px, 2.6vw, 34px); }
.cm-ctl { overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.cm-ideas { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; transition: opacity .2s linear, translate .35s var(--out); }
.cm-ideas.fade { opacity: 0; translate: 0 6px; }
.cm-idea { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--out), opacity .35s linear, margin .45s var(--out); }
.cm-idea > .in { overflow: hidden; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: center; padding: 18px 22px; background: var(--grey); border-radius: 18px; }
.cm-idea.enter, .cm-idea.gone { grid-template-rows: 0fr; opacity: 0; margin-bottom: -10px; }
.cm-idea[hidden] { display: none; }
.cm-idea .kd { font-size: 13px; color: var(--mute); }
.cm-idea h3 { font-size: clamp(18px, 1.5vw, 21px); margin-top: 2px; }
.cm-idea .tx > p:not(.kd) { font-size: 15px; line-height: 1.5; margin-top: 4px; }
.cm-idea .bl { margin-top: 8px !important; }
.cm-idea .side { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cm-st { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 6px; white-space: nowrap; }
.st-look { background: #e6e6ea; color: #3a3a40; }
.st-test { background: #f6ecd6; color: #6e4a00; }
.st-built { background: #dcefe1; color: #1c5f30; }
.st-mine { background: #e1e8f4; color: #1f3f74; }
.cm-want, .cm-x { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; font: 600 14px 'Satoshi', sans-serif; cursor: pointer; background: var(--grey-2); color: var(--ink); transition: background-color .25s linear, color .25s linear, opacity .1s linear; }
.cm-want:hover, .cm-x:hover { background: var(--grey-3); }
.cm-want:active, .cm-x:active { opacity: .8; }
.cm-want[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cm-want .lab { display: grid; } .cm-want .lab > span { grid-area: 1 / 1; transition: opacity .25s linear, translate .35s var(--out); }
.cm-want .lab > span:last-child { opacity: 0; translate: 0 6px; }
.cm-want[aria-pressed="true"] .lab > span:first-child { opacity: 0; translate: 0 -6px; }
.cm-want[aria-pressed="true"] .lab > span:last-child { opacity: 1; translate: 0 0; }
.cm-x { background: transparent; color: var(--mute); padding: 0 10px; }
.cm-empty { margin-top: 18px; color: var(--mute); }
@media (max-width: 600px) { .cm-idea > .in { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; } .cm-idea .side { justify-content: flex-start; } }

/* forms (post an idea, plan a ride, the dream box): flat grey card, white fields, 10 px corners */
.cm-post, .cm-ride, .cm-dbox { margin-top: 18px; padding: clamp(18px, 2.6vw, 28px); background: var(--grey); border-radius: 22px; max-width: 760px; }
.cm-post h3, .cm-ride h3 { font-size: clamp(19px, 1.6vw, 22px); margin-bottom: 14px; }
.cm-f { margin-top: 12px; }
.cm-f label, .cm-f .lb, .cm-dbox > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.cm-f small { font-weight: 400; color: var(--mute); }
.cm input[type=text], .cm textarea { width: 100%; border: 0; border-radius: 10px; background: #fff; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .2s linear; resize: vertical; }
.cm input[type=text] { height: 46px; }
.cm input[type=text]:focus, .cm textarea:focus { outline: none; box-shadow: inset 0 0 0 2px #0071e3; }
.cm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 14px; }
.cm-row .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cm .btn { height: 46px; padding: 0 22px; }
.cm-ride > .btn { margin-top: 18px; }
.cm-msg { font-size: 14px; color: var(--mute); min-height: 1.4em; transition: opacity .25s linear; }
.cm-out { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--out); }
.cm-out > div { overflow: hidden; } .cm-out.on { grid-template-rows: 1fr; }
.cm-out p { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: #fff; font-size: 15px; line-height: 1.5; }
.cm-evl { margin-top: 14px; }

/* ---------- test notes ---------- */
.cm-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); margin-top: clamp(26px, 3vw, 40px); }
@media (max-width: 1060px) { .cm-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cm-notes { grid-template-columns: minmax(0, 1fr); } }
.cm-note { display: flex; flex-direction: column; background: var(--grey); border-radius: 20px; overflow: hidden; }
.cm-note .ph { display: block; aspect-ratio: 1264 / 848; padding: 5% 6% 0; }
.cm-note .ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--out); }
.cm-note:hover .ph img { transform: translateX(5px); }
.cm-note .bd { padding: 12px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cm-note h3 { font-size: clamp(21px, 1.7vw, 24px); } .cm-note h3 a { color: inherit; text-decoration: none; }
.cm-note .by { font-size: 13px; color: var(--mute); }
.cm-note dl { margin: 8px 0 6px; display: grid; gap: 10px; flex: 1; }
.cm-note dt { font-size: 13px; font-weight: 600; } .cm-note dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; }

/* ---------- dreams ---------- */
.cm-dreams { list-style: none; margin: clamp(22px, 2.6vw, 34px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.cm-dreams li { padding: 22px 24px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); display: flex; flex-direction: column; gap: 10px; }
.cm-dreams blockquote { margin: 0; font: 500 clamp(17px, 1.4vw, 19px)/1.45 'Satoshi', sans-serif; flex: 1; }
.cm-dreams blockquote::before { content: '\201C'; } .cm-dreams blockquote::after { content: '\201D'; }
.cm-dreams li p { font-size: 13px; color: var(--mute); }
@media (max-width: 700px) { .cm-dreams { grid-template-columns: minmax(0, 1fr); } }
.cm-dbox { margin-top: clamp(18px, 2vw, 26px); }
.cm-mine { margin-top: 20px; }
.cm-mine h3 { font-size: 15px; font-weight: 600; }
.cm-mine ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.cm-mine li { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--out), opacity .35s linear; }
.cm-mine li > div { overflow: hidden; min-height: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 8px 12px 16px; background: #fff; border-radius: 12px; }
.cm-mine li p { font-size: 15px; line-height: 1.5; padding-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-mine li.enter, .cm-mine li.gone { grid-template-rows: 0fr; opacity: 0; }

/* ---------- home section ---------- */
.cm-home { background: var(--grey); }
.cm-h4 { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.cm-h4 li { padding: 24px 24px 26px; background: var(--paper); border-radius: 20px; display: flex; flex-direction: column; gap: 8px; }
.cm-h4 h3 { font-size: clamp(19px, 1.5vw, 22px); text-wrap: balance; }
.cm-h4 p { font-size: 15px; line-height: 1.5; color: var(--mute); }
@media (max-width: 1060px) { .cm-h4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cm-h4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- bike pages: price breakdown ---------- */
.pbk h2 { font-size: clamp(30px, 3.6vw, 48px); }
.pb-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .pb-grid { grid-template-columns: minmax(0, 1fr); } }
.pb-lead { margin-top: 14px; font-size: 17px; line-height: 1.5; }
.pb-lead b { font-weight: 600; display: inline-block; transition: opacity .18s linear, translate .3s var(--out); }
.pb-lead b.out { opacity: 0; translate: 0 4px; }
.pb-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #fff; }
.pb-bar span, .pb-list i { background: hsl(240 3% calc(13% + var(--k) * 8.4%)); }
.pb-bar span { display: block; flex: none; min-width: 0; box-shadow: inset -2px 0 0 #fff; transition: width .6s var(--out), opacity .25s linear; }
.pb-list { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
@media (max-width: 520px) { .pb-list { grid-template-columns: minmax(0, 1fr); } }
.pb-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; transition: opacity .25s linear; }
.pb-list dt { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pb-list i { width: 10px; height: 10px; border-radius: 3px; flex: none; translate: 0 1px; }
.pb-list dd { margin: 0; display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.pb-list dd span { font-weight: 600; font-size: 15px; transition: opacity .18s linear; }
.pb-list dd small { font-size: 12.5px; color: var(--mute); min-width: 2.6em; text-align: right; }
.pb-list dd span.out { opacity: 0; }
.pb-list > div[hidden] { display: none; }
.pbk .note2 { font-size: 12.5px; color: var(--mute); margin-top: 12px; }
.pb-r.hov .pb-bar span:not(.on), .pb-r.hov .pb-list > div:not(.on) { opacity: .35; }

/* rider promises strip */
.pr3 { margin-top: clamp(36px, 4vw, 56px); padding: clamp(20px, 2.4vw, 28px); background: var(--grey); border-radius: 22px; }
.pr3 h3 { font-size: clamp(19px, 1.6vw, 22px); }
.pr3 ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pr3 li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border-radius: 14px; }
.pr3 li b { font-size: 15.5px; } .pr3 li span { font-size: 14px; line-height: 1.5; color: var(--mute); }
.pr3 li a { color: var(--ink); text-underline-offset: 3px; }
.pr3 > p { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.pr3 > p .note2 { margin: 0; }
.pr3 .go { font-size: 15px; }
@media (max-width: 860px) { .pr3 ul { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .cm-tabs .thumb { transition: transform .12s linear, width .12s linear, opacity .12s linear; }
  .cm-idea, .cm-mine li, .cm-out, .pb-bar span { transition-duration: .15s; }
  .cm-want .lab > span, .pb-lead b, .cm-ideas { transition: opacity .15s linear; translate: none !important; }
}

/* six nav items since round 15: a little less padding on narrow desktops so the bar keeps its air */
@media (max-width: 1040px) { .links a, .links button { padding: 0 9px; } }
