/*
Theme Name: Isumar
Text Domain: isumar
Version: 0.2.14
Description: Tema de bloques para una publicación de fichas y cifras de proyectos de energía y minería.
Requires at least: 7.0
Requires PHP: 8.1
Update URI: false
*/

:where(body) {
	font-variant-numeric: lining-nums;
	hyphens: manual;
	overflow-wrap: anywhere;
}

:where(a:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

:where(a:not(.wp-element-button)):hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--pozo);
	outline-offset: 3px;
}

::selection {
	background: var(--wp--preset--color--arcilla);
}

.wp-site-blocks h1 {
	font-size: var(--wp--preset--font-size--titular);
}

.wp-site-blocks h2 {
	font-size: var(--wp--preset--font-size--subtitulo);
	font-weight: 600;
}

.wp-site-blocks h3 {
	font-weight: 600;
}

.wp-block-site-title {
	font-family: var(--wp--preset--font-family--placa);
	font-size: var(--wp--preset--font-size--subtitulo);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.wp-block-separator {
	border-color: var(--wp--preset--color--veta);
}

.wp-element-button {
	border-radius: 0;
	font-family: var(--wp--preset--font-family--placa);
	font-weight: 600;
	text-transform: uppercase;
}

.ficha-salto {
	background: var(--wp--preset--color--legajo);
	border: 2px solid var(--wp--preset--color--grafito);
	color: var(--wp--preset--color--grafito);
	font-family: var(--wp--preset--font-family--placa);
	font-weight: 600;
	left: var(--wp--preset--spacing--fila);
	padding: var(--wp--preset--spacing--hoja) var(--wp--preset--spacing--fila);
	position: absolute;
	top: -10rem;
	z-index: 100000;
}

.ficha-salto:focus {
	top: var(--wp--preset--spacing--fila);
}

.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4 {
	scroll-margin-top: var(--wp--preset--spacing--cuenca);
}

#contenido:focus {
	outline: none;
}

/* Marca «Espejo»: decorativa, vía CSS; el nombre sigue como texto en wp:site-title.
   El SVG usa los mismos #2d2010 / #824103 de grafito y cobre. */
.ficha-membrete {
	align-items: center;
	gap: var(--wp--preset--spacing--hoja);
}

.ficha-membrete .wp-block-site-title a {
	align-items: center;
	display: flex;
	gap: var(--wp--preset--spacing--hoja);
}

.ficha-membrete .wp-block-site-title a::before,
.ficha-pie__marca::before {
	background: url("assets/brand/espejo.svg") center / contain no-repeat;
	content: "";
	display: block;
	flex: none;
	height: 40px;
	width: 40px;
}

.ficha-pie__marca::before {
	height: 64px;
	margin-block-end: var(--wp--preset--spacing--fila);
	width: 64px;
}

@media (max-width: 599px) {
	.ficha-membrete .wp-block-site-title a::before {
		height: 30px;
		width: 30px;
	}
}

/* Línea «generada con IA» bajo una imagen (inc/leyenda-ia.php): pequeña, en su propia línea y ajustada al ancho de la figura. */
.leyenda-ia {
	color: var(--wp--preset--color--pizarra);
	font-size: var(--wp--preset--font-size--rotulo);
	line-height: 1.4;
	margin: var(--wp--preset--spacing--grano) 0 0;
	overflow-wrap: anywhere;
}

figcaption > .leyenda-ia {
	display: block;
}

/* Cabecera en el teléfono (menos de 600 px, donde el menú pasa a botón): una sola fila. Se ocultan la línea de presentación y el buscador
   (la búsqueda queda en el menú abierto, enlace «Buscar»); el membrete y el botón del menú comparten fila, el botón mide 44 px. */
.ficha-pestanas .ficha-pestanas__buscar {
	display: none;
}

.ficha-pestanas .is-menu-open .ficha-pestanas__buscar,
.ficha-pestanas.is-menu-open .ficha-pestanas__buscar {
	display: list-item;
}

@media (max-width: 37.4375rem) {
	.wp-block-group.ficha-cabecera {
		padding-block: 0.125rem 0.625rem;
	}

	.ficha-cabecera .ficha-cabecera__aviso {
		display: none;
	}

	.ficha-cabecera .ficha-cabecera__barra {
		align-items: center;
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--hoja);
		justify-content: space-between;
		margin-block-start: 0;
	}

	.ficha-cabecera .wp-block-site-title {
		font-size: clamp(1.125rem, 6vw, 1.4375rem);
		line-height: 1.1;
		margin: 0;
	}

	.ficha-cabecera .wp-block-navigation__responsive-container-open {
		min-height: 2.75rem;
		min-width: 2.75rem;
	}
}
