:root {
	--mt-bg: #eeeeee;
	--mt-surface: #ffffff;
	--mt-surface-soft: #f7f7f3;
	--mt-text: #1f2d20;
	--mt-muted: #687168;
	--mt-primary: #203b18;
	--mt-accent: #e3c750;
	--mt-line: #a58a3b;
	--mt-border: #d7ddd2;
	--mt-shadow: 0 18px 45px rgba(32, 59, 24, 0.12);
}

.marko-timeline {
	position: relative;
	width: 100%;
	padding: clamp(28px, 4vw, 54px);
	overflow: hidden;
	border: 1px solid #e1e1e1;
	border-radius: 28px;
	background: var(--mt-bg);
	color: var(--mt-text);
	box-sizing: border-box;
}

.marko-timeline *,
.marko-timeline *::before,
.marko-timeline *::after {
	box-sizing: border-box;
}

.marko-timeline__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1440px;
	margin: 0 auto 18px;
}

.marko-timeline__hint {
	margin: 0;
	color: var(--mt-muted);
	font-size: 0.9rem;
	font-weight: 400;
}

.marko-timeline__controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.marko-timeline__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--mt-border);
	border-radius: 50%;
	background: var(--mt-surface);
	color: var(--mt-primary);
	font: inherit;
	font-size: 1.08rem;
	cursor: pointer;
	transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.marko-timeline__nav:hover,
.marko-timeline__nav:focus-visible {
	border-color: var(--mt-primary);
	background: var(--mt-accent);
	transform: translateY(-1px);
	outline: none;
}

.marko-timeline__status {
	min-width: 82px;
	color: var(--mt-muted);
	font-size: 0.82rem;
	text-align: center;
}

.marko-timeline__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	padding: 18px 0 28px;
	scrollbar-color: rgba(32, 59, 24, 0.32) transparent;
	scrollbar-width: thin;
	scroll-behavior: smooth;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.marko-timeline__viewport:focus-visible {
	outline: 2px solid var(--mt-accent);
	outline-offset: 6px;
	border-radius: 12px;
}

.marko-timeline__viewport::-webkit-scrollbar {
	height: 7px;
}

.marko-timeline__viewport::-webkit-scrollbar-track {
	background: transparent;
}

.marko-timeline__viewport::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(32, 59, 24, 0.28);
}

.marko-timeline__track {
	position: relative;
	display: flex;
	align-items: center;
	gap: 54px;
	min-width: max-content;
	padding: 284px 82px;
}

.marko-timeline__track::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 30px;
	left: 30px;
	height: 2px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--mt-line) 5%,
		var(--mt-line) 95%,
		transparent
	);
}

.marko-timeline__item {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	width: 205px;
	min-width: 205px;
	height: 0;
}

.marko-timeline__marker {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	min-width: 98px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mt-primary);
	font: inherit;
	cursor: pointer;
	transform: translate(-50%, -50%);
}

.marko-timeline__year {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 90px;
	min-height: 38px;
	padding: 5px 15px;
	border: 1px solid rgba(32, 59, 24, 0.35);
	border-radius: 999px;
	background: var(--mt-surface);
	color: var(--mt-primary);
	font-size: 0.78rem;
	font-weight: 650;
	letter-spacing: 0.09em;
	box-shadow: 0 5px 14px rgba(32, 59, 24, 0.06);
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.marko-timeline__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--mt-line);
	font-size: 27px;
	opacity: 0.82;
	transition: transform 220ms ease, color 220ms ease, opacity 220ms ease;
}

.marko-timeline__dot {
	width: 17px;
	height: 17px;
	border: 4px solid var(--mt-surface);
	border-radius: 50%;
	background: var(--mt-accent);
	box-shadow: 0 0 0 7px rgba(32, 59, 24, 0.12);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.marko-timeline__card {
	position: absolute;
	left: 50%;
	width: 205px;
	min-height: 0;
	overflow: hidden;
	border: 1px solid var(--mt-border);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--mt-text);
	box-shadow: 0 10px 26px rgba(32, 59, 24, 0.08);
	opacity: 1;
	filter: none;
	transition:
		width 360ms ease,
		min-height 360ms ease,
		transform 360ms ease,
		box-shadow 240ms ease,
		border-color 240ms ease,
		background-color 240ms ease;
}

.marko-timeline__item--top .marko-timeline__card {
	bottom: 62px;
	transform: translateX(-50%);
}

