/* Dedicated, source-first fixture tests and document directory. */
.tests-manuals {
	background: var(--mos-surface);
}

.tests-manuals__hero {
	padding: var(--mos-page-header-space) 0;
	border-bottom: 0.3rem solid var(--mos-brand-logo);
	background:
		linear-gradient(118deg, rgba(14, 141, 63, 0.2), transparent 55%),
		var(--mos-ink-soft);
	color: var(--mos-white);
}

.tests-manuals__hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.75fr);
	gap: clamp(2rem, 7vw, 7rem);
	align-items: end;
}

.tests-manuals__hero .eyebrow {
	color: #8ee1aa;
}

.tests-manuals__hero h1 {
	max-width: 20ch;
	margin: 0;
	color: var(--mos-white);
	font-size: var(--mos-page-title);
	line-height: 1.12;
}

.tests-manuals__intro {
	max-width: 42rem;
	margin: 0;
	color: #d2dbd5;
	font-size: clamp(1rem, 2vw, 1.2rem);
	line-height: 1.65;
}

.tests-manuals__resources {
	padding: var(--mos-section) 0;
	background: var(--mos-paper);
}

.tests-manuals__resources .section-heading > p {
	max-width: 39rem;
}

.tests-manuals__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.tests-manuals__card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--mos-line);
	border-top: 0.28rem solid var(--mos-brand-logo);
	background: var(--mos-surface);
	box-shadow: 0 0.45rem 1.4rem rgba(12, 15, 13, 0.055);
}

.tests-manuals__image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-bottom: 1px solid var(--mos-line);
	background: var(--mos-surface);
}

.tests-manuals__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.tests-manuals__image:hover img {
	transform: scale(1.025);
}

.tests-manuals__card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.2rem, 2.5vw, 1.65rem);
}

.tests-manuals .mos-product-family {
	margin-bottom: 0.45rem;
	color: var(--mos-brand);
	font-size: 0.75rem;
	font-weight: 820;
	letter-spacing: 0.13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.tests-manuals__card h3 {
	margin-bottom: 0.75rem;
	font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.tests-manuals__card h3 a {
	color: var(--mos-ink);
	text-decoration: none;
}

.tests-manuals__card h3 a:hover {
	color: var(--mos-brand-dark);
}

.tests-manuals__summary {
	color: var(--mos-muted);
	font-size: 0.93rem;
	line-height: 1.6;
}

.tests-manuals__summary > :last-child {
	margin-bottom: 0;
}

.tests-manuals__specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 1.25rem 0 0;
	padding: 0;
	border-top: 1px solid var(--mos-line);
	border-left: 1px solid var(--mos-line);
	list-style: none;
}

.tests-manuals__specs li {
	min-width: 0;
	padding: 0.72rem;
	border-right: 1px solid var(--mos-line);
	border-bottom: 1px solid var(--mos-line);
	background: var(--mos-paper);
}

.tests-manuals__specs span,
.tests-manuals__specs strong {
	display: block;
}

.tests-manuals__specs span {
	color: var(--mos-muted);
	font-size: 0.67rem;
	font-weight: 760;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tests-manuals__specs strong {
	margin-top: 0.1rem;
	color: var(--mos-ink);
	font-size: 0.9rem;
	line-height: 1.35;
}

.tests-manuals__basis {
	margin: 0.85rem 0 0;
	color: var(--mos-muted);
	font-size: 0.72rem;
	line-height: 1.5;
}

.tests-manuals__basis strong {
	color: var(--mos-ink);
}

.tests-manuals__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin-top: auto;
	padding-top: 1.35rem;
}

.tests-manuals__actions .button {
	font-size: 0.82rem;
}

.tests-manuals__product-link {
	padding: 0.55rem 0;
	color: var(--mos-brand-dark);
	font-size: 0.85rem;
	font-weight: 780;
}

.tests-manuals__empty {
	padding: 1.5rem;
	border-left: 0.25rem solid var(--mos-brand-logo);
	background: var(--mos-surface);
}

.tests-manuals__details {
	border-top: 1px solid var(--mos-line);
}

.tests-manuals__edit-link {
	padding-bottom: 2rem;
}

.tests-manuals__edit-link a {
	display: inline-flex;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--mos-line);
	background: var(--mos-paper);
	font-size: 0.82rem;
	font-weight: 700;
}

@media (max-width: 64rem) {
	.tests-manuals__hero-inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

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

@media (max-width: 44rem) {
	.tests-manuals__grid {
		grid-template-columns: 1fr;
	}
}
