/* The real screens. The staff's share one cell of the grid and take turns in it, so the page
   never jumps when they change; the wrapper steps aside so a tab and its panel can sit in
   different rows while staying siblings of the radio that picks them. */
.vamora-serve-shots {
	padding: var(--serve-block) var(--serve-inset);
	background: radial-gradient(40% 50% at 100% 40%, #f0e3fd 0%, transparent 100%);
}

.vamora-serve-screens {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.vamora-serve-screen {
	display: contents;
}

.vamora-serve-screen__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.vamora-serve-screen__tab {
	position: relative;
	padding: 0.625em 0.5em;
	border: 1px solid var(--serve-glass-edge);
	border-radius: 999px;
	background: var(--serve-glass);
	box-shadow: var(--serve-glass-shadow);
	color: var(--home-soft);
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: var(--home-track-snug);
	text-align: center;
}

.vamora-serve-screen__input:checked + .vamora-serve-screen__tab {
	border-color: var(--home-button-edge);
	background: var(--home-button);
	color: var(--home-white);
}

.vamora-serve-screen__input:focus-visible + .vamora-serve-screen__tab {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.vamora-serve-screen__panel {
	grid-row: 3;
	grid-column: 1 / -1;
	margin: 0.5rem 0 0;
	padding: 0.625rem 0.625rem 1rem;
	border: 1px solid var(--serve-glass-edge);
	border-radius: 1.25rem;
	background: var(--serve-glass);
	box-shadow: var(--serve-glass-shadow);
	opacity: 0;
	visibility: hidden;
}

.vamora-serve-screen__input:checked ~ .vamora-serve-screen__panel {
	opacity: 1;
	visibility: visible;
}

/* A phone gets one readable part of each screen; from tablet up it is the whole screen. */
.vamora-serve-screen__frame {
	overflow: hidden;
	border-radius: 0.75rem;
	box-shadow: 0 0 0 1px rgb(122 60 235 / 0.12);
	aspect-ratio: 785 / 610;
}

.vamora-serve-screen__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vamora-serve-screen__text {
	margin: 0.75rem 0.5rem 0;
	color: var(--home-soft);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.36;
	text-align: center;
}

.vamora-serve-shots__list {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.vamora-serve-shot {
	padding: 0.625rem 0.625rem 1rem;
	border: 1px solid var(--serve-glass-edge);
	border-radius: 1.25rem;
	background: var(--serve-glass);
	box-shadow: var(--serve-glass-shadow);
}

.vamora-serve-shot__frame {
	overflow: hidden;
	border-radius: 0.75rem;
	box-shadow: 0 0 0 1px rgb(122 60 235 / 0.12);
	aspect-ratio: 4 / 3;
}

.vamora-serve-shot__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The table card is upright, so it stands whole on a tile rather than filling the frame. */
.vamora-serve-shot--card .vamora-serve-shot__frame {
	padding: 0.75rem;
	background: var(--serve-tile);
}

.vamora-serve-shot--card .vamora-serve-shot__image {
	object-fit: contain;
}

.vamora-serve-shot__title {
	margin: 0.875rem 0.5rem 0;
	font-size: 1.125rem;
	line-height: 1.2;
	letter-spacing: var(--home-track-snug);
}

.vamora-serve-shot__text {
	margin: 0.25rem 0.5rem 0;
	color: var(--home-soft);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.36;
}

@media (min-width: 37.5em) {
	.vamora-serve-screens {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.vamora-serve-screen__panel {
		grid-row: 2;
	}
}

@media (min-width: 48em) {
	.vamora-serve-screen__frame {
		aspect-ratio: 1900 / 908;
	}

	.vamora-serve-shots__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	/* The cards take the screens' scale too, so the two rows stay one width. */
	.vamora-serve-screens,
	.vamora-serve-shots__list {
		--serve-tall: 531;
	}

	.vamora-serve-screens {
		gap: calc(8 * var(--u));
		width: calc(934 * var(--u));
		margin: calc(18 * var(--u)) auto 0;
	}

	.vamora-serve-screen__tab {
		padding: calc(9 * var(--u)) calc(12 * var(--u));
		font-size: max(calc(12.6 * var(--u)), 0.8125rem);
		line-height: calc(15.4 * var(--u));
	}

	.vamora-serve-screen__panel {
		margin-top: calc(2 * var(--u));
		padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(12 * var(--u));
		border-radius: calc(18 * var(--u));
	}

	.vamora-serve-screen__frame {
		border-radius: calc(11 * var(--u));
	}

	.vamora-serve-screen__text {
		margin: calc(10 * var(--u)) calc(7 * var(--u)) 0;
		font-size: max(calc(12.8 * var(--u)), 0.8125rem);
		line-height: calc(17 * var(--u));
	}

	.vamora-serve-shots__list {
		gap: calc(14 * var(--u));
		width: calc(934 * var(--u));
		margin: calc(14 * var(--u)) auto 0;
	}

	.vamora-serve-shot {
		padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(14 * var(--u));
		border-radius: calc(18 * var(--u));
	}

	.vamora-serve-shot__frame {
		border-radius: calc(11 * var(--u));
	}

	.vamora-serve-shot--card .vamora-serve-shot__frame {
		padding: calc(12 * var(--u));
	}

	.vamora-serve-shot__title {
		margin: calc(11 * var(--u)) calc(7 * var(--u)) 0;
		font-size: max(calc(14.4 * var(--u)), 0.9375rem);
		line-height: calc(18 * var(--u));
	}

	.vamora-serve-shot__text {
		margin: calc(3 * var(--u)) calc(7 * var(--u)) 0;
		font-size: var(--serve-small);
		line-height: calc(14.4 * var(--u));
	}
}
