/**
 * Agend Base: the few things theme.json cannot express.
 *
 * Everything colour, type and spacing related belongs in theme.json so the
 * client can change it in the Site Editor. What lives here is structure and
 * state: the utility bar, hero framing, hover states, and the block styles
 * registered in functions.php.
 */

/*
 * Header, main and footer butt directly together. Each band owns its own
 * vertical padding, so a gap between the three root regions would show the
 * page background as a stripe between coloured bands. Core's root flow layout
 * applies the theme.json blockGap as `margin-block-start` on every root
 * sibling (.wp-site-blocks > * + *), not as a flex gap, so that is what has
 * to be zeroed.
 */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* ---------- Utility bar ---------- */

.agend-utility-bar {
	font-size: var(--wp--preset--font-size--small);
}

.agend-utility-bar a {
	color: var(--wp--preset--color--on-ink-muted);
	text-decoration: none;
}

.agend-utility-bar a:hover,
.agend-utility-bar a:focus-visible {
	color: var(--wp--preset--color--on-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.agend-utility-bar .wp-block-navigation {
	font-weight: 400;
}

.agend-utility-bar .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--on-ink-muted);
}

.agend-utility-bar .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--on-ink);
}

.agend-utility-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: var(--wp--preset--color--on-ink);
	opacity: 0.86;
}

.agend-utility-icon:hover,
.agend-utility-icon:focus-visible {
	opacity: 1;
}

.agend-utility-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

/* ---------- Main header ---------- */

.agend-header-bar {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.agend-header-bar .wp-block-site-logo img {
	width: 116px;
	height: auto;
	display: block;
}

.agend-header-bar .wp-block-navigation {
	gap: 28px;
}

.agend-header-bar .wp-block-navigation .wp-block-navigation-item__content {
	text-decoration: none;
	padding-block: 6px;
}

.agend-header-bar .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--action);
}

.agend-header-bar .wp-block-navigation .wp-block-navigation-submenu__toggle svg {
	margin-inline-start: 2px;
}

.agend-header-bar .wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--surface);
	box-shadow: var(--wp--preset--shadow--card);
	padding-block: 8px;
	min-width: 260px;
}

.agend-header-bar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 18px;
	font-weight: 400;
}

/* ---------- Hero ---------- */

.wp-block-cover.is-style-agend-hero {
	min-height: 560px;
	align-items: center;
}

.wp-block-cover.is-style-agend-hero .wp-block-cover__inner-container {
	max-width: 1180px;
	margin-inline: auto;
	width: 100%;
	padding-inline: 24px;
}

.agend-hero-content {
	max-width: 640px;
}

.wp-block-cover.is-style-agend-hero h1,
.wp-block-cover.is-style-agend-hero h2 {
	color: var(--wp--preset--color--on-ink);
}

@media (max-width: 781px) {
	.wp-block-cover.is-style-agend-hero {
		min-height: 420px;
	}
}

/* ---------- Page mast ---------- */

/*
 * Title and lede hold a reading measure while the group itself stays on the
 * left grid line. Constraining the group would centre it, because constrained
 * layouts give every child auto side margins.
 */
.agend-mast-content h1,
.agend-mast-content .has-lede-font-size {
	max-width: 820px;
}

.agend-crumbs a {
	color: inherit;
	text-decoration: none;
}

.agend-crumbs a:hover,
.agend-crumbs a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Band helper ---------- */

.agend-band {
	padding-block: var(--wp--custom--band-padding);
}

/* ---------- Eyebrow label ---------- */

.is-style-agend-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	color: var(--wp--preset--color--action);
	margin-bottom: 8px;
}

/* ---------- Buttons ---------- */

/*
 * Solid buttons take the Label type from theme.json: 13px, 700, uppercase.
 * The arrow text links below deliberately opt back out of that, because in the
 * reference build they read as sentence-case links, not buttons.
 */


/* Text link with a trailing arrow, the pattern used all over the reference build. */
.wp-block-button.is-style-agend-link .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--action);
	padding: 0;
	border-radius: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.wp-block-button.is-style-agend-link .wp-block-button__link::after {
	content: "";
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	background-color: currentColor;
	transition: transform 160ms ease;
	-webkit-mask: var(--agend-arrow) center / contain no-repeat;
	mask: var(--agend-arrow) center / contain no-repeat;
}

