/**
 * Dedicated Page Styles for Tutor Connect
 * Strict adherence to The Marked Page design tokens and typography.
 *
 * @package TutorConnect
 */

/* ============================================================ HERO & BREADCRUMBS */
.page-hero-band {
	padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.page-breadcrumbs {
	margin-bottom: 1.5rem;
}

.page-breadcrumbs__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem;
	font-size: var(--t-xs);
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--on-ink-2);
}

.page-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
}

.page-breadcrumbs a {
	color: var(--on-ink-2);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .15s ease;
}

.page-breadcrumbs a:hover {
	color: var(--marker);
}

.page-breadcrumbs__sep {
	opacity: .4;
}

.page-breadcrumbs__curr {
	color: var(--on-ink-hi);
	font-weight: 600;
}

.page-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s4);
	align-items: center;
}

.page-hero-grid--with-img {
	grid-template-columns: 1.25fr 1fr;
}

.page-hero__eyebrow {
	font-size: var(--t-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--marker);
	margin-bottom: .85rem;
}

.page-hero__title {
	font-size: clamp(2.1rem, 4.2vw, 3.1rem);
	line-height: 1.12;
	color: var(--on-ink-hi);
	font-family: var(--display);
	margin: 0 0 1.15rem;
	letter-spacing: -.03em;
}

.page-hero__lead {
	font-size: clamp(1.05rem, 1.4vw, 1.22rem);
	line-height: 1.58;
	color: var(--on-ink-2);
	max-width: 65ch;
	margin: 0 0 1rem;
}

.page-hero__sublead {
	font-size: var(--t-sm);
	line-height: 1.6;
	color: var(--on-ink-3);
	max-width: 65ch;
	margin: 0 0 1.85rem;
}

.page-hero__acts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s3);
}

.page-hero-media {
	aspect-ratio: 4/3;
	border-radius: var(--r-card);
	overflow: hidden;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .15);
}

.page-hero-media img,
.page-hero-media .slot {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ============================================================ TRUST SIGNALS STRIP */
.trust-strip-band {
	padding: 2.25rem 0;
	border-bottom: 1px solid var(--rule);
}

.trust-strip-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--s5);
	align-items: center;
}

.trust-strip-card {
	display: flex;
	gap: var(--s3);
	align-items: flex-start;
}

.trust-strip-card__icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--grade-wash);
	color: var(--grade);
	border: 1px solid var(--grade-line);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: .85rem;
	flex-shrink: 0;
	margin-top: .15rem;
}

.trust-strip-card h3 {
	font-family: var(--display);
	font-size: 1.05rem;
	margin-bottom: .25rem;
	font-weight: 700;
	color: var(--ink);
}

.trust-strip-card p {
	font-size: var(--t-xs);
	color: var(--slate);
	line-height: 1.5;
	margin: 0;
}

/* ============================================================ 11+ EXPLAINER AREAS */
.page-explainer-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.explainer-areas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--s4);
}

.explainer-area-card {
	background: var(--paper-hi);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.explainer-area-card h3 {
	font-family: var(--display);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--ink);
	margin: .25rem 0 0;
}

.explainer-area-card p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.55;
	margin: 0;
}

/* ============================================================ COMPARISON SECTION */
.comparison-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.comparison-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--s5);
}

.comparison-card {
	background: var(--paper-hi);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 1.8rem;
	display: flex;
	flex-direction: column;
}

.comparison-card h3 {
	font-family: var(--display);
	font-size: 1.35rem;
	color: var(--ink);
	margin-bottom: .65rem;
}

.comparison-card p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.6;
	margin: 0;
}

.comparison-schools {
	margin: 1.25rem 0;
	font-size: var(--t-sm);
	background: var(--paper-3);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 1rem;
}

.comparison-schools b {
	display: block;
	margin-bottom: .5rem;
	color: var(--ink);
	font-size: var(--t-xs);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.comparison-schools ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: .35rem;
	color: var(--slate);
}

.comparison-schools li {
	display: flex;
	align-items: center;
	gap: .45rem;
}

.comparison-schools li::before {
	content: "•";
	color: var(--marker-deep);
	font-weight: 700;
}

.comparison-quote {
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--marker);
	background: var(--marker-wash);
	color: var(--marker-text);
	font-style: italic;
	border-radius: 0 var(--r-card) var(--r-card) 0;
	font-size: var(--t-sm);
	line-height: 1.55;
}

