/* ========================================
   Music Coast — UI/UX Polish
   (Safe overrides; loaded after styles.css)
======================================== */

/* Logo sub-tagline (desktop only) */
.logo-tagline {
  display: none;
}

@media (min-width: 1024px) {
  .logo-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding-left: var(--space-sm);
    margin-left: var(--space-sm);
    border-left: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    white-space: nowrap;
    line-height: 1;
    -webkit-text-fill-color: initial;
  }

  /* Avoid inheriting the gradient text treatment from .logo-text */
  .logo-tagline {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
  }
}

/* Make sure the tagline doesn’t squeeze nav on medium widths */
@media (max-width: 1160px) {
  .logo-tagline {
    display: none;
  }
}

/* =========================
   Policy pages
========================= */

/* Center policy titles (requested) */
.policy-page > h1,
.policy-page h1 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Center the “On this page” card (requested) */
.policy-page .toc {
  margin-left: auto;
  margin-right: auto;
}

.policy-page .toc .card-tag {
  text-align: center;
}

/* Make long tables of contents easier to scan on desktop */
@media (min-width: 980px) {
  .policy-page .toc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Center the policy nav pills + action buttons for a cleaner layout */
.policy-page .policy-actions,
.policy-page .policy-nav {
  justify-content: center;
}

/* Keep the policy body comfortably readable */
.policy-page .article-body {
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   General polish
========================= */

/* Strong, consistent focus outlines for keyboard users */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.55);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* Reduce motion for people who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn:hover {
    transform: none !important;
  }
}

/* Make hero CTA row wrap a bit nicer when we add “Get App Updates” */
.hero .cta-row {
  gap: var(--space-sm);
}

.hero .cta-row .btn {
  min-height: 44px;
}

/* Make the welcome card feel more “app-first” without changing layout */
.hero .card .card-tag {
  letter-spacing: 0.03em;
}

/* Streaming app feature chips (homepage hero) */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero-chips .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--accent-rgb), 0.30);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  backdrop-filter: blur(6px);
}

html[data-theme="dark"] .hero-chips .chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

