/* ==========================================================================
   Components — buttons, cards, forms, nav, breadcrumb, accordion, icons
   Populate the visual detail once the design is supplied.
   ========================================================================== */

/* --- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.btn--primary { background: var(--c-brand-deep); color: #fff; }
.btn--primary:hover { background: var(--c-brand-dark); }

.btn--outline {
  border: 1px solid var(--c-line-strong);
  color: var(--c-ink);
}
.btn--outline:hover { border-color: var(--c-brand-deep); color: var(--c-brand-deep); }

.btn--ghost { color: var(--c-brand-deep); padding-inline: 0; }
.btn--lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* --- Icons (inline SVG sprite) --------------------------------------- */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

/* --- Top bar --------------------------------------------------------- */
.topbar {
  background: var(--c-topbar-bg);
  color: var(--c-topbar-text);
  font-size: var(--fs-sm);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--topbar-h);
}

.topbar__contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: inherit;
  transition: color var(--dur) var(--ease);
}
.topbar__link:hover { color: var(--c-topbar-hover); }

.topbar__link .icon {
  width: 16px;
  height: 16px;
  color: var(--c-topbar-icon);
}

/* --- Search ----------------------------------------------------------- */
.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  width: 300px;
  max-width: 100%;
}

.search__input {
  width: 100%;
  height: 34px;
  padding: 0 2.25rem 0 var(--sp-4);
  border: 1px solid var(--c-topbar-line);
  border-radius: var(--r-pill);
  background: var(--c-topbar-field);
  color: var(--c-topbar-hover);
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
/* 0.85 is the floor here — at 0.7 the placeholder blends down to 3.7:1
   against the bar and fails AA. Still reads as lighter than typed text. */
.search__input::placeholder { color: var(--c-topbar-text); opacity: 0.85; }
.search__input:focus {
  outline: none;
  border-color: var(--c-topbar-icon);
  background: rgba(255, 255, 255, 0.12);
}

/* Kill the browser's native clear/decoration widgets */
.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.search__btn {
  position: absolute;
  right: 4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  color: var(--c-topbar-text);
  transition: color var(--dur) var(--ease);
}
.search__btn:hover { color: var(--c-topbar-hover); }
.search__btn .icon { width: 16px; height: 16px; }

/* Light variant — used in the mobile drawer, where the ground is white */
.search--light { width: 100%; }
.search--light .search__input {
  height: 46px;
  border-color: var(--c-line-strong);
  background: var(--c-surface);
  color: var(--c-ink);
}
.search--light .search__input::placeholder { color: var(--c-muted); opacity: 1; }
.search--light .search__input:focus {
  border-color: var(--c-brand-deep);
  background: var(--c-surface);
}
.search--light .search__btn { right: 8px; color: var(--c-muted); }
.search--light .search__btn:hover { color: var(--c-brand-deep); }

/* --- Search suggestions ------------------------------------------------ */
.search__suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  background: var(--c-surface);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.search__suggest.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

/* Wide desktop panel escapes the 300px input width so thumbnails/copy fit */
.topbar__search .search__suggest { width: max(340px, 100%); }

.search__suggest-list { list-style: none; margin: 0; padding: var(--sp-2); max-height: 60vh; overflow-y: auto; }

.search__suggest-item + .search__suggest-item { margin-top: 2px; }

.search__suggest-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
}
.search__suggest-link:hover,
.search__suggest-link:focus-visible,
.search__suggest-item.is-active .search__suggest-link {
  background: var(--c-surface-alt);
  outline: none;
}

.search__suggest-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.search__suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }

.search__suggest-body { min-width: 0; }
.search__suggest-name { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.search__suggest-name mark { background: var(--c-brand-tint); color: var(--c-brand-dark); border-radius: 3px; padding: 0 1px; }
.search__suggest-blurb {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search__suggest-moq {
  flex: none;
  font-size: var(--fs-xs);
  color: var(--c-brand-deep);
  background: var(--c-brand-tint);
  border-radius: var(--r-pill);
  padding: 2px var(--sp-2);
  white-space: nowrap;
}

.search__suggest-foot {
  border-top: 1px solid var(--c-line);
  padding: var(--sp-2) var(--sp-3);
}
.search__suggest-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--r-md);
  background: none;
  color: var(--c-brand-deep);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
}
.search__suggest-all:hover,
.search__suggest-all:focus-visible { background: var(--c-surface-alt); outline: none; }

