/* ==========================================================================
   Votre appareil & statistiques visiteurs — mise en page
   --------------------------------------------------------------------------
   Les couleurs dérivent de la couleur du texte du style (currentColor) :
   le bloc s'adapte donc tout seul au thème clair comme au thème sombre.
   Pour forcer des couleurs précises, voir devicestats_colors.css.
   ========================================================================== */

.devicestats {
	clear: both;
	margin: 10px 0;
	padding: 8px 12px;
	border-radius: var(--devicestats-radius, 7px);

	/* Repli pour navigateurs anciens */
	border: 1px solid rgba(128, 128, 128, 0.3);
	background-color: rgba(128, 128, 128, 0.08);

	/* Navigateurs récents : teintes calculées à partir du texte du thème */
	border-color: var(--devicestats-border, color-mix(in srgb, currentColor 22%, transparent));
	background-color: var(--devicestats-bg, color-mix(in srgb, currentColor 6%, transparent));
}

.devicestats .devicestats-title {
	margin: 0 0 5px;
	padding: 0;
	border: 0;
	font-size: 1.1em;
	font-weight: normal;
	text-transform: none;
}

.devicestats-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	font-size: 1em;
	line-height: 1.5;
}

.devicestats-group {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}

.devicestats-item {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	white-space: nowrap;
}

.devicestats-item .icon {
	font-size: 1.1em;
	opacity: 0.85;
	color: var(--devicestats-icon, inherit);
}

.devicestats-os-version:not(:empty) {
	margin-left: 0.3em;
}

.devicestats-label {
	opacity: var(--devicestats-label-opacity, 0.85);
}

.devicestats-zero {
	opacity: 0.6;
}

.devicestats .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 700px) {
	.devicestats-line {
		flex-direction: column;
		align-items: flex-start;
	}
}
