.home-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 100px 0;
}

.home-hero__clip {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.home-hero h1 {
	position: relative;
	z-index: 1;
	margin-bottom: 40px;
	font-size: 48px;
	line-height: 60px;
	font-weight: 540;
	letter-spacing: -1.2px;
	text-align: center;
	color: var(--dark-700);
}

.hero-br {
	display: none;
}

@media (max-width: 1024px) {
	.hero-br {
		display: inline;
	}
}

@media (max-width: 768px) {
	.hero-br {
		display: none;
	}
}

.home-hero__tools {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 680px;
}

.home-hero .filters {
	padding-left: 0;
}

.home-hero__garland {
	position: absolute;
	top: 4px;
	left: 50%;
	width: 1492px;
	height: 451px;
	translate: -50% 0;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.home-hero {
		padding: 60px 0 68px;
	}
	.home-hero__tools {
		max-width: 634px;
	}
	.home-hero__garland {
		top: -36px;
		left: -68px;
		width: 1112px;
		height: 455px;
		translate: none;
	}
}

@media (max-width: 768px) {
	.home-hero h1 {
		margin-bottom: 20px;
		font-size: 36px;
		line-height: 44px;
		letter-spacing: -0.9375px;
	}
	.home-hero {
		padding: 60px 20px;
	}
	.home-hero__garland {
		display: none;
	}
	.home-hero .filters {
		justify-content: flex-start;
	}
}

.garland {
	position: absolute;
	width: 72px;
	height: 96px;
	overflow: hidden;
	border-radius: 8px;
}

.garland img {
	display: block;
	width: 72px;
	height: 96px;
}

.garland--left-1 {
	top: 62px;
	left: 194px;
	transform: rotate(-5deg);
}

.garland--left-2 {
	top: 112px;
	left: 0;
	transform: rotate(10deg);
}

.garland--left-3 {
	bottom: 36px;
	left: 108px;
	transform: rotate(-10deg);
}

.garland--right-1 {
	top: 10px;
	right: 0;
	transform: rotate(-15deg);
}

.garland--right-2 {
	top: 64px;
	right: 176px;
	transform: rotate(10deg);
}

.garland--right-3 {
	top: 244px;
	right: 92px;
	transform: rotate(5deg);
}

.garland--right-4 {
	right: 252px;
	bottom: 0;
	transform: rotate(5deg);
}

@media (max-width: 1024px) {
	.garland--left-1 {
		top: 73px;
		left: 34px;
	}
	.garland--left-2 {
		top: 222px;
	}
	.garland--left-3 {
		bottom: 0;
		left: 138px;
	}
	.garland--right-1,
	.garland--right-4 {
		display: none;
	}
	.garland--right-2 {
		top: 54px;
	}
	.garland--right-3 {
		top: auto;
		right: 222px;
		bottom: 60px;
	}
}
.filters {
	display: flex;
	gap: 20px;
}

.filter {
	position: relative;
}

.filter__head {
	display: flex;
	align-items: center;
}

.filter__trigger {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 8px 12px;
	border-radius: 8px;
	background: #fff;
	transition: background-color 0.15s var(--ease);
}

@media (hover: hover) {
	.filter__trigger:hover {
		background: var(--grey-100);
	}
}

.filter__trigger:focus-visible {
	outline: 0;
}

.filter__label {
	font-size: 16px;
	line-height: 24px;
	font-weight: 480;
	letter-spacing: -0.24px;
	white-space: nowrap;
	color: var(--dark-700);
}

.filter__chip {
	display: inline-flex;
	gap: 2px;
	align-items: center;
	padding: 2px 4px 2px 8px;
	border: 1px solid var(--grey-400);
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	line-height: 20px;
	font-weight: 480;
	white-space: nowrap;
	color: var(--dark-500);
}

.filter__chip svg {
	width: 16px;
	height: 16px;
}

.filter.has-value .filter__chip {
	padding-right: 24px;
	border-color: var(--grey-500);
	background: var(--grey-200);
	color: var(--dark-700);
}

.filter__reset {
	position: absolute;
	top: 0;
	right: 12px;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-block: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--dark-500);
	cursor: pointer;
}