.search__suggest-empty {
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.search__suggest-empty strong { display: block; color: var(--c-ink); font-size: var(--fs-base); margin-bottom: var(--sp-1); }

.search__suggest-loading {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.search__suggest-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--c-line);
  border-top-color: var(--c-brand-deep);
  animation: search-spin 0.7s linear infinite;
}
@keyframes search-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .search__suggest-spinner { animation: none; }
}

/* --- Logo ------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}
.logo__mark {
  display: block;
  width: 38px;
  height: 38px;
  color: var(--c-brand-deep);   /* the rect uses fill:currentColor */
}
.logo__mark svg { width: 100%; height: 100%; }
/* A custom uploaded logo is a full lockup (often a wide wordmark), not a
   square icon like the default mark — let it set its own width instead of
   being squashed into the 38px icon box the SVG mark was sized for. */
.logo__mark:has(img) { width: auto; height: 68px; }
.logo__mark img { max-height: 100%; width: auto; object-fit: contain; }
.logo__text {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: var(--ls-head);
  color: var(--c-ink);
  line-height: 1;
}
.logo__text span { color: var(--c-brand-deep); font-weight: 500; }
.logo--sm .logo__mark { width: 32px; height: 32px; }
.logo--sm .logo__mark:has(img) { width: auto; height: 52px; }
.logo--sm .logo__text { font-size: var(--fs-lg); }

/* --- Navigation ------------------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  margin-inline: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link.is-active,
.nav__item.is-open > .nav__link {
  color: var(--c-brand-deep);
  background: var(--c-brand-tint);
}

.nav__caret { transition: transform var(--dur) var(--ease); }
.nav__item.is-open > .nav__link .nav__caret { transform: rotate(180deg); }

/* Drawer-only chrome — hidden until the mobile breakpoint */
.nav__head,
.nav__foot { display: none; }

/* --- Mega menu -------------------------------------------------------- */
/* position:static on the item hands the containing block to .site-header,
   which is what lets the panel span far wider than its trigger. */
.nav__item--mega { position: static; }

.mega {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  z-index: var(--z-header);
  /* Wide enough that each mega__grid item (icon + 2-line title + blurb)
     isn't squeezed to ~120px and wrapping onto 4+ lines — was 940px total,
     which left barely 270px for each 2-item content column. */
  width: min(1080px, calc(100vw - 2 * var(--gutter)));
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);

  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}

/* Hover and focus-within cover mouse and keyboard; .is-open is the JS hook
   for touch and for click-to-toggle. */
.nav__item--mega:hover > .mega,
.nav__item--mega:focus-within > .mega,
.nav__item--mega.is-open > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega__inner {
  display: grid;
  /* Two children: one merged .mega__col (all 7 products, 3 per row via
     .mega__grid below) + .mega__promo. */
  grid-template-columns: 1fr 268px;
  gap: var(--sp-6);
}

.mega__heading {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.mega__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  transition: background var(--dur) var(--ease);
}
.mega__item:hover { background: var(--c-brand-tint); }

.mega__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--c-brand-tint);
  color: var(--c-brand-deep);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.mega__item:hover .mega__icon {
  background: var(--c-brand-deep);
  color: #fff;
}

.mega__text strong {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
}
.mega__text small {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--c-muted);
}

.mega__all {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
  width: 100%;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-brand-deep);
}
.mega__all:hover { color: var(--c-brand-dark); }

.mega__promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(165deg, var(--c-brand-tint) 0%, #D5E8DC 100%);
  color: var(--c-brand-deep);
}
.mega__promo-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-ink);
}
.mega__promo-text {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--c-body);
}
.mega__promo .btn { margin-top: auto; }

/* --- Header actions / burger ------------------------------------------ */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}

