/* =======================================================================
 * Phase B1 — identity pages (Η Διαδρομή μου, Ειδική Αγωγή, Σχολεία,
 * Επικοινωνία, Εκδόσεις, σελίδα βιβλίου, Δημοσιεύσεις στα μέσα).
 *
 * Everything is scoped under `.sf-pi`. Tokens only; the 12-column grid is the
 * shared one (`--sf-columns`, `--sf-col-gap`, `.sf-shell`). Home-only classes
 * are not loaded on inner pages, so the few equivalents live here (`.sf-pi-*`).
 *
 * Contents
 *   0. Page rhythm: header, section, hairline, chapter background
 *   1. Typography helpers, figure, facts, prose
 *   2. Split, rows, steps, pillars, routes, centre block
 *   3. Special Education
 *   4. Schools
 *   5. Forms (shared by Σχολεία + Επικοινωνία)
 *   6. Contact
 *   7. Books list, book page, publications
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 0. Page rhythm
 * ------------------------------------------------------------------- */
.sf-pi {
	--sf-pi-pad: var(--sf-space-3xl);
	--sf-pi-rule-pad: var(--sf-space-2xl);
	overflow-x: clip;
}

.sf-pi .sf-page__header {
	margin-bottom: 0;
	padding-bottom: var(--sf-space-2xl);
}

.sf-pi-section {
	position: relative;
	padding-block: var(--sf-pi-pad);
	background: var(--sf-color-bg);
	/* No scroll-margin here: the root's scroll-padding-top (header + 1.5rem, base.css) already lands the section
	   under the sticky header; adding a header-sized margin as well put every anchor ~120px too low. */
}

/* An anchor target that still waits for its fade-up reveal sits 16px low while the jump is measured:
   one reveal distance of extra margin lands it where it will settle. */
.js-motion-ready .sf-pi [data-sf-anchor][data-sf-reveal] {
	scroll-margin-top: var(--sf-distance-md);
}

/* Menu-anchor targets (Round-31b) take focus from script after the jump; they are not interactive,
   so no ring on the container itself (the next Tab goes to the first real control inside). */
.sf-pi [data-sf-anchor]:focus {
	outline: none;
}

.sf-pi-section--muted {
	background: var(--sf-color-surface-muted);
}

/* Two same-background sections in a row: a hairline on the shell top, then 80px. */
.sf-pi-section--rule {
	padding-block-start: 0;
}

.sf-pi-section--rule > .sf-shell > .sf-pi-body {
	padding-top: var(--sf-pi-rule-pad);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-pi-section--tight {
	padding-block: var(--sf-space-2xl);
}

.sf-pi-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-2xl);
}

.sf-pi-section--rule > .sf-shell > .sf-pi-body {
	gap: var(--sf-space-2xl);
}

/* Brand motif (decorative CSS background, aria-hidden by construction). */
.sf-pi-section--motif {
	overflow: clip;
}

@media (min-width: 48em) {
	.sf-pi-section--motif::before {
		content: "";
		position: absolute;
		z-index: 0;
		top: 12%;
		left: 0;
		width: 22%;
		max-width: 20rem;
		height: 76%;
		background: url("../images/brand/brand-motif.svg") center / contain no-repeat;
		opacity: 0.22;
		transform: scaleY(-1);
		pointer-events: none;
	}
}

.sf-pi-cols {
	display: grid;
	grid-template-columns: repeat(var(--sf-columns), minmax(0, 1fr));
	column-gap: var(--sf-col-gap);
	row-gap: var(--sf-space-lg);
}

.sf-pi-cols > * {
	grid-column: 1 / -1;
	min-width: 0;
}

/* ---------------------------------------------------------------------
 * 1. Typography helpers, figure, facts, prose
 * ------------------------------------------------------------------- */
.sf-pi-h2 {
	margin: 0;
	max-width: 35rem;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-4xl);
	font-weight: var(--sf-font-weight-regular);
	letter-spacing: var(--sf-tracking-h2);
	line-height: var(--sf-leading-h2);
}

.sf-pi-h3 {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
}

.sf-pi-display {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-display-md);
	font-weight: var(--sf-font-weight-regular);
	letter-spacing: var(--sf-tracking-display);
	line-height: var(--sf-leading-tight);
}

.sf-pi-lead-serif {
	max-width: 46rem;
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	line-height: var(--sf-leading-heading);
}

.sf-pi-muted {
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-pi p {
	max-width: 40rem;
}

.sf-pi .is-placeholder {
	background: var(--sf-color-surface-muted); /* same sky slot as pages-content.css (not loaded on these pages) */
	color: var(--sf-color-text-muted);
	font-style: italic;
}

.sf-pi-prose {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	max-width: 40rem;
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

.sf-pi-prose p {
	margin: 0;
}

.sf-pi-copy {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
}

.sf-pi-copy > p {
	margin: 0;
}

/* Photo slots. */
.sf-pi-figure {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	margin: 0;
}

.sf-pi-figure__img,
.sf-pi-figure__placeholder {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--sf-radius-xs);
	transform-origin: 50% 0; /* the reveal settle never moves the top edge: headroom stays */
}

.sf-pi-figure__placeholder {
	background: var(--sf-color-surface-muted);
	border: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-pi-section--muted .sf-pi-figure__placeholder {
	background: var(--sf-sky-100);
}

.sf-pi-figure--4x5 .sf-pi-figure__img,
.sf-pi-figure--4x5 .sf-pi-figure__placeholder {
	aspect-ratio: 4 / 5;
}

.sf-pi-figure--3x2 .sf-pi-figure__img,
.sf-pi-figure--3x2 .sf-pi-figure__placeholder {
	aspect-ratio: 3 / 2;
}

.sf-pi-figure--2x3 .sf-pi-figure__img,
.sf-pi-figure--2x3 .sf-pi-figure__placeholder {
	aspect-ratio: 2 / 3;
}

.sf-pi-figure__caption {
	max-width: 32rem;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

/* Facts: small label above, value below, hairline on top. */
.sf-pi-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sf-space-md);
	margin: var(--sf-space-md) 0 0;
}

.sf-pi-facts__item {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-3xs);
	padding-top: var(--sf-space-sm);
	border-top: var(--sf-border-width) solid var(--sf-color-border-strong);
	min-width: 0;
}

