@use "tokens" as *;

// Gallery page only.
.ssw-kit {
	padding: 24px 20px 80px;
	background: $canvas;
	min-height: 100vh;
}

// WordPress 6.2 draws admin <code> on a grey tint with too little contrast for the caption colour.
.ssw-kit code {
	color: $ink;
	background: rgba(0, 0, 0, 0.07);
}

.ssw-kit__title {
	font-size: 23px;
	font-weight: 400;
	margin: 0 0 4px;
	color: $ink;
}

.ssw-kit__section {
	margin-top: 28px;

	> h2 {
		font-size: 14px;
		font-weight: 600;
		color: $ink;
		margin: 0 0 10px;
	}
}

.ssw-kit__samples {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
}

// A sample reproduces its prototype context: a white card, unpadded, at the reference width.
.ssw-kit__sample {
	background: #fff;
	position: relative;

	&.is-bare {
		background: transparent;
	}
}

.ssw-kit__name {
	font-size: 11px;
	color: $text-2; // gallery chrome only; 4.5:1 on the canvas
	margin-bottom: 4px;
	font-family: $font-mono;
}
