/*
Theme Name: Eventsmaster
Theme URI: https://wp-events-plugin.com/
Author: Pixelite
Author URI: https://pixelite.com/
Description: A bright, card-driven block theme for event sites built with Events Manager. Gradient heroes, image cards with date badges, a clean calendar and a booking panel that sits beside the event details. Comes with patterns for heroes, event grids, venues, pricing, FAQs and testimonials, plus five style variations for classes, nightlife, conferences, community groups and venues.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eventsmaster
Tags: full-site-editing, block-patterns, block-styles, style-variations, custom-colors, custom-logo, editor-style, featured-images, wide-blocks, one-column, three-columns, grid-layout, news, entertainment, translation-ready
*/

/* Base
-------------------------------------------------------------- */
html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 5rem);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--deep);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:has(> main) {
	flex: 1 0 auto;
}

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: scale(0.98);
}

/* Header
-------------------------------------------------------------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 40;
}

@media (max-width: 600px) {
	.wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.evm-header {
	background: var(--wp--custom--header--background);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}

.evm-header__bar {
	min-height: 4rem;
}

/* The site title gives way only after the search box has shrunk away, so a long name truncates instead of pushing the buttons off screen. */
.evm-brand {
	flex-shrink: 1;
	min-width: 0;
}

.evm-brand > * {
	flex-shrink: 0;
}

.evm-brand > .wp-block-site-title {
	flex-shrink: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.evm-logo-mark a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--wp--preset--color--primary) 80%, transparent);
}

.evm-logo-mark svg {
	width: 1.125rem;
	height: 1.125rem;
}

.evm-primary-nav .wp-block-navigation-item__content {
	padding: 0.5rem 0.75rem;
	border-radius: var(--wp--custom--radius--small);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.evm-primary-nav .wp-block-navigation-item__content:hover,
.evm-primary-nav .current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--contrast);
}

.evm-primary-nav {
	flex-shrink: 0;
}

.evm-primary-nav .wp-block-navigation__container {
	flex-wrap: nowrap;
	white-space: nowrap;
}

/* The search box absorbs a crowded header first and hides once it is too narrow to use. */
.evm-header-search {
	flex: 1 1 0;
	min-width: 0;
	max-width: 18rem;
	margin-inline-start: auto;
	container-type: inline-size;
}

@container (max-width: 10rem) {
	.evm-header-search > * {
		display: none !important;
	}
}

.evm-header-actions {
	flex-shrink: 0;
}

.evm-btn-sm .wp-block-button__link {
	padding: calc(0.5rem - 1px) 0.875rem;
}

.evm-btn-sm:not(.is-style-outline) .wp-block-button__link {
	padding: 0.5rem 0.875rem;
}

/* Mobile menu overlay. */
.evm-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
	background: var(--wp--preset--color--surface);
}

.evm-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
	gap: 0.25rem;
}

.evm-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	padding: 0.5rem 0;
}

.evm-primary-nav .wp-block-navigation__responsive-container-open {
	padding: 0.5rem;
	border-radius: var(--wp--custom--radius--small);
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
}

.evm-header:has(.is-menu-open) {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

@media (max-width: 1100px) {
	.evm-header-actions .is-style-ghost {
		display: none;
	}
}

/* Core only switches the navigation to its menu button below 600px, which is too late for a full header. */
@media (min-width: 600px) and (max-width: 960px) {
	.evm-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.evm-primary-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 960px) {
	.evm-header__bar {
		gap: 0.5rem !important;
	}

	.evm-primary-nav {
		order: 3;
	}

	.evm-header-actions {
		margin-inline-start: auto;
	}
}

@media (max-width: 781px) {
	.evm-hide-mobile {
		display: none !important;
	}
}

@media (max-width: 380px) {
	.evm-header .wp-block-site-title {
		display: none;
	}
}

/* Page bands, sections, footer
-------------------------------------------------------------- */
.evm-page-band .wp-block-post-title,
.evm-page-band .wp-block-query-title,
.evm-page-band h1 {
	font-weight: 800;
	letter-spacing: -0.03em;
}

.evm-section-head {
	gap: 1rem;
}

.evm-section-head h2 {
	letter-spacing: -0.03em;
}

.evm-arrow-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 500;
	text-decoration: none;
}

.evm-arrow-link a::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--evm-icon-arrow) center / contain no-repeat;
	mask: var(--evm-icon-arrow) center / contain no-repeat;
	transition: transform 0.15s ease;
}

