:root {
  color-scheme:dark;
  --bg:#13171b;
  --panel:#1a1f25;
  --line:#333a43;
  --text:#f0f1f2;
  --muted:#acb3bb;
  --brass:#d1ad74;
  --ink:#20282d;
  --sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-family:var(--sans);
  font-size:16px;
  background:var(--bg);
  color:var(--text)
}

* {
  box-sizing:border-box
}
body {
  margin:0
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button,a,output {
  font:inherit
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-decoration:none
}
button {
  color:inherit
}
button:disabled {
  cursor:default;
  opacity:.35
}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--brass);
  outline-offset:4px
}
.skip-link {
  position:fixed;
  top:12px;
  left:12px;
  background:var(--brass);
  color:var(--bg);
  padding:12px;
  z-index:100;
  transform:translateY(-200%)
}
.skip-link:focus {
  transform:none
}
.site-header,main,footer {
  max-width:1600px;
  margin:auto;
  padding-left:48px;
  padding-right:48px
}
.site-header {
  height:94px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line)
}
.wordmark {
  font-weight:650;
  font-size:25px;
  letter-spacing:-1px
}
.wordmark span {
  color:var(--brass)
}
.header-label {
  font:12px var(--mono);
  letter-spacing:1.6px;
  color:var(--muted)
}
.header-number {
  margin-left:20px;
  color:var(--brass)
}
.page-heading {
  padding:48px 0 32px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px
}
.eyebrow {
  font:12px var(--mono);
  letter-spacing:1.8px;
  color:var(--brass);
  margin:0 0 14px
}
h1 {
  font-size:clamp(32px,3.8vw,56px);
  letter-spacing:-2.3px;
  line-height:1.12;
  font-weight:550;
  margin:0
}
.title-period {
  color:var(--brass)
}
.subtitle {
  font-size:14px;
  color:var(--muted);
  margin:18px 0 0;
  line-height:1.6
}
.subtitle span {
  margin:0 9px;
  color:#66717c
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 18px;
  font-size:14px;
  font-weight:600;
  border:1px solid transparent;
  border-radius:4px;
  line-height:1.3;
  min-height:46px
}
.button-primary {
  background:var(--brass);
  color:#1d211f;
  white-space:nowrap
}
.button-primary:hover {
  background:#dfbf8e
}
.button-secondary {
  border-color:#59616c;
  background:transparent
}
.button-secondary:hover {
  border-color:var(--brass)
}
.explorer {
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden
}
.art-column {
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#fff
}
.art-toolbar {
  min-height:52px;
  background:#f3f4f4;
  color:var(--ink);
  padding:10px 20px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #e2e5e6
}
.view-name {
  font:12px var(--mono);
  letter-spacing:1px
}
.quiet-button {
  border:0;
  border-radius:3px;
  background:none;
  color:#45525a;
  padding:8px;
  font-size:14px
}
.quiet-button:hover {
  background:#e4e7e8
}
.viewport {
  flex:1;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  min-height:420px;
  touch-action:pan-y;
  background:#fff
}
.viewport.is-zoomed {
  touch-action:none;
  cursor:grab
}
.viewport.is-dragging {
  cursor:grabbing
}
.bike-canvas {
  position:relative;
  width:100%;
  transform-origin:center;
  will-change:transform
}
.bike-image {
  width:100%;
  height:auto;
  display:block;
  user-select:none;
  pointer-events:none
}
.markers {
  position:absolute;
  inset:0;
  pointer-events:none
}
.marker-callout {
  position:absolute;
  width:0;
  height:0;
  transform-origin:0 0
}
.marker-leader {
  position:absolute;
  top:0;
  left:0;
  width:var(--leader-length);
  height:1px;
  background:#6d767d;
  box-shadow:0 1px 0 #ffffffa6;
  transform-origin:0 50%;
  transform:rotate(var(--leader-angle));
  pointer-events:none
}
.marker {
  position:absolute;
  left:var(--marker-x);
  top:var(--marker-y);
  transform:translate(-50%,-50%);
  pointer-events:auto;
  width:27.2px;
  height:27.2px;
  border-radius:50%;
  border:1.7px solid #fff;
  background:#252e36;
  color:white;
  box-shadow:0 1px 5px #0004;
  display:grid;
  place-content:center;
  font:600 10.2px var(--mono);
  padding:0;
  transition:background .15s
}
.marker:hover,.marker[aria-pressed=true] {
  background:#9a7135;
  color:#fff;
  box-shadow:0 0 0 5px #d1ad7440
}
/* Invisible halo widens the touch target past WCAG 2.5.8 without changing the visual. */
.marker::after {
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:50%
}
.markers[hidden] {
  display:none
}
.zoom-controls {
  display:flex;
  flex-shrink:0;
  align-items:center;
  gap:2px;
  padding:2px;
  background:#fff;
  border:1px solid #d2d7da;
  border-radius:4px;
  color:#29353e;
  cursor:default
}
.zoom-controls button {
  border:0;
  background:transparent;
  min-width:28px;
  min-height:28px;
  font-size:18px;
  border-radius:2px
}
.zoom-controls button:hover {
  background:#edf0f1
}
.zoom-controls output {
  width:40px;
  text-align:center;
  font:12px var(--mono)
}
.zoom-controls .reset-button {
  font-size:12px;
  padding:0 6px
}
.control-divider {
  height:16px;
  width:1px;
  background:#d5dbde;
  margin:0 2px
}
.art-caption {
  border-top:1px solid #e2e5e6;
  color:#677078;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  padding:10px 16px;
  line-height:1.5
}
.caption-hint-mobile {
  display:none
}
.caption-desktop {
  display:inline
}
.component-panel {
  background:var(--panel);
  border-left:1px solid var(--line);
  padding:24px;
  min-width:0
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px
}
.panel-heading h2 {
  font-size:16px;
  font-weight:550;
  margin:0
}
.panel-heading>span {
  font:12px var(--mono);
  color:var(--muted)
}
.component-list {
  display:grid;
  gap:3px
}
.component-list:empty {
  display:none
}
.component-option {
  display:flex;
  align-items:center;
  gap:13px;
  width:100%;
  border:1px solid transparent;
  background:none;
  padding:9px 10px;
  text-align:left;
  border-radius:3px;
  font-size:14px;
  line-height:1.4;
  min-height:40px
}
.component-option .part-number {
  color:#909ba6;
  font:12px var(--mono)
}
.component-option:hover {
  background:#ffffff08
}
.component-option[aria-pressed=true] {
  border-color:#b08d5340;
  background:#d1ad7412
}
.component-option[aria-pressed=true] .part-number {
  color:var(--brass)
}
.component-option[aria-pressed=true] .part-name {
  color:#e8c691
}
.component-detail {
  margin-top:22px;
  border-top:1px solid var(--line);
  padding-top:22px;
  min-height:152px
}
.component-detail.is-updated {
  animation:detail-flash .5s ease-out
}
@keyframes detail-flash {
  from {
  box-shadow:inset 3px 0 0 var(--brass);
  background:#d1ad740d
}

}
.component-detail .eyebrow {
  font-size:11px;
  margin:0 0 10px
}
.component-detail h3 {
  margin:0 0 10px;
  font-size:20px;
  font-weight:500;
  line-height:1.35;
  letter-spacing:-.4px
}
.component-detail p:not(.eyebrow) {
  font-size:14px;
  line-height:1.7;
  color:var(--muted);
  margin:0
}
.detail-spec {
  display:block;
  margin-top:14px;
  color:#d7dce1;
  font-size:12px;
  line-height:1.6;
  font-family:var(--mono)
}
.cockpit-image {
  /* Fixed height + the width/height attributes reserve the box before the image loads. */
  width:auto;
  max-width:100%;
  height:150px;
  object-fit:contain;
  object-position:left top;
  display:block;
  margin-top:18px;
  border-radius:3px;
  background:#fff
}
.error-message,.noscript-note {
  font-size:14px;
  color:#e4bf84;
  line-height:1.6
}
.print-strip {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:32px;
  padding:36px 0 40px;
  border-bottom:1px solid var(--line)
}
.section-number {
  font:11px var(--mono);
  color:var(--muted);
  letter-spacing:1px
}
.print-strip h2 {
  font-size:23px;
  font-weight:500;
  letter-spacing:-.6px;
  margin:12px 0 8px
}
.print-strip p {
  font-size:14px;
  color:var(--muted);
  line-height:1.7;
  margin:0
}
.print-links {
  display:flex;
  align-items:center;
  gap:25px;
  white-space:nowrap
}
.text-link {
  font-size:14px;
  color:#c7cdd4;
  padding:12px 0
}
.text-link span {
  margin-left:7px
}
.text-link:hover {
  color:var(--brass)
}
footer {
  display:flex;
  justify-content:space-between;
  gap:24px;
  font-size:12px;
  color:#929ca6;
  padding-top:25px;
  padding-bottom:32px;
  line-height:1.6
}
footer span:last-child {
  font:10px var(--mono);
  letter-spacing:.8px
}
footer span:last-child span {
  padding:0 8px;
  color:#59636e
}

