/* Compact task discovery, scoped to the homepage template. */
.home-page .hero-gallery {
  padding: 2rem 1rem 1.25rem;
}

.home-page .hero-gallery h1 {
  max-width: 760px;
  margin: 0 auto 0.65rem;
  color: var(--text);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.45;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.home-page .hero-gallery .lead {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-page .home-task-discovery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.home-page .home-task-discovery a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 60px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.home-page .home-task-discovery strong {
  color: var(--text);
  font-size: 0.9rem;
}

.home-page .home-task-discovery span {
  color: var(--muted);
  font-size: 0.8rem;
}

.home-page .home-task-discovery a:hover,
.home-page .home-task-discovery a:focus-visible {
  border-color: var(--brand);
}

.home-page .home-task-discovery a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.home-page .hero-model-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(380px, 100%);
  margin: 0 auto 1rem;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: none;
  backdrop-filter: none;
}

.home-page .hero-model-switch a {
  min-width: 0;
  min-height: 44px;
  padding: 4px 8px;
  color: var(--text);
  font-size: 1rem;
}

.home-page .hero-model-switch a[aria-current="page"],
.home-page .hero-model-switch a:hover {
  color: #07111f;
}

.home-page .search-container {
  margin-bottom: 1rem;
}

.home-page .search-input {
  min-height: 48px;
  padding: 0.65rem 1rem;
}

.home-page .filter-bar {
  margin-bottom: 0;
}

.home-page .filter-btn {
  min-height: 44px;
  padding: 6px 12px;
}

.home-page .no-results {
  padding: 2rem 1rem;
}

.home-page .no-results h2 {
  font-size: 1.25rem;
}

.home-page .no-results button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .home-page .hero-gallery {
    padding: 1.25rem 0 1rem;
  }
}
