/* Exercises archive — Qurios brand colors (scoped) */

/*
 * Page background override for this archive only.
 * Source of the site-wide black bg: Elementor Site Settings kit
 * (uploads/elementor/css/post-13.css → .elementor-kit-13 { background-color:#000000 }).
 *
 * Apply light bg only to the page canvas + catalog main. Do NOT paint Elementor
 * Theme Builder header/footer wrappers (data-elementor-type="header|footer").
 */
body.post-type-archive-exercises,
body.post-type-archive-exercises.elementor-kit-13 {
	background-color: #f8fafc !important;
}

body.post-type-archive-exercises #content.exercises-archive,
body.post-type-archive-exercises main.exercises-archive,
body.post-type-archive-exercises .site-main.exercises-archive {
	background-color: #f8fafc !important;
}

/*
 * Light theme for Theme Builder header only on this archive.
 * Footer keeps the site's original dark styling.
 */
html body.post-type-archive-exercises [data-elementor-type="header"],
html body.post-type-archive-exercises .elementor-location-header,
html body.post-type-archive-exercises .elementor-location-header .elementor-section,
html body.post-type-archive-exercises .elementor-location-header .e-con,
html body.post-type-archive-exercises .elementor-location-header .elementor-element {
	background-color: #f8fafc !important;
	background-image: none !important;
}

/* Nav / text: override Elementor + Royal Addons menu white text */
html body.post-type-archive-exercises [data-elementor-type="header"] *,
html body.post-type-archive-exercises .elementor-location-header *,
html body.post-type-archive-exercises .elementor-location-header .wpr-menu-item,
html body.post-type-archive-exercises .elementor-location-header .wpr-nav-menu .wpr-menu-item,
html body.post-type-archive-exercises .elementor-location-header .wpr-nav-menu > .menu-item-has-children > .wpr-sub-icon,
html body.post-type-archive-exercises .elementor-location-header .wpr-menu-item:hover,
html body.post-type-archive-exercises .elementor-location-header .wpr-menu-item.wpr-active-menu-item,
html body.post-type-archive-exercises .elementor-location-header .wpr-mobile-menu-item,
html body.post-type-archive-exercises .elementor-location-header .wpr-mobile-nav-menu a,
html body.post-type-archive-exercises .elementor-location-header .elementor-heading-title,
html body.post-type-archive-exercises .elementor-location-header a,
html body.post-type-archive-exercises .elementor-606 .wpr-nav-menu .wpr-menu-item,
html body.post-type-archive-exercises .elementor-606 .wpr-nav-menu > .menu-item-has-children > .wpr-sub-icon {
	color: #383939 !important;
	fill: #383939 !important;
}

/* Contact Us button — beat Elementor secondary blue (#77C6FF) */
html body.post-type-archive-exercises [data-elementor-type="header"] .elementor-button,
html body.post-type-archive-exercises [data-elementor-type="header"] a.elementor-button,
html body.post-type-archive-exercises [data-elementor-type="header"] .elementor-button-link,
html body.post-type-archive-exercises .elementor-location-header .elementor-button,
html body.post-type-archive-exercises .elementor-location-header a.elementor-button,
html body.post-type-archive-exercises .elementor-location-header .elementor-button-link,
html body.post-type-archive-exercises .elementor-location-header .elementor-button:hover,
html body.post-type-archive-exercises .elementor-location-header .elementor-button:focus,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button:hover,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button:focus {
	background-color: #383939 !important;
	background-image: none !important;
	color: #ffffff !important;
	fill: #ffffff !important;
	border-color: #383939 !important;
}

html body.post-type-archive-exercises [data-elementor-type="header"] .elementor-button *,
html body.post-type-archive-exercises [data-elementor-type="header"] .elementor-button-link *,
html body.post-type-archive-exercises .elementor-location-header .elementor-button *,
html body.post-type-archive-exercises .elementor-location-header .elementor-button-link *,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button * {
	color: #ffffff !important;
	fill: #ffffff !important;
}

/* Mobile burger (Royal Addons) — lines use primary white; force dark on light header */
html body.post-type-archive-exercises .elementor-location-header .wpr-mobile-toggle,
html body.post-type-archive-exercises .elementor-606 .wpr-mobile-toggle,
html body.post-type-archive-exercises .elementor-location-header .wpr-mobile-toggle:hover,
html body.post-type-archive-exercises .elementor-606 .wpr-mobile-toggle:hover {
	color: #383939 !important;
	border-color: #383939 !important;
}