.sf-pi-facts dt {
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-pi-facts dd {
	margin: 0;
	color: var(--sf-color-heading);
	font-size: var(--sf-text-base);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-body);
	overflow-wrap: anywhere;
}

@media (min-width: 40em) {
	.sf-pi-facts--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
	}
}

/* ---------------------------------------------------------------------
 * 2. Split, rows, steps, pillars, routes, centre block
 * ------------------------------------------------------------------- */
.sf-pi-split__media {
	max-width: 30rem;
}

.sf-pi-split__copy {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
}

.sf-pi-split__copy .sf-pi-facts {
	width: 100%;
}

@media (min-width: 64em) {
	.sf-pi-split--media-left > .sf-pi-split__media {
		grid-column: 1 / span 5;
		max-width: none;
	}

	.sf-pi-split--media-left > .sf-pi-split__copy {
		grid-column: 7 / -1;
	}

	.sf-pi-split--media-left-6 > .sf-pi-split__media {
		grid-column: 1 / span 6;
		max-width: none;
	}

	.sf-pi-split--media-left-6 > .sf-pi-split__copy {
		grid-column: 8 / -1;
	}

	/* Figma A2: image cols 1–5, copy cols 7–12 */
	.sf-pi-split > .sf-pi-split__media--about {
		grid-column: 1 / span 5;
		max-width: none;
	}

	.sf-pi-split > .sf-pi-split__copy {
		grid-column: 7 / -1;
	}
}

/* Numbered journey rows. */
.sf-pi-steps {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pi-step {
	padding-block: var(--sf-space-lg);
	border-top: var(--sf-border-width) solid var(--sf-color-border-strong);
	align-items: start;
}

.sf-pi-step:last-child {
	border-bottom: var(--sf-border-width) solid var(--sf-color-border-strong);
}

.sf-pi-step__num {
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
	font-variant-numeric: tabular-nums;
	letter-spacing: var(--sf-tracking-eyebrow);
}

.sf-pi-step__head,
.sf-pi-step__body {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	align-items: flex-start;
}

.sf-pi-step__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
}

.sf-pi-step__desc,
.sf-pi-step__body > p {
	margin: 0;
}

.sf-pi-step__desc {
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

@media (min-width: 64em) {
	.sf-pi-step__num {
		grid-column: 1 / span 1;
	}

	.sf-pi-step__head {
		grid-column: 2 / span 5;
	}

	.sf-pi-step__body {
		grid-column: 7 / -1;
	}
}

.sf-pi-quote__inner {
	max-width: 44rem;
}

@media (min-width: 64em) {
	.sf-pi-quote__inner {
		grid-column: 7 / -1;
	}
}

/* Centred block (philosophy). */
.sf-pi-center {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: center;
	text-align: center;
}

.sf-pi-center .sf-eyebrow {
	justify-content: center;
}

.sf-pi-center p {
	margin-inline: auto;
}

/* Three pillars with an emphasis rule on top. */
.sf-pi-pillars {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sf-space-lg);
}

.sf-pi-pillar {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	padding-top: var(--sf-space-md);
	border-top: 2px solid var(--sf-color-border-emphasis);
}

.sf-pi-pillar__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-regular);
	line-height: var(--sf-leading-h3);
}

.sf-pi-pillar p {
	margin: 0;
	color: var(--sf-color-text);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

@media (min-width: 48em) {
	.sf-pi-pillars {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
	}
}

/* Routes: heading left, rows right. */
.sf-pi-routes__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pi-route {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	align-items: flex-start;
	padding-block: var(--sf-space-md);
	border-top: var(--sf-border-width) solid var(--sf-color-border-strong);
}

.sf-pi-route:last-child {
	border-bottom: var(--sf-border-width) solid var(--sf-color-border-strong);
}

.sf-pi-route p {
	margin: 0;
	color: var(--sf-color-text);
}

.sf-pi-route__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
}

@media (min-width: 64em) {
	.sf-pi-routes__head {
		grid-column: 1 / span 5;
	}

	.sf-pi-routes__list {
		grid-column: 7 / -1;
	}
}

/* ---------------------------------------------------------------------
 * 3. Special Education
 * ------------------------------------------------------------------- */
.sf-pi--special-education .sf-page__header {
	padding-bottom: var(--sf-space-lg);
}

.sf-pi-disclaimer {
	padding-bottom: var(--sf-pi-pad);
}

.sf-pi-disclaimer p {
	max-width: none;
	margin: 0;
	padding-top: var(--sf-space-md);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-pi-h2--sm {
	font-size: var(--sf-text-3xl);
}

.sf-pi-philosophy__head {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
}

.sf-pi-philosophy__quotes {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xl);
}

