/* PRODUCER DIRECTORY FILTERS — the paint the two real controls need, and nothing else.
 *
 * The controls keep the DESIGN's own pill classes (wp-block-button__link plus the node-keyed
 * geometry class the compiler stamped), so every rule that sized and coloured the drawn pill
 * still applies. What a native <input>/<select> needs on top of that is only what a UA
 * stylesheet insists on: its own font, its own box model, and no chrome of its own. */

.cae-prod-filter__slot > .cae-prod-filter__q,
.cae-prod-filter__slot > .cae-prod-filter__topic {
  /* The UA gives form controls their own font and a 2px inset border. Both are the drawn pill's
     to decide, and the pill already decides them. */
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  /* KATE: "The button labels should fall on one line." The design gives each label a 319px box
     at a 28px line (Form 18024:6421 / 18024:6422, text I…;985:168257), so one line is the
     design's own measurement, not a preference. The compiled pill wraps because a button link
     is free to; a control is told not to. */
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* The same one-line rule on the drawn pill itself, for the label text inside the wrapper. */
.cae-prod-filter__slot {
  white-space: nowrap;
}

.cae-prod-filter__topic {
  /* The design draws its own chevron glyph beside the label (CAE-Global-Icon-Dropdown); the
     UA's second one would be two arrows on one control. */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.cae-prod-filter__q::-webkit-search-cancel-button {
  cursor: pointer;
}

/* A card the filters exclude. `!important` is deliberate and narrow: the drawn card's own
   per-node rule sets `display: flex` at a higher specificity than any class can reach without
   restating the node id, which this line forbids. */
.cae-prod-filtered-out {
  display: none !important;
}

/* WHILE NARROWING, EVERY MATCH IS VISIBLE. The Load More disclosure hides 56 of 68 cards by
   default; a visitor who has just searched for a producer must not be told to press a button to
   see the result. The gate is lifted only while a control is narrowing, and the Load More pill
   is hidden with it because there is nothing left to load. */
.cae-recgrid-prod-list.cae-prod-filtering > .cae-prod-more {
  display: flex;
}
.cae-recgrid-prod-list.cae-prod-filtering > .cae-prod-more-btn {
  display: none;
}

/* THE KEYWORD FIELD IS THE SITE'S KEYWORD FORM (lane ffbrclients-1020; Kate Shawver, ClickUp 869fjp5cn, 2026-10-20 00:47Z,
   verbatim: "The ys look cutoff in the SEarch by Keyword field and hte circel behind amngificer glass is missin gmake our
   standard"). The control is now the /news/ markup (register C28): form.cae-recgrid-search carrying the drawn button box,
   input.cae-recgrid-search__field (the "CAE Field Pro" descender alias, records-grid-cae.css) and the magnifier inside
   button.cae-recgrid-search__go, whose brick disc / white glyph / yellow hover is the sitewide SEARCH BY KEYWORD rule
   (kate-global-rules-cae.css). What the News field gets from its page sheet and this control does not is the disc's box:
   the same 40 around the drawn 24 glyph, overhanging the 28 line by 6 each way and the form's 16 inline inset by 8, so the
   control keeps the 54.5 box (fix-news-cae.css section 2). The form keeps the filter row's 310 width (the By Topic select
   beside it), full width on a phone as before. */
.cae-prod-filter__slot > form.cae-recgrid-search {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 310px;
  max-width: 100%;
  margin: 0;
}
.cae-prod-filter__slot > form.cae-recgrid-search .cae-recgrid-search__go {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-block: -6px;
  margin-inline: 0 -8px;
  padding: 0;
  border: 0;
  color: inherit;
}
.cae-prod-filter__slot > form.cae-recgrid-search .cae-recgrid-search__go .button-icon {
  display: block;
  margin: 0;
  transform: none;
}
.cae-prod-filter__slot > form.cae-recgrid-search .cae-recgrid-search__go:focus-visible {
  outline: 3px solid var(--wp--preset--color--green, #c5e3bf);
  outline-offset: 2px;
}
@media (max-width: 781px) {
  .cae-prod-filter__slot > form.cae-recgrid-search { width: 100%; }
}

/* THE NO-RESULTS STATE (noresults-1130): the site's standard box (window.caeAppliedRow.emptyState, records-filter.js;
   paint from records-grid-cae.css and Kate's mobile sheet) sits first in the directory's grid and spans every column.
   On a phone Kate's sheet insets the box 10px each side (margin 0 10px); the holder steps out by the same 10px so the box
   lines up with the full-width search field above it (the alignment Meet the Team shows). The sitewide mobile sheet's
   ".cae-recgrid-prod-list > *" margin:0 !important is outranked by one more id here. */
.cae-recgrid-prod-list > .cae-recgrid-empty-client {
  grid-column: 1 / -1;
  min-width: 0;
}
@media (max-width: 781px) {
  html:not(#z):not(#y):not(#x) body:not(#z) .cae-recgrid-prod-list > .cae-recgrid-empty-client {
    margin: 0 -10px !important;
    width: auto !important;
  }
}
/* The directory's band is grey (#F3F5F7, kate-global-rules-cae.css), the same grey as the box at desktop, so with the box
   showing the band takes the page ground and the box reads as it does on every other list (grey holder on white).
   Only while the box is in the grid; with results the band is untouched. */
html body .wp-block-group:has(> .cae-recgrid-prod-list > .cae-recgrid-empty-client) {
  background-color: transparent !important;
}
