/* Homepage layout overrides. Kept separate because the production asset
   directory is read-only for the deployment account. */
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: 20px 0 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.home-intro-copy {
  max-width: 720px;
}

.home-intro .hero-title {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 750;
  color: var(--text);
}

.home-intro .hero-desc {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.home-stats {
  display: flex;
  gap: 28px;
  margin: 0;
}

.home-stats div {
  min-width: 72px;
}

.home-stats dt {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.home-stats dd {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.home-page .section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.home-page .section-note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.featured-tools {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

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

.home-page .tool-section {
  margin-bottom: 32px;
}

.home-page .tool-card {
  min-height: 94px;
  padding: 16px;
  box-shadow: none;
}

.home-page .tool-card:hover {
  transform: none;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.07);
}

.home-page .tool-icon-fallback {
  border-radius: 6px;
}

.home-about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-about h2 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 650;
}

.home-about p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.home-guide-list {
  border-top: 1px solid var(--border);
}

.home-guide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.home-guide-row:hover {
  color: var(--primary);
}

.home-guide-row h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 550;
}

.home-guide-row time {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding-top: 10px;
  }

  .home-intro .hero-title {
    font-size: 24px;
  }

  .home-intro .hero-desc {
    font-size: 14px;
  }

  .home-stats {
    gap: 24px;
  }

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

  .home-about {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-guide-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .home-guide-row h3 {
    white-space: normal;
  }
}
