/* Homepage first screen: search first, then the three jobs a visitor comes for. */

.hero .hero-search {
  max-width: 640px;
  margin: 1.5rem 0 0.6rem;
}
.hero .hero-search input {
  min-height: 52px;
  padding: 0 1rem;
  font-size: 1.05rem;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.hero .hero-search input:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-color: var(--brand-2);
}
.hero .hero-search .btn {
  min-height: 52px;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.hero-try {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.hero-try a {
  color: var(--ink-2);
}

.hero-jobs {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 920px;
}
.hero-jobs a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-2);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.hero-jobs a:hover {
  border-color: var(--line-2);
  border-top-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.hero-jobs strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-jobs span {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.hero-jobs em {
  margin-top: auto;
  padding-top: 0.4rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-2);
}

@media (max-width: 760px) {
  .hero-jobs {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }
  .hero-jobs a {
    padding: 0.85rem 1rem;
  }
  .hero-try {
    margin-bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-jobs a {
    transition: none;
  }
  .hero-jobs a:hover {
    transform: none;
  }
}
