/* Homepage renewal: search-first layout built on the existing tool catalog. */
.site-header {
  background: rgba(255, 255, 255, .94);
}

.nav-bar {
  min-height: 64px;
}

.top-links {
  gap: 2px;
  font-weight: 700;
}

.hero {
  padding: 66px 0 34px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.home-hero-grid {
  display: block;
}

.home-hero-grid .hero-copy {
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.home-hero-grid .eyebrow {
  margin-bottom: 20px;
  border: 1px solid #bae6dc;
  border-radius: 999px;
  background: #ecfdf8;
  color: #087f6d;
}

.home-hero-grid h1 {
  max-width: none;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
}

.home-hero-grid h1 span {
  color: #087f6d;
}

.home-hero-grid .hero-description {
  max-width: 760px;
  margin: 22px auto 28px;
  font-size: 18px;
}

.home-hero-grid .search-panel {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 7px 7px 7px 16px;
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .09);
}

.hero-search-icon {
  color: #64748b;
  font-size: 24px;
  line-height: 1;
}

.home-hero-grid .search-field {
  min-width: 0;
  min-height: 52px;
  padding-left: 6px;
  font-size: 17px;
}

.home-hero-grid .search-button {
  min-height: 52px;
  padding: 0 24px;
  background: #087f6d;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.search-chips > span {
  margin-right: 2px;
  font-weight: 800;
}

.search-chips button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.search-chips button:hover,
.search-chips button:focus-visible {
  border-color: #8bd1c5;
  background: #ecfdf8;
  color: #087f6d;
  outline: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: 34px auto 0;
}

.hero-stats > div {
  display: grid;
  gap: 4px;
  padding: 2px 20px;
  border-right: 1px solid var(--line);
}

.hero-stats > div:last-child {
  border-right: 0;
}

.hero-stats strong {
  color: var(--text);
  font-size: 21px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 42px 0;
}

.section-head {
  align-items: center;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 28px;
}

.section-more-link {
  flex: 0 0 auto;
  color: #087f6d;
  font-size: 14px;
  font-weight: 800;
}

.featured-grid {
  gap: 16px;
}

.featured-card {
  position: relative;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  min-height: 126px;
  padding: 20px;
  overflow: hidden;
}

.featured-rank {
  position: absolute;
  top: 12px;
  right: 14px;
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 900;
}

.featured-icon {
  grid-row: 1 / span 2;
  background: #eef6f4;
}

.featured-card strong,
.featured-card > span:not(.featured-icon):not(.featured-rank) {
  grid-column: 2;
}

.featured-card strong {
  padding-right: 20px;
}

.featured-card > span:not(.featured-icon):not(.featured-rank) {
  align-self: start;
}

.personal-tools {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f1f6f5;
}

.personal-tool-link {
  min-height: 92px;
  background: #fff;
}

.growth-card {
  padding: 22px;
  box-shadow: none;
}

.growth-card:hover {
  border-color: #9ac9c2;
}

.growth-count {
  background: #e5f5f1;
}

.growth-links a {
  background: #f8fafc;
}

.spotlight-card {
  background: #fff;
}

#spotlightTools {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

#allTools {
  padding-top: 52px;
}

@media (max-width: 900px) {
  .top-links a:nth-child(3) {
    display: none;
  }

  .featured-grid,
  .spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-bar {
    min-height: 58px;
  }

  .top-links {
    display: none;
  }

  .hero {
    padding: 42px 0 26px;
  }

  .home-hero-grid h1 {
    font-size: 39px;
  }

  .home-hero-grid .hero-description {
    margin-top: 18px;
    font-size: 16px;
  }

  .desktop-break {
    display: none;
  }

  .home-hero-grid .search-panel {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 5px 12px;
  }

  .home-hero-grid .search-button {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 7px;
  }

  .search-chips {
    justify-content: flex-start;
  }

  .hero-stats {
    margin-top: 28px;
  }

  .hero-stats > div {
    padding: 2px 8px;
  }

  .hero-stats strong {
    font-size: 18px;
  }

  .hero-stats span {
    font-size: 11px;
  }

  .section {
    padding: 34px 0;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .featured-grid,
  .growth-grid,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 112px;
  }

  .section-more-link {
    margin-top: 5px;
  }
}

@media (max-width: 390px) {
  .home-hero-grid h1 {
    font-size: 34px;
  }

  .search-chips button:nth-of-type(n + 5) {
    display: none;
  }

  .hero-stats > div {
    padding-inline: 5px;
  }
}
