/**
 * Homepage sections — Figma "Homepage — Modern tones" (288:908).
 * Loaded on the front page only (inc/enqueue.php), after ui-components.css.
 *
 * Section-level LAYOUT and the pieces that exist only on the homepage
 * (hero panel, pillars, journey steps, school facts, book layout, episode
 * rows, filter tags, newsletter block). Buttons, text links, eyebrows,
 * section headings, article cards and the pull quote are the shared
 * components (components.css / ui-components.css) and are deliberately not
 * re-styled here — the one exception is the small icon rule at the end.
 *
 * Everything reads the semantic tokens (--sf-color-*, --sf-text-*,
 * --sf-space-*, …) from tokens.css; the few home-only values (fluid
 * display sizes for 390px) are named below. Breakpoints follow Figma's
 * Responsive Notes: mobile < 768, tablet 768–1023, desktop ≥ 1024.
 *
 * GRID: every section container is the shared `.sf-shell` (layout.css; 1280
 * content, gutters 20 / 40 / 64 / 80) and, where sections place columns, also
 * `.sf-cols` (4 / 8 / 12 columns, --sf-col-gap). There is no home-specific
 * gutter or container. Only backgrounds, brand motifs and the hero portrait
 * are full-bleed. 12-column placements (≥ 1024):
 *   01 hero      text 1–6 · portrait from col 7 → viewport right edge
 *   02 pillars   3 × 4 cols (intro stays a centred 720 measure)
 *   03 journey   image 1–5 · copy 7–12
 *   04 duo       6 + 6
 *   05 book      cover 1–4 · text 6–12
 *   06 podcast   featured: cover 1–3, body 4–10, date 11–12
 *   07 articles  3 × 4 cols
 *   08 news      box 1–12 · text 2–5 · form 7–11
 *
 * Contents
 *   0. Scope, container, section, brand motif
 *   1. Image slots (figure / placeholder)
 *   2. 01 Hero
 *   3. 02 Philosophy
 *   4. 03 Journey
 *   5. 04 Special Education + Schools
 *   6. 05 Book
 *   7. 06 Podcast
 *   8. 07 Articles
 *   9. 08 Newsletter
 *  10. Icons
 */

/* =======================================================================
 * 0. Scope, container, section, brand motif
 * ===================================================================== */

.sf-home {
	--sf-home-motif-opacity: 0.22; /* Brand Motif, "sky ~20%" — Figma 288:938 = 22% */

	/* Fluid sizes with a 390px floor (the global scale bottoms out too large
	   for "Τριαντάφυλλος" at 128px/72px display). Desktop value = Figma. */
	--sf-home-display-xl: clamp(2.5rem, 12.3vw, 8rem); /* 48px at 390 (Figma mobile H1), fluid up to the 1024 step */
	--sf-home-display: clamp(2.25rem, 1.2rem + 4.9vw, var(--sf-text-display-sm));
	--sf-home-h2: clamp(1.75rem, 1.1rem + 2.6vw, var(--sf-text-4xl));
	--sf-home-h1-book: clamp(2rem, 1.2rem + 3.4vw, var(--sf-text-5xl));

	background-color: var(--sf-color-bg);
	color: var(--sf-color-text);
}

/* Layering only — width and gutters come from .sf-shell on the same element. */
.sf-home-container {
	position: relative;
	z-index: 1;
}

.sf-home-section {
	position: relative;
	isolation: isolate;
	overflow: clip; /* the brand motif bleeds off the section edge */
}

:where(.sf-home) p {
	max-width: none; /* neutralise the global 65ch measure; layout sets its own widths */
}

/* Decorative brand motif (Figma 288:526). aria-hidden by construction: a CSS
   background on a pseudo-element, never content. Left = flipped vertically
   (section 02), right = rotated 180° (section 04); never consecutive. */
