/**
 * Classes landing (/classes) — page-scoped styles.
 *
 * Loads on top of schools.css: the <main> carries both .schools-landing (so
 * every sl-* primitive — sections, buttons, cards, forms, FAQ, steps —
 * applies) and .classes-landing for the classes-only blocks below (pl-*).
 * Hand-written, not Tailwind: the precompiled tailwind.min.css can't supply
 * new utilities.
 *
 * Same monochrome palette as the rest of the site; the only new shapes are
 * the school-location cards (with an enrollment-status badge), the
 * empty-state notice and the school <select> in the application form.
 *
 * @package Robo9
 */

/* ---- Hero region note (non-RU versions only) ------------------------------ */

.pl-region-note {
	margin: 18px 0 0;
	font-size: 0.9rem;
	color: var(--sl-on-dark-soft);
}

.pl-region-note a {
	color: var(--sl-on-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---- Schools with open enrollment ------------------------------------------ */

.pl-locations {
	grid-template-columns: repeat(3, 1fr);
}

.pl-location {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pl-location__status {
	align-self: flex-start;
	margin: 0;
	padding: 4px 10px;
	font-family: "Space Grotesk", "Manrope", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 1px solid var(--sl-line-strong);
	border-radius: 999px;
	background: var(--sl-white);
	color: var(--sl-ink);
}

.pl-location__status--soon {
	color: var(--sl-muted);
}

.pl-location__status--running {
	color: var(--sl-muted);
	background: transparent;
}

.pl-location__school {
	margin: 0;
	font-family: "Space Grotesk", "Manrope", sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
}

.pl-location__district {
	margin: 0;
	font-size: 0.9rem;
	color: var(--sl-muted);
}

.pl-location__facts {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 0.9rem;
	color: var(--sl-ink);
}

.pl-location__facts li {
	white-space: nowrap;
}

.pl-location__note {
	margin: 0;
	font-size: 0.9rem;
	color: var(--sl-muted);
}

.pl-location__apply {
	margin-top: auto;
	align-self: flex-start;
}

/* Empty state — shown until the first school card is published. */

.pl-locations-empty {
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 32px;
	text-align: center;
	border: 1px dashed var(--sl-line-strong);
	border-radius: var(--sl-radius);
	background: var(--sl-bg-soft);
}

.pl-locations-empty__title {
	margin: 0 0 10px;
	font-family: "Space Grotesk", "Manrope", sans-serif;
	font-size: 1.3rem;
	font-weight: 600;
}

.pl-locations-empty__desc {
	margin: 0 0 22px;
	color: var(--sl-muted);
}

/* ---- Application form: the school <select> --------------------------------- */

/* schools.css only styles input/textarea; give the select the same skin. */
.classes-landing .sl-field select {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 0.98rem;
	color: var(--sl-ink);
	background: var(--sl-bg-soft);
	border: 1px solid var(--sl-line-strong);
	border-radius: var(--sl-radius);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.classes-landing .sl-field select:focus {
	outline: none;
	border-color: var(--sl-black);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
	background: var(--sl-white);
}

/* ---- Responsive ------------------------------------------------------------ */

@media (max-width: 960px) {
	.pl-locations {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.pl-locations {
		grid-template-columns: 1fr;
	}
}

/* ---- Step & format card previews ------------------------------------------ */

/* Classes has 4 steps (schools has 5) — give each its own column so the
   previews line up at one size. */
.pl-steps {
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.pl-steps .sl-step {
	overflow: hidden;
}

/* Full-bleed preview on top of the padded card (sl-step padding 26px/20px). */
.pl-steps .pl-step__media {
	margin: -26px -20px 16px;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-bottom: 1px solid var(--sl-line);
}

.pl-steps .pl-step__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 1024px) {
	.pl-steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.pl-steps {
		grid-template-columns: 1fr;
	}
}

/* Format cards (sl-trustcard padding 26px). */
.sl-trustcards .sl-trustcard {
	overflow: hidden;
}

.pl-card__media {
	margin: -26px -26px 16px;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-bottom: 1px solid var(--sl-line);
}

.pl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
