:root {
	--ven-hero: #4c4b78;
	--ven-hero-deep: #3f3e68;
	--ven-accent: #e86b4e;
	--ven-canvas: #edf2f6;
	--ven-panel: #ffffff;
	--ven-ink: #343750;
	--ven-muted: #71758c;
	--ven-line: #dce3ea;
	--ven-chip: #e4edf3;
	--ven-shadow: 0 12px 28px rgba(47, 50, 77, 0.08);
}

.ven-library-page .pt-site-main,
.ven-library-page #content,
.ven-library-page .site-content {
	max-width: none;
	padding: 0;
	margin: 0;
}

.ven-library {
	background: var(--ven-canvas);
	color: var(--ven-ink);
	font-family: inherit;
}

/* WordPress already offsets logged-in mobile pages for the admin bar. */
@media (max-width: 767px) {
	.ven-library-page .pt-app-shell {
		padding-top: var(--pt-mobile-header) !important;
	}
}

.ven-library a {
	color: inherit;
	text-decoration: none;
}

.ven-library__hero {
	position: relative;
	min-height: 438px;
	overflow: hidden;
	background: var(--ven-hero);
	color: #fff;
}

.ven-library__hero-content {
	position: relative;
	z-index: 2;
	width: min(100% - 40px, 900px);
	margin: 0 auto;
	padding: 54px 0 132px;
	text-align: center;
}

.ven-library__eyebrow {
	margin: 0 0 7px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.76;
}

.ven-library__hero h1 {
	margin: 0 0 27px;
	color: #fff;
	font-size: clamp(38px, 4vw, 52px);
	font-weight: 400;
	line-height: 1.1;
}

.ven-library__search {
	display: grid;
	grid-template-columns: 1fr 106px;
	width: 100%;
	height: 59px;
	overflow: hidden;
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(30, 29, 62, 0.14);
}

.ven-library__search input {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0 27px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #353750;
	font: inherit;
	font-size: 16px;
}

.ven-library__search input::placeholder {
	color: #727587;
	opacity: 1;
}

.ven-library__search button {
	display: grid;
	place-items: center;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 30px;
	background: var(--ven-accent);
	color: #fff;
	cursor: pointer;
	font-size: 23px;
}

.ven-library__search:focus-within {
	outline: 3px solid rgba(255, 255, 255, 0.58);
	outline-offset: 4px;
}

.ven-library__intro {
	max-width: 735px;
	margin: 20px auto 0;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.55;
}

.ven-library__icon-strip {
	position: absolute;
	z-index: 1;
	right: 0;
	bottom: -16px;
	left: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: clamp(12px, 1.8vw, 30px);
	height: 118px;
	padding: 0 30px;
	color: #f2f2df;
}

.ven-library__icon-strip span {
	display: grid;
	place-items: center;
	width: clamp(52px, 5.5vw, 82px);
	height: clamp(60px, 6vw, 88px);
	transform: rotate(var(--ven-angle, -2deg));
	border: 3px solid rgba(255, 255, 255, 0.84);
	border-radius: 14px 14px 6px 6px;
	background: #87999e;
	box-shadow: 0 6px 0 rgba(38, 38, 69, 0.24);
	font-size: clamp(30px, 3.1vw, 49px);
}

