/* Three treatments of the masthead + category + filter section.
   Scoped by a body class so they share catalogue.css and only override the
   header block. Brand tokens are inherited, never redefined here. */

/* ---------- shared scroller mechanics ---------- */
.tabs-scroller { position: relative; }
.tabs { scroll-behavior: smooth; scroll-snap-type: x proximity; }
.tab { scroll-snap-align: start; }

/* Edge fades that only appear when there is actually more to scroll. */
.tabs-scroller::before,
.tabs-scroller::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 64px;
  pointer-events: none; opacity: 0; transition: opacity 220ms ease; z-index: 2;
}
.tabs-scroller::before {
  left: 0; background: linear-gradient(90deg, var(--bg) 20%, transparent);
}
.tabs-scroller::after {
  right: 0; background: linear-gradient(270deg, var(--bg) 20%, transparent);
}
.tabs-scroller.fade-l::before,
.tabs-scroller.fade-r::after { opacity: 1; }

/* A real affordance, not a hover secret: always visible while there is more to
   scroll, large enough to hit comfortably, and sitting on the paper so it reads
   as a control rather than a decoration. */
.scroll-arrow {
  position: absolute; top: 50%; transform: translateY(-64%);
  z-index: 3; width: 58px; height: 58px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; padding: 0;
  box-shadow: 0 6px 22px -10px rgba(20, 18, 20, 0.28);
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1),
              border-color 200ms ease, background 200ms ease, color 200ms ease;
}
.scroll-arrow svg {
  width: 26px; height: 26px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.scroll-arrow:hover {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  transform: translateY(-64%) scale(1.06);
}
.scroll-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.scroll-arrow[hidden] { display: none; }
.scroll-arrow.prev { left: -18px; }
.scroll-arrow.next { right: -18px; }
@media (hover: none) { .scroll-arrow { display: none; } }

/* ================================================================
   A — THE RAIL
   Quiet and typographic. Underlined tabs on a hairline, wide air,
   the filter row sitting low and light. Closest to the current page,
   properly finished.
   ================================================================ */
body.v-a .opener h1 { max-width: 16ch; }
/* Hero spacing is NOT set here. `body.v-a .opener` outranks the base `.opener`
   in catalogue.css and this file loads second, so a padding-block here silently
   beats the tuned rhythm and edits to the base rule appear to do nothing. Same
   trap as the 54ch max-width that stranded "forever." on a third line. Standfirst
   sizing lives in catalogue.css too, for the same reason. */
body.v-a .tabs-outer {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
}
body.v-a .tabs { gap: 54px; padding-block: 36px 0; }
body.v-a .tab { padding-bottom: 24px; }
body.v-a .tab svg { opacity: 0.8; }
body.v-a .tab[aria-selected="true"] svg { opacity: 1; }
/* No .toolbar padding-block here either - see the note above .opener h1. */
body.v-a #q {
  border-radius: 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; padding: 10px 2px; max-width: 340px;
}
body.v-a #q:focus-visible { outline: 0; border-bottom-color: var(--accent); }
body.v-a #sort {
  border: 0; background: transparent; padding: 10px 2px;
  border-bottom: 1px solid var(--line); border-radius: 0;
}
body.v-a .count { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; }

/* ================================================================
   B — THE PILL RAIL
   Categories become filled chips. Warmer, more obviously clickable,
   the active chip carries Klein Volt. The filter row is a single
   raised bar so the controls read as one object.
   ================================================================ */
body.v-b .opener { padding-block: 104px 44px; }
body.v-b .tabs-outer { border: 0; }
body.v-b .tabs { gap: 10px; padding-block: 12px 12px; }
body.v-b .tab {
  flex-direction: row; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--card-bg);
  font-size: 0.92rem; margin-bottom: 0;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
body.v-b .tab svg { width: 18px; height: 18px; }
body.v-b .tab:hover { border-color: var(--accent); color: var(--ink); }
body.v-b .tab[aria-selected="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
body.v-b .tab[aria-selected="true"] .tab-n { opacity: 0.8; }
body.v-b .toolbar {
  margin-top: 26px; padding: 14px 18px; border-radius: var(--radius-card);
  border: 1px solid var(--line); background: var(--card-bg);
}
body.v-b #q { border-radius: var(--radius-pill); }
body.v-b #sort { border-radius: var(--radius-pill); }

/* ================================================================
   C — THE EDITORIAL SPLIT
   Headline left, sell copy set right against it, a rule beneath, then
   the categories as a wide quiet scroller. The most magazine of the
   three and the most brand-forward.
   ================================================================ */
body.v-c .opener {
  padding-block: 124px 40px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px; align-items: end;
}
@media (max-width: 1099px) {
  body.v-c .opener { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
body.v-c .opener h1 { max-width: 14ch; }
body.v-c .standfirst {
  margin: 0 0 10px; font-size: 1.16rem; max-width: 42ch;
  padding-left: 26px; border-left: 2px solid var(--accent);
}
body.v-c .tabs-outer { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
body.v-c .tabs { gap: 0; padding-block: 0; }
body.v-c .tab {
  padding: 22px 26px; border-bottom: 0; margin-bottom: 0;
  border-right: 1px solid var(--line-soft); font-size: 0.9rem;
  position: relative;
}
body.v-c .tab:first-child { padding-left: 0; }
body.v-c .tab svg { width: 21px; height: 21px; }
body.v-c .tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 260ms cubic-bezier(0.2, 0, 0, 1);
}
body.v-c .tab[aria-selected="true"]::after { transform: scaleX(1); }
body.v-c .tab-n {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  display: block; margin-top: 2px;
}
body.v-c .toolbar { padding-block: 30px 26px; }
body.v-c #q {
  border-radius: 0; border: 1px solid var(--line); background: transparent;
  padding: 12px 16px; max-width: 360px;
}
body.v-c #sort { border-radius: 0; padding: 12px 14px; background: transparent; }
body.v-c .count { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; }

/* ---------- variant switcher (mockup only, not a product surface) ---------- */
.vswitch {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 90; display: flex; gap: 4px; padding: 5px;
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius-pill); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.25);
}
.vswitch a {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  padding: 8px 16px; border-radius: var(--radius-pill);
}
.vswitch a:hover { color: var(--ink); }
.vswitch a[aria-current="page"] { background: var(--ink); color: var(--bg); }