.filter__reset svg {
	width: 16px;
	height: 16px;
}

.filter__layer {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 60;
}

.filter__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.15);
	animation: loio-fade 0.35s ease-out;
}

.filter__panel {
	position: absolute;
	top: 0;
	left: 0;
	width: max-content;
	min-width: 100%;
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--shadow-md);
	animation: loio-fade 0.3s ease;
}

.filter__layer.is-closing .filter__overlay {
	opacity: 0;
	transition: opacity 0.35s ease-out;
}

.filter__layer.is-closing .filter__panel {
	animation: loio-fade-out 0.3s ease forwards;
}

.filter__layer.is-closing {
	pointer-events: none;
}

.filter__panel-head {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 8px 12px;
}

.filter__panel-head .filter__chip {
	padding-right: 8px;
}

.filter__close {
	display: none;
}

.filter__panel ul {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-height: min(60vh, 420px);
	padding: 16px 12px;
	overflow-y: auto;
	border-radius: 0 0 8px 8px;
}

.filter__panel a {
	display: block;
	transition: color 0.15s;
	font-size: 14px;
	line-height: 20px;
	font-weight: 480;
	letter-spacing: -0.07px;
	color: var(--dark-700);
}

@media (hover: hover) {
	.filter__panel ul:hover a {
		color: var(--dark-400);
	}
	.filter__panel ul a:hover {
		color: var(--dark-700);
	}
}

@media (max-width: 1024px) {
	.filter__trigger {
		padding: 8px 0;
	}
	.filter__layer {
		position: fixed;
		inset: 0;
	}
	.filter__overlay {
		background: rgba(0, 0, 0, 0.5);
		backdrop-filter: blur(4px);
	}
	.filter__panel {
		position: fixed;
		inset: 0;
		display: flex;
		flex-direction: column;
		width: auto;
		border-radius: 10px 10px 0 0;
		animation: loio-sheet-up 0.5s var(--ease);
	}
	.filter__panel-head {
		padding: 12px 56px 12px 20px;
		border-bottom: 1px solid var(--grey-500);
	}
	.filter__close {
		position: absolute;
		top: 12px;
		right: 12px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		color: var(--dark-200);
	}
	.filter__chip {
		font-size: 12px;
	}
	.filter__reset {
		right: 1px;
	}
	.filter__close svg {
		width: 16px;
		height: 16px;
	}
	.filter__panel ul {
		flex: 1;
		max-height: none;
		padding: 20px 20px 48px;
	}
	.filter__panel a {
		font-size: 20px;
		line-height: 28px;
		letter-spacing: -0.4px;
	}
}

@media (max-width: 768px) {
	.filter__label {
		font-size: 14px;
	}
}

.filters--small {
	gap: 12px;
}

.filters--small .filter__label {
	font-size: 14px;
	line-height: 20px;
}

@media (max-width: 1024px) {
	.filters--small {
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.filters {
		flex-wrap: wrap;
		gap: 8px 20px;
		justify-content: center;
	}
}

.slider-nav {
	display: flex;
	gap: 8px;
}

.slider-nav__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 8px;
	border: 1px solid var(--grey-700);
	border-radius: 32px;
	background: transparent;
	transition:
		background-color 0.15s var(--ease),
		border-color 0.15s var(--ease);
	color: var(--dark-800);
}

@media (hover: hover) {
	.slider-nav__btn:hover {
		background: var(--grey-200);
	}
}

.slider-nav__btn:active {
	border-color: var(--grey-800);
	background: var(--grey-400);
}

.slider-nav__btn:disabled {
	opacity: 0.5;
	pointer-events: none;
}

.slider-nav__btn svg {
	width: 16px;
	height: 16px;
}

.slider-nav.is-locked {
	visibility: hidden;
}

@media (max-width: 1024px) {
	.slider-nav {
		display: none;
	}
}

.slider {
	position: relative;
	max-width: 1440px;
	margin: 0 auto;
	--slider-bg: #fff;
}

.slider::before,
.slider::after {
	content: '';
	position: absolute;
	top: 0;
	z-index: 1;
	width: 96px;
	height: 400px;
	pointer-events: none;
}

