.page-template-template-posts-hub,
.page-template-page-templates-template-posts-hub,
.ro-posts-hub-body,
body:has(.ro-posts-page) {
	background-color: #f5f1ea;
	background-image:
		radial-gradient(circle at 10% 10%, rgba(138, 61, 34, 0.08) 0, rgba(138, 61, 34, 0) 24%),
		radial-gradient(circle at 90% 0, rgba(24, 33, 43, 0.06) 0, rgba(24, 33, 43, 0) 18%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.45) 25%, rgba(255, 255, 255, 0) 25%),
		linear-gradient(225deg, rgba(255, 255, 255, 0.35) 25%, rgba(255, 255, 255, 0) 25%);
	background-size: auto, auto, 28px 28px, 28px 28px;
	background-position: 0 0, 0 0, 0 0, 14px 14px;
}

.page-template-template-posts-hub #content-wrap,
.page-template-page-templates-template-posts-hub #content-wrap,
.ro-posts-hub-body #content-wrap,
body:has(.ro-posts-page) #content-wrap {
	width: 100%;
	max-width: 1240px;
}

.page-template-template-posts-hub #primary.content-area,
.page-template-template-posts-hub #content.site-content,
.page-template-page-templates-template-posts-hub #primary.content-area,
.page-template-page-templates-template-posts-hub #content.site-content,
.ro-posts-hub-body #primary.content-area,
.ro-posts-hub-body #content.site-content,
body:has(.ro-posts-page) #primary.content-area,
body:has(.ro-posts-page) #content.site-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.ro-posts-page {
	padding: 28px 0 64px;
}

.ro-posts-page.is-loading .ro-posts-layout {
	opacity: 0.64;
	pointer-events: none;
	transition: opacity 0.18s ease;
}

.ro-posts-hero {
	position: relative;
	overflow: hidden;
	padding: 30px;
	margin-bottom: 26px;
	border: 1px solid #d9e0e5;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(251, 247, 241, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.ro-posts-hero::after {
	content: "";
	position: absolute;
	right: -28px;
	bottom: -36px;
	width: 180px;
	height: 180px;
	border-radius: 32px;
	background-image:
		linear-gradient(45deg, rgba(138, 61, 34, 0.08) 25%, transparent 25%, transparent 75%, rgba(138, 61, 34, 0.08) 75%),
		linear-gradient(-45deg, rgba(138, 61, 34, 0.08) 25%, transparent 25%, transparent 75%, rgba(138, 61, 34, 0.08) 75%);
	background-size: 22px 22px;
	transform: rotate(8deg);
	pointer-events: none;
}

.ro-posts-eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a3d22;
}

.ro-posts-title {
	margin: 0 0 14px;
	font-size: clamp(34px, 5vw, 52px);
	line-height: 1.03;
	color: #18212b;
}

.ro-posts-intro {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.65;
	color: #445464;
}

.ro-posts-intro p:last-child {
	margin-bottom: 0;
}

.ro-posts-hero-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 24px;
	position: relative;
	z-index: 1;
}

.ro-posts-stat {
	padding: 16px 18px;
	border: 1px solid #e1e7ec;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.85);
}

.ro-posts-stat-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	color: #18212b;
}

.ro-posts-stat-label {
	display: block;
	margin-top: 7px;
	font-size: 13px;
	color: #5c6b79;
}

.ro-posts-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

.ro-posts-main,
.ro-posts-sidebar {
	min-width: 0;
}

.ro-posts-toolbar {
	display: grid;
	gap: 14px;
	padding: 20px;
	margin-bottom: 22px;
	border: 1px solid #d9e0e5;
	border-radius: 20px;
	background: #fff;
}

.ro-posts-state {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	color: #415161;
}

.ro-posts-state-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5d6c79;
}

.ro-posts-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ro-posts-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid #d0d7df;
	border-radius: 999px;
	background: #fff;
	color: #22313f;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: 0.2s ease;
}

.ro-posts-chip:hover,
.ro-posts-chip.is-active {
	border-color: #8a3d22;
	background: #8a3d22;
	color: #fff;
}

.ro-posts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ro-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #d9e0e5;
	border-radius: 22px;
	background: #fff;
}

.ro-post-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #efe7df;
}

.ro-post-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ro-card-video-preview {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	color: #fff;
	background:
		linear-gradient(135deg, rgba(32, 37, 43, 0.92), rgba(58, 66, 74, 0.88)),
		repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 10px);
}

.ro-card-video-preview img {
	position: absolute;
	inset: 0;
}

.ro-card-video-preview::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
}

.ro-card-video-badge,
.ro-card-video-provider {
	position: relative;
	z-index: 2;
}

.ro-card-video-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(32, 37, 43, 0.78);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
}

.ro-card-video-provider {
	display: none;
}

.ro-card-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border: 3px solid rgba(255, 255, 255, 0.76);
	border-radius: 50%;
	background: rgba(32, 37, 43, 0.24);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
	transform: translate(-50%, -50%);
}

