/* Testament content pack. Every rule is isolated from the base JFEA template. */
.jfea-site .jfea-content-pack-testamente {
	--jfea-pack-paper-light: #fbf9f4;
	--jfea-pack-muted: #5f625f;
	--jfea-pack-green: #315f4b;
	--jfea-pack-yellow: #8a681f;
	color: var(--jfea-ink);
}

.jfea-site .jfea-content-pack-testamente a:focus-visible,
.jfea-site .jfea-content-pack-testamente button:focus-visible,
.jfea-site .jfea-content-pack-testamente input:focus-visible,
.jfea-site .jfea-content-pack-testamente summary:focus-visible {
	outline-color: var(--jfea-brass);
}

.jfea-site .jfea-content-pack-testamente .jfea-governance {
	margin: 0 0 34px;
	padding: 16px 0;
	border-top: 1px solid var(--jfea-line);
	border-bottom: 1px solid var(--jfea-line);
	color: var(--jfea-pack-muted);
	font-size: 13px;
	line-height: 1.65;
}

.jfea-site .jfea-content-pack-testamente .jfea-governance p {
	margin: 0;
}

.jfea-site .jfea-content-pack-testamente .jfea-value-grid {
	width: min(100vw - 48px, 1040px);
	margin: 28px 0 38px 50%;
	transform: translateX(-50%);
}

.jfea-site .jfea-content-pack-testamente .jfea-value-grid ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--jfea-line);
	border-bottom: 1px solid var(--jfea-line);
	list-style: none;
}

.jfea-site .jfea-content-pack-testamente .jfea-value-grid li {
	margin: 0;
	padding: 22px;
	border-right: 1px solid var(--jfea-line);
	font-size: 14px;
	line-height: 1.55;
}

.jfea-site .jfea-content-pack-testamente .jfea-value-grid li:last-child {
	border-right: 0;
}