.marko-timeline__item--bottom .marko-timeline__card {
	top: 62px;
	transform: translateX(-50%);
}

.marko-timeline__media {
	height: 78px;
	overflow: hidden;
	opacity: 1;
	transition: height 360ms ease, opacity 220ms ease;
}

.marko-timeline__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.marko-timeline__card-body {
	padding: 20px;
}

.marko-timeline__eyebrow {
	margin-bottom: 7px;
	color: #708b3e;
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.marko-timeline__title {
	margin: 0 0 9px;
	color: var(--mt-primary);
	font-size: 1.28rem;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.marko-timeline__summary {
	margin: 0;
	color: var(--mt-muted);
	font-size: 0.88rem;
	font-weight: 400;
	line-height: 1.5;
}

.marko-timeline__details {
	display: grid;
	grid-template-rows: 0fr;
	margin-top: 0;
	color: var(--mt-text);
	opacity: 0;
	transition: grid-template-rows 420ms ease, opacity 240ms ease, margin 240ms ease;
}

.marko-timeline__details > * {
	min-height: 0;
	overflow: hidden;
}

.marko-timeline__details p {
	margin: 0.85em 0 0;
	line-height: 1.55;
}

.marko-timeline__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-top: 16px;
	padding: 0 17px;
	border-radius: 999px;
	background: var(--mt-accent);
	color: var(--mt-primary);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}

.marko-timeline__item.is-active {
	z-index: 10;
}

.marko-timeline__item.is-active .marko-timeline__card {
	width: 340px;
	min-height: 0;
	border-color: rgba(32, 59, 24, 0.2);
	background: var(--mt-surface);
	box-shadow: var(--mt-shadow);
}

.marko-timeline__item--top.is-active .marko-timeline__card {
	transform: translate(-50%, -10px);
}

.marko-timeline__item--bottom.is-active .marko-timeline__card {
	transform: translate(-50%, 10px);
}

.marko-timeline__item.is-active .marko-timeline__media {
	height: 190px;
	opacity: 1;
}

.marko-timeline__item.is-active .marko-timeline__details {
	grid-template-rows: 1fr;
	margin-top: 8px;
	opacity: 1;
}

.marko-timeline__item.is-active .marko-timeline__icon {
	color: var(--mt-primary);
	opacity: 1;
	transform: scale(1.12);
}

.marko-timeline__item.is-active .marko-timeline__dot {
	transform: scale(1.12);
	box-shadow: 0 0 0 10px rgba(227, 199, 80, 0.24);
}

.marko-timeline__item.is-active .marko-timeline__year {
	border-color: var(--mt-primary);
	background: var(--mt-primary);
	color: #fff;
}

@media (hover: hover) {
	.marko-timeline__item:not(.is-active):hover .marko-timeline__card {
		border-color: rgba(32, 59, 24, 0.22);
		box-shadow: 0 14px 34px rgba(32, 59, 24, 0.12);
		transform: translateX(-50%) translateY(-3px);
	}

	.marko-timeline__item--bottom:not(.is-active):hover .marko-timeline__card {
		transform: translateX(-50%) translateY(3px);
	}
}

@media (max-width: 767px) {
	.marko-timeline {
		padding: 24px 16px 30px;
		border-radius: 20px;
	}

	.marko-timeline__toolbar {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
		margin-bottom: 18px;
	}

	.marko-timeline__controls {
		width: 100%;
		justify-content: space-between;
	}

	.marko-timeline__hint {
		font-size: 0.82rem;
	}

	.marko-timeline__viewport {
		overflow: visible;
		padding: 0;
	}

	.marko-timeline__track {
		display: block;
		min-width: 0;
		padding: 0;
	}

	.marko-timeline__track::before {
		top: 0;
		right: auto;
		bottom: 0;
		left: 24px;
		width: 2px;
		height: auto;
		background: linear-gradient(
			180deg,
			transparent,
			var(--mt-line) 4%,
			var(--mt-line) 96%,
			transparent
		);
	}

	.marko-timeline__item {
		display: block;
		width: 100%;
		min-width: 0;
		height: auto;
		margin: 0 0 24px;
		padding-left: 64px;
	}

	.marko-timeline__marker {
		top: 0;
		left: 24px;
		flex-direction: row;
		min-width: 0;
		gap: 10px;
		transform: translate(-50%, 0);
	}

	.marko-timeline__icon {
		order: 2;
	}

	.marko-timeline__year {
		order: 3;
		min-width: 0;
		min-height: 32px;
		font-size: 0.7rem;
	}

	.marko-timeline__dot {
		order: 1;
	}

	.marko-timeline__card,
	.marko-timeline__item--top .marko-timeline__card,
	.marko-timeline__item--bottom .marko-timeline__card {
		position: relative;
		top: auto;
		bottom: auto;
		left: auto;
		width: 100%;
		min-height: 0;
		margin-top: 54px;
		transform: none;
	}

	.marko-timeline__item.is-active .marko-timeline__card,
	.marko-timeline__item--top.is-active .marko-timeline__card,
	.marko-timeline__item--bottom.is-active .marko-timeline__card {
		width: 100%;
		min-height: 0;
		transform: none;
	}

	.marko-timeline__item.is-active .marko-timeline__media {
		height: 190px;
	}

	.marko-timeline__item.is-active .marko-timeline__details {
		grid-template-rows: 1fr;
	}

	.marko-timeline__card-body {
		padding: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.marko-timeline *,
	.marko-timeline *::before,
	.marko-timeline *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}


/* Correções de conteúdo e navegação mobile — 1.1.1 */

.marko-timeline__card,
.marko-timeline__item.is-active .marko-timeline__card {
	height: auto;
	max-height: none;
}

.marko-timeline__card-body {
	overflow: visible;
}

.marko-timeline__summary,
.marko-timeline__details,
.marko-timeline__details p {
	overflow-wrap: anywhere;
	word-break: normal;
}

@media (min-width: 768px) {
	.marko-timeline__item.is-active .marko-timeline__card {
		max-height: 500px;
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: rgba(32, 59, 24, 0.28) transparent;
	}

	.marko-timeline__item.is-active .marko-timeline__card::-webkit-scrollbar {
		width: 6px;
	}

	.marko-timeline__item.is-active .marko-timeline__card::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: rgba(32, 59, 24, 0.24);
	}
}

@media (max-width: 767px) {
	.marko-timeline__viewport {
		overflow: visible;
	}

	.marko-timeline__item {
		scroll-margin-top: 110px;
	}

	.marko-timeline__item:not(.is-active) .marko-timeline__details {
		display: none;
	}

	.marko-timeline__item.is-active .marko-timeline__details {
		display: block;
	}

	.marko-timeline__item.is-active .marko-timeline__card {
		max-height: none;
		overflow: visible;
	}

	.marko-timeline__nav {
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}
}

/* Imagem pequena no estado inativo e ampliada no ativo — 1.2.0 */

.marko-timeline__item:not(.is-active) .marko-timeline__media {
	height: 78px;
}

.marko-timeline__item:not(.is-active) .marko-timeline__media img {
	filter: saturate(0.82);
}

.marko-timeline__item.is-active .marko-timeline__media img {
	filter: none;
}

@media (max-width: 767px) {
	.marko-timeline__item:not(.is-active) .marko-timeline__media {
		height: 104px;
	}

	.marko-timeline__item.is-active .marko-timeline__media {
		height: clamp(190px, 56vw, 280px);
	}
}

/* Mobile: remove controles redundantes — 1.2.1 */
@media (max-width: 767px) {
	.marko-timeline__toolbar {
		display: none;
	}

	.marko-timeline {
		padding-top: 18px;
	}
}

/* Corrige recorte do card e da imagem no desktop — 1.2.2 */
@media (min-width: 768px) {
	.marko-timeline__viewport {
		overflow-x: auto;
		overflow-y: hidden;
	}

	.marko-timeline__track {
		/*
		 * Reserva espaço real acima e abaixo da linha central.
		 * O valor anterior comportava apenas os cards compactos.
		 */
		padding-top: 500px;
		padding-bottom: 500px;
	}

	.marko-timeline__item.is-active .marko-timeline__card {
		width: 360px;
		max-height: 430px;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.marko-timeline__item.is-active .marko-timeline__media {
		height: 190px;
		flex: 0 0 auto;
	}

	.marko-timeline__item.is-active .marko-timeline__media img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}

	.marko-timeline__item--top.is-active .marko-timeline__card {
		bottom: 72px;
		transform: translateX(-50%);
	}

	.marko-timeline__item--bottom.is-active .marko-timeline__card {
		top: 72px;
		transform: translateX(-50%);
	}

	.marko-timeline__item:not(.is-active) .marko-timeline__card {
		max-height: 310px;
		overflow: hidden;
	}

	.marko-timeline__item:not(.is-active) .marko-timeline__media {
		display: block;
		height: 78px;
	}

	.marko-timeline__item:not(.is-active) .marko-timeline__media img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}

	.marko-timeline__card-body {
		position: relative;
		z-index: 1;
	}
}



