/*
 * F4-L3 (#93) — native archive template.
 *
 * Own file, additive, enqueued only behind SERENA_NATIVE_ARCHIVE on the requests
 * document 8730 painted (inc/serena-native-archive.php). The numbers come from the
 * Elementor render it replaces — document 8730's own CSS (post-8730.css) and the
 * loop items 8732 / 8750 — read as computed values on the local stack at 1440 and
 * 390, not guessed. Elementor breakpoints: laptop 1366, tablet 1024, mobile 767.
 *
 * Colours are the kit's globals, written out: primary #FF9472, secondary #4F4F4F,
 * accent #B11972, 412523be #FFF, 42ce261 #FF7D53, 984d147 #FAFAFA, 95b6be0 #FF9472.
 *
 * Where an element must look like whatever the theme gives it (the filter buttons and
 * the search input take the browser's own font, as they do in production) NO font is
 * set on purpose: the theme's base CSS decides there, as it did before.
 */

/* Document 8730's body rule: `body.elementor-page-8730 { background #FAFAFA; margin 0; padding 0 }`. */
body.serena-native-archive {
	margin: 0;
	padding: 0;
	background-color: #fafafa;
}

.serena-archive {
	display: block;
}

.serena-archive__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * 1 · Hero (section 3009559)
 *
 * Full width, min-height 500 (350 <=1024, 213 <=767), pulled UNDER the native header
 * by -70px (-30 laptop, -57 tablet, 0 mobile) with the matching bottom margin; the
 * background image top-centre cover, a gradient overlay, the curve at the bottom
 * (86 px high, 106 % wide, flipped; 60 tablet, 25 mobile). Content: column of 1235 px
 * inside a 1300 px container, margin-left 5 %, padding 10, vertically centred.
 * ------------------------------------------------------------------------- */
.serena-archive__hero {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	margin: -70px 0 0;
	background-repeat: no-repeat;
	background-position: top center;
	background-size: cover;
}

.serena-archive__hero-overlay {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(271deg, #fdd4c7c7 0%, #fffcf0d4 100%);
	opacity: 1;
}

.serena-archive__hero-inner {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 1300px;
	min-height: 500px;
	margin: 0 auto;
}

.serena-archive__hero-col {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 0 5%;
	padding: 10px;
}

.serena-archive__kicker {
	margin: 0 0 0 20px;
	padding: 0;
	font-family: "Nunito", sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.4em;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: start;
	color: #ff7d53;
}

.serena-archive__h1 {
	margin: 0 0 0 20px;
	padding: 0;
	font-family: "Nunito", sans-serif;
	font-size: 62px;
	font-weight: 600;
	line-height: 1.4em;
	letter-spacing: 1px;
	text-align: start;
	color: #ff9472;
}

/* Elementor's `waves` shape divider, bottom, not negative: rotated 180deg, the svg flipped. */
.serena-archive__shape {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	direction: ltr;
	transform: rotate(180deg);
}

.serena-archive__shape svg {
	position: relative;
	left: 50%;
	display: block;
	width: calc(106% + 1.3px);
	height: 86px;
	transform: translateX(-50%) rotateY(180deg);
}

.serena-archive__shape path {
	fill: #fafafa;
}

/* ---------------------------------------------------------------------------
 * 2 · Intro (section bc3ee7d): 1200 px column, 100 px below the hero.
 * ------------------------------------------------------------------------- */
.serena-archive__intro {
	margin: 100px 0 0;
}

.serena-archive__intro-inner {
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px;
}

.serena-archive__eyebrow {
	margin: 0;
	padding: 0;
	font-family: "Nunito", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	text-align: center;
	color: #ff9472;
}

.serena-archive__spacer {
	height: 20px;
}

.serena-archive .serena-archive__lead {
	margin: 0;
	padding: 0;
	font-family: "Nunito", sans-serif;
	font-size: 45px;
	font-weight: 500;
	line-height: 62.3077px;
	text-align: center;
	color: #4f4f4f;
}

.serena-archive .serena-archive__sublead {
	margin: 0;
	padding: 0;
	font-family: "Nunito", sans-serif;
	font-size: 25px;
	font-weight: 600;
	line-height: 44px;
	letter-spacing: 0;
	text-align: center;
	color: #4f4f4f;
}

/* ---------------------------------------------------------------------------
 * 3 · Main block (container 2d860ef): side padding outside, top/bottom padding on
 * the 1300 px inner column, 30 px between search, filter and grid.
 * ------------------------------------------------------------------------- */
.serena-archive__main {
	box-sizing: border-box;
	width: 100%;
}

.serena-archive__main-inner {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 30px 0;
	max-width: min(100%, 1300px);
	margin: 0 auto;
	padding: 0 0 60px;
}

/* ---- Search (widget f8d0dc3) ------------------------------------------- */
.serena-archive__search {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.serena-archive__search .e-search-form {
	display: flex;
}

.serena-archive__search .e-search-label {
	position: relative;
	z-index: 10;
	display: flex;
}

.serena-archive__search .e-search-label > svg {
	position: absolute;
	top: 50%;
	inset-inline-start: 20px;
	width: auto;
	height: 15px;
	transform: translateY(-50%);
	fill: #515962;
}

.serena-archive__search .e-search-input-wrapper {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
}

.serena-archive__search .e-search-input {
	height: 100%;
	min-height: 45px;
	padding: 15px 20px 15px 43px;
	border: none;
	border-radius: 30px;
	background-color: #fff;
	color: #515962;
}

.serena-archive__search .e-search-input::placeholder {
	color: #515962;
}

.serena-archive__search .e-search-input:focus {
	outline: none;
}

.serena-archive__search .e-search-input::-webkit-search-cancel-button,
.serena-archive__search .e-search-input::-webkit-search-decoration {
	display: none;
}

.serena-archive__search .e-search-results-container {
	position: absolute;
	top: calc(100% + 15px);
	z-index: 2000;
	display: flex;
	width: 100%;
	height: fit-content;
	background-color: #fff;
}

.serena-archive__search .e-search-results-container > div {
	box-sizing: border-box;
	width: 100%;
	max-height: 426px;
	padding: 16px;
	overflow: auto;
	border: none;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.12);
}

.serena-archive__search .e-search-results-container > div:empty {
	display: none;
}

.serena-archive__search .e-search-results {
	display: none;
}

.serena-archive__search .hide-loader .e-search-loader {
	display: none;
}

.serena-archive__search .hide-loader .e-search-results {
	display: flex;
	flex-direction: column;
}

.serena-archive__search .e-search-loader svg {
	display: flex;
	width: 34px;
	margin: 0 auto;
	fill: #ff9472;
	transform: rotate(45deg);
	animation: serena-archive-rotate 4s linear infinite;
}

@keyframes serena-archive-rotate {
	0% { transform: rotate(0deg); }
	to { transform: rotate(1turn); }
}

.serena-archive__search .e-search-nothing-found-message {
	color: #515962;
	text-align: center;
}

/* Dropdown rows (loop item 8750): 2 columns, 3 px between rows, 16 between columns. */
.serena-archive__results-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 3px 16px;
}

