/* hymns.css - /hymns/ (hymns.inc.php, hymns_browse.inc.php). Prefix hy-. Builds on christian.css tokens. */

/* lists */
.hy-list { list-style: none; padding: 0; margin: 0; }
.hy-list li { padding: 5px 0; border-bottom: 1px solid var(--cx-line); break-inside: avoid; line-height: 1.35; }
.hy-list li a { font-family: var(--cx-serif); font-size: 1.02rem; }
.hy-list small { color: var(--cx-muted); font-size: .8rem; margin-left: 4px; }
.hy-cols { columns: 2 320px; column-gap: 28px; }
.hy-results li { padding: 8px 0; }
.hy-hit { display: block; color: var(--cx-muted); font-size: .88rem; font-style: italic; }
.hy-chips small { color: var(--cx-muted); font-size: .75rem; margin-left: 2px; }
.hy-chips a.on small { color: inherit; }
.hy-cards .cx-card b { font-family: var(--cx-serif); font-weight: 600; }
.hy-meters td:last-child, .hy-meters th:last-child { text-align: right; width: 6em; }

/* one hymn */
.hy-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 36px; }
@media (min-width: 880px) { .hy-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.hy-words { font-family: var(--cx-serif); font-size: 1.12rem; line-height: 1.6; color: var(--cx-ink); max-width: 38em; }
.hy-words.hy-big { font-size: 1.4rem; }
.hy-st { display: grid; grid-template-columns: 1.8em minmax(0, 1fr); margin: 0 0 1.05em; }
.hy-st p { margin: 0; font-family: var(--cx-serif); font-size: inherit; line-height: inherit; color: inherit; }
.hy-n { color: var(--cx-gold); font-weight: 600; font-size: .9em; padding-top: .05em; }
.hy-ref p { font-style: italic; padding-left: 1.2em; border-left: 2px solid var(--cx-line); }
.hy-rl { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; writing-mode: vertical-rl; transform: rotate(180deg); justify-self: start; font-style: normal; }
.hy-i1 { padding-left: 1.4em; }
.hy-i2 { padding-left: 2.8em; }
.hy-i0, .hy-i1, .hy-i2 { display: inline-block; text-indent: -1em; margin-left: 1em; }
.hy-credit { font-size: .86rem; color: var(--cx-muted); margin: 18px 0 0; padding-top: 10px; border-top: 1px solid var(--cx-line); }
.hy-side { font-size: .93rem; }
.hy-facts { margin-bottom: 8px; grid-template-columns: max-content minmax(0, 1fr); }
.hy-facts dd { overflow-wrap: anywhere; }
.hy-printed { font-style: italic; }
.hy-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cx-muted); margin: 18px 0 8px; font-weight: 600; }
.hy-src { margin: 0; color: var(--cx-muted); }
.hy-hymn .cx-actions .cx-btn { font-size: .85rem; padding: 5px 12px; }

html[data-fs-theme="dark"] .hy-n { color: #d4b06a; }
html[data-fs-theme="dark"] .hy-ref p { border-left-color: #4a463f; }

@media (max-width: 480px) {
  .hy-words { font-size: 1.05rem; }
  .hy-words.hy-big { font-size: 1.25rem; }
  .hy-st { grid-template-columns: 1.5em minmax(0, 1fr); }
  .hy-facts { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .hy-facts dt { margin-top: 6px; }
}

@media print {
  .hy-side .cx-chips, .hy-hymn ~ .cx-block, .hy-hymn ~ .cx-note, .cx-crumbs, .hy-h { display: none !important; }
  .hy-layout { display: block; }
  .hy-words { font-size: 13pt; max-width: none; color: #000; }
  .hy-st { break-inside: avoid; }
  .hy-side { font-size: 9pt; margin-top: 12pt; }
  .hy-credit { color: #000; }
}
