/* Unified guides hub */

.page-guides .guides-main {
  max-width: min(52rem, 100%);
}

.page-guides .guides-lead {
  margin-bottom: 1.25rem;
}

.guides-toc {
  position: sticky;
  top: 0.75rem;
  z-index: 5;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guides-toc-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
  margin-bottom: 0.45rem;
}

.guides-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guides-toc-list a {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text, #f0e8ec);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s, border-color 0.2s;
}

.guides-toc-list a:hover {
  background: rgba(220, 20, 60, 0.18);
  border-color: rgba(220, 20, 60, 0.35);
}

.guides-section {
  scroll-margin-top: 6rem;
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guides-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guides-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  background: linear-gradient(135deg, var(--text-primary, #fff), var(--accent-pink, #e91e8c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guides-section-intro {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.68));
  line-height: 1.5;
  max-width: 44rem;
}

.guides-section--howit .guides-howit-root {
  margin-top: 0.5rem;
}

.guides-doc-btn {
  margin-top: 0.25rem;
}

.guides-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.guides-more-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: var(--text, #f5f0f3);
  border-radius: var(--radius-md, 10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, background 0.2s;
}

.guides-more-link:hover {
  border-color: rgba(220, 20, 60, 0.35);
  background: rgba(220, 20, 60, 0.1);
}

@media (max-width: 480px) {
  .guides-toc-list a {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
  }
}
