/* "Hum to find a hymn" (/hymns/identify, generated by tools/blog/build.mjs; behaviour in hymn-identify.js).
   Builds on blog.css: its palette, serif and sans, and the same restraint — one panel on the quiet tint,
   hairline rules, the one accent colour. */
.identify-page .masthead.identify-masthead { border-bottom: 0; padding-bottom: 6px; }
.identify-page .masthead.identify-masthead h1 { max-width: 16ch; }
.identify-page .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.identify-page .identify { max-width: var(--measure); margin: 8px 0 34px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--tint-line); border-radius: 12px; background: var(--tint); font-family: var(--sans); }
.identify-page .identify-start { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.identify-page .identify-start[hidden] { display: none; }
.identify-page .identify-record { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 16px; border: 0; border-radius: 8px; background: var(--page-fill); color: var(--page-on-fill); font: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0; cursor: pointer; }
.identify-page .identify-record:hover:not(:disabled) { background: var(--page-fill-hover); }
.identify-page .identify-record:focus-visible, .identify-page .identify-again:focus-visible, .identify-page .identify-file-label:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.identify-page .identify-record:disabled { opacity: .55; cursor: default; }
.identify-page .identify-record .ic { width: 20px; height: 20px; }
.identify-page .identify-hint { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.55; }
.identify-page .identify-alt { margin: 0; font-size: 14px; }
.identify-page .identify-file-label { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.identify-page .identify-privacy { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--tint-line); color: var(--muted); font-size: 13.5px; }

.identify-page .identify-status { font-size: 16px; color: var(--ink); }
.identify-page .identify-status:empty { display: none; }
.identify-page .identify-status.is-listening { display: flex; align-items: center; gap: 14px; min-height: 58px; font-weight: 600; }
.identify-page .identify-status.is-error { margin-top: 14px; color: var(--page-bad-fg, #b42318); }
.identify-page .identify-wave { display: inline-flex; align-items: center; gap: 4px; height: 26px; }
.identify-page .identify-wave span { width: 4px; height: 100%; border-radius: 2px; background: var(--accent); animation: identify-wave 1s ease-in-out infinite; }
.identify-page .identify-wave span:nth-child(2) { animation-delay: .12s; }
.identify-page .identify-wave span:nth-child(3) { animation-delay: .24s; }
.identify-page .identify-wave span:nth-child(4) { animation-delay: .36s; }
.identify-page .identify-wave span:nth-child(5) { animation-delay: .48s; }
@keyframes identify-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .identify-page .identify-wave span { animation: none; transform: scaleY(.6); } }

.identify-page .identify-result:focus { outline: none; }
.identify-page .identify-result .kicker { margin-bottom: 6px; }
.identify-page .identify-result h2 { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(28px, 4.2vw, 38px); font-weight: 650; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.identify-page .identify-result h2 a { color: var(--ink); text-decoration: none; }
.identify-page .identify-result h2 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .12em; }
.identify-page .identify-result .first-line { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.45; color: var(--text); }
.identify-page .identify-result .story-meta { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }
.identify-page .identify-result p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--text); }
.identify-page .identify-result ul { margin: 0 0 18px; padding-left: 20px; font-size: 15.5px; line-height: 1.6; }
.identify-page .identify-result li { margin-bottom: 6px; }
.identify-page .identify-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.identify-page .identify-again { min-height: 46px; padding: 0 18px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15.5px; font-weight: 650; cursor: pointer; }
.identify-page .identify-again:hover { border-color: var(--accent); color: var(--accent); }
.identify-page .identify-result.is-missed h2 { font-size: clamp(25px, 3.6vw, 32px); }

.identify-page .identify-about { max-width: var(--measure); }
.identify-page .identify-about h2 { font-family: var(--serif); font-size: 26px; font-weight: 650; color: var(--ink); }
.identify-page .faq h3 { font-family: var(--serif); font-size: 19px; color: var(--ink); margin: 20px 0 6px; }
.identify-page .faq p, .identify-page .tips { font-size: 17px; line-height: 1.6; }

@media (max-width: 560px) {
  .identify-page .identify { padding: 20px 16px; margin-left: -4px; margin-right: -4px; }
  .identify-page .identify-record { width: 100%; justify-content: center; }
  .identify-page .identify-actions .cta-button, .identify-page .identify-again { width: 100%; justify-content: center; }
}