.nav-toggle {
  display: none;        /* shown at the mobile breakpoint */
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line-strong);
  color: var(--c-ink);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: var(--r-pill);
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
/* Burger morphs into an X while the drawer is open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  color: var(--c-ink);
}
.nav__close:hover { background: var(--c-brand-tint); }

/* --- Mobile bottom nav ------------------------------------------------
   Defined in full here but display:none by default; responsive.css turns it
   on at <= 768px. Sits at --z-header (100), so the drawer (200) and its
   backdrop (199) still cover it when the menu is open. */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-header);
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -4px 20px rgba(27, 43, 38, 0.10);
  /* Keeps the bar clear of the iOS home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bottom-nav__link,
.bottom-nav__fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  /* 58px clears the 44px minimum touch target with room for the label */
  min-height: 58px;
  padding: var(--sp-2) 2px;
  font-family: var(--font-body);
  /* 11px, not --fs-xs: "Products" has to fit a fifth of a 320px screen */
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: var(--c-muted);                 /* 5.47:1 on white */
  transition: color var(--dur) var(--ease);
}
.bottom-nav__link .icon { width: 21px; height: 21px; }

.bottom-nav__link:hover,
.bottom-nav__link.is-active { color: var(--c-brand-deep); }   /* 5.34:1 */
/* Weight, not just colour — the active state should survive greyscale */
.bottom-nav__link.is-active .icon { stroke-width: 2.4; }

/* --- Raised centre slot: the conversion goal -------------------------- */
.bottom-nav__fab { color: var(--c-brand-deep); font-weight: 700; }
.bottom-nav__fab-ring {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  /* Lifts the button out of the bar. The bar has no overflow clip, so the
     ring is free to break its top edge. */
  margin-top: -20px;
  border: 3px solid var(--c-surface);
  border-radius: 50%;
  background: var(--c-brand-deep);
  color: #ffffff;                        /* 5.34:1 */
  box-shadow: var(--shadow-md);
  transition: background var(--dur) var(--ease);
}
.bottom-nav__fab-ring .icon { width: 20px; height: 20px; }
.bottom-nav__fab:hover .bottom-nav__fab-ring { background: var(--c-brand-dark); }

/* Backdrop behind the mobile drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(27, 43, 38, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }

/* Set on <body> while the drawer is open, to stop the page behind scrolling */
body.has-drawer { overflow: hidden; }

/* --- Cards ----------------------------------------------------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__media { aspect-ratio: 4 / 3; background: var(--c-surface-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--sp-5); }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card__text { font-size: var(--fs-sm); }

/* --- Section heading ------------------------------------------------- */
.section-head { max-width: 720px; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-brand-deep);
  margin-bottom: var(--sp-2);
}
.section-head__title { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.section-head__text { font-size: var(--fs-lg); color: var(--c-muted); }

/* --- Forms ----------------------------------------------------------- */
.form__row { display: grid; gap: var(--sp-4); }
.form__group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form__label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.form__label .req { color: var(--c-danger); }

.form__control {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  /* -line-strong, not -line: an input's edge is a UI boundary and WCAG
     1.4.11 wants 3:1 for those. The pale --c-line is decorative only. */
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease);
}
.form__control:focus { border-color: var(--c-brand-deep); outline: none; }
.form__control::placeholder { color: var(--c-muted); }
textarea.form__control { min-height: 140px; resize: vertical; }

.form__error { font-size: var(--fs-xs); color: var(--c-danger); display: none; }
.form__group.has-error .form__control { border-color: var(--c-danger); }
.form__group.has-error .form__error { display: block; }

.form__note { font-size: var(--fs-xs); color: var(--c-muted); }

/* Honeypot — hidden from users, catches bots */
.form__hp { position: absolute; left: -9999px; opacity: 0; }

.alert { padding: var(--sp-4); border-radius: var(--r-md); font-size: var(--fs-sm); }
.alert--success { background: var(--c-success-bg); color: var(--c-success); }
.alert--warning { background: var(--c-warning-bg); color: var(--c-warning); }
.alert--error   { background: var(--c-danger-bg);  color: var(--c-danger); }

/* --- Breadcrumb ------------------------------------------------------ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.breadcrumb a:hover { color: var(--c-brand-deep); }

/* --- Page hero ------------------------------------------------------- */
.page-hero {
  padding-block: var(--sp-7);
  background: var(--c-surface-alt);
}
.page-hero__title { font-size: var(--fs-3xl); margin-block: var(--sp-3) var(--sp-2); }

/* --- Accordion ------------------------------------------------------- */
/* Everything is authored OPEN. initAccordion() adds .is-ready to the root
   and collapses each item, so with no JS the answers are all readable
   rather than permanently sealed shut. */
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__heading { margin: 0; font-size: inherit; font-weight: inherit; }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--ls-head);
  color: var(--c-ink);
  transition: color var(--dur) var(--ease);
}
.accordion__trigger:hover { color: var(--c-brand-deep); }
.accordion__item.is-open .accordion__trigger { color: var(--c-brand-deep); }