html body.post-type-archive-exercises .elementor-location-header .wpr-mobile-toggle-line,
html body.post-type-archive-exercises .elementor-606 .wpr-mobile-toggle-line,
html body.post-type-archive-exercises .elementor-location-header .wpr-mobile-toggle:hover .wpr-mobile-toggle-line,
html body.post-type-archive-exercises .elementor-606 .wpr-mobile-toggle:hover .wpr-mobile-toggle-line,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-fbc2dff .wpr-mobile-toggle-line,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-fbc2dff .wpr-mobile-toggle:hover .wpr-mobile-toggle-line {
	background-color: #383939 !important;
}

html body.post-type-archive-exercises .elementor-location-header .wpr-mobile-toggle-text,
html body.post-type-archive-exercises .elementor-606 .wpr-mobile-toggle-text,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-fbc2dff .wpr-mobile-toggle-text,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-fbc2dff .wpr-mobile-toggle:hover .wpr-mobile-toggle-text {
	color: #383939 !important;
}

/* Logo: invert light-on-dark assets if they vanish on the light header */
html body.post-type-archive-exercises .elementor-location-header .elementor-widget-theme-site-logo img,
html body.post-type-archive-exercises .elementor-location-header .elementor-widget-image img {
	/* Uncomment if the logo is white/light and disappears:
	filter: brightness(0) saturate(100%) !important;
	*/
}

.exercises-archive {
	--q-bg: #f8fafc;
	--q-action: #383939;
	--q-action-hover: #4a4b4b;
	--q-accent: #237481;
	--q-text: #1a1a1a;
	--q-border: #d9dee3;
	--q-tag-bg: rgba(35, 116, 129, 0.12);

	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
	box-sizing: border-box;
	background: var(--q-bg) !important;
	color: var(--q-text) !important;
}

.exercises-archive *,
.exercises-archive *::before,
.exercises-archive *::after {
	box-sizing: border-box;
}

.exercises-archive__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 1.5rem;
}

.exercises-archive__title,
h2.exercises-archive__title {
	margin: 0 0 1.25rem !important;
	max-height: none !important;
	width: 100%;
	font-size: 36px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	text-align: center !important;
	overflow: visible;
	color: var(--q-text) !important;
}

/* Search — Google-style pill controls, 50px tall, centered */
.exercises-archive__search {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
}

.exercises-archive__search-input {
	flex: 1;
	min-width: 0;
	height: 50px !important;
	padding: 0 1.25rem !important;
	border: 1px solid var(--q-border) !important;
	border-radius: 999px !important;
	font: inherit;
	font-size: 1rem !important;
	line-height: 1.2 !important;
	background: #ffffff !important;
	color: var(--q-text) !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.exercises-archive__search-input:hover {
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12) !important;
}

.exercises-archive__search-input:focus {
	outline: none !important;
	border-color: var(--q-accent) !important;
	box-shadow: 0 1px 6px rgba(35, 116, 129, 0.25) !important;
}

.exercises-archive__search-btn {
	height: 50px !important;
	padding: 0 1.5rem !important;
	border: 1px solid var(--q-action) !important;
	border-radius: 999px !important;
	background: var(--q-action) !important;
	color: #ffffff !important;
	font: inherit;
	font-size: 0.95rem !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.exercises-archive__search-btn:hover {
	background: var(--q-action-hover) !important;
	border-color: var(--q-action-hover) !important;
	color: #ffffff !important;
}

.exercises-archive__search-btn:focus {
	outline: 2px solid var(--q-accent) !important;
	outline-offset: 2px;
}

/* Selected filters / chips — collapse fully when empty (no reserved gap) */
.exercises-archive__selected {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	min-height: 0;
	margin-bottom: 0;
	width: 100%;
}

.exercises-archive__selected:has(.exercises-archive__chip),
.exercises-archive__selected:has(.exercises-archive__clear.is-visible:not([hidden])) {
	min-height: 2rem;
	margin-top: 0.25rem;
}

.exercises-archive__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	flex: 1;
	min-width: 0;
}

.exercises-archive__chip {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	height: 45px !important;
	padding: 0 1rem !important;
	border: 1px solid #237481 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: #237481 !important;
	font: inherit;
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
}

