/*
 * Trust bar — DESIGN.md §13. Single horizontal panel, thin technical
 * icons, strong digit + short caption, no colorful icon fills.
 */

.trust-bar {
	position: relative;
	background: var(--ark-bg-850);
	border-block: 1px solid var(--ark-border-soft);
	padding-block: 24px;
}

.trust-bar__grid {
	display: grid;
	grid-template-columns: repeat(var(--ark-trust-count, 5), 1fr);
	gap: 24px;
}

.trust-bar__grid[data-count="1"] { --ark-trust-count: 1; }
.trust-bar__grid[data-count="2"] { --ark-trust-count: 2; }
.trust-bar__grid[data-count="3"] { --ark-trust-count: 3; }
.trust-bar__grid[data-count="4"] { --ark-trust-count: 4; }

.trust-bar__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-inline-start: 20px;
	border-left: 1px solid var(--ark-border-soft);
}

.trust-bar__item:first-child {
	border-left: none;
	padding-inline-start: 0;
}

.trust-bar__icon {
	display: block;
	width: 22px;
	height: 22px;
	color: var(--ark-text-muted);
	margin-bottom: 6px;
}

.trust-bar__icon svg {
	width: 100%;
	height: 100%;
}

.trust-bar__value {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--ark-text-primary);
}

.trust-bar__label {
	font-size: 0.85rem;
	color: var(--ark-text-secondary);
}

.trust-bar__note {
	font-size: 0.75rem;
	color: var(--ark-text-muted);
}

@media (max-width: 900px) {
	.trust-bar__grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 24px;
	}

	.trust-bar__item:nth-child(2n+1) {
		border-left: none;
		padding-inline-start: 0;
	}
}

@media (max-width: 480px) {
	.trust-bar__grid {
		grid-template-columns: 1fr;
	}

	.trust-bar__item {
		border-left: none;
		padding-inline-start: 0;
		border-top: 1px solid var(--ark-border-soft);
		padding-top: 16px;
	}

	.trust-bar__item:first-child {
		border-top: none;
		padding-top: 0;
	}
}