.wp-block-button.is-style-agend-link .wp-block-button__link:hover,
.wp-block-button.is-style-agend-link .wp-block-button__link:focus-visible {
	background-color: transparent;
	color: var(--wp--preset--color--action-hover);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.wp-block-button.is-style-agend-link .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/*
 * Every solid pill in the page body carries a trailing arrow, as the reference
 * build does. Scoped to main so the compact header CTA and the footer signup
 * button, which have no arrow there, are left alone.
 */
main .wp-block-button:not(.is-style-agend-link) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

main .wp-block-button:not(.is-style-agend-link) .wp-block-button__link::after {
	content: "";
	width: 0.95em;
	height: 0.95em;
	flex: 0 0 auto;
	background-color: currentColor;
	transition: transform 160ms ease;
	-webkit-mask: var(--agend-arrow) center / contain no-repeat;
	mask: var(--agend-arrow) center / contain no-repeat;
}

main .wp-block-button:not(.is-style-agend-link) .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* Outline pill on light bands: transparent, hairline border, accent text. */
.wp-block-button.is-style-agend-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--action);
	border: 1px solid rgba(21, 24, 29, 0.26);
}

.wp-block-button.is-style-agend-outline .wp-block-button__link:hover,
.wp-block-button.is-style-agend-outline .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--action-wash);
	color: var(--wp--preset--color--action);
	border-color: rgba(21, 24, 29, 0.26);
}

/* Outline button for navy bands. */
.wp-block-button.is-style-agend-on-dark .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--on-ink);
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.wp-block-button.is-style-agend-on-dark .wp-block-button__link:hover,
.wp-block-button.is-style-agend-on-dark .wp-block-button__link:focus-visible {
	background-color: rgba(255, 255, 255, 0.12);
	color: var(--wp--preset--color--on-ink);
	border-color: var(--wp--preset--color--on-ink);
}

/* "Read more" under the featured post: the uppercase label link of the reference. */
.wp-block-read-more.is-style-agend-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--action);
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 700;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	text-decoration: none;
}

.wp-block-read-more.is-style-agend-read-more::after {
	content: "";
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	background-color: currentColor;
	transition: transform 160ms ease;
	-webkit-mask: var(--agend-arrow) center / contain no-repeat;
	mask: var(--agend-arrow) center / contain no-repeat;
}

.wp-block-read-more.is-style-agend-read-more:hover {
	color: var(--wp--preset--color--action-hover);
}

.wp-block-read-more.is-style-agend-read-more:hover::after {
	transform: translateX(3px);
}

/* Arrow shape, shared by every arrow button. */
:root {
	--agend-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='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* Solid buttons sitting on a navy band read as white with navy text. */
.has-brand-background-color .wp-block-button:not(.is-style-agend-link):not(.is-style-agend-on-dark) .wp-block-button__link {
	background-color: var(--wp--preset--color--on-ink);
	color: var(--wp--preset--color--brand);
}

.has-brand-background-color .wp-block-button:not(.is-style-agend-link):not(.is-style-agend-on-dark) .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--action-wash);
	color: var(--wp--preset--color--brand);
}

.has-brand-background-color .wp-block-button.is-style-agend-link .wp-block-button__link {
	color: var(--wp--preset--color--on-ink);
}

.has-brand-background-color .wp-block-button.is-style-agend-link .wp-block-button__link:hover {
	color: var(--wp--preset--color--on-ink);
}

/* ---------- Task strip ---------- */

/* Hairline rules between the six task links, as in the reference build. */
.agend-task-strip .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--wp--preset--color--border);
	padding-left: 24px;
}

.agend-task-strip .wp-block-button__link {
	text-align: left;
}

/* ---------- Cards ---------- */

.wp-block-group.is-style-agend-card {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--surface);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wp-block-group.is-style-agend-card:hover {
	border-color: var(--wp--preset--color--border-strong);
	box-shadow: var(--wp--preset--shadow--card);
}

