/*
 * The "Register interest" card — kids sewing in the school holidays.
 *
 * On two templates (All Classes, and the Sewing category page), so it has its own file rather
 * than living in all-classes.css, which is only loaded on one of them. Enqueued site-wide beside
 * sale.css: it is a handful of rules, and the alternative is a second conditional enqueue that
 * has to be kept in step with wherever the partial is included next.
 *
 * Deliberately NOT a card like the class cards around it. It is not a class and cannot be booked,
 * and dressing it as one would put a "Register Interest" button where every other card has
 * "See Dates" — a different promise in the same clothes. A tinted band, one line, one button.
 */

.sc-kids-interest {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	/* Left, not centred, for the same reason the search copy below it is: the cards, the chips
	   and the count line above all start at the column's left edge. */
	margin: 3rem auto 0 0;
	max-width: 46rem;
	padding: 1.25rem 1.5rem;
	border-radius: 1rem;
	/* The blush the nav's own cards use, so it reads as part of the site and not as an advert. */
	background: var(--sc-nav-blush, #fdeef2);
}

.sc-kids-interest-body {
	flex: 1 1 auto;
	min-width: 0;
}

.sc-kids-interest-title {
	margin: 0 0 .35rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.sc-kids-interest-text {
	margin: 0;
	font-size: .9rem;
	line-height: 1.55;
	color: rgba(0, 0, 0, .72);
}

/* flex-shrink 0 and white-space nowrap: the button is two words and should stay on one line
   whatever the text beside it does. */
.sc-kids-interest-button {
	flex: 0 0 auto;
	white-space: nowrap;
}

/* Stacked on a phone, with the button full width — a 180px button floated beside two lines of
   text at 390px leaves the text about nine characters wide. */
@media (max-width: 575px) {
	.sc-kids-interest {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		margin-top: 2rem;
		padding: 1.1rem 1.15rem;
	}

	.sc-kids-interest-button {
		width: 100%;
		text-align: center;
	}
}


/* ── The two ways into a kids sewing class ──────────────────────────────────────────────────────
   Side by side on a desktop, stacked on a phone. Two panels rather than one button each, because
   the two are genuinely different offers and a visitor has to read them to choose — a row of two
   buttons would make them look like alternatives of the same thing. */
/* ── The pathway: start here, then next step, then a different thing ───────────────────────────
   Stacked at every width, and that is measurement rather than preference: these sit in the class
   page's right-hand column, which does not grow with the page — 239px per panel at 1280, 212px
   at 1440 as the layout's max-width bites, 292px at 1920. Side by side would only be worth having
   if the column were wide enough somewhere, and it never is. Stacking also makes the order read
   as an order, which is the point of labelling them. */
.sc-kids-options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .85rem;
	margin-top: 1.5rem;
}

.sc-kids-option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .5rem;
	padding: 1.15rem 1.25rem;
	border-radius: 1rem;
	background: var(--sc-nav-blush, #fdeef2);
}

/* The two rungs of the pathway carry a rail down their left edge; the private session does not,
   because it is not a step on the same journey. */
.sc-kids-option--step {
	border-left: 4px solid #fe415f;
}

.sc-kids-option--aside {
	background: #f7f4f2;
}

.sc-kids-step {
	margin: 0;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #fe415f;
}

.sc-kids-option-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.sc-kids-option-text {
	margin: 0;
	font-size: .88rem;
	line-height: 1.55;
	color: rgba(0, 0, 0, .72);
}

/* The hard facts, as a list, because they are scanned rather than read. */
.sc-kids-facts {
	margin: .15rem 0 0;
	padding: 0;
	list-style: none;
	font-size: .84rem;
	line-height: 1.5;
	color: rgba(0, 0, 0, .78);
}

.sc-kids-facts li {
	position: relative;
	padding-left: .9rem;
}

.sc-kids-facts li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .55em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #fe415f;
}

.sc-kids-when {
	margin: .2rem 0 0;
	font-size: .88rem;
	line-height: 1.45;
	font-weight: 600;
}

.sc-kids-when-label { font-weight: 700; }

.sc-kids-when--none {
	font-weight: 500;
	color: rgba(0, 0, 0, .66);
}

.sc-kids-seats {
	margin: 0;
	font-size: .82rem;
	font-weight: 700;
	color: #d9304b;
}

/* margin-top auto so the buttons sit at the foot of each card however long its copy is; a button
   that cannot fit its own label wraps rather than growing through the side of the panel, which
   is what "Register Interest" did at 768px in a two-column layout. */
.sc-kids-option .button {
	margin-top: auto;
	align-self: stretch;
	text-align: center;
	white-space: normal;
	min-width: 0;
	max-width: 100%;
}

@media (max-width: 991px) {
	.sc-kids-options {
		margin-top: 1.25rem;
	}
}
