/* Retail storefront — the shop side of the site.

   Loaded after store.css. Everything here is either the zoom lightbox or a
   section that has no equivalent on the trade pages; anything a trade page
   already solved (.product-grid, .cat-card, .band, .eyebrow, .h-section) is
   reused rather than restated. */

/* ==========================================================================
   Zoom lightbox
   ========================================================================== */

/* z-index 100 is deliberate. #zoomRoot is a body-level element, so -- exactly
   as documented for .nav-scrim in menu.css -- it is NOT capped by the header's
   z-index:60 stacking context. At body level it competes with .drawer-root (90),
   .toast (95) and the fixed .site-nav (95). 100 clears all three, which is what
   lets a photograph cover an open mobile drawer. */
.zoom-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn .18s ease;
}

@keyframes zoomIn { from { opacity: 0; } to { opacity: 1; } }

.zoom-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, .94);
  border: 0;
  padding: 0;
  cursor: zoom-out;
}

.zoom-figure {
  position: relative;
  margin: 0;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Actual size: drop the fit constraints and let the figure scroll. Native
   scrollbars, no pan library. */
.zoom-figure.is-actual { overflow: auto; max-width: 100vw; }
.zoom-figure.is-actual .zoom-img { max-width: none; max-height: none; }
.zoom-figure.is-actual .zoom-stage { cursor: zoom-out; }

.zoom-stage {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

.zoom-stage:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.zoom-img {
  background: #000;
  max-width: 96vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  /* The photographs are shot on black; a hairline keeps the frame from
     dissolving into the scrim entirely. */
  border: 1px solid var(--line-2);
}

.zoom-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
}

.zoom-cap-sep { color: var(--ghost); }

.zoom-close,
.zoom-nav {
  position: absolute;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--line-3);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.zoom-close:hover,
.zoom-nav:hover { border-color: var(--gold); color: var(--gold-lt); }

.zoom-close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
}

.zoom-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  font-size: 26px;
  line-height: 1;
}

.zoom-nav.is-prev { left: 18px; }
.zoom-nav.is-next { right: 18px; }

.zoom-count { color: var(--faint); letter-spacing: .18em; }

/* Photo boxes become <button> when they are zoomable. .product-media was
   already built for this (border:0, padding:0, font:inherit); .media and
   .media-wrap were not, so they need the reset.

   :where() gives this zero specificity on purpose, so the classes still win:
   .media keeps its diagonal hatch placeholder and .featured-card .media-wrap
   keeps its background and bottom hairline. A plain button[data-zoom] selector
   would have out-specified both and flattened them. */
:where(button[data-zoom]) {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

button[data-zoom]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* The affordance on a card. Sits over the photograph, appears on hover or
   keyboard focus -- never a permanent chrome element on top of the product. */
.zoom-cue {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(16, 12, 9, .82);
  border: 1px solid var(--line-3);
  color: var(--gold-lt);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

[data-zoom] { cursor: zoom-in; }

[data-zoom]:hover .zoom-cue,
[data-zoom]:focus-visible .zoom-cue { opacity: 1; transform: none; }

@media (hover: none) {
  /* No hover on touch, so the cue would never show. Pin it. */
  .zoom-cue { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .zoom-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .zoom-nav { width: 40px; height: 54px; font-size: 22px; }
  .zoom-nav.is-prev { left: 8px; }
  .zoom-nav.is-next { right: 8px; }
  .zoom-img { max-height: 76vh; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-root { animation: none; }
  .zoom-cue { transition: none; }
}


/* ==========================================================================
   Hero carousel
   ==========================================================================

   .hero already owns the two layers that make text readable over photography:
   ::before is a flat 5% wash and ::after is a gradient that is heavy under the
   copy column and clears by ~64%. The slides go underneath both, so the
   photographs run at 95% on the open side exactly as the static skyline did.

   Slides are separate elements rather than one element with a changing
   background, because crossfading needs two layers painted at once. */

.hero-carousel { background-image: none; }

/* Stacking has to be stated. .hero > * sets z-index:1 on every direct child,
   which would put the slides ABOVE ::before and ::after -- the two layers that
   make white text legible over a bright daylight photograph. Ordering them
   explicitly keeps the wash and the scrim on top of the pictures. */
.hero-carousel .hero-slides { z-index: 0; }
.hero-carousel::before      { z-index: 1; }
.hero-carousel::after       { z-index: 2; }
.hero-carousel .hero-grid   { z-index: 3; }

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .5s ease;
}

.carousel-slide.is-active { opacity: 1; }

/* A slow crossfade behind headline text is precisely what this setting is for.
   carousel.js also stops rotating; this makes the first slide static even if
   the script never runs. */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}

/* ==========================================================================
   In Calgary kitchens — the lifestyle band
   ==========================================================================

   Deliberately a different shape from the hero: copy in a solid panel beside a
   framed carousel, rather than text floating over a full-bleed photograph. Two
   full-bleed photo heroes on one page read as a template. */

.kitchen-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kitchen-grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 88px var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.kitchen-copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  margin: 14px 0 20px;
  color: var(--ink);
}

.kitchen-copy .lede + .lede { margin-top: 14px; }
.kitchen-copy .hero-actions { margin-top: 30px; }

.kitchen-carousel {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-deep);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .95);
}

