﻿/**
 * Legacy project pages (Bulk Trading, Jinja, Kampala, Refinery).
 *
 * The old "downstream redesign" hero painted three tanks, a road and a yellow
 * plate in CSS; at wide widths that plate read as an empty image container.
 * Each page now uses a photograph in the same slot, framed like every other
 * project image on the site.
 */

/* Replace the drawn graphic with photography, one photo per page. */
.unoc-downstream-redesign .hero .visual {
	min-height: clamp(260px, 26vw, 340px);
	border-radius: 14px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	box-shadow: 14px 14px 0 0 #dedbd6;
	overflow: hidden;
}

.unoc-downstream-redesign .hero .visual > * {
	display: none !important;
}

/* No yellow plates anywhere in these pages. */
.unoc-downstream-redesign .visual,
.unoc-downstream-redesign .hero {
	--yellow-plate: transparent;
}

body.postid-249 .unoc-downstream-redesign .hero .visual {
	background-image: url('../../../../uploads/2026/10/unoc-assets/downstream1-fuelterminal.jpg');
}

body.postid-248 .unoc-downstream-redesign .hero .visual {
	background-image: url('../../../../uploads/2026/07/Storage-terminals.jpg');
}

body.postid-247 .unoc-downstream-redesign .hero .visual {
	background-image: url('../../../../uploads/2026/10/Fuel-Importation-Storage-Terminals.jpeg.webp');
}

body.postid-245 .unoc-downstream-redesign .hero .visual {
	background-image: url('../../../../uploads/2026/10/refinery-tank-farm-twilight.jpg');
}

@media (max-width: 900px) {
	.unoc-downstream-redesign .hero .visual {
		min-height: 210px;
		box-shadow: 8px 8px 0 0 #dedbd6;
	}
}
/* ======================================================= overview facts list === */

/* The facts column was label + paragraph with no visual anchor. Give each row
 * an icon tile so capacity, rail, lake and jetty read at a glance. */
body.postid-247 .unoc-downstream-redesign .facts {
	display: grid;
	gap: 0;
}

body.postid-247 .unoc-downstream-redesign .facts .fact {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 18px;
	align-items: start;
	padding: 18px 0;
	border-top: 1px solid #e9e6e0;
}

body.postid-247 .unoc-downstream-redesign .facts .fact:first-child {
	border-top: 0;
	padding-top: 4px;
}

body.postid-247 .unoc-downstream-redesign .facts .fact::before {
	grid-row: 1 / span 2;
	content: "\f0e7";
	font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands";
	font-weight: 900;
	font-size: 15px;
	line-height: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #f6f4ef;
	color: #414042;
	border: 1px solid #e9e6e0;
}

body.postid-247 .unoc-downstream-redesign .facts .fact:nth-child(1)::before { content: "\f613"; } /* oil can   */
body.postid-247 .unoc-downstream-redesign .facts .fact:nth-child(2)::before { content: "\f238"; } /* train     */
body.postid-247 .unoc-downstream-redesign .facts .fact:nth-child(3)::before { content: "\f773"; } /* water     */
body.postid-247 .unoc-downstream-redesign .facts .fact:nth-child(4)::before { content: "\f13d"; } /* anchor    */
body.postid-247 .unoc-downstream-redesign .facts .fact:nth-child(5)::before { content: "\f275"; } /* industry  */

body.postid-247 .unoc-downstream-redesign .facts .fact b {
	grid-column: 2;
	font-size: 19px;
	line-height: 1.2;
	margin-bottom: 4px;
	color: #e10032;
}

body.postid-247 .unoc-downstream-redesign .facts .fact span {
	grid-column: 2;
	font-size: 14px;
	line-height: 1.55;
	color: #5f5e60;
}

@media (max-width: 700px) {
	body.postid-247 .unoc-downstream-redesign .facts .fact {
		grid-template-columns: 38px minmax(0, 1fr);
		column-gap: 14px;
	}

	body.postid-247 .unoc-downstream-redesign .facts .fact::before {
		width: 38px;
		height: 38px;
		border-radius: 10px;
		font-size: 13px;
	}
}

