/* css/components/files-filter.css — TinkyTown Files sub-tab bar
 * P3.T4 — Files drill-downs (2026-05-11).
 * Brand: Fraunces + General Sans + var(--surface-deep) var(--amber)
 * var(--green) var(--green-soft). All colours via var() — no raw hex.
 * Load order: AFTER outreach.css so .files-wrap layout is in scope.
 */

.tt-files-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  margin: 0 0 1rem;
  background: var(--surface-deep, #0d0b10);
  border: 1px solid var(--amber, #e8a33d);
  border-color: color-mix(in srgb, var(--amber, #e8a33d) 22%, transparent);
  border-radius: 14px;
  font-family: var(--f-sans, 'General Sans', system-ui, sans-serif);
}

.tt-files-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  min-height: 44px;            /* mobile tap-target floor */
  background: transparent;
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.tt-files-tab:hover {
  background: var(--green-soft, rgba(74, 222, 128, 0.08));
  color: var(--text-primary, #fff);
  border-color: color-mix(in srgb, var(--green, #4ade80) 30%, transparent);
}

.tt-files-tab:focus-visible {
  outline: 2px solid var(--amber, #e8a33d);
  outline-offset: 2px;
}

.tt-files-tab.is-active {
  background: color-mix(in srgb, var(--amber, #e8a33d) 12%, transparent);
  border-color: var(--amber, #e8a33d);
  color: var(--text-primary, #fff);
  font-weight: 600;
}

.tt-files-icon { font-size: 1rem; line-height: 1; }
.tt-files-label { white-space: nowrap; }

/* Hide cards that don't match the active sub-tab without touching the
 * grid's innerHTML pipeline owned by js/outreach-files.js. */
.file-card.tt-files-hidden { display: none !important; }