.ven-library__icon-strip span:nth-child(3n + 2) { --ven-angle: 3deg; background: #d7bd67; color: #594f3d; }
.ven-library__icon-strip span:nth-child(3n) { --ven-angle: -4deg; background: #d76f59; color: #fff7e8; }
.ven-library__icon-strip span:nth-child(4n) { height: clamp(74px, 7vw, 102px); }

.ven-library__canvas {
	min-height: 800px;
	padding: 76px 28px 100px;
	background: var(--ven-canvas);
}

.ven-library__layout {
	display: grid;
	grid-template-columns: 318px minmax(0, 1fr);
	gap: 38px;
	width: min(100%, 1388px);
	margin: 0 auto;
}

.ven-library__sidebar {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.ven-sidebar-card {
	overflow: hidden;
	border: 1px solid var(--ven-line);
	border-radius: 7px;
	background: var(--ven-panel);
	box-shadow: 0 5px 18px rgba(50, 53, 79, 0.035);
}

.ven-sidebar-card h2 {
	position: relative;
	margin: 0;
	padding: 20px 24px;
	border-bottom: 1px solid var(--ven-line);
	color: var(--ven-ink);
	font-size: 18px;
	font-weight: 600;
}

.ven-sidebar-card h2::before,
.ven-section-heading h2::before {
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 0;
	width: 4px;
	border-radius: 0 3px 3px 0;
	background: var(--ven-accent);
	content: "";
}

.ven-sidebar-card nav {
	display: grid;
	gap: 3px;
	padding: 20px 24px 25px;
}

.ven-sidebar-card nav a {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 41px;
	color: var(--ven-ink);
	font-size: 16px;
}

.ven-sidebar-card nav i {
	width: 22px;
	font-size: 21px;
	text-align: center;
}

.ven-sidebar-card__archive-list {
	display: grid;
	gap: 2px;
	padding: 22px 24px 26px;
}

.ven-sidebar-card__archive-list > span {
	display: grid;
	grid-template-columns: 14px 1fr auto;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	font-size: 15px;
}

.ven-sidebar-card__archive-list i {
	color: #999ca8;
	font-size: 13px;
}

.ven-sidebar-card__archive-list small {
	color: var(--ven-muted);
}

.ven-sidebar-card__empty {
	margin: 0;
	color: var(--ven-muted);
	font-size: 14px;
	line-height: 1.5;
}

.ven-library__catalog {
	min-width: 0;
}

.ven-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 25px;
}

.ven-section-heading h2 {
	position: relative;
	margin: 0;
	padding-left: 13px;
	color: var(--ven-ink);
	font-size: 28px;
	font-weight: 600;
}

.ven-section-heading h2::before {
	top: 1px;
	bottom: 1px;
	border-radius: 3px;
}

.ven-section-heading > a {
	color: var(--ven-accent);
	font-size: 15px;
	font-weight: 600;
}

.ven-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 11px;
	margin: 0 0 27px;
}

.ven-filter-pills a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 94px;
	height: 38px;
	padding: 0 20px;
	border: 1px solid #cbd8e1;
	border-radius: 20px;
	background: var(--ven-chip);
	color: var(--ven-ink);
	font-size: 15px;
	font-weight: 600;
}

.ven-filter-pills a.is-active {
	border-color: var(--ven-accent);
	background: var(--ven-accent);
	color: #fff;
}

.ven-advanced-filters {
	margin: -12px 0 28px;
	border: 1px solid var(--ven-line);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.72);
}

.ven-advanced-filters summary {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 48px;
	padding: 0 16px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	list-style: none;
}

.ven-advanced-filters summary::-webkit-details-marker { display: none; }
.ven-advanced-filters summary i { color: var(--ven-accent); font-size: 20px; }

.ven-advanced-filters form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 13px;
	padding: 0 16px 16px;
}

.ven-advanced-filters label {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.ven-advanced-filters label span {
	color: var(--ven-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ven-advanced-filters select {
	width: 100%;
	height: 41px;
	padding: 0 34px 0 11px;
	border: 1px solid #cbd8e1;
	border-radius: 5px;
	background: var(--ven-panel);
	color: var(--ven-ink);
	font: inherit;
	font-size: 14px;
}

.ven-advanced-filters button,
.ven-advanced-filters form > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 41px;
	align-self: end;
	border-radius: 5px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
}

.ven-advanced-filters button {
	border: 0;
	background: var(--ven-accent);
	color: #fff;
	cursor: pointer;
}

.ven-advanced-filters form > a {
	border: 1px solid var(--ven-line);
	background: var(--ven-panel);
}

.ven-catalog-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 33px 36px;
}

.ven-card {
	min-width: 0;
}

.ven-card__cover {
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 0.76;
	border-radius: 7px;
	background: #dce4e9;
	box-shadow: 0 8px 18px rgba(41, 45, 67, 0.08);
}

.ven-card__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ven-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--ven-hero-deep);
	color: rgba(255, 255, 255, 0.8);
	font-size: 50px;
}