/* --- The +/− mark ----------------------------------------------------- */
/* Two bars in one element: the horizontal one is the minus and never
   moves; the vertical one scales to nothing to turn + into −. Cheaper and
   crisper than swapping two icons, and it animates for free. */
.accordion__icon {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  /* Surface + border, NOT --c-brand-tint: the FAQ sits on --c-surface-alt,
     which is that exact colour, and a tinted circle would vanish into it.
     This pairing stays visible on white and tinted grounds alike. */
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.accordion__item.is-open .accordion__icon {
  background: var(--c-brand-deep);
  border-color: var(--c-brand-deep);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 1px;
  background: var(--c-brand-deep);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.accordion__icon::before { width: 11px; height: 2px; transform: translate(-50%, -50%); }
.accordion__icon::after  { width: 2px; height: 11px; transform: translate(-50%, -50%); }

.accordion__item.is-open .accordion__icon::before,
.accordion__item.is-open .accordion__icon::after { background: #ffffff; }
/* collapse the vertical bar → minus */
.accordion__item.is-open .accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); }

/* --- Panel ------------------------------------------------------------ */
/* 0fr → 1fr animates to the content's real height, which max-height can
   only ever approximate. The inner wrapper does the clipping. */
.accordion__panel {
  display: grid;
  grid-template-rows: 1fr;              /* open by default — no-JS safe */
  transition: grid-template-rows var(--dur) var(--ease);
}
[data-accordion].is-ready .accordion__panel { grid-template-rows: 0fr; }
[data-accordion].is-ready .accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }

.accordion__panel-inner { overflow: hidden; }
.accordion__panel p {
  padding-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-body);
}

@media (prefers-reduced-motion: reduce) {
  .accordion__panel,
  .accordion__icon::before,
  .accordion__icon::after { transition: none; }
}

/* --- Misc ------------------------------------------------------------ */
.badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--c-surface-alt);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.divider { height: 1px; background: var(--c-line); border: 0; }

.back-to-top {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: var(--z-header);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--c-brand-deep);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }

/* --- Search results page ----------------------------------------------- */
.search-hero { text-align: center; background: var(--c-surface-alt); }
.search-hero__title { font-size: var(--fs-3xl); margin: var(--sp-2) 0 var(--sp-5); }

.search-hero__form {
  display: flex;
  gap: var(--sp-2);
  max-width: 560px;
  margin: 0 auto;
}
.search-hero__input {
  flex: 1;
  height: 52px;
  padding: 0 var(--sp-5);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: var(--fs-base);
}
.search-hero__input:focus { outline: none; border-color: var(--c-brand-deep); }
.search-hero__form .btn { border-radius: var(--r-pill); gap: var(--sp-2); }

.search-hero__meta { margin-top: var(--sp-4); color: var(--c-muted); font-size: var(--fs-sm); min-height: 1.2em; }

.search-results__prompt { color: var(--c-muted); font-size: var(--fs-lg); text-align: center; max-width: 520px; margin: 0 auto; }

.search-results__loading { justify-content: center; padding: var(--sp-8) 0; font-size: var(--fs-base); }

.search-results__empty { text-align: center; max-width: 480px; margin: 0 auto; }
.search-results__empty h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.search-results__empty p { color: var(--c-muted); margin-bottom: var(--sp-5); }
.search-results__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  color: var(--c-brand-deep);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.chip:hover { background: var(--c-brand-deep); border-color: var(--c-brand-deep); color: #fff; }

.search-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}

.search-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
  color: inherit;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.search-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--c-line-strong); }

.search-card__media {
  aspect-ratio: 4 / 3;
  background: var(--c-surface-alt);
  display: grid;
  place-items: center;
}
.search-card__media img { width: 100%; height: 100%; object-fit: cover; }

.search-card__body { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4); }
.search-card__name { font-weight: 700; color: var(--c-ink); }
.search-card__blurb {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-card__moq {
  align-self: flex-start;
  margin-top: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--c-brand-deep);
  background: var(--c-brand-tint);
  border-radius: var(--r-pill);
  padding: 2px var(--sp-2);
}
