/* Grille a 2 lignes : ligne 1 = le tablist (place tout seul en 1/1),
   ligne 2 = le verset ouvert. Seul le panneau visible occupe cette ligne :
   la hauteur du <li> suit donc le verset affiche, sans espace reserve pour
   les autres onglets (changer d'onglet peut decaler le contenu plus bas).
   C'est un <div> et non un <p> : un <details> (le commentaire, un par
   panneau) fermerait le <p> et sortirait de son onglet. */
li > div { margin: 0 0 1em; padding: .5em .75em .5em 1em; display: grid; }
li > div > [role=tabpanel] { grid-area: 2 / 1; }

/* Un seul arc-en-ciel continu : le point d'introduction est dans un corail
   clair, puis chaque point reprend une teinte de la gamme, de l'orange
   (point 2) au bleu-violet (point 23). La saturation et la luminosite
   restent constantes pour que le passage d'un point a l'autre soit doux.
   Les points 2 a 5, 8 a 10, 11 et 12, 13 et 14, 15 a 17, 18 a 20, et 21 et 22
   se touchent ; les autres sont separes par un petit espace. */
.groupe-0 { background: #f4c0af; margin-bottom: .4em; }
.groupe-1 { background: #f4cfaf; margin-bottom: 0; }
.groupe-1-clair { background: #f4daaf; margin-bottom: 0; }
.degrade-1a { background: #f4e0af; margin-bottom: 0; }
.degrade-1, .degrade-2, .degrade-3, .degrade-4, .degrade-5 {
  margin-bottom: 0;
  background: var(--fond);
}
.degrade-1 { --fond: #f4e6af; margin-bottom: .4em; }
.degrade-2 { --fond: #f4efaf; margin-bottom: .4em; }
.degrade-2a { background: #f3f1af; margin-bottom: 0; }
.degrade-2b { background: #f2f2af; margin-bottom: .4em; }
.degrade-3 { --fond: #eff4af; margin-bottom: 0; }
.degrade-3b { background: #ebf4af; margin-bottom: 0; }
.degrade-3c { background: #e8f4af; margin-bottom: 0; }
.degrade-3d { background: #e7f4af; margin-bottom: .4em; }
.degrade-4 { --fond: #e6f4af; }
.degrade-5 { --fond: #ddf4af; margin-bottom: .4em; }
.degrade-vert-1 { background: #c6f4af; margin-bottom: 0; }
.degrade-vert-1-pre { background: #c3f4b0; margin-bottom: .4em; }
.degrade-vert-1a { background: #c0f4b0; margin-bottom: 0; }
.degrade-vert-1b { background: #baf4b1; margin-bottom: 0; }
.degrade-vert-1c { background: #aff4c4; margin-bottom: .4em; }
.degrade-vert-2 { background: #aff4b4; margin-bottom: 0; }
.groupe-cyan { background: #aff4e2; margin-bottom: 0; }
.degrade-bleu-1 { background: #afeef4; margin-bottom: .4em; }
.degrade-bleu-2 { background: #afddf4; margin-bottom: 0; }
.degrade-bleu-2b { background: #afd4f4; margin-bottom: 0; }
.degrade-bleu-2c { background: #afcff4; margin-bottom: .4em; }
.degrade-bleu-2d { background: #afcdf4; margin-bottom: 0; }
.degrade-bleu-3 { background: #afcbf4; margin-bottom: .4em; }
.degrade-bleu-4 { background: #afbaf4; margin-bottom: .4em; }

/* Petit espace apres un point, avant le suivant. */
.espace-court { margin-bottom: .4em; }

/* Le libelle du commentaire est en italique. */
summary { font-style: italic; }

/* Un commentaire REPLIE ne doit occuper aucune place dans la page :
   seule reste la ligne "commentaire". */
details:not([open]) > :not(summary) { display: none; }
details:not([open])::details-content { content-visibility: hidden; }

/* Onglets : on annule l'aspect par defaut d'un lien (bleu + souligne),
   et on grise ceux qui ne sont pas ouverts (l'onglet actif reste noir). */
[role=tab] { color: inherit; text-decoration: none; }
[role=tab]:not([aria-selected=true]) { color: #808080; }

.underline-details { text-decoration: underline;}