.sf-home-motif::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 0;
	height: 28rem;
	aspect-ratio: 366 / 797;
	background: url("../images/brand/brand-motif.svg") center / 100% 100% no-repeat;
	opacity: var(--sf-home-motif-opacity);
	pointer-events: none;
}

.sf-home-motif--left::before {
	left: 0;
	transform: scaleY(-1);
}

.sf-home-motif--right::before {
	right: 0;
	transform: rotate(180deg);
}

@media (min-width: 48em) {
	.sf-home-motif::before {
		height: 100%;
	}
}

/* =======================================================================
 * 1. Image slots
 * ===================================================================== */

.sf-home-figure {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	margin: 0;
}

.sf-home-figure__media {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: var(--sf-color-surface-muted);
}

.sf-home-figure__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: 50% 0; /* the reveal settle (scale 1.04 → 1) never moves the top edge: headroom stays */
}

.sf-home-figure--documentary .sf-home-figure__media {
	aspect-ratio: 4 / 5;
}

.sf-home-figure--landscape {
	gap: var(--sf-space-md);
}

.sf-home-figure--landscape .sf-home-figure__media {
	aspect-ratio: 3 / 2;
}

/* On the surface-muted band the placeholder is white (Figma 288:974). */
.sf-home-figure--on-muted .sf-home-figure__media--placeholder {
	background-color: var(--sf-color-surface);
}

.sf-home-figure__caption {
	max-width: none;
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

/* =======================================================================
 * 2. 01 Hero — editorial bleed (Figma 288:911)
 * ===================================================================== */

.sf-home-hero__inner {
	padding-block: var(--sf-space-lg) var(--sf-space-xl); /* Figma mobile 529:1313: 28 top, 40 bottom */
}

.sf-home-hero__content {
	display: flex;
	grid-column: 1 / -1;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

/* Block-level flex (not inline-flex): an inline box sits on a line with the
   wrapper's 1.6 body line-height and made the eyebrow row 29px tall; this
   keeps it at Label/Eyebrow's 14px / 130% = 18px. */
.sf-home-hero__eyebrow .sf-eyebrow {
	display: flex;
	align-items: center;
	gap: var(--sf-space-xs);
}

/* Figma Eyebrow with its 32px rule. */
.sf-home-hero__eyebrow .sf-eyebrow::before {
	content: "";
	flex: none;
	width: 2rem;
	height: 1px;
	background-color: var(--sf-color-heading);
}

.sf-home-hero__title {
	max-width: 8em; /* breaks the name after "Τριαντάφυλλος", as in Figma */
	margin: var(--sf-space-lg) 0 0 -0.0625em; /* optical left alignment: 112px vs 120px */
	font-family: var(--sf-font-serif);
	font-size: var(--sf-home-display-xl);
	font-weight: var(--sf-font-weight-regular);
	line-height: 0.98;
	letter-spacing: -0.025em;
	text-wrap: wrap;
}

.sf-home-hero__lead {
	max-width: 32.5rem;
	margin: var(--sf-space-lg) 0 0;
	color: var(--sf-color-text);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-lg);
	line-height: var(--sf-leading-body);
}

.sf-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sf-space-sm) 2rem;
	margin-top: var(--sf-space-lg);
}

/* Portrait panel: stacked below the text on tablet/mobile. */
.sf-home-hero__panel .sf-home-figure {
	gap: 0;
}

/* The studio masters are 2:3 and the head sits in the top third, so the hero crop is anchored to
   the top at every width; the focal point of the attachment (inc/photos.php) arrives as --sf-pos. */
.sf-home-figure--hero .sf-home-figure__img {
	object-position: var(--sf-pos, 50% 0%);
}

.sf-home-hero__panel .sf-home-figure__media {
	aspect-ratio: 4 / 5;
	max-height: 36rem;
}

.sf-home-hero__panel .sf-home-figure__caption {
	padding: var(--sf-space-xs) var(--sf-page-gutter) var(--sf-space-md);
}

