/* Reader of the other teachings: works, sections, and a section with its cited passage highlighted. */
.texts-works,
.texts-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.texts-works li,
.texts-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.texts-works a,
.texts-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  color: inherit;
  text-decoration: none;
}

.texts-works a:hover,
.texts-list a:hover {
  color: var(--teaching-colour, #8a6d1d);
}

.texts-work-count {
  flex-shrink: 0;
  font-size: 0.85rem;
  opacity: 0.6;
}

.texts-back,
.texts-nav {
  margin: 8px 0 16px;
  font-size: 0.9rem;
}

.texts-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.texts-back a,
.texts-nav a,
.texts-pager a {
  color: var(--teaching-colour, #8a6d1d);
  text-decoration: none;
}

.texts-lesson-link {
  font-weight: 500;
}

.texts-source {
  margin: 16px 0;
  font-size: 0.85rem;
  color: var(--teaching-colour, #8a6d1d);
}

.texts-passage {
  margin-bottom: 1em;
  padding: 4px 0;
  scroll-margin-top: 24px;
}

.texts-passage--cible {
  margin-left: -14px;
  padding: 10px 14px;
  border-left: 4px solid var(--teaching-colour, #8a6d1d);
  border-radius: 6px;
  background: rgba(138, 109, 29, 0.08);
}

.texts-pager {
  display: flex;
  justify-content: space-between;
  margin: 24px 0;
}

@media (max-width: 600px) {
  .texts-passage--cible {
    margin-left: 0;
  }
}

/* Reading layout of one section (01/11/2026): top bar, narrow centred column, actions, neighbour cards. */
.lecture-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
}

.lecture-chemin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  color: rgba(0, 0, 0, 0.55);
}

.lecture-chemin a {
  color: var(--teaching-colour, #8a6d1d);
  text-decoration: none;
}

.lecture-chemin-ici {
  color: rgba(0, 0, 0, 0.75);
}

.lecture-bar .lecture-taille {
  margin: 0;
}

.lecture {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.lecture-retour-lecon {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.lecture-retour-lecon a {
  color: var(--teaching-colour, #8a6d1d);
  font-weight: 500;
  text-decoration: none;
}

.lecture-entete {
  margin: 8px 0 28px;
  text-align: center;
}

.lecture-entete h1 {
  margin: 14px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}

.lecture .lecture-texte {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.9;
  text-align: left;
}

.lecture .lecture-texte .texts-passage--cible {
  margin-left: 0;
  padding: 6px 0 6px 22px;
  border-left: 2px solid var(--teaching-colour, #8a6d1d);
  border-radius: 0;
  background: none;
}

.lecture-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 32px;
}

.lecture-btn {
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.lecture-btn--principal {
  border-color: var(--teaching-colour, #8a6d1d);
  background: var(--teaching-colour, #8a6d1d);
  color: #fff;
}

.lecture-btn[hidden] {
  display: none;
}

.lecture-voisins {
  display: flex;
  gap: 12px;
}

.lecture-voisins > * {
  flex: 1;
  min-width: 0;
}

.lecture-voisin {
  display: block;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.lecture-voisin:hover {
  border-color: var(--teaching-colour, #8a6d1d);
}

.lecture-voisin small {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8rem;
  color: var(--teaching-colour, #8a6d1d);
}

.lecture-voisin span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lecture-voisin--suivant {
  text-align: right;
}

.lecture-source {
  margin: 24px 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
}

.lecture-source a {
  color: var(--teaching-colour, #8a6d1d);
}

@media (max-width: 600px) {
  .lecture-entete h1 {
    font-size: 1.5rem;
  }
  .lecture-voisins {
    flex-direction: column;
  }
  .lecture-voisin--suivant {
    text-align: left;
  }
}