.comparison-slot {
	margin-top: auto;
	aspect-ratio: 16/9;
	border-radius: var(--r-card);
	overflow: hidden;
	border: 1px solid var(--rule);
	background: var(--paper-2);
}

.comparison-slot img,
.comparison-slot .slot {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ============================================================ TEST DISCIPLINES */
.test-disciplines-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.test-disciplines-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--s4);
}

.discipline-card {
	background: var(--chalk);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.discipline-card:hover {
	border-color: var(--rule-hard);
	box-shadow: var(--shadow-hover-soft);
}

.discipline-card__slot {
	aspect-ratio: 16/10;
	overflow: hidden;
	background: var(--paper-2);
	border-bottom: 1px solid var(--rule);
}

.discipline-card__slot img,
.discipline-card__slot .slot {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.discipline-card__body {
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.discipline-card__body h3 {
	font-family: var(--display);
	font-size: 1.2rem;
	color: var(--ink);
	margin-bottom: .5rem;
}

.discipline-card__body p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.55;
	margin: 0 0 1rem;
}

.discipline-tags {
	list-style: none;
	padding: 0;
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
}

.discipline-tags li {
	font-size: .75rem;
	background: var(--paper-3);
	border: 1px solid var(--rule);
	padding: .25rem .55rem;
	border-radius: var(--r-chip);
	color: var(--slate);
	font-weight: 500;
}

/* ============================================================ 1-TO-1 BENEFITS */
.one-to-one-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--s4);
}

.benefit-card {
	background: var(--paper-hi);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 1.5rem;
}

.benefit-card__num {
	font-family: var(--display);
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--marker);
	margin-bottom: .65rem;
	line-height: 1;
}

.benefit-card h3 {
	font-family: var(--display);
	font-size: 1.18rem;
	color: var(--ink);
	margin-bottom: .45rem;
}

.benefit-card p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.55;
	margin: 0;
}

/* ============================================================ DELIVERY OPTIONS */
.delivery-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.delivery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--s4);
}

.delivery-card {
	background: var(--chalk);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: border-color .15s ease, transform .15s ease;
}

.delivery-card:hover {
	border-color: var(--rule-hard);
	transform: translateY(-2px);
}

.delivery-card--featured {
	border-color: var(--marker);
	background: var(--paper-hi);
	box-shadow: var(--shadow-glow-marker);
}

.delivery-card__badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	background: var(--marker-wash);
	color: var(--marker-text);
	border: 1px solid var(--marker-line);
	padding: .25rem .55rem;
	border-radius: var(--r-chip);
}

.delivery-card__icon {
	font-size: 1.8rem;
	margin-bottom: .85rem;
}

.delivery-card h3 {
	font-family: var(--display);
	font-size: 1.2rem;
	margin-bottom: .45rem;
}

.delivery-card h3 a {
	text-decoration: none;
	color: var(--ink);
}

.delivery-card h3 a:hover {
	color: var(--marker-deep);
}

.delivery-card p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.55;
	margin: 0 0 1rem;
	flex: 1;
}

.delivery-card .text-link {
	font-size: var(--t-sm);
	font-weight: 600;
	color: var(--grade);
}

/* ============================================================ TRACK RECORD & SCHOOLS */
.track-record-band {
	padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.track-record-split {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: var(--s6);
	align-items: start;
}

.schools-editorial-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: .35rem .75rem;
}

.school-pill {
	display: flex;
	align-items: center;
	gap: .45rem;
	font-size: var(--t-xs);
	color: var(--on-ink-2);
	line-height: 1.45;
	padding: .3rem 0;
}

.school-pill__bullet {
	color: var(--marker);
	font-size: 1rem;
}

.track-record-card {
	background: var(--ink-soft);
	border: 1px solid var(--on-ink-line);
	border-radius: var(--r-card);
	padding: 1.5rem;
	overflow: hidden;
}

.track-record-card__head h3 {
	color: var(--chalk);
	font-family: var(--display);
	font-size: 1.25rem;
	margin: .65rem 0 .45rem;
}

.track-record-card__head p {
	color: var(--on-ink-2);
	font-size: var(--t-xs);
	line-height: 1.5;
	margin-bottom: 1rem;
}

