/* =========================================================================
   ep3-search — search-input primitive shared across directory pages.
   Used on /affiliates.html (step 8) and /people.html (step 9).

   All tokens from webshield-navy.css. Inline SVG icon (no Font Awesome).
   ========================================================================= */

.ep3-search {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}
.ep3-search__icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--ws-ink-faint);
  pointer-events: none;
}
.ep3-search__input {
  width: 100%;
  font-family: var(--ws-font-body);
  font-size: 14px;
  color: var(--ws-ink);
  background: var(--ws-surface);
  border: 1px solid var(--ws-rule);
  padding: 14px 16px 14px 44px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ep3-search__input::placeholder {
  color: var(--ws-ink-faint);
}
.ep3-search__input:focus {
  border-color: var(--ws-accent);
  box-shadow: 0 0 0 3px var(--ws-accent-soft);
}

/* Clear-X button (F·06). Hidden until the input has a value; JS toggles
   the [hidden] attribute. */
.ep3-search__clear {
  appearance: none;
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--ws-rule);
  color: var(--ws-ink-faint);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ws-font-mono);
  font-size: 14px; line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ep3-search__clear:hover {
  color: var(--ws-ink);
  border-color: var(--ws-ink-faint);
}
/* Hide the input's native ::-webkit-search-cancel-button so the custom
   ×-clear is the only one visible. */
.ep3-search__input::-webkit-search-cancel-button { display: none; }

/* =========================================================================
   ep3-dir-results — combined chip+search summary line.
   Shared between /people and /affiliates (and any future directory). Sits
   below the search input; renders only when a filter or query is active.
   Originally lived in ep3-people.css as .ep3-people-results; promoted here
   so the affordance reads identically across directories (F·05 shared
   component recommendation from Claude Design).
   ========================================================================= */
.ep3-dir-results {
  font-family: var(--ws-font-mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: var(--ws-tracking-mono);
  text-transform: uppercase;
  color: var(--ws-ink-faint);
  margin: 0 auto 8px;
  max-width: 460px;
  text-align: left;
  padding: 0 4px;
}
.ep3-dir-results[hidden] { display: none; }
.ep3-dir-results__count {
  color: var(--ws-ink);
}
.ep3-dir-results__divider {
  margin: 0 8px;
  color: var(--ws-rule);
}
.ep3-dir-results__chip {
  color: var(--ws-ink);
}
.ep3-dir-results__query {
  color: var(--ws-accent);
}
