/* public/_related.css — "Related tools" strip near the bottom of every tool
 * page (rendered server-side by views/partials/footer.ejs from
 * core/tools-registry.js). New file so it doesn't collide with
 * public/style.css (owned separately) — uses only that file's design tokens
 * (--bg-2/--bg-3/--border/--text/--text-2/--text-3/--accent/--mono/--radius),
 * so it themes automatically with the site's light/dark toggle (no separate
 * light/dark rules needed here — see style.css's html[data-theme] overrides).
 */

.related-strip {
  margin: 2.25rem 0 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.related-strip-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.65rem;
}

.related-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}

.related-tile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  transition: background 0.15s, border-color 0.15s;
}

.related-tile:hover,
.related-tile:focus-visible {
  background: var(--bg-3);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
}

.related-tile-icon {
  flex: none;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
}

.related-tile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