/* No wash here. The band has no text over the photograph, so the pictures run
   at full strength -- the only place on the site they do. */
.kitchen-carousel .carousel-slide {
  background-position: center 45%;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 239, 230, .34);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.carousel-dot:hover { background: rgba(244, 239, 230, .7); }
.carousel-dot.is-on { background: var(--gold); transform: scale(1.35); }
.carousel-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 980px) {
  .kitchen-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 60px var(--pad);
  }
  .kitchen-carousel { aspect-ratio: 16 / 11; }
}

/* The retail hero is .hero from layout.css -- the same one the wholesale front
   door uses, skyline and scrim included. It used to be a bespoke .shop-hero
   with a grid of product photographs beside the copy; that is gone, so there is
   nothing left to state here. */

/* ==========================================================================
   Read the label
   ========================================================================== */

.label-band { border-top: 1px solid var(--line); }

.label-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: start;
}

.label-figure {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-2);
}

.label-copy .lede { margin-bottom: 30px; }

.label-notes {
  list-style: none;
  counter-reset: label;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.label-notes li {
  counter-increment: label;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.label-notes li::before {
  content: counter(label, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gold);
  padding-top: 3px;
}

.label-notes b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
}

.label-notes span { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   Retail product card
   ========================================================================== */

/* .product-price is deliberately unused on the retail side -- it is a 25px
   gold serif built for a number, and there is no number. */
.in-store {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

.product-name { display: block; text-decoration: none; }

.product-am {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold-lt);
  opacity: .82;
}

.product-more {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-link);
  text-decoration: none;
  white-space: nowrap;
}

.product-more:hover { color: var(--gold-lt); }

.cat-n {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ghost);
}

/* ==========================================================================
   Bilingual band
   ========================================================================== */

.bilingual-band { border-top: 1px solid var(--line); }

.bi-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 88px var(--pad);
}

.bi-inner h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  margin: 12px 0 40px;
  color: var(--ink);
}

.bi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0 40px;
  margin-bottom: 26px;
}

.bi-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.bi-en { font-size: 14.5px; color: var(--nav); }

.bi-am {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--gold-lt);
}

/* Read from a photograph, not yet checked by a native reader. Marked rather
   than hidden -- and rather than presented as settled. */
.bi-am.is-unchecked {
  text-decoration: underline dotted;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-3);
}

.visit-brief { max-width: 720px; }

/* ==========================================================================
   shop.html
   ========================================================================== */

.shop-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.shop-page .cat-toolbar { margin: 0; flex: 1 1 460px; }

.shop-search-wrap { flex: 0 1 300px; }

.shop-search {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}

.shop-search::placeholder { color: var(--ghost); }
.shop-search:focus { outline: none; border-color: var(--gold); }

.shop-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 22px;
}

.shop-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--gold-link);
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   product.html
   ========================================================================== */

.pdp-am {
  font-family: var(--serif);
  font-size: .6em;
  color: var(--gold-lt);
  opacity: .85;
  white-space: nowrap;
}

.pdp-avail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 16px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pdp-unit { font-size: 14px; color: var(--muted); }

.pdp-brand {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-3);
  padding: 4px 9px;
}

/* The wholesale block on a retail page: present for the buyer who needs it,
   collapsed so it never competes with the shopper who does not. */
.pdp-trade {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.pdp-trade summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  list-style: none;
}

.pdp-trade summary::-webkit-details-marker { display: none; }
.pdp-trade summary::after { content: ' +'; }
.pdp-trade[open] summary::after { content: ' \2212'; }
.pdp-trade summary:hover { color: var(--gold-lt); }
.pdp-trade .spec-list { margin-top: 20px; }
.pdp-trade .trade-actions { margin-top: 20px; }