.slider::before {
	left: 0;
	background: linear-gradient(90deg, var(--slider-bg) 0%, transparent 100%);
}

.slider::after {
	right: 0;
	background: linear-gradient(270deg, var(--slider-bg) 0%, transparent 100%);
}

.slider__track {
	display: flex;
	padding-inline: clamp(24px, calc((100% - 1200px) / 2), 120px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-padding-inline: clamp(24px, calc((100% - 1200px) / 2), 120px);
	scrollbar-width: none;
}

.slider.is-snap .slider__track {
	scroll-snap-type: x proximity;
}

.slider__track::-webkit-scrollbar {
	display: none;
}

.slider__slide {
	flex: 0 0 auto;
	width: 276px;
	margin-right: 24px;
	scroll-snap-align: start;
}

.slider__slide:last-child {
	margin-right: 0;
}

.slider__slide .guide-card {
	display: block;
}

.slider:not(.has-prev)::before,
.slider.at-end::after {
	opacity: 0;
}

@media (max-width: 1024px) {
	.slider__track {
		padding-inline: 40px;
		scroll-padding-inline: 40px;
	}
	.slider::before,
	.slider::after {
		display: none;
	}
	.slider__slide--all {
		display: none;
	}
}

@media (max-width: 768px) {
	.slider__track {
		padding-inline: 20px;
		scroll-padding-inline: 20px;
	}
}

.home-section--paper {
	padding: 80px 0 100px;
	border-radius: 20px;
	background: var(--paper-1);
}

.home-topics {
	display: flex;
	flex-direction: column;
	gap: 120px;
	margin-bottom: 120px;
	padding-top: 80px;
}

@media (max-width: 1024px) {
	.home-topics {
		gap: 80px;
		margin-bottom: 100px;
	}
}

@media (max-width: 768px) {
	.home-topics {
		gap: 68px;
		margin-bottom: 80px;
		padding-top: 60px;
	}
}

.home-section__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1248px;
	margin: 0 auto 36px;
	padding: 0 24px;
}

.home-section__title {
	display: inline-grid;
	grid-template-columns: auto 1fr;
	align-items: center;
}

.home-section__title::before {
	content: '';
	display: block;
	width: 0;
	height: 1px;
	margin-right: 0;
	background: var(--dark-500);
	opacity: 0;
	transition:
		width 0.3s,
		margin 0.3s,
		opacity 0.3s;
}

.home-section__title h2 {
	transition: color 0.15s;
	font-size: 30px;
	line-height: 36px;
	font-weight: 540;
	letter-spacing: -0.75px;
	color: var(--dark-700);
}

@media (hover: hover) {
	.home-section__title:hover::before {
		width: 20px;
		margin-right: 12px;
		opacity: 1;
	}
	.home-section__title:hover h2 {
		color: var(--dark-500);
	}
}

.home-section__title.home-section__title--plain::after {
	display: none;
}

@media (hover: hover) {
	.home-section__title--plain:hover::before {
		width: 0;
		margin-right: 0;
		opacity: 0;
	}
	.home-section__title--plain:hover h2 {
		color: var(--dark-700);
	}
}

.home-section__title::after {
	content: 'All';
	position: absolute;
	top: 50%;
	right: 24px;
	display: none;
	padding-right: 20px;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23525252' d='M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z'/%3E%3C/svg%3E")
		right center / 16px 16px no-repeat;
	transform: translateY(-50%);
	font-size: 16px;
	line-height: 24px;
	font-weight: 480;
	color: var(--dark-500);
}

.home-section--paper .slider {
	--slider-bg: var(--paper-1);
}

@media (max-width: 1024px) {
	.home-section__title h2 {
		font-size: 24px;
		line-height: 32px;
		letter-spacing: -0.6px;
	}
	.home-section--paper {
		padding: 40px 0 60px;
	}
	.home-section__head {
		padding: 0 40px;
	}
	.home-section__title::after {
		right: 40px;
		display: block;
	}
}

@media (max-width: 768px) {
	.home-section--paper {
		padding: 28px 0 48px;
	}
	.home-section__head {
		margin-bottom: 24px;
		padding: 0 20px;
	}
	.home-section__title::after {
		right: 20px;
	}
}