.evm-arrow-link a:hover::after {
	transform: translateX(2px);
}

.evm-footer__title {
	font-family: var(--wp--preset--font-family--body);
	letter-spacing: 0;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.evm-footer-nav {
	color: var(--wp--preset--color--muted);
}

.evm-footer-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary-strong);
}

.evm-footer__bottom p {
	margin: 0;
}

.evm-footer__bottom a {
	color: inherit;
}

/* Hero
-------------------------------------------------------------- */
.evm-hero {
	position: relative;
	overflow: hidden;
}

.evm-hero > p:not(.is-style-eyebrow):not(.wp-block-tag-cloud) {
	max-width: 36rem;
	margin-inline: auto !important;
}

.evm-hero-search {
	max-width: 36rem;
	margin-inline: auto !important;
}

.evm-hero-search .wp-block-search__input {
	min-height: 3.25rem;
	font-size: var(--wp--preset--font-size--medium);
}

.evm-hero-search .wp-block-search__button {
	min-height: 3.25rem;
	padding-inline: 1.75rem;
	font-size: var(--wp--preset--font-size--medium);
}

.evm-hero-chips {
	justify-content: center;
}

.evm-hero .evm-stats {
	max-width: 42rem;
	margin-inline: auto !important;
}

/* Icons used by CSS (stroke icons from Lucide, ISC license). */
:root {
	--evm-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	--evm-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
	--evm-icon-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7'/%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/%3E%3Cpath d='M2 7h20v3a2 2 0 0 1-2 2 2.7 2.7 0 0 1-2-1 2.7 2.7 0 0 1-4 0 2.7 2.7 0 0 1-4 0 2.7 2.7 0 0 1-4 0 2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
	--evm-icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
	--evm-icon-sparkles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.94 15.5A2 2 0 0 0 8.5 14.06l-6.14-1.58a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.14a.5.5 0 0 1 .96 0L14.06 8.5A2 2 0 0 0 15.5 9.94l6.14 1.58a.5.5 0 0 1 0 .96L15.5 14.06a2 2 0 0 0-1.44 1.44l-1.58 6.14a.5.5 0 0 1-.96 0z'/%3E%3Cpath d='M20 3v4M22 5h-4'/%3E%3C/svg%3E");
	--evm-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--evm-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
	--evm-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Block styles
-------------------------------------------------------------- */
.is-style-card,
.is-style-card-lift,
.is-style-stat {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--preset--shadow--card);
}

.is-style-card-lift {
	overflow: hidden;
	transition: transform 0.2s var(--wp--custom--motion--ease), box-shadow 0.2s ease;
}

.is-style-card-lift:hover,
.is-style-card-lift:focus-within {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--pop);
}

.is-style-glass {
	background: color-mix(in srgb, var(--wp--preset--color--surface) 70%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--surface) 60%, transparent);
	border-radius: var(--wp--custom--radius--large);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.is-style-stat {
	padding: 1rem 0.75rem;
	gap: 0.125rem !important;
	text-align: center;
}

.is-style-stat,
.evm-empty {
	position: relative;
}

/* The tinted tile is ::before and the icon is ::after, so an icon can be swapped with a single class on any group. */
.is-style-stat::before,
.evm-empty::before {
	content: "";
	display: block;
	flex: none;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0 auto 0.25rem;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--primary-tint);
}

.is-style-stat::after,
.evm-empty::after {
	content: "";
	position: absolute;
}

.evm-icon-calendar { --evm-tile-icon: var(--evm-icon-calendar); }
.evm-icon-store { --evm-tile-icon: var(--evm-icon-store); }
.evm-icon-users { --evm-tile-icon: var(--evm-icon-users); }
.evm-icon-sparkles { --evm-tile-icon: var(--evm-icon-sparkles); }

.is-style-stat::after,
.evm-empty::after {
	top: calc(1rem + 0.5rem);
	left: 50%;
	width: 1.25rem;
	height: 1.25rem;
	transform: translateX(-50%);
	background: var(--wp--preset--color--primary);
	-webkit-mask: var(--evm-tile-icon, var(--evm-icon-calendar)) center / contain no-repeat;
	mask: var(--evm-tile-icon, var(--evm-icon-calendar)) center / contain no-repeat;
}

.evm-empty {
	text-align: center;
}

.evm-empty::before {
	margin: 0 auto 0.75rem;
	width: 3rem;
	height: 3rem;
}

.evm-empty::after {
	top: calc(var(--wp--preset--spacing--60) + 0.875rem);
}