.sf-pi-pullquote {
	padding-left: var(--sf-space-md);
	border-left: 2px solid var(--sf-color-border-emphasis);
}

.sf-pi-pullquote .sf-quote {
	margin: 0;
	padding: 0;
	border: 0;
	text-align: left;
	align-items: flex-start;
}

@media (min-width: 64em) {
	.sf-pi-philosophy__head {
		grid-column: 1 / span 5;
	}

	.sf-pi-philosophy__quotes {
		grid-column: 7 / -1;
	}
}

.sf-pi-tools {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sf-space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pi-tool {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	padding-top: var(--sf-space-md);
	border-top: 2px solid var(--sf-color-border-emphasis);
}

.sf-pi-tool p {
	margin: 0;
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

@media (min-width: 40em) {
	.sf-pi-tools {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
	}
}

@media (min-width: 64em) {
	.sf-pi-tools {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.sf-pi-goals {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-3xs) 0;
	max-width: 56rem;
	margin: var(--sf-space-lg) 0 0;
	padding: 0;
	list-style: none;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	line-height: var(--sf-leading-h3);
}

.sf-pi-goals li:not(:last-child)::after {
	/* The separator trails the word before it, so a wrapped line never starts with «·». */
	content: "·";
	display: inline-block;
	margin-inline: 0.6em;
	color: var(--sf-color-text-muted);
}

.sf-pi-duo {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sf-space-xl);
}

.sf-pi-duo__col {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	padding-top: var(--sf-space-md);
	border-top: 2px solid var(--sf-color-border-emphasis);
}

.sf-pi-duo__col p {
	margin: 0;
}

@media (min-width: 48em) {
	.sf-pi-duo {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
	}
}

.sf-pi-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-xs) var(--sf-space-lg);
	margin: 0;
	max-width: none;
}

.sf-pi-start {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-lg);
	padding-top: var(--sf-pi-rule-pad);
	border-top: var(--sf-border-width) solid var(--sf-color-border-strong);
}

.sf-pi-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sf-space-xl) var(--sf-col-gap);
}

@media (min-width: 48em) {
	.sf-pi-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.sf-pi-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Boxed call (E8, S8, newsletter-like): sky-50 panel on the page background. */
.sf-pi-box {
	padding: var(--sf-space-xl) var(--sf-space-lg);
	background: var(--sf-color-surface-muted);
	border-radius: var(--sf-radius-xs);
	row-gap: var(--sf-space-lg);
}

.sf-pi-box__lead,
.sf-pi-box__action {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
}

.sf-pi-box__lead p,
.sf-pi-box__action p {
	margin: 0;
}

@media (min-width: 64em) {
	.sf-pi-box {
		padding: var(--sf-space-xl);
	}

	.sf-pi-box__lead {
		grid-column: 1 / span 5;
	}

	.sf-pi-box__action {
		grid-column: 7 / -1;
	}
}

/* ---------------------------------------------------------------------
 * 4. Schools
 * ------------------------------------------------------------------- */
.sf-pi-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-md) var(--sf-space-lg);
	align-items: center;
	padding-bottom: 4rem; /* Figma S0: shell bottom → section edge 64 (mobile) / 80 (desktop) */
}

@media (min-width: 64em) {
	.sf-pi-hero-actions {
		padding-bottom: var(--sf-space-2xl);
	}
}

.sf-pi--schools .sf-page__header {
	padding-bottom: var(--sf-space-md); /* lead → buttons 28 (Figma intro gap) */
}

.sf-pi-steps--plain .sf-pi-step__head--wide {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-3xs);
}

/* Schools S3: number column + title/ages/description (Figma 396:1434: 70 + 40 + 510 in the 620 column;
   mobile 400:1571: 32 + 24 + 294). */
.sf-pi-steps--plain .sf-pi-step {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr);
	column-gap: 1.5rem;
}

.sf-pi-steps--plain .sf-pi-step__num,
.sf-pi-steps--plain .sf-pi-step__head,
.sf-pi-steps--plain .sf-pi-step__head--wide {
	grid-column: auto;
}

@media (min-width: 64em) {
	.sf-pi-steps--plain .sf-pi-step {
		display: grid;
		grid-template-columns: 4.375rem minmax(0, 1fr);
		column-gap: var(--sf-col-gap);
	}

	.sf-pi-steps--plain .sf-pi-step__num {
		grid-column: 1;
	}

	.sf-pi-steps--plain .sf-pi-step__head,
	.sf-pi-steps--plain .sf-pi-step__head--wide {
		grid-column: 2;
	}
}

/* Schools S4: facts (2 columns) and the stages sit in the right-hand column. */
.sf-pi-format {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xl);
}

.sf-pi-facts--4,
.sf-pi-facts--5 {
	margin-top: 0;
}

@media (min-width: 48em) {
	.sf-pi-facts--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
	}

	.sf-pi-facts--5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
	}
}

@media (min-width: 64em) {
	.sf-pi-facts--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Schools S4 stages (Figma 410:1666): number 48 + 28, serif title, muted line, hairline rows 16 / 16. */
.sf-pi-stages {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pi-stage {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	padding-block: var(--sf-space-sm);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-pi-stage__num {
	flex: none;
	width: 2rem;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	font-variant-numeric: tabular-nums;
	line-height: var(--sf-leading-meta);
}

.sf-pi-stage__col {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--sf-space-3xs);
	min-width: 0;
}

.sf-pi-stage__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
}

.sf-pi-stage__text {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm); /* mobile 400:1625: Body/Small */
	line-height: var(--sf-leading-small);
}

