/* Delhi Timeline — UI polish overrides (keeps existing interaction model) */
:root {
	--dt-gold: #fcd78e;
	--dt-gold-strong: #e8c06a;
	--dt-sand: #d3bda2;
	--dt-ink: #1f1a14;
	--dt-stone: #3d3630;
	--dt-muted: #7c6c58;
	--dt-parchment: #f3ead8;
	--dt-surface: rgba(12, 10, 8, 0.82);
	--dt-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--dt-accent-rajput: #ae4307;
	--dt-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--dt-font-body: "Source Sans 3", "Segoe UI", sans-serif;
	--dt-font-ui: "Figtree", "Segoe UI", sans-serif;
	--dt-nav-h: 63px;
	--dt-banner-h: 42px;
	--dt-chrome-h: calc(var(--dt-nav-h) + var(--dt-banner-h));
	/* Stable mobile viewport — set in px by mobile-chrome.js; svh as CSS fallback */
	--dt-vh: 100svh;
}

/*
 * Sticky dynasty bars — mobile only.
 * Desktop keeps JS position:fixed (sticky + height:100% sections conflict).
 */
.dt-dynasty {
	display: block;
	position: relative;
	overflow: visible;
}

.header_banner.header-1 { z-index: 1101 !important; }
.header_banner.header-2 { z-index: 1102 !important; }
.header_banner.header-3 { z-index: 1103 !important; }
.header_banner.header-4 { z-index: 1104 !important; }
.header_banner.header-5 { z-index: 1105 !important; }
.header_banner.header-6 { z-index: 1106 !important; }
.header_banner.header-7 { z-index: 1107 !important; }
.header_banner.header-8 { z-index: 1108 !important; }
.header_banner.header-9 { z-index: 1109 !important; }
.header_banner.header-10 { z-index: 1110 !important; }
.header_banner.header-11 { z-index: 1111 !important; }
.header_banner.header-12 { z-index: 1112 !important; }

/*
 * —— Layer stack ——
 * "Lightbox over timeline, subheader over lightbox, timeline over subheader"
 * reads as a cycle, but two different subheaders are involved: the sticky bar
 * (lightbox closed) and the pinned bar (lightbox open). Scoping the lightbox
 * layers to html.dt-lightbox-open breaks the loop.
 *
 *   1800       nav
 *   1790       mobile dynasty menu
 *   1750       pinned dynasty bar    — lightbox open only
 *   1700       lightbox + backdrop   — lightbox open only
 *   1600       timeline, footer
 *   1101–1112  dynasty bars          — sticky/fixed, lightbox closed
 */
.timeline,
footer {
	z-index: 1600 !important;
}

/* Legacy 1499 put the full-height menu panel under the timeline */
.nav_mobile {
	z-index: 1790 !important;
}

/*
 * Nav outranks the dynasty bars (legacy nav.fixed was 1000, below them).
 * Invisible on desktop, where the bar is JS-fixed below the nav and never
 * overlaps; on mobile the sticky bar scrolls up through the nav.
 */
nav.navigation,
nav.fixed {
	z-index: 1800 !important;
}

html.dt-lightbox-open .lightbox_bg,
html.dt-lightbox-open .info_lightbox {
	z-index: 1700 !important;
}

/* .dt-lightbox-pin is the mobile sticky bar; .fixed is the desktop one */
html.dt-lightbox-open .header_banner.dt-lightbox-pin,
html.dt-lightbox-open .header_banner.fixed {
	z-index: 1750 !important;
}

@media screen and (min-width: 769px) {
	/* Desktop: classic fixed chrome via JS .fixed class */
	.header_banner {
		position: relative;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	}

	.header_banner.fixed {
		position: fixed !important;
		top: var(--dt-nav-h, 63px) !important;
		left: 0 !important;
		width: 100% !important;
		transform: none !important;
	}
}

