/* Rumboa — estilos globales que theme.json no cubre. Todos los valores salen de los tokens. */

/* Foco visible para navegación con teclado */
:where(a, button, summary, input, select, textarea, .wp-element-button):focus-visible {
	outline: var(--wp--custom--border-width--emphasis) solid var(--wp--preset--color--border-interactive);
	outline-offset: 2px;
}

/* Imágenes nunca desbordan */
img {
	max-width: 100%;
	height: auto;
}

/* Header */
.rumboa-header__logo-name {
	margin: 0;
	font-size: 40px;
	line-height: 1;
	font-weight: 800;
	color: var(--wp--preset--color--brand-primary);
	letter-spacing: -0.02em;
}
.rumboa-header__logo-tag {
	margin: 0;
	font-size: 10px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--wp--preset--color--brand-primary);
}
.rumboa-divider {
	height: 8px;
	margin: 0;
	background: var(--wp--preset--color--disabled-surface);
}

/* Acordeón (core/details) */
.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--wp--preset--spacing--sm);
	color: var(--wp--preset--color--text-primary);
}
.wp-block-details summary::-webkit-details-marker {
	display: none;
}
.wp-block-details summary::after {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: var(--wp--custom--radius--circular);
	background: var(--wp--preset--color--surface-icon)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23365C91' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform 0.2s ease;
}
.wp-block-details[open] summary::after {
	transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}