.exercises-archive__chip:hover {
	background: rgba(35, 116, 129, 0.08) !important;
	border-color: #1c5f6a !important;
	color: #1c5f6a !important;
}

.exercises-archive__chip-remove {
	display: inline;
	width: auto;
	height: auto;
	padding: 0;
	margin: 0;
	border: none !important;
	background: transparent !important;
	font-size: 1.1em;
	line-height: 1;
	pointer-events: none;
	color: #237481 !important;
}

.exercises-archive__chip:hover .exercises-archive__chip-remove {
	color: #1c5f6a !important;
}

/* Clear filters — similar size/look to chips, but own styles (chips may change separately) */
.exercises-archive__clear {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	height: 45px !important;
	padding: 0 1rem !important;
	border: 1px solid #237481 !important;
	border-radius: 999px !important;
	background: #237481 !important;
	color: #ffffff !important;
	font: inherit;
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
	order: -1;
}

.exercises-archive__clear.is-visible {
	display: inline-flex;
}

.exercises-archive__clear:hover {
	background: #1c5f6a !important;
	border-color: #1c5f6a !important;
	color: #ffffff !important;
}

.exercises-archive__clear:focus {
	outline: 2px solid #237481 !important;
	outline-offset: 2px;
}

/* Two-column layout */
.exercises-archive__layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 2rem;
	align-items: start;
	position: relative;
}

/* Mobile filter toggle — hidden on desktop */
.exercises-archive__filters-bar {
	display: none;
}

.exercises-archive__filters-apply-wrap {
	display: none;
}

.exercises-archive__sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.exercises-archive__filter-block {
	border: none !important;
	border-radius: 16px !important;
	padding: 0.75rem;
	background: var(--q-bg) !important;
}

.exercises-archive__filter-block + .exercises-archive__filter-block {
	margin-top: 0;
}

/* Accordion */
.exercises-archive__accordion-item {
	border-bottom: 1px solid var(--q-border) !important;
}

.exercises-archive__accordion-item:last-child {
	border-bottom: none !important;
}

.exercises-archive__accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.75rem 1rem;
	border: none !important;
	border-left: 3px solid transparent !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--q-text) !important;
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.exercises-archive__accordion-header:hover {
	background: rgba(35, 116, 129, 0.06) !important;
	color: var(--q-accent) !important;
	border-radius: 0 !important;
}

.exercises-archive__accordion-item.is-open .exercises-archive__accordion-header {
	color: var(--q-accent) !important;
	border-left-color: var(--q-accent) !important;
	border-radius: 0 !important;
}

.exercises-archive__accordion-header:focus {
	outline: 2px solid var(--q-accent) !important;
	outline-offset: -2px;
}

.exercises-archive__accordion-icon {
	font-size: 1.1rem;
	line-height: 1;
	color: #666666 !important;
	font-weight: 400;
}

.exercises-archive__accordion-item.is-open .exercises-archive__accordion-icon {
	color: var(--q-accent) !important;
}

.exercises-archive__accordion-body {
	display: none;
	padding: 0 1rem 0.85rem;
}

.exercises-archive__accordion-item.is-open .exercises-archive__accordion-body {
	display: block;
}

.exercises-archive__term-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.exercises-archive__term-list li {
	margin: 0;
}

.exercises-archive__term-list label {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	padding: 16px 6px;
	margin: 0 -6px;
	border-radius: 4px;
	font-size: 0.9rem;
	cursor: pointer;
	line-height: 1.35;
	color: var(--q-text) !important;
	transition: background-color 0.15s ease;
}

.exercises-archive__term-list label:hover {
	background: rgba(35, 116, 129, 0.08) !important;
	color: var(--q-accent) !important;
}

.exercises-archive__term-list input[type="checkbox"] {
	margin-top: 0.15rem;
	flex-shrink: 0;
	accent-color: var(--q-accent) !important;
}

.exercises-archive__term-list input[type="checkbox"]:focus {
	outline: 2px solid var(--q-accent) !important;
	outline-offset: 1px;
}

.exercises-archive__empty-terms {
	margin: 0;
	font-size: 0.85rem;
	color: #666666 !important;
}

/* Card grid */
.exercises-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.exercises-archive__card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 420px;
	border: 1px solid var(--q-border) !important;
	border-radius: 24px !important;
	background: #ffffff !important;
	color: var(--q-text) !important;
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.35s ease;
}

.exercises-archive__card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	text-indent: -9999px;
	overflow: hidden;
}