/* Figures that are labels rather than quantities (1970s, 2017) reveal instead
 * of counting up. */
.unoc-downstream-redesign .stats .stat strong.unoc-figure-reveal {
	animation: unocFigureReveal 0.7s ease both;
}

@keyframes unocFigureReveal {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.unoc-downstream-redesign .stats .stat strong.unoc-figure-reveal {
		animation: none;
	}
}

/* =============================================== facts icons, bulk & kampala === */

/* Same treatment as Jinja: an icon tile anchors each row. Icons are chosen per
 * page because the facts differ (mandate/focus/outcome vs. figures). */
body.postid-248 .unoc-downstream-redesign .facts,
body.postid-249 .unoc-downstream-redesign .facts {
	display: grid;
	gap: 0;
}

body.postid-248 .unoc-downstream-redesign .facts .fact,
body.postid-249 .unoc-downstream-redesign .facts .fact {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 18px;
	align-items: start;
	padding: 18px 0;
	border-top: 1px solid #e9e6e0;
}

body.postid-248 .unoc-downstream-redesign .facts .fact:first-child,
body.postid-249 .unoc-downstream-redesign .facts .fact:first-child {
	border-top: 0;
	padding-top: 4px;
}

body.postid-248 .unoc-downstream-redesign .facts .fact::before,
body.postid-249 .unoc-downstream-redesign .facts .fact::before {
	grid-row: 1 / span 2;
	content: "\f058";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 15px;
	line-height: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #f6f4ef;
	color: #414042;
	border: 1px solid #e9e6e0;
}

/* Kampala: 51% / ESIA / JV / $300M */
body.postid-248 .unoc-downstream-redesign .facts .fact:nth-child(1)::before { content: "\f295"; }
body.postid-248 .unoc-downstream-redesign .facts .fact:nth-child(2)::before { content: "\f46c"; }
body.postid-248 .unoc-downstream-redesign .facts .fact:nth-child(3)::before { content: "\f2b5"; }
body.postid-248 .unoc-downstream-redesign .facts .fact:nth-child(4)::before { content: "\f51e"; }

/* Bulk: Mandate / Focus / Outcome */
body.postid-249 .unoc-downstream-redesign .facts .fact:nth-child(1)::before { content: "\f0e3"; }
body.postid-249 .unoc-downstream-redesign .facts .fact:nth-child(2)::before { content: "\f140"; }
body.postid-249 .unoc-downstream-redesign .facts .fact:nth-child(3)::before { content: "\f058"; }

body.postid-248 .unoc-downstream-redesign .facts .fact b,
body.postid-249 .unoc-downstream-redesign .facts .fact b {
	grid-column: 2;
	font-size: 19px;
	line-height: 1.2;
	margin-bottom: 4px;
	color: #e10032;
}

body.postid-248 .unoc-downstream-redesign .facts .fact span,
body.postid-249 .unoc-downstream-redesign .facts .fact span {
	grid-column: 2;
	font-size: 14px;
	line-height: 1.55;
	color: #5f5e60;
}

@media (max-width: 700px) {
	body.postid-248 .unoc-downstream-redesign .facts .fact,
	body.postid-249 .unoc-downstream-redesign .facts .fact {
		grid-template-columns: 38px minmax(0, 1fr);
		column-gap: 14px;
	}

	body.postid-248 .unoc-downstream-redesign .facts .fact::before,
	body.postid-249 .unoc-downstream-redesign .facts .fact::before {
		width: 38px;
		height: 38px;
		border-radius: 10px;
		font-size: 13px;
	}
}

/* ============================================ card grids, downstream pages === */

/* Same markup everywhere (.cards > .card > small + h3 + p), so one treatment
 * serves Kampala, Jinja and Bulk. Layout only: no copy changes. */
.unoc-downstream-redesign .cards {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
	gap: clamp(14px, 1.6vw, 22px) !important;
	margin-top: clamp(28px, 3vw, 40px) !important;
	align-items: stretch;
}

.unoc-downstream-redesign .cards .card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 2.2vw, 32px) clamp(20px, 1.8vw, 26px) clamp(22px, 2vw, 28px) !important;
	background: #ffffff !important;
	border: 1px solid #e9e6e0 !important;
	border-radius: 16px !important;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* A colour spine per card, cycling through the brand trio. */
