.nomoscopia-annotations-control {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 1.25rem;
	font-family: "TeX Gyre Adventor", Arial, sans-serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.25 !important;
	color: #716565 !important;
}

.nomoscopia-annotations-control-label {
	margin-right: 0.45rem;
}

.nomoscopia-annotations-mode {
	position: relative;
	padding: 0;
	border: 0;
	background: transparent;
	color: #716565 !important;
	font: inherit !important;
	line-height: inherit !important;
	cursor: pointer;
	opacity: 1;
	text-decoration: none !important;
}

.nomoscopia-annotations-mode + .nomoscopia-annotations-mode {
	margin-left: 0.42rem;
	padding-left: 0.62rem;
}

.nomoscopia-annotations-mode + .nomoscopia-annotations-mode::before {
	content: "·";
	position: absolute;
	left: 0;
	color: #716565;
}

.nomoscopia-annotations-mode[aria-pressed="true"] {
	color: #000000 !important;
	opacity: 1;
	text-decoration: none !important;
}

.nomoscopia-annotations-meta-host {
	position: relative;
}

.nomoscopia-annotations-meta-host > .nomoscopia-annotations-control {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
}

.nomoscopia-link-annotated,
.nomoscopia-link-annotated:visited,
.nomoscopia-link-annotated:hover,
.nomoscopia-link-annotated:focus,
.nomoscopia-link-annotated:focus-visible {
	color: var(--nomoscopia-original-link-color) !important;
	text-decoration: none !important;
	text-decoration-line: none !important;
}

/* Les encadrements restent au-dessus de tous les autres tracés RN imbriqués. */
svg.rough-annotation.nomoscopia-annotation-layer-box {
	z-index: 30 !important;
}

/* Titres cliquables : aucun trait, sauf les exceptions laissées au thème. */
a.nomoscopia-title-no-underline,
a.nomoscopia-title-no-underline:visited,
a.nomoscopia-title-no-underline:hover,
a.nomoscopia-title-no-underline:focus,
a.nomoscopia-title-no-underline:focus-visible {
	text-decoration: none !important;
	text-decoration-line: none !important;
}

/* Le texte du titre conserve sa couleur pendant le tracé RN au survol. */
a.nomoscopia-title-hover-annotated,
a.nomoscopia-title-hover-annotated:visited,
a.nomoscopia-title-hover-annotated:hover,
a.nomoscopia-title-hover-annotated:focus,
a.nomoscopia-title-hover-annotated:focus-visible {
	color: var(--nomoscopia-original-title-color, #000000) !important;
}

/* « Tout masquer » : les SVG RN cèdent la place aux traits WordPress. */
body.nomoscopia-native-link-mode a.nomoscopia-link-annotated,
body.nomoscopia-native-link-mode a.nomoscopia-link-annotated:visited,
body.nomoscopia-native-link-mode a.nomoscopia-link-annotated:hover,
body.nomoscopia-native-link-mode a.nomoscopia-link-annotated:focus,
body.nomoscopia-native-link-mode a.nomoscopia-link-annotated:focus-visible {
	text-decoration: underline !important;
	text-decoration-line: underline !important;
}

body.nomoscopia-native-link-mode a.nomoscopia-title-hover-annotated,
body.nomoscopia-native-link-mode a.nomoscopia-title-hover-annotated:visited {
	text-decoration: none !important;
	text-decoration-line: none !important;
}

body.nomoscopia-native-link-mode a.nomoscopia-title-hover-annotated:hover,
body.nomoscopia-native-link-mode a.nomoscopia-title-hover-annotated:focus-visible {
	text-decoration: underline !important;
	text-decoration-line: underline !important;
}

.nomoscopia-annotations-mode:hover,
.nomoscopia-annotations-mode:focus-visible {
	color: #000000 !important;
	opacity: 1;
	text-decoration: none !important;
}

.nomoscopia-annotations-mode:focus-visible {
	outline: 2px solid #00ffff;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.nomoscopia-annotations-meta-host > .nomoscopia-annotations-control {
		position: static;
		justify-content: flex-end;
		transform: none;
		margin-top: 0.5rem;
	}
}

/*
 * Citations : représentation sobre lorsque les annotations sont masquées.
 * La couleur transparente conserve exactement le même retrait lorsque les
 * crochets RoughNotation remplacent visuellement le trait vertical.
 */
html body.single-post blockquote,
html body.single-post .wp-block-quote {
	border-left-color: #bababa !important;
}

html body.single-post.nomoscopia-quotes-bracketed blockquote,
html body.single-post.nomoscopia-quotes-bracketed .wp-block-quote {
	border-left-color: transparent !important;
}

/*
 * Cible interne des crochets de citation. Elle exclut les retraits propres au
 * blockquote tout en réunissant le texte et sa légende dans un même tracé.
 */
html body.single-post blockquote > .nomoscopia-quote-content {
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
}
