/* ===================== Header + dropdown menu (v2 design) ===================== */

.ap-header {
	position: relative;
	z-index: 100;
}

.ap-brand {
	min-width: 228px;
}

/* The logo sits in a shrink-to-fit flex row; without this the img's
   max-width:100% clamps against a zero-width parent and collapses. */
.ap-brand .elementor-widget-image img {
	width: 228px;
	max-width: none;
	height: auto;
}

.ap-burger {
	display: none !important;
	cursor: pointer;
}

.ap-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ap-dd {
	position: relative;
}

.ap-dd-toggle {
	cursor: pointer;
	user-select: none;
}

.ap-dd-panel {
	position: absolute;
	top: 52px;
	left: 0;
	width: 280px;
	z-index: 120;
	display: none;
	box-shadow: 0 12px 28px rgba(20, 33, 61, 0.12);
	/* design: light hairline on the sides, gold only on the top edge */
	border-top: 2px solid #B8975A !important;
}

/* the open group is tinted, as in the mockup */
.ap-dd.is-open .ap-dd-toggle,
.ap-dd:hover .ap-dd-toggle {
	background: rgba(255, 255, 255, 0.10);
	border-radius: 4px;
}

.ap-dd.is-open .ap-dd-panel {
	display: flex;
}

/* Keyboard users: keep the panel while focus is inside it. */
@media (min-width: 1025px) {
	.ap-dd:focus-within .ap-dd-panel {
		display: flex;
	}

	/* Invisible bridge across the gap between the toggle and the panel, so the
	   pointer can travel down without leaving the hover target. */
	.ap-dd::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		height: 14px;
	}
}

.ap-dd .elementor-heading-title a {
	text-decoration: none;
}

.ap-dd-item {
	cursor: pointer;
}

.ap-dd-item:hover {
	background: #F8F7F4;
}

.ap-header .ap-cta .elementor-button-text {
	color: inherit;
}

@media (max-width: 767px) {
	.ap-brand {
		min-width: 175px;
	}

	.ap-brand .elementor-widget-image img {
		width: 175px;
	}
}

@media (max-width: 1024px) {
	.ap-burger {
		display: inline-flex !important;
	}

	/* the Let's talk button lives inside the panel on phones */
	.ap-nav .ap-cta {
		display: inline-flex !important;
		align-self: flex-start;
		margin: 10px 0 6px;
	}

	/* the panel is anchored to the header, not to this shrink-to-fit wrapper */
	.ap-nav-wrap {
		position: static !important;
	}

	.ap-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: #1F3157;
		padding: 8px 16px 16px;
		gap: 0;
		box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
		z-index: 110;
	}

	.ap-nav.is-open {
		display: flex;
	}

	.ap-dd {
		width: 100%;
	}

	.ap-dd-toggle {
		justify-content: space-between;
	}

	.ap-dd-panel {
		position: static;
		width: 100% !important;
		box-shadow: none;
		margin-bottom: 6px;
	}
}

/* Elementor centres counter content by default; the design is left aligned */
#stats .elementor-counter {
	justify-content: flex-start;
	text-align: left;
}

#stats .elementor-counter-number-wrapper,
#stats .elementor-counter-title {
	display: flex;
	justify-content: flex-start !important;
	text-align: left;
}

#stats .elementor-counter-title {
	justify-content: flex-start;
}

/* Elementor lets the prefix/suffix spans grow, which centres the number */
#stats .elementor-counter-number-wrapper > span {
	flex: 0 0 auto;
	text-align: inherit;
}

/* Deal cards: the design uses a 3px gold accent bar on the top edge only */
#deals .deal-card {
	border-top: 3px solid #B8975A !important;
}

/* Cards with a gold left accent bar (readiness CTA) */
.accent-left {
	border-left: 3px solid #B8975A !important;
}

/* Wholesale investor confirmation checkbox */
.gate-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
	/* the theme gives labels line-height:1, which collapses the consent copy */
	line-height: 1.55;
}

.gate-check span {
	line-height: 1.55;
}

.gate-check input[type="checkbox"] {
	margin: 3px 0 0;
	width: 16px;
	height: 16px;
	accent-color: #B8975A;
	flex: none;
}

/* Icon lists: keep the bullet aligned with the first line when text wraps */
.elementor-widget-icon-list .elementor-icon-list-item {
	align-items: flex-start !important;
}

.elementor-widget-icon-list .elementor-icon-list-icon {
	margin-top: 6px;
}

/* Document checklist rows (Lending page) */
#documents .elementor-icon-list-item {
	padding: 12px 0;
	border-bottom: 1px solid #E4E2DC;
}

#documents .elementor-icon-list-text {
	padding-left: 10px;
}

/* Elementor's icon-list text inherits the theme's 1.5; the design uses 1.55 */
.elementor-icon-list-text {
	line-height: 1.55;
}

/* Insight cards carry a gold top edge, as in the mock-up */
.insight-card {
	border-top: 3px solid #D7AD44 !important;
}

/* Insight card titles are links, but read as part of the card (design) */
.insight-card .elementor-heading-title a {
	color: inherit;
	text-decoration: none;
}