@media screen and (max-width: 768px) {
	:root {
		--dt-nav-h: 48px;
		--dt-banner-h: 34px;
		--dt-chrome-h: calc(var(--dt-nav-h) + var(--dt-banner-h));
	}

	/* html is the only scrollport — body must stay overflow:visible or sticky dies
	   (overflow-x:clip + overflow-y:visible computes y→auto = non-scrolling trap). */
	html {
		height: auto !important;
		overflow-x: clip;
		overflow-y: auto;
	}

	body {
		height: auto !important;
		min-height: 100%;
		overflow: visible !important;
	}

	/* Stop background page scroll; do not use position:fixed on body (jumpy on close) */
	html.dt-lightbox-open {
		overflow: hidden !important;
	}

	html.dt-lightbox-open body {
		overflow: hidden !important;
	}

	/* overflow:hidden on the scrollport unsticks position:sticky — pin active bar */
	html.dt-lightbox-open .header_banner.dt-lightbox-pin {
		position: fixed !important;
		top: var(--dt-nav-h, 48px) !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		transform: none !important;
		-webkit-transform: none !important;
	}

	.header_banner {
		position: -webkit-sticky !important;
		position: sticky !important;
		top: var(--dt-nav-h, 48px) !important;
		left: auto !important;
		right: auto !important;
		width: 100% !important;
		transform: none !important;
		-webkit-transform: none !important;
		will-change: auto;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	}

	.header_banner.fixed {
		position: -webkit-sticky !important;
		position: sticky !important;
		top: var(--dt-nav-h, 48px) !important;
		left: auto !important;
		width: 100% !important;
	}

	.delhi_section.section_rule,
	.section-1, .section-2, .section-3, .section-4, .section-5, .section-6,
	.section-7, .section-8, .section-9, .section-10, .section-11, .section-12 {
		margin-top: 0 !important;
	}
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-family: var(--dt-font-body);
	letter-spacing: 0.01em;
	color: var(--dt-ink);
}

/* —— Type system (main logo GIF untouched) —— */
/* Nav wordmark stays on original Optimus — author credit uses site body font */
nav.navigation .logo_main .logo_name,
nav h1.logo_main {
	font-family: 'optimusprincepssemiboldRg', Georgia, serif !important;
}

nav.navigation .logo_auth_name {
	font-family: var(--dt-font-body) !important;
	font-style: italic;
	font-weight: 400;
}

.dive_history,
.dive_history p,
.share_text,
.header_banner_name,
.header_year,
.header_explore,
.timeline_bar li,
.year_bar li,
.dynasty_bar li,
.timeline_pointer .pointer_info h1,
.timeline_pointer .pointer_extra,
.footer_text,
.xp_text,
.back_timeline,
.info_cover_captial,
.share_msg {
	font-family: var(--dt-font-ui) !important;
}

.intro_para h1,
.info_cover_captial_name h1,
.info_cover_captial_ruler h1,
.rg-caption h1,
.pointer_info h1 {
	font-family: var(--dt-font-display) !important;
	font-optical-sizing: auto;
	font-weight: 600;
}

.intro_para p,
.info_history p,
.rg-caption p,
.author_name {
	font-family: var(--dt-font-body) !important;
}

/* —— Landing —— */
.landing.delhi_section {
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
	padding: clamp(48px, 8vh, 96px) 24px clamp(88px, 12vh, 120px);
}

.landing .logo {
	filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
	width: min(82vw, 700px);
	max-width: 700px;
	margin: 0 auto !important;
	margin-top: 0 !important;
	flex-shrink: 0;
}

.landing .logo img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

.landing .author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: auto !important;
	max-width: min(92vw, 520px);
	margin: 1.75rem auto 0 !important;
	padding-top: 0 !important;
	float: none;
	clear: both;
}

.landing .author_line {
	float: none !important;
	flex: 0 0 auto;
	width: clamp(28px, 6vw, 72px);
	margin-top: 0 !important;
	align-self: center;
	background-color: rgba(252, 215, 142, 0.55);
}

.landing .author_name {
	float: none !important;
	width: auto !important;
	padding: 0 clamp(14px, 2.5vw, 36px) !important;
	margin: 0;
	font-family: var(--dt-font-body) !important;
	font-size: clamp(1.15rem, 2.4vw, 1.75rem) !important;
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0.02em;
	line-height: 1.2;
	color: var(--dt-gold);
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
	white-space: nowrap;
}

