/*
 * The THEMIS simulation films (includes/themis-simulations.php).
 *
 * The renders have a black background with the colour scale on the right, so
 * each sits in a black frame of its own rather than straight on the midnight
 * band, where the edge of the picture would show as a grey-blue seam.
 */

.amsis-themis-sims__head {
	max-width: 720px;
	margin: 0 auto clamp(2rem, 4vw, 3rem);
	text-align: center;
}

.amsis-themis-sims__head > * { margin-inline: auto; }

.amsis-themis-sims__head h2 { margin-block: 0.25rem 1rem; }

.amsis-themis-sims__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 900px) {
	.amsis-themis-sims__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.amsis-themis-sims__film { margin: 0; }

.amsis-themis-sims__frame {
	aspect-ratio: 16 / 9;
	background: #000;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--amsis-radius, 12px);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.amsis-themis-sims__frame video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.amsis-themis-sims__film figcaption {
	margin-top: 1rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.75);
}

.amsis-themis-sims__film figcaption strong {
	display: block;
	margin-bottom: 0.2rem;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--white);
}

/* ---- Early access, under the films ----------------------------------------
   The words on the left, the form on the right; one above the other on a
   phone. The form card itself is styled by early-access.css. */
.amsis-themis-ea {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-top: clamp(2.5rem, 5vw, 4rem);
	border-top: 1px solid rgba(120, 222, 230, 0.18);
	scroll-margin-top: calc(var(--amsis-header-height, 88px) + 1rem);
}

@media (min-width: 900px) {
	.amsis-themis-ea { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.amsis-themis-ea__title {
	margin: 0.25rem 0 1rem;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	line-height: 1.1;
	color: var(--wp--preset--color--white);
}

.amsis-themis-ea__lead {
	margin: 0 0 1.5rem;
	max-width: 34em;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.85);
}

.amsis-themis-ea__facts {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
}

.amsis-themis-ea__facts li {
	padding-left: 0.9rem;
	border-left: 2px solid var(--wp--preset--color--turquoise-deep);
	font-weight: 600;
	color: var(--wp--preset--color--white);
}

/* The card fills its column; one class more than early-access.css, whichever
   of the two sheets loads last. */
.amsis-themis-sims .amsis-themis-ea .amsis-form-card.amsis-ea__card { max-width: none; }