/* Tablet: the stacked portrait gets a 5:4 band (a 4:5 photo would be 960px tall, the old max-height
   made it a 4:3 strip that is as tall as the head itself). */
@media (min-width: 40em) and (max-width: 63.99em) {
	.sf-home-hero__panel .sf-home-figure__media {
		aspect-ratio: 5 / 4;
		max-height: none;
	}
}

@media (min-width: 64em) {
	/* Name scales with the viewport from 1024 so it stays clear of the
	   portrait's face zone (left edge + ~1/3 of its width): 87px @1024,
	   109 @1280, 122 @1440, the full 128px from ~1506. Below 1024 the
	   stacked layout keeps its own size. */
	.sf-home {
		--sf-home-display-xl: clamp(5rem, 8.5vw, 8rem);
	}

	.sf-home-hero__inner {
		padding-block: var(--sf-space-4xl) calc(var(--sf-space-5xl) + 0.25rem);
	}

	/* Text in columns 1–6 of the shell. */
	.sf-home-hero__content {
		grid-column: 1 / span 6;
	}

	/* Portrait: starts on the column-7 line and bleeds to the viewport's right
	   edge. With the shell centred, column 7 starts half a column-gap right of
	   the centre line at every width (50% + gap/2 — 740px at 1440), so no
	   viewport units are needed and it holds at ≥1600 too. */
	.sf-home-hero__panel {
		position: absolute;
		z-index: 0;
		inset-block: 0;
		left: calc(50% + var(--sf-col-gap) / 2);
		right: 0;
	}

	.sf-home-hero__panel .sf-home-figure {
		position: relative;
		height: 100%;
	}

	.sf-home-hero__panel .sf-home-figure__media {
		height: 100%;
		max-height: none;
		aspect-ratio: auto;
	}

	/* Caption text stays inside the shell: its right edge is the content edge
	   (panel width + gap/2 = half the viewport; minus half the page max). */
	.sf-home-hero__panel .sf-home-figure__caption {
		position: absolute;
		right: max(var(--sf-page-gutter), calc(100% + var(--sf-col-gap) / 2 - var(--sf-page-max) / 2));
		bottom: 0;
		width: min(18.75rem, 100% - 2 * var(--sf-space-lg));
		padding: 0;
	}

	/* A real photo: the caption sits on a quiet navy fade so it stays legible. */
	.sf-home-figure--has-image:has(.sf-home-figure__caption)::after {
		content: "";
		position: absolute;
		inset: auto 0 0;
		height: 9rem;
		background: linear-gradient(to top, color-mix(in srgb, var(--sf-navy-900) 70%, transparent), transparent);
		pointer-events: none;
	}

	.sf-home-figure--has-image .sf-home-figure__caption {
		z-index: 1;
		padding-bottom: var(--sf-space-xs);
		color: var(--sf-white);
	}
}

/* =======================================================================
 * 3. 02 Νους · Σώμα · Ψυχή (Figma 288:923)
 * ===================================================================== */

.sf-home-philosophy {
	padding-block: var(--sf-space-3xl);
}

.sf-home-philosophy__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sf-space-lg);
	padding-top: var(--sf-space-3xl);
	border-top: 1px solid var(--sf-color-border);
	text-align: center;
}

.sf-home-philosophy__head {
	display: contents;
}

.sf-home-philosophy__title {
	font-family: var(--sf-font-serif);
	font-size: var(--sf-home-display);
	font-weight: var(--sf-font-weight-regular);
	line-height: 1.08;
	letter-spacing: var(--sf-tracking-display);
	text-wrap: wrap;
}

.sf-home-philosophy__lead {
	max-width: var(--sf-container-narrow); /* 720 — a centred measure inside the shell */
	color: var(--sf-color-text);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-lg);
	line-height: var(--sf-leading-body);
}

.sf-home-pillars {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sf-space-xl);
	width: 100%;
	margin: 0;
	padding: var(--sf-space-md) 0 0;
	list-style: none;
	text-align: left;
}

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