.evm-stat__value {
	margin: 0.25rem 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--contrast);
}

.evm-stat__label {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

/* Buttons */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast-soft);
	box-shadow: none;
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-ghost .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--surface-2);
	border-color: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-accent .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-primary);
	box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--wp--preset--color--accent) 70%, transparent);
}

.wp-block-button.is-style-accent .wp-block-button__link:hover,
.wp-block-button.is-style-accent .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--accent-strong);
}

.wp-block-button.is-style-soft .wp-block-button__link {
	background: var(--wp--preset--color--primary-tint);
	color: var(--wp--preset--color--primary-strong);
	box-shadow: none;
}

.wp-block-button.is-style-soft .wp-block-button__link:hover,
.wp-block-button.is-style-soft .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--primary-soft);
}

.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: none;
}

.wp-block-button.is-style-outline-light .wp-block-button__link:hover,
.wp-block-button.is-style-outline-light .wp-block-button__link:focus-visible {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.45);
}

.evm-cta .wp-block-button .wp-block-button__link {
	padding: 0.875rem 1.75rem;
	font-size: var(--wp--preset--font-size--medium);
}

/* Text */
p.is-style-eyebrow {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--wp--preset--color--primary-soft);
	border-radius: var(--wp--custom--radius--pill);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 70%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--wp--preset--color--primary-strong);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	line-height: 1.5;
}

p.is-style-eyebrow.has-text-align-center {
	margin-inline: auto;
}

p.is-style-eyebrow::before {
	content: "";
	width: 0.875rem;
	height: 0.875rem;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--evm-icon-sparkles) center / contain no-repeat;
	mask: var(--evm-icon-sparkles) center / contain no-repeat;
}

p.is-style-kicker {
	margin-bottom: 0;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.is-style-gradient-em em {
	font-style: normal;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	padding-bottom: 0.08em;
}

/* Chips: tag cloud and post terms */
.wp-block-tag-cloud.is-style-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wp-block-tag-cloud.is-style-chips a {
	margin: 0;
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 70%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--wp--preset--color--contrast-soft);
	font-size: var(--wp--preset--font-size--small) !important;
	line-height: 1.4;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.wp-block-tag-cloud.is-style-chips a:hover {
	border-color: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary-strong);
}

.evm-term-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.evm-term-chips a {
	padding: 0.25rem 0.625rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--primary-tint);
	color: var(--wp--preset--color--primary-strong);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-decoration: none;
}

.evm-term-chips .wp-block-post-terms__separator {
	display: none;
}

.evm-term-chips.is-tags a {
	background: transparent;
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast-soft);
}

.evm-term-chips.is-tags a::before {
	content: "#";
}

/* Lists */
ul.is-style-checks {
	list-style: none;
	padding-left: 0;
}

ul.is-style-checks li {
	position: relative;
	padding-left: 1.625rem;
	margin: 0.5rem 0;
}

ul.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-tint);
}

ul.is-style-checks li::after {
	content: "";
	position: absolute;
	left: 0.25rem;
	top: calc(0.2em + 0.25rem);
	width: 0.625rem;
	height: 0.625rem;
	background: var(--wp--preset--color--primary);
	-webkit-mask: var(--evm-icon-check) center / contain no-repeat;
	mask: var(--evm-icon-check) center / contain no-repeat;
}

/* Search */
.wp-block-search.is-style-pill .wp-block-search__inside-wrapper,
.wp-block-search.is-style-pill.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	position: relative;
	gap: 0.5rem;
	padding: 0;
	border: 0;
}

.wp-block-search.is-style-pill .wp-block-search__input {
	min-height: 2.5rem;
	padding: 0.5rem 1rem 0.5rem 2.5rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface-2) var(--evm-search-icon, none);
	color: var(--wp--preset--color--contrast);
	box-shadow: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wp-block-search.is-style-pill .wp-block-search__inside-wrapper::before {
	content: "";
	position: absolute;
	left: 0.875rem;
	top: 50%;
	width: 1rem;
	height: 1rem;
	transform: translateY(-50%);
	background: var(--wp--preset--color--muted);
	-webkit-mask: var(--evm-icon-search) center / contain no-repeat;
	mask: var(--evm-icon-search) center / contain no-repeat;
	pointer-events: none;
	z-index: 1;
}

.evm-hero-search.is-style-pill .wp-block-search__input {
	padding-left: 3rem;
	background-color: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--card);
}

