/* Guide topic pages — matches TestChii site shell */

.site-home .tc-guide-page {
  padding-top: 0.5rem;
}

.site-home .tc-guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
  color: var(--tc-text-muted, #5f5b75);
}

.site-home .tc-guide-breadcrumb a {
  color: var(--tc-primary-dark, #6d28d9);
  text-decoration: none;
  font-weight: 600;
}

.site-home .tc-guide-breadcrumb a:hover {
  text-decoration: underline;
}

.site-home .tc-guide-breadcrumb__sep {
  opacity: 0.45;
}

.site-home .tc-guide-breadcrumb__current {
  color: var(--tc-text, #1e1b4b);
  font-weight: 600;
}

.site-home .tc-guide-highlights {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .site-home .tc-guide-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.site-home .tc-guide-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(216, 201, 255, 0.45);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.94) 100%);
  box-shadow: 0 8px 28px -18px rgba(124, 92, 230, 0.2);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--tc-text, #1e1b4b);
}

.site-home .tc-guide-highlight__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  color: #fff;
  background: linear-gradient(145deg, #a78bfa 0%, #8b6cf6 100%);
}

.site-home .tc-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .site-home .tc-guide-actions {
    justify-content: flex-start;
  }
}

.site-home .tc-guide-related {
  padding-top: 0;
  background:
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(221, 214, 254, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 45% 38% at 90% 80%, rgba(186, 230, 253, 0.3) 0%, transparent 55%),
    linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
}

.site-home .tc-guide-related__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.site-home .tc-guide-related__head .tc-section-title {
  margin-bottom: 0;
}

.site-home .tc-guide-related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.site-home .tc-guide-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(216, 201, 255, 0.42);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px -18px rgba(124, 92, 230, 0.18);
  transition:
    transform 0.28s var(--tc-site-ease, ease),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.site-home .tc-guide-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 16px 40px -20px rgba(124, 92, 230, 0.28);
}

.site-home .tc-guide-related-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--tc-text, #1e1b4b);
}

.site-home .tc-guide-related-card__body {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--tc-text-muted, #5f5b75);
}

.site-home .tc-guide-related-card__link {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tc-primary-dark, #6d28d9);
}

@media (prefers-reduced-motion: reduce) {
  .site-home .tc-guide-related-card {
    transition: none;
  }

  .site-home .tc-guide-related-card:hover {
    transform: none;
  }
}
