/* SeferSiddour — compléments au CSS de page tehilim. */

/* Sommaire */
.part-title {
  margin: 42px 0 18px;
  font-size: 22px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.toc-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 22px;
  margin-bottom: 14px;
}
.toc-section h3 { margin: 0 0 10px; font-size: 15px; color: var(--text); }
.toc-section ul { margin: 0; padding: 0 18px; columns: 2; column-gap: 28px; }
.toc-section li { margin: 3px 0; font-size: 14px; break-inside: avoid; }
.toc-section a { color: var(--text-dim); text-decoration: none; }
.toc-section a:hover { color: var(--accent); }
.seg-count { color: var(--text-faint); font-size: 11px; }
@media (max-width: 600px) { .toc-section ul { columns: 1; } }

/* Pages siddour complet — texte hébreu en flux */
.he-flow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px 30px;
}
.he-seg {
  font-family: 'Frank Ruhl Libre', 'David', 'David CLM', 'Times New Roman', serif;
  font-size: 23px;
  line-height: 2.05;
  color: var(--text);
  text-align: right;
  margin-bottom: 14px;
}
.he-seg big { font-size: 1.25em; }
.seg-tr {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  font-style: italic;
  text-align: left;
  margin: -8px 0 16px;
  padding-left: 10px;
  border-left: 2px solid var(--border);
}
.provenance {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-faint);
}

/* Blocs annexes conservés depuis ulpan-hebrew */
.extra-block { margin-top: 26px; }

/* Ruby : le son sous le groupe de lettres qui le porte, dans le flux RTL de l'hébreu.
   Mécanisme natif du navigateur (celui des furigana) — ruby-position: under. */
.he-ruby ruby, .he-seg ruby { ruby-position: under; ruby-align: center; }
.he-ruby rt, .he-seg rt {
  font-size: 0.40em;
  font-family: -apple-system, 'Inter', sans-serif;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  padding-top: 1px;
}
/* L'annotation sous la ligne demande de l'air vertical, sinon elle mord la ligne suivante. */
.he-seg { line-height: 2.75; }
.he-ruby { line-height: 2.1; }
.verses-grid .word .he.he-ruby { line-height: 2.0; }
