/* ============================================================
   ROPE LEAD — store & bench manual pages
   ============================================================ */

/* ---------- shared ---------- */

.range-hero {
  padding-top: clamp(8rem, 18vh, 12rem);
  padding-bottom: 2rem;
}

.range-lede {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* ---------- viewer ---------- */

.viewer-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: 2rem;
}

@media (max-width: 60rem) {
  .viewer-section { grid-template-columns: 1fr; }
}

.viewer-wrap {
  position: sticky;
  top: 5rem;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  height: min(72vh, 46rem);
  overflow: hidden;
}

@media (max-width: 60rem) {
  .viewer-wrap { position: relative; top: 0; height: 60vh; }
}

#viewer {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

#viewer:active { cursor: grabbing; }

.viewer-hint {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
}

.view-tabs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* backdrop-filter over the WebGL canvas forces a GPU read-back every
   frame and crashes the GPU process on Android (Chromium issue) —
   keep the frosted tabs to fine-pointer devices only */
@media (pointer: fine) {
  .view-tabs {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(6px);
  }
}

.view-tab {
  flex: 1;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0.85rem 0.4rem;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.view-tab:last-child { border-right: 0; }
.view-tab:hover { color: var(--ink); }
.view-tab[aria-selected="true"] {
  color: var(--accent);
  background: var(--bg-deep);
  box-shadow: inset 0 2px 0 var(--accent);
}

/* ---------- viewer panel ---------- */

.sku-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.sku-tab {
  font: inherit;
  background: transparent;
  border: 2px solid var(--line);
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  transition: border-color 140ms ease, background 140ms ease;
}

.sku-tab-name { font-weight: 700; font-size: 0.95rem; }
.sku-tab-dia { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.08em; }

.sku-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--bg-deep);
}

.colorways { display: flex; gap: 0.6rem; margin-bottom: 1.8rem; }

.swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--sw);
  cursor: pointer;
  padding: 0;
  transition: transform 140ms ease, border-color 140ms ease;
}

.swatch[aria-pressed="true"] {
  border-color: var(--ink);
  transform: scale(1.15);
}

.panel-name {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.panel-blurb { color: var(--ink-soft); max-width: 30rem; }

.panel-specs { margin-top: 1.6rem; }

.panel-buy {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2rem;
}

.panel-price {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-cta {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  transition: background 160ms ease;
}

.panel-cta:hover { background: var(--accent); }

.panel-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.8rem; }

/* ---------- range grid ---------- */

.range-grid-section { padding-top: 4rem; }

.range-system-line {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 500;
  max-width: 30ch;
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem;
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.range-card {
  font: inherit;
  background: var(--bg);
  border: 0;
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease;
}

.range-card:hover { background: var(--bg-deep); }
.range-card.is-active { background: var(--bg-deep); box-shadow: inset 0 0 0 2px var(--accent); }

.range-card-dia {
  display: block;
  width: calc(0.35rem + var(--dia) * 1.4rem);
  height: calc(0.35rem + var(--dia) * 1.4rem);
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 0.6rem;
}

.range-card-name { font-weight: 700; font-size: 1.15rem; }
.range-card-meta { font-size: 0.82rem; color: var(--ink-soft); }
.range-card-price { font-weight: 500; margin-top: 0.4rem; }

.reserve-form--full { max-width: 36rem; }

/* ============================================================
   Bench manual
   ============================================================ */

.bench-hero {
  padding-top: clamp(8rem, 18vh, 12rem);
  padding-bottom: 2rem;
}

.bench-rev {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bench-section { padding-top: 3rem; padding-bottom: 3rem; }

.bench-section > p { max-width: 36rem; color: var(--ink-soft); }

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 1.6rem 0;
}

.table-scroll .bench-table { margin: 0; }

.bench-table {
  width: 100%;
  max-width: 56rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.6rem 0;
}

.bench-table th, .bench-table td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.bench-table th {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.bench-table td:first-child { font-weight: 700; }

.bench-table .num { font-variant-numeric: tabular-nums; }

.splice-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 1.8rem 0;
}

.splice-step {
  background: var(--bg);
  padding: 1.4rem;
}

.splice-step svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
}

.splice-step h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.splice-step h4 span {
  color: var(--accent);
  margin-right: 0.5rem;
}

.splice-step p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

.bench-callout {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.2rem;
  margin: 2rem 0;
  max-width: 36rem;
  font-weight: 500;
}

.bench-3d {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 0.4rem;
}

.bench-3d a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}

.bench-3d a:hover { color: var(--ink); border-color: var(--ink); }

.bench-3d::before {
  content: "See it in 3D →";
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: center;
}

/* diagram svg shared classes */
.dg-rope { stroke: url(#dg-rope-tex) #c74e1d; fill: none; stroke-linecap: round; }
.dg-rope-dark { stroke: #932f0d; fill: none; stroke-linecap: round; }
.dg-tail { stroke: #e0672f; fill: none; stroke-linecap: round; stroke-dasharray: 6 4; }
.dg-ink { stroke: #16130e; fill: none; stroke-linecap: round; }
.dg-dim { stroke: #57503f; fill: none; stroke-width: 1; }
.dg-text { fill: #57503f; font-family: "Space Grotesk", sans-serif; font-size: 11px; }
.dg-text-strong { fill: #16130e; font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; }

/* print: the manual should print clean for the workbench */
@media print {
  .site-header, .site-footer, .viewer-section { display: none; }
  body { background: #fff; }
  .bench-section { break-inside: avoid; }
  .table-scroll { overflow: visible; }
}
