/* Guide pages (/lrc-maker/, /how-to-sync-lyrics-to-a-song/, ...): generated by
   scripts/build-guides.py from guides-src/. Loaded after css/styles.css. */

/* White page: the header needs its navy background from the top, or its white links are
   invisible until you scroll (same rule as the tutorial and privacy pages). */
.header {
  background-color: var(--primary-color);
}

.guide {
  max-width: 820px;
  margin: 0 auto;
  padding: 130px 24px 64px;
}

.guide h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Anchor targets stop below the fixed header. */
.guide [id] {
  scroll-margin-top: 96px;
}

.guide-updated {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 24px;
}

.guide-lead {
  font-size: 19px;
  line-height: 1.7;
  color: #1f2937;
}

.guide h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--primary-color);
  margin: 48px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

.guide h3 {
  font-size: 1.15rem;
  color: #1f2937;
  margin: 28px 0 10px;
}

.guide p,
.guide li {
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}

.guide ol,
.guide ul {
  margin: 0 0 18px;
  padding-left: 24px;
}

.guide li {
  margin-bottom: 8px;
}

.guide a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  background: #eef2f7;
  color: #1f2937;
  padding: 2px 6px;
  border-radius: 4px;
}

.guide pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: #0f1d33;
  border-radius: 12px;
}

.guide pre code {
  display: block;
  padding: 0;
  background: none;
  color: #e5edf8;
  font-size: 14px;
  line-height: 1.7;
  /* Wrap long lines instead of scrolling sideways: a scrolling box needs keyboard access (axe
     scrollable-region-focusable, the Enhanced LRC example on phones). */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guide .store-buttons {
  justify-content: flex-start;
  margin: 24px 0 8px;
}

/* Screenshots: the iPhone and Android versions side by side */
.guide-shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 32px;
}

.guide-shot {
  margin: 0;
  text-align: center;
}

.guide-shot img {
  display: block;
  width: 220px;
  max-width: 42vw;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(0, 38, 94, 0.15);
}

.guide-shot figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.guide-note {
  margin: 16px 0 20px;
  padding: 14px 18px;
  border-inline-start: 4px solid var(--accent-color);
  border-radius: 10px;
  background: var(--grey-color);
}

.guide-note p:last-child {
  margin-bottom: 0;
}

.guide-faq h3 {
  margin-top: 24px;
}

/* Closing download box (navy, so links get the light focus ring) */
.guide-cta {
  margin: 56px 0 40px;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: var(--primary-color);
  text-align: center;
}

.guide-cta p {
  margin-bottom: 20px;
  color: var(--white-color);
  font-size: 18px;
}

.guide .guide-cta .store-buttons {
  justify-content: center;
  margin: 0;
}

.guide-cta :focus-visible {
  outline-color: var(--secondary-color);
  box-shadow: none;
}

.guide-more h2 {
  margin-top: 0;
}

/* "Guides" links in the navy site footer (home, guides, privacy page) */
.footer-guides {
  margin-top: 16px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .guide {
    padding: 110px 16px 48px;
  }

  .guide-lead {
    font-size: 17px;
  }

  .guide-shots {
    gap: 12px;
  }

  .guide-shot img {
    width: 160px;
    border-radius: 18px;
  }
}
