/* Directory filters: the white card of dropdowns above the list, plus the small buttons used across the directory.
   Needs styles.css (tokens). Same hairline card look as .news-card. */

.dir-filters-wrap {
  width: min(100% - 2rem, var(--content-wide));
  margin: var(--space-lg) auto 0;
}

.dir-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 0.55rem;
}

.dir-filters__buttons {
  display: flex;
  gap: 0.5rem;
}

/* ---------- Fields ---------- */
.dir-field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.dir-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.dir-field__pair {
  display: flex;
  gap: 0.5rem;
}

.dir-field :where(input, select, textarea) {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color 180ms var(--ease);
}

.dir-field textarea {
  resize: vertical;
}

.dir-field input[name="pc"] {
  width: 9.5rem;
  text-transform: uppercase;
}

.dir-field :where(input, select, textarea):hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--yolk) 55%, var(--hairline));
}

.dir-field select:disabled {
  color: #8c8e7e;
  background: var(--feed);
}

/* ---------- Small buttons (the big .btn from styles.css is used for the main actions) ---------- */
.dir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--field);
  background: var(--paper);
  border: 1.5px solid var(--field);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.dir-btn:hover {
  background: color-mix(in srgb, var(--yolk) 10%, var(--paper));
}

.dir-btn--plain {
  border-color: transparent;
}