.evm-hero-search.is-style-pill .wp-block-search__inside-wrapper::before {
	left: 1.125rem;
	width: 1.25rem;
	height: 1.25rem;
}

.wp-block-search.is-style-pill .wp-block-search__input:focus {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
	background-color: var(--wp--preset--color--surface);
	outline: 3px solid color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent);
	outline-offset: 0;
}

.wp-block-search.is-style-pill .wp-block-search__button {
	margin: 0;
	border-radius: var(--wp--custom--radius--pill);
}

.wp-block-search.is-style-pill.wp-block-search__button-inside .wp-block-search__button {
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	padding: 0.375rem;
	background: transparent;
	color: var(--wp--preset--color--muted);
	box-shadow: none;
}

.wp-block-search.is-style-pill.wp-block-search__button-inside .wp-block-search__button:hover {
	color: var(--wp--preset--color--primary);
}

.evm-header-search .wp-block-search__button {
	display: none;
}

/* Images */
.wp-block-image.is-style-avatar img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 999px;
}

main > .evm-query {
	margin-top: var(--wp--preset--spacing--60);
}

.evm-tier .wp-block-buttons > .wp-block-button,
.evm-tier .wp-block-buttons .wp-block-button__link {
	width: 100%;
}

/* Cards built from blocks
-------------------------------------------------------------- */
.evm-post-card .wp-block-post-featured-image {
	overflow: hidden;
	margin: 0;
}

.evm-post-card .wp-block-post-featured-image img {
	transition: transform 0.3s var(--wp--custom--motion--ease);
}

.evm-post-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.evm-post-card .wp-block-post-title {
	margin: 0;
	line-height: 1.3;
}

.evm-post-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary-strong);
}

.evm-post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.evm-tier.is-featured {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--pop), 0 0 0 1px var(--wp--preset--color--primary);
}

.evm-tier h3 {
	margin: 0;
}

.evm-tier__price {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.evm-tier__price strong {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.evm-tier .wp-block-list {
	margin: 0.25rem 0 1rem;
}

.evm-testimonial__quote {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.evm-avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	flex: none;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary-strong);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
}

.evm-testimonial .wp-block-group p {
	margin: 0;
}

.evm-cta__lede {
	color: rgba(255, 255, 255, 0.78);
}

/* Details (FAQ) */
.wp-block-details {
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-details[open] {
	box-shadow: var(--wp--preset--shadow--card);
}

.wp-block-details summary {
	position: relative;
	padding-right: 2rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 1.125rem;
	height: 1.125rem;
	transform: translateY(-50%);
	background: var(--wp--preset--color--muted);
	-webkit-mask: var(--evm-icon-chevron) center / contain no-repeat;
	mask: var(--evm-icon-chevron) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	transform: translateY(-50%) rotate(180deg);
}

.wp-block-details > :not(summary) {
	margin-top: 0.75rem;
	margin-bottom: 0;
}

/* Reading content
-------------------------------------------------------------- */
.evm-prose {
	color: var(--wp--preset--color--contrast-soft);
	line-height: 1.7;
}

.evm-prose :where(h1, h2, h3, h4, h5, h6, strong) {
	color: var(--wp--preset--color--contrast);
}

.evm-prose a:where(:not(.wp-element-button)) {
	text-underline-offset: 2px;
	font-weight: 500;
}

.wp-block-query-pagination {
	gap: 0.375rem;
}

.wp-block-query-pagination-numbers {
	display: flex;
	gap: 0.375rem;
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}

/* Motion
-------------------------------------------------------------- */
@keyframes evm-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.evm-hero > *,
.evm-section-head {
	animation: evm-fade-up 0.5s var(--wp--custom--motion--ease) both;
}

.evm-hero > :nth-child(2) { animation-delay: 0.05s; }
.evm-hero > :nth-child(3) { animation-delay: 0.1s; }
.evm-hero > :nth-child(4) { animation-delay: 0.15s; }
.evm-hero > :nth-child(5) { animation-delay: 0.2s; }
.evm-hero > :nth-child(6) { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.is-style-card-lift:hover,
	.is-style-card-lift:focus-within,
	.evm-post-card:hover .wp-block-post-featured-image img {
		transform: none;
	}
}

/* Editor only: keep the sticky header from covering blocks in the site editor canvas. */
.editor-styles-wrapper .wp-site-blocks > header.wp-block-template-part,
.block-editor-iframe__body header.wp-block-template-part {
	position: relative;
}
