:root {
	--matt-docs-navy: #102542;
	--matt-docs-gold: #b78327;
	--matt-docs-cream: #f8f1dc;
	--matt-docs-paper: #fffdf8;
	--matt-docs-text: #2b3647;
	--matt-docs-muted: #657184;
	--matt-docs-line: #e7dfcf;
	--matt-docs-white: #ffffff;
	--matt-docs-shadow: 0 12px 30px rgba(16, 37, 66, .06);
}

.matt-docs,
.matt-docs *,
.matt-docs *::before,
.matt-docs *::after {
	box-sizing: border-box;
}

.matt-docs {
	color: var(--matt-docs-text);
	background: var(--matt-docs-white);
}

.matt-docs-wrap {
	width: min(calc(100% - 40px), 1120px);
	margin-inline: auto;
}

.matt-docs-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--matt-docs-gold) !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.matt-docs-kicker::before {
	width: 31px;
	height: 1px;
	background: currentColor;
	content: "";
}

.matt-docs h2,
.matt-docs h3 {
	color: var(--matt-docs-navy);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
}

.matt-docs h2 {
	margin: 0;
	font-size: clamp(31px, 4vw, 43px);
	line-height: 1.12;
	letter-spacing: -.025em;
}

.matt-docs h3 {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
}

.matt-docs p {
	color: var(--matt-docs-muted);
	line-height: 1.72;
}

.matt-docs-intro {
	padding: 54px 0 56px;
	background:
		radial-gradient(circle at 90% 15%, rgba(183, 131, 39, .1), transparent 28%),
		linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
}

.matt-docs-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, .58fr);
	align-items: center;
	gap: 52px;
}

.matt-docs-lead {
	max-width: 690px;
	margin: 19px 0 0;
	font-size: 15px;
}

.matt-docs-intro__note {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	padding: 24px;
	background: var(--matt-docs-paper);
	border: 1px solid var(--matt-docs-line);
	border-radius: 10px;
	box-shadow: var(--matt-docs-shadow);
}

.matt-docs-intro__icon,
.matt-docs-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	color: var(--matt-docs-gold);
	background: #f7edd8;
	border: 1px solid #ead9b5;
	border-radius: 50%;
}

.matt-docs-intro__icon svg,
.matt-docs-empty__icon svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.matt-docs-intro__note strong {
	display: block;
	margin: 2px 0 7px;
	color: var(--matt-docs-navy);
	font-size: 15px;
}

.matt-docs-intro__note p {
	margin: 0;
	font-size: 13px;
	line-height: 1.62;
}

.matt-docs-library {
	padding: 62px 0 70px;
	background: var(--matt-docs-cream);
}

.matt-docs-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(270px, .58fr);
	align-items: end;
	gap: 42px;
	margin-bottom: 28px;
}

.matt-docs-heading > p {
	margin: 0;
	font-size: 14px;
}

.matt-docs-tools {
	padding: 20px;
	background: rgba(255, 253, 248, .8);
	border: 1px solid var(--matt-docs-line);
	border-radius: 10px;
	box-shadow: 0 8px 22px rgba(16, 37, 66, .035);
}

.matt-docs-search label {
	display: block;
	margin: 0 0 8px;
	color: var(--matt-docs-navy);
	font-size: 12px;
	font-weight: 750;
}

.matt-docs-search__field {
	position: relative;
}

.matt-docs-search__field svg {
	position: absolute;
	top: 50%;
	left: 15px;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	fill: none;
	stroke: #788291;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.matt-docs-search input {
	width: 100%;
	height: 48px;
	padding: 0 16px 0 45px;
	color: var(--matt-docs-navy);
	background: #fff;
	border: 1px solid #ddd3bd;
	border-radius: 7px;
	font: inherit;
	font-size: 14px;
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.matt-docs-search input:focus {
	border-color: var(--matt-docs-gold);
	box-shadow: 0 0 0 3px rgba(183, 131, 39, .13);
}

.matt-docs-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 15px;
}

