/**
 * W3SH modern appearance layer.
 * Custom values are provided by inc/customizer-appearance.php.
 */

:root {
	--w3sh-thumbnail-radius: 14px;
	--w3sh-card-radius: 16px;
	--w3sh-grid-gap: 24px;
	--w3sh-grid-half-gap: 12px;
	--w3sh-slider-radius: 18px;
	--w3sh-grid-edge: 0px;
	--w3sh-hover-overlay-opacity: 0.35;
	--ga-one-category-description-size: 11px;
	--ga-one-category-cards-spacing: 48px;
}

/* Category introduction controls: exact gap from description to first cards. */
body.category .archive-header .post-meta {
	font-size: var(--ga-one-category-description-size);
}

body.category .archive-header:not(:empty) {
	padding-top: 32px;
	padding-bottom: 0;
}

body.category .archive-header .ga-one-category-heading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 1.4vw, 20px);
	max-width: 100%;
}

body.category .archive-header .ga-one-category-image {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	max-height: 52px;
	max-width: none;
	object-fit: contain;
}

body.category .masonry-list-wrapper,
body.category #main > .standard-list {
	margin-top: var(--ga-one-category-cards-spacing);
}

/* Keep static page headings compact without changing article or archive headers. */
body.page .main-holder > .post-header:not(:empty) {
	padding-block: 2rem;
}

body.page .main-holder > #main article.page .post-content:not(:empty) {
	padding-top: 2rem;
}

button.search-button {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
}

/* Adjustable cover-card veil; Daze hard-codes this to 80%. */
.masonry-item .cover-item:hover .featured-img .overlay,
.masonry-item .cover-item:focus-within .featured-img .overlay {
	background: rgba(0, 0, 0, var(--w3sh-hover-overlay-opacity));
}

/* Replace the cover-card metadata with one clear action on interaction. */
.masonry-item .cover-item .post-header > * {
	transition: opacity 160ms ease;
}

.masonry-item .cover-item:hover .post-header > *:not(h3),
.masonry-item .cover-item:focus-within .post-header > *:not(h3) {
	opacity: 0;
	pointer-events: none;
}

.masonry-item .cover-item:hover .post-header h3,
.masonry-item .cover-item:focus-within .post-header h3 {
	margin: 0;
}

.masonry-item .cover-item:hover .post-title,
.masonry-item .cover-item:focus-within .post-title {
	display: inline-block;
	font-size: 0;
	line-height: 1;
}

.masonry-item .cover-item:hover .post-title::after,
.masonry-item .cover-item:focus-within .post-title::after {
	content: "Lire l’article";
	display: inline-block;
	color: #fff;
	font-size: clamp(30px, 2.4vw, 48px);
	font-weight: 700;
	line-height: 1.05;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Clear call to action on the image of standard cards (home and archives). */
.masonry-item article:not(.cover-item) .featured-img > a {
	position: relative;
	display: block;
	overflow: hidden;
}

.masonry-item article:not(.cover-item) .featured-img > a::before,
.masonry-item article:not(.cover-item) .featured-img > a::after {
	position: absolute;
	z-index: 2;
	opacity: 0;
	pointer-events: none;
	transition: opacity 160ms ease;
}

.masonry-item article:not(.cover-item) .featured-img > a::before {
	content: "";
	inset: 0;
	background: rgba(0, 0, 0, var(--w3sh-hover-overlay-opacity));
}

.masonry-item article:not(.cover-item) .featured-img > a::after {
	content: "Lire l’article";
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 40px);
	color: #fff;
	font-size: clamp(28px, 2.2vw, 46px);
	font-weight: 700;
	line-height: 1.05;
	text-align: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.masonry-item article:not(.cover-item) .featured-img > a:hover::before,
.masonry-item article:not(.cover-item) .featured-img > a:hover::after,
.masonry-item article:not(.cover-item) .featured-img > a:focus-visible::before,
.masonry-item article:not(.cover-item) .featured-img > a:focus-visible::after {
	opacity: 1;
}

/* Match Daze's hover dropdown on desktop when navigating with the keyboard. */
@media only screen and (min-width: 1180px) {
	#site-header li.menu-item-has-children:focus-within > .sub-menu {
		z-index: 1002;
		opacity: 1;
	}

	#site-header nav li.menu-item-has-children:focus-within > svg polyline {
		fill: #fff;
		stroke: #e8e8e8;
	}
}