.sf-home-pillar__title {
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
	letter-spacing: 0;
}

.sf-home-pillar__text {
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

/* Three pillars: equal thirds with the page col-gap — identical to 3 × 4
   columns of the 12-column grid at ≥ 1024. */
@media (min-width: 48em) {
	.sf-home-pillars {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
		padding-top: 1.5rem;
	}
}

/* =======================================================================
 * 4. 03 Η Διαδρομή (Figma 288:939)
 * ===================================================================== */

.sf-home-journey {
	padding-block: var(--sf-space-3xl) var(--sf-space-4xl);
}

.sf-home-journey__inner {
	row-gap: var(--sf-space-xl);
}

.sf-home-journey__media,
.sf-home-journey__copy {
	grid-column: 1 / -1;
}

.sf-home-journey__media {
	max-width: 30rem;
}

.sf-home-journey__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-md);
	min-width: 0;
}

.sf-home-journey__title {
	font-size: var(--sf-home-h2);
	line-height: var(--sf-leading-h2);
	text-wrap: wrap;
}

.sf-home-journey__intro {
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

.sf-home-journey__intro p {
	margin: 0;
}

.sf-home-journey__intro p + p {
	margin-top: var(--sf-space-xs);
}

/* Reveal unit: eyebrow + H2 + intro keep the copy column's rhythm. */
.sf-home-journey__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-md);
	width: 100%;
}

.sf-home-steps {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-home-step {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr);
	gap: 1.5rem;
	padding-block: var(--sf-space-sm);
	border-top: 1px solid var(--sf-color-border);
}

.sf-home-step__number {
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-home-step__text {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-3xs);
}

.sf-home-step__title {
	font-size: var(--sf-text-xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
	letter-spacing: 0;
}

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

.sf-home-journey__quote {
	width: 100%;
}

.sf-home-journey__quote blockquote {
	max-width: none;
	margin: 0;
}

/* Below 64em the copy column dissolves into the section grid so the order can be
   title + intro → image → steps → quote → link (Figma 529:1195); the DOM order
   (image first) is unchanged for the desktop two-column layout. */
@media (max-width: 63.99em) {
	.sf-home-journey__copy {
		display: contents;
	}

	.sf-home-journey__head,
	.sf-home-steps,
	.sf-home-journey__quote,
	.sf-home-journey__link {
		grid-column: 1 / -1;
		min-width: 0;
	}

	.sf-home-journey__head {
		order: 1;
	}

	.sf-home-journey__media {
		order: 2;
	}

	.sf-home-steps {
		order: 3;
	}

	.sf-home-journey__quote {
		order: 4;
	}

	.sf-home-journey__link {
		order: 5;
		justify-self: start;
	}
}

@media (min-width: 64em) {
	.sf-home-journey__inner {
		align-items: start;
	}

	.sf-home-journey__media {
		grid-column: 1 / span 5;
		max-width: none;
	}

	.sf-home-journey__copy {
		grid-column: 7 / -1;
	}
}

/* =======================================================================
 * 5. 04 Ειδική Αγωγή + Σχολεία (Figma 288:971)
 * ===================================================================== */

.sf-home-duo {
	padding-block: var(--sf-space-3xl);
	background-color: var(--sf-color-surface-muted);
}

.sf-home-duo__inner {
	row-gap: var(--sf-space-xl);
	align-items: start;
}

.sf-home-duo__card {
	display: flex;
	grid-column: 1 / -1;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-md);
	min-width: 0;
}

.sf-home-duo__card .sf-home-figure {
	width: 100%;
}

.sf-home-duo__title {
	max-width: 35rem;
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
	letter-spacing: 0;
	text-wrap: wrap;
}

.sf-home-duo__text {
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

.sf-home-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: var(--sf-space-sm) 2rem;
	width: 100%;
	margin: 0;
}