.serena-archive__row-link {
	display: flex;
	flex-direction: row;
	gap: 20px;
	color: inherit;
	text-decoration: none;
}

.serena-archive__row-link img {
	flex: none;
	width: 100px;
	height: 70px;
	object-fit: cover;
}

.serena-archive__row-text {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 0;
}

.serena-archive__row-title {
	font-family: "Nunito", sans-serif;
	font-size: 16px;
	font-weight: 500;
}

.serena-archive__row-excerpt {
	font-family: "Nunito", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2em;
}

/* ---- Filter (widget f6582d5) ------------------------------------------- */
.serena-archive__filter {
	position: relative;
	max-width: 100%;
}

.serena-archive__filter .e-filter {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.serena-archive__filter .e-filter-item {
	display: flex;
	flex-basis: content;
	flex-grow: 0;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	box-sizing: initial;
	width: initial;
	max-width: calc(100% - 24px);
	padding: 0 5px 10px;
	overflow: hidden;
	overflow-wrap: break-word;
	border: 1px #69727d;
	border-radius: initial;
	background-color: initial;
	color: #69727d;
	line-height: normal;
	text-align: center;
	white-space: nowrap;
}

.serena-archive__filter .e-filter-item[aria-pressed="true"] {
	border-color: #0c0d0e;
	color: #ff7d53;
}

.serena-archive__filter .e-filter-item:hover:not([aria-pressed="true"]) {
	border-color: #0c0d0e;
	color: #0c0d0e;
}

.serena-archive__filter .e-filter-item:hover,
.serena-archive__filter .e-filter-item[aria-pressed="true"] {
	background-color: initial;
}

.serena-archive__filter .e-filter-item[data-filter="__all"] {
	order: -1;
}

.serena-archive__filter .e-filter-item:focus:not(:focus-visible) {
	outline: none;
}

/* ---- Grid (widget cd62c96, loop item 8732) ----------------------------- */
.serena-archive__grid {
	position: relative;
	max-width: 100%;
}

.serena-archive__grid-items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
	gap: 30px;
}

.serena-archive__item {
	display: block;
	word-break: break-word;
}

