/* Lanka Ideas - ideas archive, topic pages and the topics page (designed from the system) */

.archive-head {
	padding-top: 48px;
	padding-bottom: 44px;
}

.archive-head__lead {
	margin-top: 16px;
	max-width: 620px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--muted);
}

/* Filters */
.archive-filters {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 28px;
}

.filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: stretch;
}

.filter-form .inp {
	height: 44px;
	font-size: 13.5px;
}

.filter-form__search {
	position: relative;
	flex: 1 1 280px;
	max-width: 460px;
}

.filter-form__search svg {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
}

.filter-form__search .inp {
	padding-left: 40px;
}

.filter-form__select {
	flex: 0 1 190px;
}

.filter-form .bx {
	min-height: 44px;
}

.filter-form .bx__icon {
	width: 44px;
}

/* Results */
.archive-results {
	padding-top: 0;
	padding-bottom: 110px;
}

.results-bar {
	border-top: 1px solid var(--line);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.results-count {
	font-size: 13px;
	color: var(--muted);
}

.results-clear {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--line-strong);
	text-underline-offset: 3px;
}

.results-clear:hover {
	text-decoration-color: var(--text);
}

.archive-grid {
	row-gap: 24px;
}

.empty-state {
	padding: 48px 32px;
	border: 1px solid var(--line);
	text-align: left;
}

.empty-state__title {
	font-family: var(--font-head);
	font-size: 22px;
	margin-bottom: 6px;
}

.empty-state .lead {
	margin-bottom: 20px;
}

/* Topic page */
.topic-head {
	padding-top: 40px;
}

.topic-head__crumb {
	margin-bottom: 36px;
}

.topic-head__grid {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.topic-head__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	background: var(--lime);
	color: var(--text);
}

.other-topics {
	padding-bottom: 110px;
}

.other-topics .label {
	margin-bottom: 20px;
}

/* Topics page */
.topics-page {
	padding-bottom: 110px;
}

.topics-page__more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 56px;
	padding: 24px 28px;
	background: var(--soft);
	font-family: var(--font-head);
	font-size: 19px;
}

@media (max-width: 900px) {
	.archive-head {
		padding-top: 28px;
		padding-bottom: 28px;
	}
	.archive-head__lead {
		font-size: 16px;
	}
	.filter-form__search {
		flex-basis: 100%;
		max-width: none;
	}
	.filter-form__select {
		flex: 1 1 140px;
	}
	.filter-form .bx {
		flex: 1 1 100%;
		justify-content: space-between;
	}
	.archive-results,
	.other-topics,
	.topics-page {
		padding-bottom: 72px;
	}
	.topic-head__grid {
		flex-direction: column;
		gap: 18px;
	}
	.topic-head__icon {
		width: 48px;
		height: 48px;
	}
	.topics-page__more {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 36px;
		padding: 22px;
		font-size: 17px;
	}
}

/* Follow this topic */
.topic-head__follow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 22px;
}

.topic-head__note {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}