.unoc-downstream-redesign .cards .card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: #e9e6e0;
}

.unoc-downstream-redesign .cards .card:nth-child(4n + 1)::before { background: #e10032; }
.unoc-downstream-redesign .cards .card:nth-child(4n + 2)::before { background: #ffc808; }
.unoc-downstream-redesign .cards .card:nth-child(4n + 3)::before { background: #414042; }
.unoc-downstream-redesign .cards .card:nth-child(4n + 4)::before { background: #b9b5ae; }

.unoc-downstream-redesign .cards .card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 42px rgba(20, 20, 22, 0.10);
	border-color: #dedad2 !important;
}

.unoc-downstream-redesign .cards .card small {
	display: block;
	margin: 0 0 12px !important;
	font-size: 10.5px !important;
	font-weight: 800 !important;
	letter-spacing: 0.15em !important;
	text-transform: uppercase;
	color: #6f6c68 !important;
}

.unoc-downstream-redesign .cards .card h3 {
	margin: 0 0 10px !important;
	font-size: clamp(19px, 1.7vw, 23px) !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em;
	color: #1f2023 !important;
}

.unoc-downstream-redesign .cards .card p {
	margin: 0 !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: #5f5e60 !important;
}

/* Copy flows naturally under each title; card heights stay equal by stretch. */
.unoc-downstream-redesign .cards .card p:last-child {
	margin-top: 0 !important;
}

/* ============================================== progress steps, downstream === */

/* The sequence was four columns of red numerals on a gold rule. It becomes a
 * row of plates with a ghost numeral in the corner and a left spine that
 * appears on hover - a sibling of .cards, not a copy of it. */
.unoc-downstream-redesign .steps {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
	gap: clamp(14px, 1.6vw, 22px) !important;
	margin-top: clamp(28px, 3vw, 40px) !important;
	border-top: 0 !important;
}

.unoc-downstream-redesign .steps::before,
.unoc-downstream-redesign .steps::after {
	display: none !important;
}

.unoc-downstream-redesign .steps .step {
	position: relative;
	padding: clamp(24px, 2.2vw, 30px) clamp(20px, 1.8vw, 26px) clamp(22px, 2vw, 28px) !important;
	background: #ffffff !important;
	border: 1px solid #e9e6e0 !important;
	border-radius: 16px !important;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.unoc-downstream-redesign .steps .step::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: #e10032;
	transform: scaleY(0);
	transform-origin: top center;
	transition: transform 0.25s ease;
}

.unoc-downstream-redesign .steps .step:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 42px rgba(20, 20, 22, 0.10);
	border-color: #dedad2 !important;
}

.unoc-downstream-redesign .steps .step:hover::before {
	transform: scaleY(1);
}

/* Numeral as a red micro-label with a short rule, so it never collides with
 * the heading. */
.unoc-downstream-redesign .steps .step b {
	position: static !important;
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: 0.12em;
	color: #e10032 !important;
}

.unoc-downstream-redesign .steps .step b::after {
	content: "";
	width: 26px;
	height: 2px;
	background: #ece8e1;
	transition: background 0.22s ease, width 0.22s ease;
}

.unoc-downstream-redesign .steps .step:hover b::after {
	background: #e10032;
	width: 40px;
}

.unoc-downstream-redesign .steps .step h3 {
	position: relative;
	margin: 0 0 8px !important;
	padding-right: 0 !important;
	font-size: clamp(18px, 1.6vw, 21px) !important;
	line-height: 1.25 !important;
	color: #1f2023 !important;
}

.unoc-downstream-redesign .steps .step p {
	position: relative;
	margin: 0 !important;
	font-size: 13.5px !important;
	line-height: 1.6 !important;
	color: #5f5e60 !important;
}

@media (max-width: 1100px) and (min-width: 620px) {
	.unoc-downstream-redesign .steps {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
/* Titles of uneven length should not shift the descriptions out of line. */
@media (min-width: 620px) {
	.unoc-downstream-redesign .steps .step h3 {
		min-height: calc(2 * 1.25em);
	}
}
