/* Portfolio Owners page-only presentation corrections.
 * Keep these rules out of the WordPress page body so the protected Custom HTML
 * lifecycle calculator is never rewritten or sanitized just to adjust layout.
 */

.asher-portfolio-page {
	margin-top: -65px;
}

/* Align the protected Portfolio Owners hero with the approved site-wide mockup
 * without modifying the page's calculator markup or inline scripts.
 */
#asher-portfolio-hero {
	padding-top: 130px !important;
	padding-bottom: 130px !important;
}

#asher-portfolio-hero .asher-portfolio-inner {
	max-width: 1560px !important;
}

#asher-portfolio-hero .asher-portfolio-hero-grid,
#asher-portfolio-hero .asher-portfolio-grid {
	gap: 72px !important;
	align-items: center !important;
	min-height: 680px;
}

#asher-portfolio-hero .asher-portfolio-h1 {
	font-size: clamp(56px, 6vw, 82px) !important;
	line-height: 1.04 !important;
	max-width: 950px !important;
}

#asher-portfolio-hero .asher-portfolio-copy {
	font-size: 21px !important;
	line-height: 1.7 !important;
	max-width: 780px !important;
}

#asher-portfolio-hero .asher-portfolio-hero-media,
#asher-portfolio-hero .asher-portfolio-media,
#asher-portfolio-hero .asher-portfolio-image-wrap {
	min-height: 620px !important;
}

#asher-portfolio-hero .asher-portfolio-hero-media img,
#asher-portfolio-hero .asher-portfolio-media img,
#asher-portfolio-hero .asher-portfolio-image-wrap img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.asher-portfolio-subnav {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(11, 11, 12, 0.97);
	border-top: 1px solid rgba(202, 164, 87, 0.28);
	border-bottom: 1px solid rgba(202, 164, 87, 0.32);
	backdrop-filter: blur(8px);
}

.admin-bar .asher-portfolio-subnav {
	top: 32px;
}

.asher-portfolio-subnav-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 6%;
	display: flex;
	align-items: stretch;
	overflow-x: auto;
	scrollbar-width: thin;
}

.asher-portfolio-subnav a {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 62px;
	padding: 0 20px;
	color: #d8d8d8;
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-decoration: none;
	white-space: nowrap;
}

.asher-portfolio-subnav a::after {
	content: "";
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 0;
	height: 3px;
	background: transparent;
}

.asher-portfolio-subnav a:hover,
.asher-portfolio-subnav a:focus-visible,
.asher-portfolio-subnav a.is-active {
	color: #caa457;
}

.asher-portfolio-subnav a.is-active::after {
	background: #caa457;
}

.asher-portfolio-subnav a:focus-visible {
	outline: 2px solid #caa457;
	outline-offset: -4px;
}

#asher-portfolio-hero,
#asher-portfolio-lifecycle,
#asher-portfolio-risk,
#asher-portfolio-capital,
#asher-portfolio-dashboard,
#asher-portfolio-final-cta {
	scroll-margin-top: 74px;
}

.admin-bar #asher-portfolio-hero,
.admin-bar #asher-portfolio-lifecycle,
.admin-bar #asher-portfolio-risk,
.admin-bar #asher-portfolio-capital,
.admin-bar #asher-portfolio-dashboard,
.admin-bar #asher-portfolio-final-cta {
	scroll-margin-top: 106px;
}

@media (max-width: 991px) {
	#asher-portfolio-hero {
		padding-top: 100px !important;
		padding-bottom: 100px !important;
	}

	#asher-portfolio-hero .asher-portfolio-h1 {
		font-size: clamp(48px, 8vw, 72px) !important;
	}

	#asher-portfolio-hero .asher-portfolio-hero-media,
	#asher-portfolio-hero .asher-portfolio-media,
	#asher-portfolio-hero .asher-portfolio-image-wrap {
		min-height: 460px !important;
	}
}

@media (max-width: 782px) {
	.admin-bar .asher-portfolio-subnav {
		top: 46px;
	}

	.asher-portfolio-subnav-inner {
		padding: 0 4%;
	}

	.asher-portfolio-subnav a {
		min-height: 56px;
		padding: 0 16px;
		font-size: 12px;
	}

	.asher-portfolio-subnav a::after {
		left: 16px;
		right: 16px;
	}
}

@media (max-width: 767px) {
	.asher-portfolio-page {
		margin-top: -65px;
	}

	#asher-portfolio-hero {
		padding-top: 82px !important;
		padding-bottom: 82px !important;
	}

	#asher-portfolio-hero .asher-portfolio-copy {
		font-size: 18px !important;
	}

	#asher-portfolio-hero .asher-portfolio-hero-media,
	#asher-portfolio-hero .asher-portfolio-media,
	#asher-portfolio-hero .asher-portfolio-image-wrap {
		min-height: 320px !important;
	}

	#asher-portfolio-hero,
	#asher-portfolio-lifecycle,
	#asher-portfolio-risk,
	#asher-portfolio-capital,
	#asher-portfolio-dashboard,
	#asher-portfolio-final-cta {
		scroll-margin-top: 68px;
	}
}

