/* TOP page refinements — 2026-08-10 */

/* Featured characters. */
.home-featured-character-grid {
  width: min(100%, 1040px);
  margin: 10px auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.character-section-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  text-align: center;
}

.character-section-actions .text-link {
  justify-content: center;
}

.character-section-actions .button {
  width: min(100%, 360px);
}

/* Latest columns on TOP. */
.columns-section.section-soft {
  background: #fff !important;
}

.top-column-description {
  margin-bottom: 0;
}

.top-column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 1080px);
  margin: 28px auto 0;
}

.top-column-card {
  min-width: 0;
}

.top-column-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.top-column-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #dbe8f8;
  background: #f7faff;
}

.top-column-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .22s ease;
}

.top-column-card a:hover .top-column-card__image img {
  transform: scale(1.015);
}

.top-column-card__image > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #7d96b5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.top-column-card__body {
  padding-top: 14px;
}

.top-column-card h3 {
  margin: 0;
  color: #17243a;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 850;
  letter-spacing: -.01em;
}

.top-column-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.top-column-card__tags span {
  padding: 3px 8px;
  border-radius: 2px;
  background: #eaf3ff;
  color: #155faf;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}

.top-column-empty {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: #647184;
}

.top-column-action {
  margin-top: 30px;
  text-align: center;
}

.top-column-action .text-link {
  justify-content: center;
}

/* The TOP final CTA reuses the same shared design as the About page. */
.home-final-cta.article-diagnosis-cta {
  margin-top: 0 !important;
}

@media (max-width: 860px) {
  .home-featured-character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 720px);
  }

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

@media (max-width: 640px) {
  .character-section-actions {
    gap: 14px;
    margin-top: 30px;
  }

  .character-section-actions .button {
    width: 100%;
  }

  .top-column-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 24px;
  }

  .top-column-card h3 {
    font-size: 17px;
  }
}
