/**
 * AIFORYA Table of Contents — style public du sommaire.
 *
 * Neutre et discret, pensé pour s'intégrer à n'importe quel thème.
 * N'utilise PAS la palette sombre de l'administration.
 */

.aiforya-toc {
	margin: 1.5em 0;
	padding: 1em 1.25em;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	border-radius: 8px;
	background: rgba( 0, 0, 0, 0.02 );
	font-size: 0.95em;
	line-height: 1.5;
}

.aiforya-toc-title {
	margin: 0 0 0.5em;
	font-weight: 700;
	font-size: 1em;
	text-transform: none;
	letter-spacing: 0;
}

.aiforya-toc-list,
.aiforya-toc-sublist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aiforya-toc-list {
	padding-left: 0;
}

.aiforya-toc-sublist {
	padding-left: 1.1em;
	margin-top: 0.25em;
}

.aiforya-toc-item {
	margin: 0.3em 0;
}

.aiforya-toc a {
	text-decoration: none;
	border-bottom: 1px solid transparent;
	color: inherit;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.aiforya-toc a:hover,
.aiforya-toc a:focus {
	border-bottom-color: currentColor;
	opacity: 0.85;
}

/* Ancres d'alias du cadastre — les anciennes adresses d'une section.
   Elles doivent être ATTEIGNABLES et INVISIBLES : un <span> vide ne prend déjà aucune place,
   mais un thème qui applique un `display` ou un `content` aux `span` génériques pourrait en
   faire apparaître un. On le neutralise explicitement plutôt que de compter sur la chance. */
.aiforya-toc-alias {
	display: inline;
	width: 0;
	height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	font-size: 0;
	line-height: 0;
}

.aiforya-toc-alias::before,
.aiforya-toc-alias::after {
	content: none;
}
