.tmi-articles-component,
.tmi-articles-component * {
	box-sizing: border-box;
}

.tmi-articles-component {
	min-height: 100vh;
	color: var(--tmi-dark);
}

.tmi-articles-shell {
	width: min(100%, 1400px);
	margin: 0 auto;
	padding: 52px 56px 96px;
}

.tmi-articles-intro {
	max-width: 860px;
}

.tmi-articles-eyebrow {
	margin: 0 0 20px;
	color: var(--tmi-amber-600);
}

.tmi-articles-intro h1 {
	margin: 0;
}

.tmi-articles-description {
	max-width: 820px;
	margin: 28px 0 0;
	color: var(--tmi-dark-700);
}

.tmi-articles-controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 24px;
	margin-top: 52px;
	padding: 18px;
	border: 1px solid var(--tmi-dark-200);
	border-radius: 8px;
	background: var(--tmi-white);
	box-shadow: var(--tmi-soft-shadow);
}

.tmi-articles-search,
.tmi-articles-category {
	min-width: 0;
	height: 58px;
	border: 1px solid var(--tmi-dark-200);
	border-radius: 8px;
	background: var(--tmi-white);
	transition: border-color var(--tmi-dur-hover) ease, box-shadow var(--tmi-dur-hover) ease;
}

.tmi-articles-search {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	padding: 0 20px;
}

.tmi-articles-search:focus-within,
.tmi-articles-category:focus-within {
	border-color: var(--tmi-green);
	box-shadow: 0 0 0 3px rgba(1, 102, 48, 0.12);
}

.tmi-articles-search img {
	width: 22px;
	height: 22px;
	opacity: 0.62;
}

.tmi-articles-search input,
.tmi-articles-category select {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--tmi-dark);
	font: 500 16px/1.35 var(--tmi-font-sans);
}

.tmi-articles-search input {
	height: 56px;
	padding: 0;
}

.tmi-articles-search input::placeholder {
	color: var(--tmi-dark-400);
	opacity: 1;
}

.tmi-articles-controls__or {
	color: var(--tmi-muted);
}

.tmi-articles-category {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	padding: 0 18px;
}

.tmi-articles-category::after {
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--tmi-muted);
	border-bottom: 2px solid var(--tmi-muted);
	content: "";
	pointer-events: none;
	position: absolute;
	right: 22px;
	top: 21px;
	transform: rotate(45deg);
}

.tmi-articles-category label {
	color: var(--tmi-dark);
	text-transform: uppercase;
	white-space: nowrap;
}

.tmi-articles-category select {
	height: 56px;
	padding: 0 36px 0 0;
	color: var(--tmi-muted);
	cursor: pointer;
	appearance: none;
}

.tmi-articles-collection {
	position: relative;
	margin-top: 44px;
	scroll-margin-top: 24px;
}

.tmi-articles-collection > h2 {
	margin: 0 0 28px;
}

.tmi-articles-results {
	min-height: 240px;
	transition: opacity 180ms ease, transform 240ms var(--ease-out-quint);
}

.tmi-articles-results.is-waiting,
.tmi-articles-results.is-leaving {
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
}

.tmi-articles-collection::after {
	position: absolute;
	top: 94px;
	left: 50%;
	width: 34px;
	height: 34px;
	border: 3px solid rgba(9, 11, 12, 0.14);
	border-top-color: var(--tmi-green);
	border-radius: 50%;
	content: "";
	opacity: 0;
	pointer-events: none;
	translate: -50% -50%;
	transition: opacity 140ms ease;
}

.tmi-articles-collection.is-loading::after {
	opacity: 1;
	animation: tmi-articles-loader 700ms linear infinite;
}

.tmi-articles-list {
	display: grid;
	gap: 22px;
}

.tmi-articles-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--tmi-dark-100);
	border-radius: 8px;
	background: var(--tmi-white);
	box-shadow: var(--tmi-card-shadow);
	transition: transform var(--tmi-dur-hover) var(--ease-out-quint), box-shadow var(--tmi-dur-hover) var(--ease-out-quint);
}

.tmi-articles-card:hover,
.tmi-articles-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px rgba(9, 11, 12, 0.12);
}

.tmi-articles-card__link {
	display: grid;
	grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
	min-height: 280px;
	padding: 22px;
	color: inherit;
	text-decoration: none;
}

.tmi-articles-card__link:focus-visible {
	outline: 3px solid var(--tmi-green);
	outline-offset: -4px;
}

.tmi-articles-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
	border-radius: 6px;
	background: var(--tmi-dark-100);
}

.tmi-articles-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 520ms var(--ease-out-quint), filter 320ms ease;
}

.tmi-articles-card:hover .tmi-articles-card__image,
.tmi-articles-card:focus-within .tmi-articles-card__image {
	transform: scale(1.045);
	filter: saturate(1.05);
}