.pdp-missing { padding: 90px 0 120px; max-width: 620px; }
.pdp-missing h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 12px 0 16px;
}
.pdp-missing code {
  font-family: var(--mono);
  font-size: .9em;
  color: var(--gold-lt);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .label-grid { gap: 40px; }
}

@media (max-width: 980px) {
  .label-grid { grid-template-columns: 1fr; gap: 34px; }
  .bi-inner { padding: 64px var(--pad); }
}

@media (max-width: 640px) {
  .shop-controls { flex-direction: column; align-items: stretch; }
  .shop-search-wrap { flex: 1 1 auto; }
  .bi-grid { grid-template-columns: 1fr; gap: 0; }
  .label-notes li { grid-template-columns: 26px 1fr; }
}


/* ==========================================================================
   Never crop a product photograph
   ==========================================================================

   The photographs are the product: the labels carry the weight, the net
   weight and the packer's address, and cropping cuts exactly those off. The
   cards were forcing 3:4 photographs into 1:1 and 4:3 boxes with object-fit:
   cover, which trimmed the top and bottom off every one.

   There are two families on disk and no single box suits both: the 2026 shoot
   is 3:4, and 32 legacy files are 9:16. object-fit: contain shows all of both.
   The letterboxing is invisible because every shot is on a pure black backdrop
   and the bed underneath is black too -- the product simply floats.

   The background sits on the <img>, not the box, so .media keeps its diagonal
   hatch as a loading placeholder and the black only appears once the photo
   paints. */

.product-media,
.pdp-hero,
.pdp-thumb,
.featured-card .media-wrap,
.trade-card .media,
.media-cat,
.label-figure { aspect-ratio: 3 / 4; }

.mega-feature .media img { object-fit: contain; background: #000; }

.product-media img,
.pdp-hero img,
.pdp-thumb img,
.featured-card .media-wrap img,
.trade-card .media img,
.media-cat img,
.label-figure img {
  object-fit: contain;
  background: #000;
}

/* Aisle tiles read better a little wider than the products they hold. */
.media-cat { aspect-ratio: 4 / 5; }

/* The catalogue's card is a horizontal spec sheet; its thumbnail column wants
   to be shorter than a full 3:4 or the row grows absurdly tall. */
@media (min-width: 821px) {
  .trade-card .media { aspect-ratio: 4 / 5; }
}


/* ==========================================================================
   Footer payment row
   ==========================================================================

   Cards on the retail side, settlement terms on the trade side. Showing card
   marks to a wholesale buyer would be a false promise -- that side pays by T/T,
   letter of credit or Net 30 -- and there is no checkout anywhere on this site,
   so the retail label says "in store" rather than implying online payment. */

.footer-pay {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-pay > div {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.pay-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ghost);
  white-space: nowrap;
}

.pay-terms { font-size: 13px; color: var(--faint); }
.pay-terms a { color: var(--gold-link); text-decoration: none; white-space: nowrap; }
.pay-terms a:hover { color: var(--gold-lt); }

.pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* The marks ship with a white card face, which is how the networks want them
   shown. Held slightly back so a row of white tiles does not out-shout the
   footer, and brought up on hover. */
.pay-list img {
  display: block;
  width: 42px;
  height: 28px;
  border-radius: 3px;
  opacity: .72;
  transition: opacity .18s ease;
}

.pay-list li:hover img { opacity: 1; }

@media (max-width: 640px) {
  .footer-pay { padding: 22px var(--pad); gap: 12px; }
  .footer-pay > div { gap: 12px; }
  .pay-list img { width: 38px; height: 25px; }
}


/* ==========================================================================
   Quote request form
   ==========================================================================

   Nothing on this site has a price, so the form is the checkout. It used to
   demand six fields including company and destination country, which is a
   strange thing to ask someone wanting to know the price of a bag of berbere.
   Now it asks two, and the trade fields appear only for business enquiries. */

.form-step { margin-bottom: 40px; }

.form-step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
}

.step-note { font-size: 14px; color: var(--faint); margin: 0 0 18px; }

/* Who is asking. Big targets -- this is the fork the whole form hinges on. */
.who-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 26px;
}

.who-opt { position: relative; cursor: pointer; }

.who-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.who-opt span {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  background: var(--bg-card);
  transition: border-color .18s ease, background-color .18s ease;
}

.who-opt b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.who-opt em { display: block; font-style: normal; font-size: 13px; color: var(--faint); line-height: 1.5; }

.who-opt:hover span { border-color: var(--line-3); }

.who-opt input:checked + span {
  border-color: var(--gold);
  background: rgba(200, 148, 43, .07);
}

.who-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.opt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ghost);
}