@media(min-width:761px) {
  /* Pin the bike: height:0 removes the panel's contribution to the .explorer grid
     row, min-height:100% sizes it to the art column, so selection can never move
     the illustration. The list scrolls internally; the detail stays pinned below it. */
  .component-panel {
  height:0;
  min-height:100%;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  overscroll-behavior:contain
}
.component-list {
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  align-content:start;
  overscroll-behavior:contain;
  padding:8px;
  margin:-8px
}
.component-detail {
  flex-shrink:0
}
.viewport {
  /* Floor keeps the pinned detail fully inside the panel; cap keeps letterboxing minimal. */
  min-height:clamp(400px,calc(100vh - 330px),440px)
}

}

@media(min-width:1500px) {
  .viewport {
  min-height:610px
}
.component-panel {
  padding:28px
}
.explorer {
  grid-template-columns:minmax(0,1fr) 340px
}
.component-option {
  padding-top:12px;
  padding-bottom:12px
}

}

@media(max-width:1050px) {
  .site-header,main,footer {
  padding-left:26px;
  padding-right:26px
}
.explorer {
  grid-template-columns:minmax(0,1fr) 270px
}
.component-panel {
  padding:20px
}
.art-caption {
  gap:8px 12px
}
.page-heading {
  padding-top:36px
}
.print-links {
  gap:18px
}

}

