/*
 * PickupLab HTML prototype (owner, 2 December 2026): plain HTML, CSS and JS
 * for crafting the design on the preview. It moves back into the Next.js app
 * (src/) once the design is settled.
 *
 * Look (owner, 3 December 2026): our own grainy colour wash (orange, deep and
 * bright blue, white) under a slight white overlay, with the falling snow from
 * the Lightwork holding page, softer, smaller and slower; black text and the orange logo mark from the
 * Cream version; orange for the main action; frosted "glass" for the menu,
 * the header icons, the brand tiles and the footer.
 * Always light: the phone's dark mode is ignored.
 */

:root {
  color-scheme: only light;
  --page: #dcdee2;
  --surface: rgb(255 255 255 / 0.94);
  --raised: #f1f2f4;
  --well: #eceef1;
  --line: rgb(28 30 35 / 0.14);
  --line-strong: #6b6f78;
  --ink: #120c08;
  --ink-2: #2a2c31;
  --ink-3: #33363c;
  --muted: #555963;
  --soft-ink: #3d4149;
  --on-page: var(--ink);
  --on-page-2: #4f535c;
  --on-page-hover: rgb(255 255 255 / 0.55);
  --mark: #ff5f15;
  --brand: #ff5f15;
  --brand-hover: #ff7a35;
  --brand-strong: #ec4f08;
  --rust-text: #a83a00;
  --bar-on: #ff6a24;
  /* Glass: frosted white over the snow. */
  --glass: rgb(255 255 255 / 0.5);
  --glass-hover: rgb(255 255 255 / 0.8);
  --glass-line: rgb(255 255 255 / 0.85);
  --glass-shadow: 0 1px 2px rgb(28 30 35 / 0.06), 0 8px 22px -14px rgb(28 30 35 / 0.4);
  --panel-shadow: 0 1px 2px rgb(28 30 35 / 0.08), 0 16px 36px -18px rgb(28 30 35 / 0.42);
  --font-body: "Manrope", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-display: "Outfit", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --sky-wash: rgb(255 255 255 / 0.25);
  --gutter: 1.25rem;
  --bar: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, fieldset {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Background (owner, 3 December 2026): our own grainy colour wash, warm orange in the top left corner,
   deep blue on the left into bright blue in the middle, white on the right; a slight white overlay; the snow on top.
   Drawn in CSS, so it is sharp at any size and costs no download. ---------- */
.sky { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: #eef0f3; }
/* The colours, laid out like a 3:2 picture that covers the screen: wide screens see all of it, phones its middle. */
.sky::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: max(100vw, 150vh);
  height: max(100vh, 66.667vw);
  /* Phones see it from about a fifth of the way in, so the blue shows. */
  transform: translate(calc((100vw - 100%) * 0.25), calc((100vh - 100%) * 0.5));
  background:
    linear-gradient(var(--sky-wash), var(--sky-wash)),
    radial-gradient(44% 40% at 0% 0%, rgb(246 136 98 / 0.95), rgb(246 136 98 / 0)),
    radial-gradient(30% 36% at 0% 60%, rgb(24 40 116), rgb(24 40 116 / 0)),
    radial-gradient(34% 32% at 22% 52%, rgb(50 90 196 / 0.85), rgb(50 90 196 / 0)),
    radial-gradient(28% 28% at 40% 38%, rgb(120 174 243 / 0.95), rgb(120 174 243 / 0)),
    radial-gradient(62% 72% at 6% 36%, rgb(124 110 152 / 0.7), rgb(124 110 152 / 0)),
    linear-gradient(100deg, #bdbace 0%, #d5dff1 42%, #edf0f4 72%, #f4f3f0 100%);
}
/* Fine grain over everything, as in the owner's reference. */
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* Snow: three layers falling at different speeds; each layer moves exactly one
   tile, so the loop has no seam. Softer, smaller and slower than on Lightwork
   (owner, 3 December 2026): flakes about half the size with soft edges, a
   little fainter, falling at about half the speed. */
.snow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.snow i {
  position: absolute;
  left: calc(var(--t) * -1);
  top: calc(var(--t) * -1);
  width: calc(100% + var(--t) * 2);
  height: calc(100% + var(--t) * 2);
  background-size: var(--t) var(--t);
  will-change: transform;
  animation: fall var(--d) linear infinite;
}
/* More snow (owner, 3 December 2026): about twice the flakes, a little larger and brighter. */
.snow i:nth-child(1) {
  --t: 220px; --d: 54s; opacity: 1;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 1.6px, rgb(255 255 255 / 0) 3.2px),
    radial-gradient(circle at 70% 10%, #fff 0 1.1px, rgb(255 255 255 / 0) 2.3px),
    radial-gradient(circle at 45% 75%, #fff 0 1.9px, rgb(255 255 255 / 0) 3.6px),
    radial-gradient(circle at 88% 60%, #fff 0 1.1px, rgb(255 255 255 / 0) 2.3px),
    radial-gradient(circle at 8% 88%, #fff 0 1.3px, rgb(255 255 255 / 0) 2.7px),
    radial-gradient(circle at 58% 48%, #fff 0 1px, rgb(255 255 255 / 0) 2.2px),
    radial-gradient(circle at 34% 4%, #fff 0 1.2px, rgb(255 255 255 / 0) 2.5px),
    radial-gradient(circle at 78% 92%, #fff 0 1.5px, rgb(255 255 255 / 0) 3px);
}
.snow i:nth-child(2) {
  --t: 160px; --d: 84s; opacity: 0.95;
  background-image:
    radial-gradient(circle at 10% 80%, #fff 0 0.9px, rgb(255 255 255 / 0) 2px),
    radial-gradient(circle at 60% 40%, #fff 0 0.8px, rgb(255 255 255 / 0) 1.8px),
    radial-gradient(circle at 85% 15%, #fff 0 1px, rgb(255 255 255 / 0) 2.1px),
    radial-gradient(circle at 32% 22%, #fff 0 0.8px, rgb(255 255 255 / 0) 1.8px),
    radial-gradient(circle at 70% 85%, #fff 0 0.9px, rgb(255 255 255 / 0) 2px),
    radial-gradient(circle at 45% 60%, #fff 0 0.7px, rgb(255 255 255 / 0) 1.6px);
}
.snow i:nth-child(3) {
  --t: 120px; --d: 126s; opacity: 0.85;
  background-image:
    radial-gradient(circle at 30% 20%, #fff 0 0.7px, rgb(255 255 255 / 0) 1.5px),
    radial-gradient(circle at 75% 70%, #fff 0 0.8px, rgb(255 255 255 / 0) 1.6px),
    radial-gradient(circle at 12% 62%, #fff 0 0.6px, rgb(255 255 255 / 0) 1.4px),
    radial-gradient(circle at 58% 8%, #fff 0 0.7px, rgb(255 255 255 / 0) 1.5px);
}
@keyframes fall { to { transform: translate3d(calc(var(--t) * 0.5), var(--t), 0); } }

/* ---------- Glass: frosted white over the snow ---------- */
.glass, .tool, .topnav a {
  border: 1px solid var(--glass-line);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
}

/* ---------- Header (owner, 3 December 2026) ----------
   Phones: V0.1 on the left, the logo with its Lab arrows in the middle, the menu icon on the right.
   Desktops, like the owner's picture: the logo on the left, the menu tabs in the middle, the icons on the right. */
.top { position: relative; z-index: 5; width: 100%; max-width: 80rem; margin: 0 auto; padding: 0.75rem var(--gutter) 0.25rem; color: var(--on-page); container-type: inline-size; }
.top-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 0.5rem; }
.id { display: contents; }
/* The Lab sites (no switch icon; owner, 3 December 2026): the up-and-down arrows beside the logo open a list of them. */
.lab-pick { position: relative; grid-column: 2; grid-row: 1; display: flex; align-items: center; }
.lab-btn { display: flex; align-items: center; justify-content: center; flex: none; width: 1.75rem; height: 2.75rem; border-radius: 0.5rem; color: var(--muted); transition: color 0.15s; }
.lab-btn:hover, .lab-btn[aria-expanded="true"] { color: var(--ink); }
.lab-btn .icon { width: 1.5rem; height: 1.5rem; stroke-width: 2.2; }
.lab-list { position: absolute; top: calc(100% + 0.25rem); left: 50%; z-index: 30; min-width: 14rem; padding: 0.375rem; border: 1px solid var(--glass-line); border-radius: 1rem; background: rgb(255 255 255 / 0.9); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); box-shadow: var(--panel-shadow); transform: translateX(-50%); }
/* Twelve Labs (owner, 3 December 2026): the list scrolls inside itself on short screens. */
.lab-list { min-width: min(14rem, 100vw - 1rem); max-width: calc(100vw - 1rem); max-height: calc(100dvh - 6rem - var(--bar) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.lab-list a, .lab-item { display: flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; padding: 0 0.875rem; border-radius: 0.625rem; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.lab-list a b, .lab-item b { font-weight: 700; }
.lab-list a.lab-home { gap: 0.5rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line); border-radius: 0.625rem 0.625rem 0 0; font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.lab-list a.lab-home .icon { margin-left: 0; color: var(--ink); }
.lab-list a:hover { background: rgb(18 12 8 / 0.06); }
.lab-list a .icon { margin-left: auto; width: 1.25rem; height: 1.25rem; color: var(--mark); stroke-width: 2.2; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.25rem; border-radius: 0.5rem; }
.logo svg { flex: none; width: 26px; height: 26px; color: var(--mark); }
.logo span { font-family: var(--font-display); font-size: 1.375rem; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.logo b { font-weight: 700; }
/* Version number (owner, 3 December 2026): plain grey text, underlined, opens the version log.
   A dark grey, so it stays readable over the blue of the background. */
.ver { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.25rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: #3d4149; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ver:hover, .ver[aria-current] { color: var(--ink); }

/* Icons on the right: the menu on phones; desktops add search, saved and account (owner, 3 December 2026). */
.tools { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 0.5rem; }
.tool { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; color: var(--ink); transition: background-color 0.15s; }
.tool:hover { background: var(--glass-hover); }
.tool .icon { width: 1.375rem; height: 1.375rem; }
.wide-only { display: none; }

/* The smallest phones and very large text: a smaller logo, which shares the row instead of sitting dead centre. */
@container (max-width: 21rem) {
  .top-row { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 0.25rem; }
  .lab-pick { justify-self: center; }
  .logo { gap: 0.375rem; padding-inline: 0.125rem; }
  .logo svg { width: 22px; height: 22px; }
  .logo span { font-size: 1.125rem; }
}
/* Very large text on the smallest phones: the logo gets the top line to itself, V0.1 and the menu go under it. */
@container (max-width: 13.5rem) {
  .top-row { grid-template-columns: minmax(0, 1fr) auto; }
  .lab-pick { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .logo svg { width: 20px; height: 20px; }
  .logo span { font-size: 1rem; }
  .ver { grid-column: 1; grid-row: 2; }
  .tools { grid-column: 2; grid-row: 2; }
}

/* The menu (owner, 3 December 2026): a frosted glass panel the full height of the screen on the right, big text. */
.menu-panel { position: fixed; inset: 0 0 0 auto; width: min(26rem, calc(100vw - 2.5rem)); height: 100dvh; max-height: none; margin: 0; padding: 0.75rem 1.75rem 2rem; overflow-y: auto; overscroll-behavior: contain; border: 0; border-left: 1px solid var(--glass-line); border-radius: 1.5rem 0 0 1.5rem; background: rgb(255 255 255 / 0.74); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); color: var(--ink); box-shadow: -24px 0 60px -20px rgb(28 30 35 / 0.35); transition: translate 0.25s ease, opacity 0.25s ease; }
@starting-style { .menu-panel:popover-open { translate: 2rem 0; opacity: 0; } }
.menu-panel::backdrop { background: rgb(28 30 35 / 0.18); }
.menu-top { display: flex; justify-content: flex-end; margin-right: -0.75rem; }
.menu-close { display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 0.875rem; color: var(--ink); transition: opacity 0.15s; }
.menu-close .icon { width: 2rem; height: 2rem; stroke-width: 1.6; }
.menu-close:hover { opacity: 0.6; }
.menu-head { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding-bottom: 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.menu-head .icon { width: 1.125rem; height: 1.125rem; }
.menu-panel a { display: flex; align-items: center; min-height: 3rem; padding: 0.25rem 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.menu-panel a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 22.49rem) { .menu-panel a { font-size: 1.375rem; } }
@media (prefers-reduced-motion: reduce) { .menu-panel { transition: none; } }
/* Browsers without popovers (iOS 16 and older) would show the menu open: hide it and its button there. */
@supports not selector(:popover-open) {
  [popover], [popovertarget] { display: none !important; }
}

/* Menu tabs: glass, tablets and desktops only (phones have the bottom bar). */
.topnav { display: none; }
.topnav ul { display: flex; justify-content: center; gap: 0.5rem; }
.topnav a { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1.125rem; border-radius: 0.75rem; font-size: 0.9375rem; font-weight: 600; white-space: nowrap; transition: background-color 0.15s; }
.topnav a:hover { background: var(--glass-hover); }
.topnav [aria-current], .topnav [aria-current]:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- Phone bottom bar: black, Home, Discover, Compare, Search, Saved ---------- */
.bottombar { position: fixed; inset: auto 0 0; z-index: 20; background: #0c0805; padding-bottom: env(safe-area-inset-bottom); }
.bottombar ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 28rem; margin: 0 auto; }
.bottombar a, .bottombar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; width: 100%; height: var(--bar); color: #fff; font-size: 0.6875rem; font-weight: 500; outline-offset: -4px; }
.bottombar .icon { width: 22px; height: 22px; }
.bottombar [aria-current] { color: var(--bar-on); font-weight: 600; }
.bottombar a:hover, .bottombar button:hover { color: var(--bar-on); }
@media (min-width: 360px) { .bottombar a, .bottombar button { font-size: 0.75rem; } }

/* ---------- Home: one screen, never scrolls (owner, 3 December 2026) ---------- */
main { flex: 1; display: flex; flex-direction: column; }
body.home { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
.home-grid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; width: 100%; max-width: 30rem; margin: 0 auto; padding: 0.5rem var(--gutter) 0.75rem; }
/* The headline and the last-updated line: on every screen, smaller where space is short (owner, 3 December 2026). */
.hero { text-align: center; }
.updated { margin-top: 0.375rem; font-size: 0.8125rem; font-weight: 500; line-height: 1.35; color: var(--ink-3); }
.hero h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; color: var(--on-page); text-wrap: balance; }

/* The filters box. Its heading, "Search all guitar pickups", is for screen readers only (owner, 3 December 2026). */
.search-box { display: flex; flex-direction: column; }

/* The filters: one frosted white panel. Guitar or bass, then string count and active/passive,
   then coil type and brand, then View all (owner, 3 December 2026). */
.engine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "inst inst" "strings power" "type brand" "go go"; gap: 0.875rem 0.625rem; }
.ctl-inst { grid-area: inst; }
.ctl-strings { grid-area: strings; }
.ctl-power { grid-area: power; }
.ctl-type { grid-area: type; }
.ctl-brand { grid-area: brand; }
.view-all { grid-area: go; }
.ctl { min-width: 0; }
.ctl-label { display: block; padding: 0 0.25rem 0.375rem; font-size: 0.6875rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }

/* Segmented controls: guitar/bass, strings, active/passive, on a light grey well. The chosen one is black. */
.seg { display: grid; gap: 0.25rem; padding: 0.25rem; border-radius: 0.875rem; background: rgb(255 255 255 / 0.62); box-shadow: 0 6px 18px -12px rgb(28 30 35 / 0.35); }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg button, .seg label { display: flex; align-items: center; justify-content: center; height: 2.75rem; border-radius: 0.625rem; font-size: 0.9375rem; font-weight: 600; color: var(--soft-ink); cursor: pointer; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.seg button:hover, .seg label:hover { background: #fff; color: var(--ink); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 6px 14px -8px rgb(0 0 0 / 0.6); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* Drop-downs, each starting at All; one with a choice gets a black edge. 16px text so phones do not zoom in. */
.pick { position: relative; }
.pick select { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 2.75rem; margin: 0; padding: 0 2.25rem 0 0.875rem; border: 1px solid transparent; border-radius: 0.75rem; background: rgb(255 255 255 / 0.72); box-shadow: 0 6px 18px -12px rgb(28 30 35 / 0.35); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.pick select:hover { background: #fff; }
.pick select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: none; }
.pick.on select { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.pick .icon { position: absolute; top: 50%; right: 0.75rem; width: 1.125rem; height: 1.125rem; margin-top: -0.5625rem; pointer-events: none; }

/* View all: orange with white text and a white arrow (owner, 3 December 2026), the count in a white tag.
   White on this orange is 3:1, enough for large text only, so the label is 19px bold and the hover goes darker. */
.view-all { display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.375rem 1rem 0.375rem 1.25rem; border-radius: 0.875rem; background: var(--brand); color: #fff; font-weight: 700; transition: background-color 0.15s; }
@media (max-width: 22.49rem) { .view-all { gap: 0.5rem; padding-inline: 1rem 0.75rem; } }
.view-all:hover { background: var(--brand-strong); }
/* Long labels ("View all 7-string passive" on a small phone) wrap rather than being cut off. */
.view-all .label { flex: 1; min-width: 0; font-size: 1.1875rem; line-height: 1.2; overflow-wrap: anywhere; }
.view-all .count { padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: #fff; color: var(--ink); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.view-all:hover .icon { transform: translateX(2px); }
.view-all .icon { transition: transform 0.15s; }

/* ---------- Most popular reel (hidden for now, owner 3 December 2026; kept for later) ---------- */
.reel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.reel h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--on-page); }
.reel-box { position: relative; flex: 1; min-height: 13rem; margin-top: 0.625rem; }
.reel-track {
  position: absolute;
  inset: 0 calc(var(--gutter) * -1) -1.25rem;
  display: flex;
  gap: 0.75rem;
  padding: 0 var(--gutter) 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.reel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }

/* Pickup cards: plain white (owner, 3 December 2026), black text, the maker in rust orange. */
.card { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 1.25rem; background: #fff; color: var(--ink); box-shadow: var(--panel-shadow); }
.stage { position: relative; flex: 1; min-height: 6rem; }
.stage img { position: absolute; inset: 0.75rem 1.25rem 0.25rem; width: calc(100% - 2.5rem); height: calc(100% - 1rem); object-fit: contain; filter: drop-shadow(0 12px 14px rgb(28 30 35 / 0.22)); }
.tag { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 0.375rem; background: var(--well); color: var(--soft-ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.meta { display: flex; align-items: flex-end; gap: 0.75rem; padding: 0.875rem 1rem 1rem; }
.info { flex: 1; min-width: 0; }
.maker { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust-text); }
.name { margin-top: 0.125rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name .code { font-weight: 500; color: #6b6f78; }
.pos { font-size: 0.875rem; color: var(--soft-ink); }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card .card-link:focus-visible { outline: 0; box-shadow: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
.card:has(.card-link:hover) .view { background: var(--brand-hover); }
.card:has(.card-link:active) { transform: scale(0.99); }
.view { flex: none; display: flex; align-items: center; gap: 0.375rem; height: 2.75rem; padding: 0 0.75rem 0 1rem; border-radius: 0.75rem; background: var(--brand); color: var(--ink); font-weight: 600; transition: background-color 0.15s; }
.add { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; flex-shrink: 0; border: 1px solid rgb(18 12 8 / 0.16); border-radius: 0.75rem; background: #fff; color: var(--ink); transition: background-color 0.15s, color 0.15s; }
.add:hover { background: var(--well); }
.add[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.add .icon { width: 22px; height: 22px; }
.add .check, .add[aria-pressed="true"] .plus { display: none; }
.add[aria-pressed="true"] .check { display: block; }
.card :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 3px #fff; }
.empty { display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; color: var(--soft-ink); font-size: 0.9375rem; }

.arrow { position: absolute; top: var(--arrow-y, 35%); z-index: 2; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-top: -1.375rem; border: 1px solid rgb(18 12 8 / 0.16); border-radius: 0.75rem; background: #fff; color: var(--ink); box-shadow: 0 6px 16px -4px rgb(28 30 35 / 0.3); transition: background-color 0.15s; }
.arrow:hover { background: var(--well); }
.arrow.prev { left: 0.625rem; }
.arrow.next { right: 0.625rem; }

.reel .meta { align-items: center; border-top: 1px solid rgb(18 12 8 / 0.07); }
.reel .add { position: absolute; top: 0.75rem; right: 0.75rem; width: 2.75rem; height: 2.75rem; }

/* ---------- Brand logos: floating in a slow loop at the bottom of the page, larger (owner, 3 December 2026) ---------- */
.brands { flex: none; width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 var(--gutter) 0.5rem; }
.brands-row { display: flex; align-items: center; gap: 0.5rem; }
.brands-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands-track { display: flex; width: max-content; padding: 0.375rem 0 0.75rem; animation: brands-left 90s linear infinite; }
.brands-track li { margin-right: 0.625rem; }
/* Glass without a backdrop blur: the tiles move, and a moving blur is heavy on phones. */
.brands-track a { display: flex; align-items: center; justify-content: center; width: 8rem; height: 3.5rem; padding: 0 0.75rem; border-radius: 0.75rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--soft-ink); transition: opacity 0.15s; }
.brands-track a:hover img { opacity: 1; }
.brands-track img { max-height: 2.25rem; max-width: 100%; width: auto; filter: brightness(0); opacity: 0.78; }
.brands:hover .brands-track, .brands:focus-within .brands-track { animation-play-state: paused; }
@keyframes brands-left { to { transform: translateX(-50%); } }
/* Keyboard on a brand tile: the row stops at its start and the edge fade goes, so the focused tile is in full view. */
.brands-viewport:focus-within { -webkit-mask-image: none; mask-image: none; }
.brands-viewport:focus-within .brands-track { animation: none; }

/* ---------- Glass footer (tablets and desktops) ---------- */
.foot { display: none; }

/* ---------- Phones: tall ones show the headline; short ones tighten so nothing scrolls ---------- */
@media (max-width: 47.99rem) and (min-height: 44rem) {
  .hero h1 { font-size: 1.75rem; }
  .home-grid { gap: 1.5rem; }
}
@media (max-width: 47.99rem) and (min-height: 50rem) {
  .hero h1 { font-size: 2rem; }
  .engine { gap: 1rem 0.75rem; }
  .seg button, .seg label, .pick select { height: 3rem; }
  .view-all { min-height: 3.5rem; }
  .brands-track a { height: 3.75rem; width: 8.5rem; }
  .brands-track img { max-height: 2.5rem; }
}
@media (max-width: 47.99rem) and (max-height: 36rem) {
  .top { padding-top: 0.375rem; padding-bottom: 0; }
  .logo { padding-block: 0.25rem; }
  .home-grid { gap: 0.5rem; padding-block: 0.25rem; }
  .hero h1 { font-size: 1.25rem; }
  .updated { margin-top: 0.125rem; font-size: 0.75rem; }
  .engine { gap: 0.5rem; }
  .ctl-label { padding-bottom: 0.25rem; font-size: 0.625rem; }
  .seg button, .seg label, .pick select { height: 2.375rem; }
  .view-all { min-height: 2.75rem; }
  .brands-track { padding: 0.25rem 0 0.5rem; }
  .brands-track a { height: 3rem; width: 7rem; }
  .brands-track img { max-height: 1.875rem; }
}

/* Phones held sideways: two rows, guitar or bass beside View all, the four drop-downs under them. */
@media (max-width: 47.99rem) and (max-height: 30rem) and (min-width: 30rem) {
  .home-grid { max-width: 46rem; }
  .engine { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "inst inst go go" "strings power type brand"; align-items: end; gap: 0.5rem 0.625rem; }
}

/* The shortest phones held sideways: a smaller headline and slightly shorter controls and brand tiles, so the
   headline and the last-updated line fit without scrolling. */
@media (max-width: 47.99rem) and (max-height: 21rem) {
  .hero h1 { font-size: 1.125rem; }
  .updated { margin-top: 0; }
  .home-grid { gap: 0.375rem; padding-block: 0.125rem; }
  .seg button, .seg label, .pick select { height: 2.125rem; }
  .view-all { min-height: 2.125rem; }
  .brands-track { padding: 0.125rem 0 0.25rem; }
  .brands-track a { height: 2.5rem; }
  .brands-track img { max-height: 1.625rem; }
}

/* ---------- Tablets and desktops ---------- */
@media (min-width: 48rem) {
  .top { padding: 1rem 2rem 0; }
  /* One row, like the owner's picture (3 December 2026): the logo and V0.1 on the left, the tabs in the middle,
     the icons on the right. The side columns share what is left, so the tabs sit in the middle of the page. */
  .top-row { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: 1.5rem; row-gap: 0.5rem; }
  .id { display: flex; align-items: center; gap: 0.5rem; grid-column: 1; grid-row: 1; justify-self: start; }
  /* V0.1 comes first in the page (phones show it on the left); desktops show it after the logo. */
  .id .ver { order: 1; }
  .topnav { display: block; grid-column: 2; grid-row: 1; }
  .wide-only { display: flex; }
  .tools { gap: 0.25rem; }
  .lab-btn { width: 2rem; height: 3rem; }
  .lab-btn .icon { width: 1.75rem; height: 1.75rem; }
  .lab-list { left: 0; transform: none; max-height: calc(100dvh - 5.5rem); }
  /* No room for one row (tablets, very large text): the tabs go under, centred. */
  @container (max-width: 57.5rem) {
    .top-row { grid-template-columns: minmax(0, 1fr) auto; }
    .topnav { grid-column: 1 / -1; grid-row: 2; }
    .tools { grid-column: 2; }
  }
  /* Very large text on tablets: the logo on a line of its own, then the icons, then the tabs. */
  @container (max-width: 30rem) {
    .id { grid-column: 1 / -1; }
    .tools { grid-column: 1 / -1; grid-row: 2; }
    .topnav { grid-row: 3; }
  }
  /* Browsers without container queries (iPadOS 15 and older): always two rows. */
  @supports not (container-type: inline-size) {
    .top-row { grid-template-columns: minmax(0, 1fr) auto; }
    .topnav { grid-column: 1 / -1; grid-row: 2; }
    .tools { grid-column: 2; }
  }
  /* Desktop header icons: large black icons, no boxes (owner, 3 December 2026: "not boxed", "Apple style"). */
  .tool { border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink); transition: opacity 0.15s; }
  .tool:hover { background: none; opacity: 0.6; }
  .tool .icon { width: 2rem; height: 2rem; stroke-width: 1.6; }
  .bottombar { display: none; }
  body.home { padding-bottom: 0; }
  .home-grid { max-width: 56rem; gap: 1.75rem; padding: 1rem 2rem; }
  .search-box { width: 100%; max-width: 38rem; margin-inline: auto; }
  .hero h1 { font-size: clamp(2.25rem, 1rem + 2.6vw, 3.25rem); }
  .updated { margin-top: 0.5rem; font-size: 0.875rem; }
  .engine { gap: 1rem 0.875rem; }
  .ctl-label { font-size: 0.75rem; }
  .brands { padding: 0 2rem 0.75rem; }
  .brands-track a { width: 12.5rem; height: 5rem; font-size: 1.375rem; }
  .brands-track img { max-height: 4rem; }
  .foot { display: block; padding: 0 2rem 1rem; }
  .foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 1.25rem; max-width: 76rem; margin: 0 auto; font-size: 0.75rem; color: var(--muted); }
  .foot ul { display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
  .foot a, .foot button { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 0.375rem; border-radius: 0.375rem; color: var(--muted); }
  .foot a:hover, .foot button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 64rem) {
  .logo svg { width: 32px; height: 32px; }
  .logo span { font-size: 1.75rem; }
}
/* Wide headers with room to spare: bigger tabs and more space between the icons, as in the owner's picture. */
@media (min-width: 48rem) {
  @container (min-width: 66rem) {
    .tools { gap: 0.75rem; }
    .tool { width: 3.25rem; height: 3.25rem; }
    .topnav ul { gap: 0.75rem; }
    .topnav a { height: 2.75rem; padding: 0 1.375rem; }
  }
}
/* Shorter desktop windows, so nothing scrolls: the headline goes to one line (under ~900px tall),
   then is left to screen readers (under ~740px), then the filters go into two rows (under ~660px). */
@media (min-width: 48rem) and (max-height: 56rem) {
  .hero h1 { font-size: 2.25rem; }
}
@media (min-width: 48rem) and (max-height: 46rem) {
  .hero h1 { font-size: 1.75rem; }
  .updated { margin-top: 0.25rem; font-size: 0.8125rem; }
}
@media (min-width: 48rem) and (max-height: 45rem) {
  .top { padding-top: 0.625rem; }
  .home-grid { gap: 1.25rem; padding-block: 0.5rem; }
}
@media (min-width: 48rem) and (max-height: 41rem) {
  .search-box { max-width: 56rem; }
  .engine { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "inst inst go go" "strings power type brand"; align-items: end; }
}
@media (min-width: 48rem) and (max-height: 37rem) {
  .engine { gap: 0.875rem 1rem; }
  .brands-track a { width: 10rem; height: 4rem; }
  .brands-track img { max-height: 3rem; }
  .foot { padding-bottom: 0.625rem; }
}

/* Wide phones held sideways and very short windows: everything a little tighter. */
@media (min-width: 48rem) and (max-height: 28rem) {
  .top { padding-top: 0.25rem; }
  .logo { padding-block: 0.25rem; }
  .tool { width: 2.75rem; height: 2.75rem; }
  .topnav a { height: 2.25rem; }
  .home-grid { gap: 0.5rem; padding-block: 0.25rem; }
  .hero h1 { font-size: 1.375rem; }
  .updated { margin-top: 0.125rem; font-size: 0.75rem; }
  .engine { gap: 0.5rem 1rem; }
  .ctl-label { padding-bottom: 0.25rem; }
  .seg button, .seg label, .pick select { height: 2.375rem; }
  .view-all { min-height: 2.75rem; }
  .brands { padding-bottom: 0.25rem; }
  .brands-track { padding: 0.25rem 0 0.5rem; }
  .brands-track a { width: 8rem; height: 3rem; }
  .brands-track img { max-height: 1.875rem; }
  .foot { padding-bottom: 0.375rem; }
  .foot a, .foot button { min-height: 1.5rem; }
}

/* The shortest screens: a lower bottom bar on phones; on wide ones the footer goes (its links are also in the menu). */
@media (max-width: 47.99rem) and (max-height: 21rem) {
  :root { --bar: 3.25rem; }
  .bottombar a, .bottombar button { gap: 0.125rem; }
  .brands-track { padding: 0.125rem 0 0.25rem; }
}
@media (min-width: 48rem) and (max-height: 22.5rem) {
  .foot { display: none; }
}

/* Short messages (Compare added or full): a black bar above the phone bottom bar, read out by screen readers. */
.say { position: fixed; left: 50%; bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 0.75rem); z-index: 40; width: max-content; max-width: calc(100vw - 2.5rem); padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--ink); color: #fff; font-size: 0.9375rem; font-weight: 600; box-shadow: var(--panel-shadow); transform: translate(-50%, 1rem); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.say.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.say a { margin-left: 0.5rem; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 48rem) { .say { bottom: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .say { transition: none; } }

/* ---------- Search panel (bottom bar and top menu) ---------- */
.search-panel { position: fixed; inset: 0 0 auto; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0 0 1rem 1rem; background: #fff; color: var(--ink); box-shadow: 0 12px 40px rgb(90 35 0 / 0.25); }
.search-panel::backdrop { background: rgb(0 0 0 / 0.45); }
.search-panel > div { max-width: 36rem; margin: 0 auto; padding: 1rem var(--gutter) 1.25rem; }
.search-head { display: flex; align-items: center; justify-content: space-between; }
.search-head h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.close { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-right: -0.5rem; border-radius: 0.75rem; color: #45392f; }
.close:hover { background: var(--raised); }
.search-field { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; padding: 0 0.375rem 0 1rem; height: 3.25rem; border: 1px solid #8f7d71; border-radius: 0.875rem; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 1rem; -webkit-appearance: none; appearance: none; }
.search-field:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.search-field button { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; background: var(--brand); color: var(--ink); }

/* ---------- Entry: two full-height photo panels ---------- */
.entry { min-height: 100dvh; position: relative; display: flex; flex-direction: column; background: #000; }
.entry-head { position: absolute; inset: 0 0 auto; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 1.75rem var(--gutter) 4rem; text-align: center; background: linear-gradient(180deg, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0.5) 55%, transparent); pointer-events: none; }
.entry-head .logo { padding: 0; color: #fff; }
.entry-head .logo svg { width: 34px; height: 34px; }
.entry-head .logo span { font-size: 1.75rem; }
.entry-head h1 { margin-top: 0.75rem; font-size: 0.9375rem; font-weight: 500; color: rgb(255 255 255 / 0.85); }
.entry-panels { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.entry-panels a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 30rem; overflow: hidden; outline-offset: -6px; }
.entry-panels li + li a { border-left: 1px solid rgb(255 255 255 / 0.15); }
.entry-panels li { display: flex; }
.entry-panels li > a { flex: 1; }
.entry-panels img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease-out; }
.entry-panels a:hover img { transform: scale(1.04); }
.entry-panels .fade { position: absolute; inset: auto 0 0; height: 60%; background: linear-gradient(0deg, #000, rgb(0 0 0 / 0.8), transparent); }
.entry-text { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 0.75rem 2.5rem; text-align: center; color: #fff; }
.entry-text strong { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; }
.entry-text span { margin-top: 0.75rem; max-width: 12rem; min-height: 2.75em; font-size: 0.9375rem; line-height: 1.35; color: rgb(255 255 255 / 0.85); }
.entry-text i { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-top: 1.5rem; border-radius: 0.75rem; background: var(--brand); color: var(--ink); }
@media (min-width: 40rem) {
  .entry-head { padding-top: 2.25rem; }
  .entry-head h1 { font-size: 1rem; }
  .entry-text { padding-bottom: 3.5rem; }
  .entry-text strong { font-size: 3rem; }
  .entry-text span { max-width: none; min-height: 0; font-size: 1.125rem; }
}

/* ---------- Search results: the options menu at the top on phones, on the left on desktops ---------- */
.results { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0.5rem var(--gutter) calc(var(--bar) + env(safe-area-inset-bottom) + 1.5rem); }
.results-head { color: var(--on-page); }
.results-head h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.results-head .note { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--on-page-2); }
.qline { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-top: 0.5rem; font-size: 0.9375rem; }
.qline[hidden] { display: none; }
.qline button, .clear { height: 2.5rem; padding: 0 0.5rem; margin-left: -0.5rem; border-radius: 0.5rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.qline button:hover, .clear:hover { background: var(--on-page-hover); }

.filters { margin-top: 0.875rem; padding: 0.625rem; border-radius: 1.25rem; background: #fff; box-shadow: var(--panel-shadow); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
/* Phones: the six buttons first, then the one open list across the full width under them. */
.fgroup { display: contents; }
.fbtn { order: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.25rem; min-height: 3.25rem; padding: 0.375rem 0.625rem 0.375rem 0.75rem; border: 1px solid var(--line); border-radius: 0.875rem; background: #fff; text-align: left; transition: background-color 0.15s, color 0.15s; }
.fbtn .flabel { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #45392f; line-height: 1.3; overflow-wrap: anywhere; }
.fbtn .fval { grid-column: 1; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbtn .icon { grid-column: 2; grid-row: 1 / span 2; width: 1rem; height: 1rem; transition: transform 0.15s; }
.fbtn.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fbtn[aria-expanded="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.fbtn[aria-expanded="true"] .flabel { color: rgb(255 255 255 / 0.75); }
.fbtn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.fopts { order: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.25rem 0 0.125rem; }
.fopts[hidden] { display: none; }
.opt { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding: 0 0.75rem; border: 1px solid rgb(110 93 82 / 0.7); border-radius: 0.75rem; background: #fff; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .n { font-size: 0.8125rem; font-weight: 600; color: #6e5d52; font-variant-numeric: tabular-nums; }
.opt:hover { background: var(--raised); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt:has(input:checked) .n { color: rgb(255 255 255 / 0.75); }
.opt.zero { opacity: 0.5; }
.opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.legacy { display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; margin-top: 0.375rem; padding: 0 0.25rem; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.legacy input { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--ink); cursor: pointer; }

.fbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; margin-top: 1rem; color: var(--on-page); }
.fbar h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.fbar .clear { margin: 0 -0.5rem 0 0; }
.fbar .clear[hidden] { display: none; }
.hidden-note { margin-top: 0.25rem; font-size: 0.875rem; color: var(--on-page-2); }
.hidden-note[hidden] { display: none; }

.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.rcard { height: auto; min-height: 100%; }
/* Tag top left, + top right, the photo underneath them so nothing sits on the pickup. */
.rcard { container-type: inline-size; }
/* Height from the card's width (80%), at least room for the tag, + and a photo. */
.rcard .stage { flex: none; height: max(8.5rem, 80cqw); min-height: 0; }
.rcard .stage img { inset: 3rem 0.625rem 0.5rem; width: calc(100% - 1.25rem); height: calc(100% - 3.5rem); filter: drop-shadow(0 10px 12px rgb(28 30 35 / 0.22)); }
.rcard .tag { top: 0.5rem; left: 0.5rem; max-width: calc(100% - 4rem); padding: 0.125rem 0.375rem; font-size: 0.6875rem; line-height: 1.3; overflow-wrap: anywhere; }
.rcard .nophoto { top: 2.5rem; }
.rcard .meta { flex: 1; display: block; padding: 0.625rem 0.75rem 0.875rem; }
.rcard .name { font-size: 1rem; line-height: 1.3; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.rcard .variant, .rcard .spec { font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
.rcard .variant { margin-top: 0.125rem; }
.rcard .spec { margin-top: 0.375rem; }
.rcard .add { position: absolute; top: 0.5rem; right: 0.5rem; width: 2.5rem; height: 2.5rem; }
.nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.rempty { grid-column: 1 / -1; padding: 2rem 1.25rem; border-radius: 1.25rem; background: #fff; box-shadow: var(--panel-shadow); text-align: center; }
.rempty p + p { margin-top: 0.5rem; color: #45392f; }
.rempty button { margin-top: 1rem; height: 2.75rem; padding: 0 1.25rem; border-radius: 0.75rem; background: var(--ink); color: #fff; font-weight: 600; }

@media (max-width: 22.49rem) {
  .rcard .tag { font-size: 0.625rem; padding: 0.0625rem 0.25rem; }
  .rcard .add { width: 2.25rem; height: 2.25rem; }
  .rcard .add .icon { width: 20px; height: 20px; }
}
@media (min-width: 30rem) {
  .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 40rem) {
  .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 48rem) {
  .results { padding: 1.5rem 2rem 2.5rem; }
  .results-head h1 { font-size: 1.875rem; }
}
@media (min-width: 64rem) {
  .results-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 1.25rem; }
  .filters { position: sticky; top: 1rem; margin-top: 0; padding: 0.5rem 1rem 0.75rem; }
  .fgrid { display: block; }
  .fgroup { display: block; padding: 0.375rem 0; border-bottom: 1px solid var(--line); }
  .fbtn { width: 100%; min-height: 2.75rem; padding: 0.25rem; border: 0; border-radius: 0.5rem; background: none; }
  .fbtn.on { box-shadow: none; }
  .fbtn[aria-expanded="true"] { background: none; color: inherit; }
  .fbtn[aria-expanded="true"] .flabel { color: #45392f; }
  .fbtn:hover { background: var(--raised); }
  .fopts { padding: 0.25rem 0 0.5rem; }
  .legacy { margin-top: 0.5rem; }
  .fbar { margin-top: 0; }
}

/* ---------- Version log ---------- */
.doc { width: 100%; max-width: 40rem; margin: 0 auto; padding: 0.5rem var(--gutter) calc(var(--bar) + env(safe-area-inset-bottom) + 2rem); }
.doc h1 { color: var(--on-page); font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.doc-box, .log > li { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: 1.25rem; background: #fff; box-shadow: var(--panel-shadow); }
.doc-box h2, .log h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.facts { margin: 0.25rem 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.625rem 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: #45392f; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.log { margin-top: 0.5rem; }
.log h2 span { margin-left: 0.5rem; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: #45392f; }
.log p { margin-top: 0.25rem; }
.log ul { margin-top: 0.5rem; padding-left: 1.25rem; list-style: disc; }
.log ul li + li { margin-top: 0.375rem; }
@media (min-width: 48rem) {
  .doc { padding: 2rem 2rem 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .snow i, .brands-track { animation: none !important; }
  .brands-viewport { overflow-x: auto; mask-image: none; }
  .brands-track .copy { display: none; }
}