.form-send {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.form-reassure { font-size: 13px; color: var(--faint); }

/* The list is the point of the page, so it reads as a panel rather than a
   footnote under the fields. */
.form-lines { margin-bottom: 8px; }

.form-lines ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-2);
  background: var(--bg-card);
}

.form-lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}

.form-lines li:last-child { border-bottom: 0; }
.form-lines li.empty { display: block; color: var(--faint); }

/* Every product carries this, so it needs to sit quietly on the card. */
.product-quote { margin: 0 20px 20px; width: calc(100% - 40px); }

/* The ask-price panel on a product page. */
.pdp-quote {
  margin: 26px 0 6px;
  padding: 22px;
  border: 1px solid var(--line-2);
  background: var(--bg-card);
}

.pdp-quote-head b {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.pdp-quote-head span { display: block; font-size: 14px; color: var(--muted); line-height: 1.55; }
.pdp-quote .trade-actions { margin-top: 18px; }
.pdp-quote-note { margin: 14px 0 0; font-size: 12.5px; color: var(--faint); }

.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;
}

@media (max-width: 640px) {
  .who-choice { grid-template-columns: 1fr; }
  .form-step h3 { font-size: 21px; }
}

/* Legal row. Ungated: both audiences need the privacy policy. */
.footer-legal-nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--pad) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  border-top: 1px solid var(--line-soft);
}

.footer-legal-nav a {
  font-size: 13px;
  color: var(--faint);
  text-decoration: none;
  transition: color .18s ease;
}

.footer-legal-nav a:hover { color: var(--gold-lt); }


/* ==========================================================================
   Search
   ========================================================================== */

.search-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* Looks like a field, behaves like a button -- the real input is in the
   overlay, where there is room to show results underneath it. */
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  min-width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.search-trigger:hover { border-color: var(--line-3); color: var(--nav); }
.search-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.search-trigger-label { flex: 1; text-align: left; white-space: nowrap; }

.search-trigger-key {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border: 1px solid var(--line-3);
  border-radius: 3px;
  color: var(--ghost);
}

/* Below 1200px the bar is tight, so the field collapses to its icon. */
@media (max-width: 1200px) {
  .search-trigger { min-width: 0; padding: 9px; border-radius: 999px; }
  .search-trigger-label,
  .search-trigger-key { display: none; }
}

/* The drawer copy, full width under the mode switch. */
.drawer-search {
  display: none;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  color: var(--dim);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .nav-drawer-head .drawer-search { display: flex; order: 4; }
}

/* ---------- overlay ---------- */

/* 110: above the zoom lightbox (100), which is itself above the drawer and the
   quote panel. Search is opened from the header, so it has to clear the lot. */
.search-root {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 20px 20px;
}

.search-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, .88);
  border: 0;
  padding: 0;
}

.search-panel {
  position: relative;
  width: min(640px, 100%);
  background: var(--bg-alt);
  border: 1px solid var(--line-3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95);
  animation: searchIn .16s ease;
}

@keyframes searchIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
}

.search-field .search-icon { width: 19px; height: 19px; color: var(--gold); }

.search-field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
}

.search-field input::placeholder { color: var(--ghost); }
.search-field input:focus { outline: none; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-close {
  flex: none;
  background: none;
  border: 1px solid var(--line-3);
  border-radius: 3px;
  padding: 4px 8px;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.search-close:hover { color: var(--gold-lt); border-color: var(--gold); }

.search-results {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: min(52vh, 460px);
  overflow-y: auto;
}

.search-results a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 2px;
}

.search-results li.is-on a,
.search-results a:hover { background: rgba(200, 148, 43, .10); }

.search-thumb {
  flex: none;
  width: 46px;
  height: 58px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-2);
}

.search-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.search-text { min-width: 0; }
.search-text b { display: block; font-family: var(--serif); font-size: 18px; color: var(--ink); font-weight: 500; }
.search-text span { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }

.search-hint {
  padding: 22px 16px;
  font-size: 14px;
  color: var(--faint);
  line-height: 1.6;
}

.search-hint b { color: var(--gold-lt); font-weight: 400; }
.search-hint a { color: var(--gold-link); }

.search-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line-2);
  text-align: right;
}

.search-foot a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-link);
  text-decoration: none;
}

.search-foot a:hover { color: var(--gold-lt); }

@media (max-width: 640px) {
  .search-root { padding: 0; align-items: stretch; }
  .search-panel { width: 100%; height: 100%; border: 0; }
  .search-results { max-height: none; flex: 1; }
}

@media (prefers-reduced-motion: reduce) { .search-panel { animation: none; } }
