.stm-materials {
	margin: 24px 0;
}

.stm-material-section {
	margin: 0 0 24px;
}

.stm-material-section h2 {
	margin: 0 0 16px;
}

.stm-material-filters {
	align-items: end;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px) auto auto;
	margin: 0 0 22px;
}

.stm-material-filters label {
	display: block;
	margin: 0;
}

.stm-material-filters span {
	color: #53606f;
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
}

.stm-material-filters input,
.stm-material-filters select {
	box-sizing: border-box;
	min-height: 34px;
	width: 100%;
}

.stm-material-group {
	margin: 0 0 28px;
}

.stm-material-group h3 {
	font-size: 20px;
	line-height: 1.25;
	margin: 0 0 14px;
}

.stm-material-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.stm-material-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	padding: 16px;
	position: relative;
	text-align: center;
}

.stm-material-image {
	align-items: center;
	display: flex;
	justify-content: center;
	margin: 0 auto 12px;
	min-height: 120px;
}

.stm-material-image img {
	display: block;
	height: auto;
	max-height: 120px;
	max-width: 120px;
	object-fit: contain;
	width: auto;
}

.stm-file-icon {
	align-items: center;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	color: #1d2327;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	line-height: 1;
	position: relative;
	text-transform: uppercase;
}

.stm-file-icon::before {
	border-left: 20px solid transparent;
	border-top: 20px solid #dcdcde;
	content: "";
	position: absolute;
	right: -1px;
	top: -1px;
}

.stm-file-icon span {
	position: relative;
	z-index: 1;
}

.stm-file-icon-large {
	font-size: 18px;
	height: 120px;
	width: 120px;
}

.stm-new-badge {
	background: #0a6b22;
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 8px;
	position: absolute;
	right: 12px;
	top: 12px;
}

.stm-material-card h4 {
	font-size: 17px;
	line-height: 1.25;
	margin: 0 0 8px;
	overflow-wrap: anywhere;
}

.stm-material-meta {
	color: #53606f;
	font-size: 13px;
	margin: 0 0 12px;
}

.stm-material-actions {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 12px 0 0;
}

.stm-download-button,
.stm-button {
	display: inline-block;
	margin: 4px 3px;
	text-decoration: none;
}

.stm-download-button {
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	color: #2271b1;
	font-size: 13px;
	font-weight: 700;
	line-height: 2.15384615;
	min-height: 30px;
	overflow-wrap: anywhere;
	padding: 0 10px;
}

.stm-button {
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	color: #2271b1;
	font-size: 13px;
	line-height: 2.15384615;
	min-height: 30px;
	padding: 0 10px;
}

.stm-download-button:hover,
.stm-download-button:focus,
.stm-button:hover,
.stm-button:focus {
	background: #f0f0f1;
	border-color: #8c8f94;
	color: #135e96;
}

.stm-empty,
.stm-login-required {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	padding: 14px 16px;
}

.stm-account {
	margin: 24px 0;
	max-width: 980px;
}

.stm-account-intro {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	margin: 0 0 20px;
	padding: 18px;
}

.stm-account-intro h2 {
	margin: 0 0 10px;
}

.stm-account-intro p {
	margin: 0 0 8px;
}

.stm-account-intro p:last-child {
	margin-bottom: 0;
}

.stm-account-trust-links {
	align-items: center;
	color: #53606f;
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 6px 12px;
}

.stm-account-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stm-account-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	padding: 18px;
}

.stm-account-card h2 {
	margin: 0 0 14px;
}

.stm-account-card label {
	display: block;
	margin: 0 0 12px;
}

.stm-account-card input[type="text"],
.stm-account-card input[type="email"],
.stm-account-card input[type="password"] {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
}

.stm-account-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
}

.stm-account-notice {
	background: #edfaef;
	border: 1px solid #0a6b22;
	color: #0a6b22;
	border-radius: 8px;
	margin: 0 0 16px;
	padding: 10px 12px;
}

.stm-account-notice-error {
	background: #fcf0f1;
	border-color: #b32d2e;
	color: #b32d2e;
}

.stm-account .description {
	color: #53606f;
	font-size: 13px;
	margin: 0 0 12px;
}

.stm-account-hidden {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	top: auto;
	width: 1px;
}

@media (max-width: 520px) {
	.stm-material-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}

	.stm-material-filters {
		grid-template-columns: 1fr;
	}
}