.wp-block-group.is-style-agend-card h3 a,
.wp-block-group.is-style-agend-card h4 a {
	text-decoration: none;
	color: inherit;
}

.wp-block-group.is-style-agend-card:hover h3 a,
.wp-block-group.is-style-agend-card:hover h4 a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- Statistic tile ---------- */

.wp-block-group.is-style-agend-stat {
	border-top: 1px solid var(--wp--preset--color--border-strong);
	padding-top: 16px;
}

.agend-stat-figure {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.04;
	letter-spacing: -0.4px;
	color: var(--wp--preset--color--brand);
	margin: 0 0 2px;
}

/* ---------- Agend app slot placeholder ---------- */

.wp-block-group.is-style-agend-app-slot {
	position: relative;
	border: 1px dashed var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--surface);
	background-color: var(--wp--preset--color--surface);
	padding: 40px 32px;
}

.wp-block-group.is-style-agend-app-slot::before {
	content: "Agend app block";
	position: absolute;
	top: -10px;
	left: 20px;
	background-color: var(--wp--preset--color--action-wash);
	color: var(--wp--preset--color--action);
	font-family: var(--wp--preset--font-family--body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	padding: 2px 10px;
	border-radius: var(--wp--custom--radius--chip);
}


/* ---------- Media ---------- */

.wp-block-image img,
.wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--media);
}

.agend-split-media {
	min-height: 420px;
	background-size: cover;
	background-position: center center;
}

@media (max-width: 781px) {
	.agend-split-media {
		min-height: 260px;
	}
}

.agend-card-media {
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center center;
}

/* ---------- Footer ---------- */

.agend-footer a {
	color: var(--wp--preset--color--ink-subtle);
	text-decoration: none;
}

.agend-footer a:hover,
.agend-footer a:focus-visible {
	color: var(--wp--preset--color--action);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.agend-footer .wp-block-navigation {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
}

.agend-footer .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink-subtle);
}

.agend-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--action);
}

.agend-footer .wp-block-site-logo img {
	width: 100px;
	height: auto;
}

.agend-footer-heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 700;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-subtle);
	margin: 0 0 12px;
}

/* ---------- Accessibility ---------- */

:where(a, button, input, select, textarea, summary, .wp-block-navigation-item__content):focus-visible {
	outline: 2px solid var(--wp--preset--color--action);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ---------- Footer signup ---------- */

.agend-signup__label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	margin-bottom: 8px;
}

.agend-signup__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
}

.agend-signup__input {
	flex: 1 1 240px;
	min-width: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.65;
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--field);
	padding: 12px 16px;
}

.agend-signup__input:focus {
	outline: none;
	border-color: var(--wp--preset--color--action);
	box-shadow: 0 0 0 3px var(--wp--preset--color--action-wash);
}

.agend-signup__button {
	flex: 0 0 auto;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 700;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	line-height: 1.45;
	color: var(--wp--preset--color--on-ink);
	background-color: var(--wp--preset--color--action);
	border: 0;
	border-radius: var(--wp--custom--radius--action);
	padding: 13px 26px;
	cursor: pointer;
}

.agend-signup__button:hover,
.agend-signup__button:focus-visible {
	background-color: var(--wp--preset--color--action-hover);
}

.agend-signup__note {
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--ink-subtle);
	margin: 12px 0 0;
}

/* ---------- Gravity Forms, brought onto the design system ---------- */

.gform_wrapper .gfield_label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper select,
.gform_wrapper textarea {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.65;
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--field);
	padding: 12px 16px;
}

.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--action);
	box-shadow: 0 0 0 3px var(--wp--preset--color--action-wash);
}

/*
 * Gravity Forms 2.7+ renders with its Orbital theme, which styles the button
 * from CSS custom properties declared on .gform-theme--orbital. Redeclaring
 * them one class deeper wins, and the explicit rule below covers anything
 * Orbital hardcodes.
 */
