/* Conteneur de la définition */
.index-item {
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  background-color: var(--source-color-white-transparent) !important;
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  box-shadow: var(--shadow-z2);
}
/* Titre du Terme */
.index-item h3 {
  margin-bottom: var(--space-md);
}
/* Source/Lien (discret) */
.index-source {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-veganism-index-source);
  color: var(--color-index-source);
  text-decoration: underline;
}
.index-source::before {
  content: "";
  background-image: url("/asset/img/gl/hand-pointer-2.svg");
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: calc(4 / 16 * 1rem);
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}
.index-source:hover {
  font-weight: var(--fw-bold);
  filter: brightness(1.2);
}
.toc-definition {
  margin-bottom: var(--space-lg);
}
.toc-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  column-width: 150px;
  column-gap: var(--space-md);
}
.toc-list li {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
}
.toc-list a {
  display: block;
  text-decoration: none;
  font-weight: var(--fw-bold);
  white-space: nowrap;
  background-color: #ffffff;
  color: #000000;
  padding: calc(4 / 16 * 1rem) calc(6 / 16 * 1rem);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-z2);
}
.toc-list a:hover {
  background-color: #ededed;
  color: #000000;
}
/* Annule la marge sous la dernière définition */
.index-item:last-of-type {
  margin-bottom: 0 !important;
}
/* === MODE SOMBRE === */
html[data-theme="dark"] .index-item {
  background-color: #222222 !important;
}
html[data-theme="dark"] .index-item h2 {
  color: var(--color-dark-mode-title);
  font-weight: var(--fw-normal);
}
html[data-theme="dark"] .index-source {
  color: #ff7777;
}
html[data-theme="dark"] .index-source::before {
  background-image: url("/asset/img/gl/hand-pointer-2-dark.svg");
}
html[data-theme="dark"] .toc-list a {
  background-color: #000000;
  color: #ffffff;
  font-weight: var(--fw-normal);
}
html[data-theme="dark"] .toc-list a:hover {
  background-color: #333333;
  color: #ffffff;
}