/*
 * FocusMe for Schools & Families pages (/schools/ and children), layout direction B:
 * two audiences and a school-day timeline. Loaded only on those pages (inc/schools-pages.php);
 * the shared landing classes (fme-landing-*, fme-platform-step) come from style.css.
 */

.fme-schools {
	overflow-x: clip;
}

/* hero and the two doors */
.fme-sch-doors {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 40px auto 0;
	max-width: 1040px;
	text-align: left;
}
.fme-sch-door {
	align-items: center;
	background: var(--fme-color-white, #fff);
	border: 1px solid var(--fme-color-border);
	border-radius: 16px;
	box-shadow: var(--fme-shadow-sm);
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr) 160px;
	padding: 24px;
}
.fme-sch-door__title {
	font-size: 19px;
	font-weight: 600;
	line-height: 26px;
	margin: 0 0 6px;
}
.fme-sch-door p {
	color: var(--fme-color-ink-muted);
	font-size: 15px;
	line-height: 23px;
	margin: 0 0 12px;
}
.fme-sch-door a {
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.fme-sch-door .fme-sch-shot,
.fme-sch-door .fme-sch-phone {
	margin: 0;
	max-width: 160px;
}
.fme-sch-door .fme-sch-phone {
	border-radius: 22px;
	border-width: 6px;
}

/* cards: no list markers beside them */
.fme-sch-cards {
	list-style: none;
	padding: 0;
}
.fme-sch-cards.fme-landing-cards--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 820px;
}
@media (max-width: 767px) {
	.fme-sch-cards.fme-landing-cards--two {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* screenshots */
.fme-sch-shot {
	margin: 0;
}
.fme-sch-shot img {
	border-radius: 12px;
	box-shadow: var(--fme-shadow-md);
	display: block;
	height: auto;
	max-width: 100%;
	width: 100%;
}
.fme-sch-phone {
	background: var(--fme-color-surface);
	border: 10px solid #0F172A;
	border-radius: 36px;
	box-shadow: var(--fme-shadow-md);
	margin: 0;
	max-width: 280px;
	overflow: hidden;
	width: 100%;
}
.fme-sch-phone img {
	display: block;
	height: auto;
	width: 100%;
}
.fme-sch-phones {
	align-items: flex-start;
	display: flex;
	gap: 24px;
	justify-content: center;
}

/* text beside a picture */
.fme-sch-part .fme-sch-part__title {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.4px;
	line-height: 36px;
	margin: 0 0 14px;
}
.fme-sch-intro {
	color: var(--fme-color-ink-muted);
	font-size: 16px;
	line-height: 26px;
	margin: 0 0 16px;
}
.fme-sch-media {
	min-width: 0;
}

/* check lists */
.fme-sch-checks {
	display: grid;
	gap: 14px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.fme-sch-checks li {
	color: var(--fme-color-ink);
	font-size: 16px;
	line-height: 26px;
	padding-left: 32px;
	position: relative;
}
.fme-sch-checks li::before {
	background: var(--fme-color-primary);
	border-radius: 50%;
	color: #fff;
	content: "\2713";
	font-size: 12px;
	font-weight: 700;
	height: 20px;
	left: 0;
	line-height: 20px;
	position: absolute;
	text-align: center;
	top: 3px;
	width: 20px;
}
.fme-sch-checks--two {
	gap: 16px 40px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1000px;
}
.fme-sch-more {
	font-size: 16px;
	margin: 28px 0 0;
	text-align: center;
}
.fme-sch-more a {
	font-weight: 600;
	text-decoration: none;
}

/* privacy as a dark band */
.fme-sch-band {
	background: #0F172A;
	color: #E2E8F0;
}
.fme-sch-band .fme-landing-section__title {
	color: #fff;
}
.fme-sch-band .fme-sch-checks li {
	color: #E2E8F0;
}
.fme-sch-band .fme-sch-more a {
	color: #9CC4F7;
}

/* the school-day timeline */
.fme-sch-tl {
	margin: 0 auto;
	max-width: 960px;
}
.fme-sch-tl__row {
	align-items: center;
	display: grid;
	gap: 16px;
	grid-template-columns: 130px minmax(0, 1fr);
	margin-top: 18px;
}
.fme-sch-tl__label {
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	margin: 0;
}
.fme-sch-tl__label small {
	color: var(--fme-color-ink-muted);
	display: block;
	font-size: 13px;
	font-weight: 400;
}
.fme-sch-tl__bar {
	border: 1px solid var(--fme-color-border);
	border-radius: 12px;
	display: flex;
	min-height: 56px;
	overflow: hidden;
}
.fme-sch-tl__seg {
	align-items: center;
	display: flex;
	font-size: 14px;
	font-weight: 600;
	justify-content: center;
	line-height: 18px;
	min-width: 0;
	padding: 6px 8px;
	text-align: center;
}
.fme-sch-tl__seg small {
	display: block;
	font-size: 13px;
	font-weight: 400;
}
.fme-sch-tl__seg--home {
	background: var(--fme-color-success-soft, #EAF8EF);
	color: #166534;
}
.fme-sch-tl__seg--school {
	background: var(--fme-color-primary);
	color: #fff;
}
.fme-sch-tl__scale {
	color: var(--fme-color-ink-muted);
	display: flex;
	font-size: 12px;
	justify-content: space-between;
	margin: 6px 2px 0;
}
.fme-sch-tl__legend {
	color: var(--fme-color-ink-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 10px 24px;
	justify-content: center;
	line-height: 20px;
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
}
.fme-sch-tl__key {
	border-radius: 3px;
	display: inline-block;
	height: 12px;
	margin-right: 6px;
	vertical-align: -1px;
	width: 12px;
}
.fme-sch-tl__key--school {
	background: var(--fme-color-primary);
}
.fme-sch-tl__key--home {
	background: #BBF7D0;
}

/* how it works: jump strip */
.fme-sch-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	padding-bottom: 40px;
}
.fme-sch-strip a {
	background: #fff;
	border: 1px solid var(--fme-color-border);
	border-radius: 999px;
	color: var(--fme-color-ink);
	font-size: 15px;
	font-weight: 600;
	padding: 9px 18px;
	text-decoration: none;
}
.fme-sch-strip a:hover,
.fme-sch-strip a:focus-visible {
	border-color: var(--fme-color-primary);
	color: var(--fme-color-primary-dark, #2E6BD9);
}
[id^="fme-sch-h-"] {
	scroll-margin-top: 96px;
}

/* privacy: the four promises as tiles, then a reading page */
.fme-sch-short {
	padding-bottom: 56px;
}
.fme-sch-tiles {
	counter-reset: fme-sch-tile;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0 auto;
	max-width: 1100px;
	padding: 0;
}
.fme-sch-tiles li {
	background: #fff;
	border: 1px solid var(--fme-color-border);
	border-radius: 16px;
	color: var(--fme-color-ink);
	counter-increment: fme-sch-tile;
	font-size: 15px;
	line-height: 23px;
	padding: 22px 20px;
}
.fme-sch-tiles li::before {
	color: var(--fme-color-primary);
	content: counter(fme-sch-tile);
	display: block;
	font-size: 30px;
	font-weight: 700;
	line-height: 32px;
	margin-bottom: 10px;
}
.fme-sch-read {
	display: grid;
	gap: 56px;
	grid-template-columns: 240px minmax(0, 1fr);
	margin: 0 auto;
	max-width: 1040px;
}
.fme-sch-toc {
	align-self: start;
	font-size: 14px;
	line-height: 22px;
	position: sticky;
	top: 96px;
}
.fme-sch-toc__title {
	color: var(--fme-color-ink-muted);
	font-size: 12px;
	letter-spacing: 0.06em;
	margin: 0 0 10px;
	text-transform: uppercase;
}
.fme-sch-toc a {
	border-left: 2px solid var(--fme-color-border);
	color: var(--fme-color-ink-muted);
	display: block;
	padding: 4px 0 4px 12px;
	text-decoration: none;
}
.fme-sch-toc a:hover,
.fme-sch-toc a:focus-visible {
	border-color: var(--fme-color-primary);
	color: var(--fme-color-primary-dark, #2E6BD9);
}
.fme-sch-read__body {
	min-width: 0;
}
.fme-sch-read__body section {
	padding: 0 0 40px;
}
.fme-sch-read__body h2 {
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.3px;
	line-height: 32px;
	margin: 0 0 14px;
}
.fme-sch-read__body p,
.fme-sch-read__body li {
	color: var(--fme-color-ink-muted);
	font-size: 16px;
	line-height: 26px;
}
.fme-sch-read__body p {
	margin: 0 0 12px;
}
.fme-sch-read__body ul {
	display: grid;
	gap: 8px;
	margin: 0 0 12px;
	padding-left: 22px;
}
.fme-sch-table {
	margin: 0 0 16px;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.fme-sch-table table {
	border-collapse: collapse;
	font-size: 15px;
	line-height: 22px;
	min-width: 560px;
	width: 100%;
}
.fme-sch-table th,
.fme-sch-table td {
	border-bottom: 1px solid var(--fme-color-border);
	color: var(--fme-color-ink-muted);
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
}
.fme-sch-table thead th {
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.fme-sch-table tbody th {
	color: var(--fme-color-ink);
	font-weight: 600;
}

/* closing card */
.fme-sch-card {
	background: #fff;
	border: 1px solid var(--fme-color-border);
	border-radius: 16px;
	box-shadow: var(--fme-shadow-sm);
	margin: 0 auto;
	max-width: 600px;
	padding: 32px 28px;
	text-align: center;
}
.fme-sch-card__title {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.3px;
	line-height: 32px;
	margin: 0;
}
.fme-sch-card__sub {
	color: var(--fme-color-ink-muted);
	font-size: 16px;
	line-height: 24px;
	margin: 8px 0 22px;
}
.fme-sch-center {
	text-align: center;
}

/* phones */
@media (max-width: 991px) {
	.fme-sch-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.fme-sch-read {
		gap: 0;
		grid-template-columns: minmax(0, 1fr);
	}
	.fme-sch-toc {
		display: none;
	}
}
@media (max-width: 767px) {
	.fme-sch-doors {
		grid-template-columns: minmax(0, 1fr);
	}
	.fme-sch-door {
		grid-template-columns: minmax(0, 1fr) 104px;
		padding: 20px;
	}
	.fme-sch-door .fme-sch-shot,
	.fme-sch-door .fme-sch-phone {
		max-width: 104px;
	}
	.fme-sch-part .fme-sch-part__title {
		font-size: 22px;
		line-height: 30px;
	}
	.fme-sch-checks--two {
		grid-template-columns: minmax(0, 1fr);
	}
	.fme-sch-phones {
		gap: 12px;
	}
	.fme-sch-phones .fme-sch-phone {
		border-radius: 24px;
		border-width: 6px;
	}
	.fme-sch-tl__row {
		gap: 6px;
		grid-template-columns: minmax(0, 1fr);
	}
	.fme-sch-tl__seg {
		font-size: 12px;
		line-height: 15px;
		padding: 6px 4px;
	}
	.fme-sch-tl__seg small {
		font-size: 11px;
	}
	.fme-sch-tl__hours {
		display: none;
	}
	.fme-sch-strip {
		gap: 8px;
		padding-bottom: 28px;
	}
	.fme-sch-strip a {
		font-size: 14px;
		padding: 8px 14px;
	}
	.fme-sch-tiles {
		grid-template-columns: minmax(0, 1fr);
	}
	.fme-sch-tiles li::before {
		font-size: 24px;
	}
	.fme-sch-card {
		padding: 24px 18px;
	}
	.fme-sch-card .fme-btn--lg {
		width: 100%;
	}
	.fme-sch-closing .fme-btn--lg {
		padding-left: 24px;
		padding-right: 24px;
	}
}
