/* Long-Term Holding Model */
.fp-interactive-wrapper.fp-tool-root--long-term-holding-model {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
}

.fp-lth-scope {
	--fp-gold: #b87f0d;
	--fp-navy: #0c0c30;
	--border-light: #e6e6e3;
	--fp-bg-light: #fcfcfc;
	--fp-safe: #16a34a;
	--fp-danger: #dc2626;
}

.fp-lth-scope .fpp-section-wrapper {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.fp-lth-scope .fpp-sheet-auditor {
	background: #fff;
	border-radius: 4px;
	box-shadow: var(--fpp-card-shadow, 0 12px 40px rgba(0, 0, 0, 0.06));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	overflow-x: clip;
	border: 1px solid var(--border-light, #e6e6e3);
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--fp-navy, #0c0c30);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	container-type: inline-size;
	container-name: fp-lth-auditor;
}

.fp-lth-scope .fpp-sheet-auditor * {
	box-sizing: border-box;
}

/* Header (navy band + CTA) */
.fp-lth-scope .fpp-sheet-auditor .fpp-sheet-merged-header {
	position: relative;
	z-index: 20;
	background: var(--fp-navy, #0c0c30);
	color: #fff;
	padding: 25px 30px;
	border-bottom: 4px solid var(--fp-gold, #b87f0d);
}

.fp-lth-scope .fpp-sheet-merged-header--cta {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 15px;
}

.fp-lth-scope .fpp-header-titles {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
}

.fp-lth-scope .fpp-sheet-auditor .fpp-sheet-merged-header h1 {
	font-family: 'Vollkorn', serif;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	margin: 0;
	line-height: 1.1;
	color: #fff;
	text-transform: none !important;
	word-break: break-word;
}

.fp-lth-scope .fpp-protocol-line {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
	line-height: 1.5;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.fp-lth-scope .fpp-btn-explore {
	flex: 0 1 auto;
	align-self: center;
	max-width: 100%;
	margin: 0;
	background: var(--fp-gold, #b87f0d);
	color: var(--fp-navy, #0c0c30);
	padding: 12px 24px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1px;
	line-height: 1.3;
	transition: 0.3s ease;
	border: 1px solid transparent;
	text-align: center;
	white-space: normal;
	overflow-wrap: break-word;
}

.fp-lth-scope .fpp-btn-explore:hover,
.fp-lth-scope .fpp-btn-explore:focus {
	background: #fff;
	color: var(--fp-navy, #0c0c30);
	box-shadow: 0 4px 15px rgba(184, 127, 13, 0.4);
}

/* Inputs */
.fp-lth-scope .fpp-lth-inputs {
	padding: 40px;
	background: var(--fp-bg-light, #fcfcfc);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	border-bottom: 1px solid var(--border-light, #e6e6e3);
}

.fp-lth-scope .fpp-lth-inputs-block {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.fp-lth-scope .fpp-lth-subhead {
	font-family: 'Vollkorn', serif;
	font-size: 1.3rem;
	color: var(--fp-navy, #0c0c30);
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--border-light, #e6e6e3);
	display: block;
	font-weight: 600;
}

.fp-lth-scope .fpp-lth-input-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.fp-lth-scope .fpp-lth-input-group {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fp-lth-scope .fpp-lth-input-group label {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--fp-navy, #0c0c30);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	line-height: 1.3;
}

.fp-lth-scope .fpp-lth-input-row {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 4px;
	overflow: hidden;
	transition: 0.3s border, 0.3s box-shadow;
}

.fp-lth-scope .fpp-lth-input-row:focus-within {
	border-color: var(--fp-gold, #b87f0d);
	box-shadow: 0 0 0 3px rgba(184, 127, 13, 0.1);
}

.fp-lth-scope .fpp-lth-input-prefix,
.fp-lth-scope .fpp-lth-input-suffix {
	background: var(--fp-bg-light, #fcfcfc);
	color: #666;
	padding: 12px 10px;
	font-weight: 600;
	font-size: 0.85rem;
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 2.75rem;
}

.fp-lth-scope .fpp-lth-input-prefix {
	border-right: 1px solid var(--border-light, #e6e6e3);
}

.fp-lth-scope .fpp-lth-input-suffix {
	border-left: 1px solid var(--border-light, #e6e6e3);
}

.fp-lth-scope .fpp-lth-input-row input {
	flex: 1;
	border: none;
	padding: 12px 15px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 1rem;
	color: var(--fp-navy, #0c0c30);
	font-weight: 600;
	width: 100%;
	outline: none;
	min-width: 0;
	text-align: right;
	-moz-appearance: textfield;
	background: #fff;
}

.fp-lth-scope .fpp-lth-input-row input::-webkit-outer-spin-button,
.fp-lth-scope .fpp-lth-input-row input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fp-lth-scope .fpp-lth-note,
.fp-lth-scope .fpp-lth-hint {
	font-size: 0.75rem;
	color: #666;
	line-height: 1.4;
	display: block;
}

.fp-lth-scope .fpp-lth-hint {
	margin-top: 6px;
}

/* Dashboard */
.fp-lth-scope .fpp-lth-dashboard {
	padding: 40px;
	background: #fff;
}

.fp-lth-scope .fpp-lth-dash-title {
	font-family: 'Vollkorn', serif;
	font-size: 1.6rem;
	color: var(--fp-navy, #0c0c30);
	margin: 0 0 30px;
	text-align: center;
}

.fp-lth-scope .fpp-lth-milestone-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.fp-lth-scope .fpp-lth-milestone-card {
	background: #fff;
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	min-width: 0;
}

.fp-lth-scope .fpp-lth-milestone-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.fp-lth-scope .fpp-lth-milestone-header {
	background: var(--fp-navy, #0c0c30);
	color: #fff;
	padding: 15px 20px;
	text-align: center;
	font-family: 'Vollkorn', serif;
	font-size: 1.2rem;
	font-weight: 700;
	border-bottom: 3px solid var(--fp-gold, #b87f0d);
}

.fp-lth-scope .fpp-lth-milestone-card--final .fpp-lth-milestone-header {
	background: var(--fp-gold, #b87f0d);
	color: var(--fp-navy, #0c0c30);
	border-bottom-color: var(--fp-navy, #0c0c30);
}

.fp-lth-scope .fpp-lth-milestone-body {
	padding: 20px;
}

.fp-lth-scope .fpp-lth-metric-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
	font-size: 0.9rem;
	color: #444;
	gap: 10px;
}

.fp-lth-scope .fpp-lth-metric-row span:last-child {
	font-family: 'Vollkorn', serif;
	font-weight: 700;
	color: var(--fp-navy, #0c0c30);
	text-align: right;
	flex-shrink: 0;
}

.fp-lth-scope .fpp-lth-metric-debt {
	color: var(--fp-danger, #dc2626) !important;
}

.fp-lth-scope .fpp-lth-metric-debt.is-clear {
	color: var(--fp-safe, #16a34a) !important;
}

.fp-lth-scope .fpp-lth-metric-divider {
	height: 1px;
	background: var(--border-light, #e6e6e3);
	margin: 15px 0;
}

.fp-lth-scope .fpp-lth-metric-total {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 2px solid var(--fp-gold, #b87f0d);
}

.fp-lth-scope .fpp-lth-metric-total-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	color: #666;
	margin-bottom: 5px;
}

.fp-lth-scope .fpp-lth-metric-total-value {
	font-family: 'Vollkorn', serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--fp-gold, #b87f0d);
}

/* Action footer (navy band) */
.fp-lth-scope .fpp-sheet-auditor .fpp-action-footer {
	padding: 30px;
	background: var(--fp-navy, #0c0c30);
	display: flex;
	flex-direction: column;
	align-items: center;
	border-top: 4px solid var(--fp-gold, #b87f0d);
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	margin-top: 0;
	flex-shrink: 0;
	border-radius: 0 0 4px 4px;
}

.fp-lth-scope .fpp-action-footer h3,
.fp-lth-scope .fpp-action-footer__desc {
	display: none !important;
}

.fp-lth-scope .fpp-action-buttons-wrap {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	max-width: 720px;
}

.fp-lth-scope .fpp-action-footer .fpp-btn-vault {
	padding: 12px 16px;
	border-radius: 4px;
	font-weight: 700;
	text-transform: uppercase;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-size: 0.75rem;
	gap: 8px;
	cursor: pointer;
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	font-family: 'IBM Plex Sans', sans-serif;
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
}

.fp-lth-scope .fpp-action-footer .fpp-btn-vault svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.fp-lth-scope .fpp-action-footer .fpp-btn-vault.primary {
	background: var(--fp-gold, #b87f0d);
	color: var(--fp-navy, #0c0c30);
	border-color: var(--fp-gold, #b87f0d);
}

.fp-lth-scope .fpp-action-footer .fpp-btn-vault.primary:hover {
	background: #d4a017;
	border-color: #d4a017;
}

.fp-lth-scope .fpp-action-footer .fpp-btn-vault:not(.primary):hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Container query responsiveness */
@container fp-lth-auditor (max-width: 992px) {
	.fp-lth-scope .fpp-lth-inputs {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.fp-lth-scope .fpp-lth-milestone-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@container fp-lth-auditor (max-width: 560px) {
	.fp-lth-scope .fpp-lth-milestone-grid {
		grid-template-columns: 1fr;
	}
}

/* Mobile fallback (no container query support) */
@media (max-width: 992px) {
	.fp-lth-scope .fpp-lth-inputs {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 30px 20px;
	}

	.fp-lth-scope .fpp-lth-dashboard {
		padding: 30px 20px;
	}

	.fp-lth-scope .fpp-lth-milestone-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.fp-lth-scope .fpp-sheet-auditor .fpp-sheet-merged-header {
		padding: 25px 20px;
	}

	.fp-lth-scope .fpp-sheet-merged-header--cta {
		flex-direction: column;
		align-items: stretch;
	}

	.fp-lth-scope .fpp-btn-explore {
		align-self: stretch;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.fp-lth-scope .fpp-lth-milestone-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.fp-lth-scope .fpp-action-footer .fpp-btn-vault {
		font-size: 0.65rem;
		padding: 10px 8px;
		min-height: 44px;
		white-space: normal;
		line-height: 1.2;
	}
}
