/* Custom Video Landing — frontend styles (mobile-first). */

* { box-sizing: border-box; }

body.clv-page {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1c1c1e;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

.clv-wrap {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 18px 48px;
}

/* ---------- Header ---------- */
.clv-header {
	padding: 16px 0 8px;
	border-bottom: 1px solid #eee;
	margin-bottom: 20px;
}

.clv-brand { text-decoration: none; color: inherit; }
.clv-logo { max-height: 44px; width: auto; display: block; }
.clv-brand-text { font-size: 20px; font-weight: 700; letter-spacing: .2px; }

/* Bold template: coloured header band. */
.clv-template-bold .clv-header {
	background: #0f3057;
	margin: 0 -18px 24px;
	padding: 18px;
	border-bottom: none;
}
.clv-template-bold .clv-brand-text { color: #fff; }
.clv-template-bold .clv-headline { font-size: 34px; }

/* ---------- Article ---------- */
.clv-headline {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 30px;
	line-height: 1.2;
	margin: 6px 0 14px;
}

.clv-intro {
	font-size: 19px;
	line-height: 1.6;
	color: #333;
}

.clv-content {
	font-size: 18px;
	line-height: 1.75;
	color: #222;
}

.clv-content p { margin: 0 0 1.1em; }
.clv-content img { max-width: 100%; height: auto; border-radius: 8px; }
.clv-content h2 { font-size: 24px; line-height: 1.3; margin: 1.4em 0 .5em; }
.clv-content h3 { font-size: 20px; line-height: 1.35; margin: 1.3em 0 .5em; }
.clv-content a { color: #0b5cad; }

/* ---------- Related images ---------- */
.clv-gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 24px 0;
}
.clv-gallery img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}
@media (min-width: 640px) {
	.clv-gallery { grid-template-columns: repeat(3, 1fr); }
	.clv-gallery img { height: 100%; object-fit: cover; }
}

/* ---------- Ad slots ---------- */
.clv-ad-slot {
	margin: 30px auto;
	text-align: center;
	clear: both;
}
.clv-ad-label {
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8a8a8e;
	margin-bottom: 6px;
}
.clv-ad-slot img,
.clv-ad-slot iframe { max-width: 100%; }

/* ---------- CTAs ---------- */
.clv-ctas {
	margin: 36px 0 8px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.clv-cta {
	display: block;
	text-align: center;
	text-decoration: none;
	font-size: 18px;
	font-weight: 600;
	padding: 15px 20px;
	border-radius: 10px;
}
.clv-cta-primary { background: #0b5cad; color: #fff; }
.clv-cta-primary:active { background: #094e90; }
.clv-cta-secondary {
	background: transparent;
	color: #0b5cad;
	border: 2px solid #0b5cad;
}

/* ---------- Paused ---------- */
.clv-paused { padding: 40px 0; text-align: center; color: #555; }

/* ---------- Footer ---------- */
.clv-footer {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid #eee;
	color: #8a8a8e;
	font-size: 13px;
	text-align: center;
}

/* ---------- Video layer (NON-BLOCKING) ----------
   The wrapper covers the viewport visually but has pointer-events:none,
   so scroll and taps always reach the article. Only the Play and Skip
   buttons re-enable pointer events. */
.clv-video-layer {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 12px;
	pointer-events: none;
	transition: opacity .35s ease, visibility .35s ease;
}

.clv-video-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	pointer-events: none;
}

.clv-video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 62vh;
	object-fit: contain;
	background: #000;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
	pointer-events: none;
}

@media (min-width: 860px) {
	.clv-video-layer { justify-content: flex-end; padding: 20px; }
	.clv-video-card { max-width: 360px; }
}

.clv-video-play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	pointer-events: auto;
	background: rgba(11, 92, 173, .95);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 17px;
	font-weight: 600;
	padding: 13px 26px;
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.clv-video-play-icon { margin-right: 8px; }
.clv-video-play[hidden] { display: none; }

.clv-video-close {
	position: absolute;
	top: 10px;
	right: 10px;
	pointer-events: auto;
	background: rgba(0, 0, 0, .72);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 8px 13px;
	cursor: pointer;
}

.clv-video-layer.clv-dismissed {
	opacity: 0;
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.clv-video-layer { transition: none; }
}
