.tag-center {
	min-width: 0;
}

.tag-hero {
	overflow: hidden;
	border-radius: var(--home-radius);
	background: #8a5d38;
	box-shadow: var(--home-shadow);
}

.tag-hero img {
	width: 100%;
	aspect-ratio: 818 / 236;
}

.tag-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 13px 12px;
	padding: 22px;
	margin-top: 24px;
	border: 1px solid var(--home-line);
	border-radius: var(--home-radius);
	background: var(--home-card);
	box-shadow: var(--home-shadow);
}

.tag-overview__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 31px;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 11px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag-overview__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 14px rgb(90 65 42 / 10%);
}

.tag-overview__item strong {
	font-weight: 600;
}

.tag-overview__item span {
	color: #95887e;
	font-size: 10px;
}

.tag-index-color-0 { background: #eaf7f1; color: #48a77b !important; }
.tag-index-color-1 { background: #f0edff; color: #8370d5 !important; }
.tag-index-color-2 { background: #fff3e2; color: #ee9a3c !important; }
.tag-index-color-3 { background: #ffeded; color: #f26e65 !important; }
.tag-index-color-4 { background: #e9f5fa; color: #589cc0 !important; }
.tag-index-color-5 { background: #fff0e8; color: #e99065 !important; }
.tag-index-color-6 { background: #f1f1e9; color: #777565 !important; }
.tag-index-color-7 { background: #fff0ec; color: #df7e68 !important; }

.featured-tags {
	margin-top: 22px;
}

.featured-tags__header {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	height: 46px;
	border-bottom: 1px solid var(--home-line);
}

.featured-tags__header > div {
	display: flex;
	gap: 24px;
}

.featured-tags__header button {
	position: relative;
	min-height: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--home-muted);
	font-size: 12px;
	font-weight: 500;
}

.featured-tags__header button:hover,
.featured-tags__header button.is-active {
	background: transparent;
	color: var(--home-text);
}

.featured-tags__header button.is-active {
	font-weight: 700;
}

.featured-tags__header button.is-active::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--home-orange);
	content: "";
}

.featured-tags__header > a {
	display: flex;
	align-items: center;
	color: var(--home-muted);
	font-size: 11px;
	text-decoration: none;
}

.featured-tags__header > a:hover {
	color: var(--home-orange);
}

.featured-tags__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	padding-top: 22px;
}

.tag-feature-card {
	position: relative;
	display: flex;
	min-height: 178px;
	padding: 20px;
	border: 1px solid var(--home-line);
	border-radius: var(--home-radius);
	background: var(--home-card);
	box-shadow: var(--home-shadow);
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag-feature-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgb(112 78 45 / 12%);
}

.tag-feature-card__top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tag-feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #e9f7ef;
	color: #43af73;
}

.tag-feature-card__icon .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.tag-feature-card__top h2 {
	display: inline-flex;
	padding: 3px 13px;
	margin: 0 0 2px;
	border-radius: 999px;
	background: #e9f7ef;
	color: #43a974;
	font-size: 13px;
}

.tag-feature-card__top p {
	margin: 0;
	color: var(--home-muted);
	font-size: 10px;
}

.tag-feature-card__description {
	display: -webkit-box;
	overflow: hidden;
	min-height: 42px;
	margin: 14px 0 8px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: #85776c;
	font-size: 11px;
	line-height: 1.8;
}

[data-theme="dark"] .tag-feature-card__description {
	color: var(--home-muted);
}

.tag-feature-card__link {
	margin-top: auto;
	color: var(--home-muted) !important;
	font-size: 10px;
	text-align: right;
	text-decoration: none;
}

.tag-feature-card__link:hover {
	color: var(--home-orange) !important;
}

.tag-feature-card--1 .tag-feature-card__icon,
.tag-feature-card--1 .tag-feature-card__top h2 {
	background: #f0edff;
	color: #8972d9;
}

.tag-feature-card--2 .tag-feature-card__icon,
.tag-feature-card--2 .tag-feature-card__top h2 {
	background: #fff2df;
	color: #ec9634;
}

.tag-feature-card--3 .tag-feature-card__icon,
.tag-feature-card--3 .tag-feature-card__top h2 {
	background: #ffebe8;
	color: #ef6a61;
}

.tag-feature-card--4 .tag-feature-card__icon,
.tag-feature-card--4 .tag-feature-card__top h2 {
	background: #efedff;
	color: #826fd0;
}

.tag-feature-card--5 .tag-feature-card__icon,
.tag-feature-card--5 .tag-feature-card__top h2 {
	background: #e8f7ee;
	color: #3faf70;
}

.tag-closing {
	margin: 22px 0 0;
	color: var(--home-muted);
	font-family: Georgia, "Noto Serif SC", serif;
	font-size: 13px;
	text-align: center;
}

.tag-closing span {
	color: var(--home-orange);
}

@media (max-width: 1199px) {
	.featured-tags__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.tag-overview {
		padding: 18px;
	}
}

@media (max-width: 680px) {
	.tag-overview {
		gap: 10px 8px;
		padding: 15px;
		margin-top: 16px;
	}

	.tag-overview__item {
		padding-inline: 11px;
	}

	.featured-tags__grid {
		grid-template-columns: 1fr;
	}

	.tag-feature-card {
		min-height: 160px;
	}
}