/* Only archive/list thumbnails are rounded; article images and logos are untouched. */
.w3sh-thumbnails-rounded .masonry-item article.post .featured-img,
.w3sh-thumbnails-rounded .masonry-item article.post .featured-img img,
.w3sh-thumbnails-rounded .masonry-item article.post .featured-gallery,
.w3sh-thumbnails-rounded .masonry-item article.post .featured-gallery .img-wrapper,
.w3sh-thumbnails-rounded .masonry-item article.post .featured-gallery img,
.w3sh-thumbnails-rounded .masonry-item.image-box,
.w3sh-thumbnails-rounded .masonry-item.image-box img,
.w3sh-thumbnails-rounded .standard-list .featured-img,
.w3sh-thumbnails-rounded .standard-list .featured-img img,
.w3sh-thumbnails-rounded .tiny .thumb,
.w3sh-thumbnails-rounded .tiny .thumb img {
	border-radius: var(--w3sh-thumbnail-radius);
}

.w3sh-thumbnails-rounded .masonry-item article.post .featured-img,
.w3sh-thumbnails-rounded .masonry-item article.post .featured-gallery,
.w3sh-thumbnails-rounded .masonry-item.image-box,
.w3sh-thumbnails-rounded .standard-list .featured-img,
.w3sh-thumbnails-rounded .tiny .thumb {
	overflow: hidden;
}

/* Cards and grid rhythm. */
.masonry-list-wrapper {
	box-sizing: border-box;
	--ga-one-masonry-columns: 1;
	width: calc(100% - var(--w3sh-grid-edge) - var(--w3sh-grid-edge) + var(--w3sh-grid-gap));
	margin-right: calc(var(--w3sh-grid-edge) - var(--w3sh-grid-half-gap));
	margin-left: calc(var(--w3sh-grid-edge) - var(--w3sh-grid-half-gap));
	overflow: visible;
}

/*
 * One column-width contract for both the initial CSS layout and Masonry.
 * This comes after Daze's historical 50% rule, preventing its first layout
 * from briefly using two columns before the image-driven relayout.
 */
.masonry-list-wrapper .masonry-item-sizer,
.masonry-list-wrapper .masonry-item-wrapper {
	width: calc(100% / var(--ga-one-masonry-columns));
}

@media only screen and (min-width: 768px) {
	.masonry-list-wrapper {
		--ga-one-masonry-columns: 2;
	}
}

@media only screen and (min-width: 1024px) {
	.masonry-list-wrapper.three-columns {
		--ga-one-masonry-columns: 3;
	}
}

.masonry-item-wrapper {
	box-sizing: border-box;
	padding-right: var(--w3sh-grid-half-gap);
	padding-bottom: var(--w3sh-grid-gap);
	padding-left: var(--w3sh-grid-half-gap);
}

/* Optional, site-specific call to action for the companion web app. */
.ga-one-app-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	box-sizing: border-box;
	width: 100%;
	padding: 7px max(18px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
	border-top: 1px solid #e4e4e4;
	box-shadow: 0 -2px 9px rgba(0, 0, 0, 0.08);
	color: #666;
	background: #fff;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.ga-one-app-banner[hidden] {
	display: none !important;
}

.ga-one-app-banner--closing {
	opacity: 0;
}

.ga-one-app-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 46px;
	margin: 0 auto;
}

.ga-one-app-banner__message {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 16px;
}

.ga-one-app-banner__logo {
	display: block;
	flex: 0 0 auto;
	width: auto;
	max-width: 110px;
	height: 38px;
	object-fit: contain;
}

.ga-one-app-banner__text {
	margin: 0;
	color: #666;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

.ga-one-app-banner__button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 20px;
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	background: #c63b32;
}

