/* HV Trades Marketplace Stats — public presentation */
.hvt-ms,
.hvt-ms-recent {
	--hvt-charcoal: #2f3e46;
	--hvt-copper: #b86b45;
	--hvt-teal: #3a6b7f;
	--hvt-gray: #ced4da;
	--hvt-cream: #f8f4f0;
	--hvt-yellow: #f2c94c;
	--hvt-green: #4a7c59;
	--hvt-ink: #1f2a30;
	--hvt-muted: #52616a;
	--hvt-surface: #fff;
	--hvt-line: rgba(47, 62, 70, .15);
	box-sizing: border-box;
	color: var(--hvt-ink);
	font-family: inherit;
	isolation: isolate;
	max-width: 100%;
}

.hvt-ms *,
.hvt-ms *::before,
.hvt-ms *::after,
.hvt-ms-recent *,
.hvt-ms-recent *::before,
.hvt-ms-recent *::after { box-sizing: border-box; }

.hvt-ms { position: relative; overflow: hidden; }
.hvt-ms__inner { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hvt-ms__header { max-width: 760px; margin: 0 0 30px; }
.hvt-ms__eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 10px;
	color: var(--hvt-copper);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .13em;
	line-height: 1.2;
	text-transform: uppercase;
}
.hvt-ms__eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hvt-ms__title,
.hvt-ms-recent__title { margin: 0; color: inherit; font-size: clamp(28px, 3.25vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.hvt-ms__subtitle { max-width: 690px; margin: 13px 0 0; color: var(--hvt-muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; }
.hvt-ms__grid { display: grid; grid-template-columns: repeat(var(--hvt-ms-columns, 5), minmax(0, 1fr)); }
.hvt-ms__stat {
	position: relative;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
a.hvt-ms__stat:focus-visible { outline: 3px solid var(--hvt-yellow); outline-offset: 3px; }
.hvt-ms__icon { display: grid; flex: 0 0 auto; place-items: center; }
.hvt-ms__icon svg { width: 24px; height: 24px; }
.hvt-ms__stat-content { display: flex; min-width: 0; flex-direction: column; }
.hvt-ms__value { display: block; color: inherit; font-size: clamp(30px, 3.25vw, 48px); font-variant-numeric: tabular-nums lining-nums; font-weight: 850; letter-spacing: -.055em; line-height: 1; overflow-wrap: anywhere; }
.hvt-ms__label { display: block; margin-top: 11px; color: inherit; font-size: 14px; font-weight: 800; letter-spacing: .01em; line-height: 1.3; }
.hvt-ms__arrow { position: absolute; right: 18px; bottom: 15px; color: var(--hvt-copper); font-size: 18px; font-weight: 800; }
.hvt-ms__updated { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--hvt-muted); font-size: 12px; font-weight: 650; letter-spacing: .02em; line-height: 1.4; }
.hvt-ms__updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hvt-green); box-shadow: 0 0 0 4px rgba(74, 124, 89, .12); }

/* Cards: the same rounded, copper-accented visual language used across HV Trades. */
.hvt-ms--cards {
	padding: clamp(38px, 5vw, 64px) 0;
	background: var(--hvt-cream);
	border-block: 1px solid rgba(47, 62, 70, .1);
}
.hvt-ms--cards .hvt-ms__grid { gap: 14px; }
.hvt-ms--cards .hvt-ms__stat {
	display: flex;
	min-height: 210px;
	padding: 25px 22px 24px;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	border: 1px solid rgba(58, 107, 127, .2);
	border-radius: 18px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 14px 34px rgba(47, 62, 70, .07);
}
.hvt-ms--cards .hvt-ms__stat::before { content: ""; position: absolute; top: 0; left: 24px; width: 54px; height: 4px; border-radius: 0 0 4px 4px; background: var(--hvt-copper); }
.hvt-ms--cards .hvt-ms__icon { width: 50px; height: 50px; margin-bottom: 24px; border: 1px solid rgba(58, 107, 127, .18); border-radius: 14px; color: var(--hvt-teal); background: rgba(58, 107, 127, .09); }
.hvt-ms--cards .hvt-ms__icon svg { width: 22px; height: 22px; }
.hvt-ms--cards .hvt-ms__stat-content { position: relative; z-index: 1; }
.hvt-ms--cards .hvt-ms__value { color: var(--hvt-ink); }
.hvt-ms--cards .hvt-ms__label { color: var(--hvt-charcoal); }
.hvt-ms--cards a.hvt-ms__stat:hover { border-color: rgba(184, 107, 69, .52); background: #fff; box-shadow: 0 18px 42px rgba(47, 62, 70, .11); transform: translateY(-3px); }

/* Full-width authority band. */
.hvt-ms--band { padding: 30px 0 25px; color: var(--hvt-cream); background: var(--hvt-charcoal); border-bottom: 4px solid var(--hvt-copper); }
.hvt-ms--band::before { content: ""; position: absolute; inset: 0; opacity: .12; background: linear-gradient(115deg, transparent 0 63%, var(--hvt-teal) 63% 72%, transparent 72%); pointer-events: none; }
.hvt-ms--band .hvt-ms__inner { width: min(1320px, calc(100% - 40px)); }
.hvt-ms--band .hvt-ms__header { display: grid; max-width: none; margin: 0 0 22px; grid-template-columns: minmax(220px, .7fr) minmax(300px, 1.3fr); align-items: end; gap: 28px; padding-bottom: 18px; border-bottom: 1px solid rgba(248, 244, 240, .15); }
.hvt-ms--band .hvt-ms__eyebrow { margin-bottom: 6px; color: #e2a27e; }
.hvt-ms--band .hvt-ms__title { color: #fff; font-size: clamp(22px, 2.5vw, 34px); }
.hvt-ms--band .hvt-ms__subtitle { margin: 0; color: rgba(248, 244, 240, .72); font-size: 14px; }
.hvt-ms--band .hvt-ms__grid { gap: 0; }
.hvt-ms--band .hvt-ms__stat { display: flex; min-height: 92px; padding: 6px 22px; align-items: center; gap: 14px; border-right: 1px solid rgba(248, 244, 240, .16); }
.hvt-ms--band .hvt-ms__stat:first-child { padding-left: 0; }
.hvt-ms--band .hvt-ms__stat:last-child { border-right: 0; }
.hvt-ms--band .hvt-ms__icon { width: 31px; height: 31px; color: #e2a27e; }
.hvt-ms--band .hvt-ms__icon svg { width: 22px; height: 22px; }
.hvt-ms--band .hvt-ms__value { color: #fff; font-size: clamp(25px, 2.6vw, 40px); }
.hvt-ms--band .hvt-ms__label { margin-top: 6px; color: rgba(248, 244, 240, .9); font-size: 12.5px; }
.hvt-ms--band .hvt-ms__updated { margin-top: 17px; color: rgba(248, 244, 240, .64); }
.hvt-ms--band a.hvt-ms__stat:hover { background: rgba(255, 255, 255, .055); }

/* Compact: fits archive introductions without becoming visually timid. */
.hvt-ms--compact { padding: 25px 0; background: var(--hvt-surface); border-block: 1px solid var(--hvt-line); }
.hvt-ms--compact .hvt-ms__inner { display: grid; width: min(1280px, calc(100% - 40px)); grid-template-columns: minmax(210px, .65fr) minmax(0, 1.7fr); align-items: center; gap: 30px; }
.hvt-ms--compact .hvt-ms__header { margin: 0; }
.hvt-ms--compact .hvt-ms__eyebrow { margin-bottom: 7px; font-size: 10px; }
.hvt-ms--compact .hvt-ms__title { font-size: clamp(20px, 2vw, 27px); }
.hvt-ms--compact .hvt-ms__subtitle { display: none; }
.hvt-ms--compact .hvt-ms__grid { gap: 0; }
.hvt-ms--compact .hvt-ms__stat { display: flex; min-height: 66px; padding: 5px 16px; align-items: center; gap: 11px; border-left: 1px solid var(--hvt-line); }
.hvt-ms--compact .hvt-ms__icon { width: 28px; height: 28px; color: var(--hvt-teal); }
.hvt-ms--compact .hvt-ms__icon svg { width: 19px; height: 19px; }
.hvt-ms--compact .hvt-ms__value { font-size: clamp(23px, 2vw, 32px); }
.hvt-ms--compact .hvt-ms__label { margin-top: 4px; font-size: 11px; }
.hvt-ms--compact .hvt-ms__updated { grid-column: 2; margin: 8px 0 0 16px; }
.hvt-ms--compact a.hvt-ms__stat:hover { color: var(--hvt-teal); }

/* Editorial: one dominant signal with supporting proof. */
.hvt-ms--editorial { padding: clamp(46px, 6vw, 82px) 0; color: var(--hvt-cream); background: var(--hvt-charcoal); }
.hvt-ms--editorial::before { content: ""; position: absolute; inset: 0; opacity: .16; background: radial-gradient(circle at 85% 25%, var(--hvt-teal) 0 16%, transparent 16.2%), linear-gradient(135deg, transparent 0 76%, var(--hvt-copper) 76% 77%, transparent 77%); pointer-events: none; }
.hvt-ms--editorial .hvt-ms__header { max-width: 800px; margin-bottom: 38px; }
.hvt-ms--editorial .hvt-ms__eyebrow { color: #e2a27e; }
.hvt-ms--editorial .hvt-ms__title { color: #fff; }
.hvt-ms--editorial .hvt-ms__subtitle { color: rgba(248, 244, 240, .72); }
.hvt-ms--editorial .hvt-ms__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid rgba(248, 244, 240, .14); background: rgba(248, 244, 240, .14); }
.hvt-ms--editorial .hvt-ms__stat { min-height: 170px; padding: 24px; background: rgba(31, 42, 48, .95); }
.hvt-ms--editorial .hvt-ms__stat--lead { grid-row: span 2; grid-column: span 2; min-height: 341px; padding: 34px; background: var(--hvt-teal); }
.hvt-ms--editorial .hvt-ms__icon { width: 38px; height: 38px; margin-bottom: 30px; color: #e2a27e; }
.hvt-ms--editorial .hvt-ms__stat--lead .hvt-ms__icon { width: 50px; height: 50px; color: #fff; }
.hvt-ms--editorial .hvt-ms__stat--lead .hvt-ms__icon svg { width: 33px; height: 33px; }
.hvt-ms--editorial .hvt-ms__stat-content { justify-content: flex-end; }
.hvt-ms--editorial .hvt-ms__value { color: #fff; font-size: clamp(34px, 4.3vw, 62px); }
.hvt-ms--editorial .hvt-ms__stat--lead .hvt-ms__value { font-size: clamp(52px, 8vw, 92px); }
.hvt-ms--editorial .hvt-ms__label { color: rgba(248, 244, 240, .94); }
.hvt-ms--editorial .hvt-ms__updated { color: rgba(248, 244, 240, .62); }
.hvt-ms--editorial a.hvt-ms__stat:hover { background: rgba(58, 107, 127, .42); }

/* Theme modifiers retain layout hierarchy. */
.hvt-ms--dark:not(.hvt-ms--band):not(.hvt-ms--editorial) { --hvt-surface: #26353c; --hvt-line: rgba(255,255,255,.13); color: var(--hvt-cream); background-color: #26353c; }
.hvt-ms--dark .hvt-ms__subtitle,
.hvt-ms--dark .hvt-ms__updated { color: rgba(248, 244, 240, .68); }
.hvt-ms--dark.hvt-ms--cards .hvt-ms__stat { border-color: rgba(248, 244, 240, .16); background: rgba(31, 42, 48, .95); }
.hvt-ms--dark.hvt-ms--cards .hvt-ms__value,
.hvt-ms--dark.hvt-ms--cards .hvt-ms__label { color: var(--hvt-cream); }
.hvt-ms--light { --hvt-surface: #fff; background-color: #fff; }

/* Recent profile previews. */
.hvt-ms-recent { width: min(1180px, calc(100% - 40px)); margin: 46px auto; }
.hvt-ms-recent__head { margin-bottom: 22px; }
.hvt-ms-recent__title { font-size: clamp(24px, 2.8vw, 36px); }
.hvt-ms-recent__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hvt-ms-recent__card { margin: 0; border: 1px solid var(--hvt-line); border-radius: 6px; background: #fff; }
.hvt-ms-recent__link { position: relative; display: grid; min-height: 132px; padding: 18px; grid-template-columns: 58px minmax(0, 1fr); gap: 15px; color: var(--hvt-ink); text-decoration: none; }
.hvt-ms-recent__link:focus-visible { outline: 3px solid var(--hvt-yellow); outline-offset: 2px; }
.hvt-ms-recent__logo { display: grid; width: 58px; height: 58px; overflow: hidden; place-items: center; border: 1px solid var(--hvt-line); border-radius: 5px; color: var(--hvt-teal); background: var(--hvt-cream); font-size: 18px; font-weight: 850; }
.hvt-ms-recent__logo img { width: 100%; height: 100%; object-fit: contain; }
.hvt-ms-recent__trade { color: var(--hvt-copper); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.hvt-ms-recent__body h3 { margin: 4px 0 4px; color: inherit; font-size: 16px; line-height: 1.22; }
.hvt-ms-recent__body p { margin: 0; color: var(--hvt-muted); font-size: 12px; }
.hvt-ms-recent__rating { display: inline-block; margin-top: 7px; color: var(--hvt-ink); font-size: 12px; font-weight: 750; }
.hvt-ms-recent__rating > span:first-child { color: #b18000; }
.hvt-ms-recent__rating > span:last-child { color: var(--hvt-muted); font-weight: 500; }
.hvt-ms-recent__cta { position: absolute; right: 17px; bottom: 14px; color: var(--hvt-teal); font-size: 11px; font-weight: 800; }
.hvt-ms-recent__link:hover { background: var(--hvt-cream); }

.hvt-ms-notice { padding: 12px 15px; border-left: 4px solid #b86b45; color: #1f2a30; background: #f8f4f0; }

@media (max-width: 1050px) {
	.hvt-ms__grid { grid-template-columns: repeat(min(var(--hvt-ms-columns, 5), 3), minmax(0, 1fr)); }
	.hvt-ms--editorial .hvt-ms__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hvt-ms--editorial .hvt-ms__stat--lead { grid-column: span 1; }
	.hvt-ms--compact .hvt-ms__inner { display: block; }
	.hvt-ms--compact .hvt-ms__header { margin-bottom: 18px; }
	.hvt-ms--compact .hvt-ms__updated { margin-left: 0; }
	.hvt-ms-recent__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.hvt-ms__inner,
	.hvt-ms--band .hvt-ms__inner,
	.hvt-ms--compact .hvt-ms__inner,
	.hvt-ms-recent { width: min(100% - 28px, 1180px); }
	.hvt-ms__header { margin-bottom: 24px; }
	.hvt-ms__grid,
	.hvt-ms--editorial .hvt-ms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hvt-ms--cards .hvt-ms__grid { gap: 12px; }
	.hvt-ms--cards .hvt-ms__stat { min-height: 188px; padding: 20px 17px; border-radius: 15px; }
	.hvt-ms--cards .hvt-ms__icon { margin-bottom: 17px; }
	.hvt-ms--band .hvt-ms__header { display: block; }
	.hvt-ms--band .hvt-ms__subtitle { margin-top: 10px; }
	.hvt-ms--band .hvt-ms__stat { padding: 13px 12px; border-right: 0; border-bottom: 1px solid rgba(248, 244, 240, .14); }
	.hvt-ms--band .hvt-ms__stat:nth-last-child(-n+2) { border-bottom: 0; }
	.hvt-ms--band .hvt-ms__stat:first-child { padding-left: 12px; }
	.hvt-ms--compact .hvt-ms__stat { padding: 10px 9px; border-top: 1px solid var(--hvt-line); border-left: 0; }
	.hvt-ms--editorial .hvt-ms__stat--lead { grid-row: auto; grid-column: span 2; min-height: 245px; }
	.hvt-ms-recent__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
	.hvt-ms__value { font-size: 29px; }
	.hvt-ms__label { font-size: 12px; }
	.hvt-ms--cards .hvt-ms__stat { min-height: 164px; padding: 17px 14px 18px; border-radius: 13px; }
	.hvt-ms--cards .hvt-ms__stat::before { left: 15px; width: 42px; }
	.hvt-ms--cards .hvt-ms__icon { width: 40px; height: 40px; border-radius: 11px; }
	.hvt-ms--band .hvt-ms__stat { display: block; min-height: 88px; }
	.hvt-ms--band .hvt-ms__icon { margin-bottom: 7px; }
	.hvt-ms--editorial .hvt-ms__stat { min-height: 145px; padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.hvt-ms *, .hvt-ms *::before, .hvt-ms *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