.home-directory {
	display: flex;
	gap: 184px;
	justify-content: space-between;
	max-width: 1248px;
	margin: 0 auto 120px;
	padding: 0 24px;
}

.home-directory__col {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.home-directory__label {
	margin-bottom: 20px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 480;
	color: var(--dark-400);
}

.home-directory ul {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.home-directory a {
	display: inline-block;
	transition: color 0.15s;
	font-size: 24px;
	line-height: 32px;
	font-weight: 540;
	letter-spacing: -0.6px;
	color: var(--dark-700);
}

@media (hover: hover) {
	.home-directory ul:hover a {
		color: var(--dark-400);
	}
	.home-directory ul a:hover {
		color: var(--dark-700);
	}
}

@media (max-width: 1024px) {
	.home-directory {
		gap: 68px;
		padding: 0 40px;
	}
}

@media (max-width: 768px) {
	.home-directory {
		flex-direction: column;
		gap: 60px;
		margin-bottom: 80px;
		padding: 0 20px;
	}
}

.listing {
	margin-bottom: 80px;
	padding-top: 20px;
}

.listing__bar {
	display: flex;
	justify-content: center;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--grey-300);
}

.listing__bar-inner {
	flex: 1;
	max-width: 1200px;
}

.listing__title {
	margin-bottom: 20px;
	font-size: 24px;
	line-height: 32px;
	font-weight: 420;
	letter-spacing: -0.36px;
	color: var(--dark-700);
}

.listing__title.is-strong,
.listing__title .is-strong {
	font-weight: 540;
	letter-spacing: -0.6px;
}

.listing__tools {
	display: flex;
	gap: 28px;
	align-items: center;
}

.listing__tools .sbox {
	flex: 1;
}

.listing__tools .sbox--page .sbox__bar {
	margin: 0;
}

.listing__grid > li > .guide-card {
	display: block;
}

.listing__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 32px;
	max-width: 1200px;
	margin: 0 auto 40px;
	padding-top: 40px;
}

.listing__more {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
}

.listing__more .btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.listing__tools .sbox--page .sbox__bar {
		height: 48px;
	}
	.listing {
		margin-bottom: 100px;
		padding-top: 24px;
	}
	.listing__bar {
		padding-bottom: 0;
		border-bottom: 0;
	}
	.listing__bar-inner {
		margin: 0 20px;
	}
	.listing__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
		margin: 0 20px 24px;
	}
}

@media (max-width: 768px) {
	.listing__tools .filters {
		justify-content: center;
		width: 100%;
	}
	.listing__tools .filters,
	.home-hero .filters {
		flex-wrap: nowrap;
		gap: 35px;
		justify-content: flex-start;
		width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.listing__tools .filters::-webkit-scrollbar,
	.home-hero .filters::-webkit-scrollbar {
		display: none;
	}
	.listing__tools .filters::after,
	.home-hero .filters::after {
		content: '';
		position: sticky;
		right: 0;
		flex: none;
		align-self: stretch;
		width: 32px;
		margin-left: -32px;
		background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
		animation: filters-edge linear both;
		animation-timeline: scroll(nearest inline);
		pointer-events: none;
	}
	.listing__tools {
		flex-direction: column;
		gap: 12px;
		align-items: stretch;
	}
	.listing {
		margin-bottom: 68px;
	}
	.listing__bar {
		margin: 0 20px;
	}
	.listing__bar-inner {
		min-width: 0;
		margin: 0;
	}
	.listing__grid {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	}
}

.nomatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 100px 20px 40px;
}

.nomatch img {
	width: 68px;
	height: 68px;
	margin-bottom: 28px;
}

.nomatch__title {
	margin-bottom: 12px;
	font-size: 24px;
	line-height: 32px;
	font-weight: 540;
	letter-spacing: -0.6px;
	color: var(--dark-700);
}

.nomatch__text {
	font-size: 16px;
	line-height: 24px;
	font-weight: 360;
	text-align: center;
	color: var(--dark-400);
}

@media (max-width: 768px) {
	.nomatch__title {
		font-size: 20px;
		line-height: 28px;
	}
	.nomatch__text br {
		display: none;
	}
}