@media (min-width: 48em) {
	.sf-pi-stage__col {
		gap: var(--sf-space-2xs);
	}

	.sf-pi-stage__text {
		font-size: var(--sf-text-base);
		line-height: var(--sf-leading-body);
	}
}

@media (min-width: 64em) {
	.sf-pi-stage {
		gap: var(--sf-space-md);
	}

	.sf-pi-stage__num {
		width: 3rem;
	}
}

.sf-pi-checks {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pi-checks li {
	display: flex;
	gap: var(--sf-space-xs);
	align-items: flex-start;
	line-height: var(--sf-leading-body);
}

.sf-pi-checks__icon {
	flex: none;
	margin-top: 0.15em;
	color: var(--sf-color-action);
}

.sf-pi-faq {
	display: flex;
	flex-direction: column;
}

.sf-pi-faq__row {
	padding-block: var(--sf-space-md);
	border-top: var(--sf-border-width) solid var(--sf-color-border-strong);
}

.sf-pi-faq__row:last-child {
	border-bottom: var(--sf-border-width) solid var(--sf-color-border-strong);
}

.sf-pi-faq__a {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	align-items: flex-start;
}

.sf-pi-faq__a p {
	margin: 0;
}

@media (min-width: 64em) {
	.sf-pi-faq__row > .sf-pi-step__title {
		grid-column: 1 / span 5;
	}

	.sf-pi-faq__a {
		grid-column: 7 / -1;
	}
}

.sf-pi-closing {
	margin-top: var(--sf-space-lg);
}

.sf-pi-box__alt {
	margin-top: var(--sf-space-xs);
}

/* ---------------------------------------------------------------------
 * 5. Forms (Σχολεία + Επικοινωνία)
 * ------------------------------------------------------------------- */
.sf-pi-form {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-md);
	width: 100%;
}

.sf-pi-form__note {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
}

.sf-pi-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sf-space-md);
}

.sf-pi-form__field {
	min-width: 0;
}

.sf-pi-form__field[hidden] {
	display: none;
}

.sf-pi-form .sf-field__input,
.sf-pi-form .sf-field__select,
.sf-pi-form .sf-field__textarea {
	width: 100%;
	min-height: 2.75rem;
}

.sf-pi-form__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sf-pi-form__failure {
	margin: 0;
	max-width: none;
	padding: var(--sf-space-sm);
	border: 2px solid var(--sf-color-danger);
	border-radius: var(--sf-radius-xs);
	background: var(--sf-color-surface);
	color: var(--sf-color-danger);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

/* The book page button's own message (an old page whose form has lapsed). */
.sf-order-cta__alert {
	margin: 0 0 var(--sf-space-xs);
	max-width: 32rem;
	padding: var(--sf-space-xs) var(--sf-space-sm);
	border: 2px solid var(--sf-color-danger);
	border-radius: var(--sf-radius-xs);
	background: var(--sf-color-surface);
	color: var(--sf-color-danger);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-pi-form__failure:focus,
.sf-pi-success:focus {
	outline: var(--sf-focus-ring-width) solid var(--sf-color-focus);
	outline-offset: var(--sf-focus-ring-offset);
}

.sf-pi-form__actions {
	display: flex;
}

.sf-pi-form__topic-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-xs) var(--sf-space-md);
}

.sf-pi-form__topic-links:empty {
	display: none;
}

.sf-pi-form .sf-error-summary,
.sf-pi-form .sf-pi-form__field--check .sf-field__error {
	max-width: none;
}

.sf-pi-form [aria-busy="true"] {
	opacity: 0.7;
	pointer-events: none;
}

/* Success: the form is replaced by this block inside the same box. */
.sf-pi-success {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	padding: var(--sf-space-lg);
	background: var(--sf-color-surface);
	border: var(--sf-border-width) solid var(--sf-color-border);
	border-radius: var(--sf-radius-xs);
	width: 100%;
}

.sf-pi-success p {
	margin: 0;
}

.sf-pi-success__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-regular);
	line-height: var(--sf-leading-h3);
}

.sf-pi-success__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-xs) var(--sf-space-md);
}

@media (min-width: 40em) {
	.sf-pi-form__grid--contact,
	.sf-pi-form__grid--schools {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
	}

	.sf-pi-form__grid [data-field="phone"],
	.sf-pi-form__grid [data-field="org"],
	.sf-pi-form__grid [data-field="topic"],
	.sf-pi-form__grid [data-field="message"],
	.sf-pi-form__grid [data-field="consent"] {
		grid-column: 1 / -1;
	}

	.sf-pi-form__grid--schools [data-field="name"],
	.sf-pi-form__grid--schools [data-field="email"],
	.sf-pi-form__grid--schools [data-field="org"],
	.sf-pi-form__grid--schools [data-field="phone"] {
		grid-column: auto;
	}

	.sf-pi-form__grid--contact [data-field="phone"] {
		grid-column: auto;
	}
}