.gform_wrapper.gform-theme--orbital {
	--gf-color-primary: var(--wp--preset--color--action);
	--gf-color-primary-darker: var(--wp--preset--color--action-hover);
	--gf-color-primary-contrast: var(--wp--preset--color--on-ink);
	--gf-ctrl-btn-bg-color-primary: var(--wp--preset--color--action);
	--gf-ctrl-btn-bg-color-hover-primary: var(--wp--preset--color--action-hover);
	--gf-ctrl-btn-border-color-primary: var(--wp--preset--color--action);
	--gf-ctrl-btn-border-color-hover-primary: var(--wp--preset--color--action-hover);
	--gf-ctrl-btn-color-primary: var(--wp--preset--color--on-ink);
	--gf-ctrl-btn-color-hover-primary: var(--wp--preset--color--on-ink);
	--gf-ctrl-btn-radius: var(--wp--custom--radius--action);
	--gf-ctrl-btn-font-family: var(--wp--preset--font-family--body);
	--gf-ctrl-btn-font-size: var(--wp--preset--font-size--meta);
	--gf-ctrl-btn-font-weight: 700;
	--gf-ctrl-btn-letter-spacing: 1.3px;
	--gf-ctrl-btn-text-transform: uppercase;
	--gf-ctrl-btn-padding-x: 26px;
	--gf-ctrl-btn-padding-y: 13px;
	--gf-ctrl-radius: var(--wp--custom--radius--field);
	--gf-ctrl-border-color: var(--wp--preset--color--border-strong);
	--gf-font-family-primary: var(--wp--preset--font-family--body);
}

.gform_wrapper.gform-theme.gform-theme--orbital .gform_footer button.gform_button,
.gform_wrapper.gform-theme.gform-theme--orbital .gform_footer input[type="submit"],
body .gform_wrapper .gform_footer input[type="submit"],
body .gform_wrapper .gform_footer button,
body .gform_wrapper .gform_button {
	/* Orbital sets these two with a hardcoded rule that outranks any selector here. */
	font-size: var(--wp--preset--font-size--meta) !important;
	padding: 13px 26px !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 700;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	line-height: 1.45;
	color: var(--wp--preset--color--on-ink);
	background-color: var(--wp--preset--color--action);
	border: 0;
	border-radius: var(--wp--custom--radius--action);
	padding: 13px 26px;
	cursor: pointer;
}

body .gform_wrapper .gform_footer input[type="submit"]:hover,
body .gform_wrapper .gform_footer button:hover,
body .gform_wrapper .gform_button:hover {
	background-color: var(--wp--preset--color--action-hover);
}

.gform_wrapper .gfield_required {
	color: var(--wp--preset--color--alert);
}

/* Home events teaser: the Agend events catalogue block, clamped to one row.
   The platform API ignores the block's per_page (it answers with its own
   limit), so the extra cards are hidden here rather than fetched fewer. */
.agend-events-teaser .agend-ev-card:nth-child(n + 4),
.agend-events-teaser .agend-ev-pager,
.agend-events-teaser .agend-ev-pagination {
	display: none;
}

/* ---------- Motion block styles ---------- */

/*
 * assets/js/motion.js adds .agend-motion to <html> as its first act, and
 * every rule that hides something is scoped to it. No script, no hiding.
 * The editor never gets the class either, so blocks stay visible while
 * being edited. Reduced motion is honoured by the script (it reveals
 * everything at once) and belt-and-braces by the media query at the end.
 */
.agend-motion .is-style-agend-reveal:not(.is-revealed) {
	opacity: 0;
	transform: translateY(26px);
}

.is-style-agend-reveal {
	transition: opacity 660ms cubic-bezier(0.16, 0.84, 0.44, 1), transform 660ms cubic-bezier(0.16, 0.84, 0.44, 1);
	will-change: opacity, transform;
}

.agend-motion .is-style-agend-reveal-stagger:not(.is-revealed) > * {
	opacity: 0;
	transform: translateY(26px);
}

.is-style-agend-reveal-stagger > * {
	transition: opacity 620ms cubic-bezier(0.16, 0.84, 0.44, 1), transform 620ms cubic-bezier(0.16, 0.84, 0.44, 1);
	transition-delay: calc(var(--agend-reveal-i, 0) * 90ms);
}

