/*
 * Anna Weather — signature component styles.
 * Loaded on the front end and inside the editor.
 * Copyright 2024-2026 Pasqualino De Marco. GPL-2.0-or-later.
 *
 * All bespoke rules use logical properties (margin-inline, padding-inline,
 * inset-*) so the layout holds in right-to-left locales. Block-style
 * backgrounds are built from currentColor/ink tints over transparent and
 * borders from currentColor tints, so every style stays legible in the
 * default palette and in the Night variation alike.
 */

/* --- Eyebrow label: monospaced, tracked, with a leading instrument tick --- */
.is-style-ws40-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	/* Context-aware: a muted shade of the surrounding text colour. Verified
	   AA (>=4.5:1) on Mist, Surface and Night. */
	color: color-mix(in srgb, currentColor 72%, transparent);
	margin-block-end: 0.5rem;
}

.is-style-ws40-eyebrow::before {
	content: "";
	display: inline-block;
	inline-size: 1.5rem;
	block-size: 0;
	margin-inline-end: 0.6rem;
	vertical-align: middle;
	border-block-start: 2px solid var(--wp--preset--color--barometer);
}

/* --- Scale-tick divider: a graduated rule, like a barometer scale --- */
.wp-block-separator.is-style-ws40-ticks {
	border: 0;
	block-size: 11px;
	max-inline-size: 100%;
	opacity: 1;
	background-image: repeating-linear-gradient(
		to right,
		var(--wp--preset--color--hairline) 0,
		var(--wp--preset--color--hairline) 1px,
		transparent 1px,
		transparent 10px
	);
	background-position: bottom;
	background-repeat: repeat-x;
	background-size: 10px 11px;
	border-block-end: 1px solid var(--wp--preset--color--hairline);
}

/* Every fifth tick is taller and inked, like a major graduation. */
.wp-block-separator.is-style-ws40-ticks::after {
	content: "";
	display: block;
	block-size: 11px;
	background-image: repeating-linear-gradient(
		to right,
		var(--wp--preset--color--barometer) 0,
		var(--wp--preset--color--barometer) 1px,
		transparent 1px,
		transparent 50px
	);
	background-position: bottom;
	background-repeat: repeat-x;
}

/* --- Dashed instrument rule --- */
.wp-block-separator.is-style-ws40-dashed {
	border: 0;
	block-size: 0;
	border-block-start: 2px dashed color-mix(in srgb, currentColor 38%, transparent);
	background: none;
	opacity: 1;
}

/* --- Horizon line: a solid rule that fades out at both ends --- */
.wp-block-separator.is-style-ws40-horizon-line {
	border: 0;
	block-size: 2px;
	max-inline-size: 100%;
	opacity: 1;
	background-image: linear-gradient(
		to right,
		transparent,
		var(--wp--preset--color--barometer) 18%,
		var(--wp--preset--color--barometer) 82%,
		transparent
	);
}

/* --- Tabular figures: keep readouts aligned wherever the data font is used --- */
.has-mono-font-family {
	font-variant-numeric: tabular-nums;
}

/* --- Instrument card: clean surface, hairline, soft corner --- */
.wp-block-group.is-style-ws40-card {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--40);
	box-shadow: 0 1px 2px rgba(14, 27, 39, 0.05);
}

/* --- Panel: a flat sectional surface that adapts to the palette --- */
.wp-block-group.is-style-ws40-panel {
	background-color: color-mix(in srgb, var(--wp--preset--color--ink) 4%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--40);
}

/* --- Bezel: an inset, recessed instrument well --- */
.wp-block-group.is-style-ws40-bezel {
	background-color: color-mix(in srgb, var(--wp--preset--color--ink) 3%, transparent);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--40);
	box-shadow:
		inset 0 2px 4px color-mix(in srgb, var(--wp--preset--color--ink) 16%, transparent),
		inset 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent);
}

/* --- Warning band: an alert strip with an ember accent edge --- */
.wp-block-group.is-style-ws40-warning-band {
	background-color: color-mix(in srgb, var(--wp--preset--color--ember) 12%, transparent);
	border-inline-start: 4px solid var(--wp--preset--color--ember);
	border-radius: 4px;
	padding: var(--wp--preset--spacing--40);
}