.ga-one-app-banner__button:hover,
.ga-one-app-banner__button:focus-visible {
	color: #fff;
	background: #a92e27;
	transform: translateY(-1px);
}

.ga-one-app-banner__close {
	display: inline-flex;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	color: #888;
	background: transparent;
	cursor: pointer;
}

.ga-one-app-banner__close svg {
	width: 14px;
	height: 14px;
}

.ga-one-app-banner__close:hover,
.ga-one-app-banner__close:focus-visible {
	color: #222;
}

@media only screen and (max-width: 599px) {
	.ga-one-app-banner {
		right: 12px;
		bottom: max(12px, env(safe-area-inset-bottom));
		left: 12px;
		width: auto;
		padding: 12px;
		border: 1px solid #e0e0e0;
		border-radius: 14px;
		box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
	}

	.ga-one-app-banner__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto;
		gap: 10px;
		width: 100%;
	}

	.ga-one-app-banner__message {
		gap: 8px;
	}

	.ga-one-app-banner__logo {
		max-width: 64px;
		height: 32px;
	}

	.ga-one-app-banner__text {
		font-size: 11px;
	}

	.ga-one-app-banner__button {
		min-height: 36px;
		padding: 0 14px;
		font-size: 12px;
	}
}

/* Optional local instant search: visually close to Jetpack without its cloud index. */
html.ga-one-search-open {
	overflow: hidden;
}

.ga-one-instant-search[hidden] {
	display: none !important;
}

.ga-one-instant-search {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 16px 12px;
}

.ga-one-instant-search__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 33, 38, 0.72);
}

.ga-one-instant-search__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1280px, 100%);
	max-height: calc(100vh - 32px);
	min-height: 210px;
	overflow: hidden;
	border-radius: 4px;
	color: #161c31;
	background: #fff;
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

.ga-one-instant-search__bar {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) auto 44px;
	align-items: center;
	min-height: 60px;
	padding: 0 12px 0 18px;
	border-bottom: 1px solid #edf0f3;
}

.ga-one-instant-search__icon {
	color: #63707b;
	font-size: 30px;
	line-height: 1;
}

.ga-one-instant-search__input {
	width: 100%;
	min-width: 0;
	padding: 14px 16px;
	border: 0 !important;
	outline: 0;
	color: #1e2630;
	background: transparent !important;
	box-shadow: none !important;
	font-size: clamp(17px, 2vw, 23px);
}

.ga-one-instant-search__clear,
.ga-one-instant-search__close,
.ga-one-instant-search__sort button {
	border: 0;
	color: #5d6872;
	background: transparent;
	cursor: pointer;
}

.ga-one-instant-search__clear {
	padding: 10px 14px;
}

.ga-one-instant-search__close {
	width: 44px;
	height: 44px;
	font-size: 32px;
	font-weight: 300;
}

.ga-one-instant-search__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 54px 14px;
}

.ga-one-instant-search__status {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.ga-one-instant-search__sort {
	display: flex;
	align-items: center;
	gap: 2px;
	white-space: nowrap;
}

.ga-one-instant-search__sort button {
	padding: 6px 3px;
}

.ga-one-instant-search__sort button[aria-pressed="true"] {
	color: #1639b5;
	font-weight: 700;
}

.ga-one-instant-search__results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 28px;
	overflow: auto;
	padding: 4px 54px 34px;
}

.ga-one-instant-search__result {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid #e4e7ea;
}

.ga-one-instant-search__image {
	display: block;
	width: 120px;
	height: 84px;
	overflow: hidden;
	border-radius: var(--w3sh-thumbnail-radius, 12px);
}

.ga-one-instant-search__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ga-one-instant-search__result h3 {
	margin: 0 0 5px;
	font-size: 18px;
	line-height: 1.25;
}

.ga-one-instant-search__result h3 a {
	color: #17202a;
	text-decoration: none;
}

.ga-one-instant-search__result-body > p {
	margin: 5px 0 0;
	color: #4e5862;
	font-size: 13px;
	line-height: 1.45;
}

