/**
 * Sommaire ODP ToC — rendu public.
 *
 * Les valeurs reproduisent celles de l’ancien plugin au pixel près ; seuls les
 * noms de classes changent (préfixe `odp-toc`). Le fichier reste volontairement
 * petit : pas de dépendance, pas de sélecteur inutile, et aucune couleur de
 * lien n’est imposée tant que le schéma « hériter du thème » est choisi.
 */

.odp-toc {
	margin: 32px 0;
}

.odp-toc:first-child {
	margin-top: 16px;
}

.odp-toc-i {
	box-sizing: border-box;
	padding: 14px 18px 18px;
	text-align: left;
}

.odp-toc-header {
	margin-bottom: 6px;
}

.rtl .odp-toc-header {
	text-align: right;
}

.odp-toc-title {
	font-weight: 700;
}

.odp-toc-toggle {
	margin-left: 4px;
	white-space: nowrap;
	font-size: 80%;
}

.rtl .odp-toc-toggle {
	margin-right: 4px;
	margin-left: 0;
}

.odp-toc-toggle::before {
	content: "[";
}

.odp-toc-toggle::after {
	content: "]";
}

.odp-toc-toggle-label {
	margin: 0 1px;
}

.odp-toc-items {
	/* La taille des entrées est posée en style en ligne par le PHP. */
	line-height: inherit;
}

.odp-toc-item {
	margin-top: 2px;
}

.rtl .odp-toc-item {
	text-align: right;
}

.odp-toc-item:first-child {
	margin-top: 0;
}

.odp-toc-item-number {
	margin-right: 2px;
}

.rtl .odp-toc-item-number {
	margin-right: 0;
	margin-left: 2px;
}

.odp-toc-itemWrap .odp-toc-itemWrap {
	margin: 2px 0 0 14px;
}

.rtl .odp-toc-itemWrap .odp-toc-itemWrap {
	margin-right: 14px;
	margin-left: 0;
}

/* Largeur ajustée au contenu : le bloc se réduit à la longueur des entrées. */
.odp-toc-autoWidth .odp-toc-i {
	display: inline-block;
	max-width: 100%;
}

/* Alignements. */
.odp-toc-left {
	float: left;
	margin-top: 0;
	margin-right: 32px;
}

.odp-toc-right {
	float: right;
	margin-top: 0;
	margin-left: 32px;
}

.odp-toc-rightwithoutflow {
	text-align: right;
}

.odp-toc-rightwithoutflow .odp-toc-i {
	display: inline-block;
}

.odp-toc-center {
	text-align: center;
}

.odp-toc-center .odp-toc-i {
	display: inline-block;
	margin-right: auto;
	margin-left: auto;
}

/* Schémas de couleurs : seuls ceux qui ne viennent pas du thème sont stylés. */
.odp-toc-notInherit .odp-toc-i div a,
.odp-toc-notInherit .odp-toc-i div a:active,
.odp-toc-notInherit .odp-toc-i div a:focus,
.odp-toc-notInherit .odp-toc-i div a:hover {
	border: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.odp-toc-notInherit .odp-toc-i div a:hover {
	border-bottom: 1px dotted !important;
}

.odp-toc-light .odp-toc-i {
	color: #333;
	background: #fafafa;
}

.odp-toc-light .odp-toc-i a {
	color: #3175e4;
}

.odp-toc-light .odp-toc-i a:active,
.odp-toc-light .odp-toc-i a:focus,
.odp-toc-light .odp-toc-i a:hover {
	color: #3175e4;
	border-color: #3175e4;
}

.odp-toc-light .odp-toc-items a:visited {
	color: #000394;
}

.odp-toc-dark .odp-toc-i {
	color: #d3d5d8;
	background: #2b2b2b;
}

.odp-toc-dark .odp-toc-i a {
	color: #96c6ff;
}

.odp-toc-dark .odp-toc-i a:active,
.odp-toc-dark .odp-toc-i a:focus,
.odp-toc-dark .odp-toc-i a:hover {
	color: #96c6ff;
	border-color: #71b2ff;
}

.odp-toc-dark .odp-toc-items a:visited {
	color: #53a1ff;
}

.odp-toc-white .odp-toc-i {
	color: #333;
	background: #fff;
}

.odp-toc-white .odp-toc-i a {
	color: #3175e4;
}

.odp-toc-white .odp-toc-i a:active,
.odp-toc-white .odp-toc-i a:focus,
.odp-toc-white .odp-toc-i a:hover {
	color: #3175e4;
	border-color: #3175e4;
}

.odp-toc-white .odp-toc-items a:visited {
	color: #000394;
}

.odp-toc-transparent .odp-toc-i {
	border: 1px solid #eee;
}

@media print {
	.odp-toc-items {
		display: block !important;
		height: auto !important;
	}

	.odp-toc-toggle {
		display: none;
	}
}