/* Bookmark + tags stay on one row; bookmark does not sit alone on its own line. */
.exercises-archive__card-meta {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	flex: 1;
}

.exercises-archive__card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.exercises-archive__card-bookmark,
.exercises-archive__card-bookmark:disabled {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #383939 !important;
	opacity: 1 !important;
	cursor: pointer;
}

.exercises-archive__card-bookmark:hover,
.exercises-archive__card-bookmark:disabled:hover {
	background: transparent !important;
	color: var(--q-accent) !important;
}

.exercises-archive__card-bookmark:focus {
	outline: 2px solid var(--q-accent) !important;
	outline-offset: 2px;
}

.exercises-archive__card-bookmark svg {
	display: block !important;
	width: 1.25rem !important;
	height: 1.25rem !important;
	stroke: currentColor !important;
	fill: none !important;
	color: inherit !important;
}

/* Image fills leftover space; body sizes to content and grows on hover. */
.exercises-archive__card-media {
	display: block;
	flex: 1 1 auto;
	min-height: 72px;
	background: #ffffff !important;
	overflow: hidden;
}

.exercises-archive__card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Muted / semi B&W at rest; full color on card hover */
	filter: grayscale(0.55) saturate(0.35) brightness(0.96);
	transform: scale(1.001); /* avoid subpixel filter flicker */
	transition: filter 0.4s ease-in-out;
}

.exercises-archive__card:hover .exercises-archive__card-media img,
.exercises-archive__card.is-hovered .exercises-archive__card-media img {
	filter: none;
}

.exercises-archive__card-media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #f3f5f7 !important;
}

.exercises-archive__card-body {
	--card-ease: cubic-bezier(0.33, 1, 0.68, 1);
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 0.85rem 1rem 1rem;
	flex: 0 0 auto;
	min-height: 0;
	background: #ffffff !important;
	/* No padding animation — it caused layout jumps with the excerpt expand */
}

/* Title was 1rem (same as body text); force h4-scale 24px over Elementor kit. */
.exercises-archive__card-title,
h4.exercises-archive__card-title {
	margin: 0 !important;
	min-width: 0;
	max-height: none !important;
	font-family: inherit !important;
	font-size: 24px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--q-text) !important;
	text-decoration: none !important;
}

.exercises-archive__card:hover .exercises-archive__card-title {
	color: var(--q-text) !important;
	text-decoration: none !important;
}

/*
 * Excerpt: 3-line clamp + ellipsis at rest; expands on hover.
 * Clamp is toggled via .is-hovered / .is-collapsing (JS) so height can
 * finish animating before ellipsis returns — avoids the 2-stage snap.
 */
.exercises-archive__card-excerpt {
	margin: 0 !important;
	font-size: 0.875rem !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: #555555 !important;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	max-height: 3.675em; /* 3 lines */
	transition: max-height 0.4s ease-in-out;
}

.exercises-archive__card.is-hovered .exercises-archive__card-excerpt,
.exercises-archive__card.is-collapsing .exercises-archive__card-excerpt {
	-webkit-line-clamp: unset;
	display: block;
	overflow: hidden;
}

.exercises-archive__card.is-hovered .exercises-archive__card-excerpt {
	max-height: 9.8em; /* ~7 lines */
}

.exercises-archive__card.is-collapsing .exercises-archive__card-excerpt {
	max-height: 3.675em;
}

.exercises-archive__card-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0;
	min-width: 0;
}

.exercises-archive__tag {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border: 1px solid #237481 !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-color: transparent !important;
	font-size: 0.75rem;
	line-height: 1.3;
	color: #237481 !important;
}

/*
 * EXPERIMENT: extra hover tags disabled in PHP for now (always 2 tags).
 * Styles kept so restoring the PHP loop brings the animation back.
 */
.exercises-archive__card-tags-more {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	max-width: 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	vertical-align: middle;
	pointer-events: none;
	transition:
		max-width 0.7s var(--card-ease),
		max-height 0.7s var(--card-ease),
		opacity 0.5s ease,
		gap 0.65s var(--card-ease);
}

.exercises-archive__card:hover .exercises-archive__card-tags-more {
	max-width: 18rem;
	max-height: 4rem;
	opacity: 1;
	gap: 0.35rem;
	pointer-events: auto;
}