@media (min-width: 64em) {
	.sf-pi-box--form .sf-pi-box__action--form {
		grid-column: 7 / span 5;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.sf-pi-form .sf-field__error,
	.sf-pi-form .sf-error-summary,
	.sf-pi-form__failure {
		animation: sf-pi-fade var(--sf-duration-fast) var(--sf-ease-standard);
	}
}

@keyframes sf-pi-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* ---------------------------------------------------------------------
 * 6. Contact
 * ------------------------------------------------------------------- */
.sf-pi--contact .sf-page__header {
	padding-bottom: var(--sf-space-lg);
}

.sf-pi-quick {
	padding-bottom: var(--sf-space-xl);
}

.sf-pi-quick p {
	margin: 0;
}

@media (min-width: 64em) {
	.sf-pi-quick {
		display: none;
	}

	.sf-pi--contact .sf-page__header {
		padding-bottom: var(--sf-space-2xl);
	}
}

.sf-pi-contact__form,
.sf-pi-contact__side {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-md);
	align-items: flex-start;
}

.sf-pi-contact__side p {
	margin: 0;
}

.sf-pi-address {
	width: 100%;
	font-style: normal;
}

.sf-pi-address .sf-pi-facts {
	margin: 0;
}

.sf-pi-address dd .sf-pi-muted {
	display: block;
	margin-top: var(--sf-space-3xs);
	font-weight: var(--sf-font-weight-regular);
}

.sf-pi-social {
	display: flex;
	gap: var(--sf-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pi-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--sf-color-icon);
	border-radius: var(--sf-radius-xs);
	transition: color var(--sf-duration-fast) var(--sf-ease-standard);
}

.sf-pi-social__link:hover {
	color: var(--sf-color-link-hover);
}

@media (min-width: 64em) {
	.sf-pi-contact__form {
		grid-column: 1 / span 7;
	}

	.sf-pi-contact__side {
		grid-column: 9 / -1;
		padding-top: calc(var(--sf-text-3xl) * 1.3);
	}
}

.sf-pi-topics {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------------------------------------------------------------------
 * 7. Books list, book page, publications
 * ------------------------------------------------------------------- */
.sf-pi-cover {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: var(--sf-radius-xs);
	box-shadow: var(--sf-shadow-raised);
}

.sf-pi-cover--placeholder {
	background: var(--sf-color-surface-muted);
	border: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-pi-lead {
	margin: 0;
	max-width: 36rem;
	color: var(--sf-color-text);
	font-size: var(--sf-text-lg);
	line-height: var(--sf-leading-body);
}

.sf-pi-price {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	line-height: var(--sf-leading-h3);
}

.sf-pi-byline {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-base);
}

.sf-pi-avail {
	display: flex;
	gap: var(--sf-space-2xs);
	align-items: center;
	margin: 0;
	font-size: var(--sf-text-sm);
}

.sf-pi-avail__icon {
	flex: none;
	color: var(--sf-color-action);
}

.sf-pi-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-sm) var(--sf-space-lg);
	align-items: center;
}

.sf-pi-ctanote {
	max-width: 30rem;
}

.sf-pi-titlelink {
	color: inherit;
	text-decoration: none;
}

.sf-pi-titlelink:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Εκδόσεις: feature */
.sf-pi-bookfeature__cover {
	width: min(60%, 15rem);
}

.sf-pi-bookfeature__copy,
.sf-pi-edition__copy {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
}

.sf-pi-bookfeature__copy > p,
.sf-pi-edition__copy > p {
	margin: 0;
}

@media (min-width: 64em) {
	.sf-pi-bookfeature__cover {
		grid-column: 1 / span 4;
		width: auto;
	}

	.sf-pi-bookfeature__copy {
		grid-column: 6 / -1;
		align-self: center;
	}
}

.sf-pi-why__head,
.sf-pi-why__text {
	align-items: flex-start;
}

.sf-pi-why__text > p {
	margin: 0;
}

@media (min-width: 64em) {
	.sf-pi-split > .sf-pi-why__head {
		grid-column: 1 / span 5;
	}

	.sf-pi-split > .sf-pi-why__text {
		grid-column: 7 / -1;
	}
}

/* Book page hero */
.sf-pi-bookhero {
	padding-bottom: var(--sf-space-2xl);
}

.sf-pi-bookhero .sf-breadcrumb,
.sf-pi-bookhero nav[aria-label] {
	margin-top: var(--sf-space-md);
}

.sf-pi-bookhero__grid {
	margin-top: var(--sf-space-md);
	align-items: start;
}

.sf-pi-bookhero__cover {
	width: 7.5rem;
}

.sf-pi-bookhero__copy {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	align-items: flex-start;
}

.sf-pi-bookhero__copy > p {
	margin: 0;
}

.sf-pi-bookhero .sf-page-intro {
	padding-block-start: 0;
	gap: var(--sf-space-xs);
}

.sf-pi-bookhero__copy .sf-actions,
.sf-pi-bookhero .sf-pi-actions {
	margin-top: var(--sf-space-3xs);
}

@media (max-width: 47.99em) {
	/* Mobile: cover and title side by side keep the button inside the first screen. */
	.sf-pi-bookhero__grid {
		grid-template-columns: 7rem minmax(0, 1fr);
		column-gap: var(--sf-space-sm);
		row-gap: var(--sf-space-xs);
	}

	.sf-pi-bookhero__cover {
		grid-column: 1 / 2;
		grid-row: 1;
		width: 100%;
	}

	.sf-pi-bookhero__copy {
		display: contents;
	}

	.sf-pi-bookhero__copy > .sf-page-intro {
		grid-column: 2 / -1;
		grid-row: 1;
		align-self: start;
	}

	.sf-pi-bookhero__copy > :not(.sf-page-intro) {
		grid-column: 1 / -1;
	}

	.sf-pi-bookhero .h1-term {
		font-size: var(--sf-text-3xl);
	}

	.sf-pi-bookhero .h1-voice {
		font-size: var(--sf-text-xl);
	}

	.sf-pi-bookhero__lead {
		font-size: var(--sf-text-base);
	}
}

