.tjmmg-timeline {
	--ldt-bg: #e9f1f4;
	--ldt-surface: #ffffff;
	--ldt-text: #1e293b;
	--ldt-muted: #64748b;
	--ldt-line: #a7c4d1;
	--ldt-highlight: #495962;
	--ldt-blue: #467a92;
	--ldt-sedes: #e74c3c;
	--ldt-legislacao: #f39c12;
	--ldt-institucional: #27ae60;
	--ldt-tecnologia: #3498db;
	--ldt-radius: 8px;

	--ldt-media-width: 225px;
	--ldt-media-ratio: 4 / 3;
	--ldt-media-background: linear-gradient(135deg, #f8fafc 0%, #eaf1f4 100%);
	
	color: var(--ldt-text);
	display: flex;
	flex-direction: column;
	font-family: "Montserrat", Arial, sans-serif;
	gap: 34px;
	position: relative;
}

.tjmmg-timeline,
.tjmmg-timeline * {
	box-sizing: border-box;
}

.tjmmg-timeline button,
.tjmmg-timeline input,
.tjmmg-timeline select {
	font-family: inherit;
}

.tjmmg-timeline .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.tjmmg-timeline__header {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.tjmmg-timeline__stats {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tjmmg-timeline__stat {
	--stat-color: var(--ldt-highlight);
	align-items: center;
	background: #f8fafc;
	border: 1px solid var(--stat-color);
	border-radius: 6px;
	color: var(--ldt-highlight);
	display: flex;
	gap: 12px;
	min-height: 72px;
	padding: 12px 14px;
}

button.tjmmg-timeline__stat {
	appearance: none;
	cursor: pointer;
	font: inherit;
	text-align: left;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	width: 100%;
}

button.tjmmg-timeline__stat:hover,
button.tjmmg-timeline__stat:focus,
button.tjmmg-timeline__stat:focus-visible {
	background: var(--ldt-surface);
	border-color: var(--stat-color);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	outline: 0;
	transform: translateY(-1px);
}

button.tjmmg-timeline__stat.is-active {
	background: var(--ldt-surface);
	box-shadow: 0 10px 22px rgba(73, 89, 98, 0.14);
	border-top-width: 4px;
}

.tjmmg-timeline__stat--years {
	--stat-color: var(--ldt-blue);
}

.tjmmg-timeline__stat--sedes {
	--stat-color: var(--ldt-sedes);
}

.tjmmg-timeline__stat--legislacao {
	--stat-color: var(--ldt-legislacao);
}

.tjmmg-timeline__stat--institucional {
	--stat-color: var(--ldt-institucional);
}

.tjmmg-timeline__stat--tecnologia,
.tjmmg-timeline__stat--tecnologica {
	--stat-color: var(--ldt-tecnologia);
}

.tjmmg-timeline__stat-icon {
	align-items: center;
	background: var(--stat-color);
	border-radius: 6px;
	color: var(--ldt-surface);
	display: inline-flex;
	flex: 0 0 36px;
	font-size: 1.05rem;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.tjmmg-timeline__stat-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}

.tjmmg-timeline__stat-text strong {
	color: var(--ldt-highlight);
	font-size: 1.2rem;
	line-height: 1;
}

.tjmmg-timeline__stat-text span {
	color: var(--stat-color);
	font-size: 0.76rem;
	font-weight: 600;
}

.tjmmg-timeline__search-row {
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
}

.tjmmg-timeline__search {
	align-items: center;
	background: var(--ldt-surface);
	border: 1px solid var(--ldt-line);
	border-radius: 4px;
	color: var(--ldt-highlight);
	display: flex;
	gap: 12px;
	padding: 0;
	position: relative;
}

.tjmmg-timeline__search:focus-within {
	border-color: var(--ldt-blue);
	box-shadow: 0 0 0 3px rgba(78, 136, 163, 0.15);
}

.tjmmg-timeline__search input {
	background: transparent;
	border: 0 !important;
	color: var(--ldt-text);
	flex: 1;
	font-size: 1rem;
	min-width: 0;
	outline: 0 !important;
	padding: 8px 14px;
}

.tjmmg-timeline__search i {
	position: absolute;
	right: 14px;
}

.tjmmg-timeline__summary-button,
.tjmmg-timeline__filters button,
.tjmmg-timeline__modal-actions button,
.tjmmg-timeline__show-all {
	align-items: center;
	border: 1px solid var(--ldt-line);
	cursor: pointer;
	display: inline-flex;
	font-weight: 500;
	font-size: 0.9rem;
	justify-content: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tjmmg-timeline__summary-button {
	background: var(--ldt-blue);
	border-color: var(--ldt-blue);
	border-radius: 4px;
	color: var(--ldt-surface);
	gap: 9px;
	padding: 8px 14px;
}

.tjmmg-timeline__summary-button:hover,
.tjmmg-timeline__summary-button:focus-visible {
	background: var(--ldt-highlight);
	border-color: var(--ldt-highlight);
}

.tjmmg-timeline__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.tjmmg-timeline__filters button {
	--theme-color: var(--ldt-highlight);
	background: var(--ldt-surface);
	border-radius: 999px;
	color: var(--ldt-highlight);
	gap: 8px;
	line-height: 1;
	padding: 5px 6px 5px 12px;
}

.tjmmg-timeline__filters button:hover,
.tjmmg-timeline__filters button:focus-visible {
	border-color: var(--theme-color);
	color: var(--theme-color);
}

.tjmmg-timeline__filters button.is-active {
	background: var(--theme-color);
	border-color: var(--theme-color);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.16);
	color: var(--ldt-surface);
}

.tjmmg-timeline__filter-count {
	align-items: center;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 50%;
	display: inline-flex;
	font-size: 0.7rem;
	height: 24px;
	justify-content: center;
	width: 24px;
}

.tjmmg-timeline__filters button.is-active .tjmmg-timeline__filter-count {
	background: rgba(255, 255, 255, 0.18);
}

.tjmmg-timeline__mobile-filter {
	display: none;
}

.tjmmg-timeline__mobile-filter select,
.tjmmg-timeline__summary-select select {
	appearance: none;
	background: var(--ldt-surface);
	border: 1px solid var(--ldt-line);
	border-radius: 4px;
	color: var(--ldt-highlight);
	font-size: 0.95rem;
	font-weight: 700;
	padding: 11px 42px 11px 14px;
	width: 100%;
}

.tjmmg-timeline__stage {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 208.75px;
}

.tjmmg-timeline__empty {
	color: var(--ldt-muted);
	font-size: 1rem;
	font-weight: 600;
	padding: 40px 12px;
	text-align: center;
	width: 100%;
}

.tjmmg-timeline__card {
	--theme-color: var(--ldt-highlight);
	animation: tjmmgTimelineCardEnter 0.35s ease forwards;
	background: var(--ldt-surface);
	border-radius: var(--ldt-radius);
	box-shadow: 0 15px 30px rgba(73, 89, 98, 0.28);
	color: var(--ldt-highlight);
	display: flex;
	gap: 20px;
	height: 208.75px;
	min-height: 208.75px;
	opacity: 0;
	padding: 20px;
	position: relative;
	transform: translateY(14px);
	width: min(100%, 980px);
}

@keyframes tjmmgTimelineCardEnter {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tjmmg-timeline__card-media,
.tjmmg-timeline__grouped-event-media {
	align-items: center;
	aspect-ratio: var(--ldt-media-ratio);
	background: var(--ldt-media-background);
	border-radius: 6px;
	display: flex;
	flex: 0 0 var(--ldt-media-width);
	justify-content: center;
	max-width: var(--ldt-media-width);
	min-width: var(--ldt-media-width);
	overflow: hidden;
	position: relative;
	width: var(--ldt-media-width);
}

.tjmmg-timeline__card-media {
	align-self: center;
}

.tjmmg-timeline__grouped-event-media {
	align-self: flex-start;
}

.tjmmg-timeline__card-media::after,
.tjmmg-timeline__grouped-event-media::after {
	background: rgba(0, 0, 0, 0.05);
	border-radius: inherit;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.tjmmg-timeline__media-background {
	border-radius: inherit;
	filter: blur(8px) saturate(0.86);
	height: calc(100% + 32px);
	inset: -16px;
	max-height: none;
	max-width: none;
	object-fit: cover;
	object-position: center;
	opacity: 0.48;
	pointer-events: none;
	position: absolute;
	width: calc(100% + 32px);
	z-index: 0;
}

.tjmmg-timeline__media-image {
	border-radius: inherit;
	display: block;
	height: 100%;
	max-height: none;
	max-width: none;
	object-fit: contain;
	object-position: center;
	opacity: 0;
	position: relative;
	transition: opacity 0.25s ease;
	width: 100%;
	z-index: 1;
}

.tjmmg-timeline__media-image.is-loaded {
	opacity: 1;
}

.tjmmg-timeline__card-placeholder,
.tjmmg-timeline__grouped-event-media .tjmmg-timeline__card-placeholder {
	align-items: center;
	color: var(--theme-color);
	display: flex;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	height: 100%;
	justify-content: center;
	min-height: 0;
	position: relative;
	width: 100%;
	z-index: 1;
}

.tjmmg-timeline__card-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	gap: 10px;
}

.tjmmg-timeline__badge {
	align-items: center;
	background: var(--theme-color);
	border-radius: 0 var(--ldt-radius);
	color: var(--ldt-surface);
	display: inline-flex;
	font-size: 0.76rem;
	font-weight: 500;
	gap: 6px;
	padding: 0 8px;
	position: absolute;
	right: 0;
	top: 0;
}

.tjmmg-timeline__card-year {
	color: var(--ldt-highlight);
	font-size: 1.8rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	margin: 0 !important;
}

.tjmmg-timeline__card-text {
	color: var(--ldt-highlight);
	font-size: 0.96rem;
	line-height: 1.55;
	margin: 0;
}

.tjmmg-timeline__card-text p {
	margin: 0 0 0.75rem;
}

.tjmmg-timeline__card-text p:last-child {
	margin-bottom: 0;
}

.tjmmg-timeline__image-caption {
	align-self: flex-end;
	color: var(--ldt-muted);
	font-size: 0.7rem;
	font-style: italic;
	line-height: 1;
	margin: 0;
	max-width: 100%;
	text-align: right;
}

.tjmmg-timeline__card-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.tjmmg-timeline__card-link {
	align-items: center;
	border: 1px solid var(--ldt-highlight);
	border-radius: 999px;
	color: var(--ldt-highlight) !important;
	display: inline-flex;
	font-size: 0.84rem;
	font-weight: 500 !important;
	gap: 6px;
	line-height: 1;
	padding: 5px 12px;
	text-decoration: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tjmmg-timeline__card-link i{
	font-size: 0.64rem;
}

.tjmmg-timeline__card-link:hover,
.tjmmg-timeline__card-link:focus-visible {
	background: var(--ldt-blue);
	border-color: var(--ldt-blue);
	color: var(--ldt-surface) !important;
}

.tjmmg-timeline__card-content,
.tjmmg-timeline__card-links,
.tjmmg-timeline__grouped-event-content {
	overflow: visible;
}

/*
 * Layout para eventos com o mesmo tema e ano.
 */
.tjmmg-timeline__event-group {
	animation: tjmmgTimelineCardEnter 0.35s ease forwards;
	background: var(--ldt-surface);
	border-radius: var(--ldt-radius);
    box-shadow: 0 0px 30px rgba(73, 89, 98, 0.18);
	width: min(100%, 980px);
	position: relative;
	overflow: hidden;
	transform: translateY(14px);
}

.tjmmg-timeline__event-group-header {
	border-bottom: 1px solid rgba(73, 89, 98, 0.12);
	padding: 20px;
}

.tjmmg-timeline__event-group-heading {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tjmmg-timeline__event-group-year {
	color: var(--ldt-highlight);
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
	width: 100%;
}

.tjmmg-timeline__event-group-count {
	color: var(--ldt-highlight);
	font-size: 0.95rem;
	margin: 0 !important;
	width: 100%;
}

.tjmmg-timeline__grouped-events {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tjmmg-timeline__grouped-event-item + .tjmmg-timeline__grouped-event-item {
	border-top: 1px solid rgba(73, 89, 98, 0.12);
}

.tjmmg-timeline__grouped-event {
	display: flex;
	gap: 20px;
	padding: 20px;
}

.tjmmg-timeline__grouped-event-content {
	display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 10px;
}

.tjmmg-timeline__grouped-event-content .tjmmg-timeline__card-text > :first-child {
	margin-top: 0;
}

.tjmmg-timeline__grouped-event-content .tjmmg-timeline__card-text > :last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.tjmmg-timeline__event-group-header {
		padding: 18px;
	}

	.tjmmg-timeline__grouped-event {
		padding: 18px;
		gap: 18px;
	}

	.tjmmg-timeline__grouped-event-media {
		flex: 0 0 200px;
		max-width: 200px;
		min-width: 200px;
		width: 200px;
	}
}

@media (max-width: 520px) {
	.tjmmg-timeline__event-group-heading {
		gap: 5px;
	}

	.tjmmg-timeline__grouped-event {
		flex-direction: column;
	}

	.tjmmg-timeline__grouped-event-media {
		flex: 0 0 auto;
		max-width: none;
		min-width: 0;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tjmmg-timeline__media-image {
		transition: none;
	}
}

.tjmmg-timeline__track-shell {
	position: relative;
}

.tjmmg-timeline__track-shell::before,
.tjmmg-timeline__track-shell::after {
	bottom: 0;
	content: "";
	pointer-events: none;
	position: absolute;
	top: 0;
	width: 58px;
	z-index: 2;
}

.tjmmg-timeline__track-shell::before {
	background: linear-gradient(to right, var(--ldt-surface) 15%, transparent);
	left: 0;
}

.tjmmg-timeline__track-shell::after {
	background: linear-gradient(to left, var(--ldt-surface) 15%, transparent);
	right: 0;
}

.tjmmg-timeline__track {
	align-items: center;
	display: flex;
	gap: 80px;
	overflow-x: auto;
	padding: 54px 190px 72px;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.tjmmg-timeline__track::-webkit-scrollbar {
	display: none;
}

.tjmmg-timeline__node {
	--theme-color: var(--ldt-highlight);
	align-items: center;
	background: transparent !important;
	border: 0;
	color: var(--ldt-line);
	cursor: pointer;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	padding: 14px 0 0;
	position: relative;
}

.tjmmg-timeline__node::after {
	background: var(--ldt-line);
	content: "";
	height: 2px;
	left: 50px;
	pointer-events: none;
	position: absolute;
	top: 39px;
	width: 80px;
}

.tjmmg-timeline__node:last-child::after {
	width: 180px;
}

.tjmmg-timeline__node:first-child::before {
	background: var(--ldt-line);
	content: "";
	height: 2px;
	pointer-events: none;
	position: absolute;
	right: 50%;
	top: 39px;
	width: 220px;
}

.tjmmg-timeline__node-circle {
	align-items: center;
	background: #f3f7f9;
	border: 2px solid var(--ldt-line);
	border-radius: 50%;
	display: inline-flex;
	font-size: 1rem;
	height: 50px;
	justify-content: center;
	position: relative;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
	width: 50px;
	z-index: 1;
}

.tjmmg-timeline__node:hover .tjmmg-timeline__node-circle,
.tjmmg-timeline__node:focus-visible .tjmmg-timeline__node-circle {
	background: var(--theme-color) !important;
	border-color: var(--theme-color) !important;
	box-shadow: 0 0 1px 4px color-mix(in srgb, var(--theme-color), transparent 58%);
	color: var(--ldt-surface);
}

.tjmmg-timeline__node-year {
	color: #7ba6ba;
	font-size: 0.9rem;
	font-weight: 700;
	margin-top: 12px;
	transition: color 0.2s ease;
}

.tjmmg-timeline__node.is-active .tjmmg-timeline__node-circle {
	background: var(--theme-color);
	border-color: var(--theme-color);
	box-shadow: 0 0 1px 4px color-mix(in srgb, var(--theme-color), transparent 58%);
	color: var(--ldt-surface);
}

.tjmmg-timeline__node.is-active .tjmmg-timeline__node-year {
	color: var(--theme-color);
	font-weight: 800;
}

.tjmmg-timeline__decade {
	color: #7ba6ba;
	display: flex;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	position: absolute;
	text-transform: uppercase;
	white-space: nowrap;
	z-index: 1;
}

.tjmmg-timeline__decade::before {
	background: var(--ldt-line);
	content: "";
	width: 2px;
}

.tjmmg-timeline__decade--up {
	bottom: calc(100% - 36px);
	flex-direction: column-reverse;
	left: -38px;
}

.tjmmg-timeline__decade--up::before {
	height: 34px;
	margin-top: 8px;
}

.tjmmg-timeline__decade--down {
	flex-direction: column;
	left: -38px;
	top: 39px;
}

.tjmmg-timeline__decade--down::before {
	height: 74px;
	margin-bottom: 8px;
}

.tjmmg-timeline__modal {
	align-items: center;
	background: rgba(0, 0, 0, 0.72);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 99999;
}

.tjmmg-timeline__modal[aria-hidden="false"] {
	display: flex;
}

.tjmmg-timeline__modal-box {
	background: var(--ldt-surface);
	border-radius: 18px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
	color: var(--ldt-text);
	display: flex;
	flex-direction: column;
	max-height: 90vh;
	max-width: 1000px;
	overflow: hidden;
	padding: 28px;
	width: min(96vw, 1000px);
}

.tjmmg-timeline__modal-header {
	align-items: center;
	border-bottom: 2px solid #e2e8f0;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 20px;
}

.tjmmg-timeline__modal-header h2 {
	align-items: center;
	color: var(--ldt-highlight);
	display: flex;
	font-size: 1.45rem;
	font-weight: 800;
	gap: 10px;
	line-height: 1.2;
	margin: 0;
}

.tjmmg-timeline__modal-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.tjmmg-timeline__modal-actions button {
	font-size: 0.85rem;
}

.tjmmg-timeline__modal-actions button,
.tjmmg-timeline__show-all {
	background: var(--ldt-surface);
	border: 2px solid var(--ldt-highlight);
	border-radius: 6px;
	color: var(--ldt-highlight);
	gap: 6px;
	padding: 8px 10px;
}

.tjmmg-timeline__modal-actions button:hover,
.tjmmg-timeline__modal-actions button:focus-visible {
	background: var(--ldt-highlight);
	color: var(--ldt-surface);
}

.tjmmg-timeline__modal-close {
	font-size: 2rem !important;
	font-weight: 400 !important;
	line-height: 1;
	padding: 0 8px !important;
	border: 0 !important;
    min-height: stretch;
	opacity: 0.6;
	color: var(--ldt-highlight) !important;
}

.tjmmg-timeline__modal-close:hover {
	background: var(--ldt-surface) !important;
	opacity: 1;
}

.tjmmg-timeline__modal-close:focus-visible {
	background: var(--ldt-surface) !important;
	opacity: 1;
}

.tjmmg-timeline__show-all {
	background: var(--ldt-surface);
	border-color: var(--ldt-highlight);
	color: var(--ldt-highlight);
}

.tjmmg-timeline__show-all:hover {
	background: var(--ldt-highlight);
	border-color: var(--ldt-highlight);
}

.tjmmg-timeline__show-all.is-active {
	background: var(--ldt-highlight);
	color: var(--ldt-surface);
}

.tjmmg-timeline__show-all.is-active:hover,
.tjmmg-timeline__show-all.is-active:focus,
.tjmmg-timeline__show-all.is-active:focus-visible {
	border-color: var(--ldt-highlight);
}

.tjmmg-timeline__modal-controls {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 20px;
}

.tjmmg-timeline__summary-cards {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 20px;
}

.tjmmg-timeline__summary-card {
	--theme-color: var(--ldt-highlight);
	align-items: center;
	background: #f8fafc;
	border: 0;
	border-radius: 6px;
	border-top: 4px solid var(--theme-color);
	cursor: pointer;
	display: flex;
	gap: 10px;
	min-height: 78px;
	padding: 12px;
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tjmmg-timeline__summary-card:hover,
.tjmmg-timeline__summary-card:focus-visible {
	background: var(--ldt-surface);
	box-shadow: 0 10px 22px rgba(73, 89, 98, 0.14);
	transform: translateY(-1px);
	border-color: var(--theme-color);
}

.tjmmg-timeline__summary-card.is-inactive {
	opacity: 0.46;
	color: var(--ldt-muted);
	border-color: var(--ldt-muted);
}

.tjmmg-timeline__summary-card.is-inactive .tjmmg-timeline__summary-card-icon{
	background: var(--ldt-muted);
	color: var(--ldt-surface);
}

.tjmmg-timeline__summary-card.is-inactive span strong,
.tjmmg-timeline__summary-card.is-inactive span span{
	color: var(--ldt-muted);
}

.tjmmg-timeline__summary-card.is-active {
	background: var(--ldt-surface);
	box-shadow: 0 10px 22px rgba(73, 89, 98, 0.14);
}

.tjmmg-timeline__summary-card-icon {
	height: 36px;
	width: 36px;
	background: var(--theme-color);
	display: inline-flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-size: 1rem !important;
}

.tjmmg-timeline__summary-card strong {
	color: var(--ldt-highlight);
	display: block;
	font-size: 1.15rem;
	line-height: 1;
}

.tjmmg-timeline__summary-card span {
	display: block;
	font-size: 0.825rem;
	font-weight: 600;
	text-align: left;
}

.tjmmg-timeline__summary-card span span {
	color: var(--theme-color);
}

.tjmmg-timeline__summary-select {
	display: none;
	margin-bottom: 16px;
}

.tjmmg-timeline__summary-list {
	overflow: auto;
	padding-right: 4px;
}

.tjmmg-timeline__summary-group {
	margin-bottom: 24px;
}

.tjmmg-timeline__summary-group h3 {
	--theme-color: var(--ldt-highlight);
	align-items: center;
	border-bottom: 2px solid color-mix(in srgb, var(--theme-color), transparent 65%);
	color: var(--theme-color);
	display: flex;
	font-size: 0.9rem;
	font-weight: 700;
	gap: 8px;
	margin: 0 0 20px;
	padding-bottom: 8px;
}

.tjmmg-timeline__summary-group table {
	border-collapse: collapse;
	width: 100%;
}

.tjmmg-timeline__summary-group td {
	border-bottom: 1px dashed #e2e8f0;
	padding: 12px;
	vertical-align: top;
}

.tjmmg-timeline__summary-year {
	color: var(--ldt-highlight);
	font-size: 1.05rem;
	font-weight: 800;
	width: 74px;
}

@media (max-width: 1100px) {
	.tjmmg-timeline__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tjmmg-timeline__summary-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.tjmmg-timeline {
		gap: 24px;
	}

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

	.tjmmg-timeline__search-row {
		grid-template-columns: 1fr;
	}

	.tjmmg-timeline__filters {
		display: none;
	}

	.tjmmg-timeline__mobile-filter {
		display: block;
	}

	.tjmmg-timeline__stage {
		min-height: 0;
	}

	.tjmmg-timeline__card {
		height: auto;
		min-height: 0;
		padding: 18px;
		gap: 18px;
		width: 100%;
	}

	.tjmmg-timeline__card-media {
		flex: 0 0 200px;
        max-width: 200px;
        min-width: 200px;
        width: 200px;
	}

	.tjmmg-timeline__card-content {
		padding-right: 0;
	}

	.tjmmg-timeline__card-year {
		font-size: 1.55rem;
	}

	.tjmmg-timeline__track {
		gap: 52px;
		padding: 46px 86px 66px;
	}

	.tjmmg-timeline__node::after {
		width: 52px;
	}

	.tjmmg-timeline__node:first-child::before {
		width: 110px;
	}

	.tjmmg-timeline__node:last-child::after {
		width: 120px;
	}

	.tjmmg-timeline__modal {
		padding: 12px;
	}

	.tjmmg-timeline__modal-box {
		border-radius: 12px;
		padding: 18px;
		width: 100%;
	}

	.tjmmg-timeline__modal-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.tjmmg-timeline__modal-actions {
		justify-content: flex-start;
		width: 100%;
	}

	.tjmmg-timeline__summary-cards {
		display: none;
	}

	.tjmmg-timeline__summary-select {
		display: block;
	}
}

@media (max-width: 520px) {
	.tjmmg-timeline__stats {
		grid-template-columns: 1fr;
	}

	.tjmmg-timeline__stat {
		min-height: 64px;
	}

	.tjmmg-timeline__summary-button {
		width: 100%;
	}

	.tjmmg-timeline__card {
		flex-direction: column;
	}

	.tjmmg-timeline__card-media {
		flex: 0 0 auto;
		max-width: none;
		min-width: 0;
		width: 100%;
	}
}
