/* ---------- The header and footer of every page (owner, 3 December 2026: "set the header and footer as the
   header for every page on site"; the RigNerd header stays the same in every category) ----------
   Universal search, the category megamenu and quick links, and the glass footer. Builds on site.css. */

.skip { position: absolute; left: 0.75rem; top: -4rem; z-index: 60; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 0.75rem; }

/* Header (owner, 3 December 2026): the logo, universal search (no background of its own) and icons on #ffffff57,
   then the categories on #ff5f1582 with a thin glass blur, in bold. */
.uni { position: relative; z-index: 30; width: 100%; color: var(--ink); container-type: inline-size; }
.uni-top { position: relative; background: #ffffff57; }
.uni-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo tools" "search search"; align-items: center; gap: 0 0.75rem; max-width: 80rem; margin: 0 auto; padding: 0.5rem var(--gutter); }
.uni-logo { grid-area: logo; justify-self: start; }
.uni .tools { grid-area: tools; grid-column: auto; grid-row: auto; gap: 0.25rem; }
.uni .tool { border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.uni .tool:hover, .uni .tool[aria-expanded="true"] { background: rgb(255 255 255 / 0.55); }
.menu-btn .i-shut, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-shut { display: block; }

/* The universal search: a row of its own on phones, opened by the search button. */
.uni-search { grid-area: search; display: none; align-items: stretch; height: 3rem; margin: 0.5rem 0 0.25rem; border: 1px solid var(--line-strong); border-radius: 0.875rem; background: none; }
.uni.search-open .uni-search { display: flex; }
.uni-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.uni-cat { position: relative; display: flex; align-items: center; flex: none; border-right: 1px solid var(--line); }
.uni-cat select { height: 100%; max-width: 8rem; padding: 0 2rem 0 0.875rem; border: 0; border-radius: 0.875rem 0 0 0.875rem; background: transparent; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.uni-cat .icon { position: absolute; right: 0.625rem; width: 1rem; height: 1rem; pointer-events: none; }
.uni-search input { flex: 1; min-width: 0; padding: 0 0.875rem; border: 0; background: transparent; font-size: 1rem; outline: 0; }
.uni-search input::placeholder { color: var(--muted); opacity: 1; }
.uni-search button { display: flex; align-items: center; justify-content: center; flex: none; width: 3rem; border-radius: 0 0.8125rem 0.8125rem 0; background: var(--ink); color: #fff; }
.uni-search button .icon { width: 1.25rem; height: 1.25rem; }
.uni-search :focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.uni-search button:focus-visible { outline-color: #fff; }

/* The menu: a drop-down under the bar. Phones: the categories, then the other links at the bottom. */
.menu-drop { position: absolute; top: 100%; left: 0; right: 0; z-index: 40; max-height: calc(100dvh - 4.5rem - var(--bar, 0px)); overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem var(--gutter) 1.25rem; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--panel-shadow); }
.menu-drop[hidden] { display: none; }
.menu-h { padding: 0.5rem 0 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft-ink); }
.menu-cats a, .menu-cats .cat-off { display: flex; align-items: center; min-height: 3rem; font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.menu-cats a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-links { margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.menu-links a, .menu-links button { display: flex; align-items: center; min-height: 2.75rem; font-size: 1rem; font-weight: 600; color: var(--ink-3); }
.menu-cats a:hover, .menu-links a:hover, .menu-links button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* Info and Account: small drop-downs of links. */
.menu-small .menu-links { margin-top: 0; padding-top: 0.25rem; border-top: 0; }
/* Compare, Saved and Account show in the bar on desktops only; phones and tablets have them in the bottom bar. */
.uni .desk-only { display: none; }

/* The categories beneath the bar: a light white overlay with a thin glass blur; desktops only (phones have them in the menu). */
/* Black, as the search button and the phone bottom bar; white names, the current category in orange (owner, 3 December 2026). */
.cats { display: none; background: #0c0805; }
.cats-list { display: flex; justify-content: center; gap: 0.125rem; max-width: 80rem; margin: 0 auto; padding: 0.25rem var(--gutter); }
.cats-list a, .cats-list .cat-off { position: relative; display: flex; align-items: center; height: 2.75rem; padding: 0 0.75rem; border-radius: 0.625rem; font-size: 0.9375rem; font-weight: 700; white-space: nowrap; color: #fff; }
.cats-list a:hover { background: rgb(255 255 255 / 0.12); }
.cats-list a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.cats-list a[aria-current] { color: var(--bar-on); }
.cats-list a[aria-current]::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.375rem; height: 2px; border-radius: 1px; background: var(--bar-on); }

/* Room for the search in the bar: logo, search, icons on one line. */
@container (min-width: 46rem) {
  .uni-row { grid-template-columns: minmax(max-content, 1fr) minmax(0, 40rem) minmax(max-content, 1fr); grid-template-areas: "logo search tools"; gap: 1.5rem; padding-block: 0.75rem; }
  .uni-search, .uni.search-open .uni-search { display: flex; height: 3.25rem; margin: 0; }
  .uni-cat select { max-width: 11rem; }
  .search-btn { display: none; }
  .wide-only { display: flex; }
  .menu-drop { left: auto; right: max(var(--gutter), calc((100% - 80rem) / 2 + var(--gutter))); width: 22rem; padding-inline: 1.5rem; border: 1px solid var(--line); border-radius: 0 0 1.25rem 1.25rem; }
  .menu-small { width: 16rem; }
}
/* Room for every category in a row: the row shows, and the menu keeps only the other links. */
@container (min-width: 72rem) {
  .cats { display: block; }
  .uni .desk-only { display: flex; }
  .uni .menu-btn, #siteMenu { display: none; }
}

/* Very large text on a narrow phone: the logo wraps rather than spilling sideways. */
@container (max-width: 14rem) {
  .uni-logo .logo-name { white-space: normal; overflow-wrap: anywhere; }
  .uni-search { flex-wrap: wrap; height: auto; }
  .uni-cat { flex: 1 0 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .uni-cat select { width: 100%; max-width: none; height: 2.75rem; border-radius: 0.875rem 0.875rem 0 0; }
  .uni-search input { height: 2.75rem; }
  .uni-search button { border-radius: 0 0 0.8125rem 0; }
}

/* The footer: a thin line, no background, only the required links (owner, 3 December 2026). */
.uni-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; width: 100%; max-width: 80rem; margin: 2rem auto 0; padding: 0.5rem var(--gutter); border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-3); }
.foot-links { display: flex; flex-wrap: wrap; column-gap: 1rem; }
.foot-links a, .foot-links button { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--ink-3); }
.foot-links a:hover, .foot-links button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* A Lab's own pages (Home, Discover, Compare, Saved) at the top of its pages on desktops; phones have the bottom bar.
   No Lab logo (owner, 3 December 2026). */
.lab-bar { display: flex; justify-content: center; width: 100%; max-width: 80rem; margin: 0 auto; padding: 0.5rem 0 0; }
.lab-bar .topnav ul { flex-wrap: wrap; }
@media (min-width: 48rem) {
  .lab-bar { padding: 1.25rem 0 0.75rem; }
}

/* Breadcrumb: where you are, under the header (owner, 3 December 2026; replaces the Lab tabs). */
.crumbs { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0.75rem 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.125rem 0.375rem; font-size: 0.875rem; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.375rem; min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: "›"; color: var(--soft-ink); }
.crumbs a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--ink); text-decoration: underline; text-decoration-color: rgb(18 12 8 / 0.3); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration-color: currentColor; }
.crumbs [aria-current] { font-weight: 600; color: var(--ink); }
@media (min-width: 48rem) { .crumbs { padding-top: 1.25rem; } }
/* Product page on phones: breadcrumbs centred (owner, 3 December 2026). */
@media (max-width: 47.99rem) { body.plain .crumbs ol { justify-content: center; text-align: center; } }

/* Compare counts on the header icon and the bottom bar. */
.tool-compare { position: relative; }
.tool-n, .bb-n { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; border-radius: 0.625rem; background: var(--brand); color: var(--ink); font-size: 0.75rem; font-weight: 700; line-height: 1; }
.tool-n { position: absolute; top: 0.125rem; right: 0.125rem; }
.bottombar li { position: relative; }
.bb-n { position: absolute; top: 0.375rem; left: calc(50% + 0.375rem); }
.tool-n[hidden], .bb-n[hidden] { display: none; }

/* Phones: room at the foot of every page for the bottom bar. */
@media (max-width: 47.99rem) {
  body { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
  body.home { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
}

/* The Compare tray (owner, 3 December 2026): at the foot of the screen while pickups are chosen;
   above the bottom bar on phones. */
.ctray { position: fixed; left: 0; right: 0; bottom: calc(var(--bar) + env(safe-area-inset-bottom)); z-index: 25; padding: 0 0.5rem 0.5rem; }
.ctray[hidden] { display: none; }
.ctray-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; max-width: 60rem; margin: 0 auto; padding: 0.625rem 0.75rem; border: 1px solid var(--glass-line); border-radius: 1rem; background: rgb(255 255 255 / 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--panel-shadow); }
.ctray-h { flex: 1 1 auto; font-size: 0.875rem; color: var(--ink-3); }
.ctray-h b { margin-right: 0.25rem; font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.ctray-items { display: none; }
.ctray-do { display: flex; align-items: center; gap: 0.5rem; }
.ctray-clear { min-height: 2.75rem; padding: 0 0.75rem; border-radius: 0.75rem; font-weight: 600; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.ctray-go { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 0.75rem; background: var(--brand); color: var(--ink); font-weight: 700; }
.ctray-go:hover { background: var(--brand-hover); }
.ctray-go .icon { width: 1.125rem; height: 1.125rem; stroke-width: 2.2; }
body.has-tray { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 5rem); }
body.has-tray .say { bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 5.5rem); }
@media (min-width: 48rem) {
  .ctray { bottom: 0; padding: 0 1rem 1rem; }
  .ctray-items { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 0.375rem; order: 2; }
  .ctray-items li { display: inline-flex; align-items: center; gap: 0.125rem; max-width: 100%; padding: 0 0 0 0.75rem; border: 1px solid var(--line); border-radius: 0.625rem; background: #fff; font-size: 0.8125rem; }
  .ctray-name { overflow-wrap: anywhere; }
  .ctray-items button { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; color: var(--ink-3); }
  .ctray-items button:hover { color: var(--ink); background: var(--raised); }
  .ctray-items .icon { width: 1rem; height: 1rem; }
  body.has-tray { padding-bottom: 9rem; }
  body.has-tray .say { bottom: 9rem; }
}
/* Compare tray on tablets and desktops (owner, 4 December 2026): a full-width black bar at the foot of the screen.
   One row: heading, the chosen pickups, then Clear and Compare. */
@media (min-width: 48rem) {
  .ctray { padding: 0; }
  .ctray-in { flex-wrap: nowrap; gap: 1rem; max-width: none; margin: 0; padding: 0.875rem max(1.5rem, calc((100vw - 80rem) / 2)); border: 0; border-top: 1px solid rgb(255 255 255 / 0.12); border-radius: 0; background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -8px 24px rgb(18 12 8 / 0.18); color: #fff; }
  .ctray-h { flex: none; display: flex; flex-direction: column; color: rgb(255 255 255 / 0.7); line-height: 1.3; }
  .ctray-h b { margin: 0; color: #fff; }
  .ctray-items { flex: 1 1 auto; order: 0; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ctray-items::-webkit-scrollbar { display: none; }
  .ctray-items li { flex: 0 1 auto; min-width: 6rem; max-width: 20rem; border-color: rgb(255 255 255 / 0.18); background: rgb(255 255 255 / 0.08); color: #fff; white-space: nowrap; }
  .ctray-items .ctray-name { overflow: hidden; text-overflow: ellipsis; }
  .ctray-items button { flex: none; }
  .ctray-items button { color: rgb(255 255 255 / 0.7); }
  .ctray-items button:hover { color: #fff; background: rgb(255 255 255 / 0.12); }
  .ctray-do { flex: none; }
  .ctray-clear { color: #fff; }
  .ctray-clear:hover { color: var(--brand); }
  .ctray-clear:focus-visible, .ctray-go:focus-visible, .ctray-items button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  body.has-tray { padding-bottom: 5.5rem; }
  body.has-tray .say { bottom: 6rem; }
  .ctray-in .ctray-hide { color: #fff; }
  .ctray-in .ctray-hide:hover { color: var(--brand); }
  .ctray-hide:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
}
/* Hide the Compare tray without clearing it (owner, 4 December 2026): it folds to a small black tab at the right. */
.ctray-hide { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; padding: 0 0.5rem; border-radius: 0.75rem; font-weight: 600; color: var(--ink-3); }
.ctray-hide .icon { width: 1.125rem; height: 1.125rem; }
.ctray.is-min { left: auto; right: 0.5rem; padding: 0 0 0.5rem; }
.ctray-tab { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.75rem 0 1rem; border-radius: 0.75rem; background: var(--ink); color: rgb(255 255 255 / 0.75); font-size: 0.875rem; box-shadow: 0 6px 18px rgb(18 12 8 / 0.25); }
.ctray-tab b { font-family: var(--font-display); font-size: 1rem; color: #fff; }
.ctray-tab .icon { width: 1.125rem; height: 1.125rem; color: #fff; transform: rotate(180deg); }
.ctray-tab:hover b, .ctray-tab:hover .icon { color: var(--brand); }
.ctray-tab:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
body.has-tray-min { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 3.5rem); }
@media (max-width: 47.99rem) { body.has-tray-min .say { bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 3.75rem); } }
@media (min-width: 48rem) {
  .ctray.is-min { right: max(1.5rem, calc((100vw - 80rem) / 2)); padding: 0; }
  .ctray-tab { border-radius: 0.75rem 0.75rem 0 0; box-shadow: 0 -6px 18px rgb(18 12 8 / 0.18); }
  body.has-tray-min { padding-bottom: 3rem; }
}
@media (min-width: 48rem) and (max-width: 71.99rem) {
  body.has-tray-min { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 3rem); }
}

/* Tablets keep the bottom bar too (owner, 3 December 2026): it goes only once the category row shows (72rem). */
@media (min-width: 48rem) and (max-width: 71.99rem) {
  .bottombar { display: block; }
  body, body.home { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
  .say { bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 0.75rem); }
  .ctray { bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
  body.has-tray { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 5.5rem); }
  body.has-tray .say { bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 6rem); }
}

/* Info pages: Contact, FAQ, Submit, Terms, Privacy (owner, 3 December 2026). Centred text floating on the
   page background, in a narrow column. */
.info { width: 100%; max-width: 40rem; margin: 0 auto; padding: 2.5rem var(--gutter) 1rem; text-align: center; color: var(--ink); }
.info h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.info-lead { margin-top: 0.875rem; font-size: 1.125rem; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }
.info-big { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; overflow-wrap: anywhere; }
.info section { margin-top: 2.25rem; }
.info h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.info p { line-height: 1.65; text-wrap: pretty; }
.info section p { margin-top: 0.5rem; }
.info a { color: var(--ink); text-decoration: underline; text-decoration-color: rgb(18 12 8 / 0.35); text-underline-offset: 3px; }
.info a:hover { text-decoration-color: currentColor; }
.info-draft { margin-top: 2.5rem; font-size: 0.8125rem; color: var(--ink-3); }
@media (min-width: 48rem) {
  .info { padding-top: 4rem; }
  .info h1 { font-size: 2.75rem; }
}

/* A category page's own Lab logo, centred above the headline inside the hero (owner, 3 December 2026), so the
   logo, headline and finder sit together as one block. */
.lab-mark { display: flex; justify-content: center; margin-bottom: 0.875rem; container-type: inline-size; }
.lab-logo { color: var(--ink); }
.lab-logo svg { width: 28px; height: 28px; }
.lab-logo span { font-size: 1.625rem; letter-spacing: -0.03em; }
@container (max-width: 14rem) {
  .lab-logo span { white-space: normal; overflow-wrap: anywhere; font-size: 1.375rem; }
}
@media (min-width: 48rem) {
  .lab-mark { margin-bottom: 1.25rem; }
  .lab-logo svg { width: 34px; height: 34px; }
  .lab-logo span { font-size: 2rem; }
}
/* Headline below the Lab logo: one step smaller, so the logo leads; the updated line has room to breathe.
   The block starts a set distance under the header rather than floating in the middle of the window. */
.hero:has(.lab-mark) h1 { font-size: 1.625rem; }
.hero:has(.lab-mark) .updated { margin-top: 0.5rem; }
body:has(.lab-mark) .home-grid { flex: none; justify-content: flex-start; padding-top: 2rem; }
@media (min-width: 48rem) {
  body:has(.lab-mark) .home-grid { padding-top: 3.5rem; }
  body:has(.lab-mark) .home-grid { padding-top: 2.25rem; gap: 1.25rem; }
  .hero:has(.lab-mark) h1 { font-size: clamp(1.875rem, 1rem + 1.6vw, 2.5rem); }
  .hero:has(.lab-mark) .updated { margin-top: 0.625rem; }
}

/* Category pages on tablets and desktops, tightened (owner, 3 December 2026): one compact block under the header,
   with the brand strip tucked under the finder at the finder's own scale. */
@media (min-width: 48rem) {
  body:has(.lab-mark) .lab-mark { margin-bottom: 0.75rem; }
  .hero:has(.lab-mark) h1 { font-size: clamp(1.875rem, 1rem + 1.4vw, 2.25rem); }
  .hero:has(.lab-mark) .updated { margin-top: 0.375rem; }
  body:has(.lab-mark) .engine { gap: 0.75rem 0.75rem; }
  body:has(.lab-mark) .ctl-label { padding-bottom: 0.3125rem; }
  body:has(.lab-mark) .seg button, body:has(.lab-mark) .pick select { height: 2.75rem; }
  body:has(.lab-mark) .view-all { min-height: 3.25rem; margin-top: 0.25rem; }
  body:has(.lab-mark) .brands { max-width: 64rem; margin-top: 1.5rem; padding-bottom: 1.5rem; }
  body:has(.lab-mark) .brands-track { padding: 0.25rem 0 0.5rem; }
  body:has(.lab-mark) .brands-track a { width: 11rem; height: 4rem; }
  body:has(.lab-mark) .brands-track img { max-height: 3rem; }
}

/* Most popular, floating (owner, 3 December 2026): desktops only. The headline and finder move to the left; one
   pickup floats on the right, drifting slowly. No card: the photo, a soft shadow and a caption. */
.float-pick { display: none; }
@media (min-width: 72rem) {
  body:has(.float-pick:not([hidden])) .home-grid { display: grid; grid-template-columns: minmax(0, 38rem) minmax(0, 1fr); grid-template-areas: "hero pick" "search pick"; column-gap: 4rem; row-gap: 1.25rem; max-width: 76rem; align-items: start; }
  body:has(.float-pick:not([hidden])) .hero { grid-area: hero; text-align: left; }
  body:has(.float-pick:not([hidden])) .lab-mark { justify-content: flex-start; margin-left: -0.25rem; }
  body:has(.float-pick:not([hidden])) .search-box { grid-area: search; max-width: none; margin: 0; }
  .float-pick:not([hidden]) { grid-area: pick; align-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .fp-h { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
  .fp-tabs { display: inline-flex; gap: 0.25rem; margin-top: 0.5rem; padding: 0.25rem; border-radius: 0.75rem; background: rgb(255 255 255 / 0.62); }
  .fp-tabs button { height: 2.25rem; padding: 0 0.875rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--soft-ink); }
  .fp-tabs button:hover { background: #fff; color: var(--ink); }
  .fp-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .fp-link { display: flex; flex-direction: column; align-items: center; margin-top: 1rem; color: var(--ink); }
  .fp-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 0.75rem; }
  .fp-stage { display: block; width: min(100%, 24rem); }
  .fp-stage img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 22px rgb(28 30 35 / 0.28)); animation: fp-float 7s ease-in-out infinite; }
  .fp-in img { animation: fp-arrive 0.5s ease-out, fp-float 7s ease-in-out 0.5s infinite; }
  .fp-cap { display: flex; flex-direction: column; margin-top: 1rem; }
  .fp-maker { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust-text); }
  .fp-name { margin-top: 0.125rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
  .fp-link:hover .fp-name { text-decoration: underline; text-underline-offset: 4px; }
  .fp-note { margin-top: 0.375rem; font-size: 0.75rem; color: var(--ink-3); }
}
@keyframes fp-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
@keyframes fp-arrive {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) rotate(-1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fp-stage img, .fp-in img { animation: none; }
}

/* Search results: which Lab you are searching (owner, 3 December 2026). A full-width black bar of small capitals
   under the main nav; a fine line parts it from the black category row on desktops. */
.lab-strip { width: 100%; padding: 0.5rem var(--gutter); border-top: 1px solid rgb(255 255 255 / 0.16); background: #0c0805; color: rgb(255 255 255 / 0.78); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; text-align: center; text-transform: uppercase; }
.lab-strip { display: flex; align-items: center; justify-content: center; gap: 0.625rem; padding-block: 0.375rem; }
.lab-strip a { color: #fff; text-decoration: none; }
/* The PickupLab logo itself, in white with its orange mark. */
.strip-logo { padding: 0.125rem 0.25rem; text-transform: none; letter-spacing: normal; }
.strip-logo svg { width: 22px; height: 22px; }
.strip-logo span { font-size: 1.125rem; }
.lab-strip a:hover { opacity: 0.8; }
.lab-strip a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }

/* Placeholders (owner, 3 December 2026) for Labs without products yet: a blank photo area with the Lab mark, and
   blank brand tiles. Light glass, no invented names. */
@media (min-width: 72rem) {
  .fp-ph { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px dashed rgb(18 12 8 / 0.18); border-radius: 1.5rem; background: rgb(255 255 255 / 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fp-float 7s ease-in-out infinite; }
  .fp-ph svg { width: 30%; height: auto; aspect-ratio: 1; color: rgb(18 12 8 / 0.12); }
  .float-pick[data-placeholder] .fp-maker, .float-pick[data-placeholder] .fp-name { color: var(--ink-3); }
}
.brand-ph { display: flex; align-items: center; justify-content: center; width: 8rem; height: 3.5rem; border: 1px dashed rgb(18 12 8 / 0.16); border-radius: 0.75rem; background: rgb(255 255 255 / 0.4); font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; color: rgb(18 12 8 / 0.35); }
@media (min-width: 48rem) {
  body:has(.lab-mark) .brand-ph { width: 11rem; height: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-ph { animation: none; }
}
.fp-stage[hidden] { display: none !important; }

/* Category, search and info pages: a #cccccc background (owner, 3 December 2026). */
html:has(body.grey) { --page: #cccccc; background: #cccccc; }
/* The sky layer sits above the page colour: make it flat #cccccc, no wash or snow. */
body.grey .sky { background: #cccccc; }
body.grey .uni-top { background: #fff; }
body.grey .sky::before, body.grey .sky::after, body.grey .snow { display: none; }
/* Desktops: the top bar is solid white on every page (owner, 3 December 2026). */
@media (min-width: 72rem) { .uni-top { background: #fff; } }
/* Category and search pages: white #fff, no wash or snow (owner, 3 December 2026; white from 4 December 2026). */
html:has(body.white) { --page: #fff; background: #fff; }
body.white .sky { background: #fff; }
body.white .sky::before, body.white .sky::after, body.white .snow { display: none; }
body.white .uni-top { background: #fff; }
/* On white, the finder's controls keep a soft grey fill and a thin edge so they still read as controls. */
body.white .seg, body.white .fp-tabs { background: #ebe9e6; box-shadow: none; }
body.white .seg button:hover, body.white .seg label:hover { background: #fff; }
body.white .pick select { border: 1px solid rgb(18 12 8 / 0.16); box-shadow: none; }
body.white .fp-ph, body.white .brand-ph { background: #fff; }
/* Phones: no links in the footer; they are all in the Info menu (owner, 3 December 2026). */
@media (max-width: 47.99rem) { .uni-foot nav { display: none; } }
.menu-links button { font: inherit; color: inherit; text-align: left; }
/* Category pages on phones fit the screen without scrolling (owner, 3 December 2026): less space above and between,
   then shorter controls and brand tiles as the screen gets shorter (a phone browser's bars included). */
@media (max-width: 47.99rem) {
  body:has(.lab-mark) .home-grid { padding-top: 1rem; gap: 1rem; }
  body:has(.lab-mark) .lab-mark { margin-bottom: 0.5rem; }
  .hero:has(.lab-mark) h1 { font-size: 2rem; }
  .hero:has(.lab-mark) .updated { margin-top: 0.25rem; }
  body:has(.lab-mark) .brands { padding-bottom: 0; }
  body:has(.lab-mark) .uni-foot { margin-top: 0; }
}
@media (max-width: 47.99rem) and (max-height: 50rem) {
  body:has(.lab-mark) .home-grid { padding-top: 0.75rem; gap: 0.75rem; }
  body:has(.lab-mark) .lab-mark { margin-bottom: 0.375rem; }
  .lab-logo svg { width: 24px; height: 24px; }
  .lab-logo span { font-size: 1.375rem; }
  .hero:has(.lab-mark) h1 { font-size: 1.875rem; }
  body:has(.lab-mark) .engine { gap: 0.625rem 0.625rem; }
  body:has(.lab-mark) .ctl-label { padding-bottom: 0.25rem; }
  body:has(.lab-mark) .seg button, body:has(.lab-mark) .pick select { height: 2.5rem; }
  body:has(.lab-mark) .view-all { min-height: 3rem; }
  body:has(.lab-mark) .brands-track { padding: 0.125rem 0 0.25rem; }
  body:has(.lab-mark) .brands-track a, body:has(.lab-mark) .brand-ph { height: 2.75rem; }
  body:has(.lab-mark) .brands-track img { max-height: 1.875rem; }
}
@media (max-width: 47.99rem) and (max-height: 41rem) {
  body:has(.lab-mark) .home-grid { padding-top: 0.5rem; gap: 0.5rem; }
  .lab-logo svg { width: 22px; height: 22px; }
  .lab-logo span { font-size: 1.25rem; }
  .hero:has(.lab-mark) h1 { font-size: 1.625rem; }
  .hero:has(.lab-mark) .updated { margin-top: 0.125rem; font-size: 0.75rem; }
  body:has(.lab-mark) .engine { gap: 0.5rem; }
  body:has(.lab-mark) .ctl-label { font-size: 0.625rem; }
  body:has(.lab-mark) .seg button, body:has(.lab-mark) .pick select { height: 2.25rem; }
  body:has(.lab-mark) .view-all { min-height: 2.625rem; }
  body:has(.lab-mark) .view-all .label { font-size: 1.0625rem; }
  body:has(.lab-mark) .brands-track a, body:has(.lab-mark) .brand-ph { height: 2.25rem; }
  body:has(.lab-mark) .brands-track img { max-height: 1.5rem; }
  body:has(.lab-mark) .uni-foot { padding-block: 0.25rem; }
}
/* Phones: the category name sits in a full-width black strip right under the header (owner, 3 December 2026). */
@media (max-width: 47.99rem) {
  html:has(.lab-mark) { overflow-x: clip; }
  body:has(.lab-mark) .home-grid { padding-top: 0; }
  body:has(.lab-mark) .lab-mark { margin: 0 calc(50% - 50vw) 0.875rem; padding: 0.5rem var(--gutter); background: #0c0805; }
  body:has(.lab-mark) .lab-logo { color: #fff; }
}
@media (max-width: 47.99rem) and (max-height: 41rem) {
  body:has(.lab-mark) .lab-mark { margin-bottom: 0.5rem; padding-block: 0.375rem; }
}
/* Search results on phones: the Searching strip matches the category pages' black strip in height and name size,
   and names the category without "Lab" (owner, 3 December 2026). */
@media (max-width: 47.99rem) {
  .lab-strip { padding-block: 0.5rem; border-top: 0; }
  .lab-strip .strip-logo { padding: 0.5rem 0.25rem; }
  .strip-logo svg { width: 28px; height: 28px; }
  .strip-logo span { font-size: 1.625rem; letter-spacing: -0.03em; }
}
@media (max-width: 47.99rem) and (max-height: 50rem) {
  .strip-logo svg { width: 24px; height: 24px; }
  .strip-logo span { font-size: 1.375rem; }
}
@media (max-width: 47.99rem) and (max-height: 41rem) {
  .lab-strip { padding-block: 0.375rem; }
  .strip-logo svg { width: 22px; height: 22px; }
  .strip-logo span { font-size: 1.25rem; }
}
@media (max-width: 47.99rem) and (max-height: 36rem) { .lab-strip .strip-logo { padding-block: 0.25rem; } }
/* Search by words on category pages and the results page (owner, 3 December 2026). */
.cat-search { display: flex; width: 100%; height: 2.75rem; margin-top: 0.875rem; border: 1px solid rgb(18 12 8 / 0.2); border-radius: 0.75rem; background: #fff; overflow: hidden; text-align: left; }
.cat-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cat-search input { flex: 1; min-width: 0; padding: 0 0.875rem; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: 0; }
.cat-search input::placeholder { color: #6b665f; }
.cat-search button { display: grid; place-items: center; width: 2.75rem; flex: none; background: var(--ink); color: #fff; }
.cat-search button:hover { background: #2a2420; }
.cat-search button .icon { width: 1.25rem; height: 1.25rem; }
.res-search { max-width: 36rem; }
@media (max-width: 47.99rem) and (max-height: 50rem) {
  body:has(.lab-mark) .cat-search { height: 2.5rem; margin-top: 0.625rem; }
  body:has(.lab-mark) .cat-search button { width: 2.5rem; }
}
@media (max-width: 47.99rem) and (max-height: 41rem) {
  body:has(.lab-mark) .cat-search { height: 2.25rem; margin-top: 0.5rem; }
  body:has(.lab-mark) .cat-search button { width: 2.25rem; }
}
/* Room for the search field on shorter phones. */
@media (max-width: 47.99rem) and (max-height: 50rem) {
  body:has(.lab-mark) .engine { gap: 0.5rem 0.625rem; }
  body:has(.lab-mark) .ctl-label { padding-bottom: 0.1875rem; }
  body:has(.lab-mark) .brands-track a, body:has(.lab-mark) .brand-ph { height: 2.5rem; }
  body:has(.lab-mark) .brands-track img { max-height: 1.625rem; }
}
@media (max-width: 47.99rem) and (max-height: 41rem) {
  body:has(.lab-mark) .home-grid { gap: 0.375rem; }
  body:has(.lab-mark) .lab-mark { margin-bottom: 0.375rem; }
  body:has(.lab-mark) .engine { gap: 0.375rem 0.5rem; }
  body:has(.lab-mark) .ctl-label { padding-bottom: 0.125rem; }
  body:has(.lab-mark) .seg button, body:has(.lab-mark) .pick select { height: 2.125rem; }
  body:has(.lab-mark) .view-all { min-height: 2.5rem; }
  body:has(.lab-mark) .cat-search { margin-top: 0.375rem; }
  body:has(.lab-mark) .brands-track a, body:has(.lab-mark) .brand-ph { height: 2rem; }
  body:has(.lab-mark) .brands-track img { max-height: 1.375rem; }
}
@media (max-width: 47.99rem) and (max-height: 36rem) {
  .hero:has(.lab-mark) h1 { font-size: 1.5rem; }
  body:has(.lab-mark) .view-all { padding-block: 0.125rem; }
  body:has(.lab-mark) .view-all .label { font-size: 1rem; line-height: 1.15; }
  body:has(.lab-mark) .uni-foot { padding-block: 0.125rem; }
}
/* Category pages: search by words, or the filters under it (owner, 3 December 2026). */
.or-sep { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.875rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6b665f; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: rgb(18 12 8 / 0.14); }
@media (max-width: 47.99rem) and (max-height: 50rem) { body:has(.lab-mark) .or-sep { margin-top: 0.5rem; } }
@media (max-width: 47.99rem) and (max-height: 41rem) { body:has(.lab-mark) .or-sep { margin-top: 0.3125rem; font-size: 0.625rem; } }
/* Shorter phones: the switch's own words (Guitar / Bass, Right / Left-handed) say what it is, so its label is
   kept for screen readers only, making room for the search and the "or" line. */
@media (max-width: 47.99rem) and (max-height: 50rem) {
  body:has(.lab-mark) .search-box .ctl-label[id]:not([for]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
  body:has(.lab-mark) .home-grid { gap: 0.625rem; }
}
@media (max-width: 47.99rem) and (max-height: 50rem) {
  body:has(.lab-mark) .lab-mark { padding-block: 0.3125rem; }
  body:has(.lab-mark) .or-sep { margin-top: 0.375rem; }
  body:has(.lab-mark) .view-all .label { line-height: 1.15; }
}
@media (max-width: 47.99rem) and (max-height: 50rem) { .lab-strip { padding-block: 0.3125rem; } }
/* Results search: a text Clear button on the right (owner, 3 December 2026); the browser's own x is hidden. */
.cat-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.cat-search .q-clear { display: block; width: auto; flex: none; padding: 0 0.875rem; background: none; color: var(--ink); font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cat-search .q-clear:hover { background: none; text-decoration-thickness: 2px; }
.cat-search .q-clear[hidden] { display: none; }

/* ---------- Universal search (owner, 3 December 2026) ---------- */
/* Header suggestions: a list under the search as you type. */
.uni-search { position: relative; }
.uni-suggest { position: absolute; top: calc(100% + 0.375rem); left: 0; right: 0; z-index: 45; padding: 0.375rem; border: 1px solid var(--line); border-radius: 0.875rem; background: #fff; box-shadow: 0 18px 40px -18px rgb(12 8 5 / 0.45); }
.uni-suggest[hidden] { display: none; }
.uni-suggest a { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; color: var(--ink); text-decoration: none; }
.uni-suggest li[aria-selected="true"] a, .uni-suggest a:hover { background: #f1efec; }
.sg-name { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.sg-maker { font-weight: 700; }
.sg-what { font-size: 0.8125rem; color: var(--soft-ink); }
.uni-suggest mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.uni-suggest li:last-child { margin-top: 0.25rem; padding-top: 0.25rem; border-top: 1px solid var(--line); }
.sg-all { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 700; }
.sg-all .icon { width: 1.125rem; height: 1.125rem; }

/* Search all gear page. */
.srch-cats { margin-top: 1rem; overflow-x: auto; scrollbar-width: none; }
.srch-cats::-webkit-scrollbar { display: none; }
.srch-cats ul { display: flex; gap: 0.375rem; width: max-content; padding-bottom: 0.125rem; }
.srch-cats button { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.5rem; padding: 0 0.875rem; border: 1px solid rgb(18 12 8 / 0.18); border-radius: 0.625rem; background: #fff; color: var(--ink); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.srch-cats button:hover { border-color: var(--ink); }
.srch-cats button.off { color: #6b665f; }
.srch-cats button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.srch-n { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.srch-sec { margin-top: 1.75rem; }
.srch-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.srch-sec h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.srch-more { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.5rem; font-size: 0.875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.srch-more .icon { width: 1rem; height: 1rem; }
.srch-sec .rgrid { margin-top: 0.5rem; }
.srch-empty { margin-top: 1.5rem; padding: 2rem 1.25rem; border-radius: 1rem; background: #fff; text-align: center; }
.srch-empty p + p { margin-top: 0.5rem; color: var(--soft-ink); }
.srch-empty button { margin-top: 1rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 0.625rem; background: var(--ink); color: #fff; font-weight: 600; }
.srch-note { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--soft-ink); }
@media (min-width: 64rem) {
  .srch .results-head { padding-right: 0; }
  .srch .rgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sg-what::first-letter { text-transform: uppercase; }
.uni-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* Synths and Keyboards: greyed in the category row and the phone menu, with "Soon" over them (owner, 3 December 2026). */
.cat-soon { position: relative; }
.cats-list .cat-soon { color: #8a847c; }
.menu-cats .cat-soon { color: #77716a; }
.soon-tag { position: absolute; top: 0.125rem; right: -0.125rem; padding: 0.0625rem 0.3125rem; border-radius: 0.25rem; background: var(--brand); color: var(--ink); font-family: var(--font-body); font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; }
.menu-cats .cat-soon { display: inline-flex; padding-right: 2.75rem; }
.menu-cats .soon-tag { top: 0.5rem; right: 0; font-size: 0.625rem; }

/* Sections beside the categories (owner, 4 December 2026): Famous rigs, Beginner setups, Kids, after a divider. */
.cats-list li:not(.cat-extra) + .cat-extra { margin-left: 0.5rem; padding-left: 0.75rem; border-left: 1px solid rgb(255 255 255 / 0.25); }
.menu-cats li:not(.cat-extra) + .cat-extra { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgb(18 12 8 / 0.12); }
/* Sixteen items in the row (owner, 4 December 2026): tighter everywhere, and tighter still below 76rem, so it never spills. */
@media (min-width: 0) {
  .cats-list a, .cats-list .cat-off { padding: 0 0.5rem; font-size: 0.875rem; }
  .cats-list a[aria-current]::after { left: 0.5rem; right: 0.5rem; }
  .cats-list li:not(.cat-extra) + .cat-extra { margin-left: 0.25rem; padding-left: 0.375rem; }
}
@media (max-width: 75.99rem) {
  .cats-list a, .cats-list .cat-off { padding: 0 0.4rem; }
  .cats-list a[aria-current]::after { left: 0.4rem; right: 0.4rem; }
}
