/* The tools page's own additions on top of manuals.css (loaded first, so every colour here is one
   of its tokens and follows the light/dark theme with no extra rules). */

.tool-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-top: 1.25rem;
  /* A sidebar link jumps to the card by its id - leave some air above it when it does. */
  scroll-margin-top: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* manuals.css styles .content h2 as a chapter heading (large top margin, underline); inside a
   card it is just the card's title. */
.content .tool-card h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.content .tool-card p {
  margin-bottom: 1.25rem;
}

.tool-download {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.download-btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: var(--accent-blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s ease;
}

/* A fixed colour rather than --accent-blue-hover: that token turns lighter in dark mode, where
   the button's white label would stop being readable against it. */
.download-btn:hover {
  background: #1d4ed8;
}

.tool-file {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