@media (min-width: 48em) {
	.sf-pi-bookhero__cover {
		width: 15rem;
	}
}

@media (min-width: 64em) {
	.sf-pi-bookhero__cover {
		grid-column: 1 / span 4;
		width: 100%;
	}

	.sf-pi-bookhero__copy {
		grid-column: 6 / -1;
		align-self: center;
	}
}

.sf-pi-bigquote {
	display: flex;
	justify-content: center;
}

.sf-pi-themes {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sf-space-lg) var(--sf-col-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pi-theme {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	padding-top: var(--sf-space-sm);
	border-top: var(--sf-border-width) solid var(--sf-color-border-strong);
}

.sf-pi-theme p {
	margin: 0;
}

@media (min-width: 40em) {
	.sf-pi-themes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.sf-pi-themes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sf-pi-checks--rows {
	gap: 0;
}

.sf-pi-checks--rows li {
	padding-block: var(--sf-space-sm);
	border-top: var(--sf-border-width) solid var(--sf-color-border-strong);
}

.sf-pi-checks--rows li:last-child {
	border-bottom: var(--sf-border-width) solid var(--sf-color-border-strong);
}

.sf-pi-excerpt {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	max-width: 40rem;
	margin-inline: auto;
	width: 100%;
}

.sf-pi-excerpt > p {
	margin: 0;
}

.sf-pi-prose--read {
	font-size: var(--sf-text-lg);
}

.sf-pi-review {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	align-items: flex-start;
	padding-top: var(--sf-space-md);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
	width: 100%;
}

.sf-pi-edition__cover {
	width: min(60%, 14rem);
}

@media (min-width: 64em) {
	.sf-pi-edition__cover {
		grid-column: 1 / span 3;
		width: auto;
	}

	.sf-pi-edition__copy {
		grid-column: 5 / -1;
	}
}

/* Publications archive */
.sf-pi--publications .sf-page__header {
	padding-bottom: var(--sf-space-lg);
}

.sf-pi-filter {
	padding-bottom: var(--sf-space-xl);
}

.sf-pi-section--list {
	padding-top: var(--sf-space-lg);
}

.sf-pi-cards--list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pi-cards__item {
	min-width: 0;
}

.sf-pi-closing-split {
	align-items: end;
}

@media (min-width: 64em) {
	.sf-pi-closing-split > .sf-pi-h2 {
		grid-column: 1 / span 6;
	}

	.sf-pi-closing-split > .sf-pi-links {
		grid-column: 8 / -1;
	}
}

/* Identity header as drawn in the Figma frames of these pages (379:1298): the «voice» line at
   44px in the heading colour, the lead in the text colour, and the long name wrapping in two lines. */
.sf-pi--about .sf-page-intro__heading--identity .h1-voice,
.sf-pi--special-education .sf-page-intro__heading--identity .h1-voice,
.sf-pi--schools .sf-page-intro__heading--identity .h1-voice {
	max-width: none;
	color: var(--sf-color-heading);
	font-size: var(--sf-text-4xl);
}

.sf-pi--about .sf-page-intro__heading--identity .h1-term {
	max-width: 8.2em;
}

.sf-pi--about .sf-page-intro__text,
.sf-pi--special-education .sf-page-intro__text,
.sf-pi--schools .sf-page-intro__text {
	max-width: 46rem;
	color: var(--sf-color-text);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-lg); /* Figma Body/Lead: serif 20 / 1.6 */
	line-height: var(--sf-leading-body);
}

/* ---------------------------------------------------------------------
 * 8. Rhythm of the three identity pages vs Figma (QA M7)
 *    About 379:1193, Special Education 391:639, Schools 396:1127.
 *    Blocks inside a section are 40 apart (space-lg), the heading→content
 *    gap is 40 as well; rows and pillars carry 16 above/below, 1px rules.
 * ------------------------------------------------------------------- */
.sf-pi--about .sf-pi-body,
.sf-pi--special-education .sf-pi-body,
.sf-pi--schools .sf-pi-body,
.sf-pi--about .sf-pi-section--rule > .sf-shell > .sf-pi-body,
.sf-pi--special-education .sf-pi-section--rule > .sf-shell > .sf-pi-body,
.sf-pi--schools .sf-pi-section--rule > .sf-shell > .sf-pi-body {
	gap: var(--sf-space-lg);
}

/* Numbered rows (About A3, Special Education E6, Schools S3/S4): 1px rule, 16 / 16, title→desc 4. */
.sf-pi-step {
	padding-block: var(--sf-space-sm);
	border-top-color: var(--sf-color-border);
}

.sf-pi-step:last-child {
	border-bottom-color: var(--sf-color-border);
}

.sf-pi-step__head,
.sf-pi-step__body {
	gap: var(--sf-space-3xs);
}

.sf-pi-step__body {
	gap: var(--sf-space-sm);
}

.sf-pi-step__num {
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
	letter-spacing: 0;
}

/* Pillars (Special Education E3): 1px emphasis rule, 16 above, title 30 / 1.25, gap 12. */
.sf-pi-tool {
	padding-top: var(--sf-space-sm);
	border-top-width: 1px;
}

.sf-pi-tool .sf-pi-h3 {
	font-size: var(--sf-text-2xl);
	line-height: var(--sf-leading-h3);
}

/* Special Education E3: image/copy → pillars are 56 apart. */
.sf-pi--special-education #approach .sf-pi-body {
	gap: var(--sf-space-xl);
}

