/**
 * Membership, the door into the Lab, and the grown-ups page.
 *
 * The theme owns the look; this file only adds the handful of components the
 * theme has no reason to know about. Everything is drawn from the theme's own
 * custom properties, with fallbacks, so dropping the plugin onto a different
 * theme degrades to something plain rather than something broken.
 */

/* --------------------------------------------------------- the door --- */

.lab-gate {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: clamp( 16px, 3vw, 32px );
	align-items: start;
	background: var( --blue-95, #f4f8fe );
	border: 2px solid var( --line, #c8d0da );
	border-radius: 20px;
	padding: clamp( 20px, 3.4vw, 36px );
	margin-bottom: clamp( 22px, 3vw, 36px );
}

.lab-gate__art svg,
.lab-gate__art img {
	width: 100%;
	height: auto;
}

.lab-gate h1 {
	margin-top: 0;
}

.lab-gate__ways {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

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

	.lab-gate__art {
		width: 96px;
	}
}

/* The "email me a link" form, used on the door and reused on other pages. */

.lab-find {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px dashed var( --line, #c8d0da );
}

.lab-find label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.lab-find__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.lab-find__row input {
	flex: 1 1 220px;
	min-height: 46px;
	padding: 10px 14px;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 2px solid var( --line, #c8d0da );
	border-radius: 12px;
}

.lab-find__row input:focus-visible {
	outline: 3px solid var( --blue, #2f6feb );
	outline-offset: 2px;
}

.lab-find__said,
.parent-kids__said,
.parent-cancel__said {
	margin: 10px 0 0;
	font-size: .94rem;
	min-height: 1.2em;
}

.is-good {
	color: var( --teal, #12a594 );
}

.is-bad {
	color: var( --coral, #ff6b4a );
}

/* The strip above an open Lab. */

.lab-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 16px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: var( --mist, #eef2f7 );
	font-size: .94rem;
}

.lab-bar__links {
	display: flex;
	gap: 16px;
}

/* ------------------------------------------------------ the notices --- */

.notice {
	padding: 14px 18px;
	border-radius: 14px;
	border: 2px solid var( --line, #c8d0da );
	background: #fff;
	margin: 0 0 20px;
}

.notice--warn {
	background: var( --sun-90, #fff6e0 );
	border-color: #f6dfa4;
}

/* ------------------------------------------------------- the prices --- */

.pricing {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
	gap: clamp( 16px, 2.4vw, 26px );
	align-items: start;
}

.pricing__col--alt {
	background: var( --blue-95, #f4f8fe );
	border-color: #dfe9fb;
}

.pricing__price {
	font-size: clamp( 1.8rem, 4vw, 2.4rem );
	font-weight: 800;
	margin: 4px 0 14px;
	line-height: 1;
}

.ticks {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.ticks li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
}

.ticks li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 800;
	color: var( --teal, #12a594 );
}

/* ------------------------------------------------- the join dialog --- */

.lgl-join {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba( 38, 49, 63, .55 );
	overflow: auto;
}

.lgl-join[hidden] {
	display: none;
}

.lgl-join__box {
	position: relative;
	width: min( 420px, 100% );
	background: #fff;
	border-radius: 20px;
	padding: clamp( 22px, 4vw, 32px );
	box-shadow: 0 24px 60px rgba( 38, 49, 63, .3 );
}

.lgl-join__box h2 {
	margin: 0 0 6px;
	font-size: 1.4rem;
}

.lgl-join__sub {
	margin: 0 0 18px;
	color: var( --ink-soft, #5c6b7e );
	font-size: .95rem;
}

.lgl-join__x {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	font-size: 1.1rem;
	cursor: pointer;
	color: var( --ink-soft, #5c6b7e );
	border-radius: 50%;
}

.lgl-join__x:hover {
	background: var( --mist, #eef2f7 );
}

.lgl-join__form label {
	display: block;
	margin-bottom: 14px;
}

.lgl-join__form label span {
	display: block;
	font-weight: 700;
	font-size: .92rem;
	margin-bottom: 5px;
}

.lgl-join__form input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 2px solid var( --line, #c8d0da );
	border-radius: 12px;
	box-sizing: border-box;
}

.lgl-join__err {
	margin: 0 0 12px;
	color: var( --coral, #ff6b4a );
	font-size: .94rem;
}

.lgl-join__note {
	margin: 12px 0 0;
	font-size: .82rem;
	color: var( --ink-soft, #5c6b7e );
	text-align: center;
}

/* -------------------------------------------------- the parent page --- */

.parent-card {
	margin-bottom: 18px;
}

.parent-card__head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	justify-content: space-between;
	align-items: baseline;
}

.parent-card__head h2 {
	margin: 0;
}

.parent-card__stars {
	margin: 0;
	font-size: 1.05rem;
}

.parent-card__stars b {
	font-size: 1.5rem;
	color: var( --sun, #ffc53d );
	-webkit-text-stroke: 1px var( --ink, #26313f );
}

/* A button that reads as a link: these are secondary actions on somebody's
   own data, and three real buttons per card would shout. */
.linky {
	border: 0;
	background: none;
	padding: 8px 0;
	margin: 0;
	font: inherit;
	font-size: .92rem;
	color: var( --blue, #2f6feb );
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: .18em;
}

.linky--quiet {
	color: var( --ink-soft, #5c6b7e );
}

.linky:disabled {
	opacity: .55;
	cursor: default;
}

.parent-card__do {
	display: flex;
	gap: 20px;
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px dashed var( --line, #c8d0da );
}

.parent-card__said {
	margin: 6px 0 0;
	font-size: .92rem;
	min-height: 1.2em;
}

.parent-card__skills {
	margin: 12px 0 2px;
	font-weight: 600;
}

/* The bar is shared with the Lab's own picker, so it is defined once here
   for the pages that do not load play.css. */

.lab-progress {
	height: 12px;
	border-radius: 999px;
	background: var( --mist, #eef2f7 );
	border: 1px solid var( --line, #c8d0da );
	overflow: hidden;
	margin: 12px 0 6px;
}

.lab-progress i {
	display: block;
	height: 100%;
	background: var( --teal, #12a594 );
	border-radius: 999px;
	transition: width .4s ease;
}

@media ( prefers-reduced-motion: reduce ) {

	.lab-progress i {
		transition: none;
	}
}

/* ------------------------------------------------ the activity figures --- */
/* Four plain numbers. No charts, no gauges, nothing that invites comparing
   one child with another — this is a record of what happened, not a score. */

.statrow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 14px;
}

.stat {
	flex: 1 1 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 10px;
	background: var( --mist, #eef2f7 );
	border-radius: 14px;
}

.stat--warm {
	background: var( --sun-90, #fff6e0 );
}

.stat b {
	font-family: "LGL Display", sans-serif;
	font-size: 1.5rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.stat i {
	font-style: normal;
	font-size: .72rem;
	text-align: center;
	color: var( --ink-soft, #5c6b7e );
	margin-top: 5px;
}

/* The six kinds. Untried ones are quieter, never marked wrong. */

.kinds {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 14px 0 6px;
}

.kind {
	font-size: .78rem;
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid var( --line, #c8d0da );
	color: var( --ink-faint, #8a97a6 );
	background: #fff;
}

.kind.is-on {
	color: var( --ink, #26313f );
	border-color: var( --teal, #12a594 );
	background: var( --teal-92, #eefaf8 );
}

.kind b {
	margin-left: 5px;
	font-variant-numeric: tabular-nums;
}

.parent-card__sub {
	margin: 18px 0 8px;
	font-size: 1rem;
}

.recent {
	list-style: none;
	margin: 0;
	padding: 0;
}

.recent li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
	padding: 7px 0;
	border-bottom: 1px dashed var( --line, #c8d0da );
}

.recent li:last-child {
	border-bottom: 0;
}

.recent__t {
	flex: 1 1 140px;
	font-weight: 600;
}

.recent__s {
	color: var( --sun, #ffc53d );
	-webkit-text-stroke: .6px var( --ink, #26313f );
	letter-spacing: 1px;
}

.recent__w {
	font-size: .82rem;
	color: var( --ink-soft, #5c6b7e );
}

@media ( max-width: 420px ) {

	.stat {
		flex-basis: calc( 50% - 5px );
	}
}

/* ------------------------------------------------------------ accounts --- */

/* The sign-in form and the choose-a-password form. Both are one column on
   purpose: a label above its box is the layout that survives a 320px phone
   held in one hand, which is where most of these will be typed. */

.lgl-signin label,
.lgl-account__form label {
	display: block;
	font-weight: 700;
	margin: 14px 0 6px;
}

.lgl-signin input,
.lgl-account__form input[type="password"],
.lgl-forgot input {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 2px solid var( --line, #c8d0da );
	border-radius: 12px;
}

.lgl-signin input:focus-visible,
.lgl-account__form input:focus-visible,
.lgl-forgot input:focus-visible {
	outline: 3px solid var( --blue, #2f6feb );
	outline-offset: 2px;
}

.lgl-signin .btn {
	margin-top: 16px;
}

.lgl-account__form .btn {
	margin-top: 12px;
}

.lgl-signin__said,
.lgl-account__said,
.lgl-account__told,
.lgl-forgot__said {
	margin: 10px 0 0;
	font-size: .94rem;
	min-height: 1.2em;
}

.lgl-forgot {
	margin-top: 4px;
}

/* The one-line reminder above the Lab. Deliberately not a banner: it sits in
   the flow, it is dismissible, and it never covers anything a child is about
   to tap. */

.lgl-pwnag {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0 0 18px;
	padding: 10px 14px;
	font-size: .94rem;
	background: var( --cream, #fff6e5 );
	border: 1px solid var( --line, #c8d0da );
	border-radius: 14px;
}

.lgl-pwnag span {
	flex: 1 1 220px;
}

.lgl-pwnag__x {
	padding: 4px 8px;
	font-size: .9rem;
	line-height: 1;
	color: var( --ink-soft, #5c6b7e );
	background: none;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.lgl-pwnag__x:hover {
	background: rgba( 0, 0, 0, .06 );
}

/* Credit a customer has earned but has not yet proved is theirs. Stated
   plainly, in the same panel as the arithmetic it is missing from. */
.upsell__prove { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: #FFF6E0; border: 1px solid #F0DCA8; color: #6B5417;
  font-size: .9rem; line-height: 1.45; }
