/**
 * Shared archive filter bar + sort tabs (Figma 290:21228).
 * Used by conference, news, publication, EJTE archives and account EJTE tab.
 */

/* ── Filters + sort chrome (24px gap per Figma) ─────────────────────────────── */

.atee-archive-filters__chrome {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

/* ── Filter row ───────────────────────────────────────────────────────────── */

.atee-archive-filters,
.atee-conf-archive__filters,
.atee-news-archive__filters,
.atee-pub-archive__filters,
.atee-ejte-archive__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 16px;
	width: 100%;
}

.atee-archive-filters__input,
.atee-conf-archive__input,
.atee-news-archive__input,
.atee-pub-archive__input,
.atee-ejte-archive__input {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	border: 1.5px solid #e5e5e6;
	border-radius: 8px;
	background: #fff;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: #19191a;
}

.atee-archive-filters__input::placeholder,
.atee-conf-archive__input::placeholder,
.atee-news-archive__input::placeholder,
.atee-pub-archive__input::placeholder,
.atee-ejte-archive__input::placeholder {
	color: #a2a2a4;
}

.atee-archive-filters__select-wrap,
.atee-ejte-archive__select-wrap {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}

.atee-archive-filters__search,
.atee-conf-archive__search,
.atee-news-archive__search,
.atee-pub-archive__search,
.atee-ejte-archive__search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 0 0 auto;
	align-self: stretch;
	margin: 0;
	border: 0;
	border-radius: 4px;
	background: #132665;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 200ms ease;
}

.atee-archive-filters__search:hover,
.atee-conf-archive__search:hover,
.atee-news-archive__search:hover,
.atee-pub-archive__search:hover,
.atee-ejte-archive__search:hover {
	background: #1e3c96;
	color: #fff;
}

.atee-archive-filters__search-icon,
.atee-conf-archive__search-icon,
.atee-news-archive__search-icon,
.atee-pub-archive__search-icon,
.atee-ejte-archive__search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.atee-archive-filters__search-icon svg,
.atee-conf-archive__search-icon svg,
.atee-news-archive__search-icon svg,
.atee-pub-archive__search-icon svg,
.atee-ejte-archive__search-icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* ── Count + sort bar ─────────────────────────────────────────────────────── */

.atee-archive-filters__bar,
.atee-conf-archive__bar,
.atee-news-archive__bar,
.atee-pub-archive__bar,
.atee-ejte-archive__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	width: 100%;
}

.atee-archive-filters__count,
.atee-conf-archive__count,
.atee-news-archive__count,
.atee-pub-archive__count,
.atee-ejte-archive__meta > p {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: #474748;
}

.atee-archive-filters__sort,
.atee-conf-archive__sort,
.atee-news-archive__sort,
.atee-pub-archive__sort,
.atee-ejte-archive__sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.atee-archive-filters__sort-label,
.atee-conf-archive__sort-label,
.atee-news-archive__sort-label,
.atee-pub-archive__sort-label,
.atee-ejte-archive__sort-label {
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: #474748;
	white-space: nowrap;
}

.atee-archive-filters__sort-tabs,
.atee-conf-archive__sort-tabs,
.atee-news-archive__sort-tabs,
.atee-pub-archive__sort-tabs,
.atee-ejte-archive__sort-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: #edf5ff;
}

.atee-archive-filters__sort-tab,
.atee-conf-archive__sort-tab,
.atee-news-archive__sort-tab,
.atee-pub-archive__sort-tab,
.atee-ejte-archive__sort-tab {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: #132665;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease;
}

.atee-archive-filters__sort-tab.is-active,
.atee-conf-archive__sort-tab.is-active,
.atee-news-archive__sort-tab.is-active,
.atee-pub-archive__sort-tab.is-active,
.atee-ejte-archive__sort-tab.is-active {
	background: #133595;
	color: #fff;
}

.atee-archive-filters__sort-tab:hover:not(.is-active),
.atee-conf-archive__sort-tab:hover:not(.is-active),
.atee-news-archive__sort-tab:hover:not(.is-active),
.atee-pub-archive__sort-tab:hover:not(.is-active),
.atee-ejte-archive__sort-tab:hover:not(.is-active) {
	color: #132665;
}

.atee-archive-filters__sort-tab:focus-visible,
.atee-conf-archive__sort-tab:focus-visible,
.atee-news-archive__sort-tab:focus-visible,
.atee-pub-archive__sort-tab:focus-visible,
.atee-ejte-archive__sort-tab:focus-visible {
	outline: 2px solid rgba(17, 101, 255, 0.5);
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.atee-archive-filters,
	.atee-conf-archive__filters,
	.atee-news-archive__filters,
	.atee-pub-archive__filters,
	.atee-ejte-archive__filters {
		flex-direction: column;
	}

	.atee-archive-filters__input,
	.atee-archive-filters__select-wrap,
	.atee-archive-filters__search,
	.atee-conf-archive__input,
	.atee-conf-archive__select-wrap,
	.atee-conf-archive__search,
	.atee-news-archive__input,
	.atee-news-archive__select-wrap,
	.atee-news-archive__search,
	.atee-pub-archive__input,
	.atee-pub-archive__select-wrap,
	.atee-pub-archive__search,
	.atee-ejte-archive__input,
	.atee-ejte-archive__select-wrap,
	.atee-ejte-archive__search {
		width: 100%;
		flex: 1 1 auto;
	}

	.atee-archive-filters__sort,
	.atee-conf-archive__sort,
	.atee-news-archive__sort,
	.atee-pub-archive__sort,
	.atee-ejte-archive__sort {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
	}

	.atee-archive-filters__sort-tabs,
	.atee-conf-archive__sort-tabs,
	.atee-news-archive__sort-tabs,
	.atee-pub-archive__sort-tabs,
	.atee-ejte-archive__sort-tabs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}

	.atee-archive-filters__sort-tab,
	.atee-conf-archive__sort-tab,
	.atee-news-archive__sort-tab,
	.atee-pub-archive__sort-tab,
	.atee-ejte-archive__sort-tab {
		padding: 10px 8px;
		font-size: 14px;
		text-align: center;
		white-space: normal;
	}
}
