/* ============================================================
   All Tools — directory page styles
   ============================================================ */

.at-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.at-search-wrap {
  position: relative;
}

.at-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.at-search {
  width: 100%;
  padding: 12px 16px 12px 40px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.at-search::placeholder { color: var(--muted); }

.at-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.at-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.at-chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.at-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.at-chip-active {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  font-weight: 600;
}

.at-chip-active:hover {
  color: var(--on-accent);
  border-color: transparent;
}

.at-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.at-meta-sep { margin: 0 6px; }

.at-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 64px;
}

.at-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.at-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.at-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.at-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.at-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.at-card-cat {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 178, 36, 0.3);
  background: rgba(255, 178, 36, 0.07);
  padding: 3px 8px;
  border-radius: 999px;
}

.at-card-open {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.at-card:hover .at-card-open { color: var(--accent); }

.at-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 48px 0 64px;
}

/* ---------- footer (shared on this page) ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.foot-nav {
  display: flex;
  gap: 16px;
}

.foot-nav a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease;
}

.foot-nav a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .at-grid { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; text-align: center; }
}
