/**
 * Site-wide flat controls.
 *
 * Shadows are removed only from interactive controls and button-like labels;
 * cards, menus, dialogs and other structural surfaces retain their depth.
 */
:where(
	button,
	input[type="button"],
	input[type="reset"],
	input[type="submit"],
	input[type="image"],
	[role="button"],
	a.button,
	.cs-button,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-search__button,
	.more-link,
	.comment-reply-link,
	.cs-search__submit,
	.cs-scroll-top,
	.ra-video-filters__item,
	.navigation.pagination .nav-links > *,
	.post-page-numbers,
	.wp-block-tag-cloud a,
	.is-style-cs-category-grid > .wp-block-group > .wp-block-group p > a,
	.cs-categories-list__wrapper .cs-category-item
),
:where(
	button,
	input[type="button"],
	input[type="reset"],
	input[type="submit"],
	input[type="image"],
	[role="button"],
	a.button,
	.cs-button,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-search__button,
	.more-link,
	.comment-reply-link,
	.cs-search__submit,
	.cs-scroll-top,
	.ra-video-filters__item,
	.navigation.pagination .nav-links > *,
	.post-page-numbers,
	.wp-block-tag-cloud a,
	.is-style-cs-category-grid > .wp-block-group > .wp-block-group p > a,
	.cs-categories-list__wrapper .cs-category-item
):hover,
:where(
	button,
	input[type="button"],
	input[type="reset"],
	input[type="submit"],
	input[type="image"],
	[role="button"],
	a.button,
	.cs-button,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-search__button,
	.more-link,
	.comment-reply-link,
	.cs-search__submit,
	.cs-scroll-top,
	.ra-video-filters__item,
	.navigation.pagination .nav-links > *,
	.post-page-numbers,
	.wp-block-tag-cloud a,
	.is-style-cs-category-grid > .wp-block-group > .wp-block-group p > a,
	.cs-categories-list__wrapper .cs-category-item
):focus,
:where(
	button,
	input[type="button"],
	input[type="reset"],
	input[type="submit"],
	input[type="image"],
	[role="button"],
	a.button,
	.cs-button,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-search__button,
	.more-link,
	.comment-reply-link,
	.cs-search__submit,
	.cs-scroll-top,
	.ra-video-filters__item,
	.navigation.pagination .nav-links > *,
	.post-page-numbers,
	.wp-block-tag-cloud a,
	.is-style-cs-category-grid > .wp-block-group > .wp-block-group p > a,
	.cs-categories-list__wrapper .cs-category-item
):active {
	box-shadow: none !important;
	filter: none !important;
	text-shadow: none !important;
}

/* Theme shadows that are drawn on a control's pseudo-element. */
:where(
	button,
	[role="button"],
	.cs-button,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-search__button,
	.more-link,
	.comment-reply-link,
	.cs-search__submit,
	.cs-scroll-top,
	.ra-video-filters__item,
	.navigation.pagination .nav-links > *,
	.post-page-numbers
)::before,
:where(
	button,
	[role="button"],
	.cs-button,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-search__button,
	.more-link,
	.comment-reply-link,
	.cs-search__submit,
	.cs-scroll-top,
	.ra-video-filters__item,
	.navigation.pagination .nav-links > *,
	.post-page-numbers
)::after,
.cs-entry__post-meta .cs-meta-category .post-categories li a::after,
.cs-latest-posts-slider__button-prev::before,
.cs-latest-posts-slider__button-next::before,
.cs-hero-type-2__button-prev::before,
.cs-hero-type-2__button-next::before {
	box-shadow: none !important;
	filter: none !important;
}

/* The YouTube play symbol used a drop shadow rather than box-shadow. */
.ra-post-video__play {
	filter: none !important;
}

/* Revision uses a gradient pseudo-layer on hover for this button. */
.cs-load-more::before {
	background-image: none !important;
}

/* Filled actions use a single accent colour instead of a raised gradient. */
:where(
	input[type="button"],
	input[type="reset"],
	input[type="submit"],
	a.button,
	.cs-button,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-search__button,
	.more-link,
	.cs-search__submit,
	.cs-load-more
) {
	background-color: var(--cs-color-accent, #5955d1) !important;
	background-image: none !important;
}

:where(
	input[type="button"],
	input[type="reset"],
	input[type="submit"],
	a.button,
	.cs-button,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-search__button,
	.more-link,
	.cs-search__submit,
	.cs-load-more
):hover {
	background-color: #4945b8 !important;
}

.ra-video-filters__item.is-active,
.ra-video-filters__item.is-active:hover {
	background-color: rgba(42, 43, 50, 0.9) !important;
	background-image: none !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent !important;
}

/* Keep the archive filters flat instead of lifting them on hover. */
.ra-video-filters__item,
.ra-video-filters__item:hover,
.ra-video-filters__item:focus,
.ra-video-filters__item:active {
	transform: none;
}

/* Restore a clear keyboard focus cue without reintroducing depth. */
:where(
	button,
	input[type="button"],
	input[type="reset"],
	input[type="submit"],
	input[type="image"],
	[role="button"],
	a.button,
	.cs-button,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-search__button,
	.more-link,
	.comment-reply-link,
	.cs-search__submit,
	.cs-scroll-top,
	.ra-video-filters__item,
	.navigation.pagination .nav-links > *,
	.post-page-numbers
):focus-visible {
	outline: 2px solid var(--cs-color-accent, #5d55df) !important;
	outline-offset: 3px;
}