/*
 * Lifecycle calculator presentation belongs in this page-scoped asset. The
 * WordPress page retains semantic calculator markup only, preventing block
 * revisions or sanitization from stripping the responsive presentation.
 */
#asher-portfolio-lifecycle {
	padding: 72px 0;
	background: #0b0b0c;
	color: #f5f5f5;
}

#asher-portfolio-lifecycle .asher-portfolio-wrap {
	width: min(1400px, 88%);
	margin: 0 auto;
}

.asher-dashboard-grid {
	display: grid;
	grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.65fr);
	gap: 24px;
	align-items: start;
}

.asher-card {
	min-width: 0;
	overflow: hidden;
	background: #171719;
	border: 1px solid rgba(202, 164, 87, 0.24);
	border-radius: 8px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.asher-card-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.asher-card-sub {
	color: #a9a9ad;
	font-family: Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
}

.asher-summary-body {
	padding: 22px;
}

.asher-summary-top {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.asher-summary-cell {
	min-width: 0;
	padding: 18px;
	background: #101011;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
}

.asher-summary-kicker,
.asher-chart-title,
.asher-insight-kicker {
	color: #caa457;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.35;
	text-transform: uppercase;
}

.asher-summary-value {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 7px;
	margin: 12px 0 8px;
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1;
}

.asher-summary-value small {
	color: #c5c5c7;
	font-family: Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.asher-summary-note,
.asher-insight-note {
	color: #b9b9bd;
	font-size: 13px;
	line-height: 1.55;
}

.asher-donut {
	display: grid;
	width: 126px;
	max-width: 100%;
	aspect-ratio: 1;
	margin: 0 auto;
	place-items: center;
	border-radius: 50%;
	background: conic-gradient(#caa457 0 68%, #303034 68% 100%);
}

.asher-donut::before {
	content: "";
	grid-area: 1 / 1;
	width: 76%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #101011;
}

.asher-donut-center {
	z-index: 1;
	grid-area: 1 / 1;
	text-align: center;
}

.asher-donut-center strong,
.asher-donut-center span {
	display: block;
}

.asher-donut-center strong {
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: 28px;
	line-height: 1;
}

.asher-donut-center span {
	margin-top: 5px;
	color: #b9b9bd;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.asher-risk-track {
	position: relative;
	height: 7px;
	margin: 18px 0 14px;
	overflow: visible;
	border-radius: 99px;
	background: linear-gradient(90deg, #558c58, #caa457 52%, #a8493f);
}

.asher-risk-marker {
	position: absolute;
	top: 50%;
	width: 15px;
	height: 15px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #caa457;
	transform: translate(-50%, -50%);
}

.asher-recommend {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	margin-top: 14px;
}

.asher-recommend-icon {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: rgba(202, 164, 87, 0.16);
	color: #caa457;
	font-size: 23px;
}

.asher-recommend strong {
	display: block;
	margin: 3px 0 7px;
	color: #fff;
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: 27px;
	line-height: 1;
}

.asher-summary-bottom {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.asher-summary-bottom > div {
	min-width: 0;
	padding: 18px;
	background: #101011;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
}

.asher-capital-chart {
	display: flex;
	gap: 18px;
	align-items: end;
	justify-content: space-around;
	min-height: 170px;
	margin-top: 16px;
}

.asher-capital-group {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.asher-stack {
	display: flex;
	width: min(52px, 100%);
	height: 130px;
	flex-direction: column-reverse;
	justify-content: flex-start;
	overflow: hidden;
	border-radius: 4px 4px 0 0;
	background: #29292d;
}

.asher-stack span {
	display: block;
	width: 100%;
	min-height: 3px;
}

.asher-stack .repair {
	background: #6d89a8;
}

.asher-stack .restore {
	background: #caa457;
}

.asher-stack .replace {
	background: #9c4b44;
}

.asher-bar-label {
	color: #d1d1d3;
	font-size: 12px;
	font-weight: 700;
}

.asher-phase-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 16px;
}

.asher-phase {
	min-width: 0;
	padding: 12px 8px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 5px;
	background: #171719;
}

.asher-phase-dot {
	display: grid;
	width: 36px;
	height: 36px;
	margin: 0 auto 8px;
	place-items: center;
	border-radius: 50%;
	background: rgba(202, 164, 87, 0.15);
	color: #caa457;
	font-size: 19px;
}

.asher-phase strong,
.asher-phase span {
	display: block;
}

.asher-phase strong {
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: 14px;
	text-transform: uppercase;
}

.asher-phase span {
	margin-top: 4px;
	color: #aaaab0;
	font-size: 10px;
	line-height: 1.3;
}

.asher-insights-title {
	margin: 30px 0 15px;
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
}

.asher-insights {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.asher-insight {
	display: grid;
	min-width: 0;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 11px;
	padding: 16px;
	background: #171719;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
}

.asher-insight-icon {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 50%;
	background: rgba(202, 164, 87, 0.15);
	color: #caa457;
	font-weight: 800;
}

.asher-insight-value {
	margin: 7px 0 5px;
	color: #fff;
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: 20px;
	line-height: 1.15;
}

.asher-analysis-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-top: 18px;
	padding: 20px 22px;
	background: #caa457;
	color: #111;
	border-radius: 6px;
}

.asher-analysis-cta p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.asher-analysis-cta a {
	flex: 0 0 auto;
	padding: 12px 16px;
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	text-decoration: none;
	text-transform: uppercase;
}

@media (max-width: 1100px) {
	.asher-dashboard-grid {
		grid-template-columns: 1fr;
	}

	.asher-insights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	#asher-portfolio-lifecycle {
		padding: 44px 0;
	}

	#asher-portfolio-lifecycle .asher-portfolio-wrap {
		width: min(100% - 28px, 1400px);
	}

	.asher-dashboard-grid {
		gap: 16px;
	}

	.asher-card-title {
		display: block;
		padding: 17px 16px;
		font-size: 19px;
	}

	.asher-card-sub {
		display: block;
		margin-top: 5px;
	}

	.asher-summary-body {
		padding: 14px;
	}

	.asher-summary-top,
	.asher-summary-bottom,
	.asher-insights {
		grid-template-columns: 1fr;
	}

	.asher-summary-top {
		gap: 10px;
	}

	.asher-summary-cell,
	.asher-summary-bottom > div {
		padding: 16px;
	}

	.asher-summary-value {
		font-size: 38px;
	}

	.asher-donut {
		width: 138px;
	}

	.asher-phase-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.asher-phase {
		padding: 13px 8px;
	}

	.asher-insights-title {
		margin-top: 24px;
		font-size: 21px;
	}

	.asher-insight {
		padding: 15px;
	}

	.asher-analysis-cta {
		align-items: stretch;
		flex-direction: column;
		padding: 18px;
	}

	.asher-analysis-cta a {
		width: 100%;
		text-align: center;
	}
}

/* Recovered lifecycle controls, rendered into the current calculator host. */
.asher-calculator-form {
	padding: 20px;
}

.asher-calculator-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
}

.asher-calculator-field,
.asher-calculator-age-method {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	color: #d8d8dc;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-transform: uppercase;
}

.asher-calculator-field select,
.asher-calculator-field input[type="text"] {
	display: block;
	width: 100%;
	min-height: 46px;
	margin-top: 7px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 4px;
	background: #0b0b0c;
	color: #fff;
	padding: 10px 12px;
	font: 400 14px/1.35 Arial, sans-serif;
	text-transform: none;
}

.asher-calculator-field select:focus-visible,
.asher-calculator-field input:focus-visible,
.asher-calculator-actions button:focus-visible {
	outline: 3px solid #caa457;
	outline-offset: 2px;
}

.asher-calculator-field small {
	display: block;
	margin-top: 6px;
	color: #99999e;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.asher-calculator-age-method legend {
	margin-bottom: 8px;
	color: #d8d8dc;
}

.asher-calculator-age-method label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	color: #c5c5c9;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.asher-calculator-age-method input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #caa457;
}

.asher-calculator-errors {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-left: 4px solid #caa457;
	background: rgba(202, 164, 87, 0.13);
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
}

.asher-calculator-errors[hidden],
.asher-calculator-field[hidden] {
	display: none;
}

.asher-calculator-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 20px;
}

.asher-calculator-actions button {
	min-height: 44px;
	border: 1px solid #caa457;
	background: #caa457;
	color: #111;
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
}

.asher-calculator-actions button[type="reset"] {
	background: transparent;
	color: #fff;
}

.asher-calculator-disclaimer {
	margin: 16px 0 0;
	color: #99999e;
	font-size: 11px;
	line-height: 1.55;
}

/* The current dashboard's right column is not wide enough for four readable
 * cards. Two columns preserve complete words and usable scan order.
 */
.asher-summary-top {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asher-phase-row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asher-phase.is-current {
	border-color: #caa457;
	box-shadow: inset 0 0 0 1px rgba(202, 164, 87, 0.5);
}

.asher-recommend strong,
.asher-summary-value,
.asher-insight-value {
	overflow-wrap: normal;
	word-break: normal;
}

@media (min-width: 1101px) {
	.asher-calculator-actions {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

@media (max-width: 767px) {
	.asher-calculator-form {
		padding: 16px;
	}

	.asher-summary-top,
	.asher-phase-row {
		grid-template-columns: 1fr;
	}

	.asher-summary-cell {
		min-height: 0;
	}
}
