/* Graphic widget: the inline SVG fills its column at its viewBox's aspect ratio (no width/height). */
.qo-graphic svg {
	display: block;
	width: 100%;
	height: auto;
}

/*
 * Graphics with a narrow variant (<name>-mobile.svg): show it when the widget itself is under
 * 480px wide (phones, narrow tablet columns). Half-width desktop columns keep the wide layout
 * (Brett, 2026-11-10), at the cost of smaller labels there (about 9px at 600px). The hidden copy is display: none, so it's out of the accessibility
 * tree and its animations don't run. The narrow layout is tall, so it's capped and centered.
 */
.qo-graphic--responsive {
	container-type: inline-size;
}

.qo-graphic__narrow {
	display: none;
}

.qo-graphic__narrow svg {
	max-width: 28rem;
	margin-inline: auto;
}

@container (max-width: 479px) {
	.qo-graphic__wide {
		display: none;
	}

	.qo-graphic__narrow {
		display: block;
	}
}