.sf-home-fact {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-3xs);
	min-width: 0;
	padding-top: var(--sf-space-xs);
	border-top: 1px solid var(--sf-color-border);
}

.sf-home-fact__label {
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-xs);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-nav);
	letter-spacing: var(--sf-tracking-eyebrow);
	text-transform: uppercase;
}

.sf-home-fact__value {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

/* Two cards: 4 + 4 of 8 columns (tablet), 6 + 6 of 12 (desktop). */
@media (min-width: 48em) {
	.sf-home-duo__card {
		grid-column: span 4;
	}
}

@media (min-width: 64em) {
	.sf-home-duo__card {
		grid-column: span 6;
	}
}

/* =======================================================================
 * 6. 05 Βιβλίο (Figma 288:997 — Book Card, Feature)
 * ===================================================================== */

.sf-home-book {
	padding-block: var(--sf-space-4xl);
}

/* The card spans the shell (cols 1–12) and is itself on the page grid. */
.sf-home-book__card {
	display: grid;
	grid-template-columns: repeat(var(--sf-columns), minmax(0, 1fr));
	column-gap: var(--sf-col-gap);
	row-gap: var(--sf-space-xl);
	align-items: center;
}

.sf-home-book__cover,
.sf-home-book__body {
	grid-column: 1 / -1;
}

.sf-home-book__cover {
	width: min(100%, 16rem);
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background-color: var(--sf-color-surface-muted);
	box-shadow: var(--sf-shadow-raised);
}

.sf-home-book__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-home-book__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	min-width: 0;
}

.sf-home-book__title {
	font-size: var(--sf-home-h1-book);
	line-height: var(--sf-leading-h1);
	letter-spacing: var(--sf-tracking-h1);
	text-wrap: wrap;
}

.sf-home-book__desc {
	max-width: 37.5rem;
	color: var(--sf-color-text);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-lg);
	line-height: var(--sf-leading-body);
}

.sf-home-book__details {
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-home-book__purchase {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sf-space-sm) var(--sf-space-md);
}

.sf-home-book__price {
	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);
}

/* Cover / text split on a column line: tablet 1–3 | 4–8, desktop 1–4 | 6–12. */
@media (min-width: 48em) {
	.sf-home-book__cover {
		grid-column: 1 / span 3;
		width: 100%;
	}

	.sf-home-book__body {
		grid-column: 4 / -1;
	}
}

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

	.sf-home-book__body {
		grid-column: 6 / -1;
	}
}

/* =======================================================================
 * 7. 06 Podcast (Figma 288:999) — inverse (navy) section
 * ===================================================================== */

.sf-home-podcast {
	padding-block: var(--sf-space-3xl);
}

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

/* Featured episode */
.sf-home-episode--featured {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sf-space-md);
	align-items: center;
}

.sf-home-episode--featured .sf-home-episode__date {
	justify-self: start;
}

.sf-home-episode__cover {
	display: block;
	width: min(100%, 15rem);
	aspect-ratio: 1;
	overflow: hidden;
	background-color: var(--sf-color-accent);
}

.sf-home-episode__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-home-episode__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-sm);
	min-width: 0;
}

.sf-home-episode__title {
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
	letter-spacing: 0;
	text-wrap: wrap;
}

.sf-home-episode__title a {
	color: inherit;
	text-decoration: none;
}

.sf-home-episode__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.sf-home-episode__meta,
.sf-home-episode__date,
.sf-home-episode__number {
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-home-episode__date {
	white-space: nowrap;
}

.sf-home-episode__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sf-space-sm) 1.5rem;
}

/* Episode list */
.sf-home-episodes {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-home-episode--row {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr) 2.75rem;
	grid-template-areas:
		"num body play"
		".   date play";
	gap: var(--sf-space-3xs) var(--sf-space-md);
	align-items: center;
	padding-block: var(--sf-space-md);
	border-top: 1px solid var(--sf-color-border);
}