/* Tipografia e imagens mais legíveis — 1.2.3 */
@media (min-width: 768px) {
	.marko-timeline__item {
		width: 240px;
		min-width: 240px;
	}

	.marko-timeline__card,
	.marko-timeline__item:not(.is-active) .marko-timeline__card {
		width: 240px;
	}

	.marko-timeline__item:not(.is-active) .marko-timeline__card {
		max-height: 360px;
	}

	.marko-timeline__item.is-active .marko-timeline__card {
		width: 390px;
		max-height: 500px;
	}

	.marko-timeline__item:not(.is-active) .marko-timeline__media {
		height: 118px;
		background: #fff;
	}

	.marko-timeline__item.is-active .marko-timeline__media {
		height: 220px;
		background: #fff;
	}

	.marko-timeline__item:not(.is-active) .marko-timeline__media img,
	.marko-timeline__item.is-active .marko-timeline__media img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		object-position: center;
		background: #fff;
	}

	.marko-timeline__title {
		font-size: 1.05rem;
		font-weight: 580;
		line-height: 1.22;
		overflow-wrap: anywhere;
	}

	.marko-timeline__item.is-active .marko-timeline__title {
		font-size: 1.55rem;
		font-weight: 620;
		line-height: 1.15;
	}

	.marko-timeline__summary {
		font-size: 0.84rem;
		line-height: 1.48;
	}

	.marko-timeline__item.is-active .marko-timeline__summary {
		font-size: 0.94rem;
		line-height: 1.55;
	}

	.marko-timeline__details {
		font-size: 0.92rem;
		line-height: 1.55;
	}
}