.track-record-card__media {
	aspect-ratio: 16/10;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--on-ink-line);
}

.track-record-card__media img,
.track-record-card__media .slot {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ============================================================ CONTACT STRIP IN FINAL CTA */
.contact-details-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 1.25rem;
	font-size: var(--t-sm);
	color: var(--on-ink-2);
}

.contact-details-strip a {
	color: var(--marker);
	text-decoration: underline;
}

/* ============================================================ TRUST METRICS
   Used by page-metrics-band on the dedicated stage pages (GCSE, 11+,
   Primary, A-Level) — four big numbers on an ink band. */
.page-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--s5);
	text-align: center;
}

.page-stat-card__val {
	font-family: var(--display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--on-ink-hi);
}

.page-stat-card__lbl {
	margin-top: .4rem;
	font-size: var(--t-sm);
	color: var(--on-ink-2);
}

@media (max-width: 700px) {
	.page-stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--s6) var(--s4);
	}
}

/* ============================================================ RELATED PAGES & FINAL CTA */
.page-related-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.page-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--s4);
}

.page-related-card {
	background: var(--paper-hi);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}

.page-related-card:hover {
	border-color: var(--rule-hard);
	transform: translateY(-2px);
}

.page-related-card h3 {
	font-family: var(--display);
	font-size: 1.15rem;
	color: var(--ink);
	margin-bottom: .45rem;
}

.page-related-card p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.55;
	margin: 0 0 1rem;
	flex: 1;
}

.page-related-card .text-link {
	font-size: var(--t-sm);
	font-weight: 600;
	color: var(--grade);
}

/* ============================================================ GCSE CORE SUBJECTS */
.page-core-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.core-subjects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--s4);
}

.core-subject-card {
	padding: 1.6rem;
	display: flex;
	flex-direction: column;
	border-radius: var(--r-card);
}

.core-subject-card h3 {
	font-family: var(--display);
	font-size: 1.25rem;
	margin: .65rem 0 .45rem;
	color: var(--ink);
}

.core-subject-card p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.55;
	margin: 0 0 1.25rem;
	flex: 1;
}

/* ============================================================ GCSE HUMANITIES */
.page-humanities-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.humanities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--s4);
}

.humanities-card {
	background: var(--paper-hi);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 1.35rem;
	display: flex;
	gap: var(--s3);
	align-items: flex-start;
}

.humanities-card__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--marker);
	margin-top: .45rem;
	flex-shrink: 0;
}

.humanities-card h3 {
	font-family: var(--display);
	font-size: 1.1rem;
	margin: 0 0 .35rem;
	color: var(--ink);
}

.humanities-card p {
	font-size: var(--t-xs);
	color: var(--slate);
	line-height: 1.5;
	margin: 0;
}

/* ============================================================ GCSE EXAM BOARDS */
.page-examboards-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.examboards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--s5);
}

.examboard-card {
	padding: 1.8rem;
	display: flex;
	flex-direction: column;
	position: relative;
}

.examboard-badge {
	display: inline-block;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -.02em;
	color: var(--ink);
	background: var(--marker-wash);
	border: 1px solid var(--marker-line);
	padding: .25rem .75rem;
	border-radius: var(--r-chip);
	width: fit-content;
	margin-bottom: 1rem;
}

.examboard-card h3 {
	font-family: var(--display);
	font-size: 1.2rem;
	color: var(--ink);
	margin-bottom: .5rem;
}

.examboard-card p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.55;
	margin: 0 0 1rem;
}

.examboard-list {
	list-style: none;
	padding: 0;
	margin: auto 0 0;
	display: grid;
	gap: .4rem;
	border-top: 1px solid var(--rule);
	padding-top: .85rem;
}

.examboard-list li {
	font-size: var(--t-xs);
	color: var(--slate-dim);
	display: flex;
	align-items: center;
	gap: .4rem;
}

.examboard-list li::before {
	content: "✓";
	color: var(--grade);
	font-weight: 700;
}

/* ============================================================ EDITORIAL PROCESS JOURNEY (HARD SCALE LOCK) */
.page-process-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.process-journey {
	position: relative;
	max-width: 1080px;
	margin: 2.25rem auto 0;
	display: flex;
	flex-direction: column;
	gap: clamp(2.25rem, 4vw, 3.25rem);
}

