/**
 * «¿Real o IA?» (efeoncepro/real-or-ai). Front end and editor.
 * A paper panel; one card per image with two choices; the answers closed until the reader asks for the result
 * (.is-ready:not(.is-graded)). Without the view script each card shows «Ver respuesta». AXIS values: paper #f7f8f6 ·
 * navy #023c70 · ink-soft #6d6777 · ground #001a33; accent = line of the topic, in the selected choice ring, the
 * correct mark and the benchmark figure (≥ 24 px). Never <aside> (Ohio hides it in posts); own links are -unlink -undash.
 */

.eo-roa {
	--eo-r-ink: #023c70;
	--eo-r-soft: #6d6777;
	--eo-r-paper: #f7f8f6;
	--eo-r-card: #ffffff;
	--eo-r-line: rgba(2, 60, 112, 0.16);
	--eo-r-acc: var(--eo-line-on-light, #0375db);
}

.dark-scheme .eo-roa {
	--eo-r-ink: #ffffff;
	--eo-r-soft: #cfe4fa;
	--eo-r-paper: #001a33;
	--eo-r-card: rgba(255, 255, 255, 0.06);
	--eo-r-line: rgba(255, 255, 255, 0.14);
	--eo-r-acc: var(--eo-line-on-dark, #0375db);
}

.eo-roa.eo-roa {
	clear: both;
	box-sizing: border-box;
	margin: 48px 0;
	padding: clamp(20px, 3.2vw, 36px);
	border: 1px solid var(--eo-r-line);
	border-radius: 24px;
	background: var(--eo-r-paper);
	color: var(--eo-r-ink);
	font-family: "Poppins", system-ui, sans-serif;
}

.eo-roa.eo-roa p {
	margin: 0;
	font-family: "Poppins", system-ui, sans-serif;
}

.eo-roa.eo-roa .eo-roa__title {
	margin: 0 0 8px;
	font-family: "Bricolage Grotesque", system-ui, sans-serif;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.eo-roa.eo-roa .eo-roa__intro {
	margin: 0 0 24px;
	color: var(--eo-r-soft);
	font-size: 15px;
	line-height: 1.5;
}

.eo-roa.eo-roa .eo-roa__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.eo-roa.eo-roa .eo-roa__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eo-roa.eo-roa .eo-roa__item::before,
.eo-roa.eo-roa .eo-roa__item::marker {
	content: none;
}

.eo-roa .eo-roa__q {
	box-sizing: border-box;
	height: 100%;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--eo-r-line);
	border-radius: 16px;
	background: var(--eo-r-card);
	min-inline-size: 0;
}

.eo-roa .is-correct .eo-roa__q {
	border-color: var(--eo-r-acc);
	box-shadow: inset 0 0 0 1px var(--eo-r-acc);
}

.eo-roa .is-wrong .eo-roa__q {
	border-style: dashed;
	border-color: var(--eo-r-soft);
}

.eo-roa .eo-roa__legend {
	float: left;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	color: var(--eo-r-soft);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.eo-roa .eo-roa__frame {
	clear: both;
	overflow: hidden;
	border-radius: 10px;
	aspect-ratio: 4 / 5;
}

.eo-roa.eo-roa .eo-roa__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.eo-roa .eo-roa__choices {
	display: grid;
	gap: 6px;
	margin: 12px 0 0;
}

.eo-roa .eo-roa__choice {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	cursor: pointer;
}

/* The native radio stays (focus, keyboard, form semantics), drawn as the edge of the choice. */
.eo-roa .eo-roa__choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.eo-roa .eo-roa__choice span {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--eo-r-line);
	border-radius: 9999px;
	color: var(--eo-r-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.eo-roa .eo-roa__choice span::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	border: 2px solid var(--eo-r-soft);
	border-radius: 50%;
	box-sizing: border-box;
}

.eo-roa .eo-roa__choice input:checked + span {
	border-color: var(--eo-r-acc);
	box-shadow: inset 0 0 0 1px var(--eo-r-acc);
	font-weight: 600;
}

.eo-roa .eo-roa__choice input:checked + span::before {
	border: 4px solid var(--eo-r-acc);
}

.eo-roa .eo-roa__choice input:focus-visible + span {
	outline: 3px solid var(--eo-r-acc);
	outline-offset: 2px;
}

.eo-roa .eo-roa__choice input:disabled,
.eo-roa .eo-roa__choice input:disabled + span {
	cursor: default;
}

.eo-roa .eo-roa__reveal {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.5;
}

.eo-roa .eo-roa__reveal summary {
	min-height: 32px;
	color: var(--eo-r-ink);
	font-weight: 600;
	cursor: pointer;
}

.eo-roa.eo-roa .eo-roa__reveal p {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
}

.eo-roa.eo-roa .eo-roa__credit {
	color: var(--eo-r-soft);
	font-size: 12px;
}

.eo-roa.eo-roa .eo-roa__mark {
	font-weight: 600;
}

/* With the script, answers wait for the result. */
.eo-roa.is-ready:not(.is-graded) .eo-roa__reveal {
	display: none;
}

.eo-roa.is-graded .eo-roa__reveal summary {
	display: none;
}

.eo-roa .eo-roa__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 24px 0 0;
}

.eo-roa .eo-roa__actions[hidden],
.eo-roa .eo-roa__btn[hidden],
.eo-roa [hidden] {
	display: none !important;
}

.eo-roa .eo-roa__btn {
	min-height: 48px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 9999px;
	background: #023c70;
	color: #ffffff;
	font: 600 15px/1 "Poppins", system-ui, sans-serif;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.dark-scheme .eo-roa .eo-roa__btn {
	background: #ffffff;
	color: #023c70;
}

.eo-roa .eo-roa__btn--ghost,
.dark-scheme .eo-roa .eo-roa__btn--ghost {
	border: 1px solid var(--eo-r-line);
	background: transparent;
	color: var(--eo-r-ink);
}

.eo-roa .eo-roa__btn:focus-visible {
	outline: 3px solid var(--eo-r-acc);
	outline-offset: 2px;
}

.eo-roa.eo-roa .eo-roa__count {
	color: var(--eo-r-soft);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.eo-roa .eo-roa__result {
	margin: 24px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--eo-r-line);
}

.eo-roa.eo-roa .eo-roa__score {
	margin: 0 0 12px;
	font-family: "Bricolage Grotesque", system-ui, sans-serif;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 700;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}

.eo-roa.eo-roa .eo-roa__bench {
	font-size: 16px;
	line-height: 1.5;
}

.eo-roa .eo-roa__bench-value {
	margin-right: 4px;
	color: var(--eo-r-acc);
	font-family: "Bricolage Grotesque", system-ui, sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.eo-roa.eo-roa .eo-roa__source,
.eo-roa.eo-roa .eo-roa__last {
	margin: 8px 0 0;
	color: var(--eo-r-soft);
	font-size: 13px;
	line-height: 1.5;
}

.eo-roa .eo-roa__source a,
.eo-roa .eo-roa__source a:hover,
.eo-roa .eo-roa__source a:focus-visible {
	background-image: none !important;
	color: var(--eo-r-ink) !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