.landing .dive_history {
	left: 0;
	right: 0;
	bottom: 54px;
	width: 100%;
	margin: 0;
	padding: 0 16px;
	box-sizing: border-box;
}

.landing .dive_history p {
	letter-spacing: 0.28em;
	font-size: clamp(0.7rem, 1.5vw, 0.85rem);
	font-weight: 600;
	text-transform: uppercase;
	color: var(--dt-gold);
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
	margin: 0;
}

.landing .landing_arrow {
	opacity: 0.9;
	left: 50%;
	transform: translateX(-50%);
	margin-left: 0 !important;
}

.landing::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 28%;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.landing .logo,
.landing .author,
.landing .dive_history,
.landing .landing_arrow {
	position: relative;
	z-index: 2;
}

.landing .dive_history,
.landing .landing_arrow {
	position: absolute;
	z-index: 2;
}

/* —— Nav —— */
nav.navigation {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background-color: rgba(0, 0, 0, 0.72);
	border-bottom: 1px solid rgba(252, 215, 142, 0.12);
}

nav.navigation .logo_main .logo_name {
	color: #fff;
}

nav.navigation .logo_auth_name {
	font-style: italic;
	font-weight: 400;
	opacity: 0.9;
	letter-spacing: 0.01em;
}

nav.navigation .share {
	top: 0;
	right: 24px;
	height: 63px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	background-color: transparent;
}

nav.navigation .share_text {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	width: auto;
	height: auto;
	margin-top: 0;
	line-height: 1;
	letter-spacing: 0.14em;
	color: var(--dt-gold);
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 600;
	background: none;
}

nav.navigation .share_icon {
	float: none;
	margin-top: 0;
	flex: 0 0 20px;
	background-color: transparent;
}

nav.navigation .share_icon.hover {
	background-color: transparent;
}