.matt-docs-filter {
	min-height: 36px;
	padding: 7px 13px;
	color: #5e6979;
	background: #fff;
	border: 1px solid #ded5c2;
	border-radius: 999px;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.matt-docs-filter:hover,
.matt-docs-filter:focus-visible,
.matt-docs-filter.is-active {
	color: #fff;
	background: var(--matt-docs-navy);
	border-color: var(--matt-docs-navy);
}

.matt-docs-status {
	margin: 17px 2px 10px;
	color: #6e7784;
	font-size: 12px;
}

.matt-docs-list {
	display: grid;
	gap: 12px;
}

.matt-docs-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	padding: 18px 20px;
	background: var(--matt-docs-paper);
	border: 1px solid var(--matt-docs-line);
	border-radius: 9px;
	box-shadow: 0 8px 22px rgba(16, 37, 66, .04);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.matt-docs-item:hover {
	transform: translateY(-1px);
	border-color: #ddcfab;
	box-shadow: 0 12px 27px rgba(16, 37, 66, .065);
}

.matt-docs-item[hidden] {
	display: none !important;
}

.matt-docs-file {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 66px;
	color: var(--matt-docs-gold);
}

.matt-docs-file svg {
	position: absolute;
	inset: 0;
	width: 60px;
	height: 66px;
	fill: #f7edd8;
	stroke: #c99d4b;
	stroke-width: 1.25;
	stroke-linejoin: round;
}

.matt-docs-file span {
	position: relative;
	z-index: 1;
	max-width: 45px;
	margin-top: 13px;
	overflow: hidden;
	color: #8c6320;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .06em;
	text-overflow: ellipsis;
}

.matt-docs-item__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 7px;
}

.matt-docs-item__categories span {
	color: #856226;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.matt-docs-item__body h3 {
	font-size: 21px;
}

.matt-docs-item__body > p {
	max-width: 750px;
	margin: 7px 0 0;
	font-size: 13px;
	line-height: 1.58;
}

.matt-docs-item__meta {
	margin-top: 9px;
	color: #7b8491;
	font-size: 11px;
	line-height: 1.45;
}

.matt-docs-download,
.matt-docs-help__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 16px;
	color: #fff;
	background: var(--matt-docs-navy);
	border: 1px solid var(--matt-docs-navy);
	border-radius: 7px;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: color .18s ease, background .18s ease, transform .18s ease;
}

.matt-docs-download svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.matt-docs-download:hover,
.matt-docs-download:focus-visible,
.matt-docs-help__button:hover,
.matt-docs-help__button:focus-visible {
	color: var(--matt-docs-navy);
	background: #fff;
	transform: translateY(-1px);
}

.matt-docs-empty {
	display: flex;
	align-items: center;
	flex-direction: column;
	padding: 44px 24px;
	text-align: center;
	background: var(--matt-docs-paper);
	border: 1px dashed #d9cba9;
	border-radius: 10px;
}

.matt-docs-empty[hidden] {
	display: none !important;
}

.matt-docs-empty__icon {
	margin-bottom: 16px;
}

.matt-docs-empty strong {
	color: var(--matt-docs-navy);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 400;
}

.matt-docs-empty p {
	max-width: 540px;
	margin: 8px 0 0;
	font-size: 13px;
}

.matt-docs-empty--filtered {
	margin-top: 12px;
}

.matt-docs-help {
	padding: 48px 0;
	background: var(--matt-docs-navy);
}

.matt-docs-help__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 42px;
}

.matt-docs-help .matt-docs-kicker {
	color: #e8c77f !important;
}

.matt-docs-help h2 {
	color: #fff;
	font-size: clamp(29px, 3vw, 37px);
}

.matt-docs-help p:last-child {
	max-width: 740px;
	margin: 13px 0 0;
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
}

.matt-docs-help__button {
	color: var(--matt-docs-navy);
	background: #fff;
	border-color: #fff;
}

.matt-docs-help__button:hover,
.matt-docs-help__button:focus-visible {
	color: #fff;
	background: transparent;
}

@media (max-width: 850px) {
	.matt-docs-intro__grid,
	.matt-docs-heading {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.matt-docs-item {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 16px;
	}

	.matt-docs-item__action {
		grid-column: 2;
	}

	.matt-docs-help__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.matt-docs-help__button {
		justify-self: start;
	}
}

@media (max-width: 600px) {
	.matt-docs-wrap {
		width: calc(100% - 24px);
	}

	.matt-docs-intro {
		padding: 42px 0 45px;
	}

	.matt-docs-intro__note {
		grid-template-columns: 46px minmax(0, 1fr);
		padding: 19px;
	}

	.matt-docs-intro__icon {
		width: 46px;
		height: 46px;
	}

	.matt-docs-library {
		padding: 48px 0 55px;
	}

	.matt-docs-tools {
		padding: 15px;
	}

	.matt-docs-filter {
		flex: 1 1 auto;
	}

	.matt-docs-item {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 18px;
	}

	.matt-docs-file {
		width: 52px;
		height: 58px;
	}

	.matt-docs-file svg {
		width: 52px;
		height: 58px;
	}

	.matt-docs-item__action {
		grid-column: auto;
	}

	.matt-docs-download {
		width: 100%;
	}

	.matt-docs-help {
		padding: 42px 0;
	}

	.matt-docs-help__button {
		width: 100%;
	}
}
 
.mgd-documents-page > .matt-docs-intro:first-child {
	background: radial-gradient(circle at 90% 15%, rgba(183,131,39,.12), transparent 28%), #f8f1dc;
}