/* Page header: 28 between eyebrow, H1, lead and actions (Figma intro gap); About is followed by a
   hairline section (A2), so the header gives it the full 104. */
.sf-pi--about .sf-page-intro,
.sf-pi--special-education .sf-page-intro,
.sf-pi--schools .sf-page-intro {
	gap: var(--sf-space-md);
}

.sf-pi--about .sf-page__header {
	padding-bottom: var(--sf-space-3xl);
}

/* Centre block + pillars (About A4, Schools S2): eyebrow / H2 / lead 40 apart, pillars 40 below
   (+24 as drawn), 1px emphasis rule, 16 above the title, title→text 12. */
.sf-pi--about .sf-pi-center,
.sf-pi--schools .sf-pi-center,
.sf-pi--special-education .sf-pi-center {
	gap: var(--sf-space-lg);
}

.sf-pi-pillar {
	padding-top: var(--sf-space-sm);
	border-top-width: 1px;
}

.sf-pi-pillar__title {
	font-weight: var(--sf-font-weight-medium);
}

@media (min-width: 48em) {
	.sf-pi-center + .sf-pi-pillars {
		margin-top: 1.5rem;
	}
}

.sf-pi-center .sf-pi-display {
	font-size: var(--sf-text-display-sm); /* Figma Display/Hero 72 / 1.08 */
	line-height: 1.08;
}

.sf-pi-center .sf-pi-lead-serif {
	max-width: 45rem; /* 720 */
	color: var(--sf-color-text);
	font-size: var(--sf-text-lg); /* Figma Body/Lead */
	line-height: var(--sf-leading-body);
}

.sf-pi-pillar p {
	color: var(--sf-color-text-muted);
}

/* Special Education E5/E6 + goals, Schools enquiry (QA M7).
   E5: two audience columns without a rule (Figma 392:768); E6: heading left, steps right; E4: goals line 1060 wide. */
.sf-pi--special-education .sf-pi-duo__col {
	padding-top: 0;
	border-top: 0;
}

@media (min-width: 64em) {
	.sf-pi-start {
		display: grid;
		grid-template-columns: repeat(var(--sf-columns), minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
		align-items: start;
	}

	.sf-pi-start__head {
		grid-column: 1 / span 5;
	}

	.sf-pi-start__list {
		grid-column: 7 / -1;
	}
}

.sf-pi--special-education .sf-pi-goals {
	max-width: 66.25rem;
}

/* The box sections: the section above supplies the 104 above; schools/special-ed contact sit directly under it. */
.sf-pi--special-education .sf-pi-section--tight,
.sf-pi--schools .sf-pi-section--tight {
	padding-block: 0 var(--sf-space-3xl);
}

.sf-pi-steps--plain .sf-pi-step__body {
	grid-column: 2;
}

/* E5 → E6: Figma gives the next block 104 + the hairline offset (81) below the audience columns. */
@media (min-width: 64em) {
	.sf-pi--special-education .sf-pi-start {
		margin-top: 4rem;
	}
}

/* ---------------------------------------------------------------------
 * 9. Schools — structure vs Figma 396:1127 / 400:1428 (Schools-fix)
 *    S1 copy, facts, S3 ages line, S4 facts + stages, S5 text rows,
 *    S6 centred intro / quote / button, S7 rows, S8 box, S9 links.
 *    Rhythm rules of section 8 are left as they are.
 * ------------------------------------------------------------------- */

/* The Figma mobile frame (400:1428) keeps the 28 and 40 steps between blocks (header, copy, form, links,
   heading → list); the fluid tokens would shrink them to 20 and 28, so the page holds them on every width. */
.sf-pi--schools {
	--sf-space-md: 1.75rem;
	--sf-space-lg: 2.5rem; /* heading → content and block gaps are 40 in both frames */
	--sf-pi-rule-pad: 5rem; /* hairline → heading 80 in both frames (396:1425, 400:1562) */
}

/* S0: the header block is 730 wide, so the long name wraps in two lines as drawn. */
.sf-pi--schools .sf-page-intro {
	max-width: 45.625rem;
}

.sf-pi--schools .sf-page-intro__heading--identity .h1-term {
	line-height: 1;
}

/* S1: heading 620 wide, intro in the muted text colour, 28 between blocks. */
.sf-pi--schools .sf-pi-split__copy {
	gap: var(--sf-space-md);
}

.sf-pi--schools .sf-pi-split__copy .sf-pi-h2 {
	max-width: none;
}

.sf-pi--schools .sf-pi-split__copy .sf-pi-prose,
.sf-pi--schools .sf-pi-split__copy .sf-pi-prose p {
	margin: 0;
	color: var(--sf-color-text-muted);
}

.sf-pi--schools .sf-pi-split__copy .sf-pi-facts {
	margin-top: 0;
}

/* Facts (S1, S4, S6): hairline, 12, caps label 14, value 15. */
.sf-pi--schools .sf-pi-facts__item {
	gap: var(--sf-space-3xs);
	padding-top: var(--sf-space-xs);
	border-top-color: var(--sf-color-border);
}

.sf-pi--schools .sf-pi-facts dt {
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	font-weight: var(--sf-font-weight-medium);
	letter-spacing: var(--sf-tracking-eyebrow);
	line-height: 1.3;
	text-transform: uppercase;
}

.sf-pi--schools .sf-pi-facts dd {
	font-size: var(--sf-text-sm);
	font-weight: var(--sf-font-weight-regular);
	line-height: var(--sf-leading-small);
}

.sf-pi--schools .sf-pi-facts {
	row-gap: 1.5rem; /* mobile 400:1531: 56 + 24 */
}

@media (min-width: 48em) {
	.sf-pi--schools .sf-pi-facts--4,
	.sf-pi--schools .sf-pi-facts--5 {
		row-gap: var(--sf-space-lg);
	}
}

/* S2 pillars: 24 apart on mobile (400:1547), side by side from 768. */
.sf-pi--schools .sf-pi-pillars {
	gap: 1.5rem;
}

/* S2 title: Heading/H2 size in the mobile frame (2 lines of 43), the 72px display from 768. */
.sf-pi--schools .sf-pi-center .sf-pi-display {
	font-size: var(--sf-text-4xl);
	line-height: 1.18;
}

@media (min-width: 48em) {
	.sf-pi--schools .sf-pi-center .sf-pi-display {
		font-size: var(--sf-text-display-sm);
		line-height: 1.08;
	}
}

/* S3: the age range line is the small meta line (Figma 396:1439: 14 / 1.4). */
.sf-pi--schools .sf-pi-step__ages {
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

/* S5: heading across the full width, two text lists with hairline rows (16 / 16), no icons. */
.sf-pi-lists {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sf-space-lg);
}

.sf-pi-list {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-md);
	min-width: 0;
}