.ga-one-instant-search__result-body .ga-one-instant-search__date {
	color: #7a848d;
	font-size: 12px;
}

.ga-one-instant-search__fallback {
	align-self: flex-start;
	margin: 0 54px 30px;
	font-weight: 700;
}

@media only screen and (max-width: 767px) {
	.ga-one-instant-search {
		padding: 0;
	}

	.ga-one-instant-search__dialog {
		width: 100%;
		max-height: 100vh;
		min-height: 100vh;
		border-radius: 0;
	}

	.ga-one-instant-search__bar {
		grid-template-columns: 24px minmax(0, 1fr) auto 40px;
		padding-left: 10px;
	}

	.ga-one-instant-search__controls {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		padding: 18px 18px 10px;
	}

	.ga-one-instant-search__results {
		grid-template-columns: 1fr;
		padding: 0 18px 24px;
	}

	.ga-one-instant-search__result {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 12px;
	}

	.ga-one-instant-search__image {
		width: 92px;
		height: 68px;
	}

	.ga-one-instant-search__result-body > p:not(.ga-one-instant-search__date) {
		display: none;
	}

	.ga-one-instant-search__fallback {
		margin: 0 18px 24px;
	}
}

/*
 * On the full-width desktop layout, Daze reserves 18px around the masonry
 * container while the slider reserves 36px. Keep those fixed outer edges and
 * redistribute only the space between cards. The cards therefore grow when
 * the gap shrinks and shrink when it grows.
 */
@media only screen and (min-width: 1180px) {
	.search.masonry.full-width .masonry-list-wrapper,
	.archive.masonry.full-width .masonry-list-wrapper,
	.blog.masonry.full-width .masonry-list-wrapper,
	.home.masonry.full-width .masonry-list-wrapper {
		--w3sh-grid-edge: 18px;
	}
}

/*
 * Daze caps its "narrow" masonry layout at 1176px, while the posts slider
 * remains fluid. Use the slider's own width rules so cards keep growing with
 * the viewport; the parent's column breakpoints still control 3/2/1 columns.
 */
.search.masonry:not(.full-width) .main-holder.content-wrapper,
.archive.masonry:not(.full-width) .main-holder.content-wrapper,
.blog.masonry:not(.full-width) .main-holder.content-wrapper,
.home.masonry:not(.full-width) .main-holder.content-wrapper {
	width: 96%;
}

@media only screen and (min-width: 1640px) {
	.search.masonry:not(.full-width) .main-holder.content-wrapper,
	.archive.masonry:not(.full-width) .main-holder.content-wrapper,
	.blog.masonry:not(.full-width) .main-holder.content-wrapper,
	.home.masonry:not(.full-width) .main-holder.content-wrapper {
		width: 1600px;
	}
}

.masonry-item article.post,
.tiny article {
	border-radius: var(--w3sh-card-radius);
	overflow: hidden;
}

.masonry-item {
	border-radius: var(--w3sh-card-radius);
}

.w3sh-cards-flat .masonry-item,
.w3sh-cards-flat .tiny article {
	border: 1px solid transparent;
	box-shadow: none;
}

.w3sh-cards-subtle .masonry-item,
.w3sh-cards-subtle .tiny article {
	border: 1px solid rgba(17, 17, 17, 0.09);
	box-shadow: 0 6px 18px rgba(17, 17, 17, 0.14);
}

.w3sh-cards-elevated .masonry-item,
.w3sh-cards-elevated .tiny article {
	border: 1px solid rgba(17, 17, 17, 0.13);
	box-shadow: 0 14px 34px rgba(17, 17, 17, 0.28);
}

/* The wrapper clips images, overlays and controls to the same slider radius. */
.w3sh-slider-rounded #nwps .nwps-wrapper {
	border-radius: var(--w3sh-slider-radius);
	overflow: hidden;
}

/* Daze initially hides masonry cards for its staggered animation. */
.w3sh-card-animation-on .masonry-item-wrapper {
	visibility: visible !important;
}

.w3sh-card-animation-on .masonry-content {
	opacity: 1 !important;
}