nav.navigation .share_box {
	border: 1px solid rgba(252, 215, 142, 0.2);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* —— Intro (parchment bg → dark ink) —— */
.intro.delhi_section {
	isolation: isolate;
}

.intro .section-bg-image,
.intro .full-image {
	z-index: 0;
}

.intro_para {
	position: relative !important;
	z-index: 3;
	top: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 auto !important;
	padding: clamp(48px, 12vh, 110px) clamp(16px, 4vw, 32px) !important;
	max-width: 42rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

.intro_para h1 {
	letter-spacing: -0.02em;
	line-height: 1.12;
	font-size: clamp(2rem, 5.5vw, 3.35rem) !important;
	color: var(--dt-ink) !important;
	text-shadow: 0 1px 0 rgba(255, 248, 235, 0.65);
	font-weight: 700;
}

.intro_para p {
	line-height: 1.65 !important;
	color: rgba(31, 26, 20, 0.92) !important;
	max-width: 40em;
	margin-left: auto;
	margin-right: auto;
	font-size: clamp(0.95rem, 1.6vw, 1.125rem) !important;
	text-shadow: 0 1px 0 rgba(255, 248, 235, 0.5);
}

.intro_para h2 {
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-family: var(--dt-font-ui) !important;
	font-size: 0.8rem !important;
	font-weight: 600;
	color: var(--dt-accent-rajput) !important;
	margin-top: 1.75rem;
}

.intro_controls {
	opacity: 0.85;
}

/* —— Dynasty banners —— */
.header_banner {
	height: 42px;
}

.header_banner_name {
	top: 11px;
	letter-spacing: 0.08em;
	font-size: clamp(13px, 1.7vw, 17px);
	font-weight: 600;
	text-transform: uppercase;
}

.header_year {
	opacity: 0.85;
	letter-spacing: 0.04em;
	font-weight: 500;
	text-transform: none;
}

.header_explore {
	top: 13px;
	letter-spacing: 0.12em;
	opacity: 0.95;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	transition: opacity 0.25s var(--dt-ease), transform 0.25s var(--dt-ease);
}

.header_explore:hover {
	opacity: 1;
	transform: translateX(2px);
}

.plus_photo {
	border-width: 1.5px;
	border-color: rgba(255, 255, 255, 0.85);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	transition: background-color 0.25s var(--dt-ease), transform 0.45s var(--dt-ease), opacity 0.45s var(--dt-ease), left 0.8s var(--dt-ease);
}

.plus_photo:hover {
	transform: scale(1.05);
}

/* —— Timeline chrome —— */
.timeline {
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 1600 !important;
}

.timeline_scroll {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.timeline_scroll_overlay {
	background: linear-gradient(90deg, var(--dt-accent-rajput), var(--dt-gold-strong)) !important;
}

.timeline_pointer {
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.timeline_pointer .pointer_info h1 {
	letter-spacing: -0.01em;
}

.timeline_pointer .pointer_extra {
	letter-spacing: 0.04em;
	color: var(--dt-muted) !important;
	font-family: var(--dt-font-body) !important;
}

.timeline_bar li,
.year_bar li,
.dynasty_bar li {
	letter-spacing: 0.03em;
	font-weight: 500;
}

/* Segment for the dynasty currently on screen (set in mobile-chrome.js) */
.timeline_bar li.is-active {
	filter: brightness(1.5);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.timeline_bar li {
	transition: background-color 0.4s ease-in-out, filter 0.3s ease-in-out,
		box-shadow 0.3s ease-in-out;
}

/*
 * —— Compact timeline for small screens ——
 * Legacy CSS hid .timeline below 960px. Bring it back: the proportional reign
 * bar is the point of the page. script.js drives visibility with an inline
 * height, so mirror that as html.dt-tl-on (see mobile-chrome.js).
 */
@media screen and (max-width: 960px) {
	.timeline {
		display: block;
		height: 0 !important;
		overflow: hidden !important;
	}

	html.dt-tl-on .timeline {
		height: 65px !important;
		overflow: visible !important;
	}
}

@media screen and (max-width: 768px) {
	html.dt-tl-on .timeline {
		height: 46px !important;
	}

	.timeline .time_content {
		height: auto;
		margin-top: 6px;
		padding-left: 12px;
		padding-right: 12px;
		line-height: normal;
	}

	/* Century ticks are equal-width, so they don't share the bar's year scale */
	.timeline .bar_bar,
	.timeline .year_bar {
		display: none;
	}

	/* Hover card can't work on touch — .dt-tl-chip replaces it */
	.timeline_pointer {
		display: none !important;
	}

	.dynasty_bar {
		height: 14px;
		line-height: 14px;
	}

	.dynasty_bar li {
		font-size: 9px;
		letter-spacing: 0.04em;
		text-align: left;
		white-space: nowrap;
		overflow: hidden;
	}

	.timeline_bar {
		height: 14px;
	}

	.timeline_bar li {
		position: relative;
	}

	/* 44px touch target over a 14px bar */
	.timeline_bar li::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -15px;
		bottom: -15px;
	}

	.dt-tl-chip {
		position: absolute;
		left: 0;
		bottom: 52px;
		max-width: 66vw;
		padding: 6px 10px;
		border-radius: 4px;
		background: var(--dt-surface);
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
		color: var(--dt-gold);
		font-family: var(--dt-font-ui);
		font-size: 11px;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		white-space: nowrap;
		pointer-events: none;
		opacity: 0;
		transform: translateY(4px);
		transition: opacity 0.18s var(--dt-ease), transform 0.18s var(--dt-ease);
	}

	.dt-tl-chip.is-on {
		opacity: 1;
		transform: translateY(0);
	}

	.dt-tl-chip .dt-tl-chip-years {
		display: block;
		color: var(--dt-sand);
		font-size: 10px;
		letter-spacing: 0.02em;
		text-transform: none;
		opacity: 0.85;
	}
}

/* —— Info / lightbox —— */
.info_cover_captial {
	font-family: var(--dt-font-ui) !important;
	letter-spacing: 0.14em;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.75rem;
}

.info_cover_captial_name h1,
.info_cover_captial_ruler h1 {
	letter-spacing: -0.015em;
	line-height: 1.15;
}

.info_history p,
.rg-caption p {
	line-height: 1.6;
	font-size: 0.98rem;
}

.rg-caption h1 {
	letter-spacing: -0.01em;
}

.slide_controls .slide_btn {
	transition: transform 0.2s var(--dt-ease), opacity 0.2s ease;
}

.slide_controls .slide_btn:hover {
	transform: scale(1.06);
}

#map-canvas {
	border-radius: 2px;
	overflow: hidden;
	z-index: 1;
}

.leaflet-container {
	font: 12px/1.4 var(--dt-font-ui), sans-serif;
	background: #e8e4dc;
}

.leaflet-control-attribution {
	font-size: 10px;
	background: rgba(255, 255, 255, 0.85) !important;
}

/* —— Footer / more projects —— */
footer {
	border-top: 1px solid rgba(252, 215, 142, 0.15);
}

.footer_text {
	letter-spacing: 0.08em;
	font-weight: 500;
}

.more_xp {
	background: var(--rt-cards-surface, #f7f3ec);
}

.more_xp .xp_text {
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.95rem !important;
}

.more_xp .xp_border {
	position: static;
	width: 72px;
	height: 3px;
	margin: 10px auto 0;
	left: auto;
	top: auto;
	background: var(--rt-card-accent, #ae4307);
}

.more_xp .project_thumb_text {
	font-family: var(--dt-font-ui) !important;
}

/* —— Hello section: Mumbai-style centered column —— */
.section-contact.delhi_section {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	min-height: auto !important;
	max-height: none !important;
	height: auto !important;
	padding: 0;
	box-sizing: border-box;
}

.section-contact > .section-bg-image {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.contact_container {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	position: relative !important;
	float: none !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	width: min(92vw, 640px) !important;
	max-width: 640px;
	margin: clamp(48px, 8vh, 96px) auto 32px !important;
	padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 36px) clamp(24px, 4vw, 40px);
	box-sizing: border-box;
	z-index: 5;
	background-color: rgba(255, 255, 255, 0.94);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
	font-style: normal;
}

.contact_container .author_pic {
	float: none !important;
	width: 130px !important;
	height: 130px !important;
	margin: 0 auto 20px !important;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--dt-gold, #fcd78e);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact_container .author_pic .placeholder,
.contact_container .author_pic img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.contact_name {
	display: block;
	float: none !important;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 12px;
	padding: 0;
	text-align: center;
	color: #b64c10;
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	visibility: visible;
	opacity: 1;
}

.contact_info {
	float: none !important;
	width: 100%;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.contact_info p {
	max-width: 36em;
	margin: 0 auto 22px;
	padding: 0;
	text-align: center;
	font-size: clamp(0.95rem, 1.6vw, 1.1rem);
	line-height: 1.55;
	font-style: italic;
	color: #3d3630;
}

.section-contact .more_xp {
	position: relative;
	z-index: 5;
	width: 100%;
	margin-top: 0 !important;
	margin-bottom: 0;
	padding-top: 28px;
	padding-bottom: 64px;
}

/* Share box — Delhi brand colors, smaller icons */
.share_box ul li .facebook,
.share_box ul li .twitter {
	background-image: none !important;
	background-color: var(--dt-stone, #3d3630) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dt-gold, #fcd78e);
	width: 36px;
	height: 36px;
	max-width: 36px;
	max-height: 36px;
	margin-top: -18px;
	border: 1px solid rgba(252, 215, 142, 0.35);
}

.share_box ul li .facebook:hover,
.share_box ul li .twitter:hover {
	background-color: var(--dt-accent-rajput, #ae4307) !important;
	border-color: var(--dt-gold, #fcd78e);
	color: #fff;
}

.share_box ul li .facebook svg,
.share_box ul li .twitter svg {
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.share_box ul li .twitter svg {
	width: 13px;
	height: 13px;
}

.share_box ul li .facebook svg path,
.share_box ul li .twitter svg path {
	fill: currentColor !important;
}

/* Contact social — LinkedIn + Medium only, Delhi gold */
.contact_info ul.contact_social,
.contact_info ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: transparent;
	float: none;
}

.contact_info ul.contact_social > li,
.contact_info ul > li {
	width: auto !important;
	height: auto !important;
	float: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact_info ul a {
	display: flex;
	text-decoration: none;
	color: var(--dt-gold, #fcd78e);
}

.contact_info .social_cont.linkedin,
.contact_info .social_cont.medium {
	position: relative;
	top: auto;
	margin: 0;
	width: 36px;
	height: 36px;
	max-width: 36px;
	max-height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background-image: none !important;
	background-color: var(--dt-stone, #3d3630) !important;
	border: 1px solid rgba(252, 215, 142, 0.4);
	color: var(--dt-gold, #fcd78e);
}

.contact_info .social_cont.linkedin svg,
.contact_info .social_cont.medium svg {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.contact_info .social_cont.linkedin svg path,
.contact_info .social_cont.medium svg path {
	fill: currentColor !important;
}

.contact_info .social_cont.linkedin:hover,
.contact_info .social_cont.medium:hover {
	background-color: var(--dt-accent-rajput, #ae4307) !important;
	border-color: var(--dt-gold, #fcd78e);
	color: #fff;
}

@media (max-width: 768px) {
	.contact_container {
		width: min(94vw, 520px) !important;
		margin-top: 36px !important;
		padding: 28px 18px 24px;
	}

	.contact_container .author_pic {
		width: 110px !important;
		height: 110px !important;
	}

	.contact_info .social_cont.linkedin,
	.contact_info .social_cont.medium {
		width: 32px;
		height: 32px;
		max-width: 32px;
		max-height: 32px;
	}

	.contact_info .social_cont.linkedin svg,
	.contact_info .social_cont.medium svg {
		width: 14px;
		height: 14px;
	}
}

/* —— Images —— */
.placeholder {
	overflow: hidden;
}

.placeholder img {
	transition: opacity 0.8s ease;
}

.cover-placeholder img,
.full-image .placeholder img {
	object-fit: cover;
}

/* —— Focus —— */
a:focus-visible,
.header_explore:focus-visible,
.plus_photo:focus-visible,
.share_text:focus-visible,
.timeline_bar li:focus-visible {
	outline: 2px solid var(--dt-gold);
	outline-offset: 3px;
}

/* —— Mobile —— */
@media screen and (max-width: 768px) {
	.landing.delhi_section {
		min-height: var(--dt-vh, 100svh) !important;
		height: auto !important;
		box-sizing: border-box;
		padding-top: clamp(64px, 14svh, 120px);
		padding-bottom: 100px;
	}

	.landing .dive_history p {
		letter-spacing: 0.18em;
		font-size: 0.68rem;
	}

	.landing .author_name {
		white-space: normal;
		font-size: 1.05rem !important;
	}

	.landing .logo {
		width: min(78vw, 420px);
		margin-top: 0 !important;
	}

	.opl_photo {
		transform: scale(0.75);
		transform-origin: left top;
		opacity: 0.85;
	}

	.header_banner {
		height: 34px !important;
		display: block;
		box-sizing: border-box;
		background-color: #033;
	}

	/* Keep the three shaded identity bands; scale to compact mobile height */
	.header_strip {
		display: block;
		width: 100%;
		height: 8px;
		position: static;
		z-index: auto;
	}

	.header_strip_1 {
		background-color: #ae4307;
		height: 8px;
	}

	.header_strip_2 {
		background-color: #b64c10;
		height: 18px;
	}

	.header_strip_3 {
		background-color: #be561c;
		height: 8px;
	}

	.header_banner_name {
		position: absolute !important;
		top: 0 !important;
		left: 0;
		right: 48px;
		bottom: 0;
		float: none;
		padding-left: 14px !important;
		padding-right: 8px;
		margin: 0;
		font-size: 12px !important;
		line-height: 1.2;
		max-width: none;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		display: flex;
		align-items: center;
		gap: 0.35em;
		z-index: 1;
		box-sizing: border-box;
	}

	.header_year {
		font-size: 11px !important;
		font-weight: 500;
		opacity: 0.9;
		flex-shrink: 1;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.header_explore {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0;
		float: none;
		display: flex !important;
		align-items: center;
		justify-content: center;
		height: auto;
		padding: 0 12px 0 8px;
		margin: 0;
		font-size: 10px;
		max-width: none;
		text-align: center;
		box-sizing: border-box;
		z-index: 1;
	}

	.header_explore .explore_icon {
		float: none;
		margin-right: 6px;
		flex-shrink: 0;
	}

	nav.navigation {
		height: 48px !important;
		min-height: 48px;
	}

	nav.navigation h1.logo_main,
	nav.navigation .logo_main {
		height: 48px;
		overflow: hidden;
	}

	nav.navigation .logo_main .logo_name {
		font-size: 15px !important;
		line-height: 48px !important;
		padding-left: 14px !important;
	}

	nav.navigation .logo_auth_name {
		display: none;
	}

	nav.navigation .share {
		display: block !important;
		right: 8px !important;
		top: 0 !important;
		height: 48px;
		width: 44px;
	}

	nav.navigation .share_text {
		position: absolute;
		top: 50%;
		right: 0;
		transform: translateY(-50%);
		margin-top: 0 !important;
		width: 40px !important;
		height: 40px !important;
		line-height: 40px !important;
		font-size: 0 !important;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 !important;
	}

	nav.navigation .share_text .share_icon {
		float: none !important;
		margin: 0 !important;
		display: inline-block;
		vertical-align: middle;
	}

	nav.navigation .share_box {
		top: auto !important;
		bottom: auto !important;
		right: 0;
	}

	nav.navigation .share_box.clicked {
		top: 48px !important;
		width: min(268px, 92vw) !important;
		height: auto !important;
		min-height: 120px;
		opacity: 1;
		overflow: visible;
	}

	/* Lightbox fills remaining viewport under nav + dynasty banner.
	   Use locked --dt-vh (not live dvh/vh) so URL-bar toggle doesn't jump. */
	.info_lightbox,
	.lightbox_bg {
		top: var(--dt-chrome-h, 82px) !important;
		height: calc(var(--dt-vh, 100svh) - var(--dt-chrome-h, 82px)) !important;
		max-height: calc(var(--dt-vh, 100svh) - var(--dt-chrome-h, 82px)) !important;
		box-sizing: border-box;
	}

	.info_lightbox.show {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.lightbox_content {
		min-height: 100% !important;
		height: auto !important;
		max-height: none !important;
		width: 100% !important;
		overflow-x: hidden;
		box-sizing: border-box;
	}

	.lightbox_content .container {
		margin-top: 24px !important;
		padding-bottom: 48px;
	}

	.nav_mobile {
		top: var(--dt-chrome-h, 82px) !important;
	}

	.intro_para {
		padding-left: 18px !important;
		padding-right: 18px !important;
		margin-top: 0 !important;
	}

	/*
	 * Dynasty sections: fixed JS height + overflow:hidden was cropping
	 * inline story text. Grow with content; hero stays a viewport band.
	 */
	.section_rule.delhi_section {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.section_rule > .section-bg-image {
		position: relative !important;
		/* Locked viewport units — avoids jump when mobile URL bar shows/hides */
		height: min(calc(var(--dt-vh, 100svh) * 0.72), 520px);
		min-height: 260px;
		width: 100%;
	}

	.section_rule > .section-bg-image .full-image {
		position: absolute;
		inset: 0;
		height: 100%;
		clip: auto;
	}

	.section_rule > .section-bg-image .full-image .placeholder img {
		position: absolute !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover;
		margin-left: 0 !important;
	}

	/* + control lives on the hero image, not the text/rulers block */
	.section_rule > .section-bg-image .plus_photo,
	.section_rule > .plus_photo {
		position: absolute;
		top: 50%;
		left: 50%;
		margin-top: -22px;
		margin-left: -22px;
		z-index: 700;
	}

	.section_rule .story_cont .plus_photo {
		display: none;
	}

	.section_rule .story_cont {
		position: relative;
		z-index: 2;
		float: none !important;
		width: 100% !important;
		padding: 0 0 40px;
		background: #f3ead8;
	}

	/* SEO-safe fold: full <p> stays in DOM; only max-height clamps visually */
	.story_cont .info_history_para.history-fold > p {
		margin-bottom: 0;
	}

	.story_cont .info_history_para.history-fold.is-collapsible:not(.is-expanded) > p {
		max-height: 10.5em;
		overflow: hidden;
	}

	.story_cont .info_history_para.history-fold.is-collapsible:not(.is-expanded) {
		position: relative;
	}

	.story_cont .info_history_para.history-fold.is-collapsible:not(.is-expanded)::after {
		content: "";
		pointer-events: none;
		position: absolute;
		left: 15px;
		right: 15px;
		bottom: 44px;
		height: 56px;
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 88%);
	}

	.history-fold-btn {
		display: none;
		appearance: none;
		-webkit-appearance: none;
		margin: 14px 0 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--dt-accent-rajput, #ae4307);
		font-family: var(--dt-font-ui), sans-serif;
		font-size: 0.8rem;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.story_cont .info_history_para.history-fold.is-collapsible .history-fold-btn {
		display: inline-block;
	}

	.history-fold-btn:hover,
	.history-fold-btn:focus-visible {
		text-decoration: underline;
		outline: none;
	}

	.history-fold-btn:focus-visible {
		outline: 2px solid var(--dt-gold, #fcd78e);
		outline-offset: 3px;
	}

	.intro_para h1 {
		font-size: clamp(1.65rem, 8vw, 2.25rem) !important;
		line-height: 1.1;
	}

	.intro_para p {
		font-size: 0.95rem !important;
		line-height: 1.55 !important;
	}

	.intro_controls {
		max-width: 100%;
		left: 0 !important;
		width: min(245px, 92vw) !important;
		background-size: contain;
		background-repeat: no-repeat;
	}

	.full-image .placeholder img {
		width: 100% !important;
		height: 100% !important;
		margin-left: 0 !important;
		object-fit: cover;
		object-position: center center;
	}

	.timeline_pointer .pointer_info h1 {
		font-size: 16px;
	}

	/* Contact: kill legacy absolute / left:50% rules from bundle */
	.contact_container {
		left: auto !important;
		right: auto !important;
		margin-left: auto !important;
		margin-right: auto !important;
		width: min(94vw, 520px) !important;
	}

	.contact_container .author_pic .placeholder img,
	.contact_container .author_pic img {
		top: 0 !important;
		left: 0 !important;
	}

	.story_cont .info_cover,
	.story_cont .info_history {
		width: 92% !important;
		max-width: 486px;
		float: none !important;
		margin-left: auto !important;
		margin-right: auto !important;
		box-sizing: border-box;
	}
}

@media screen and (max-width: 500px) {
	/* Icon-only explore — stay flex-centered in the compact banner */
	.header_explore {
		font-size: 0 !important;
		width: 40px;
		padding: 0 10px !important;
		overflow: hidden;
	}

	.header_explore .explore_icon {
		margin-right: 0 !important;
	}

	.intro_para {
		margin-top: 0 !important;
	}
}

@media screen and (max-width: 450px) {
	.dive_history p {
		font-size: 0.62rem;
		letter-spacing: 0.14em;
	}

	.landing .author {
		max-width: 100%;
	}

	.disclaimer {
		margin-right: 0;
		padding-right: 12px;
		font-size: 11px;
	}

	.disclaimer_window {
		width: min(280px, 90vw);
		margin-left: 0;
		left: 50%;
		transform: translateX(-50%);
	}
}

@media (max-height: 700px) and (min-width: 769px) {
	.landing.delhi_section {
		padding-top: 40px;
		padding-bottom: 88px;
	}

	.landing .author {
		margin-top: 1rem !important;
	}

	.landing .logo {
		width: min(70vw, 360px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.landing_arrow,
	.plus_photo,
	.project_thumb,
	.header_explore {
		animation: none !important;
		transition: none !important;
	}
}
