/* Nepal Epics: scroll-story pages, homepage banner and hub. */
.vn-story {
	--vn-s-ink: #0F1B33;
	--vn-s-deep: #0A1326;
	--vn-s-gold: #F6C766;
	--vn-s-red: #C8102E;
	--vn-s-forest: #173B2C;
	--vn-s-slate: #3A4660;
	--vn-s-line: #DDE3EE;
	--vn-s-pad: clamp(1rem, 4vw, 2rem);
	color: var(--vn-s-ink);
}

/* Hero */
.vn-story__hero,
.vn-epic-banner {
	position: relative;
	display: grid;
	align-items: end;
	min-height: min(92vh, 860px);
	background: var(--vn-s-deep) var(--vn-story-bg, none) center / cover no-repeat;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.vn-epic-banner { min-height: clamp(420px, 70vh, 640px); color: #fff; }
.vn-story__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vn-story__shade {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(10,19,38,.15) 0%, rgba(10,19,38,.35) 45%, rgba(10,19,38,.92) 100%);
}
.vn-story__hero { z-index: 0; }
.vn-story__hero-in,
.vn-epic-banner__in {
	width: 100%; max-width: 1200px; margin-inline: auto; box-sizing: border-box;
	padding: clamp(5rem, 14vh, 9rem) var(--vn-s-pad, 1.25rem) clamp(2.5rem, 7vh, 4.5rem);
	position: relative;
}
.vn-story__kicker {
	margin: 0 0 .75rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
	color: #F6C766; font-weight: 700;
}
.vn-story__title,
.vn-epic-banner__title {
	margin: 0; max-width: 16ch; color: #fff;
	font-family: var(--wp--preset--font-family--display, Marcellus, Georgia, serif);
	font-size: clamp(2.4rem, 7vw, 5.25rem); line-height: 1.02; font-weight: 400;
	text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.vn-epic-banner__title { font-size: clamp(2rem, 5.5vw, 4rem); }
.vn-story__sub,
.vn-epic-banner__teaser { max-width: 44ch; margin: 1.1rem 0 0; font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.5; color: #E7ECF5; }
.vn-epic-banner__teaser { font-style: italic; }

.vn-story__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.vn-story__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem;
	border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease;
}
.vn-story__btn:hover, .vn-story__btn:focus-visible { transform: translateY(-2px); }
.vn-story__btn--gold { background: #F6C766; color: #0A1326; }
.vn-story__btn--ghost { border: 1px solid rgba(255,255,255,.7); color: #fff; }
.vn-story__btn--ghost:hover { background: rgba(255,255,255,.12); }
.vn-story__btn--red { background: #C8102E; color: #fff; }
.vn-story__btn--wa { background: #1F8F4E; color: #fff; }

/* Chapter bar */
.vn-story__bar {
	position: sticky; top: 0; z-index: 30;
	background: rgba(10,19,38,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	color: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.admin-bar .vn-story__bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .vn-story__bar { top: 0; } }
.vn-story__bar ol {
	display: flex; gap: .25rem; margin: 0 auto; padding: 0 var(--vn-s-pad); max-width: 1200px; list-style: none;
	overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.vn-story__bar ol::-webkit-scrollbar { display: none; }
.vn-story__bar a {
	display: flex; align-items: center; gap: .4rem; min-height: 48px; padding: 0 .8rem; white-space: nowrap;
	color: #C9D2E3; text-decoration: none; font-size: .95rem; border-bottom: 3px solid transparent;
}
.vn-story__bar a span { font-size: .75rem; color: #F6C766; }
.vn-story__bar a[aria-current="true"] { color: #fff; border-bottom-color: #F6C766; }
.vn-story__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #C8102E; }

/* Intro */
.vn-story__intro { max-width: 820px; margin-inline: auto; padding: clamp(3rem, 8vw, 5.5rem) var(--vn-s-pad) clamp(1rem, 3vw, 2rem); }
.vn-story__intro p {
	margin: 0; font-family: var(--wp--preset--font-family--display, Marcellus, Georgia, serif);
	font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.45; color: var(--vn-s-ink);
}

/* Chapters */
.vn-story__ch {
	display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
	max-width: 1200px; margin-inline: auto; padding: clamp(2.5rem, 7vw, 5rem) var(--vn-s-pad);
	scroll-margin-top: 64px;
}
@media (min-width: 900px) {
	.vn-story__ch { grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
	.vn-story__ch--flip .vn-story__fig { order: 2; }
}
.vn-story__media { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #173B2C, #0F1B33); box-shadow: 0 24px 60px -24px rgba(10,19,38,.45); }
.vn-story__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.vn-story__ch:hover .vn-story__media img { transform: scale(1.04); }
.vn-story__num { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #C8102E; font-weight: 700; }
.vn-story__text h2 {
	margin: 0 0 1rem; font-family: var(--wp--preset--font-family--display, Marcellus, Georgia, serif);
	font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; font-weight: 400;
}
.vn-story__text p { font-size: 1.1rem; line-height: 1.7; color: var(--vn-s-slate); margin: 0 0 1rem; }
.vn-story__points { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.vn-story__points li { padding: .8rem 1rem; border-left: 3px solid #F6C766; background: #FBF1D6; border-radius: 0 10px 10px 0; line-height: 1.5; }

/* Counter */
.vn-story__counter { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.vn-story__counter li { background: #0F1B33; color: #fff; border-radius: 14px; padding: 1rem; display: grid; gap: .15rem; }
.vn-story__counter strong { font-family: var(--wp--preset--font-family--display, Marcellus, Georgia, serif); font-size: clamp(2rem, 6vw, 2.75rem); color: #F6C766; font-weight: 400; line-height: 1; }
.vn-story__counter span { font-weight: 700; line-height: 1.3; }
.vn-story__counter small { color: #AEB9CF; font-size: .8rem; }

/* Bottom sections */
.vn-story__sec { padding-block: clamp(3rem, 7vw, 5rem); background: #fff; scroll-margin-top: 64px; }
.vn-story__sec--tint { background: #F6F8FB; }
.vn-story__wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--vn-s-pad); }
.vn-story__wrap--narrow { max-width: 820px; }
.vn-story__eyebrow { margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #C8102E; font-weight: 700; }
.vn-story__sec h2 { margin: 0 0 1.5rem; font-family: var(--wp--preset--font-family--display, Marcellus, Georgia, serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 400; }

.vn-story__exp { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vn-story__exp li { border: 1px solid #DDE3EE; border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: .25rem; background: #fff; }
.vn-story__exp strong { font-size: 1.05rem; }
.vn-story__exp span { color: #3A4660; }
.vn-story__exp small { color: #173B2C; font-weight: 700; }

.vn-story__big5 { margin-top: 2rem; padding: 1.4rem; border-radius: 16px; background: #173B2C; color: #fff; }
.vn-story__big5 h3 { margin: 0 0 .75rem; color: #F6C766; font-size: 1.25rem; }
.vn-story__big5 ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.vn-story__big5 label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; cursor: pointer; }
.vn-story__big5 input { accent-color: #F6C766; width: 18px; height: 18px; }
.vn-story__big5-score { margin: .9rem 0 0; font-weight: 700; color: #F6C766; min-height: 1.5em; }
.vn-story__ethics { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-radius: 12px; background: #F7EEE8; color: #8F3418; line-height: 1.55; }

.vn-story__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.vn-story__cards a { display: grid; gap: .35rem; text-decoration: none; color: inherit; }
.vn-story__card-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 70% 30%, rgba(246,199,102,.35), transparent 45%), linear-gradient(135deg, #173B2C, #0F1B33); }
.vn-story__card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vn-story__cards a:hover img { transform: scale(1.05); }
.vn-story__card-img b { position: absolute; left: .75rem; top: .75rem; background: #F6C766; color: #0A1326; font-size: .75rem; padding: .25rem .6rem; border-radius: 999px; }
.is-soon .vn-story__card-img b { background: rgba(255,255,255,.9); }
.vn-story__cards strong { font-size: 1.15rem; margin-top: .4rem; }
.vn-story__cards em { font-style: normal; color: #3A4660; line-height: 1.45; }

.vn-story__plan { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.vn-story__plan-card { border: 1px solid #DDE3EE; border-radius: 16px; padding: 1.25rem; background: #fff; }
.vn-story__plan-card h3 { margin: 0 0 .75rem; font-size: 1.15rem; color: #C8102E; }
.vn-story__plan-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.vn-story__plan-card li { line-height: 1.5; color: #3A4660; }
.vn-story__plan-card strong { display: block; color: #0F1B33; }
.vn-story__note { margin: 1.25rem 0 0; color: #3A4660; }

.vn-story .vn-faq { padding-block: clamp(3rem, 7vw, 5rem); }
.vn-story .vn-faq details { border-top: 1px solid #B9C3D6; padding: 1rem 0; }
.vn-story .vn-faq details:last-of-type { border-bottom: 1px solid #B9C3D6; }
.vn-story .vn-faq summary { font-size: 1.15rem; font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.vn-story .vn-faq details p { color: #3A4660; line-height: 1.6; }

.vn-story__sources { padding-block: 1.5rem 6rem; font-size: .85rem; color: #4A5670; }
.vn-story__sources ul { margin: .25rem 0 0; padding-left: 1.1rem; }

.vn-story__sticky {
	position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40;
	display: none; min-height: 50px; padding: 0 1.4rem; align-items: center; border-radius: 999px;
	background: #1F8F4E; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
@media (max-width: 760px) {
	.vn-story__sticky {
		display: inline-flex; left: 12px; right: auto; transform: none;
		bottom: max(12px, env(safe-area-inset-bottom));
		max-width: calc(100vw - 92px); overflow: hidden; text-overflow: ellipsis;
		box-sizing: border-box; display: inline-block; line-height: 50px;
	}
}

/* Top 10 wrapper on story pages */
.vn-story-top10 { scroll-margin-top: 64px; }

/* Reveal on scroll */
[data-vn-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
[data-vn-reveal].is-in, .no-js [data-vn-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	[data-vn-reveal] { opacity: 1; transform: none; transition: none; }
	.vn-story__media img, .vn-story__btn, .vn-story__cards img { transition: none; }
}

/* Added for all Nepal Epics */
.vn-story__sec--dark { background: #0F1B33; color: #fff; }
.vn-story__sec--dark h2 { color: #fff; }
.vn-story__sec--dark .vn-story__eyebrow { color: #F6C766; }
.vn-story__sec--dark .vn-story__cards em { color: #C9D2E3; }
.vn-story__more { margin: 1.25rem 0 0; }
.vn-story__more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: #0F1B33; color: #fff; font-weight: 700; text-decoration: none; }
.vn-story__more a:hover { background: #C8102E; }
.vn-story__card-img--plain { display: grid; place-items: center; background: linear-gradient(135deg, #8F3418, #0F1B33); }
.vn-story__fig { margin: 0; }
.vn-story__credit { margin: .5rem .25rem 0; font-size: .75rem; color: #4A5670; line-height: 1.4; }
.vn-story__credit a { color: inherit; text-decoration: none; }
.vn-story__credit a:hover { text-decoration: underline; }

/* Cinematic hero slideshow */
.vn-story__slides { position: absolute; inset: 0; z-index: -2; }
.vn-story__slide {
	position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
	animation: vn-slide var(--vn-dur, 28s) infinite; will-change: opacity, transform;
}
@keyframes vn-slide {
	0% { opacity: 0; transform: scale(1); }
	5%, 22% { opacity: 1; }
	30% { opacity: 0; }
	100% { opacity: 0; transform: scale(1.08); }
}
.vn-story__slide:first-child { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.vn-story__slide { animation: none; }
	.vn-story__slide:not(:first-child) { display: none; }
}

/* Field notes: photo-and-video section from the ground (Chitwan birdwatching at Bis Hajari Tal). */
.vn-fn { background: linear-gradient(180deg, #F3F5F0 0%, #fff 60%); scroll-margin-top: 4rem; }
.vn-fn__in { max-width: 1200px; margin-inline: auto; padding: clamp(3rem, 8vw, 5.5rem) var(--vn-s-pad); }
.vn-fn__eyebrow { margin: 0 0 .6rem; color: #9A7424; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.vn-fn__title { margin: 0 0 1rem; font-family: var(--wp--preset--font-family--display, Marcellus, Georgia, serif); font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.08; font-weight: 400; color: var(--vn-s-ink); }
.vn-fn__lead { max-width: 62ch; margin: 0 0 2rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; color: var(--vn-s-slate); }
.vn-fn figure { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: var(--vn-s-forest); }
.vn-fn img, .vn-fn video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vn-fn figcaption { position: absolute; inset-inline-start: 12px; bottom: 12px; padding: .35rem .75rem; border-radius: 999px; background: rgba(10, 19, 38, .62); color: #fff; font-size: .82rem; }
.vn-fn__hero { aspect-ratio: 4 / 3; max-height: 640px; width: 100%; }
.vn-fn__hero figcaption { inset-inline: 0; bottom: 0; border-radius: 0; padding: 3.5rem 1.4rem 1.1rem; background: linear-gradient(transparent, rgba(10, 19, 38, .72)); font-size: .95rem; }
.vn-fn__cols { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); margin: clamp(2rem, 5vw, 3.5rem) 0; }
.vn-fn__body p { margin: 0 0 1em; line-height: 1.75; }
.vn-fn__facts { align-self: start; padding: 1.5rem 1.6rem; border-radius: 16px; background: #fff; border: 1px solid var(--vn-s-line); box-shadow: 0 10px 30px rgba(15, 27, 51, .06); }
.vn-fn__facts h3 { margin: 0 0 .9rem; font-size: 1.1rem; }
.vn-fn__facts dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; margin: 0; font-size: .95rem; }
.vn-fn__facts dt { font-weight: 700; color: var(--vn-s-forest); }
.vn-fn__facts dd { margin: 0; }
.vn-fn__videos { display: grid; gap: 1.1rem; margin-bottom: 1.1rem; }
.vn-fn__videos video { aspect-ratio: 9 / 16; max-height: 620px; }
.vn-fn__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.vn-fn__grid figure { aspect-ratio: 3 / 4; }
.vn-fn__grid figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.vn-fn__grid img { transition: transform .8s ease; }
.vn-fn__grid figure:hover img { transform: scale(1.04); }
.vn-fn__tips { display: grid; gap: 1.1rem; margin: clamp(2rem, 5vw, 3.5rem) 0 1.75rem; }
.vn-fn__tip { padding-top: .9rem; border-top: 2px solid var(--vn-s-gold); }
.vn-fn__tip h3 { margin: 0 0 .35rem; font-size: 1rem; }
.vn-fn__tip p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--vn-s-slate); }
.vn-fn__ctas { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 0; }
.vn-fn__ghost { display: inline-flex; align-items: center; min-height: 48px; padding: .6rem 1.3rem; border: 1.5px solid var(--vn-s-ink); border-radius: 999px; color: var(--vn-s-ink); font-weight: 700; text-decoration: none; }
.vn-fn__ghost:hover, .vn-fn__ghost:focus-visible { background: var(--vn-s-ink); color: #fff; }
.vn-fn__credit { margin: 1.5rem 0 0; font-size: .85rem; color: var(--vn-s-slate); }
@media (max-width: 559px) {
	.vn-fn__grid figure:not(:first-child) figcaption { display: none; }
}
@media (min-width: 560px) {
	.vn-fn__videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
	.vn-fn__cols { grid-template-columns: 1.25fr 1fr; }
	.vn-fn__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.vn-fn__grid figure:first-child { grid-column: auto; aspect-ratio: auto; }
	.vn-fn__tips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.vn-fn__grid img { transition: none; }
}

/* Faster photos: phone-sized backgrounds below 900px; later slideshow photos load after the page. */
@media (max-width: 899px) {
	.vn-story__hero, .vn-epic-banner { background-image: var(--vn-story-bg-s, var(--vn-story-bg, none)); }
}
.vn-story__slide { background-image: var(--vn-slide-s, none); }
@media (min-width: 900px) {
	.vn-story__slide { background-image: var(--vn-slide, none); }
}