@media(max-width:760px) {
  .site-header,main,footer {
  padding-left:18px;
  padding-right:18px
}
.site-header {
  height:72px
}
.header-label {
  font-size:10px;
  letter-spacing:.7px
}
.header-number {
  margin-left:6px
}
.wordmark {
  font-size:22px
}
.page-heading {
  padding:30px 0 24px;
  display:block;
  position:relative
}
/* Compact download button beside the eyebrow line instead of a full block below. */
.page-heading .button {
  position:absolute;
  top:26px;
  right:0;
  margin-top:0;
  min-height:32px;
  padding:6px 10px;
  font-size:11px;
  gap:6px
}
.page-heading .button svg {
  width:14px;
  height:14px
}
.eyebrow {
  font-size:11px
}
h1 {
  font-size:28px;
  letter-spacing:-1.2px
}
.subtitle {
  font-size:13px
}
.subtitle span {
  margin:0 5px
}
.explorer {
  display:block
}
.viewport {
  min-height:310px
}
.art-toolbar {
  padding:9px 12px
}
.view-name {
  font-size:10px;
  letter-spacing:.3px
}
.quiet-button {
  font-size:12px;
  min-height:36px
}
.art-caption {
  padding:12px 14px;
  font-size:11px
}
.marker {
  width:23.8px;
  height:23.8px;
  font-size:9.35px
}
.marker::after {
  inset:-11px
}
.component-panel {
  border-left:0;
  border-top:1px solid var(--line);
  padding:22px 18px;
  display:flex;
  flex-direction:column
}
/* Visual order becomes heading -> detail -> list, so the detail sits directly
   under the illustration. Safe: the detail holds no focusable content. */
.component-list {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  order:2;
  margin-top:22px;
  border-top:1px solid var(--line);
  padding-top:22px
}
#load-error {
  order:3
}
.caption-hint-mobile {
  display:inline
}
.caption-desktop {
  display:none
}
.component-option {
  padding:9px 5px;
  gap:6px;
  font-size:14px;
  min-height:45px
}
.component-option .part-number {
  font-size:10px
}
.component-detail {
  min-height:300px
}
.component-detail h3 {
  font-size:21px
}
.component-detail p:not(.eyebrow) {
  font-size:15px
}
.cockpit-image {
  max-width:360px;
  height:120px
}
.print-strip {
  display:block;
  padding:30px 0
}
.print-strip h2 {
  font-size:22px
}
.print-links {
  margin-top:20px;
  gap:24px
}
footer {
  display:block;
  padding-top:22px
}
footer>span {
  display:block
}
footer>span+span {
  margin-top:10px
}

}

