/*
 * EVA home block minimum CSS
 *
 * Scope:
 * - Front page preview only.
 * - Replacement candidate for wp-block-library/style.min.css.
 * - Designed for the current home DOM: images, columns, buttons, headings,
 *   align classes, text alignment, font-size utility classes, and layout helpers.
 *
 * Not included:
 * archives, audio, avatar, calendar, categories, code, comments, cover,
 * embeds, file, gallery, latest-comments, latest-posts, media-text,
 * navigation, post-template, pullquote, query, quote, rss, search,
 * separator, social-links, table, tag-cloud, verse, video, widgets.
 */

/* Generic box sizing for block elements used on the home page. */
.wp-block-image,
.wp-block-image *,
.wp-block-columns,
.wp-block-columns *,
.wp-block-column,
.wp-block-buttons,
.wp-block-buttons *,
.wp-block-button,
.wp-block-button__link {
	box-sizing: border-box;
}

/* Alignment utilities used by image and content blocks. */
.aligncenter {
	clear: both;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.alignleft {
	float: left;
	margin-right: 1em;
}

.alignright {
	float: right;
	margin-left: 1em;
}

.alignwide,
.alignfull {
	max-width: 100%;
}

.has-text-align-center {
	text-align: center;
}

.has-text-align-left {
	text-align: left;
}

.has-text-align-right {
	text-align: right;
}

/* Font-size utilities observed on home buttons/headings. */
.has-small-font-size {
	font-size: 13px;
}

.has-normal-font-size {
	font-size: 16px;
}

.has-medium-font-size {
	font-size: 20px;
}

.has-large-font-size {
	font-size: 36px;
}

.has-x-large-font-size {
	font-size: 42px;
}

/* Image blocks. */
.wp-block-image {
	margin: 0 0 1em;
}

.wp-block-image img {
	display: inline-block;
	height: auto;
	max-width: 100%;
	vertical-align: bottom;
}

.wp-block-image figure {
	margin: 0;
}

.wp-block-image.aligncenter,
.wp-block-image .aligncenter {
	text-align: center;
}

.wp-block-image figcaption {
	color: #555;
	font-size: 13px;
	margin-bottom: 1em;
	margin-top: .5em;
	text-align: center;
}

/* Columns. */
.wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 2em;
	margin-bottom: 1.75em;
}

.wp-block-columns.are-vertically-aligned-top {
	align-items: flex-start;
}

.wp-block-columns.are-vertically-aligned-center {
	align-items: center;
}

.wp-block-columns.are-vertically-aligned-bottom {
	align-items: flex-end;
}

.wp-block-column {
	flex-grow: 1;
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

.wp-block-column.is-vertically-aligned-top {
	align-self: flex-start;
}

.wp-block-column.is-vertically-aligned-center {
	align-self: center;
}

.wp-block-column.is-vertically-aligned-bottom {
	align-self: flex-end;
}

@media (min-width: 782px) {
	.wp-block-columns {
		flex-wrap: nowrap;
	}

	.wp-block-column {
		flex-basis: 0;
	}

	.wp-block-column[style*="flex-basis"] {
		flex-grow: 0;
	}
}

@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Buttons. */
.wp-block-buttons {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
}

.wp-block-buttons > .wp-block-button {
	display: inline-block;
	margin: 0;
}

.wp-block-buttons.is-content-justification-left {
	justify-content: flex-start;
}

.wp-block-buttons.is-content-justification-center {
	justify-content: center;
}

.wp-block-buttons.is-content-justification-right {
	justify-content: flex-end;
}

.wp-block-buttons.is-content-justification-space-between {
	justify-content: space-between;
}

.wp-block-buttons.is-vertical {
	align-items: stretch;
	flex-direction: column;
}

.wp-block-button {
	margin-bottom: .5em;
}

.wp-block-button.aligncenter {
	text-align: center;
}

.wp-block-button__link,
.wp-element-button {
	border-radius: 9999px;
	box-shadow: none;
	cursor: pointer;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	word-break: break-word;
}

.wp-block-button__link {
	padding: calc(.667em + 2px) calc(1.333em + 2px);
}

.wp-block-button__link.aligncenter {
	text-align: center;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background),
.wp-block-button:not(.is-style-outline) > .wp-element-button:not(.has-background) {
	background-color: #32373c;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-text-color),
.wp-block-button:not(.is-style-outline) > .wp-element-button:not(.has-text-color) {
	color: #fff;
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-element-button {
	background-color: transparent;
	border: 2px solid currentColor;
	color: currentColor;
	padding: .667em 1.333em;
}

.wp-block-button.has-custom-width {
	max-width: none;
}

.wp-block-button.has-custom-width .wp-block-button__link,
.wp-block-button.has-custom-width .wp-element-button {
	width: 100%;
}

.wp-block-button.has-custom-font-size .wp-block-button__link,
.wp-block-button.has-custom-font-size .wp-element-button {
	font-size: inherit;
}

/* Headings and text utilities. */
.wp-block-heading {
	overflow-wrap: break-word;
}

/*
 * Background spacing.
 *
 * Do not apply this generic padding to button links. The full WordPress
 * block-library lets .wp-block-button__link keep its own smaller padding;
 * applying .has-background to every element makes the home CTA buttons taller.
 */
.wp-block-columns.has-background,
.wp-block-group.has-background,
p.has-background,
ul.has-background,
ol.has-background,
h1.has-background,
h2.has-background,
h3.has-background,
h4.has-background,
h5.has-background,
h6.has-background,
.wp-block-preformatted.has-background {
	padding: 1.25em 2.375em;
}

/* Layout helpers generated by WordPress block markup. */
.is-layout-flow > * {
	margin-block-end: 0;
	margin-block-start: 0;
}

.is-layout-flow > * + * {
	margin-block-start: var(--wp--style--block-gap, 1.5rem);
}

.is-layout-flex {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--style--block-gap, .5em);
}

.is-layout-flex > * {
	margin: 0;
}

.is-layout-flex.is-nowrap {
	flex-wrap: nowrap;
}

.is-layout-flex.is-vertical {
	align-items: stretch;
	flex-direction: column;
}

.is-content-justification-left {
	justify-content: flex-start;
}

.is-content-justification-center {
	justify-content: center;
}

.is-content-justification-right {
	justify-content: flex-end;
}

.is-content-justification-space-between {
	justify-content: space-between;
}

/* Preserve media sizing helper classes used by WordPress image markup. */
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
	height: auto;
	max-width: 100%;
}

/* Accessibility helper occasionally provided by block-library. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
