/* Mattress Finder style `cards` (plan 060 L1d): large picture tiles in the shared card, 2 x 2 on phones and 4 across wide;
   picked = red border, pale ground, a tick; the question slides in from the side. */
.wmf-style-cards .wmf-question {
	max-width: 880px;
}
.wmf-root .wmf-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 4px 0 8px;
}
.wmf-root .wmf-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 150px;
	width: 100%;
	padding: 18px 10px 16px;
	border: 2px solid var(--wmf-line);
	border-radius: var(--wmf-panel-radius);
	background: var(--wmf-card);
	color: var(--wmf-ink);
	font: inherit;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.wmf-root .wmf-tile:hover {
	border-color: var(--wmf-muted);
	background: var(--wmf-card);
	color: var(--wmf-ink);
	transform: translateY(-2px);
}
.wmf-root .wmf-tile[aria-pressed="true"] {
	border-color: var(--wmf-accent);
	background: var(--wmf-pale);
}
.wmf-tile__art svg {
	display: block;
	width: 96px;
	height: 64px;
	fill: none;
	stroke: var(--wmf-accent);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.wmf-theme-night .wmf-tile__art svg {
	stroke: var(--wmf-accent-ink);
}
.wmf-root .wmf-tile__label {
	font-size: 17px;
	line-height: 1.25;
}
.wmf-tile__type {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.1;
}
.wmf-tile__type b {
	font-family: var(--wmf-heading-font);
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.wmf-tile__type small {
	color: var(--wmf-muted);
	font-size: 14px;
	font-weight: 600;
}
.wmf-root .wmf-tile__tick {
	position: absolute;
	top: 8px;
	right: 8px;
	display: none;
	width: 22px;
	height: 22px;
	padding: 3px;
	border-radius: 50%;
	background: var(--wmf-accent);
}
.wmf-tile__tick svg {
	display: block;
	fill: none;
	stroke: var(--wmf-on-accent);
	stroke-width: 3;
}
.wmf-tile[aria-pressed="true"] .wmf-tile__tick {
	display: block;
}
/* A word tile ("Not sure") is set smaller than a number; many choices (the sizes) make shorter tiles. */
.wmf-root .wmf-tile__type--word b {
	font-size: 20px;
}
/* R24: a range ("100–120") never breaks at its dash; it is set smaller so it fits a phone's tile. */
.wmf-root .wmf-tile__type--long b {
	font-size: 26px;
	white-space: nowrap;
}
.wmf-root .wmf-tiles--many .wmf-tile {
	min-height: 108px;
	padding: 12px 8px;
	gap: 6px;
}
.wmf-root .wmf-tiles--many .wmf-tile__art svg {
	width: 72px;
	height: 48px;
}
/* The slide from the side (forward from the right, Back from the left). */
.wmf-root .wmf-slide--next {
	animation: wmf-slide-next 0.3s ease-out;
}
.wmf-root .wmf-slide--back {
	animation: wmf-slide-back 0.3s ease-out;
}
@keyframes wmf-slide-next {
	from {
		opacity: 0;
		transform: translateX(32px);
	}
}
@keyframes wmf-slide-back {
	from {
		opacity: 0;
		transform: translateX(-32px);
	}
}
@container wmf (min-width: 640px) {
	.wmf-root .wmf-tiles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 14px;
	}
	.wmf-root .wmf-tiles--two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.wmf-root .wmf-tile {
		min-height: 180px;
	}
	.wmf-root .wmf-tiles--many .wmf-tile {
		min-height: 132px;
	}
	.wmf-root .wmf-tile__type--long b {
		font-size: 34px;
	}
}
@container wmf (max-width: 340px) {
	.wmf-tile__type b {
		font-size: 26px;
	}
	.wmf-root .wmf-tile__type--long b {
		font-size: 21px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.wmf-root .wmf-tile,
	.wmf-root .wmf-slide {
		transition: none;
		transform: none;
		animation: none;
	}
}
.wmf-nomotion .wmf-tile,
.wmf-nomotion .wmf-slide {
	transition: none;
	transform: none !important;
	animation: none !important;
}