.sf-pi-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pi-rows__item {
	padding-block: var(--sf-space-sm);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
	color: var(--sf-color-text);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
	overflow-wrap: anywhere;
}

@media (min-width: 48em) {
	.sf-pi-lists {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
	}
}

/* S6: centred 720 intro, 56 between blocks, 840 testimonial, centred button. */
.sf-pi--schools .sf-pi-section--exp .sf-pi-body {
	gap: var(--sf-space-xl);
}

.sf-pi--schools .sf-pi-intro {
	width: 100%;
	max-width: 45rem;
	margin-inline: auto;
}

.sf-pi--schools .sf-pi-intro .sf-section-heading__heading,
.sf-pi--schools .sf-pi-intro .sf-section-heading__text {
	max-width: none;
}

.sf-pi--schools .sf-pi-intro .sf-section-heading__intro {
	gap: var(--sf-space-md);
}

.sf-pi--schools .sf-pi-quote__inner {
	width: 100%;
	max-width: 52.5rem;
	margin-inline: auto;
}

.sf-pi--schools .sf-pi-quote__inner .sf-quote,
.sf-pi--schools .sf-pi-quote__inner .sf-quote__text {
	max-width: none;
}

.sf-pi-cta {
	display: flex;
	justify-content: center;
}

/* S7: rows as drawn, no closing line, answers in the muted colour. */
.sf-pi--schools .sf-pi-faq__row {
	row-gap: var(--sf-space-sm); /* mobile 400:1716: question → answer 16 */
	border-top-color: var(--sf-color-border);
}

.sf-pi--schools .sf-pi-faq__row:last-child {
	border-bottom: 0;
}

.sf-pi--schools .sf-pi-faq__a p {
	color: var(--sf-color-text-muted);
}

/* S8: box with copy in columns 2–5 and a one-column form in columns 7–11 (Figma 397:1373). */
.sf-pi--schools #enquiry {
	padding-bottom: var(--sf-space-lg);
}

.sf-pi--schools .sf-pi-box--form {
	padding: var(--sf-space-lg) var(--sf-space-md);
	row-gap: var(--sf-space-md);
}

.sf-pi--schools .sf-pi-box--form .sf-pi-box__lead,
.sf-pi--schools .sf-pi-box--form .sf-pi-box__action {
	gap: var(--sf-space-md);
}

.sf-pi-box__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
}

.sf-pi--schools .sf-pi-box__text {
	color: var(--sf-color-text-muted);
}

.sf-pi--schools .sf-pi-box__alt {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	margin-top: 0;
}

.sf-pi--schools .sf-pi-form__grid--schools {
	grid-template-columns: 1fr;
}

.sf-pi--schools .sf-pi-form__note {
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

@media (min-width: 64em) {
	.sf-pi--schools .sf-pi-box--form {
		padding: var(--sf-space-xl) 0;
	}

	.sf-pi--schools .sf-pi-box--form .sf-pi-box__lead {
		grid-column: 2 / span 4;
	}

	.sf-pi--schools .sf-pi-box--form .sf-pi-box__action--form {
		grid-column: 7 / span 5;
	}
}

/* S9: «Δείτε επίσης» is its own section under the box: 16 above, 104 below, links 40 apart. */
.sf-pi--schools .sf-pi-section--more {
	padding-block: var(--sf-space-sm) var(--sf-space-3xl);
}

.sf-pi--schools .sf-pi-more {
	width: 100%;
	max-width: none;
	margin: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-sm);
}

@media (min-width: 64em) {
	.sf-pi--schools .sf-pi-more {
		flex-direction: row;
		flex-wrap: wrap;
		gap: var(--sf-space-lg);
		align-items: center;
		min-height: 6.25rem;
	}
}

/* S3: rows carry only the top hairline (Figma 396:1434: 3 × 115). */
.sf-pi--schools .sf-pi-step:last-child {
	border-bottom: 0;
}

/* S8 alternatives wrap inside the 294 column on mobile (Figma 400:1751: two lines). */
.sf-pi--schools .sf-pi-box__alt .sf-button {
	max-width: 100%;
	white-space: normal;
	text-align: left;
}