.sf-home-episode--row .sf-home-episode__number {
	grid-area: num;
}

.sf-home-episode--row .sf-home-episode__body {
	grid-area: body;
	gap: var(--sf-space-3xs);
}

.sf-home-episode--row .sf-home-episode__date {
	grid-area: date;
}

.sf-home-episode--row .sf-home-episode__title {
	font-size: var(--sf-text-lg);
	font-weight: var(--sf-font-weight-semibold);
	line-height: var(--sf-leading-h5);
}

.sf-home-episode__play {
	display: inline-grid;
	grid-area: play;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--sf-color-border-emphasis);
	border-radius: var(--sf-radius-full);
	color: var(--sf-color-icon);
	text-decoration: none;
	transition:
		background-color var(--sf-duration-fast) var(--sf-ease-standard),
		color var(--sf-duration-fast) var(--sf-ease-standard);
}

.sf-home-episode__play:hover {
	background-color: var(--sf-color-accent);
	color: var(--sf-color-on-action);
}

.sf-home-episode__play:focus-visible {
	outline: 2px solid var(--sf-color-focus);
	outline-offset: 2px;
}

/* Featured episode on the page grid. Tablet (8 cols): cover 1–3, body 4–8, the
   date drops under the body. Desktop (12 cols): cover 1–3, body 4–10, date
   11–12 flush with the right content edge. */
@media (min-width: 48em) {
	.sf-home-episode--featured {
		grid-template-columns: repeat(var(--sf-columns), minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
		row-gap: var(--sf-space-xs);
	}

	.sf-home-episode--featured .sf-home-episode__cover {
		grid-column: 1 / span 3;
		grid-row: 1 / span 2;
		width: 100%;
	}

	.sf-home-episode--featured .sf-home-episode__body {
		grid-column: 4 / -1;
		grid-row: 1;
	}

	.sf-home-episode--featured .sf-home-episode__date {
		grid-column: 4 / -1;
		grid-row: 2;
		align-self: start;
	}

	.sf-home-episode__cover {
		width: 100%;
	}

	.sf-home-episode--row {
		grid-template-columns: 2rem minmax(0, 1fr) auto 2.75rem;
		grid-template-areas: "num body date play";
		gap: var(--sf-space-md);
	}
}

@media (min-width: 64em) {
	.sf-home-episode--featured .sf-home-episode__body {
		grid-column: 4 / span 7;
		grid-row: 1;
	}

	.sf-home-episode--featured .sf-home-episode__date {
		grid-column: 11 / -1;
		grid-row: 1;
		align-self: center;
		justify-self: end;
		text-align: right;
	}

	/* Rows: number col 1, title 2–9, date 9–11 (right-aligned), play button
	   on col 12 so its edge is the right content edge. */
	.sf-home-episode--row {
		grid-template-columns: repeat(var(--sf-columns), minmax(0, 1fr));
		grid-template-areas: none;
		column-gap: var(--sf-col-gap);
	}

	.sf-home-episode--row .sf-home-episode__number {
		grid-area: 1 / 1 / auto / span 1;
	}

	.sf-home-episode--row .sf-home-episode__body {
		grid-area: 1 / 2 / auto / span 7;
	}

	.sf-home-episode--row .sf-home-episode__date {
		grid-area: 1 / 9 / auto / span 3;
		justify-self: end;
	}

	.sf-home-episode--row .sf-home-episode__play {
		grid-area: 1 / 12 / auto / span 1;
		justify-self: end;
	}
}

/* =======================================================================
 * 8. 07 Άρθρα (Figma 288:1007)
 * ===================================================================== */

.sf-home-articles {
	padding-block: var(--sf-space-3xl) var(--sf-space-4xl);
}

.sf-home-articles__inner {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-lg);
}

