/* Home reading paths and published-book actions; keep the site's palette. */
.hero-tags {
  align-items: center;
}

.hero-tags .hero-topic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem .9rem;
  border-color: rgba(245, 163, 179, .65);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.hero-tags .hero-topic-link:hover {
  border-color: #f5a3b3;
  background: rgba(255, 255, 255, .16);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-tags .hero-topic-link:focus-visible {
  outline: 2px solid #f5a3b3;
  outline-offset: 4px;
}

.book-links--reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.book-links--reader-actions .btn {
  flex: 1 1 160px;
  min-height: 44px;
  justify-content: center;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}

.book-links--reader-actions .book-discovery-link {
  flex-basis: 100%;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--rose);
  font-size: .9rem;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.book-links--reader-actions a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .hero-tags .hero-topic-link {
    max-width: 100%;
  }
  .book-links--reader-actions .btn {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tags .hero-topic-link,
  .book-links--reader-actions .btn {
    transition: none;
  }
  .book-links--reader-actions .btn:hover {
    transform: none;
  }
}
