.manohara-category-page > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.manohara-category-band {
	border-block-end: 1px solid var(--wp--preset--color--rule);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	padding-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.manohara-category-band > * {
	margin: 0 !important;
}

.manohara-category-band__title {
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.15;
}

.manohara-term-description {
	color: var(--wp--preset--color--contrast-muted);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.7;
	max-inline-size: var(--wp--custom--measure--prose);
}

.manohara-term-description:empty {
	display: none;
}

.manohara-term-description * {
	margin-inline: 0 !important;
	text-align: start !important;
}

.manohara-term-description > * {
	margin-block: 0 !important;
}

.manohara-term-description > * + * {
	margin-block-start: 0.75em !important;
}

.manohara-term-description > p:first-child > strong:only-child {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--reading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.35;
}

.manohara-term-description hr {
	background: none !important;
	block-size: 0 !important;
	border: 0 !important;
	border-block-start: 1px solid var(--wp--preset--color--rule) !important;
	inline-size: 4rem !important;
}

.manohara-term-meta {
	column-gap: var(--wp--preset--spacing--40) !important;
	font-family: var(--wp--preset--font-family--structure);
	font-size: var(--wp--preset--font-size--small);
	row-gap: 0.6rem !important;
}

.manohara-term-meta > * {
	margin: 0 !important;
}

.manohara-term-meta:not(:has(> :not(:empty))) {
	display: none;
}

.manohara-term-count {
	color: var(--wp--preset--color--contrast-muted);
	font-variant-numeric: tabular-nums;
}

.manohara-term-count:empty,
.manohara-term-children:empty {
	display: none;
}

.manohara-term-children {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.manohara-term-children__label {
	color: var(--wp--preset--color--contrast-muted);
	margin-inline-end: 0.2rem;
}

.manohara-category-lead:not(:has(.wp-block-post)) {
	display: none;
}

.manohara-category-lead .wp-block-query-no-results {
	display: none;
}

.manohara-category-explore {
	border-block-start: 1px solid var(--wp--preset--color--rule);
	padding-block-start: var(--wp--preset--spacing--40);
}

.manohara-category-explore .manohara-section-title {
	border-block-end: 0;
	padding-block-end: 0;
}

.manohara-highlight > .wp-block-heading {
	margin-block: 0 var(--wp--preset--spacing--30);
}

.is-style-manohara-card.manohara-highlight--popular {
	border-top-color: var(--wp--preset--color--accent-alt);
}

.manohara-highlight--popular > .wp-block-heading {
	color: var(--wp--preset--color--accent-alt);
}

.manohara-highlight .wp-block-post-template:not([class*="is-style-"]) {
	display: flex;
	flex-direction: column;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.manohara-highlight .wp-block-post-template:not([class*="is-style-"]) > li {
	align-items: start;
	border-top: 1px solid var(--wp--preset--color--rule);
	column-gap: 0.9rem;
	display: grid;
	grid-template-areas:
		"thumb title"
		"thumb date";
	grid-template-columns: 5.5rem minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	padding-block: var(--wp--preset--spacing--30);
	position: relative;
}

.manohara-highlight .wp-block-post-template:not([class*="is-style-"]) > li:first-child {
	border-top: 0;
	padding-top: 0;
}

.manohara-highlight .wp-block-post-template:not([class*="is-style-"]) > li:last-child {
	padding-bottom: 0;
}

.manohara-highlight .wp-block-post-template:not([class*="is-style-"]) .wp-block-post-title {
	grid-area: title;
	line-height: 1.3;
	margin-block: 0 0.3rem;
}

:where(.wp-block-post-template:not([class*="is-style-"])) .manohara-highlight__thumb {
	aspect-ratio: 4 / 3;
	border-radius: var(--wp--custom--radius--md);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--contrast) 8%, transparent);
	grid-area: thumb;
	inline-size: 5.5rem;
}

:where(.wp-block-post-template:not([class*="is-style-"])) .manohara-highlight__thumb img {
	transition: transform var(--manohara-motion-base, 160ms) var(--manohara-ease, ease-out);
}

.manohara-highlight .wp-block-post-template:not([class*="is-style-"]) > li:hover .manohara-highlight__thumb img {
	transform: scale(1.04);
}

:is( .manohara-highlight, .manohara-category-index ) .wp-block-post-title a::after {
	content: "";
	inset: 0;
	position: absolute;
}

:is( .manohara-highlight, .manohara-category-index ) .wp-block-post-title a {
	text-decoration: none;
}

:is( .manohara-highlight, .manohara-category-index ) .wp-block-post-title a:hover,
:is( .manohara-highlight, .manohara-category-index ) .wp-block-post-title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.manohara-highlight .wp-block-post-template:not([class*="is-style-"]) .wp-block-post-date {
	grid-area: date;
	margin-block: 0;
}

.manohara-highlight--popular .wp-block-post-template:not([class*="is-style-"]) {
	counter-reset: manohara-rank;
}

.manohara-highlight--popular .wp-block-post-template:not([class*="is-style-"]) > li {
	counter-increment: manohara-rank;
}

.manohara-highlight--popular .wp-block-post-template:not([class*="is-style-"]) .manohara-highlight__thumb::after {
	background-color: var(--wp--preset--color--accent-surface);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	content: counter(manohara-rank);
	font-family: var(--wp--preset--font-family--data);
	font-size: var(--wp--preset--font-size--x-small);
	inset-block-start: 0.3rem;
	inset-inline-start: 0.3rem;
	line-height: 1.4rem;
	min-inline-size: 1.4rem;
	position: absolute;
	text-align: center;
	box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}

.manohara-highlight--popular .wp-block-post-template:not([class*="is-style-"]) > li:not(:has(.manohara-highlight__thumb)) {
	grid-template-areas:
		"rank title"
		"rank date";
	grid-template-columns: 1.5rem minmax(0, 1fr);
}

.manohara-highlight--popular .wp-block-post-template:not([class*="is-style-"]) > li:not(:has(.manohara-highlight__thumb))::before {
	background-color: var(--wp--preset--color--accent-surface);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	content: counter(manohara-rank);
	font-family: var(--wp--preset--font-family--data);
	font-size: var(--wp--preset--font-size--x-small);
	grid-area: rank;
	line-height: 1.5rem;
	text-align: center;
	width: 1.5rem;
}

.manohara-category-index > .wp-block-heading {
	margin-block: 0 var(--wp--preset--spacing--40);
}

.manohara-category-index .wp-block-post-template:not([class*="is-style-"]) {
	list-style: none;
	margin: 0;
	padding: 0;
}

.manohara-category-index .wp-block-post-template:not([class*="is-style-"]) > li {
	align-items: center;
	border-top: 1px solid var(--wp--preset--color--rule);
	column-gap: var(--wp--preset--spacing--30);
	display: grid;
	grid-template-areas: "thumb title date";
	grid-template-columns: 3.5rem minmax(0, 1fr) auto;
	padding-block: 0.7rem;
	position: relative;
}

.manohara-category-index .wp-block-post-template:not([class*="is-style-"]) > li:has(> .manohara-index__year) {
	grid-template-areas:
		"year year year"
		"thumb title date";
}

:where(.wp-block-post-template:not([class*="is-style-"])) .manohara-index__thumb {
	aspect-ratio: 1;
	border-radius: var(--wp--custom--radius--sm);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--contrast) 8%, transparent);
	grid-area: thumb;
	inline-size: 3.5rem;
}

