/* MH Gear — product cards, comparison tables, buttons. Colors come from CSS vars the theme can override. */
:root {
	--mh-ink: #1f2a24;
	--mh-muted: #5b6660;
	--mh-line: #dfe5e0;
	--mh-bg-soft: #f4f7f3;
	--mh-accent: #2f6b4f;
	--mh-accent-ink: #ffffff;
	--mh-award: #c76b29;
	--mh-radius: 10px;
}

.mh-card {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 1.5rem;
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	padding: 1.25rem;
	margin: 2rem 0;
	background: #fff;
	color: var(--mh-ink);
	scroll-margin-top: 90px;
}
.mh-card__media { display: flex; align-items: flex-start; justify-content: center; }
.mh-card__img { width: 100%; height: auto; max-height: 360px; object-fit: contain; border-radius: calc(var(--mh-radius) - 4px); }
.mh-card__title { margin: .35rem 0 .5rem; font-size: 1.35rem; line-height: 1.25; }
.mh-card__verdict { margin: 0 0 1rem; color: var(--mh-muted); }

.mh-award {
	display: inline-block;
	background: var(--mh-award);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: .2rem .55rem;
	border-radius: 4px;
}
.mh-award--small { display: block; width: fit-content; margin-top: .25rem; font-size: .65rem; }

.mh-specs { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem .8rem; }
.mh-specs li { margin: 0; padding: .45rem .6rem; background: var(--mh-bg-soft); border-radius: 6px; font-size: .9rem; display: flex; flex-direction: column; }
.mh-specs span { color: var(--mh-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }

.mh-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.mh-proscons h4 { margin: 0 0 .35rem; font-size: .95rem; }
.mh-proscons ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.mh-pros h4 { color: var(--mh-accent); }
.mh-cons h4 { color: #a23b2a; }

.mh-card__buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.mh-btn {
	display: inline-block;
	padding: .65rem 1rem;
	border-radius: 6px;
	border: 2px solid var(--mh-accent);
	color: var(--mh-accent);
	background: transparent;
	font-weight: 700;
	text-decoration: none !important;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}
.mh-btn:hover, .mh-btn:focus-visible { background: var(--mh-bg-soft); }
.mh-btn--primary { background: var(--mh-accent); color: var(--mh-accent-ink) !important; }
.mh-btn--primary:hover, .mh-btn--primary:focus-visible { background: #24553e; color: #fff; }

.mh-price-note, .mh-disclosure { font-size: .78rem; color: var(--mh-muted); margin: .6rem 0 0; }

.mh-compare-wrap { overflow-x: auto; margin: 1.5rem 0 .25rem; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); }
.mh-compare { width: 100%; border-collapse: collapse; margin: 0; font-size: .92rem; }
.mh-compare th, .mh-compare td { padding: .7rem .8rem; border: 0; border-bottom: 1px solid var(--mh-line); text-align: left; vertical-align: middle; }
.mh-compare thead th { background: var(--mh-bg-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mh-muted); white-space: nowrap; }
.mh-compare tbody tr:last-child th, .mh-compare tbody tr:last-child td { border-bottom: 0; }
.mh-compare__product { min-width: 190px; font-weight: 600; }
.mh-compare__prod { display: flex; align-items: center; gap: .7rem; }
.mh-compare__product a { color: var(--mh-ink); }
.mh-compare__img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.mh-compare .mh-btn { padding: .5rem .75rem; font-size: .82rem; white-space: normal; max-width: 150px; }

@media (max-width: 700px) {
	.mh-card { grid-template-columns: 1fr; }
	.mh-proscons { grid-template-columns: 1fr; }
	.mh-btn { white-space: normal; }
}

/* Phones: each comparison row becomes a stacked card with labeled specs. */
@media (max-width: 600px) {
	.mh-compare-wrap { overflow: visible; border: 0; }
	.mh-compare thead { display: none; }
	.mh-compare, .mh-compare tbody, .mh-compare tr, .mh-compare th, .mh-compare td { display: block; width: 100%; }
	.mh-compare tr { border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: .85rem 1rem; margin-bottom: .75rem; background: #fff; }
	.mh-compare th, .mh-compare td { border: 0 !important; padding: .25rem 0; }
	.mh-compare td { display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
	.mh-compare td::before { content: attr(data-label); color: var(--mh-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
	.mh-compare td:last-child { display: block; padding-top: .6rem; }
	.mh-compare td:last-child::before { content: none; }
	.mh-compare .mh-btn { display: block; max-width: none; width: 100%; }
}