.exercises-archive__card-arrow {
	/* TEMP: hide hover arrow so card footer stays still while excerpt expands */
	display: none !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 0;
	height: 1.75rem;
	opacity: 0;
	overflow: hidden;
	color: #237481 !important;
	transform: translateX(-6px);
	pointer-events: none;
	transition:
		width 0.65s var(--card-ease),
		opacity 0.5s ease,
		transform 0.65s var(--card-ease);
}

.exercises-archive__card:hover .exercises-archive__card-arrow {
	/* TEMP: arrow disabled — keep rule for easy restore */
	width: 0;
	opacity: 0;
	transform: translateX(-6px);
	pointer-events: none;
}

.exercises-archive__card-arrow svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	stroke: currentColor;
}

.exercises-archive__no-results {
	margin: 0;
	color: #666666 !important;
}

.exercises-archive.is-loading [data-exercises-results] {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.exercises-archive__pagination {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.75rem;
	color: var(--q-text) !important;
}

.exercises-archive__pagination a {
	color: var(--q-accent) !important;
}

.exercises-archive__pagination a:hover {
	color: var(--q-action) !important;
}

.exercises-archive__pagination .current {
	color: var(--q-text) !important;
	border-color: var(--q-border) !important;
}

/* Responsive — tablet + mobile: filters behind toggle dropdown */
@media (max-width: 960px) {
	.exercises-archive__layout {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.exercises-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.exercises-archive__filters-bar {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		grid-column: 1;
	}

	.exercises-archive__filters-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		height: 44px;
		padding: 0 0.9rem;
		border: none !important;
		border-radius: 999px !important;
		background: #ffffff !important;
		color: #383939 !important;
		font: inherit;
		font-size: 0.95rem !important;
		font-weight: 600 !important;
		line-height: 1 !important;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
		cursor: pointer;
	}

	.exercises-archive__filters-toggle svg {
		display: block !important;
		width: 1.25rem !important;
		height: 1.25rem !important;
		stroke: currentColor !important;
		fill: none !important;
		flex-shrink: 0;
	}

	.exercises-archive__filters-toggle[aria-expanded="true"] {
		color: #237481 !important;
	}

	.exercises-archive__filters-count {
		display: none;
		align-items: center;
		justify-content: center;
		min-width: 1.25rem;
		height: 1.25rem;
		padding: 0 0.35rem;
		border-radius: 999px;
		background: #237481 !important;
		color: #ffffff !important;
		font-size: 0.7rem !important;
		font-weight: 700 !important;
		line-height: 1 !important;
	}

	.exercises-archive__filters-count.is-visible {
		display: inline-flex;
	}

	.exercises-archive__sidebar {
		display: none;
		position: absolute;
		top: 3.25rem;
		left: 0;
		right: 0;
		z-index: 40;
		max-height: min(70vh, 560px);
		overflow-y: auto;
		padding: 0.75rem;
		border-radius: 16px;
		background: #ffffff !important;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14) !important;
		gap: 1rem;
	}

	.exercises-archive.is-filters-open .exercises-archive__sidebar {
		display: flex;
	}

	.exercises-archive__filters-apply-wrap {
		display: block;
		position: sticky;
		bottom: 0;
		padding-top: 0.75rem;
		background: linear-gradient(to top, #ffffff 70%, rgba(255, 255, 255, 0));
	}

	.exercises-archive__filters-apply {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 50px;
		padding: 0 1.25rem;
		border: none !important;
		border-radius: 999px !important;
		background: #383939 !important;
		color: #ffffff !important;
		font: inherit;
		font-size: 0.95rem !important;
		font-weight: 600 !important;
		line-height: 1 !important;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
		cursor: pointer;
	}

	.exercises-archive__filters-apply:hover,
	.exercises-archive__filters-apply:focus {
		background: #4a4b4b !important;
		color: #ffffff !important;
	}

	.exercises-archive__filters-apply:focus {
		outline: 2px solid #237481 !important;
		outline-offset: 2px;
	}
}

@media (max-width: 720px) {
	.exercises-archive__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   EXPERIMENT: shadow-only surfaces (no borders)
   Search field/button, filter blocks, exercise cards — border off, shadow on.
   To revert: delete or comment out this entire EXPERIMENT block.
   Original border rules above remain untouched.
   ========================================================================== */
.exercises-archive__search-input,
.exercises-archive__search-btn,
.exercises-archive__filter-block,
.exercises-archive__card {
	border-color: transparent !important;
	border-width: 0 !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.exercises-archive__filter-block,
.exercises-archive__card,
.exercises-archive__card-body,
.exercises-archive__card-media {
	background: #ffffff !important;
}

.exercises-archive__filter-block {
	border: none !important;
	border-radius: 16px !important;
}

.exercises-archive__card {
	border-radius: 24px !important;
}

.exercises-archive__search-input:hover,
.exercises-archive__search-btn:hover,
.exercises-archive__filter-block:hover,
.exercises-archive__card:hover {
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12) !important;
}

.exercises-archive__search-input:focus {
	border-color: transparent !important;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12) !important;
}

.exercises-archive__search-btn:focus {
	/* keep accent outline for a11y; no gray/black border ring */
	border-color: transparent !important;
}
/* ===== END EXPERIMENT ===== */

/* ==========================================================================
   EXPERIMENT: magenta (#981193) — header Contact Us + catalog Search button
   Header CTA: transparent bg, text + border #981193
   Search btn: solid fill #981193
   To revert: delete or comment out this entire EXPERIMENT block.
   Original button rules above remain untouched.
   ========================================================================== */
html body.post-type-archive-exercises [data-elementor-type="header"] .elementor-button,
html body.post-type-archive-exercises [data-elementor-type="header"] a.elementor-button,
html body.post-type-archive-exercises [data-elementor-type="header"] .elementor-button-link,
html body.post-type-archive-exercises .elementor-location-header .elementor-button,
html body.post-type-archive-exercises .elementor-location-header a.elementor-button,
html body.post-type-archive-exercises .elementor-location-header .elementor-button-link,
html body.post-type-archive-exercises .elementor-location-header .elementor-button:hover,
html body.post-type-archive-exercises .elementor-location-header .elementor-button:focus,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button:hover,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button:focus {
	background-color: transparent !important;
	background-image: none !important;
	color: #981193 !important;
	fill: #981193 !important;
	border-color: #981193 !important;
	border-width: 1px !important;
	border-style: solid !important;
}

html body.post-type-archive-exercises [data-elementor-type="header"] .elementor-button *,
html body.post-type-archive-exercises [data-elementor-type="header"] .elementor-button-link *,
html body.post-type-archive-exercises .elementor-location-header .elementor-button *,
html body.post-type-archive-exercises .elementor-location-header .elementor-button-link *,
html body.post-type-archive-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button * {
	color: #981193 !important;
	fill: #981193 !important;
}

.exercises-archive__search-btn,
.exercises-archive__search-btn:hover,
.exercises-archive__search-btn:focus {
	background: #981193 !important;
	background-color: #981193 !important;
	border-color: #981193 !important;
	border-width: 1px !important;
	color: #ffffff !important;
}
/* ===== END EXPERIMENT: magenta buttons ===== */

/* ==========================================================================
   EXPERIMENT: unified search field (input + button as one control)
   Styles go on the form container; input is bare; button sits inside.
   To revert: delete or comment out this entire EXPERIMENT block.
   Original search rules above remain untouched.
   ========================================================================== */
.exercises-archive__search {
	gap: 0.35rem !important;
	height: 50px;
	padding: 0 0.35rem 0 0.25rem;
	border-radius: 999px !important;
	background: #ffffff !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
	overflow: hidden;
}

.exercises-archive__search:focus-within {
	box-shadow: 0 1px 6px rgba(152, 17, 147, 0.28) !important;
}

.exercises-archive__search-input,
.exercises-archive__search-input:hover,
.exercises-archive__search-input:focus {
	height: 100% !important;
	padding: 0 1rem !important;
	border: none !important;
	border-width: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}

.exercises-archive__search-btn,
.exercises-archive__search-btn:hover,
.exercises-archive__search-btn:focus {
	flex-shrink: 0;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 1.25rem !important;
	border: none !important;
	border-width: 0 !important;
	border-radius: 999px !important;
	background: #981193 !important;
	background-color: #981193 !important;
	box-shadow: none !important;
	outline: none !important;
	color: #ffffff !important;
}

.exercises-archive__search-btn:hover {
	background: #7a0e76 !important;
	background-color: #7a0e76 !important;
	color: #ffffff !important;
}

.exercises-archive__search-btn:focus {
	outline: 2px solid #981193 !important;
	outline-offset: 1px;
	color: #ffffff !important;
}
/* ===== END EXPERIMENT: unified search field ===== */