.tmi-articles-card__media.is-placeholder {
	background-color: var(--tmi-dark-100);
	background-image: url("../../assets/images/figma/background-1.webp");
	background-size: 620px auto;
}

.tmi-articles-card__media.is-placeholder img {
	width: 64px;
	height: 64px;
	opacity: 0.48;
}

.tmi-articles-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 28px 36px;
}

.tmi-articles-card__body h3 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--tmi-dark);
	font: 700 32px/1.16 var(--tmi-font-display);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	transition: color var(--tmi-dur-hover) ease;
}

.tmi-articles-card:hover h3,
.tmi-articles-card:focus-within h3 {
	color: var(--tmi-green);
}

.tmi-articles-card__excerpt {
	display: -webkit-box;
	margin: 20px 0 0;
	overflow: hidden;
	color: var(--tmi-dark-700);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.tmi-articles-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 28px;
}

.tmi-articles-card__category {
	max-width: 100%;
	padding: 8px 18px;
	overflow-wrap: anywhere;
	border-radius: 999px;
	background: var(--tmi-green);
	color: var(--tmi-white);
	text-align: center;
}

.tmi-articles-card__meta time {
	color: var(--tmi-muted);
}

.tmi-articles-empty {
	padding: 72px 32px;
	border: 1px solid var(--tmi-dark-100);
	border-radius: 8px;
	background: var(--tmi-white);
	box-shadow: var(--tmi-card-shadow);
	text-align: center;
}

.tmi-articles-scroll-sentinel {
	display: grid;
	place-items: center;
	height: 84px;
}

.tmi-articles-scroll-sentinel[hidden] {
	display: none;
}

.tmi-articles-scroll-sentinel::after {
	width: 32px;
	height: 32px;
	border: 3px solid rgba(9, 11, 12, 0.14);
	border-top-color: var(--tmi-green);
	border-radius: 50%;
	content: "";
	opacity: 0;
	transition: opacity 140ms ease;
}

.tmi-articles-collection.is-loading-more .tmi-articles-scroll-sentinel::after {
	opacity: 1;
	animation: tmi-articles-loader 700ms linear infinite;
}

@keyframes tmi-articles-loader {
	to {
		rotate: 360deg;
	}
}

@keyframes tmi-articles-enter {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.tmi-articles-results.is-entering .tmi-articles-card,
.tmi-articles-results.is-entering .tmi-articles-empty {
	animation: tmi-articles-enter 460ms var(--ease-out-quint) both;
}

.tmi-articles-results.is-entering .tmi-articles-card:nth-child(2) {
	animation-delay: 45ms;
}

.tmi-articles-results.is-entering .tmi-articles-card:nth-child(3) {
	animation-delay: 90ms;
}

.tmi-articles-results.is-entering .tmi-articles-card:nth-child(n + 4) {
	animation-delay: 135ms;
}

.tmi-articles-card.is-append-entering {
	animation: tmi-articles-enter 460ms var(--ease-out-quint) var(--tmi-append-delay, 0ms) both;
}

@media (min-width: 1101px) {
	.tmi-articles-intro,
	.tmi-articles-controls {
		animation: tmi-articles-enter 620ms var(--ease-out-quint) both;
	}

	.tmi-articles-controls {
		animation-delay: 90ms;
	}
}

@media (max-width: 1100px) {
	.tmi-articles-shell {
		padding: 44px 24px 80px;
	}

	.tmi-articles-controls {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 42px;
	}

	.tmi-articles-controls__or {
		display: none;
	}

	.tmi-articles-card__link {
		grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
	}

	.tmi-articles-card__body {
		padding: 24px 28px;
	}

	.tmi-articles-card__body h3 {
		font-size: 27px;
	}
}

@media (max-width: 700px) {
	.tmi-articles-shell {
		padding: 32px 18px 64px;
	}

	.tmi-articles-eyebrow {
		margin-bottom: 14px;
	}

	.tmi-articles-description {
		margin-top: 20px;
	}

	.tmi-articles-controls {
		margin-top: 32px;
		padding: 12px;
	}

	.tmi-articles-category {
		grid-template-columns: 1fr;
		gap: 0;
		height: auto;
		padding: 10px 18px 6px;
	}

	.tmi-articles-category::after {
		top: 31px;
	}

	.tmi-articles-category select {
		height: 40px;
	}

	.tmi-articles-collection {
		margin-top: 36px;
	}

	.tmi-articles-card__link {
		grid-template-columns: 1fr;
		padding: 12px;
	}

	.tmi-articles-card__media {
		aspect-ratio: 16 / 10;
	}

	.tmi-articles-card__body {
		padding: 24px 12px 18px;
	}

	.tmi-articles-card__body h3 {
		font-size: 24px;
	}

	.tmi-articles-card__excerpt {
		font-size: 16px;
	}

	.tmi-articles-card__meta {
		margin-top: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmi-articles-component *,
	.tmi-articles-component *::after {
		animation: none !important;
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}
}