/* --- Data strip: a horizontal readout row with hairline cell dividers --- */
.wp-block-group.is-style-ws40-data-strip {
	font-family: var(--wp--preset--font-family--mono);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--wp--preset--spacing--30);
}

.wp-block-group.is-style-ws40-data-strip > * {
	margin-block: 0;
	padding-inline: var(--wp--preset--spacing--30);
	border-inline-start: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.wp-block-group.is-style-ws40-data-strip > :first-child {
	padding-inline-start: 0;
	border-inline-start: 0;
}

/* --- HUD strip: the dark instrument readout, echoing the plugin HUD --- */
.wp-block-group.is-style-ws40-hud {
	position: relative;
	background-color: var(--wp--preset--color--night);
	color: #d7eee8;
	border-radius: 14px;
	padding: var(--wp--preset--spacing--50);
	font-family: var(--wp--preset--font-family--mono);
}

.wp-block-group.is-style-ws40-hud :where(h1, h2, h3, h4, h5, h6) {
	color: #ffffff;
}

.wp-block-group.is-style-ws40-hud .is-style-ws40-eyebrow {
	color: var(--wp--preset--color--readout);
}

.wp-block-group.is-style-ws40-hud .is-style-ws40-eyebrow::before {
	border-block-start-color: var(--wp--preset--color--readout);
}

/* Corner ticks on the HUD strip — a small instrument-bezel detail. */
.wp-block-group.is-style-ws40-hud::before,
.wp-block-group.is-style-ws40-hud::after {
	content: "";
	position: absolute;
	inline-size: 14px;
	block-size: 14px;
	border-color: var(--wp--preset--color--readout);
	border-style: solid;
	opacity: 0.55;
}

.wp-block-group.is-style-ws40-hud::before {
	inset-block-start: 10px;
	inset-inline-start: 10px;
	border-width: 0;
	border-block-start-width: 2px;
	border-inline-start-width: 2px;
}

.wp-block-group.is-style-ws40-hud::after {
	inset-block-end: 10px;
	inset-inline-end: 10px;
	border-width: 0;
	border-block-end-width: 2px;
	border-inline-end-width: 2px;
}

/* --- Buttons: ghost (outline) and readout pill --- */
.wp-block-button.is-style-ws40-ghost > .wp-block-button__link {
	background-color: transparent;
	background-image: none;
	color: currentColor;
	border: 2px solid currentColor;
}

.wp-block-button.is-style-ws40-ghost > .wp-block-button__link:hover,
.wp-block-button.is-style-ws40-ghost > .wp-block-button__link:focus {
	background-color: color-mix(in srgb, currentColor 14%, transparent);
	color: currentColor;
}

.wp-block-button.is-style-ws40-readout-pill > .wp-block-button__link {
	background-color: var(--wp--preset--color--night);
	color: var(--wp--preset--color--readout);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--readout) 45%, transparent);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono);
}

.wp-block-button.is-style-ws40-readout-pill > .wp-block-button__link:hover,
.wp-block-button.is-style-ws40-readout-pill > .wp-block-button__link:focus {
	background-color: #13262b;
	color: #ffffff;
}

/* --- Images: instrument frame and duotone treatment --- */
.wp-block-image.is-style-ws40-instrument-frame img {
	border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
	border-radius: 6px;
	padding: 6px;
	background-color: color-mix(in srgb, var(--wp--preset--color--ink) 4%, transparent);
	box-sizing: border-box;
}

.wp-block-image.is-style-ws40-duotone-instrument img {
	filter: grayscale(1) contrast(1.05) sepia(0.35) hue-rotate(155deg) saturate(1.35);
}

/* --- Cover: a faint scanline overlay, like a backlit instrument panel --- */
.wp-block-cover.is-style-ws40-scanline::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background-image: repeating-linear-gradient(
		to bottom,
		transparent 0,
		transparent 2px,
		rgba(14, 26, 31, 0.10) 2px,
		rgba(14, 26, 31, 0.10) 3px
	);
}