.w3sh-card-animation-on .masonry-item .drop-overlay.animate {
	animation-duration: 180ms, 180ms !important;
	animation-delay: 0ms, 90ms !important;
}

.w3sh-card-animation-off .masonry-item-wrapper {
	visibility: visible !important;
}

.w3sh-card-animation-off .masonry-item {
	overflow: visible;
}

.w3sh-card-animation-off .masonry-content {
	opacity: 1 !important;
}

.w3sh-card-animation-off .masonry-item .drop-overlay {
	display: none !important;
	animation: none !important;
}

/*
 * Progressive fallbacks for Daze components that hide their content before
 * JavaScript runs. With JS disabled the parent's `no-js` marker remains. With
 * JS delayed or broken, the watchdog adds a component-level fallback class.
 * The temporary CSS Grid mirrors the Masonry breakpoints, so cards never
 * collapse into a narrow vertical column before the script takes over.
 * A late successful initialization removes that class automatically.
 */
html.no-js .masonry-list-wrapper,
html.w3sh-components-pending .masonry-list-wrapper:not(.w3sh-masonry-active),
.masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

html.no-js .masonry-list-wrapper .masonry-item-sizer,
html.w3sh-components-pending .masonry-list-wrapper:not(.w3sh-masonry-active) .masonry-item-sizer,
.masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active) .masonry-item-sizer {
	display: none;
}

html.no-js .masonry-item-wrapper,
html.w3sh-components-pending .masonry-list-wrapper:not(.w3sh-masonry-active) .masonry-item-wrapper,
.masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active) .masonry-item-wrapper {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: auto !important;
	visibility: visible !important;
	transform: none !important;
}

html.no-js .masonry-content,
html.w3sh-components-pending .masonry-list-wrapper:not(.w3sh-masonry-active) .masonry-content,
.masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active) .masonry-content {
	opacity: 1 !important;
}

html.no-js .masonry-item .drop-overlay,
html.w3sh-components-pending .masonry-list-wrapper:not(.w3sh-masonry-active) .drop-overlay,
.masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active) .drop-overlay {
	display: none !important;
	animation: none !important;
}

@media only screen and (min-width: 768px) {
	html.no-js .masonry-list-wrapper,
	html.w3sh-components-pending .masonry-list-wrapper:not(.w3sh-masonry-active),
	.masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (min-width: 1024px) {
	html.no-js .masonry.three-columns .masonry-list-wrapper,
	html.no-js .masonry.four-columns .masonry-list-wrapper,
	html.no-js .masonry.five-columns .masonry-list-wrapper,
	html.w3sh-components-pending .masonry.three-columns .masonry-list-wrapper:not(.w3sh-masonry-active),
	html.w3sh-components-pending .masonry.four-columns .masonry-list-wrapper:not(.w3sh-masonry-active),
	html.w3sh-components-pending .masonry.five-columns .masonry-list-wrapper:not(.w3sh-masonry-active),
	.masonry.three-columns .masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active),
	.masonry.four-columns .masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active),
	.masonry.five-columns .masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media only screen and (min-width: 1600px) {
	html.no-js .masonry.four-columns .masonry-list-wrapper,
	html.no-js .masonry.five-columns .masonry-list-wrapper,
	html.w3sh-components-pending .masonry.four-columns .masonry-list-wrapper:not(.w3sh-masonry-active),
	html.w3sh-components-pending .masonry.five-columns .masonry-list-wrapper:not(.w3sh-masonry-active),
	.masonry.four-columns .masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active),
	.masonry.five-columns .masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media only screen and (min-width: 1920px) {
	html.no-js .masonry.five-columns .masonry-list-wrapper,
	html.w3sh-components-pending .masonry.five-columns .masonry-list-wrapper:not(.w3sh-masonry-active),
	.masonry.five-columns .masonry-list-wrapper.w3sh-masonry-fallback:not(.w3sh-masonry-active) {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

html.no-js #nwps .nwps-wrapper,
#nwps .nwps.w3sh-slider-fallback {
	min-height: 0;
	aspect-ratio: 8 / 3;
}

html.no-js #nwps .nwps,
#nwps .nwps.w3sh-slider-fallback {
	position: relative;
	display: block;
	height: 100%;
	opacity: 1 !important;
}

