/* ==========================================================================
   Components — reusable primitives
   Only what the markup actually mounts. The board composition (app.css) builds
   on these. Class names are the contract with js/app.js.
   ========================================================================== */

/* --- Field (the search input) --------------------------------------- */

.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  background: var(--board-raised);
  border: 1px solid transparent;
  border-radius: 12px;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.field:focus-within {
  border-color: var(--map-accent);
  box-shadow: 0 0 0 3px var(--map-accent-soft);
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 14px/1.2 var(--font-body);
  outline: none;
}

.field input:focus-visible {
  outline: none;
}

.field input::placeholder {
  color: var(--ink-faint);
}