.process-story-item {
	display: grid;
	gap: clamp(2rem, 3.5vw, 3.25rem);
	align-items: center;
	position: relative;
}

.process-story-item--text-left {
	grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
}

.process-story-item--text-left .process-story-item__text {
	order: 1;
}

.process-story-item--text-left .process-story-item__media {
	order: 2;
}

.process-story-item--text-right {
	grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
}

.process-story-item--text-right .process-story-item__media {
	order: 1;
}

.process-story-item--text-right .process-story-item__text {
	order: 2;
}

.process-story-item__header {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin-bottom: .5rem;
}

.process-story-item__num {
	font-family: var(--display);
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--marker);
	line-height: 1;
	letter-spacing: -.02em;
}

.process-story-item__text h3 {
	font-family: var(--display);
	font-size: clamp(1.25rem, 1.8vw, 1.55rem);
	color: var(--ink);
	margin: 0 0 .5rem;
	font-weight: 800;
	letter-spacing: -.01em;
}

.process-story-item__text p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.55;
	margin: 0 0 1rem;
}

.process-story-item__note {
	background: var(--paper-hi);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--marker);
	padding: .65rem .9rem;
	border-radius: 4px;
	font-size: var(--t-xs);
	color: var(--slate);
	line-height: 1.45;
}

/* HARD SCALE LOCK: Maximum 440px width, 280px height at desktop */
.process-story-item__media {
	position: relative;
	width: 100%;
	max-width: 440px;
	min-width: 0;
	height: 280px;
	overflow: hidden;
	border: 1px solid var(--rule);
	box-shadow: var(--shadow-frame);
	background: var(--paper-2);
	margin: 0 auto;
}

.process-story-item__media img,
.process-story-item__media .slot {
	display: block;
	width: 100%;
	max-width: 440px;
	height: 280px;
	object-fit: cover;
	object-position: center;
	transition: transform .3s ease;
}

.process-story-item:hover .process-story-item__media img {
	transform: scale(1.02);
}

.process-story-item__media--shape-1 {
	border-radius: 16px 44px 16px 16px;
}

.process-story-item__media--shape-2 {
	border-radius: 44px 16px 16px 16px;
}

.process-story-item__media--shape-3 {
	border-radius: 16px 16px 44px 16px;
}

.process-story-item__media--shape-4 {
	border-radius: 16px 44px 16px 44px;
}

.process-cta-wrap {
	margin-top: clamp(2rem, 4vw, 3rem);
}

.process-cta-card {
	background: var(--paper-hi);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: clamp(1.25rem, 2.5vw, 1.85rem);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	box-shadow: var(--shadow-panel);
}

.process-cta-card__text h3 {
	font-family: var(--display);
	font-size: 1.25rem;
	color: var(--ink);
	margin: 0 0 .25rem;
}

.process-cta-card__text p {
	font-size: var(--t-sm);
	color: var(--slate);
	margin: 0;
	line-height: 1.45;
}

/* ============================================================ RESPONSIVE BREAKPOINTS */
@media (max-width: 1120px) and (min-width: 961px) {
	.process-story-item--text-left {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
	}
	.process-story-item--text-right {
		grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
	}
	.process-story-item__media,
	.process-story-item__media img {
		max-width: 400px;
		height: 270px;
	}
}

@media (max-width: 960px) {
	.page-hero-grid--with-img {
		grid-template-columns: 1fr;
	}
	.page-hero-media {
		max-height: 280px;
	}
	.comparison-grid {
		grid-template-columns: 1fr;
	}
	.track-record-split {
		grid-template-columns: 1fr;
	}
	.process-story-item {
		grid-template-columns: 1fr !important;
		gap: 1.25rem;
	}
	.process-story-item__media {
		order: 2 !important;
		width: 100% !important;
		max-width: 100% !important;
		height: 280px !important;
	}
	.process-story-item__media img {
		width: 100% !important;
		max-width: 100% !important;
		height: 280px !important;
	}
	.process-story-item__text {
		order: 1 !important;
	}
	.process-cta-card {
		flex-direction: column;
		text-align: center;
		gap: 1.25rem;
	}
}

