/* QA Media — W8.3 q-ladder comparison (1:1, no CSS scale) */
.ax-qa-media {
	--ax-qa-ink: #141833;
	--ax-qa-paper: #f4f1eb;
	--ax-qa-steel: #86a0c6;
	--ax-qa-line: rgba(244, 241, 235, 0.18);
	background: var(--ax-qa-ink);
	color: var(--ax-qa-paper);
	padding: 32px 20px 80px;
	min-height: 60vh;
}
.ax-qa-media__intro {
	max-width: 72ch;
	margin: 0 0 40px;
}
.ax-qa-media__kicker {
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ax-qa-steel);
}
.ax-qa-media__title {
	margin: 0 0 12px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 600;
	line-height: 1.15;
}
.ax-qa-media__lead {
	margin: 0;
	line-height: 1.55;
	color: rgba(244, 241, 235, 0.78);
}
.ax-qa-media__class {
	margin: 48px 0 64px;
}
.ax-qa-media__class-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 600;
}
.ax-qa-media__class-note {
	margin: 0 0 28px;
	max-width: 72ch;
	color: rgba(244, 241, 235, 0.7);
	line-height: 1.5;
}
.ax-qa-media__sample {
	margin: 0 0 40px;
}
.ax-qa-media__sample-head {
	margin: 0 0 12px;
}
.ax-qa-media__sample-title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 600;
}
.ax-qa-media__sample-meta {
	margin: 0;
	font-size: 12px;
	color: var(--ax-qa-steel);
}
.ax-qa-media__row {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 8px 4px 20px;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	border-top: 1px solid var(--ax-qa-line);
	border-bottom: 1px solid var(--ax-qa-line);
}
.ax-qa-media__variant {
	margin: 0;
	flex: 0 0 auto;
	scroll-snap-align: start;
	cursor: zoom-in;
	outline: none;
}
.ax-qa-media__variant:focus-visible {
	box-shadow: 0 0 0 2px var(--ax-qa-steel);
}
.ax-qa-media__frame {
	/* Explicit pixel width = image natural width; never max-width:100% */
	max-width: none;
	line-height: 0;
	background: #0c0f1f;
}
.ax-qa-media__frame img {
	display: block;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	image-rendering: auto;
}
.ax-qa-media__cap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: rgba(244, 241, 235, 0.75);
}
.ax-qa-media__cap-fmt {
	color: var(--ax-qa-paper);
	font-weight: 600;
}
.ax-qa-media__cap-q {
	color: var(--ax-qa-steel);
}
.ax-qa-media__empty {
	padding: 24px;
	border: 1px dashed var(--ax-qa-line);
}
.ax-qa-media__empty code {
	color: var(--ax-qa-steel);
}

/* Fullscreen dialog */
.ax-qa-media__fs {
	border: 0;
	padding: 0;
	margin: 0;
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	background: #05070f;
	color: var(--ax-qa-paper);
}
.ax-qa-media__fs::backdrop {
	background: rgba(5, 7, 15, 0.92);
}
.ax-qa-media__fs[open] {
	display: flex;
	flex-direction: column;
}
.ax-qa-media__fs-close {
	position: fixed;
	top: 12px;
	right: 16px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 0;
	background: rgba(244, 241, 235, 0.12);
	color: var(--ax-qa-paper);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.ax-qa-media__fs-stage {
	flex: 1;
	overflow: auto;
	display: grid;
	place-items: start center;
	padding: 56px 20px 24px;
}
.ax-qa-media__fs-img {
	display: block;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
}
.ax-qa-media__fs-cap {
	margin: 0;
	padding: 12px 20px 20px;
	text-align: center;
	font-size: 13px;
	color: rgba(244, 241, 235, 0.8);
}