.wp-block-cover.is-style-ws40-scanline > .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* --- Tables: instrument grid and zebra readout --- */
.wp-block-table.is-style-ws40-instrument-grid table {
	font-family: var(--wp--preset--font-family--mono);
	border-collapse: collapse;
	inline-size: 100%;
}

.wp-block-table.is-style-ws40-instrument-grid :where(th, td) {
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	padding: 0.5rem 0.75rem;
}

.wp-block-table.is-style-ws40-instrument-grid thead th {
	background-color: color-mix(in srgb, var(--wp--preset--color--barometer) 16%, transparent);
	text-align: start;
	letter-spacing: 0.04em;
}

.wp-block-table.is-style-ws40-zebra-readout table {
	font-family: var(--wp--preset--font-family--mono);
	inline-size: 100%;
	border-collapse: collapse;
}

.wp-block-table.is-style-ws40-zebra-readout :where(th, td) {
	padding: 0.5rem 0.75rem;
	border-block-end: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.wp-block-table.is-style-ws40-zebra-readout tbody tr:nth-child(even) {
	background-color: color-mix(in srgb, var(--wp--preset--color--ink) 5%, transparent);
}

/* --- Lists: checklist and spec sheet --- */
.wp-block-list.is-style-ws40-checklist {
	list-style: none;
	padding-inline-start: 0;
}

.wp-block-list.is-style-ws40-checklist li {
	position: relative;
	padding-inline-start: 1.8rem;
	margin-block-end: 0.4rem;
}

.wp-block-list.is-style-ws40-checklist li::before {
	content: "\2713"; /* check mark */
	position: absolute;
	inset-inline-start: 0;
	color: var(--wp--preset--color--barometer);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
}

.wp-block-list.is-style-ws40-spec-sheet {
	list-style: none;
	padding-inline-start: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-list.is-style-ws40-spec-sheet li {
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	padding-block: 0.35rem;
	border-block-end: 1px dashed color-mix(in srgb, currentColor 22%, transparent);
}

/* --- Live status dot utility (use a small inline element with this class) --- */
.ws40-status-dot {
	display: inline-block;
	inline-size: 0.55em;
	block-size: 0.55em;
	border-radius: 50%;
	background-color: var(--wp--preset--color--readout);
	vertical-align: middle;
	margin-inline-end: 0.4em;
	box-shadow: 0 0 0 0 rgba(95, 227, 208, 0.6);
	animation: ws40-pulse 2.4s ease-out infinite;
}

@keyframes ws40-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(95, 227, 208, 0.55); }
	70%  { box-shadow: 0 0 0 7px rgba(95, 227, 208, 0); }
	100% { box-shadow: 0 0 0 0 rgba(95, 227, 208, 0); }
}

/* --- Quality floor: keyboard focus + reduced motion --- */
:where(a, button, input, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--barometer);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ws40-status-dot {
		animation: none;
	}
}

/* ============================================================
 * Anna Weather — Custom nav menu (anna_weather_primary)
 * Replaces wp:navigation block — configured from Appearance → Menus.
 * Works regardless of Site Editor availability.
 * ============================================================ */