@media (max-width: 640px) {
	.page-hero__acts {
		flex-direction: column;
	}
	.page-hero__acts .btn {
		width: 100%;
	}
	.contact-details-strip {
		flex-direction: column;
		gap: .5rem;
	}
	.process-story-item__media {
		border-radius: 12px !important;
		height: 220px !important;
		max-height: 240px !important;
	}
	.process-story-item__media img {
		height: 220px !important;
		max-height: 240px !important;
	}
	.process-cta-card__action .btn {
		width: 100%;
	}
}



/* ============================================================ FAQ (dedicated pages)
   Used by the stage pages and template-parts/pages/faq.php. Its summary has
   two children — question and plus — unlike the homepage FAQ's three-column
   layout, so the two must never share a selector. */

.page-faq-band .faq {
	display: grid;
	gap: .625rem;
	max-width: 60rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.faq__item {
	background: var(--chalk);
	border: 1px solid var(--rule);
	border-radius: 12px;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.faq__item:hover {
	border-color: var(--rule-hard);
}

.faq__item[open] {
	background: var(--marker-wash);
	border-color: var(--marker-line);
	box-shadow: var(--shadow-card);
}

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	cursor: pointer;
	list-style: none;
	min-height: 3.25rem;
	padding: .85rem 1.25rem;
	border-radius: 12px;
	font-family: var(--display);
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.4;
	color: var(--ink);
}

.faq__q::-webkit-details-marker {
	display: none;
}

/* The question must be free to wrap; the plus never shrinks. */
.faq__q > span:first-child {
	min-width: 0;
}

.faq__plus {
	flex: none;
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--paper-2);
	color: var(--marker-text);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1;
	transition: transform .18s ease, background-color .18s ease;
}

.faq__item[open] .faq__plus {
	transform: rotate(45deg);
	background: var(--marker);
	color: var(--ink);
}

.faq__a {
	padding: 0 1.25rem 1.1rem;
}

.faq__a p {
	margin: 0;
	max-width: 62ch;
	font-size: .97rem;
	line-height: 1.65;
	color: var(--slate);
}

@media (prefers-reduced-motion: reduce) {
	.faq__item,
	.faq__plus {
		transition: none;
	}
}

/* ============================================================ PAGE FEATURE GRID
   template-parts/pages/feature-grid.php. These three components below had no
   styles at all, so every page.php-driven page rendered its feature cards,
   service cards and subject chips as bare stacked text. Styled to match
   .page-related-card so all the card types on a page read as one family. */
.page-features-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.page-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--s4);
}

.page-card {
	background: var(--paper-hi);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
}

.page-card h3 {
	font-family: var(--display);
	font-size: 1.15rem;
	color: var(--ink);
	margin-bottom: .5rem;
}

.page-card p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.6;
	margin: 0;
}

/* ============================================================ PAGE SERVICE GRID
   template-parts/pages/service-grid.php. Sits on the chalk band, so the card
   takes the lighter paper fill to stay distinct from its background. */
.page-services-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.page-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--s4);
}

.page-service-card {
	background: var(--paper-hi);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
}

.page-service-card__icon {
	font-size: 1.5rem;
	line-height: 1;
	margin-bottom: .75rem;
}

.page-service-card h3 {
	font-family: var(--display);
	font-size: 1.1rem;
	color: var(--ink);
	margin-bottom: .5rem;
}

.page-service-card p {
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.6;
	margin: 0;
	flex: 1;
}

.page-service-card .text-link {
	margin-top: 1rem;
	font-size: var(--t-sm);
	font-weight: 600;
	color: var(--grade);
	text-decoration: none;
}

.page-service-card .text-link:hover {
	text-decoration: underline;
}

/* ============================================================ SUBJECT MATRIX
   template-parts/pages/subject-grid.php. Chips borrow the .chip sizing from
   components.css but run a size up, because here they are the content rather
   than a label on something else. */
.page-subjects-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.subject-matrix {
	display: grid;
	gap: var(--s5);
}

.subject-group__title {
	font-family: var(--display);
	font-size: var(--t-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--slate-dim);
	margin-bottom: .85rem;
}

.subject-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.subject-chip {
	display: inline-flex;
	align-items: center;
	padding: .45rem .85rem;
	border-radius: var(--r-chip);
	border: 1px solid var(--rule);
	background: var(--chalk);
	font-size: var(--t-sm);
	color: var(--slate);
}

