/* The site search: a header button and a full-screen panel with suggestions, the same on every page. */
.fw-search__open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
  height: 2.3rem;
  min-width: 11rem;
  padding: 0 0.6rem;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  background: var(--color-surface, #fafafa);
  color: var(--color-muted, #6b6b6b);
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.fw-search__open:hover { border-color: #b4b4b4; background: #fff; }
.fw-search__label { flex: 1 1 auto; }
.fw-search__kbd {
  flex: 0 0 auto;
  padding: 0 0.3rem;
  border: 1px solid #dcdcdc;
  background: #fff;
  color: var(--color-muted, #6b6b6b);
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: nowrap;
}
/* Just the icon on narrow screens, and in a header too crowded for the full box (header.js sets .is-compact). */
@media (max-width: 60rem) {
  .fw-search__open { justify-content: center; width: 44px; min-width: 0; height: 44px; padding: 0; border: 0; background: none; color: var(--color-ink, #111); }
  .fw-search__label, .fw-search__kbd { display: none; }
}
.fw-header.is-compact .fw-search__open { justify-content: center; width: 44px; min-width: 0; height: 44px; padding: 0; border: 0; background: none; color: var(--color-ink, #111); }
.fw-header.is-compact :is(.fw-search__label, .fw-search__kbd) { display: none; }

.fw-search[hidden], .fw-search__results[hidden] { display: none; }
/* Mostly white over a light blur: a layer over the page, not a jump to a blank screen. */
.fw-search {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgb(255 255 255 / 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.fw-search__inner { display: flex; flex-direction: column; width: 100%; height: 100%; }
.fw-search__bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 max(1.25rem, calc((100% - 60rem) / 2));
  border-bottom: 1px solid var(--color-line, #e4e4e4);
}
.fw-search__bar input { flex: 1; min-height: 4.5rem; padding: 0; border: 0; background: transparent; font: inherit; font-size: 1.5rem; }
.fw-search__bar input:focus { outline: none; }
.fw-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.fw-search__close { padding: 0 0 0 1.25rem; border: 0; background: transparent; color: var(--color-muted, #6b6b6b); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.fw-search__results { flex: 1 1 auto; overflow-y: auto; padding: 0 max(1.25rem, calc((100% - 60rem) / 2)); }
@media (max-width: 40rem) {
  /* 1.15rem stays above the 16px below which iOS zooms into a focused field. */
  .fw-search__bar input { min-height: 3.5rem; font-size: 1.15rem; }
  /* A close a finger can hit, and result rows that give the name the width. */
  .fw-search__close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; }
  .fw-search .fw-search__results .fw-sug__row { gap: 0.6rem; padding: 0.6rem 0; }
  .fw-search .fw-search__results .fw-sug__row img, .fw-search .fw-search__results .fw-sug__noimg { width: 2.5rem; height: 2.5rem; }
}
@media print { .fw-search { display: none !important; } }

.fw-sug__row { display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 0.85rem; border-bottom: 1px solid #f0f0f0; color: var(--color-ink, #111); text-decoration: none; }
.fw-sug__row:hover { background: var(--color-surface, #fafafa); }
.fw-sug__row img, .fw-sug__noimg { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.fw-sug__noimg { background: #f4f5f7; }
.fw-sug__name { flex: 1; font-size: 0.9rem; font-weight: 500; }
.fw-sug__name small { display: block; color: var(--color-muted, #6b6b6b); font-weight: 300; font-variant-numeric: tabular-nums; }
.fw-sug__price { font-weight: 500; white-space: nowrap; }
.fw-sug__all { display: block; width: 100%; padding: 0.7rem; border: 0; background: #f4f5f7; color: var(--color-ink, #111); font: inherit; font-size: 0.85rem; cursor: pointer; }
.fw-sug__row.is-active, .fw-sug__all.is-active { background: var(--color-surface, #fafafa); outline: 2px solid var(--color-ink, #111); outline-offset: -2px; }
.fw-sug__empty { margin: 0; padding: 1rem 0; color: var(--color-muted, #6b6b6b); }
.fw-search__results .fw-sug__row { padding: 0.75rem 1.25rem; }
.fw-search__results .fw-sug__row img, .fw-search__results .fw-sug__noimg { width: 3rem; height: 3rem; }
.fw-search__results .fw-sug__name { font-size: 0.95rem; }
.fw-sug__cat { background: #fafbfc; }
.fw-sug__cat .fw-sug__name { padding-left: 0.25rem; font-weight: 500; }
.fw-sug__cat .fw-sug__name small { font-weight: 300; }
.fw-sug__cat .fw-sug__price { color: var(--color-muted, #6b6b6b); font-weight: 300; }
.fw-sug__cols { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; }
@media (min-width: 64rem) { .fw-sug__cols:has(> .fw-sug__main):has(> .fw-sug__side) { grid-template-columns: minmax(0, 1fr) 22rem; } }
.fw-sug__side .fw-sug__cat { background: none; }
/* Article and page pictures are photos, not packshots: they fill their square. */
.fw-sug__row img.fw-sug__photo { object-fit: cover; }
.fw-sug__heading { margin: 1rem 0 0; padding: 0 1.25rem 0.4rem; border-bottom: 1px solid #f0f0f0; color: var(--color-muted, #6b6b6b); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