@media(max-width:390px) {
  h1 {
  font-size:24px
}
.header-label {
  max-width:135px;
  text-align:right;
  line-height:1.6
}
.component-list {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.viewport {
  min-height:275px
}
.print-links {
  gap:18px
}

}

@media screen and (max-height:960px) and (min-width:761px) {
  /* Short windows: condense the masthead so the bike and pinned detail share the screen. */
  .site-header {
  height:64px
}
.page-heading {
  padding:24px 0 20px
}
h1 {
  font-size:clamp(28px,3vw,40px)
}
.subtitle {
  margin-top:10px
}

}

@media screen and (max-height:500px) and (min-width:761px) {
  .viewport {
  min-height:0
}

}

@media (max-width:760px) and (max-height:740px) {
  .viewport {
  min-height:250px
}
.component-panel {
  padding-top:14px
}
.panel-heading {
  margin-bottom:10px
}

}

@media(prefers-reduced-motion:reduce) {
  * {
  transition:none!important;
  animation:none!important;
  scroll-behavior:auto!important
}

}

@media print {
  body {
  background:white;
  color:black
}
.site-header,.component-panel,.art-toolbar,.art-caption,.zoom-controls,.print-strip,.parts-panel,.compare-panel,footer,.page-heading .button,.markers {
  display:none
}
.page-heading {
  padding:0 0 20px
}
main {
  padding:0
}
.explorer {
  display:block;
  border:0
}
.viewport {
  min-height:0
}
.bike-canvas {
  transform:none!important
}
.subtitle,.eyebrow {
  color:#444
}
h1 {
  color:#111
}
.title-period {
  color:#111
}

}


/* Geometry uses the same recorded measurements as the print sheet. */
.geometry-panel { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.geometry-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.geometry-heading h2 { margin: 0; font-size: 23px; font-weight: 500; letter-spacing: -.6px; }
.geometry-heading p { margin: 0; font-size: 14px; color: var(--muted); }
.geometry-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 20px; margin: 0; }
.geometry-grid dt { font-size: 17px; line-height: 1.5; color: var(--muted); margin-bottom: 5px; }
.geometry-grid dd { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.5px; line-height: 1.2; }
.geometry-unit { margin-left: 5px; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.headbadge-image { display: block; width: 78px; height: auto; margin-top: 18px; }
@media (max-width: 1050px) { .geometry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .geometry-heading { display: block; }
  .geometry-heading p { margin-top: 8px; }
  .geometry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .geometry-grid dd { font-size: 22px; }
}
@media print {
  .geometry-panel { break-inside: avoid; border-color: #ccc; }
  .geometry-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .geometry-grid dt, .geometry-unit, .geometry-heading p { color: #444; }
}

/* Dropper-finish comparison — aligned side views swapped in place, no layout shift. */
.compare-panel { padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
.compare-intro { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px 32px; margin-bottom: 20px; }
.compare-panel h2 { font-size: 23px; font-weight: 500; letter-spacing: -.6px; margin: 12px 0 8px; }
.compare-intro p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.compare-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.compare-option { border: 1px solid #59616c; background: transparent; border-radius: 4px; padding: 9px 14px; font-size: 13px; line-height: 1.3; min-height: 38px; }
.compare-option:hover { border-color: var(--brass); }
.compare-option[aria-pressed=true] { border-color: #b08d53; background: #d1ad7412; color: #e8c691; }
.compare-stage { border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.compare-stage img { display: block; width: 100%; height: auto; aspect-ratio: 1703 / 924; object-fit: contain; }
@media (max-width: 760px) {
  .compare-panel { padding: 30px 0; }
  .compare-option { padding: 8px 11px; font-size: 12px; min-height: 36px; }
}

/* Parts — the complete build list, frame to pedals. */
.parts-panel { padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
.parts-intro { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px 32px; margin-bottom: 20px; }
.parts-panel h2 { font-size: 23px; font-weight: 500; letter-spacing: -.6px; margin: 12px 0 8px; }
.parts-intro p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.parts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.parts-grid li { padding: 9px 0; border-top: 1px solid #262d34; font-size: 14px; line-height: 1.5; }
.parts-footnote { font-size: 12px; color: #929ca6; line-height: 1.6; margin: 14px 0 0; }
@media (max-width: 1050px) {
  .parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
}
@media (max-width: 600px) {
  .parts-panel { padding: 30px 0; }
  .parts-grid { grid-template-columns: 1fr; }
  .parts-grid li { padding: 8px 0; }
}
