/* siddur.css - the Siddur, Machzor and Haggadah pages (prefix sd-). Hebrew | transliteration | English rows with
   toggles (jewish.js data-jw-toggle classes on <html>: jw-sd-no-he, jw-sd-no-tr, jw-sd-no-en, jw-sd-notes, jw-sd-big). */
.sd-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; position: sticky; top: 0; z-index: 2; padding: 8px 0; background: var(--bg, #fff); }
html[data-fs-theme="dark"] .sd-toolbar { background: var(--bg, #121212); }
.sd-toolbar .sd-tog[aria-pressed="true"] { background: var(--jw-accent); border-color: var(--jw-accent); color: #fff; }
.sd-ed { font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.sd-ed select { padding: 5px 8px; border: 1px solid var(--jw-line); border-radius: 8px; background: var(--jw-card); color: var(--jw-ink); max-width: 210px; }
.sd-trnote, .sd-credit { margin: 8px 0; }

.sd-text { margin: 6px 0 18px; }
.sd-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 22px; padding: 10px 0; border-bottom: 1px solid var(--jw-line); align-items: start; }
.sd-row > * { min-width: 0; }
.sd-he { font-family: var(--jw-hebrew); font-size: 1.32rem; line-height: 1.9; text-align: right; }
.sd-he b { font-weight: 700; }
.sd-he small { font-family: inherit; font-size: .72em; color: var(--jw-muted); }
.sd-big { font-size: 1.3em; }
html.jw-sd-big .sd-he { font-size: 1.7rem; line-height: 2.05; }
.sd-trc p, .sd-tr { margin: 0; line-height: 1.55; }
.sd-tr[data-checked="1"] { border-inline-start: 3px solid var(--jw-gold); padding-inline-start: 8px; }
.sd-en { line-height: 1.6; }
.sd-en p { margin: 0 0 .4em; }
.sd-en i { color: var(--jw-muted); }
.sd-own { margin: 0; }
.sd-own::before { content: "4Jewish translation"; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--jw-gold); }
.sd-row.sd-instr { padding: 4px 0; border-bottom: 0; }
.sd-row.sd-instr .sd-he { font-size: 1rem; color: var(--jw-muted); }
.sd-row.sd-instr .sd-en { font-size: .9rem; color: var(--jw-muted); }
.sd-fnm { font-size: .7em; color: var(--jw-muted); }
.sd-note { display: none; }
html.jw-sd-notes .sd-note { display: block; margin: 4px 0 6px; padding: 6px 10px; font-size: .86rem; font-style: normal; color: var(--jw-muted); background: var(--jw-soft); border-radius: 6px; }
.sd-fnm { display: none; }
html.jw-sd-notes .sd-fnm { display: inline; }

.sd-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; }
.sd-cols > * { min-width: 0; }
.sd-cols .sd-p { margin: 0 0 12px; }
.sd-cols .sd-trc p { margin: 0 0 12px; }
.sd-cols .sd-instr { font-size: 1rem; color: var(--jw-muted); }

html.jw-sd-no-he .sd-he, html.jw-sd-no-tr .sd-trc, html.jw-sd-no-en .sd-en { display: none; }
html.jw-sd-no-he .sd-row, html.jw-sd-no-he .sd-cols, html.jw-sd-no-tr .sd-row, html.jw-sd-no-tr .sd-cols, html.jw-sd-no-en .sd-row, html.jw-sd-no-en .sd-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html.jw-sd-no-he.jw-sd-no-tr .sd-row, html.jw-sd-no-he.jw-sd-no-en .sd-row, html.jw-sd-no-tr.jw-sd-no-en .sd-row,
html.jw-sd-no-he.jw-sd-no-tr .sd-cols, html.jw-sd-no-he.jw-sd-no-en .sd-cols, html.jw-sd-no-tr.jw-sd-no-en .sd-cols { grid-template-columns: minmax(0, 1fr); }
.sd-en.sd-alt[hidden] { display: none; }

@media (max-width: 900px) {
  .sd-row, .sd-cols, html.jw-sd-no-he .sd-row, html.jw-sd-no-tr .sd-row, html.jw-sd-no-en .sd-row,
  html.jw-sd-no-he .sd-cols, html.jw-sd-no-tr .sd-cols, html.jw-sd-no-en .sd-cols { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sd-he { font-size: 1.25rem; }
  .sd-toolbar { position: static; }
}

.sd-toc { list-style: none; padding: 0; margin: 0 0 8px; columns: 2 260px; column-gap: 28px; }
.sd-toc li { padding: 5px 0; break-inside: avoid; border-bottom: 1px dotted var(--jw-line); }
.sd-toc a { text-decoration: none; }
.sd-toc a span { text-decoration: underline; text-underline-offset: 2px; }
.sd-sec { font-family: var(--jw-serif); font-size: 1.15rem; margin: 22px 0 8px; }
.sd-chips a { display: inline-flex; gap: 6px; align-items: baseline; }
.sd-also { font-size: .92rem; display: flex; gap: 10px; flex-wrap: wrap; }
.sd-en2 { margin: 10px 0 18px; padding: 10px 14px; border: 1px solid var(--jw-line); border-radius: var(--jw-radius); }
.sd-en2 summary { cursor: pointer; font-weight: 500; }

.sd-seder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sd-seder li { border: 1px solid var(--jw-line); border-radius: var(--jw-radius); padding: 10px 12px; background: var(--jw-card); }
.sd-seder a { text-decoration: none; display: block; }
.sd-seder span { display: block; font-size: .88rem; color: var(--jw-muted); margin-top: 3px; }
.sd-step { font-family: var(--jw-serif); margin: 28px 0 4px; padding-top: 8px; border-top: 2px solid var(--jw-line); }
.sd-stepnote { color: var(--jw-muted); margin: 0 0 6px; }

@media print {
  .sd-toolbar, .sd-also, .sd-trnote { display: none !important; }
  .sd-row { break-inside: avoid; grid-template-columns: 1.1fr 1fr 1fr; padding: 4px 0; }
  .sd-he { font-size: 13pt; line-height: 1.6; }
  .sd-tr, .sd-en { font-size: 10pt; }
  .sd-step { break-before: page; }
  .sd-step:first-of-type { break-before: auto; }
}
.sd-h { display: block; font-weight: 700; margin: 14px 0 4px; color: var(--jw-accent-ink); }
