/* Ridgelift Supply pages (/gear/supply/). Loaded only there, after camp-gear.css. */
.sp-dev { margin-top: 0; }
.sp-stage { max-width: 56rem; margin: 0 0 2.5rem; }
.sp-view { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--rule);
  background: radial-gradient(ellipse 80% 70% at 50% 42%, #eeeae2 0%, #dcd6ca 62%, #cec7b9 100%); }
.sp-view img, .sp-view canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sp-view img { object-fit: cover; }
.sp-stage [hidden] { display: none !important; }
.sp-canvas { cursor: grab; }
.sp-canvas:active { cursor: grabbing; }
.sp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 0.8rem; }
.sp-controls .btn { margin-top: 0; }
.sp-picks { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sp-picks button { min-height: 44px; padding: 0.45rem 0.85rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: transparent;
  color: var(--bone); font: inherit; font-size: 0.92rem; cursor: pointer; }
.sp-picks button:hover { border-color: var(--blaze); }
.sp-picks button[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--basalt); }
.sp-status { margin: 0; color: var(--muted); font-size: 0.92rem; }
.sp-stage figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.sp-item { padding-top: 0.5rem; margin-bottom: 1.5rem; scroll-margin-top: calc(var(--header-h) + 0.5rem); }
/* Each tool reads as its own block, so a price sits with its own spec list. */
.sp-item + .sp-item, .sp-item + .measure:not(.sp-item) { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.sp-blade { margin: 0 0 3rem; padding-top: 0.5rem; scroll-margin-top: calc(var(--header-h) + 0.5rem); }
.sp-blade .sp-drawing { margin: 0; }
.sp-blade.cg-two { align-items: start; }
/* Side by side, the drawing lines up with the name and stays in view next to the long spec list. */
@media (min-width: 901px) { .sp-blade .sp-drawing { position: sticky; top: calc(var(--header-h) + 1rem); margin-top: 1rem; } }
.sp-blade h2, .sp-item h2 { margin-top: 0.5rem; }
.sp-pair { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 1.25rem; align-items: stretch; }
.sp-pair .sp-drawing { display: flex; flex-direction: column; justify-content: flex-end; margin-top: 0; }
.sp-tile-art { aspect-ratio: 1400 / 952; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.5rem;
  padding: 1rem 1.25rem; background: var(--basalt-deep); border-bottom: 1px solid var(--rule); }
.sp-tile-art .sp-outline { width: 100%; }
.sp-tile-art .o-scale { display: none; }
/* Stacked outlines on the hub tiles: one SVG, same scale, fitted inside the tile art box. */
.sp-tile-art .sp-stack { width: 100%; height: 100%; }
.sp-total th, .sp-total td { color: var(--bone); font-weight: 600; border-top: 1px solid var(--rule-strong); }
#before-any-sale { scroll-margin-top: calc(var(--header-h) + 0.5rem); }
@media (max-width: 700px) { .sp-pair { grid-template-columns: 1fr; } }
/* Fly-Camp Roll table on a phone: item and weight on one line, what it is under them. */
@media (max-width: 600px) {
  .sp-roll thead { display: none; }
  .sp-roll tbody { display: block; }
  .sp-roll tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
  .sp-roll th, .sp-roll td { border: 0; padding: 0; }
  .sp-roll td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .sp-roll td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .sp-roll .sp-total { border-top: 1px solid var(--rule-strong); }
}
/* Still render (?still=1, used to make images/supply/ti-tools.webp): the 3D view fills the window. */
.sp-stage.is-still .sp-view { position: fixed; inset: 0; z-index: 1000; aspect-ratio: auto; border: 0; }
