/* Figma redesign — about (owned by the about agent)
 * Layouts: info_block_style_2 (.rd-steps), info_block_style_3 (.rd-criteria), info_block_style_4 (.rd-fv)
 * + About-page (297) / ESG (2473) scoped tweaks for shared complex_block parts (esg_documents).
 * Markup: template-parts/redesign/about-ib*.php
 */

.rd-steps,
.rd-criteria,
.rd-fv {
	--rd-gold: var(--np-gold, #D69C36);
	--rd-ink: var(--np-dark, #292929);
	--rd-silver: var(--np-line, #C2C7CB);
	--rd-band: var(--np-light, #F3F4F5);
	--rd-content: min(1171px, calc(100% - 108px));
	position: relative;
	box-sizing: border-box;
}

.rd-steps *,
.rd-criteria *,
.rd-fv * {
	box-sizing: border-box;
}

/* =====================================================================
   info_block_style_2 — How We Work (numbered steps)
   ===================================================================== */

/* The standalone "How We Work" title row is rendered inside the steps' left column instead. */
.complex_block:has(+ .rd-steps--paired),
.complex_block.rd-steps-title-src {
	display: none !important;
}

.rd-steps {
	padding-bottom: 118px;
}

/* sticky left title needs a non-scrolling ancestor: main has overflow:hidden in style.css */
main:has(.rd-steps--paired) {
	overflow: clip;
}

/* Spacing between a title-only/lead complex_block (shared layout) and the following about layout
   (Figma: 32px title -> Focus Verticals images, 64px lead -> criteria cards). */
main > .complex_block:has(+ .rd-fv) {
	padding-bottom: 32px;
}

main > .complex_block:has(+ .rd-criteria) {
	padding-bottom: 64px;
}

.rd-steps__inner {
	width: var(--rd-content);
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
}

.rd-steps__aside {
	flex: 1 1 0;
	min-width: 0;
	padding: 12px 0 40px 0; /* 12px: align the title's centre with step 1's number; no right padding so
	                           both columns are exactly half (Figma: steps start at x=847.5) */
	position: sticky;
	top: calc(var(--np-header-h, 113px) + 30px);
	align-self: flex-start;
}

.rd-steps__aside .rd-title {
	margin-top: 0;
	margin-bottom: 0;
}

.rd-steps__list {
	flex: 1 1 0;
	min-width: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.rd-steps--solo .rd-steps__list {
	flex-direction: row;
	flex-wrap: wrap;
	padding-top: 40px;
	gap: 30px 80px;
}

.rd-steps--solo .rd-step {
	width: calc(50% - 40px);
}

.rd-step {
	padding: 20px 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	list-style: none;
}

.rd-step__head {
	display: flex;
	align-items: center;
	gap: 30px;
}

.rd-step__num {
	position: relative;
	flex: 0 0 30px;
	width: 30px;
	text-align: center;
	font: 48px/1 'TitlingGothicFBWideMedium';
	color: var(--rd-silver);
}

.rd-step__num::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 120px;
	border: 1px solid var(--rd-gold);
	transform: translate(-50%, -50%) skewX(-29.5deg);
	pointer-events: none;
}

.rd-step__num > span {
	position: relative;
	display: block;
	padding-top: 6px; /* optical centring of the cap height inside the parallelogram */
}

.rd-step__title {
	margin: 0;
	font: 18px/1.5 'TitlingGothicFBWideMedium';
	color: var(--rd-ink);
}

/* Figma trims the number and title to cap height (text-box-trim), so the head row is ~40px, not 54px */
@supports (text-box: trim-both cap alphabetic) {
	.rd-step__num > span {
		padding-top: 0;
		text-box: trim-both cap alphabetic;
	}
	.rd-step__title {
		text-box: trim-both cap alphabetic;
	}
}

.rd-step__text {
	padding-left: 60px;
	margin: 0;
}

.rd-step__text,
.rd-step__text p {
	font: 16px/1.5 'PragmaticaLight';
	color: var(--rd-ink);
}

.rd-step__text p {
	margin: 0 0 1em;
}

.rd-step__text p:last-child {
	margin-bottom: 0;
}

.rd-steps__button {
	width: var(--rd-content);
	margin: 50px auto 0;
}

/* =====================================================================
   info_block_style_3 — Our Investment Criteria (parallelograms on a grey band)
   ===================================================================== */

.rd-criteria {
	padding-bottom: 0;
	margin-bottom: 118px; /* margin, so the band always ends 66px under the cards (custom padding_* classes don't break it) */
	overflow: hidden;
}

.rd-criteria__band {
	position: absolute;
	left: 0;
	right: 0;
	top: 90px;
	bottom: 0;
	background: var(--rd-band);
	border-top: 1px solid var(--rd-gold);
	z-index: 0;
}

.rd-criteria.dis_back .rd-criteria__band {
	display: none;
}

.rd-criteria__grid {
	position: relative;
	z-index: 1;
	list-style: none;
	margin: 0 auto;
	padding: 0 0 66px;
	display: grid;
	grid-template-columns: repeat(2, 512px);
	justify-content: center;
	gap: 31px 0;
	left: -22px; /* the skewed frames lean right; centre the visual block like in Figma */
}

.rd-criteria--c3 .rd-criteria__grid {
	grid-template-columns: repeat(3, minmax(0, 420px));
	column-gap: 40px;
	width: var(--rd-content);
}

/* 3 columns (current About content: "Investment Strategy and Approach") — tighter cards */
.rd-criteria--c3 .rd-criteria__grid {
	left: 0;
}

.rd-criteria--c3 .rd-crit {
	padding: 20px 50px 20px 115px;
}

.rd-criteria--c3 .rd-crit__frame {
	left: 60px;
	right: 0;
}

.rd-criteria--c3 .rd-crit__accent {
	left: 42px;
}

.rd-criteria--c1 .rd-criteria__grid {
	grid-template-columns: minmax(0, 512px);
}

.rd-crit {
	position: relative;
	list-style: none;
	min-height: 184px;
	display: flex;
	align-items: center;
	padding: 20px 65px 20px 160px;
}

/* outlined parallelogram (Figma Path 9465: 552 x 184, ~31deg) */
.rd-crit__frame {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 76px;
	right: -6px;
	background: #FFFFFF;
	border: 1px solid var(--rd-gold);
	transform: skewX(-31deg);
}

/* gold accent (Figma Group 1673: 76 x 70) */
.rd-crit__accent {
	position: absolute;
	left: 58px;
	top: 50%;
	width: 36px;
	height: 70px;
	margin-top: -35px;
	background: var(--rd-gold);
	transform: skewX(-31deg);
}

.rd-crit__text {
	position: relative;
	margin: 0;
}

.rd-crit__text,
.rd-crit__text p,
.rd-crit__text strong,
.rd-crit__text b {
	font: 16px/31px 'PragmaticaBold';
	color: var(--rd-ink);
}

.rd-crit__text p {
	margin: 0;
}

.rd-criteria__button {
	position: relative;
	z-index: 1;
	margin-top: 40px;
}

/* =====================================================================
   info_block_style_4 — Focus Verticals (skewed image + card)
   ===================================================================== */

.rd-fv {
	overflow: hidden;
	padding-bottom: 118px;
}

.rd-fv__list {
	width: var(--rd-content);
	margin: 0 auto;
}

.rd-fv__item {
	position: relative;
	padding-top: 171px;
}

.rd-fv__item + .rd-fv__item {
	margin-top: -85px;
}

/* parallelogram image: bounding box 532 x 270, starts 70px left of the content column */
.rd-fv__img {
	position: absolute;
	top: 0;
	left: 8px;
	width: 376px;
	height: 270px;
	overflow: hidden;
	transform: skewX(-30deg);
	z-index: 0;
}

.rd-fv__img-in {
	position: absolute;
	top: 0;
	bottom: 0;
	left: -90px;
	right: -90px;
	background-size: cover;
	background-position: center;
	transform: skewX(30deg);
	filter: grayscale(1);
	-webkit-filter: grayscale(1);
	transition: filter 0.4s ease;
}

.rd-fv__item.hov .rd-fv__img-in,
.rd-fv__item.show .rd-fv__img-in {
	filter: grayscale(0);
	-webkit-filter: grayscale(0);
}

.rd-fv__card {
	position: relative;
	z-index: 1;
	margin-left: 250px;
	background: #FFFFFF;
	padding: 25px 50px 30px;
	box-shadow: 0 7px 15px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	gap: 20px;
	cursor: pointer;
}

.rd-fv__item:not(.has-body) .rd-fv__card {
	cursor: default;
}

.rd-fv__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.rd-fv__title {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 40px;
	font: 21px/1.5 'TitlingGothicFBWideMedium';
	color: var(--rd-ink);
}

.rd-fv__sq {
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	background: var(--rd-gold);
}

.rd-fv__cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 50px;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--rd-gold);
	font: 12px/12px 'SackersGothicStd-Heavy';
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
}

.rd-fv__cta-label--close,
.rd-fv__item.show .rd-fv__cta-label--more {
	display: none;
}

.rd-fv__item.show .rd-fv__cta-label--close {
	display: inline;
}

.rd-fv__arrow {
	display: block;
	width: 66px;
	height: 20px;
	transition: transform 0.3s ease;
}

.rd-fv__item.hov .rd-fv__arrow {
	transform: translateX(8px);
}

.rd-fv__item.show .rd-fv__arrow {
	transform: rotate(90deg);
	transform-origin: 50% 50%;
	width: 40px;
}

.rd-fv__text {
	max-width: 600px;
	margin: 0;
}

.rd-fv__text,
.rd-fv__text p {
	font: 16px/1.5 'PragmaticaLight';
	color: var(--rd-ink);
}

.rd-fv__text p {
	margin: 0 0 0.75em;
}

.rd-fv__text p:last-child {
	margin-bottom: 0;
}

/* details panel (description + quick links) */
.rd-fv__body {
	position: relative;
	z-index: 1;
	margin-left: 250px;
	padding: 40px 50px 120px;
}

.rd-fv__item:last-child .rd-fv__body {
	padding-bottom: 20px;
}

.rd-fv__body-title {
	margin: 0 0 20px;
	font: 18px/1.5 'TitlingGothicFBWideMedium';
	color: var(--rd-ink);
}

.rd-fv__desc.two_c {
	column-count: 2;
	column-gap: 40px;
}

.rd-fv__desc,
.rd-fv__desc p,
.rd-fv__desc li {
	font: 16px/1.5 'PragmaticaLight';
	color: var(--rd-ink);
}

.rd-fv__desc p {
	margin: 0 0 0.5em;
}

.rd-fv__desc strong {
	font-family: 'PragmaticaBold';
}

.rd-fv__desc ul {
	margin-bottom: 1.25em;
}

/* keep each bullet (legacy li::before) together with its text across the 2 columns */
.rd-fv__desc ul li {
	display: inline-block;
	width: 100%;
	margin-bottom: 10px;
	break-inside: avoid;
}

.rd-fv__links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	margin-top: 40px;
}

/* =====================================================================
   About (297) + Responsible Investing (2473): download cards (esg_documents, shared complex_block part)
   Figma "Our Commitment" component 2029:2576
   ===================================================================== */

/* Desktop only (>=1024px): until 2026-11-12 these rules were scoped to .page-id-* body classes the theme never prints,
   so they never applied; below 1024px the legacy full-bleed mobile cards (style.css) already match the mobile design. */
@media screen and (min-width: 1024px) {
	main.np-page-about-us .esg_documents,
	main.np-page-about-us-esg .esg_documents {
		width: 100%;
		margin: 0;
		padding: 34px 0 12px; /* Figma 2029:2425: frame top 35px under the body; 118px from the buttons to the next section (12 + 100 section padding + 6 half-button) */
		display: flex;
		flex-wrap: wrap;
		gap: 100px 118px;
	}

	main.np-page-about-us .esg_documents .esg_doc,
	main.np-page-about-us-esg .esg_documents .esg_doc {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	main.np-page-about-us .esg_documents .image_wrapper,
	main.np-page-about-us-esg .esg_documents .image_wrapper {
		margin: 0;
		width: 100%;
		padding-top: 64.4%; /* 441 x 284 */
	}

	main.np-page-about-us .esg_documents .image_wrapper:after,
	main.np-page-about-us-esg .esg_documents .image_wrapper:after {
		background: linear-gradient(to bottom, rgba(41, 41, 41, 0) 0, #292929 100%);
	}

	main.np-page-about-us .esg_documents .esg_doc h3,
	main.np-page-about-us-esg .esg_documents .esg_doc h3 {
		bottom: 30px;
		width: 330px;
		max-width: calc(100% - 60px);
		font: 18px/1.5 'TitlingGothicFBWideMedium';
	}

	/* gold frame: 456 x 429 on a 526 x 339 image -> 34px above, 56px below, ~35px inset left/right */
	main.np-page-about-us .esg_documents .esg_doc > .lines,
	main.np-page-about-us-esg .esg_documents .esg_doc > .lines {
		left: 6.7%;
		width: 86.6%;
		top: -34px;
		bottom: auto;
		height: calc(100% + 34px + 56px - 51px - 30px);
	}

	main.np-page-about-us .esg_documents .esg_doc .button_box,
	main.np-page-about-us-esg .esg_documents .esg_doc .button_box {
		margin: 30px 0 0; /* no legacy 40px bottom margin: the frame height above assumes the card ends at the button */
	}
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media screen and (max-width: 1365px) {
	.rd-criteria__grid {
		grid-template-columns: repeat(2, minmax(0, 480px));
	}

	/* less room in the gutter: image bbox starts 30px (not 70px) left of the content column */
	.rd-fv__img {
		left: 48px;
	}

	.rd-fv__card,
	.rd-fv__body {
		margin-left: 280px;
	}
}

@media screen and (max-width: 1199px) {
	.rd-steps,
	.rd-criteria,
	.rd-fv {
		--rd-content: calc(100% - 80px);
	}

	.rd-fv__img {
		width: 300px;
		height: 230px;
	}

	.rd-fv__item {
		padding-top: 140px;
	}

	.rd-fv__card,
	.rd-fv__body {
		margin-left: 200px;
	}

	.rd-criteria__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: var(--rd-content);
		column-gap: 20px;
	}

	.rd-criteria--c3 .rd-criteria__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rd-crit {
		padding-left: 145px;
		padding-right: 60px;
	}

	.rd-crit__frame {
		left: 70px;
		right: 20px;
	}

	.rd-crit__accent {
		left: 52px;
	}

	main.np-page-about-us .esg_documents,
	main.np-page-about-us-esg .esg_documents {
		gap: 100px 60px;
	}
}

@media screen and (max-width: 1023px) {
	.rd-steps__inner {
		flex-direction: column;
	}

	.rd-steps__aside {
		position: static;
		padding: 60px 0 0;
	}

	.rd-steps__list {
		padding-top: 40px;
	}

	.rd-steps--solo .rd-step {
		width: 100%;
	}

	.rd-step {
		padding-left: 40px; /* keep the parallelogram (sticks out ~19px left of the number) inside */
	}

	.rd-steps,
	.rd-fv {
		padding-bottom: 80px;
	}

	.rd-criteria--c3 .rd-criteria__grid,
	.rd-criteria__grid {
		grid-template-columns: minmax(0, 520px);
		gap: 30px;
		padding-bottom: 50px;
	}

	.rd-fv__item {
		padding-top: 0;
	}

	.rd-fv__item + .rd-fv__item {
		margin-top: 60px;
	}

	.rd-fv__img {
		position: relative;
		left: 0;
		width: 100%;
		height: 300px;
		transform: none;
	}

	.rd-fv__img-in {
		left: 0;
		right: 0;
		transform: none;
	}

	.rd-fv__card,
	.rd-fv__body {
		margin-left: 0;
	}
}

@media screen and (max-width: 767px) {
	.rd-steps,
	.rd-criteria,
	.rd-fv {
		--rd-content: calc(100% - 60px);
	}

	/* How We Work — mobile variant (Figma 2060:4094): gold title, square + rule, no numbers */
	.rd-steps__aside {
		padding-top: 0;
	}

	.rd-steps__aside .rd-title,
	.rd-steps__aside .rd-title span {
		margin-left: 0;
		font: 19px/1.5 'TitlingGothicFBWideMedium';
		color: var(--rd-ink);
	}

	.rd-steps__aside .rd-title::after,
	.rd-steps__aside .rd-title::before {
		display: none !important;
	}

	.rd-steps__list {
		padding-top: 30px;
		gap: 40px;
	}

	.rd-step {
		padding: 0;
		gap: 10px;
	}

	.rd-step__head {
		display: block;
		position: relative;
		padding: 10px 0 31px;
	}

	.rd-step__num {
		display: none;
	}

	.rd-steps__br {
		display: none;
	}

	.rd-step__title {
		font: 19px/1.5 'TitlingGothicFBWideMedium';
		color: var(--rd-gold);
	}

	.rd-step__head::before,
	.rd-step__head::after {
		content: '';
		position: absolute;
		left: 0;
		background: var(--rd-gold);
	}

	.rd-step__head::before {
		bottom: 10px;
		width: 11px;
		height: 11px;
	}

	.rd-step__head::after {
		bottom: 15px;
		right: 0;
		height: 1px;
	}

	.rd-step__text {
		padding-left: 0;
	}

	.rd-step__text,
	.rd-step__text p {
		font-size: 14px;
	}

	/* Criteria — single column */
	.rd-criteria {
		margin-bottom: 80px;
	}

	.rd-criteria__band {
		top: 92px;
	}

	.rd-criteria--c3 .rd-criteria__grid,
	.rd-criteria__grid {
		grid-template-columns: minmax(0, 1fr);
		width: calc(100% - 60px);
		gap: 30px;
		padding-bottom: 70px;
		left: 0;
	}

	.rd-criteria .rd-crit {
		min-height: 185px;
		padding: 15px 70px 15px 113px;
	}

	.rd-criteria .rd-crit__frame {
		left: 56px;
		right: 56px;
	}

	.rd-criteria .rd-crit__accent {
		left: 38px;
		width: 35px;
	}

	.rd-crit__text,
	.rd-crit__text p,
	.rd-crit__text strong,
	.rd-crit__text b {
		font-size: 14px;
		line-height: 1.5;
	}

	/* Focus Verticals — stacked cards (Figma 2060:4095) */
	.rd-fv {
		padding-bottom: 20px;
	}

	.rd-fv__img {
		height: 204px;
	}

	.rd-fv__card {
		padding: 40px 50px;
		gap: 30px;
	}

	.rd-fv__row {
		display: contents;
	}

	.rd-fv__title {
		order: 1;
		align-items: flex-start;
		font-size: 19px;
	}

	.rd-fv__sq {
		margin-top: 6px;
	}

	.rd-fv__text {
		order: 2;
	}

	.rd-fv__text,
	.rd-fv__text p {
		font-size: 14px;
	}

	.rd-fv__cta {
		order: 3;
		align-self: flex-start;
	}

	.rd-fv__body {
		padding: 30px 30px 20px;
	}

	.rd-fv__desc.two_c {
		column-count: 1;
	}

	.rd-fv__links {
		margin-top: 20px;
	}

}
