/* Página de serviço */

.mf-svcpage__head {
	padding-block: clamp(28px, 4vw, 56px) clamp(32px, 4.5vw, 56px);
	border-bottom: 1px solid var(--mf-line);
}

.mf-svcpage__headrow {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 48px;
}

.mf-svcpage__headrow .mf-crumbs {
	padding-bottom: 8px;
}

.mf-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	color: var(--mf-muted);
	font-size: 0.9375rem;
}

.mf-crumbs li:not(:last-child)::after {
	content: "/";
	margin-inline: 10px;
	color: #9fb0c8;
}

.mf-crumbs a {
	display: inline-block;
	padding-block: 6px;
	color: var(--mf-muted);
	text-decoration: none;
}

.mf-crumbs a:hover {
	color: var(--mf-navy);
	text-decoration: underline;
}

.mf-crumbs [aria-current] {
	display: inline-block;
	padding-block: 6px;
	color: var(--mf-ink);
	font-weight: 500;
}

.mf-svcpage__title {
	order: -1;
	max-width: 18ch;
	color: var(--mf-ink);
	font-size: clamp(2.5rem, 5.5vw, 4.5rem);
	font-weight: 800;
	font-stretch: 92%;
	line-height: 1;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.mf-svcpage__grid {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
	padding-block: clamp(40px, 5vw, 72px) var(--mf-section);
}

/* Conteúdo vindo do editor */

.mf-prose {
	max-width: 68ch;
	color: var(--mf-text);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.mf-prose [style*="justify"] {
	text-align: left !important;
}

.mf-prose > * + * {
	margin-top: 20px;
}

.mf-prose > p:first-child {
	color: var(--mf-ink);
	font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
	line-height: 1.55;
}

.mf-prose > p:not(:first-child) {
	margin-top: clamp(36px, 4vw, 48px);
	color: var(--mf-ink);
	font-weight: 600;
}

.mf-prose ul,
.mf-prose ol {
	border-top: 1px solid var(--mf-line);
}

.mf-prose > ul,
.mf-prose > ol {
	margin-top: 16px;
}

.mf-prose li {
	position: relative;
	padding: 14px 0 14px 28px;
	border-bottom: 1px solid var(--mf-line);
}

.mf-prose ul > li::before {
	content: "";
	position: absolute;
	top: calc(14px + 0.85em - 1px);
	left: 2px;
	width: 12px;
	height: 2px;
	background: var(--mf-navy);
}

.mf-prose ol {
	counter-reset: mf-ol;
}

.mf-prose ol > li::before {
	counter-increment: mf-ol;
	content: counter(mf-ol);
	position: absolute;
	top: 14px;
	left: 0;
	color: var(--mf-navy);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.mf-prose a {
	color: var(--mf-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mf-prose h2,
.mf-prose h3 {
	margin-top: clamp(36px, 4vw, 48px);
	color: var(--mf-ink);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.25;
}

.mf-prose img {
	height: auto;
}

/* Lateral */

.mf-svcpage__aside {
	position: sticky;
	top: calc(var(--mf-header-h) + 24px);
	display: grid;
	gap: 32px;
}

.mf-svcpage__cta {
	display: grid;
	gap: 8px;
}

.mf-svcpage__cta .mf-btn {
	width: 100%;
	border: 1.5px solid var(--mf-navy);
}

.mf-svcpage__cta .mf-btn--ghost {
	background: #fff;
}

.mf-svcpage__cta .mf-btn--ghost:hover {
	background: var(--mf-sky-100);
}

.mf-svcnav__title {
	padding-bottom: 12px;
	color: var(--mf-ink);
	font-size: 1rem;
	font-weight: 700;
}

.mf-svcnav ul {
	display: grid;
	gap: 6px;
}

.mf-svcnav a {
	display: block;
	padding: 12px 16px;
	border: 1px solid var(--mf-line);
	border-radius: 2px;
	color: var(--mf-text);
	font-size: 0.9375rem;
	line-height: 1.35;
	text-decoration: none;
	transition: border-color 0.2s var(--mf-ease), background-color 0.2s var(--mf-ease), color 0.2s var(--mf-ease);
}

.mf-svcnav a:hover {
	border-color: var(--mf-navy);
	background: var(--mf-sky-100);
	color: var(--mf-navy);
}

.mf-svcnav a[aria-current] {
	border-color: var(--mf-navy);
	background: var(--mf-navy);
	color: #fff;
	font-weight: 700;
}

.mf-svcnav a:focus-visible,
.mf-svcpage__cta .mf-btn:focus-visible {
	outline: 2px solid var(--mf-navy);
	outline-offset: 2px;
}

/* Obras relacionadas */

.mf-related {
	padding-top: 0;
}

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

.mf-related__link {
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--mf-ink) !important;
	text-decoration: none;
}

.mf-related__frame {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--mf-ground-2);
}

.mf-related__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.mf-related__title {
	font-size: 0.9875rem;
	font-weight: 600;
	line-height: 1.35;
}

.mf-related__link:hover .mf-related__title {
	color: var(--mf-navy);
	text-decoration: underline;
}

@media (max-width: 960px) {
	.mf-svcpage__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mf-svcpage__aside {
		display: contents;
	}

	.mf-svcpage__cta {
		order: -1;
		grid-template-columns: repeat(2, minmax(0, max-content));
	}

	.mf-svcpage__cta .mf-btn {
		width: auto;
	}
}

@media (max-width: 560px) {
	.mf-svcpage__cta {
		grid-template-columns: minmax(0, 1fr);
	}

	.mf-svcpage__cta .mf-btn {
		width: 100%;
	}
}

@media (max-width: 720px) {
	.mf-related__list {
		grid-template-columns: none;
		grid-auto-columns: 74%;
		grid-auto-flow: column;
		gap: 16px;
		margin-right: calc(-1 * var(--mf-gutter));
		padding-right: var(--mf-gutter);
		padding-bottom: 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
	}

	.mf-related__item {
		scroll-snap-align: start;
	}
}
