/*
Theme Name: WYXR Child Theme
Theme URI: https://example.com/themes/wyxr
Description: Child theme extending Twenty Twenty-Five with Tailwind CSS tooling for WYXR.
Author: WYXR
Author URI: https://example.com
Version: 0.1.0
Requires at least: 6.8
Requires PHP: 7.4
Template: twentytwentyfive
Text Domain: wyxr
*/

/* Place small overrides here if they do not justify the build pipeline. */
 

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
 a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 0px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/* Homepage three-column taglines (e.g. "Memphis is Our Format") */
.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns {
	container-type: inline-size;
}

.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns > .wp-block-column.has-pale-green-background-color {
	container-type: inline-size;
}

@container (max-width: 13rem) {
	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns > .wp-block-column.has-pale-green-background-color > .wp-block-heading.has-xx-large-font-size {
		font-size: clamp(1.2rem, 11cqi, 2.15rem);
		line-height: 1.15;
		text-wrap: balance;
	}
}

/* Wide: 3 columns. One breakpoint earlier → dominant row + 2-col row. */
@media (max-width: 1024px) {
	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns {
		flex-wrap: wrap !important;
		gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20) !important;
	}

	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns > .wp-block-column:first-child {
		flex: 1 1 100% !important;
		max-width: 100%;
	}

	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns > .wp-block-column:nth-child(2),
	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns > .wp-block-column:nth-child(3) {
		flex: 1 1 calc(50% - var(--wp--preset--spacing--20)) !important;
		max-width: calc(50% - var(--wp--preset--spacing--10));
		min-width: 0;
	}

	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns .has-xx-large-font-size {
		font-size: clamp(1.35rem, 2.8vw + 0.65rem, 2rem) !important;
		line-height: 1.15;
		text-wrap: balance;
	}

	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns > .wp-block-column:first-child .has-xx-large-font-size {
		font-size: clamp(1.5rem, 3.2vw + 0.75rem, 2.15rem) !important;
	}

	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns p {
		font-size: clamp(0.9375rem, 1.1vw + 0.8rem, 1.0625rem);
		line-height: 1.5;
	}

	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns > .wp-block-column:last-child .has-large-font-size {
		font-size: clamp(1rem, 1.5vw + 0.75rem, 1.25rem) !important;
		line-height: 1.35;
	}

	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns > .wp-block-column:not(:last-child) {
		padding-top: var(--wp--preset--spacing--40) !important;
		padding-bottom: var(--wp--preset--spacing--40) !important;
	}

	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) .wp-container-core-group-is-layout-b45fd362 {
		flex-wrap: wrap !important;
		justify-content: center;
		gap: var(--wp--preset--spacing--30);
		margin-top: var(--wp--preset--spacing--30) !important;
		margin-bottom: var(--wp--preset--spacing--30) !important;
	}

	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) .wp-container-core-group-is-layout-b45fd362 .wp-block-image {
		flex: 1 1 5.5rem;
		max-width: 8.5rem;
		margin: 0 auto;
	}
}

@media (max-width: 640px) {
	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns > .wp-block-column:nth-child(2),
	.wp-block-group:has(> .wp-block-columns > .wp-block-column.has-pale-green-background-color + .wp-block-column.has-gray-19-background-color) > .wp-block-columns > .wp-block-column:nth-child(3) {
		flex-basis: 100% !important;
		max-width: 100%;
	}
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
} 