/* Wrapper injected by wp_nav_menu() */
.aw-nav-wrap { display: flex; align-items: center; gap: var(--wp--preset--spacing--30); flex-wrap: wrap; }
.aw-nav-wrap ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--wp--preset--spacing--30); flex-wrap: wrap; }
.aw-nav-wrap ul li { margin: 0; padding: 0; position: relative; }
.aw-nav-wrap ul li a {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	padding: 4px 2px;
	border-bottom: 2px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.aw-nav-wrap ul li a:hover,
.aw-nav-wrap ul li a:focus,
.aw-nav-wrap ul li.current-menu-item > a,
.aw-nav-wrap ul li.current-page-ancestor > a {
	border-bottom-color: var(--wp--preset--color--barometer);
	color: var(--wp--preset--color--barometer);
}

/* Dropdown */
.aw-nav-wrap ul li ul {
	display: none; position: absolute; top: calc(100% + 6px); left: 0;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 8px; padding: 6px 0; min-width: 180px;
	box-shadow: 0 4px 16px rgba(14,27,39,.10);
	flex-direction: column; gap: 0; z-index: 100;
}
.aw-nav-wrap ul li:hover > ul,
.aw-nav-wrap ul li:focus-within > ul { display: flex; }
.aw-nav-wrap ul li ul li a {
	display: block; padding: 7px 16px; border-bottom: none;
	font-size: var(--wp--preset--font-size--small);
}
.aw-nav-wrap ul li ul li a:hover { background: var(--wp--preset--color--mist); }

/* Search button (shared across all header variants) */
.aw-search-btn {
	width: 34px; height: 34px; border-radius: 7px;
	background: var(--wp--preset--color--barometer);
	border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
	color: #fff; flex-shrink: 0; text-decoration: none;
}
.aw-search-btn:hover { background: var(--wp--preset--color--deep); }
.aw-search-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Hamburger (mobile) */
.aw-hamburger {
	display: none; flex-direction: column; gap: 5px; cursor: pointer;
	background: none; border: none; padding: 4px; margin-left: 8px;
}
.aw-hamburger span { display: block; width: 22px; height: 2px; background: var(--wp--preset--color--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.aw-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aw-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.aw-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Close button (mobile overlay only — hidden on desktop) */
.aw-nav-close { display: none; }

/* Mobile overlay */
@media (max-width: 768px) {
	.aw-hamburger { display: flex; }
	.aw-nav-wrap { position: fixed; inset: 0; top: 0; background: var(--wp--preset--color--surface); z-index: 999; flex-direction: column; justify-content: center; align-items: center; display: none; }
	.aw-nav-wrap.is-open { display: flex; }
	.aw-nav-wrap ul { flex-direction: column; align-items: center; gap: var(--wp--preset--spacing--20); }
	.aw-nav-wrap ul li a { font-size: var(--wp--preset--font-size--large); }
	.aw-nav-wrap ul li ul { position: static; box-shadow: none; border: none; background: none; padding: 0; }
	.aw-nav-close { display: block; position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--wp--preset--color--ink); line-height: 1; }
}

/* Night variation: nav text color override */
.is-style-night .aw-nav-wrap ul li a { color: #cdd9de; }

@media (prefers-reduced-motion: reduce) {
	.aw-nav-wrap ul li a,
	.aw-hamburger span { transition: none; }
}

/* --- Thermometer rule: cold->warm gradient bar with fine ticks (separator block style) --- */
.wp-block-separator.is-style-ws40-thermometer {
	border: 0;
	block-size: 12px;
	max-inline-size: 100%;
	opacity: 1;
	border-radius: 7px;
	background-image:
		repeating-linear-gradient(90deg, transparent 0 7px, color-mix(in srgb, var(--wp--preset--color--ink) 15%, transparent) 7px 8px),
		linear-gradient(90deg, var(--wp--preset--color--sky), var(--wp--preset--color--readout), var(--wp--preset--color--ember));
}

/* --- Temperature scale pattern: gradient + weather icons + numbered graduations --- */
.ws40-tscale { inline-size: 100%; }
.ws40-tscale__icons,
.ws40-tscale__nums {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	justify-items: center;
}
.ws40-tscale__icons { margin-block-end: 10px; }
.ws40-tscale__icons svg { inline-size: 20px; block-size: 20px; display: block; }
.ws40-tscale__track {
	position: relative;
	block-size: 14px;
	border-radius: 7px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 16%, transparent);
	background-image:
		repeating-linear-gradient(90deg, transparent 0 7px, color-mix(in srgb, var(--wp--preset--color--ink) 15%, transparent) 7px 8px),
		linear-gradient(90deg, var(--wp--preset--color--sky), var(--wp--preset--color--readout), var(--wp--preset--color--ember));
}
.ws40-tscale__tick {
	position: absolute;
	inset-block: -3px;
	inline-size: 2px;
	background: color-mix(in srgb, var(--wp--preset--color--ink) 55%, transparent);
	transform: translateX(-50%);
}
.ws40-tscale__nums { margin-block-start: 8px; }
.ws40-tscale__nums span,
.ws40-tscale__unit {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	color: var(--wp--preset--color--slate);
	font-variant-numeric: tabular-nums;
}
.ws40-tscale__unit { text-align: end; margin-block-start: 2px; }

/* === Reveal animations (admin-controlled) ====================================
 * Active only when JS adds .aw-anim-on to <html> (gated by the enable setting
 * and prefers-reduced-motion). Targets: blocks with the "Animate" style, plus
 * top-level <main> children when scope = sections. Intensity vars (--aw-anim-*)
 * are injected inline per setting. The :not(.is-in) state pre-hides before paint.
 * ========================================================================== */
.aw-anim-on .is-style-ws40-animate,
.aw-anim-on[data-aw-scope="sections"] main > * {
	transition:
		opacity var(--aw-anim-dur, .55s) ease,
		transform var(--aw-anim-dur, .55s) cubic-bezier(.2, .7, .2, 1),
		clip-path var(--aw-anim-dur, .55s) ease;
	will-change: opacity, transform;
}

/* fade-up */
.aw-anim-on[data-aw-fx="fade-up"] .is-style-ws40-animate:not(.is-in),
.aw-anim-on[data-aw-fx="fade-up"][data-aw-scope="sections"] main > *:not(.is-in) {
	opacity: 0;
	transform: translateY(var(--aw-anim-dy, 14px));
}

/* power-on */
.aw-anim-on[data-aw-fx="power-on"] .is-style-ws40-animate:not(.is-in),
.aw-anim-on[data-aw-fx="power-on"][data-aw-scope="sections"] main > *:not(.is-in) {
	opacity: 0;
	transform: scale(var(--aw-anim-scale, .97));
}

/* scan reveal */
.aw-anim-on[data-aw-fx="scan"] .is-style-ws40-animate:not(.is-in),
.aw-anim-on[data-aw-fx="scan"][data-aw-scope="sections"] main > *:not(.is-in) {
	clip-path: inset(0 100% 0 0);
}

/* revealed (fade-up / power-on / scan) */
.aw-anim-on .is-style-ws40-animate.is-in,
.aw-anim-on[data-aw-scope="sections"] main > *.is-in {
	opacity: 1;
	transform: none;
	clip-path: inset(0 0 0 0);
}

/* stagger: the target's children enter in sequence */
.aw-anim-on[data-aw-fx="stagger"] .is-style-ws40-animate:not(.is-in) > *,
.aw-anim-on[data-aw-fx="stagger"][data-aw-scope="sections"] main > *:not(.is-in) > * {
	opacity: 0;
	transform: translateY(var(--aw-anim-dy, 14px));
}
.aw-anim-on[data-aw-fx="stagger"] .is-style-ws40-animate.is-in > *,
.aw-anim-on[data-aw-fx="stagger"][data-aw-scope="sections"] main > *.is-in > * {
	opacity: 1;
	transform: none;
	transition:
		opacity var(--aw-anim-dur, .55s) ease,
		transform var(--aw-anim-dur, .55s) cubic-bezier(.2, .7, .2, 1);
}
.aw-anim-on[data-aw-fx="stagger"] .is-in > *:nth-child(1) { transition-delay: 0s; }
.aw-anim-on[data-aw-fx="stagger"] .is-in > *:nth-child(2) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 1); }
.aw-anim-on[data-aw-fx="stagger"] .is-in > *:nth-child(3) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 2); }
.aw-anim-on[data-aw-fx="stagger"] .is-in > *:nth-child(4) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 3); }
.aw-anim-on[data-aw-fx="stagger"] .is-in > *:nth-child(5) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 4); }
.aw-anim-on[data-aw-fx="stagger"] .is-in > *:nth-child(6) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 5); }
.aw-anim-on[data-aw-fx="stagger"] .is-in > *:nth-child(7) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 6); }
.aw-anim-on[data-aw-fx="stagger"] .is-in > *:nth-child(8) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 7); }

