/**
 * Polish layer, module "fixes" (docs.ia/build/polish-design.md §16.2,
 * design §8.9). X1, X2, X6, X7: baseline defect corrections that are not in
 * a module above (R5's CSS rule was removed, commit f060a15 — R5 is now a
 * database migration, build/migrate-inline-format.php, not a module). Needs
 * the base module (tokens).
 */

/* X6: empty column (F6) collapses below 782px instead of a blank gap. */
@media (max-width: 781px) {
	.wp-block-column:not(:has(*)) {
		display: none;
	}
}
/* X1: home hero text column has no right padding at 375px; !important
   beats the block's inline padding (every side but padding-right). */
@media (max-width: 781px) {
	.home main > .wp-block-group.alignfull:first-child .wp-block-column:first-child {
		padding-right: var(--wp--preset--spacing--3-xl) !important;
	}
}

/* X7: service hero with no featured image (service 2133) — the empty column
   hides at every width, unlike X6's mobile-only default. */
.single-servicio main > .wp-block-group.alignfull:first-child .wp-block-column:not(:has(*)) {
	display: none;
}

/* X2: a long search term must not overflow the query title. */
h1.wp-block-query-title {
	overflow-wrap: anywhere;
}
