/* SELVO "Build your own" (2026-11-21): /selvo/build/ and the links on the parts page. The build view reuses the configurator
   layout from cf.css (.cf-build, .cf-left, .cf-right, .cf-pv, .oc, .szc, .pc, .seg, .cf-bar); this file adds the frameset
   picker, the step bar, the gliding selection ring, the "does not fit" lists and the review. Content is simply there; only
   the step marker, the ring, the seg thumbs and the step change move. */

/* ---------- parts page: entry at the top and links on frameset cards ---------- */
.by-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 24px; max-width: 860px; padding: 18px 22px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); text-decoration: none; color: var(--ink); transition: box-shadow .35s var(--out); }
.by-cta:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.by-cta .by-ct { display: grid; gap: 3px; min-width: 0; flex: 1 1 320px; }
.by-cta b { font: 600 20px 'Clash Display', sans-serif; }
.by-cta .by-ct span { color: var(--mute); font-size: 15px; }
.by-cta .go { font-size: 15px; font-weight: 600; }
.by-cta:hover .go svg { transform: translateX(4px); }
.pt-card[data-c="frames"] .pt-open { position: relative; }
.by-lb { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .86); font: 600 11.5px 'Satoshi', sans-serif; color: var(--mute); pointer-events: none; }
.pt-card .by-cl { margin-top: 12px; font-size: 14px; font-weight: 600; }