.ro-card-video-play::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 5px;
	border-top: 13px solid transparent;
	border-bottom: 13px solid transparent;
	border-left: 20px solid #fff;
}

.ro-post-card-media-video {
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 0;
	overflow: hidden;
}

.ro-post-card-media-video .wp-video,
.ro-post-card-media-video .mejs-container,
.ro-post-card-media-video video,
.ro-post-card-media-video iframe {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}

.ro-post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
}

.ro-post-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.ro-post-card-date,
.ro-post-card-term {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.ro-post-card-date {
	background: #eef3f7;
	color: #314353;
}

.ro-post-card-term {
	background: #f8e8dd;
	color: #8a3d22;
	text-decoration: none;
}

.ro-post-card-term:hover {
	background: #8a3d22;
	color: #fff;
}

.ro-post-card-title {
	margin: 0;
	font-size: 26px;
	line-height: 1.15;
}

.ro-post-card-title a {
	color: #18212b;
	text-decoration: none;
}

.ro-post-card-title a:hover {
	color: #8a3d22;
}

.ro-post-card-excerpt {
	margin: 0;
	color: #4d5f70;
	line-height: 1.65;
}

.ro-post-card-footer {
	margin-top: auto;
}

.ro-post-card-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #cfd7df;
	border-radius: 999px;
	color: #22313f;
	font-weight: 700;
	text-decoration: none;
	transition: 0.2s ease;
}

.ro-post-card-link:hover {
	border-color: #8a3d22;
	background: #8a3d22;
	color: #fff;
}

.ro-posts-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.ro-posts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid #d0d7df;
	border-radius: 999px;
	background: #fff;
	color: #22313f;
	font-weight: 700;
	text-decoration: none;
}

.ro-posts-pagination .page-numbers:hover,
.ro-posts-pagination .page-numbers.current {
	border-color: #8a3d22;
	background: #8a3d22;
	color: #fff;
}

.ro-posts-sidebar {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 16px;
}

.ro-posts-search,
.ro-posts-sidebar-card {
	padding: 18px;
	border: 1px solid #d9e0e5;
	border-radius: 20px;
	background: #fff;
}

.ro-posts-search {
	display: grid;
	gap: 12px;
}

.ro-posts-search input[type="search"] {
	min-height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #d0d7df;
	border-radius: 14px;
}

.ro-posts-search button {
	min-height: 44px;
	border: 1px solid #18212b;
	border-radius: 999px;
	background: #18212b;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ro-posts-sidebar-title {
	margin: 0 0 16px;
	font-size: 18px;
	color: #18212b;
}

.ro-posts-tree,
.ro-posts-subtree,
.ro-posts-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ro-posts-tree {
	display: grid;
	gap: 10px;
}

.ro-posts-subtree {
	display: none;
	gap: 8px;
	padding-top: 10px;
	padding-left: 16px;
}

.ro-posts-subtree.is-open {
	display: grid;
}

.ro-posts-tree-link,
.ro-posts-subtree-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	color: #22313f;
	text-decoration: none;
	line-height: 1.35;
}

.ro-posts-tree-link {
	background: #f8fafb;
	font-weight: 700;
}

.ro-posts-subtree-link {
	background: #fff;
	font-size: 14px;
}

.ro-posts-tree-link:hover,
.ro-posts-tree-link.is-active,
.ro-posts-subtree-link:hover,
.ro-posts-subtree-link.is-active {
	background: #f8e8dd;
	color: #8a3d22;
}

.ro-posts-tree-count {
	flex: 0 0 auto;
	min-width: 28px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(24, 33, 43, 0.08);
	font-size: 12px;
	text-align: center;
}

.ro-posts-links {
	display: grid;
	gap: 10px;
}

.ro-posts-links a {
	color: #314353;
	font-weight: 600;
	text-decoration: none;
}

.ro-posts-links a:hover {
	color: #8a3d22;
}

.ro-posts-empty {
	padding: 28px;
	border: 1px solid #d9e0e5;
	border-radius: 20px;
	background: #fff;
}

.ro-posts-empty h2 {
	margin: 0 0 12px;
	font-size: 28px;
	color: #18212b;
}

.ro-posts-empty p {
	margin: 0 0 18px;
	color: #4d5f70;
}

@media (max-width: 1080px) {
	.ro-posts-layout {
		grid-template-columns: 1fr;
	}

	.ro-posts-sidebar {
		position: static;
		order: -1;
	}
}

@media (max-width: 767px) {
	.ro-posts-page {
		padding-bottom: 42px;
	}

	.ro-posts-hero,
	.ro-posts-toolbar,
	.ro-posts-search,
	.ro-posts-sidebar-card,
	.ro-posts-empty {
		padding: 18px;
		border-radius: 18px;
	}

	.ro-posts-hero-meta,
	.ro-posts-grid {
		grid-template-columns: 1fr;
	}

	.ro-post-card-title {
		font-size: 23px;
	}
}
