.jocv {
	--jocv-accent: #19e600;
	--jocv-ink: #111;
	--jocv-muted: #606060;
	--jocv-line: #d8d8d8;
	--jocv-title-link: #19e600;
	--jocv-title-hover: #128a00;
	width: 100%;
	color: var(--jocv-ink);
	font-family: "Segoe UI", Arial, sans-serif;
}

.jocv *, .jocv *::before, .jocv *::after { box-sizing: border-box; }
.jocv a { color: var(--jocv-ink); text-decoration: none; }
.jocv a:hover { color: #555; }

/* The viewer supplies the public page heading, so Astra's duplicate title is hidden. */
body.jocv-viewer-page article.ast-article-single > header.entry-header,
body.jocv-viewer-page article.page > header.entry-header {
	display: none !important;
}
body.jocv-viewer-page article.ast-article-single > .entry-content,
body.jocv-viewer-page article.page > .entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.jocv-header { margin: 0 0 24px; }
.jocv-eyebrow, .jocv-label, .jocv-meta { margin: 0 0 8px; color: var(--jocv-muted); font-size: .82rem; font-weight: 700; text-transform: lowercase; }
.jocv-header h1 { margin: 0 0 8px; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; text-transform: lowercase; }
.jocv-intro { max-width: 900px; margin: 0; font-size: 1.1rem; line-height: 1.5; }

.jocv-info { margin: 0 0 28px; padding: 24px; border: 1px solid #afd9b8; border-radius: 8px; background: #edf8f0; }
.jocv-info h2 { margin: 0 0 10px; font-size: 1.35rem; }
.jocv-info p { max-width: 900px; margin: 0 0 16px; line-height: 1.5; }
.jocv-info-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.jocv-info-buttons a, .jocv-action, .jocv-card-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 1px solid var(--jocv-line); border-radius: 5px; background: #fff; font-weight: 700; }
.jocv-action { border-color: var(--jocv-accent); background: var(--jocv-accent); }

.jocv-featured-story { display: grid; grid-template-columns: minmax(300px, 1.08fr) minmax(280px, .92fr); margin-bottom: 30px; overflow: hidden; border: 1px solid var(--jocv-line); border-radius: 8px; background: #fff; }
.jocv-featured-image-wrap { min-height: 390px; background: #eee; }
.jocv-featured-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(28px, 5vw, 58px); }
.jocv-featured-copy h2 { margin: 0 0 12px; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.05; }
.jocv-featured-copy > p:not(.jocv-label) { margin: 0 0 20px; line-height: 1.5; }

.jocv-featured-image, .jocv-card-image, .jocv-side-image, .jocv-short-image, .jocv-bottom-image, .jocv-main-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.jocv-placeholder { display: flex; align-items: center; justify-content: center; min-height: 180px; background: #eee; font-weight: 700; }

.jocv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.jocv-card { min-width: 0; overflow: hidden; border: 1px solid var(--jocv-line); border-radius: 8px; background: #fff; }
.jocv-card-image-wrap { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.jocv-card-copy { padding: 18px; }
.jocv-card h2 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.15; }
.jocv-card-copy > p:not(.jocv-meta) { margin: 0 0 15px; line-height: 1.45; }

/* Media layout: large playable feature with a compact 2010-style rail. */
.jocv-media-stage { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); align-items: start; overflow: hidden; border: 1px solid var(--jocv-line); background: #fff; }
.jocv-main-media { min-width: 0; border-right: 1px solid var(--jocv-line); }
.jocv-embed { position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; overflow: hidden; background: #080808; }
.jocv-embed iframe, .jocv-embed video { display: block; width: 100% !important; height: auto; min-height: 440px; aspect-ratio: 16 / 9; border: 0; }
.jocv-embed audio { width: calc(100% - 48px); }
.jocv-main-fallback { display: block; width: 100%; min-height: 440px; }
.jocv-main-copy { padding: 14px 18px 17px; }
.jocv-main-copy h2 { margin: 0 0 7px; font-size: clamp(1.22rem, 1.8vw, 1.75rem); line-height: 1.12; }
.jocv .jocv-main-copy h2 a { color: var(--jocv-title-link) !important; text-decoration: none !important; }
.jocv .jocv-main-copy h2 a:hover, .jocv .jocv-main-copy h2 a:focus { color: var(--jocv-title-hover) !important; text-decoration: none !important; }
.jocv-main-copy > p:not(.jocv-label) { margin: 0; line-height: 1.45; }

.jocv-side-list { display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; background: #f5f5f5; }
.jocv-side-item { display: grid; min-height: 0; flex: 1 1 0; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--jocv-line); }
.jocv-side-item:hover, .jocv-side-item.is-current { background: #e8e8e8; }
.jocv-side-item template { display: none; }
.jocv-side-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #ddd; }
.jocv-side-item strong { display: -webkit-box; overflow: hidden; font-size: .98rem; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.jocv-side-item small { display: block; margin-top: 6px; color: var(--jocv-muted); }
.jocv-side-more { min-height: 76px; flex: 0 0 auto; align-items: center; }
.jocv-side-more strong { font-size: 1.05rem; }
.jocv-more-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: #111; color: #fff; font-size: 2rem; font-weight: 700; }

/* Configurable lower collection: vertical shorts or standard horizontal cards. */
.jocv-bottom { margin-top: 34px; }
.jocv-bottom-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; overflow: visible; }
.jocv-bottom-card { min-width: 0; }
.jocv-bottom-card a { display: block; }
.jocv-bottom-media { display: block; overflow: hidden; border: 1px solid var(--jocv-line); background: #eee; }
.jocv-bottom-card strong { display: -webkit-box; margin-top: 8px; overflow: hidden; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.jocv-bottom-card small { display: block; margin-top: 5px; color: var(--jocv-muted); }
.jocv-bottom-vertical .jocv-bottom-media { aspect-ratio: 9 / 16; }
.jocv-bottom-horizontal .jocv-bottom-media { aspect-ratio: 16 / 9; }
.jocv-bottom-more small { display: none; }

/* Phones use a simple reading order: three features, more, three shorts, more. */
.jocv-mobile-collections { display: none; }
.jocv-mobile-group { display: grid; gap: 18px; }
.jocv-mobile-group + .jocv-mobile-group { margin-top: 30px; }
.jocv-mobile-card { min-width: 0; }
.jocv-mobile-card a { display: block; }
.jocv-mobile-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--jocv-line); background: #eee; }
.jocv-mobile-short-media { aspect-ratio: 9 / 16; }
.jocv-mobile-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.jocv-mobile-card strong { display: block; margin-top: 8px; line-height: 1.2; }

.jocv-pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.jocv-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--jocv-line); border-radius: 5px; background: #fff; font-weight: 700; }
.jocv-pagination .current { border-color: #111; background: #111; color: #fff; }
.jocv-empty { padding: 20px; border-left: 5px solid var(--jocv-accent); background: #f4f4f4; }

@media (max-width: 1000px) {
	.jocv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jocv-media-stage { grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); }
	.jocv-side-item { grid-template-columns: 105px minmax(0, 1fr); }
	.jocv-bottom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.jocv-featured-story, .jocv-media-stage { grid-template-columns: 1fr; }
	.jocv-layout-media .jocv-media-stage,
	.jocv-layout-media .jocv-bottom { display: none; }
	.jocv-layout-media .jocv-mobile-collections { display: block; }
	.jocv-main-media { border-right: 0; }
	.jocv-embed, .jocv-main-fallback { min-height: 0; }
	.jocv-embed iframe, .jocv-embed video { min-height: 0; }
	.jocv-side-list { border-top: 1px solid var(--jocv-line); }
	.jocv-side-list[style] { height: auto !important; }
	.jocv-side-item { grid-template-columns: 135px minmax(0, 1fr); }
	.jocv-bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.jocv-grid { grid-template-columns: 1fr; }
	.jocv-bottom-grid { grid-template-columns: 1fr; }
	.jocv-info { padding: 18px; }
	.jocv-side-item { grid-template-columns: 112px minmax(0, 1fr); }
}
