/* ==========================================================================
   rebuild.css — repair + redesign layer for the Urban Investment & Innovation
   Summit, Noida 2019 rebuild.

   Loaded last, so the theme's own stylesheets stay untouched. Palette is taken
   from the page's own colours (#c42d2d speaker names, #333b45 caption bars).
   ========================================================================== */

:root {
	--nx-red: #c42d2d;
	--nx-red-deep: #9d2020;
	--nx-slate: #333b45;
	--nx-ink: #1b2430;
	--nx-body: #5a6675;
	--nx-line: rgba(27, 36, 48, 0.10);
	--nx-shadow: 0 1px 2px rgba(27, 36, 48, 0.05), 0 12px 30px rgba(27, 36, 48, 0.10);
	--nx-shadow-lift: 0 2px 6px rgba(27, 36, 48, 0.08), 0 22px 44px rgba(27, 36, 48, 0.17);
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }
img { max-width: 100%; }

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--nx-red);
	outline-offset: 3px;
	border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- video playlists */
/* The six "Glimpses" embeds are YouTube *playlists*, saved by the browser as
   videoseries.html. An embedded player will not start from a file:// page
   (Error 153), so each is a facade: the playlist's own thumbnail, a play badge
   and a link to the playlist. Served over http(s), js/rebuild.js swaps in the
   real player on click. */

.nx-video { position: relative; height: 100%; }
.nx-video-link {
	display: block;
	border: 0;
	text-decoration: none;
	color: inherit;
}
.nx-video-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #0d1117;
	box-shadow: var(--nx-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nx-video-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, filter 0.25s ease;
}
.nx-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 45px;
	transform: translate(-50%, -50%);
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}
.nx-play-bg { fill: #1c1c1c; fill-opacity: 0.82; transition: fill 0.2s ease, fill-opacity 0.2s ease; }
.nx-play-tri { fill: #fff; }

.nx-video-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 4px 10px;
	border-radius: 4px;
	background: rgba(13, 17, 23, 0.82);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
}

.nx-video-link:hover .nx-video-thumb,
.nx-video-link:focus-visible .nx-video-thumb {
	transform: translateY(-4px);
	box-shadow: var(--nx-shadow-lift);
}
.nx-video-link:hover .nx-video-thumb img { transform: scale(1.04); filter: brightness(1.06); }
.nx-video-link:hover .nx-play-bg { fill: #e62117; fill-opacity: 1; }

.nx-video.is-playing iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* ------------------------------------------------------------ speaker rows */
/* The theme floats `one-quarter` / `one-third` columns, so a short row hangs to
   the left with dead space beside it. */

.nx-people {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 26px 22px;
	margin: 6px 0 0 !important;
}
.nx-people > .one-quarter,
.nx-people > .one-third {
	display: flex;
	flex-direction: column;
	float: none !important;
	width: auto !important;
	max-width: 240px;
	flex: 0 1 240px;
	margin: 0 !important;
	padding: 0 !important;
}
/* spacer columns the page builder emitted to pad out a row */
.nx-people > .one-quarter:not(:has(.w-person)):not(:has(h4)):not(:has(img)),
.nx-people > .one-third:not(:has(.w-person)):not(:has(h4)):not(:has(img)) { display: none; }

.nx-people .w-person {
	/* grow to fill the column rather than height:100% — some columns also carry
	   a group heading, and a 100%-tall card overflows past the column bottom */
	flex: 1 1 auto;
	max-width: none !important;
	padding: 22px 16px 20px;
	border: 1px solid var(--nx-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--nx-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.no-touch .nx-people .w-person:hover {
	transform: translateY(-5px);
	box-shadow: var(--nx-shadow-lift);
}
.nx-people .w-person-image {
	max-width: none !important;
	margin: 0 0 15px !important;
}
.nx-people .w-person-image img {
	width: 148px;
	height: 148px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto;
	box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(196, 45, 45, 0.30);
}
.nx-people .w-person-name { font-size: 16px !important; line-height: 1.35; }
.nx-people .w-person-role { font-size: 12.5px !important; line-height: 1.5 !important; }

@media (max-width: 600px) {
	.nx-people > .one-quarter,
	.nx-people > .one-third { flex-basis: 100%; max-width: 290px; }
}

/* --------------------------------------- portrait with no surviving photo */
.nx-initials {
	display: grid;
	place-items: center;
	width: 148px;
	height: 148px;
	margin: 0 auto;
	border-radius: 50%;
	background: linear-gradient(150deg, var(--nx-red), var(--nx-red-deep));
	color: #fff;
	font-size: 44px;
	font-weight: 700;
	box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(196, 45, 45, 0.30);
}

/* ------------------------------------------------------------ partner wall */
.my-partner-pic img { transition: transform 0.25s ease; }

/* ------------------------------ speaker columns that are not .w-person */
/* Most speakers on this page are a plain .w-image plus a raw-HTML paragraph,
   not the theme's person widget. Same card treatment, applied to the column. */

.nx-people > .one-quarter:has(.w-image),
.nx-people > .one-third:has(.w-image),
.nx-people > .one-half:has(.w-image) {
	padding: 22px 16px 18px !important;
	border: 1px solid var(--nx-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--nx-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.no-touch .nx-people > .one-quarter:has(.w-image):hover,
.no-touch .nx-people > .one-third:has(.w-image):hover,
.no-touch .nx-people > .one-half:has(.w-image):hover {
	transform: translateY(-5px);
	box-shadow: var(--nx-shadow-lift);
}
.nx-people .w-image { margin: 0 0 14px !important; }
.nx-people .w-image img {
	width: 148px;
	height: 148px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto;
	display: block;
	box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(196, 45, 45, 0.30);
}
.nx-people .wpb_raw_code,
.nx-people .wpb_wrapper { margin: 0 !important; }
.nx-people p {
	margin: 0;
	color: var(--nx-body);
	font-size: 12.5px;
	line-height: 1.55;
	text-align: center;
}
.nx-people p strong { font-size: 15px; line-height: 1.35; }
.nx-people p strong span[style*="bd3315"] { color: var(--nx-red) !important; }

/* The theme's .w-video wrapper is a padding-ratio box; let the facade define
   its own 16:9 rather than inherit a zero height from it. */
.w-video .w-video-h { position: static !important; padding-bottom: 0 !important; height: auto !important; }
.w-video .nx-video { height: auto; }