.subject-chip--core {
	border-color: var(--marker-line);
	background: var(--marker-wash);
	color: var(--marker-text);
	font-weight: 600;
}

/* ============================================================ PAGE INTRO BAND
   template-parts/pages/intro.php. The band had no padding of its own and its
   heading sat outside .article-entry, so it rendered at the browser's default
   size — smaller than the section headings below it. */
.page-intro-band {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.page-intro-prose > h2 {
	font-family: var(--display);
	font-size: var(--t-h2);
	line-height: 1.15;
	color: var(--ink);
	margin-bottom: var(--s4);
}

/* ============================================================ POLICY DOCUMENTS
   Furniture added to every policy page by inc/policy-pages.php: when the
   document last changed, a contents list, and who to contact.

   Every selector here is scoped under .policy-doc on purpose. This markup is
   injected into .article-entry, whose rules are element-qualified —
   ".article-entry p" and ".article-entry ul" outrank a bare class — so an
   unscoped ".policy-contact p" lost its colour to ".article-entry p { color:
   var(--ink) }" and rendered navy text on the navy block. Scoping restores the
   intended precedence instead of resorting to !important. */
.policy-doc .policy-meta {
	margin: 0 0 var(--s5);
	padding-bottom: var(--s4);
	border-bottom: 1px solid var(--rule);
	font-size: var(--t-sm);
	color: var(--slate);
	line-height: 1.6;
}

.policy-doc .policy-toc {
	margin: 0 0 var(--s6);
	padding: var(--s4) var(--s5);
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	background: var(--paper-hi);
}

.policy-doc .policy-toc__title {
	margin: 0 0 var(--s3);
	font-family: var(--display);
	font-size: var(--t-sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--slate);
}

/* No marker: these documents number their own sections, so a list number
   rendered "1. 1. Who We Are". */
.policy-doc .policy-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.4rem;
	font-size: var(--t-sm);
}

.policy-doc .policy-toc__list li {
	margin: 0;
}

.policy-doc .policy-toc__list a {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.policy-doc .policy-toc__list a:hover {
	border-bottom-color: var(--rule-hard);
}

/* An anchored heading must not land under the sticky header. */
.policy-doc h2 {
	scroll-margin-top: 5.5rem;
}

/* The documents run to a dozen numbered sections with subsections beneath
   them. Without a clear step between the two, a reader scanning for "In-home
   tutoring" cannot tell a section from a subsection. */
.policy-doc h3 {
	margin-top: 1.75rem;
	font-size: 1.1rem;
	color: var(--slate);
}

.policy-doc .policy-contact {
	margin-top: var(--s7);
	padding: var(--s5);
	border-radius: var(--r-card);
	background: var(--ink);
	color: var(--on-ink-2);
}

.policy-doc .policy-contact__title {
	margin: 0 0 var(--s3);
	font-family: var(--display);
	font-size: 1.25rem;
	color: var(--chalk);
}

.policy-doc .policy-contact p {
	margin: 0 0 var(--s3);
	font-size: var(--t-sm);
	line-height: 1.6;
	color: var(--on-ink-2);
}

.policy-doc .policy-contact__list {
	list-style: none;
	margin: 0 0 var(--s4);
	padding: 0;
	display: grid;
	gap: 0.5rem;
	font-size: var(--t-sm);
}

.policy-doc .policy-contact__list li {
	margin: 0;
	color: var(--on-ink-2);
}

.policy-doc .policy-contact__list a {
	color: var(--chalk);
	font-weight: 600;
}

.policy-doc .policy-contact__list span {
	color: var(--on-ink-3);
}

/* The emergency line must not read as another way to contact us. */
.policy-doc .policy-contact__note {
	margin: 0;
	padding-top: var(--s4);
	border-top: 1px solid rgba(255, 255, 255, .18);
	font-size: var(--t-xs);
	color: var(--on-ink-3);
}

@media (max-width: 560px) {
	.policy-doc .policy-toc,
	.policy-doc .policy-contact {
		padding: var(--s4);
	}
}

/* Policy pages never hide their own content. reveal.js already bails on them,
   and this is the belt to that braces: if the script is ever reordered, cached
   stale, or fails after the .js class is set, a legal document must still be
   readable the instant the page loads rather than stuck at opacity 0. */
.tc-policy-page .reveal {
	opacity: 1;
	transform: none;
	transition: none;
}
