/*
 * Shoe Size Converter — the foot-length hero and its scale drawing.
 *
 * The select, size-card grid, skeleton, result actions and print sheet come
 * from st-core.css. Only what is specific to this tool belongs here.
 */

/* -------------------------------------------------------------- form -- */

.st-shoesize__fields {
	grid-template-columns: 1fr;
}

.st-field--full {
	grid-column: 1 / -1;
}

/* A plain help panel, with no diagram column beside it. */
.st-help__body--plain {
	display: block;
}

.st-help__steps {
	margin: 0;
	padding-left: 20px;
	color: var(--st-ink-soft);
	font-size: 15.5px;
	line-height: 1.55;
}

.st-help__steps li {
	margin-bottom: 7px;
}

.st-help__steps li:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------ result -- */

.st-shoe-result {
	margin-top: 24px;
	padding: 24px 18px;
	background: var(--st-white);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius-lg);
	box-shadow: var(--st-shadow);
	animation: st-rise-shoe .32s ease both;
}

@keyframes st-rise-shoe {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

/*
 * Foot length leads, because it is the only figure that survives a change of
 * country or brand. The size grid below it is the convenience, not the answer.
 */

.st-shoe-hero {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 18px;
	align-items: center;
}

.st-shoe-hero__fig {
	padding: 10px;
	background: var(--st-cream);
	border-radius: var(--st-radius);
}

.st-shoe-hero__value {
	margin: 4px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
}

.st-shoe-hero__cm {
	color: var(--st-wine);
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
}

.st-shoe-hero__unit {
	margin-left: 3px;
	font-size: 20px;
	font-weight: 700;
}

.st-shoe-hero__in {
	color: var(--st-ink-soft);
	font-size: 17px;
	font-weight: 600;
}

.st-shoe-hero__note {
	margin: 10px 0 0;
	font-size: 16px;
	line-height: 1.5;
}

/* ------------------------------------------------------- women / men -- */

.st-scale-badge {
	margin: 18px 0 0;
	color: var(--st-ink-soft);
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.st-scale-badge strong {
	color: var(--st-wine);
}

/* "Same either way" on the EU and JP cards — those systems measure length. */
.st-size-card__flag--same {
	color: #5f6e51;
}

/*
 * The other scale's equivalent. This is the answer people actually come for:
 * unisex sneakers are listed in men's sizes.
 */

.st-cross {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin-top: 16px;
	background: var(--st-wine-tint);
	border-left-color: var(--st-wine);
}

.st-cross__values {
	display: flex;
	gap: 14px;
}

.st-cross__pair {
	color: var(--st-ink);
	font-size: 20px;
}

.st-cross__sys {
	color: var(--st-ink-soft);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
}

.st-cross__note {
	flex: 1 1 100%;
	color: var(--st-ink-soft);
	font-size: 14.5px;
	line-height: 1.5;
}

/* ------------------------------------------------------------- notes -- */

.st-note--between {
	background: var(--st-sage-tint);
	border-left-color: var(--st-sage);
}

.st-shoe-drift {
	margin-top: 16px;
	background: var(--st-cream);
	border-left-color: var(--st-wine);
	font-size: 15.5px;
}

/* --------------------------------------------------------- foot figure -- */

.st-foot {
	display: block;
	width: 100%;
	height: auto;
}

.st-foot__shape {
	fill: var(--st-wine);
	fill-opacity: .12;
	stroke: var(--st-wine);
	stroke-width: 3;
	stroke-linejoin: round;
}

.st-foot__rule,
.st-foot__tick {
	stroke: var(--st-wine);
	stroke-width: 2.5;
	opacity: .6;
}

.st-foot__rule {
	stroke-dasharray: 5 5;
}

/* ------------------------------------------------------------ desktop -- */

@media (min-width: 768px) {
	.st-shoesize__fields {
		grid-template-columns: 1fr 1fr;
	}

	.st-shoe-result {
		padding: 32px 30px;
	}

	.st-shoe-hero {
		grid-template-columns: 96px 1fr;
		gap: 28px;
	}

	.st-shoe-hero__cm {
		font-size: 52px;
	}
}