@media (prefers-reduced-motion: reduce) {
	.aw-anim-on .is-style-ws40-animate,
	.aw-anim-on main > *,
	.aw-anim-on .is-in > * {
		opacity: 1 !important;
		transform: none !important;
		clip-path: none !important;
		transition: none !important;
	}
}

/* === Per-block effect overrides ==============================================
 * Applied to a Group via the "Animate — …" styles. Each forces its own effect
 * regardless of the global Effect setting (still gated by .aw-anim-on, i.e. the
 * master enable + reduced-motion). Apply to a (wrapper) group, e.g. around a
 * shortcode block.
 * ========================================================================== */
.aw-anim-on .is-style-ws40-anim-fade,
.aw-anim-on .is-style-ws40-anim-power,
.aw-anim-on .is-style-ws40-anim-scan {
	transition:
		opacity var(--aw-anim-dur, .55s) ease,
		transform var(--aw-anim-dur, .55s) cubic-bezier(.2, .7, .2, 1),
		clip-path var(--aw-anim-dur, .55s) ease;
	will-change: opacity, transform;
}
.aw-anim-on .is-style-ws40-anim-fade:not(.is-in) {
	opacity: 0;
	transform: translateY(var(--aw-anim-dy, 14px));
}
.aw-anim-on .is-style-ws40-anim-power:not(.is-in) {
	opacity: 0;
	transform: scale(var(--aw-anim-scale, .97));
}
.aw-anim-on .is-style-ws40-anim-scan:not(.is-in) {
	clip-path: inset(0 100% 0 0);
}
.aw-anim-on .is-style-ws40-anim-fade.is-in,
.aw-anim-on .is-style-ws40-anim-power.is-in,
.aw-anim-on .is-style-ws40-anim-scan.is-in {
	opacity: 1;
	transform: none;
	clip-path: inset(0 0 0 0);
}
.aw-anim-on .is-style-ws40-anim-stagger:not(.is-in) > * {
	opacity: 0;
	transform: translateY(var(--aw-anim-dy, 14px));
}
.aw-anim-on .is-style-ws40-anim-stagger.is-in > * {
	opacity: 1;
	transform: none;
	transition:
		opacity var(--aw-anim-dur, .55s) ease,
		transform var(--aw-anim-dur, .55s) cubic-bezier(.2, .7, .2, 1);
}
.aw-anim-on .is-style-ws40-anim-stagger.is-in > *:nth-child(1) { transition-delay: 0s; }
.aw-anim-on .is-style-ws40-anim-stagger.is-in > *:nth-child(2) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 1); }
.aw-anim-on .is-style-ws40-anim-stagger.is-in > *:nth-child(3) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 2); }
.aw-anim-on .is-style-ws40-anim-stagger.is-in > *:nth-child(4) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 3); }
.aw-anim-on .is-style-ws40-anim-stagger.is-in > *:nth-child(5) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 4); }
.aw-anim-on .is-style-ws40-anim-stagger.is-in > *:nth-child(6) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 5); }
.aw-anim-on .is-style-ws40-anim-stagger.is-in > *:nth-child(7) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 6); }
.aw-anim-on .is-style-ws40-anim-stagger.is-in > *:nth-child(8) { transition-delay: calc(var(--aw-anim-stagger, .12s) * 7); }

@media (prefers-reduced-motion: reduce) {
	.aw-anim-on [class*="is-style-ws40-anim-"],
	.aw-anim-on [class*="is-style-ws40-anim-"] > * {
		opacity: 1 !important;
		transform: none !important;
		clip-path: none !important;
		transition: none !important;
	}
}

/* === Editor only: make the (empty) page content area easy to click ===========
 * `.editor-styles-wrapper` exists only inside the block editor, so these rules
 * never affect the front end. They enlarge the empty post-content drop zone so
 * inserting blocks into a page is easy, and stop clicks from selecting the
 * surrounding template parts.
 * ========================================================================== */
.editor-styles-wrapper .wp-block-post-content {
	min-height: 220px;
}
.editor-styles-wrapper .wp-block-post-content:empty::before {
	content: "";
	display: block;
	min-height: 220px;
}