/* Footer logo: same shrink guard as the header mark */
.ap-footer-logo img {
	width: 190px;
	max-width: none;
	height: auto;
}

@media (max-width: 767px) {
	.ap-footer-logo img {
		width: 150px;
	}
}

/* Fund detail: risk rows use the same 12px dividers as the document checklist */
.elementor-widget-icon-list.fund-risks .elementor-icon-list-item {
	padding: 12px 0 !important;
	border-bottom: 1px solid #ECEAE5;
}

.fund-risks .elementor-icon-list-icon {
	margin-top: 8px;
}

.fund-risks .elementor-icon-list-text {
	padding-left: 14px;
}

/* FAQ accordion: the title is an <h2>, so the kit's heading style wins over the
   widget's own typography. Re-assert the design here. */
.elementor-widget-accordion .elementor-accordion-title {
	font-family: Manrope, sans-serif !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.55 !important;
	color: #14213D !important;
}

.elementor-widget-accordion .elementor-tab-content {
	font-family: Manrope, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: #4E5664;
}

/* Wholesale gate: confirming swaps the navy box for the returns block */
.ap-gate-open {
	display: none !important;
}

.ap-gate.is-open .ap-gate-box {
	display: none !important;
}

.ap-gate.is-open .ap-gate-open {
	display: flex !important;
}

.ap-gate:not(.is-agreed) .ap-gate-btn .elementor-button {
	background-color: #7C8597 !important;
	color: #14213D !important;
	cursor: not-allowed;
}

.ap-gate.is-agreed .ap-gate-btn .elementor-button {
	/* the site's button gold, matching the header CTA */
	background-color: #D7AD44 !important;
	color: #14213D !important;
	cursor: pointer;
}

.ap-gate.is-agreed .ap-gate-btn .elementor-button:hover,
.ap-gate.is-agreed .ap-gate-btn .elementor-button:focus {
	background-color: #C39B38 !important;
	color: #14213D !important;
}

/* Fund detail: buttons fill the narrow aside cards */
.ap-fund-docs .elementor-button,
.ap-gate-box .elementor-button {
	width: 100%;
}

/* Readiness page masthead */
.rc-mast-label p {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 11.5px !important;
}


/* FAQ accordion: hairlines only, sign on the right (concept markup) */
.ap-faq .elementor-accordion {
	border-top: 1px solid #E4E2DC;
}

.ap-faq .elementor-accordion .elementor-accordion-item {
	border: 0;
	border-bottom: 1px solid #E4E2DC;
}

.ap-faq .elementor-accordion .elementor-accordion-item + .elementor-accordion-item {
	border-block-start: 0;
}

.ap-faq .elementor-accordion .elementor-tab-content,
.ap-faq .elementor-accordion .elementor-tab-title.elementor-active {
	border: 0;
}

.ap-faq .elementor-accordion .elementor-tab-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 17px;
	line-height: 1.6;
}

.ap-faq .elementor-accordion .elementor-tab-title .elementor-accordion-icon {
	float: none;
	order: 2;
	width: 22px;
	flex: 0 0 22px;
	text-align: right;
	font-size: 22px;
	line-height: 1.6;
}

.ap-faq .elementor-accordion .elementor-accordion-icon svg {
	width: 15px;
	height: 15px;
}

.ap-faq .elementor-accordion .elementor-tab-title a {
	flex: 1 1 auto;
	color: inherit;
	text-decoration: none;
}

.ap-faq .elementor-accordion .elementor-tab-title a:hover {
	text-decoration: none;
}


/* How it works steps: keep the number beside the copy on small screens
   (Elementor resets inner containers to 100% below desktop, which wraps it). */
@media (max-width: 767px) {
	.ap-step {
		flex-wrap: nowrap;
	}

	.ap-step .ap-step-body {
		width: calc(100% - 48px) !important;
	}
}


/* Top bar: rotate settled deal / latest insight / market news */
.ap-tick-item {
	display: none;
}

.ap-tick-item.is-on {
	display: inline;
}


/* Buttons are not underlined (only text links are) */
.elementor-button,
.elementor-button:hover,
.elementor-button:focus {
	text-decoration: none !important;
}

/* ============ Settled deal cards (rendered from the Deal CPT) ============ */

.ap-deals {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ap-deal {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	background: #fff;
	border: 1px solid #E4E2DC;
	border-top: 3px solid #B8975A;
	border-radius: 8px;
	font-family: Manrope, sans-serif;
}

.ap-deal__badge {
	align-self: flex-start;
	background: #D7AD44;
	color: #14213D;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 3px;
}

.ap-deal__amount {
	margin: 0;
	font-family: Manrope, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.55;
	color: #14213D;
}

.ap-deal__type {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #5B6472;
}

.ap-deal__purpose {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #4E5664;
}

.ap-deal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	padding-top: 10px;
	margin-top: 4px;
	border-top: 1px solid #ECEAE5;
	font-size: 14px;
	line-height: 1.55;
	color: #4E5664;
}

@media (max-width: 900px) {
	.ap-deals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ap-deals {
		grid-template-columns: 1fr;
	}
}