.serena-archive__item * {
	word-break: break-word;
}

.serena-archive__item.e-inactive {
	display: none;
}

.serena-archive__card {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 100%;
	padding: 0 0 20px;
	background-color: #fff;
	text-decoration: none;
}

.serena-archive__thumb {
	position: relative;
	display: block;
	max-width: 100%;
	text-align: center;
}

.serena-archive__thumb img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.serena-archive__text {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px 25px;
}

.serena-archive .serena-archive__title {
	margin: 0;
	padding: 0;
	font-family: "Nunito", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2em;
	letter-spacing: 0;
	color: #4f4f4f;
}

.serena-archive__excerpt {
	font-family: "Nunito", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	color: #4f4f4f;
}

.serena-archive__more {
	font-family: "Nunito", sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	color: #b11972;
}

.serena-archive__grid .e-load-more-spinner {
	display: flex;
	margin-top: 0;
}

.serena-archive__grid .e-load-more-spinner svg {
	display: none;
	width: 1em;
	height: 1em;
	margin: 0 auto;
	fill: currentcolor;
}

.serena-archive__grid.is-loading .e-load-more-spinner {
	margin-top: 0;
}

.serena-archive__grid.is-loading .e-load-more-spinner svg {
	display: flex;
}

.serena-archive__grid .e-load-more-message {
	display: none;
	margin-top: 0;
	text-align: center;
}

.serena-archive__grid.is-end .e-load-more-message {
	display: block;
}

.serena-archive__grid .e-loop-nothing-found-message {
	padding-block: 30px;
	color: #1f2124;
	text-align: center;
}

/* ---------------------------------------------------------------------------
 * 4 · Breakpoints
 * ------------------------------------------------------------------------- */
@media (max-width: 1366px) {
	.serena-archive__hero {
		margin: -30px 0;
	}

	.serena-archive__intro {
		margin: 50px 0 0;
		padding: 0 50px;
	}

	.serena-archive__main {
		padding: 0 50px;
	}

	.serena-archive__main-inner {
		padding-top: 20px;
	}
}

@media (max-width: 1024px) {
	.serena-archive__hero {
		margin: -57px 0;
	}

	.serena-archive__hero-inner {
		min-height: 350px;
	}

	.serena-archive__shape svg {
		height: 60px;
	}

	.serena-archive__hero-col {
		margin: 0;
	}

	.serena-archive__kicker {
		font-size: 22px;
	}

	.serena-archive__h1 {
		font-size: 54px;
	}

	.serena-archive__intro {
		margin: 40px 0 0;
		padding: 0 30px;
	}

	.serena-archive .serena-archive__lead {
		font-size: 32px;
		line-height: 1.4em;
	}

	.serena-archive .serena-archive__sublead {
		font-size: 26px;
		line-height: 1.4em;
	}

	.serena-archive__main {
		padding: 0 30px;
	}

	.serena-archive__main-inner {
		padding-top: 30px;
	}

	.serena-archive__results-list {
		grid-template-columns: 1fr;
	}

	.serena-archive__filter .e-filter-item {
		padding: 0 5px 5px;
	}

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

@media (max-width: 767px) {
	.serena-archive__hero {
		margin: 0;
		padding: 0;
	}

	.serena-archive__hero-inner {
		min-height: 213px;
	}

	.serena-archive__shape svg {
		width: calc(100% + 1.3px);
		height: 25px;
	}

	.serena-archive__hero-col {
		padding: 0;
	}

	.serena-archive__kicker {
		padding: 0;
		font-size: 13px;
		line-height: 1.4em;
		letter-spacing: 0;
	}

	.serena-archive__h1 {
		font-size: 30px;
	}

	.serena-archive__intro {
		margin: 50px 0 0;
		padding: 0 20px;
	}

	.serena-archive__intro-inner {
		margin: 0;
		padding: 0;
	}

	.serena-archive__spacer {
		height: 5px;
	}

	.serena-archive .serena-archive__lead {
		font-size: 20px;
		line-height: 1.4em;
	}

	.serena-archive .serena-archive__sublead {
		font-size: 17px;
		line-height: 1.4em;
	}

	.serena-archive__main {
		padding: 0 20px 0 22px;
	}

	.serena-archive__main-inner {
		padding-bottom: 50px;
	}

	.serena-archive__filter .e-filter-item {
		padding: 0 0 2px;
	}

	.serena-archive__grid-items {
		grid-template-columns: 1fr;
	}

	.serena-archive__row-link {
		gap: 10px;
	}

	.serena-archive__row-link img {
		width: 70px;
	}

	.serena-archive__row-text {
		width: calc(100% - 80px);
	}
}
