/* Homepage layout only. Parent templates and widget data remain unchanged. */

/* Popular Today contains five cards; give each one a true fifth of the row. */
.homehot .hotstack .hotoday {
	width: 20%;
}

.tanooki-home-layout .tanooki-home-main {
	float: none;
	width: 100%;
}

.tanooki-home-layout #sidebar {
	clear: both;
	display: grid;
	float: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	width: 100%;
}

.tanooki-home-layout #sidebar > .section {
	min-width: 0;
	margin: 0;
}

/* Popular ranking: full-width, with a compact two-column list. */
.tanooki-home-layout #sidebar > .section:first-child {
	grid-column: 1 / -1;
}

.tanooki-home-layout #sidebar > .section:first-child #wpop-items .serieslist ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tanooki-home-layout #sidebar > .section:first-child #wpop-items .serieslist ul > li {
	min-width: 0;
}

.tanooki-home-layout #sidebar > .section:first-child #wpop-items .serieslist ul > li:nth-child(odd) {
	border-right: 1px solid #ececec;
}

.tanooki-home-layout #sidebar > .section:first-child #wpop-items .serieslist ul > li.topone {
	grid-column: 1 / -1;
	border-right: 0;
}

/* The Popular widget injects a script between widgets; it must not become a grid item. */
.tanooki-home-layout #sidebar > script {
	display: none;
}

/* Discord and Filter Search share the final row. */
.tanooki-home-layout #sidebar > .section.widget_text iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
}

.tanooki-home-layout #sidebar > .clear {
	display: none;
}

.tanooki-home-faq-promo {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.tanooki-home-faq-promo__art {
	position: relative;
	display: block;
	flex: 0 0 158px;
	min-height: 158px;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.02)),
		url('../images/SHFAQ-banner.png') 61% center / cover no-repeat;
}

.tanooki-home-faq-promo__art span {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 9px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	background: rgba(12, 7, 9, 0.72);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.tanooki-home-faq-promo__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 22px 22px;
}

.tanooki-home-faq-promo__eyebrow {
	margin: 0 0 6px;
	color: #ac3654;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.tanooki-home-faq-promo__content h2 {
	margin: 0;
	color: #2c2926;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
}

.tanooki-home-faq-promo__content > p:not(.tanooki-home-faq-promo__eyebrow) {
	margin: 10px 0 13px;
	color: #706a65;
	font-size: 13px;
	line-height: 1.55;
}

.tanooki-home-faq-promo__content ul {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 17px;
	padding: 0;
	list-style: none;
}

.tanooki-home-faq-promo__content li {
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(172, 54, 84, 0.1);
	color: #ac3654;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
}

.tanooki-home-faq-promo__button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-width: 230px;
	margin-top: auto;
	padding: 10px 14px;
	border-radius: 4px;
	background: #ac3654;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.tanooki-home-faq-promo__button:hover,
.tanooki-home-faq-promo__button:focus {
	background: #7f263d;
	color: #fff;
	text-decoration: none;
}

.tanooki-home-faq-promo__button span {
	font-size: 17px;
	line-height: 1;
}

body.darkmode .tanooki-home-faq-promo__content h2 {
	color: #eee8e2;
}

body.darkmode .tanooki-home-faq-promo__content > p:not(.tanooki-home-faq-promo__eyebrow) {
	color: #aaa09a;
}

body.darkmode .tanooki-home-faq-promo__button:hover,
body.darkmode .tanooki-home-faq-promo__button:focus {
	color: #fff4ec !important;
}

body.darkmode .tanooki-home-layout #sidebar > .section:first-child #wpop-items .serieslist ul > li:nth-child(odd) {
	border-right-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 815px) {
	.homehot .hotstack .hotoday {
		width: 25%;
	}
}

@media (max-width: 760px) {
	.tanooki-home-layout #sidebar {
		grid-template-columns: 1fr;
	}

	.tanooki-home-layout #sidebar > .section:first-child {
		grid-column: auto;
	}

	.tanooki-home-faq-promo__art {
		flex-basis: 150px;
		min-height: 150px;
		background-position: center, 65% center;
	}
}

@media (max-width: 620px) {
	.homehot .hotstack .hotoday {
		width: 33.333333%;
	}
}

@media (max-width: 560px) {
	.tanooki-home-layout #sidebar > .section:first-child #wpop-items .serieslist ul {
		grid-template-columns: 1fr;
	}

	.tanooki-home-layout #sidebar > .section:first-child #wpop-items .serieslist ul > li:nth-child(odd) {
		border-right: 0;
	}

	.tanooki-home-faq-promo__content {
		padding: 18px;
	}

	.tanooki-home-faq-promo__button {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 450px) {
	.homehot .hotstack .hotoday {
		width: 50%;
	}
}
