.renbu-category-posts {
	width: 100vw !important;
	margin: 32px calc(50% - 50vw) !important;
	box-sizing: border-box;
	background: var(--renbu-category-posts-bg, #101a33);
	color: #ffffff;
}

.renbu-category-posts *,
.renbu-category-posts *::before,
.renbu-category-posts *::after {
	box-sizing: border-box;
}

.renbu-category-posts__inner {
	display: grid;
	grid-template-columns: 470px minmax(0, 1fr) 220px;
	align-items: center;
	width: min(1180px, calc(100% - 40px));
	min-height: 170px;
	margin: 0 auto;
	background: var(--renbu-category-posts-panel, #111b34);
	overflow: hidden;
}

.renbu-category-posts__tabs {
	position: relative;

	display: flex;
	align-items: center;

	padding: 18px;

	width: 470px;
	min-width: 470px;

	background: transparent;
	border-right: 0;
}

.renbu-category-posts__tab {
	position: relative;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	gap: 5px;

	width: 134px;
	height: 134px;

	min-width: 134px;
	min-height: 134px;

	padding: 16px 8px;

	border: 0;

	background: rgba(9, 16, 34, 0.96);

	color: #ffffff;
	font: inherit;
	text-align: center;
	cursor: pointer;

	box-shadow:
		0 8px 18px rgba(0, 0, 0, 0.22),
		inset 0 0 24px rgba(255,255,255,0.02);

	transition:
		background-color .2s ease,
		transform .2s ease,
		box-shadow .2s ease;
}

.renbu-category-posts__tab:last-child {
	border-right: 0;
}

.renbu-category-posts__tab::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	pointer-events: none;
	transition: background-color 0.2s ease;
}

.renbu-category-posts__tab:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 100%;
	background: rgba(255, 255, 255, 0.18);
	transform: translateY(-50%);
	pointer-events: none;
}

.renbu-category-posts__tab:last-child::after {
	display: none;
	content: none;
}

.renbu-category-posts__tab:hover,
.renbu-category-posts__tab:focus-visible,
.renbu-category-posts__tab.is-renbu-category-posts-active {
	background: rgba(32, 47, 84, 0.95);

	transform: translateY(-3px);

	box-shadow:
		0 14px 28px rgba(0,0,0,.28),
		inset 0 0 34px rgba(255,255,255,.04);
}