/* ---------- pick a frameset ---------- */
.byo .pt-filter { margin-bottom: 0; }
.by-pick { padding-block: 34px 70px; }
.by-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.by-fs { display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--hair); padding: 12px 12px 16px; transition: box-shadow .45s var(--out); }
.by-fs[hidden] { display: none; }
.by-fs:hover { box-shadow: inset 0 0 0 1px var(--hair), 0 18px 44px rgba(0, 0, 0, .08); }
.by-ph { position: relative; display: block; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 16px; width: 100%; }
.by-ph .pp img { width: 92%; height: 92%; }
.by-fs .br { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.by-fs h2 { font-size: 22px; margin-top: 2px; }
.by-fs .by-box { margin-top: 6px; font-size: 13.5px; color: var(--mute); }
.by-fs .ch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .by-fs .ch b { font: 600 12px 'Satoshi', sans-serif; padding: 4px 9px; border-radius: 8px; background: var(--grey); }
.by-fs .ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.by-fs .by-fr { font-size: 12.5px; color: var(--mute); } .by-fs .pr { font-weight: 700; }
.by-note { margin-top: 26px; max-width: 720px; }
.by-note a { font-weight: 600; }

/* ---------- build view ---------- */
.byo .cf-head h1 { font-size: clamp(30px, 3vw, 42px); }
.by-steps { position: relative; margin: 16px calc(-1 * clamp(16px, 2vw, 26px)) 0; padding: 0 clamp(16px, 2vw, 26px); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hair); }
.by-steps::-webkit-scrollbar { display: none; }
.by-steps.fr { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.by-steps.fl { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.by-steps.fl.fr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.by-steps ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; width: max-content; }
.by-steps button { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 9px; border: 0; background: none; cursor: pointer; font: 600 13.5px 'Satoshi', sans-serif; color: var(--mute); white-space: nowrap; border-radius: 10px; transition: color .3s linear, background-color .25s linear; }
.by-steps button:hover { color: var(--ink); background: var(--grey); }
.by-steps button i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font-style: normal; font-size: 11.5px; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .35s var(--out), color .35s var(--out), box-shadow .35s var(--out); }
.by-steps button[aria-current] { color: var(--ink); }
.by-steps button[aria-current] i, .by-steps button.done i { background: var(--ink); color: #fff; box-shadow: none; }
.by-steps button.done { color: var(--ink); }
@media (min-width: 981px) { .by-steps { position: sticky; top: 0; z-index: 3; background: #fff; } }
.by-mk { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ink); border-radius: 2px; transition: transform .5s cubic-bezier(.22, 1, .36, 1), width .5s cubic-bezier(.22, 1, .36, 1); }
.by-pane { min-height: 50vh; padding-bottom: 6px; }
.byo .sc h2 span { font: 600 16px 'Satoshi', sans-serif; color: var(--ink); }
.by-boxt { color: var(--mute); font-size: 14px; }
/* the selection ring glides between cards, sizes and paints (cf.css draws the "on" state as an outline, here the ring does) */
.byo .ocs, .byo .sizes, .byo .paints { position: relative; }
.byo .oc.on, .byo .szc.on, .byo .pc.on { box-shadow: inset 0 0 0 1px var(--hair); }
.by-ring { position: absolute; left: 0; top: 0; border-radius: 14px; box-shadow: inset 0 0 0 2px #111; pointer-events: none; z-index: 1; transition: transform .5s cubic-bezier(.22, 1, .36, 1), width .5s cubic-bezier(.22, 1, .36, 1), height .5s cubic-bezier(.22, 1, .36, 1), opacity .2s linear; }
.byo .oc .l .by-w { color: var(--ink); opacity: .7; font-variant-numeric: tabular-nums; }
.by-sub:empty { display: none; }
.by-sub .sub { margin-top: 12px; }
.by-sub .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .by-sub .seg::-webkit-scrollbar { display: none; }
.by-sub .hint { margin-top: 10px; }
.by-sw { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding: 4px; }
.by-sw button { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.by-sw .ring { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px #111; pointer-events: none; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.by-cn { font-size: 13px; color: var(--ink); }
/* parts that do not fit */
.by-no { margin-top: 12px; }
.by-nt { border: 0; background: none; padding: 4px 0; font: 600 13px 'Satoshi', sans-serif; color: var(--mute); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.by-nt::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--out); }
.by-no.open .by-nt::after { transform: translateY(1px) rotate(225deg); }
.by-nt:hover { color: var(--ink); }
.by-no .dd { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--out); } .by-no .dd > div { overflow: hidden; }
.by-no.open .dd { grid-template-rows: 1fr; }
.by-no ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.by-no li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--grey); font-size: 13px; }
.by-no .nm { display: flex; flex-wrap: wrap; gap: 2px 12px; } .by-no .nm b { font-weight: 600; }
.by-no .why { color: var(--mute); }
/* frame standards and the review */
.by-std { margin: 0; display: grid; }
.by-std div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; }
.by-std div:nth-child(odd) { background: var(--grey); }
.by-std dt { color: var(--mute); } .by-std dd { margin: 0; }
.by-rev { list-style: none; margin: 0; padding: 0; display: grid; }
.by-rev li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.by-rev li:first-child { border-top: 0; }
.by-rev li > span { display: grid; gap: 1px; min-width: 0; } .by-rev li > span span { color: var(--mute); font-size: 12.5px; }
.by-rev em { font-style: normal; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.by-tot { margin: 12px 0 0; display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--grey); }
.by-tot div { display: flex; justify-content: space-between; gap: 12px; } .by-tot dt { color: var(--mute); } .by-tot dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.by-tot div:first-child dd { font: 600 22px 'Clash Display', sans-serif; }
.by-cfl { font-weight: 600; }
/* bottom bar: total, weight and the step buttons */
.by-bar .est { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; } .by-bar .by-kg { font: 600 12px 'Satoshi', sans-serif; color: var(--ink); }
.by-bar b.num { font-variant-numeric: tabular-nums; }
.cf-bar.by-bar > .by-nav { display: flex; align-items: center; gap: 8px; flex: none; }
/* the bar sits at the bottom of the column even when a step is short */
.byo .cf-left { display: flex; flex-direction: column; }
.byo .by-pane { flex: 1 0 auto; }
.byo .cf-left > .cf-bar { margin-top: auto; }
.by-prev { width: 44px; height: 44px; justify-content: center; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .3s var(--out); }
.by-prev:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.by-prev svg { width: 12px; height: 12px; } .by-prev:hover svg { transform: translateX(-3px); }
.by-prev[hidden] { display: none; }
.byo .cf-pv .cap { max-width: 52%; }
@media (max-width: 980px) {
  .by-steps { margin-top: 12px; }
  .by-pane { min-height: 0; }
  .byo .cf-pv .cap { display: none; }
}
@media (max-width: 420px) {
  .by-bar { gap: 8px; } .by-bar b.num { font-size: 22px; } .by-bar .note { display: none; } .by-bar .est > span { display: none; }
  .by-bar .btn { padding-inline: 16px; }
  .by-std div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .by-fs .ft .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .by-ring, .by-mk, .by-sw .ring { transition: none; } }