:where(.wp-block-post-template:not([class*="is-style-"])) .manohara-index__thumb img {
	transition: transform var(--manohara-motion-base, 160ms) var(--manohara-ease, ease-out);
}

.manohara-category-index .wp-block-post-template:not([class*="is-style-"]) > li:hover .manohara-index__thumb img {
	transform: scale(1.06);
}

.manohara-category-index .wp-block-post-template:not([class*="is-style-"]) > li:first-child {
	border-top: 0;
}

:where(.wp-block-post-template:not([class*="is-style-"])) .manohara-index__title {
	grid-area: title;
	line-height: 1.35;
	margin-block: 0;
}

:where(.wp-block-post-template:not([class*="is-style-"])) .manohara-index__date {
	grid-area: date;
	font-variant-numeric: tabular-nums;
	margin-block: 0;
	white-space: nowrap;
}

:where(.wp-block-post-template:not([class*="is-style-"])) .manohara-index__year {
	align-items: center;
	color: var(--wp--preset--color--accent);
	display: flex;
	font-family: var(--wp--preset--font-family--structure);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	gap: 0.75rem;
	grid-area: year;
	letter-spacing: 0.12em;
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20);
}

:where(.wp-block-post-template:not([class*="is-style-"])) .manohara-index__year::after {
	background-color: var(--wp--preset--color--rule);
	content: "";
	flex: 1 1 auto;
	height: 1px;
}

.manohara-category-index .wp-block-post-template:not([class*="is-style-"]) > li:has(.manohara-index__year) {
	border-top: 0;
}

.manohara-category-index .wp-block-post-template:not([class*="is-style-"]) > li:first-child .manohara-index__year {
	margin-top: 0;
}

.manohara-category-index .wp-block-query-pagination {
	border-top: 1px solid var(--wp--preset--color--rule);
	margin-top: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--30);
}

@media (max-width: 600px) {
	.manohara-category-index .wp-block-post-template:not([class*="is-style-"]) > li {
		grid-template-areas:
			"thumb title"
			"thumb date";
		grid-template-columns: 3.25rem minmax(0, 1fr);
		row-gap: 0.2rem;
	}

	.manohara-category-index .wp-block-post-template:not([class*="is-style-"]) > li:has(> .manohara-index__year) {
		grid-template-areas:
			"year year"
			"thumb title"
			"thumb date";
	}

	:where(.wp-block-post-template:not([class*="is-style-"])) .manohara-index__thumb {
		inline-size: 3.25rem;
	}

	.manohara-highlight .wp-block-post-template:not([class*="is-style-"]) > li {
		grid-template-columns: 4.75rem minmax(0, 1fr);
	}

	:where(.wp-block-post-template:not([class*="is-style-"])) .manohara-highlight__thumb {
		inline-size: 4.75rem;
	}

}

.wp-block-post-template[class*="is-style-"] .manohara-index__year {
	display: none;
}
