/* Show My Bike — spec explainers and data visuals, shared by product and comparison pages. */

/* What the differences mean */
.showmybike-root .spec-explainers__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.showmybike-root .spec-explainer {
  padding: 24px;
  border: 1px solid var(--profile-line);
  background: #fff;
  line-height: 1.6;
}

.showmybike-root .spec-explainer h3 { margin: 0 0 10px; font-size: 19px; }
.showmybike-root .spec-explainer p { margin: 0 0 12px; }
.showmybike-root .spec-explainer__lead { font-weight: 600; }
.showmybike-root .spec-explainer__sources { color: var(--profile-muted); font-size: 13px; }
.showmybike-root .spec-explainer__sources a { color: var(--profile-green); }


/* Colours for wheelset A (left) and B (right) in all visuals */
.showmybike-root { --cv-a: #526e45; --cv-b: #c74909; }

/* Footnotes and sources */
.showmybike-root .cv-fn { font-size: 10px; line-height: 0; margin-left: 1px; }
.showmybike-root .cv-fn a { color: var(--profile-green); font-weight: 700; text-decoration: none; }
.showmybike-root .cv-fn a:hover { text-decoration: underline; }
.showmybike-root .spec-explainer__sources {
  margin: 16px 0 0;
  padding: 12px 0 0 18px;
  border-top: 1px solid var(--profile-line);
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 1.5;
}
.showmybike-root .spec-explainer__sources li { margin: 0 0 3px; }
.showmybike-root .spec-explainer__sources li:target { background: var(--profile-soft); }
.showmybike-root .spec-explainer__sources a { color: var(--profile-muted); }

/* Bars on a shared scale */
.showmybike-root .cv-bars { margin: 4px 0 16px; }
.showmybike-root .cv-bar {
  display: grid;
  grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.showmybike-root .cv-bar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--profile-muted); }
.showmybike-root .cv-bar__track { position: relative; height: 12px; background: var(--profile-soft); border-radius: 6px; }
.showmybike-root .cv-bar__fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--cv-a); }
.showmybike-root .cv-bar--b .cv-bar__fill { background: var(--cv-b); }
.showmybike-root .cv-bar__value { font-weight: 600; white-space: nowrap; }

/* SVG drawings */
.showmybike-root .cv-svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 4px auto 6px; }
/* Technical rim cross-sections */
.showmybike-root .cv-sections { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 6px; }
.showmybike-root .cv-sections__row { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.showmybike-root .cv-sections .cv-svg__name { font-size: 18px; }
.showmybike-root .cv-section { max-width: none; }
.showmybike-root .cv-section__rim { fill: #6f736d; }
.showmybike-root .cv-section__hollow { fill: #fff; }
.showmybike-root .cv-dim, .showmybike-root .cv-dim__ext { stroke: var(--profile-ink); stroke-width: 1.1; }
.showmybike-root .cv-dim__ext { stroke-width: .8; }
.showmybike-root .cv-dim__head { fill: var(--profile-ink); }
.showmybike-root .cv-dim__centre { stroke: var(--profile-ink); stroke-width: 1; stroke-dasharray: 5 4; }
.showmybike-root .cv-dim__label { fill: var(--profile-ink); font-size: 19px; font-weight: 600; }
.showmybike-root .cv-svg__value { fill: var(--profile-ink); font-size: 11px; font-weight: 600; }
.showmybike-root .cv-svg__name { font-size: 12px; font-weight: 700; }
.showmybike-root .cv-svg__name--a { fill: var(--cv-a); }
.showmybike-root .cv-svg__name--b { fill: var(--cv-b); }
.showmybike-root .cv-caption { margin: 0 0 14px; color: var(--profile-muted); font-size: 11px; }

.showmybike-root .cv-spokes,
.showmybike-root .cv-hook { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 16px; }
.showmybike-root .cv-spokes__item,
.showmybike-root .cv-hook__item { margin: 0; text-align: center; font-size: 12px; color: var(--profile-muted); }
.showmybike-root .cv-spokes__item,
.showmybike-root .cv-hook__item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.showmybike-root .cv-spokes__item strong,
.showmybike-root .cv-hook__item strong { display: block; color: var(--profile-ink); }
.showmybike-root .cv-closeup { display: block; width: 100%; max-width: 140px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 3px solid var(--cv-a); background: #fff; }
.showmybike-root .cv-spokes__item--b .cv-closeup { border-color: var(--cv-b); }
.showmybike-root .cv-closeup img { width: 100%; height: 100%; object-fit: cover; transform: scale(4.2); }
.showmybike-root .cv-hook__item svg { display: block; width: 100%; max-width: 120px; }
.showmybike-root .cv-hook__tyre { fill: #2b2e28; opacity: .15; }
.showmybike-root .cv-hook__wall { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.showmybike-root .cv-hook__wall--a { stroke: var(--cv-a); }
.showmybike-root .cv-hook__wall--b { stroke: var(--cv-b); }

.showmybike-root .cv-spokes--single,
.showmybike-root .cv-hook--single { grid-template-columns: 1fr; justify-items: center; }

/* Catalogue position strips */
.showmybike-root .cv-strip { max-width: 420px; margin: 4px 0 6px; }
.showmybike-root .cv-strip__axis { stroke: var(--profile-line); stroke-width: 2; }
.showmybike-root .cv-strip__dot { fill: #8a9384; opacity: .35; }
.showmybike-root .cv-strip__self { fill: var(--cv-a); stroke: #fff; stroke-width: 2; }
.showmybike-root .cv-strip__end { fill: var(--profile-muted); font-size: 9px; }
.showmybike-root .cv-strip__label { fill: var(--profile-ink); font-size: 11px; font-weight: 700; }

@media (max-width: 760px) {
  .showmybike-root .spec-explainers__list { grid-template-columns: 1fr; }
  .showmybike-root .cv-bar { grid-template-columns: minmax(0, 7em) minmax(0, 1fr) auto; font-size: 12px; }
}

/* Rim cross-sections: two per row, tops aligned so the depths compare directly. */
.showmybike-root .cv-sections { --section-scale: .6; }
.showmybike-root .cv-sections .cv-section { flex: none; width: calc(var(--w) * var(--section-scale) * 1px); height: auto; }
@media (max-width: 760px) {
  .showmybike-root .cv-sections { --section-scale: .46; }
}