.ven-card:nth-child(4n + 2) .ven-card__placeholder { background: #d5b741; color: #37323a; }
.ven-card:nth-child(4n + 3) .ven-card__placeholder { background: #357486; }
.ven-card:nth-child(4n) .ven-card__placeholder { background: #802d21; }

.ven-card__title {
	margin: 15px 0 0;
	color: var(--ven-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.ven-card__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ven-card__category {
	margin: 5px 0 0;
	color: var(--ven-muted);
	font-size: 13px;
}

.ven-card--loading span:first-child {
	display: block;
	width: 100%;
	aspect-ratio: 0.76;
	border-radius: 7px;
	background: #dde5ea;
	animation: ven-pulse 1.3s ease-in-out infinite alternate;
}

.ven-card--loading span:last-child {
	display: block;
	width: 70%;
	height: 18px;
	margin-top: 15px;
	border-radius: 3px;
	background: #dde5ea;
	animation: ven-pulse 1.3s ease-in-out 0.2s infinite alternate;
}

@keyframes ven-pulse { to { opacity: 0.48; } }

.ven-empty-state {
	display: grid;
	place-items: center;
	min-height: 390px;
	padding: 50px;
	border: 1px solid var(--ven-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.58);
	text-align: center;
}

.ven-empty-state.is-hidden { display: none; }
.ven-empty-state i { color: var(--ven-hero); font-size: 54px; }
.ven-empty-state h3 { margin: 14px 0 5px; color: var(--ven-ink); font-size: 21px; }
.ven-empty-state p { max-width: 500px; margin: 0; color: var(--ven-muted); line-height: 1.55; }

.ven-pagination {
	display: flex;
	justify-content: center;
	gap: 11px;
	margin: 54px 0 56px;
}

.ven-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border-radius: 5px;
	background: #f3f4f5;
}

.ven-pagination .current { background: var(--ven-accent); color: #fff; }

.ven-category-rail {
	margin-top: 58px;
}

.ven-category-rail__track {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.ven-category-rail__track a {
	display: grid;
	gap: 8px;
}

.ven-category-rail__track span {
	display: grid;
	place-items: center;
	aspect-ratio: 0.76;
	border-radius: 7px;
	background: var(--ven-hero);
	color: #fff;
	font-size: 48px;
}

.ven-category-rail__track a:nth-child(4n + 2) span { background: #397d88; }
.ven-category-rail__track a:nth-child(4n + 3) span { background: #c5a83b; color: #393643; }
.ven-category-rail__track a:nth-child(4n) span { background: #87372b; }
.ven-category-rail__track strong { font-size: 17px; }
.ven-category-rail__track small { color: var(--ven-muted); }

.ven-library a:focus-visible,
.ven-library button:focus-visible,
.ven-library input:focus-visible {
	outline: 3px solid #ffae92;
	outline-offset: 3px;
}

.ven-library a:not(.ven-card__cover):hover { color: var(--ven-accent); }
.ven-library__search button:hover { background: #d95f43; }

:root[data-theme="dark"] {
	--ven-hero: #37365f;
	--ven-hero-deep: #29284d;
	--ven-canvas: #171925;
	--ven-panel: #222532;
	--ven-ink: #f2f2f6;
	--ven-muted: #aeb2c3;
	--ven-line: #383c4d;
	--ven-chip: #2b3040;
	--ven-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .ven-filter-pills a { border-color: #444a5e; }
:root[data-theme="dark"] .ven-advanced-filters { background: rgba(34, 37, 50, 0.72); }
:root[data-theme="dark"] .ven-empty-state { background: rgba(34, 37, 50, 0.62); }
:root[data-theme="dark"] .ven-pagination .page-numbers { background: #292d3b; }

@media (max-width: 1180px) {
	.ven-library__layout { grid-template-columns: 255px minmax(0, 1fr); gap: 28px; }
	.ven-catalog-grid,
	.ven-category-rail__track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
	.ven-library__icon-strip span:nth-child(n + 10) { display: none; }
}

@media (max-width: 860px) {
	.ven-library__hero { min-height: 410px; }
	.ven-library__hero-content { padding-top: 44px; }
	.ven-library__layout { grid-template-columns: 1fr; }
	.ven-library__sidebar { display: grid; grid-template-columns: 1fr 1fr; }
	.ven-sidebar-card--archive { max-height: 350px; }
	.ven-sidebar-card__archive-list { overflow: auto; max-height: 280px; }
	.ven-catalog-grid,
	.ven-category-rail__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.ven-library__hero { min-height: 390px; }
	.ven-library__hero-content { width: min(100% - 28px, 900px); padding: 36px 0 105px; }
	.ven-library__hero h1 { margin-bottom: 22px; font-size: 35px; }
	.ven-library__search { grid-template-columns: 1fr 72px; height: 54px; }
	.ven-library__search input { padding: 0 19px; }
	.ven-library__intro { margin-top: 16px; font-size: 14px; line-height: 1.45; }
	.ven-library__icon-strip { gap: 10px; height: 82px; padding: 0 12px; }
	.ven-library__icon-strip span { width: 47px; height: 58px; border-width: 2px; font-size: 28px; }
	.ven-library__icon-strip span:nth-child(n + 7) { display: none; }
	.ven-library__canvas { padding: 42px 16px 70px; }
	.ven-library__sidebar { grid-template-columns: 1fr; }
	.ven-sidebar-card--archive { display: none; }
	.ven-section-heading h2 { font-size: 24px; }
	.ven-filter-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
	.ven-filter-pills::-webkit-scrollbar { display: none; }
	.ven-filter-pills a { flex: 0 0 auto; }
	.ven-advanced-filters form { grid-template-columns: 1fr 1fr; }
	.ven-catalog-grid,
	.ven-category-rail__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 16px; }
	.ven-card__title { margin-top: 11px; font-size: 15px; }
	.ven-empty-state { min-height: 320px; padding: 35px 22px; }
}

@media (max-width: 460px) {
	.ven-advanced-filters form { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
	.ven-catalog-grid,
	.ven-category-rail__track { gap: 22px 12px; }
	.ven-library__eyebrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ven-card--loading span { animation: none; }
}