/* Photo mosaic: a grid group of images, mono until hovered, tiles fade in one by one. */
.wp-block-group.is-style-agend-mosaic {
	background-color: #0d0d0d;
	grid-auto-rows: 1fr;
	align-items: stretch;
}

.wp-block-group.is-style-agend-mosaic > .wp-block-image {
	position: relative;
	margin: 0;
	min-height: 0;
	overflow: hidden;
	background-color: #0d0d0d;
	transition: opacity 360ms cubic-bezier(0.16, 1, 0.3, 1), transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: calc(var(--agend-reveal-i, 0) * 70ms);
}

/*
 * The scale sits on the image, not on its figure: the figure clips its content,
 * so a scaled image cannot poke past the viewport. Scaling the figure itself
 * gave a 4px horizontal scroll on phones until the band revealed.
 */
.agend-motion .is-style-agend-mosaic:not(.is-revealed) > .wp-block-image {
	opacity: 0;
}

.agend-motion .is-style-agend-mosaic:not(.is-revealed) > .wp-block-image img {
	transform: scale(1.04);
}

.wp-block-group.is-style-agend-mosaic > .wp-block-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	filter: grayscale(1) contrast(1.03);
	transition: transform 680ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 680ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wp-block-group.is-style-agend-mosaic > .wp-block-image:hover img {
	transform: scale(1.06);
	filter: none;
}

/* Ticker: the script wraps the children in a track and clones it for a seamless loop. */
.is-style-agend-ticker.agend-ticker--ready {
	display: flex;
	flex-wrap: nowrap;
	gap: 0 !important;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.agend-ticker__track {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: var(--agend-ticker-gap, 64px);
	padding-right: var(--agend-ticker-gap, 64px);
	white-space: nowrap;
	animation: agend-ticker var(--agend-ticker-duration, 40s) linear infinite;
}

.agend-ticker__track > * {
	margin: 0;
	flex: 0 0 auto;
}

.is-style-agend-ticker:hover .agend-ticker__track,
.is-style-agend-ticker:focus-within .agend-ticker__track {
	animation-play-state: paused;
}

.is-style-agend-ticker.agend-ticker--static .agend-ticker__track {
	flex-wrap: wrap;
	justify-content: center;
	white-space: normal;
	padding-right: 0;
}

@keyframes agend-ticker {
	to {
		transform: translateX(-100%);
	}
}

/* Photo on hover: a Cover whose picture and overlay only appear under the pointer. */
.wp-block-cover.is-style-agend-hover-reveal .wp-block-cover__image-background,
.wp-block-cover.is-style-agend-hover-reveal .wp-block-cover__video-background,
.wp-block-cover.is-style-agend-hover-reveal .wp-block-cover__background {
	transition: opacity 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wp-block-cover.is-style-agend-hover-reveal:not(:hover):not(:focus-within) .wp-block-cover__image-background,
.wp-block-cover.is-style-agend-hover-reveal:not(:hover):not(:focus-within) .wp-block-cover__video-background,
.wp-block-cover.is-style-agend-hover-reveal:not(:hover):not(:focus-within) .wp-block-cover__background {
	opacity: 0;
}

.wp-block-cover.is-style-agend-hover-reveal .has-text-color,
.wp-block-cover.is-style-agend-hover-reveal .wp-block-cover__inner-container {
	transition: color 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wp-block-cover.is-style-agend-hover-reveal:hover .wp-block-cover__inner-container .has-text-color,
.wp-block-cover.is-style-agend-hover-reveal:focus-within .wp-block-cover__inner-container .has-text-color {
	color: var(--wp--preset--color--on-ink);
}

@media (prefers-reduced-motion: reduce) {
	.agend-motion .is-style-agend-reveal:not(.is-revealed),
	.agend-motion .is-style-agend-reveal-stagger:not(.is-revealed) > *,
	.agend-motion .is-style-agend-mosaic:not(.is-revealed) > .wp-block-image,
	.agend-motion .is-style-agend-mosaic:not(.is-revealed) > .wp-block-image img {
		opacity: 1;
		transform: none;
	}

	.agend-ticker__track {
		animation: none;
	}
}