.renbu-category-posts__tab.is-renbu-category-posts-active::before {
	background: var(--renbu-category-posts-accent, #d5b15f);
}

.renbu-category-posts__tab-label {
	display: block;
	max-width: 100%;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.renbu-category-posts__tab-sub-label {
	display: block;
	max-width: 100%;
	color: rgba(255, 255, 255, 0.68);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.renbu-category-posts__content {
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 18px 28px;
	background: transparent;
}

.renbu-category-posts__panel {
	width: 100%;
	min-width: 0;
}

.renbu-category-posts__panel[hidden] {
	display: none;
}

.renbu-category-posts__list {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.renbu-category-posts__item {
	width: 100%;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.renbu-category-posts__item:last-child {
	border-bottom: 0;
}

.renbu-category-posts__item-link {
	display: grid;
	grid-template-columns: 92px 82px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 12px;
	min-height: 31px;
	color: #ffffff;
	text-decoration: none;
}

.renbu-category-posts__item-link:hover,
.renbu-category-posts__item-link:focus-visible {
	color: #ffffff;
	text-decoration: none;
}

.renbu-category-posts__date {
	color: rgba(255, 255, 255, 0.88);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.renbu-category-posts__post-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	max-width: 82px;
	padding: 3px 8px;
	background: var(--renbu-category-posts-accent, #d5b15f);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.renbu-category-posts__title {
	display: block;
	min-width: 0;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.55;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.renbu-category-posts__item-link:hover .renbu-category-posts__title,
.renbu-category-posts__item-link:focus-visible .renbu-category-posts__title {
	color: var(--renbu-category-posts-accent, #d5b15f);
}

.renbu-category-posts__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	transition: color 0.2s ease, transform 0.2s ease;
}

.renbu-category-posts__item-link:hover .renbu-category-posts__arrow,
.renbu-category-posts__item-link:focus-visible .renbu-category-posts__arrow {
	color: var(--renbu-category-posts-accent, #d5b15f);
	transform: translateX(3px);
}

.renbu-category-posts__empty {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	line-height: 1.8;
}

.renbu-category-posts__action {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 28px 0 0;
	background: transparent;
	border-left: 0 !important;
	box-shadow: none !important;
}

.renbu-category-posts__button {
	display: inline-grid;
	grid-template-columns: minmax(0, 1fr) 18px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 150px;
	height: 42px;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.58);
	background: var(--renbu-category-posts-button-bg, transparent);
	color: var(--renbu-category-posts-button-text, #ffffff);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.renbu-category-posts__button:hover,
.renbu-category-posts__button:focus-visible {
	border-color: var(--renbu-category-posts-accent, #d5b15f);
	background: var(--renbu-category-posts-accent, #d5b15f);
	color: #101a33;
	text-decoration: none;
}

.renbu-category-posts__button-text {
	display: block;
	min-width: 0;
	white-space: nowrap;
}

.renbu-category-posts__button-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.renbu-category-posts__button:hover .renbu-category-posts__button-arrow,
.renbu-category-posts__button:focus-visible .renbu-category-posts__button-arrow {
	transform: translateX(3px);
}

.renbu-category-posts-notice {
	margin: 16px 0;
	padding: 12px 16px;
	border-left: 4px solid #d63638;
	background: #fff5f5;
	color: #1d2327;
	font-size: 14px;
	line-height: 1.7;
}

@media (max-width: 991px) {
	.renbu-category-posts__inner {
		grid-template-columns: 330px minmax(0, 1fr) 170px;
	}

	.renbu-category-posts__tabs {
		grid-template-columns: repeat(3, 110px);
		width: 330px;
		min-width: 330px;
	}

	.renbu-category-posts__tab {
		width: 110px;
		height: 110px;
		min-width: 110px;
		min-height: 110px;
	}

	.renbu-category-posts__content {
		padding: 18px 20px;
	}

	.renbu-category-posts__item-link {
		grid-template-columns: 86px 74px minmax(0, 1fr) 16px;
		gap: 10px;
	}

	.renbu-category-posts__action {
		padding-right: 18px;
	}

	.renbu-category-posts__button {
		width: 136px;
	}
}

@media (max-width: 767px) {
	.renbu-category-posts {
		margin: 28px calc(50% - 50vw) !important;
	}

	.renbu-category-posts__inner {
		display: block;
		width: min(100% - 30px, 640px);
		min-height: 0;
	}

	.renbu-category-posts__tabs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
		min-width: 0;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.renbu-category-posts__tab {
		width: 100%;
		height: 72px;
		min-width: 0;
		min-height: 72px;
		padding: 13px 6px;
	}

	.renbu-category-posts__tab::before {
		height: 3px;
		top: auto;
		bottom: 0;
	}

	.renbu-category-posts__tab-label {
		font-size: 13px;
	}

	.renbu-category-posts__tab-sub-label {
		font-size: 8px;
	}

	.renbu-category-posts__content {
		display: block;
		padding: 18px 18px 6px;
	}

	.renbu-category-posts__item-link {
		display: grid;
		grid-template-columns: 84px minmax(0, 1fr) 16px;
		grid-template-areas:
			"date label arrow"
			"title title arrow";
		gap: 5px 9px;
		min-height: 0;
		padding: 13px 0;
	}

	.renbu-category-posts__date {
		grid-area: date;
	}

	.renbu-category-posts__post-label {
		grid-area: label;
		justify-self: start;
		min-width: 58px;
		max-width: 140px;
	}

	.renbu-category-posts__title {
		grid-area: title;
		font-size: 14px;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
	}

	.renbu-category-posts__arrow {
		grid-area: arrow;
	}

	.renbu-category-posts__action {
		display: block;
		padding: 16px 18px 20px;
	}

	.renbu-category-posts__button {
		width: 100%;
		height: 48px;
	}
}