/* Filter tags (Figma Tag 267:562): links to the category archives. */
.sf-home-tags__list {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--sf-space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-home-tag {
	display: inline-flex;
	padding: var(--sf-space-3xs) var(--sf-space-xs);
	border: 1px solid var(--sf-color-border-strong);
	border-radius: var(--sf-radius-xs);
	color: var(--sf-color-heading);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color var(--sf-duration-fast) var(--sf-ease-standard),
		border-color var(--sf-duration-fast) var(--sf-ease-standard);
}

.sf-home-tag:hover {
	border-color: var(--sf-color-border-emphasis);
	background-color: var(--sf-color-surface-muted);
}

.sf-home-tag:focus-visible {
	outline: 2px solid var(--sf-color-focus);
	outline-offset: 2px;
}

.sf-home-tag.is-active {
	border-width: 0; /* Figma: the selected tag is a solid chip, 2px shorter */
	background-color: var(--sf-color-action);
	color: var(--sf-color-on-action);
}

.sf-home-tag.is-active:hover {
	background-color: var(--sf-color-action-hover);
}

/* Cards: 1 / 2 / 3 up — three on the desktop = 3 × 4 columns. */
.sf-home-articles__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sf-col-gap);
}

/* Cards without a featured image keep Figma's 3:2 tinted image slot. */
.sf-home-articles__item .sf-card:not(:has(.sf-card__media))::before {
	content: "";
	display: block;
	aspect-ratio: 3 / 2;
	background-color: var(--sf-color-surface-muted);
}

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

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

/* =======================================================================
 * 9. 08 Newsletter (Figma 288:1022)
 * ===================================================================== */

.sf-home-newsletter {
	padding-block-end: var(--sf-space-3xl);
}

.sf-home-newsletter__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sf-space-lg);
	padding: var(--sf-space-xl) var(--sf-space-md);
	background-color: var(--sf-color-surface-muted);
}

.sf-home-newsletter__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-sm);
	min-width: 0;
}

.sf-home-newsletter__title {
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
	letter-spacing: 0;
}

.sf-home-newsletter__text {
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

.sf-home-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	min-width: 0;
}

.sf-home-newsletter__row {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
}

.sf-home-newsletter__row .sf-field {
	flex: 1 1 auto;
	min-width: 0;
}

.sf-home-newsletter__row .sf-button {
	justify-content: center;
}

.sf-home-newsletter__status {
	color: var(--sf-color-heading);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-home-newsletter__status:empty {
	display: none;
}

@media (min-width: 40em) {
	.sf-home-newsletter__row {
		flex-direction: row;
		align-items: flex-end;
	}

	.sf-home-newsletter__row .sf-button {
		flex: none;
	}
}

/* Desktop: the box spans cols 1–12 and has no inline padding of its own —
   it IS the page grid, so the text sits on cols 2–5 and the form on 7–11. */
@media (min-width: 64em) {
	.sf-home-newsletter__panel {
		grid-template-columns: repeat(var(--sf-columns), minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
		align-items: center;
		padding-inline: 0;
	}

	.sf-home-newsletter__copy {
		grid-column: 2 / span 4;
	}

	.sf-home-newsletter__form {
		grid-column: 7 / span 5;
	}
}

/* =======================================================================
 * 10. Icons — Figma Icon/* (inline SVG from squareflow_home_icon()).
 * Buttons carry a 20px icon, text links an 18px one; both follow
 * currentColor, so they flip with .sf-inverse automatically. If the shared
 * button/link components gain native icon support, drop the helper and this
 * block together.
 * ===================================================================== */

.sf-home-icon {
	flex: none;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.sf-home-tag,
	.sf-home-episode__play {
		transition: none;
	}
}

/* Large screens: the hero fills the first screen (below header and top bar),
   so the portrait panel keeps a portrait-ish shape instead of becoming a wide strip. */
@media (min-width: 80em) {
	.sf-home-hero__inner {
		align-content: center;
		min-height: min(calc(100svh - var(--sf-header-height-desktop) - var(--sf-topbar-height)), 62rem);
	}
}
