/* =====================================================================
   Light Tracer · patch v7 — spine hugs the left window edge, content centred
   Append AFTER lighttracer-patch-v6.css. No HTML changes needed.
   Before: .row was a 2-column grid (spine column + content), so every section
   was pushed right of the header/hero by rail width + gap (~64px desktop).
   After:  the spine is taken out of the flow and pinned near the window edge;
   the content fills the same centred .wrap column as the header and hero.
   Part B (phone hero) moved to patch v8.
   Reference screenshots: delivery/previews/spine-v7-*.png, hero-v7-*.png
   ===================================================================== */

/* 1. tokens
   --rail-x     = spine centre, measured from the left edge of the window
   --wrap-inset = window edge -> content left edge inside .wrap (centred, max --wrap) */
:root { --gutter: 28px; --rail-x: 10px; --wrap-inset: max(var(--gutter), (100vw - var(--wrap)) / 2 + var(--gutter)); }
@media (min-width: 768px) { :root { --gutter: 32px; --rail-x: 16px; } }
@media (min-width: 1024px) { :root { --rail-x: 24px; } }

/* 2. spine out of the grid, pinned to the window edge */
.row { position: relative; display: block; }
.rail { position: absolute; top: 0; bottom: 0; width: 14px; left: calc(var(--rail-x) - 7px - var(--wrap-inset)); overflow: hidden; }
/* .rail::before / ::after / .node keep their v1 rules: they are centred inside the 14px rail */

/* 3. phones: wider content exposed two old overflow bugs; keep the page from scrolling sideways */
.pdp { grid-template-columns: minmax(0, 1fr); }
.pdp > * { min-width: 0; }
.gallery { grid-template-columns: minmax(0, 1fr); }
.thumbs { overflow-x: auto; scrollbar-width: none; }
.thumb { flex: 0 0 auto; }
.anatomy-clip { clip-path: none; overflow-x: clip; overflow-y: visible; }
@media (min-width: 900px) { .anatomy-clip { overflow: visible; } }

/* Part B (phone hero) was superseded by patch v8 and removed. */