.jfea-site .jfea-content-pack-testamente .jfea-value-grid strong {
	display: block;
	margin-bottom: 7px;
	color: var(--jfea-ink);
	font-family: var(--jfea-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.jfea-site .jfea-content-pack-testamente .jfea-process-map {
	width: min(100vw - 48px, 1100px);
	margin: 36px 0 42px 50%;
	transform: translateX(-50%);
}

.jfea-site .jfea-content-pack-testamente .jfea-process-map ol {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--jfea-line);
	border-bottom: 1px solid var(--jfea-line);
	list-style: none;
	counter-reset: jfea-pack-step;
}

.jfea-site .jfea-content-pack-testamente .jfea-process-map li {
	position: relative;
	margin: 0;
	padding: 66px 18px 22px;
	border-left: 1px solid var(--jfea-line);
	counter-increment: jfea-pack-step;
	font-size: 13px;
	line-height: 1.5;
}

.jfea-site .jfea-content-pack-testamente .jfea-process-map li:last-child {
	border-right: 1px solid var(--jfea-line);
}

.jfea-site .jfea-content-pack-testamente .jfea-process-map li::before {
	position: absolute;
	top: 15px;
	left: 18px;
	color: var(--jfea-oxblood);
	content: "0" counter(jfea-pack-step);
	font-family: var(--jfea-serif);
	font-size: 29px;
	line-height: 1;
}

.jfea-site .jfea-content-pack-testamente .jfea-four-r {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 32px 0;
	background: var(--jfea-line);
	border: 1px solid var(--jfea-line);
}

.jfea-site .jfea-content-pack-testamente .jfea-four-r > section {
	padding: 28px;
	background: var(--jfea-pack-paper-light);
}

.jfea-site .jfea-content-pack-testamente .jfea-four-r h3 {
	margin: 0 0 12px;
	color: var(--jfea-oxblood);
}

.jfea-site .jfea-content-pack-testamente .jfea-four-r p {
	margin: 0;
	font-size: 15px;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-cta {
	margin: 34px 0;
	padding: 26px 28px;
	border-left: 4px solid var(--jfea-brass);
	background: var(--jfea-pack-paper-light);
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-cta h3 {
	margin-top: 0;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-cta p:last-child {
	margin-bottom: 0;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-cta-inline {
	background: var(--jfea-ink);
	color: #fff;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-cta-inline h3,
.jfea-site .jfea-content-pack-testamente .jfea-pack-cta-inline strong {
	color: #fff;
}

.jfea-site .jfea-content-pack-testamente a.jfea-button-secondary,
.jfea-site .jfea-content-pack-testamente a.jfea-button-secondary:visited {
	border-color: var(--jfea-brass);
	background: transparent;
	color: #d3b06d !important;
}

.jfea-site .jfea-content-pack-testamente a.jfea-button-secondary:hover {
	border-color: #fff;
	background: #fff;
	color: var(--jfea-ink) !important;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz {
	width: min(100vw - 48px, 1040px);
	margin: 34px 0 42px 50%;
	padding: 30px 34px;
	transform: translateX(-50%);
	border-top: 3px solid var(--jfea-ink);
	border-bottom: 3px solid var(--jfea-ink);
	background: var(--jfea-pack-paper-light);
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz fieldset {
	margin: 0;
	padding: 19px 0;
	border: 0;
	border-bottom: 1px solid var(--jfea-line);
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz legend {
	width: 100%;
	margin-bottom: 11px;
	color: var(--jfea-ink);
	font-family: var(--jfea-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz-options {
	display: flex;
	flex-wrap: wrap;
	gap: 9px 22px;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz-options label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	cursor: pointer;
	font-size: 15px;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz-submit {
	margin-top: 22px;
	cursor: pointer;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz-result {
	margin-top: 20px;
	padding: 17px 19px;
	border-left: 4px solid var(--jfea-line);
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz-result[data-level="red"] {
	border-color: var(--jfea-oxblood);
	background: #f5e8e6;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz-result[data-level="yellow"] {
	border-color: var(--jfea-pack-yellow);
	background: #f6f0df;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz-result[data-level="green"] {
	border-color: var(--jfea-pack-green);
	background: #e9f1ec;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-mistakes,
.jfea-site .jfea-content-pack-testamente .jfea-pack-faq {
	margin: 28px 0 44px;
	border-top: 1px solid var(--jfea-line);
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-mistakes details,
.jfea-site .jfea-content-pack-testamente .jfea-pack-faq details {
	margin: 0;
	border-bottom: 1px solid var(--jfea-line);
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-mistakes summary,
.jfea-site .jfea-content-pack-testamente .jfea-pack-faq summary {
	position: relative;
	padding: 18px 44px 18px 2px;
	cursor: pointer;
	color: var(--jfea-ink);
	font-family: var(--jfea-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-mistakes summary::after,
.jfea-site .jfea-content-pack-testamente .jfea-pack-faq summary::after {
	position: absolute;
	top: 16px;
	right: 8px;
	color: var(--jfea-oxblood);
	content: "+";
	font-family: var(--jfea-sans);
	font-size: 24px;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-mistakes details[open] summary::after,
.jfea-site .jfea-content-pack-testamente .jfea-pack-faq details[open] summary::after {
	content: "−";
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-mistakes details > p,
.jfea-site .jfea-content-pack-testamente .jfea-pack-faq details > p {
	margin: 0;
	padding: 0 44px 18px 2px;
	color: var(--jfea-pack-muted);
	font-size: 15px;
}

.jfea-site .jfea-content-pack-testamente .jfea-howto ol {
	margin: 32px 0;
	padding: 0;
	list-style: none;
	counter-reset: jfea-pack-howto;
}

.jfea-site .jfea-content-pack-testamente .jfea-howto li {
	position: relative;
	margin: 0 0 0 21px;
	padding: 0 0 29px 41px;
	border-left: 1px solid var(--jfea-line);
	counter-increment: jfea-pack-howto;
}

.jfea-site .jfea-content-pack-testamente .jfea-howto li::before {
	position: absolute;
	top: -3px;
	left: -21px;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	background: var(--jfea-ink);
	color: #fff;
	content: counter(jfea-pack-howto);
	font-size: 13px;
	font-weight: 800;
}

.jfea-site .jfea-content-pack-testamente .jfea-consequence-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	width: min(100vw - 48px, 1040px);
	margin: 34px 0 42px 50%;
	transform: translateX(-50%);
	background: var(--jfea-line);
	border: 1px solid var(--jfea-line);
}

.jfea-site .jfea-content-pack-testamente .jfea-consequence-grid > section {
	padding: 26px;
	border-top: 4px solid var(--jfea-oxblood);
	background: var(--jfea-pack-paper-light);
}

.jfea-site .jfea-content-pack-testamente .jfea-consequence-grid h3 {
	margin: 0 0 13px;
	font-size: 23px;
}

.jfea-site .jfea-content-pack-testamente .jfea-consequence-grid p {
	margin: 0;
	font-size: 14px;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-cta-media {
	width: min(100vw - 48px, 1100px);
	margin: 64px 0 0 50%;
	transform: translateX(-50%);
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-cta-image {
	display: block;
	width: 100%;
	height: auto;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-final-cta {
	width: min(100vw - 48px, 1100px);
	margin: 0 0 54px 50%;
	padding: clamp(34px, 6vw, 72px);
	transform: translateX(-50%);
	background: var(--jfea-ink);
	color: #fff;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-final-cta h2 {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	color: #fff;
}

.jfea-site .jfea-content-pack-testamente .jfea-pack-final-cta a:not(.jfea-button) {
	color: #d3b06d;
}

@media (max-width: 900px) {
	.jfea-site .jfea-content-pack-testamente .jfea-value-grid ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jfea-site .jfea-content-pack-testamente .jfea-value-grid li:nth-child(2) {
		border-right: 0;
	}

	.jfea-site .jfea-content-pack-testamente .jfea-value-grid li:nth-child(-n + 2) {
		border-bottom: 1px solid var(--jfea-line);
	}

	.jfea-site .jfea-content-pack-testamente .jfea-process-map ol,
	.jfea-site .jfea-content-pack-testamente .jfea-consequence-grid {
		grid-template-columns: 1fr;
	}

	.jfea-site .jfea-content-pack-testamente .jfea-process-map li,
	.jfea-site .jfea-content-pack-testamente .jfea-process-map li:last-child {
		border-right: 0;
		border-bottom: 1px solid var(--jfea-line);
	}

	.jfea-site .jfea-content-pack-testamente .jfea-process-map li:last-child {
		border-bottom: 0;
	}

	.jfea-site .jfea-content-pack-testamente table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 600px) {
	.jfea-site .jfea-content-pack-testamente .jfea-value-grid,
	.jfea-site .jfea-content-pack-testamente .jfea-process-map,
	.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz,
	.jfea-site .jfea-content-pack-testamente .jfea-consequence-grid,
	.jfea-site .jfea-content-pack-testamente .jfea-pack-cta-media,
	.jfea-site .jfea-content-pack-testamente .jfea-pack-final-cta {
		width: calc(100vw - 32px);
	}

	.jfea-site .jfea-content-pack-testamente .jfea-value-grid ul,
	.jfea-site .jfea-content-pack-testamente .jfea-four-r {
		grid-template-columns: 1fr;
	}

	.jfea-site .jfea-content-pack-testamente .jfea-value-grid li,
	.jfea-site .jfea-content-pack-testamente .jfea-value-grid li:nth-child(2) {
		border-right: 0;
		border-bottom: 1px solid var(--jfea-line);
	}

	.jfea-site .jfea-content-pack-testamente .jfea-value-grid li:last-child {
		border-bottom: 0;
	}

	.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz {
		padding: 22px 20px;
	}

	.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz-options {
		display: grid;
		gap: 8px;
	}

	.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz-options label {
		min-height: 40px;
		padding: 5px 0;
	}

	.jfea-site .jfea-content-pack-testamente a.jfea-button {
		width: 100%;
		text-align: center;
	}
}

@media print {
	.jfea-site .jfea-content-pack-testamente .jfea-pack-quiz-submit,
	.jfea-site .jfea-content-pack-testamente .jfea-pack-cta,
	.jfea-site .jfea-content-pack-testamente .jfea-pack-final-cta {
		display: none !important;
	}

	.jfea-site .jfea-content-pack-testamente details > * {
		display: block !important;
	}
}