@media (max-width: 767px) {
	.marko-timeline__media,
	.marko-timeline__media img {
		background: #fff;
	}

	.marko-timeline__media img {
		object-fit: contain;
		object-position: center;
	}

	.marko-timeline__item.is-active .marko-timeline__media {
		height: 210px;
	}

	.marko-timeline__title {
		font-size: 1.35rem;
		line-height: 1.18;
	}
}


/* Espaço dinâmico para cards ativos — 1.2.4 */
@media (min-width: 768px) {
	.marko-timeline {
		--mt-space-top: 560px;
		--mt-space-bottom: 560px;
	}

	.marko-timeline__track {
		padding-top: var(--mt-space-top);
		padding-bottom: var(--mt-space-bottom);
		transition: padding-top 280ms ease, padding-bottom 280ms ease;
	}

	.marko-timeline__item.is-active .marko-timeline__card,
	.marko-timeline__item.is-active .marko-timeline__details,
	.marko-timeline__item.is-active .marko-timeline__card-body {
		max-height: none;
		overflow: visible;
	}

	.marko-timeline__viewport {
		padding-bottom: 36px;
	}
}


/* Seleção inicial e altura robusta dos cards — 1.2.5 */
@media (min-width: 768px) {
	.marko-timeline {
		--mt-space-top: 620px;
		--mt-space-bottom: 620px;
	}

	.marko-timeline__track {
		padding-top: var(--mt-space-top);
		padding-bottom: var(--mt-space-bottom);
	}

	.marko-timeline__item.is-active .marko-timeline__card {
		height: auto;
		max-height: none;
		overflow: visible;
	}

	.marko-timeline__item.is-active .marko-timeline__details {
		display: block;
		height: auto;
		max-height: none;
		overflow: visible;
	}

	.marko-timeline__item.is-active .marko-timeline__details > * {
		overflow: visible;
	}

	.marko-timeline__item.is-active .marko-timeline__card-body {
		height: auto;
		max-height: none;
		overflow: visible;
	}
}

.marko-timeline:not(.is-initialized) .marko-timeline__item:first-child {
	z-index: 10;
}

.marko-timeline:not(.is-initialized) .marko-timeline__item:first-child .marko-timeline__card {
	opacity: 1;
}