html.no-js #nwps .nwps-slide,
#nwps .nwps.w3sh-slider-fallback .nwps-slide {
	display: none !important;
}

html.no-js #nwps .nwps.simple .nwps-slide:first-child,
html.no-js #nwps .nwps.columns .nwps-slide[data-curr-slide="0"],
#nwps .nwps.simple.w3sh-slider-fallback .nwps-slide:first-child,
#nwps .nwps.columns.w3sh-slider-fallback .nwps-slide[data-curr-slide="0"] {
	position: relative !important;
	display: table !important;
	width: 100%;
	height: 100%;
}

html.no-js #nwps .nwps-content,
#nwps .nwps.w3sh-slider-fallback .nwps-content {
	display: table-cell !important;
	opacity: 1 !important;
}

html.no-js #nwps .nwps.simple .outer-wrapper,
html.no-js #nwps .nwps.simple .inner-wrapper,
#nwps .nwps.simple.w3sh-slider-fallback .outer-wrapper,
#nwps .nwps.simple.w3sh-slider-fallback .inner-wrapper {
	position: relative;
	left: auto;
	display: table;
	width: 100%;
	height: 100%;
}

html.no-js #nwps .nwps.columns .nwps-img,
#nwps .nwps.columns.w3sh-slider-fallback .nwps-img {
	display: none !important;
}

html.no-js #nwps .nwps.columns .nwps-img[data-curr-slide="0"],
#nwps .nwps.columns.w3sh-slider-fallback .nwps-img[data-curr-slide="0"] {
	display: block !important;
	opacity: 1 !important;
}

@media only screen and (max-width: 767px) {
	html.no-js #nwps .nwps-wrapper,
	#nwps .nwps.w3sh-slider-fallback {
		aspect-ratio: 11 / 8;
	}
}

.w3sh-card-animation-on .masonry-item {
	transition: box-shadow 160ms ease, transform 160ms ease;
}

/* Daze otherwise waits 1–2 seconds before revealing the posts slider. */
#nwps .holder.slide-in {
	transition-duration: 180ms;
}

#nwps .nwps {
	opacity: 1;
}

#nwps .nwps.simple .slide-in-prev,
#nwps .nwps.simple .slide-in-next {
	transition-duration: 180ms;
	transition-delay: 0ms;
}

@media (hover: hover) {
	.w3sh-card-animation-on .masonry-item:hover {
		transform: translateY(-2px);
	}
}

/* Compact mode only alters header spacing. */
@media only screen and (min-width: 1180px) {
	.w3sh-header-compact .top-bar.desktop nav,
	.w3sh-header-compact .top-bar.desktop .tagline,
	.w3sh-header-compact .top-bar.desktop .social {
		padding-top: 9px;
		padding-bottom: 7px;
	}

	.w3sh-header-compact .top-bar.desktop .search-button {
		padding-top: 9px;
		padding-bottom: 6px;
	}

	.w3sh-header-compact #site-header .site-logo img {
		max-height: 112px;
		width: auto;
	}
}

/* Restore an obvious keyboard focus without changing mouse interactions. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid #1677c8;
	outline-offset: 3px;
}

/* Comfortable touch targets for actual header controls. */
@media (pointer: coarse), (max-width: 1179px) {
	.top-bar.mobile .menu-button,
	.top-bar.mobile .search-button,
	.top-bar.mobile .social a,
	.top-bar.mobile nav a,
	.results-pagination a {
		min-width: 44px;
		min-height: 44px;
	}

	.top-bar.mobile .menu-button,
	.top-bar.mobile .search-button,
	.top-bar.mobile .social a,
	.results-pagination a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

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

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

	.masonry-item-wrapper {
		visibility: visible !important;
	}

	.masonry-content {
		opacity: 1 !important;
	}

	.masonry-item .drop-overlay {
		display: none !important;
	}
}
