/* ──────────────────────────────────────────────────────────────
   EC Tools — launcher/index styles.

   Layered on top of the vendored EC base stylesheet (styles/main.css):
   reuses the --ec-* design tokens and shared chrome; adds only the tool-
   grid layout. No authored brand colors; no inline styles (CSP style-src
   'self').
   ────────────────────────────────────────────────────────────── */

.tools-main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem;
  outline: none;
}

.tools-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}

.tool-card {
  display: flex;
}

.tool-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 1.25rem 1.25rem 1.375rem;
  border: 1px solid var(--ec-color-rule, #e5e5e5);
  border-radius: 0.5rem;
  background: var(--ec-color-bg, #fff);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}

.tool-card__link:hover {
  border-color: var(--ec-color-focus, #007167);
  background: var(--ec-color-surface, #FAFBFC);
}

.tool-card__link:focus-visible {
  outline: 2px solid var(--ec-color-focus);
  outline-offset: 2px;
}

.tool-card__title {
  font-family: var(--ec-font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ec-color-heading, #002E6D);
}

.tool-card__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ec-color-muted, #5B6670);
}

@media (prefers-reduced-motion: reduce) {
  .tool-card__link { transition: none; }
}

@media (max-width: 48rem) {
  .tools-main { padding: 1.25rem; }
  .tools-grid { grid-template-columns: 1fr; }
}
