/* =======================================================================
 * Phase B2 — content pages: articles, category, article, podcast, episode,
 * search, 404, legal / cookies.
 *
 * Everything is scoped under `.sf-cx` (the <main> class) or a `sf-cx-*`
 * block. Tokens only; the 12-column grid is the shared one (`.sf-shell`,
 * `.sf-cols`, --sf-columns, --sf-col-gap). The desktop numbers in the
 * comments are the 1440 / Figma values.
 *
 * Contents
 *   0. Page rhythm, header, hairlines, text helpers
 *   1. Articles + category (list, feature, grid, media strip)
 *   2. Newsletter
 *   3. Article (single)
 *   4. Podcast (archive, topic, episode rows, single episode)
 *   5. Search
 *   6. 404
 *   7. Legal + cookies
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 0. Page rhythm
 * ------------------------------------------------------------------- */
.sf-cx {
	overflow-x: clip;
}

/* The header is placed by the page, not by the shared 56px bottom margin;
   the 56 below it is the Figma gap to the Filter Bar / first section. */
.sf-cx .sf-page__header {
	margin-bottom: 0;
}

.sf-cx-head {
	padding-bottom: var(--sf-space-xl);
}

.sf-cx .sf-page-intro {
	gap: var(--sf-space-md);
}

.sf-cx .sf-page-intro__heading,
.sf-cx .sf-page__header .sf-page-intro--display .sf-page-intro__heading,
.sf-cx .sf-page__header .sf-page-intro__heading {
	max-width: none;
}

.sf-cx .sf-page-intro__text {
	max-width: 45rem;
}

/* Header width in columns (730 = 7 · 950 = 9 at 1440). */
.sf-cx-head__main {
	grid-column: 1 / -1;
	min-width: 0;
}

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

	.sf-cx-head__main--9 {
		grid-column: 1 / span 9;
	}
}

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

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

.sf-cx-section--wide {
	padding-block: var(--sf-space-3xl);
}

.sf-cx-h2 {
	margin: 0;
	font-size: var(--sf-text-4xl);
	font-weight: var(--sf-font-weight-regular);
	line-height: var(--sf-leading-h2);
	letter-spacing: var(--sf-tracking-h2);
	text-wrap: balance;
}

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

/* Category / date line shared by the feature, the cards and the episode header. */
.sf-cx-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sf-space-xs);
	width: 100%;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
}

.sf-cx-meta__category {
	margin: 0;
	font-weight: var(--sf-font-weight-medium);
	letter-spacing: var(--sf-tracking-eyebrow);
	line-height: var(--sf-leading-nav);
	text-transform: uppercase;
}

.sf-cx-meta__category a {
	color: inherit;
	text-decoration: none;
}

.sf-cx-meta__category a:hover,
.sf-cx-meta__category a:focus-visible {
	color: var(--sf-color-heading);
}

.sf-cx-meta__date {
	line-height: var(--sf-leading-meta);
	white-space: nowrap;
}

/* Sky placeholder slot for a missing image (never an empty hero box: only used where Figma keeps a slot). */
.is-placeholder {
	background: var(--sf-color-surface-muted);
}

/* ---------------------------------------------------------------------
 * 1. Articles + category
 * ------------------------------------------------------------------- */
.sf-cx-filters {
	padding-bottom: 0;
}

/* Featured article: image cols 1–7 (730×487), body cols 9–12 (400). */
.sf-cx-feature__row {
	align-items: center;
	row-gap: var(--sf-space-md);
}

.sf-cx-feature__media {
	display: block;
	grid-column: 1 / -1;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--sf-color-surface-muted);
}

.sf-cx-feature__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

.sf-cx-feature__title {
	margin: 0;
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
}

.sf-cx-feature__title a {
	color: inherit;
	text-decoration: none;
}

.sf-cx-feature__title a:hover,
.sf-cx-feature__title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

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

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

	.sf-cx-feature__body {
		grid-column: 9 / -1;
	}
}

/* «Όλα τα άρθρα» */
.sf-cx-list {
	padding-block: var(--sf-space-2xl) var(--sf-space-3xl);
}

/* Feature, hairline, 80, grid (Figma 501:761). */
.sf-cx-feature + .sf-cx-list {
	padding-top: 0;
}

.sf-cx-feature + .sf-cx-list .sf-cx-list__inner {
	padding-top: var(--sf-space-2xl);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

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

.sf-cx-list__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sf-space-2xs) var(--sf-space-md);
	margin-bottom: var(--sf-space-xl);
}

.sf-cx-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sf-space-xl) var(--sf-col-gap);
}

.sf-cx-grid__row {
	display: contents;
}

.sf-cx-grid__cell {
	min-width: 0;
}

.sf-cx-grid .sf-card__media {
	aspect-ratio: 25 / 16;
}

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

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

.sf-cx-pager {
	margin-top: var(--sf-space-xl);
}

.sf-cx-pager:empty {
	display: none;
}

.sf-cx-section--empty {
	padding-block: var(--sf-space-2xl) var(--sf-space-3xl);
}

/* «Δημοσιεύσεις στα μέσα» strip */
.sf-cx-media-strip {
	padding-block: var(--sf-space-3xl);
	background: var(--sf-color-surface-muted);
}

/* ---------------------------------------------------------------------
 * 2. Newsletter (Figma 501:761 — sky-50 box, copy cols 2–5, form cols 7–11)
 * ------------------------------------------------------------------- */
.sf-cx-newsletter {
	padding-block: var(--sf-space-3xl);
}

.sf-cx-newsletter--flush {
	padding-top: 0;
}

.sf-cx-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-cx-newsletter__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-sm);
	min-width: 0;
}

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

.sf-cx-newsletter__text {
	margin: 0;
	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-cx-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	min-width: 0;
}

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

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

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

.sf-cx-newsletter__status {
	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);
}

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

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

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

@media (min-width: 64em) {
	.sf-cx-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-cx-newsletter__copy {
		grid-column: 2 / span 4;
	}

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

/* ---------------------------------------------------------------------
 * 3. Article (single) — Figma 503:1394 / 503:2020
 * ------------------------------------------------------------------- */
.sf-cx-head--article {
	padding-bottom: 0;
}

.sf-cx .sf-cx-intro.has-breadcrumb {
	padding-block-start: var(--sf-space-2xl);
}

/* Display/Hero 72 -> 40 (390 -> 1280), 108%, -1.5%. */
.sf-cx-article__title {
	margin: 0;
	font-size: clamp(2.5rem, 1.624rem + 3.596vw, 4.5rem);
	line-height: 1.08;
	letter-spacing: var(--sf-tracking-display);
}

.sf-cx-article__meta {
	margin: 0;
	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-cx-article__hero {
	padding-top: var(--sf-space-xl);
}

.sf-cx-figure {
	margin: 0;
}

.sf-cx-figure img {
	display: block;
	width: 100%;
	height: auto;
}

.sf-cx-figure--hero img {
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

.sf-cx-figure__caption {
	margin-top: var(--sf-space-xs);
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-cx-article__body {
	padding-block: var(--sf-space-2xl) var(--sf-space-3xl);
}

.sf-cx-article__cols {
	row-gap: var(--sf-space-md);
	align-items: start;
}

.sf-cx-article__aside,
.sf-cx-article__main {
	grid-column: 1 / -1;
	min-width: 0;
}

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

	.sf-cx-article__aside {
		grid-column: 9 / -1;
		grid-row: 1;
		align-self: stretch;
	}
}

/* Prose: serif Lead 20/1.6, measure 640. */
.sf-cx-prose {
	max-width: 40rem;
	color: var(--sf-color-text);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-lg);
	line-height: var(--sf-leading-body);
}

.sf-cx-prose > * {
	margin-block: 0;
}

.sf-cx-prose > * + * {
	margin-top: var(--sf-space-md);
}

.sf-cx-prose a {
	color: var(--sf-color-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-cx-prose a:hover {
	color: var(--sf-color-link-hover);
}

.sf-cx-prose h2 {
	margin-top: var(--sf-space-xl);
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
	letter-spacing: 0;
	scroll-margin-top: calc(var(--sf-header-height-desktop) + var(--sf-space-md));
}

.sf-cx-prose h3 {
	margin-top: var(--sf-space-lg);
	font-size: var(--sf-text-xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
}

.sf-cx-prose h4 {
	margin-top: var(--sf-space-lg);
	font-size: var(--sf-text-lg);
	font-weight: var(--sf-font-weight-semibold);
	line-height: var(--sf-leading-h5);
}

.sf-cx-prose h2 + *,
.sf-cx-prose h3 + *,
.sf-cx-prose h4 + * {
	margin-top: var(--sf-space-sm);
}

.sf-cx-prose h2:focus {
	outline: 0;
}

.sf-cx-prose ul,
.sf-cx-prose ol {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-2xs);
	padding-left: var(--sf-space-md);
	list-style: none;
}

.sf-cx-prose ol {
	counter-reset: sf-cx-ol;
}

.sf-cx-prose li {
	position: relative;
}

.sf-cx-prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.7em;
	left: calc(-1 * var(--sf-space-md));
	width: 6px;
	height: 6px;
	border-radius: var(--sf-radius-full);
	background: var(--sf-color-heading);
}

.sf-cx-prose ol > li {
	counter-increment: sf-cx-ol;
}

.sf-cx-prose ol > li::before {
	content: counter(sf-cx-ol) ".";
	position: absolute;
	left: calc(-1 * var(--sf-space-md));
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-sm);
}

.sf-cx-prose blockquote {
	max-width: 42.5rem;
	margin-top: var(--sf-space-xl);
	padding-left: var(--sf-space-md);
	border-left: 2px solid var(--sf-color-border-emphasis);
	color: var(--sf-color-heading);
	font-size: var(--sf-text-xl);
	font-style: italic;
	line-height: var(--sf-leading-quote-md);
}

.sf-cx-prose blockquote p {
	margin: 0;
}

.sf-cx-prose blockquote cite,
.sf-cx-prose blockquote footer {
	display: block;
	margin-top: var(--sf-space-xs);
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-sm);
	font-style: normal;
}

.sf-cx-prose figure,
.sf-cx-prose .wp-block-image {
	margin-top: var(--sf-space-lg);
}

.sf-cx-prose img {
	display: block;
	max-width: 100%;
	height: auto;
}

.sf-cx-prose figcaption {
	margin-top: var(--sf-space-xs);
	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-cx-prose hr {
	width: 60px;
	height: 0;
	margin-top: var(--sf-space-xl);
	margin-left: 0;
	border: 0;
	border-top: var(--sf-border-width) solid var(--sf-color-border-strong);
}

.sf-cx-prose .sf-embed,
.sf-cx-prose .sf-data-table,
.sf-cx-prose iframe {
	margin-top: var(--sf-space-lg);
}

/* Wide blocks in the prose (tables, embeds) may use the 730 column. */
.sf-cx-prose .sf-data-table,
.sf-cx-prose .sf-embed {
	max-width: 100%;
	font-family: var(--sf-font-sans);
}

.sf-cx-article__main .sf-share-row {
	margin-top: var(--sf-space-xl);
}

/* Author block */
.sf-cx-author {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sf-space-md);
	padding-top: var(--sf-space-xl);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

@media (min-width: 40em) {
	.sf-cx-author:has(.sf-cx-author__photo) {
		grid-template-columns: 6rem minmax(0, 1fr);
	}

	.sf-cx-author__next {
		grid-column: 1 / -1;
	}
}

.sf-cx-author__photo {
	width: 6rem;
	height: 7.5rem;
	overflow: hidden;
	background: var(--sf-sky-100);
}

.sf-cx-author__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-cx-author__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-3xs);
	min-width: 0;
}

.sf-cx-author__text .sf-eyebrow {
	margin-bottom: var(--sf-space-3xs);
}

.sf-cx-author__name,
.sf-cx-author__role,
.sf-cx-author__bio {
	margin: 0;
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-cx-author__name {
	color: var(--sf-color-heading);
	font-weight: var(--sf-font-weight-medium);
}

.sf-cx-author__role {
	color: var(--sf-color-text-muted);
}

.sf-cx-author__bio {
	max-width: 36rem;
	margin-top: var(--sf-space-2xs);
	margin-bottom: var(--sf-space-2xs);
	color: var(--sf-color-text);
	font-size: var(--sf-text-base);
}

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

.sf-cx-author__next > span {
	color: var(--sf-color-text-muted);
}

/* «Στο ίδιο θέμα»: cards sit on sky-50, so their empty media slot is sky-100. */
.sf-cx-related .sf-card__media--placeholder,
.sf-cx-related .sf-card__media:not(:has(img)) {
	background: var(--sf-sky-100);
}

/* ---------------------------------------------------------------------
 * 4. Podcast: rows, navy blocks, archive, episode
 * ------------------------------------------------------------------- */
.sf-cx-podcast .sf-cx-stack {
	gap: var(--sf-space-lg);
}

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

/* Episode row: index 1 · body 2–9 · date 10–11 (right) · play 12. */
.sf-cx-row {
	position: relative;
	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: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-cx-row__index {
	grid-area: num;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-cx-row__body {
	display: flex;
	grid-area: body;
	flex-direction: column;
	gap: var(--sf-space-3xs);
	min-width: 0;
}

.sf-cx-row__title {
	margin: 0;
	font-size: var(--sf-text-lg);
	font-weight: var(--sf-font-weight-semibold);
	line-height: var(--sf-leading-h5);
	letter-spacing: 0;
	text-wrap: wrap;
}

.sf-cx-row__title a {
	color: inherit;
	text-decoration: none;
}

.sf-cx-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.sf-cx-row__title a:hover,
.sf-cx-row__title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-cx-row__title a:focus-visible {
	outline: 0;
}

.sf-cx-row:has(a:focus-visible) {
	outline: var(--sf-focus-ring-width) solid var(--sf-color-focus);
	outline-offset: var(--sf-focus-ring-offset);
}

.sf-cx-row__meta,
.sf-cx-row__date {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-cx-row__date {
	grid-area: date;
	white-space: nowrap;
}

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

.sf-cx-row:hover .sf-cx-row__play,
.sf-cx-row:focus-within .sf-cx-row__play {
	background: var(--sf-color-accent);
	color: var(--sf-color-on-action);
}

@media (min-width: 48em) {
	.sf-cx-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-cx-row {
		grid-template-columns: repeat(var(--sf-columns), minmax(0, 1fr));
		grid-template-areas: none;
		column-gap: var(--sf-col-gap);
	}

	.sf-cx-row__index {
		grid-area: 1 / 1 / auto / span 1;
	}

	.sf-cx-row__body {
		grid-area: 1 / 2 / auto / span 8;
	}

	.sf-cx-row__date {
		grid-area: 1 / 10 / auto / span 2;
		justify-self: end;
	}

	.sf-cx-row__play {
		grid-area: 1 / 12 / auto / span 1;
		justify-self: end;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sf-cx-row__play {
		transition: none;
	}
}

/* Podcast archive header: the platforms row follows the lead closely. */
.sf-cx-head--flat {
	padding-bottom: var(--sf-space-md);
}

.sf-cx-platforms-wrap {
	padding-bottom: var(--sf-space-xl);
}

.sf-cx-platforms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sf-space-2xs) var(--sf-space-md);
}

.sf-cx-platforms__label {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-cx-platforms__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-2xs) var(--sf-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-cx-platforms__ph {
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
	font-weight: var(--sf-font-weight-medium);
}

.sf-cx-platforms__ph span {
	font-weight: var(--sf-font-weight-regular);
}

.sf-cx-filters--podcast {
	padding-bottom: var(--sf-space-2xl);
}

/* Featured (latest) episode, navy: cover cols 1–3, body 4–10, date 11–12. */
.sf-cx-featep {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sf-space-md);
	align-items: center;
}

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

.sf-cx-featep__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

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

.sf-cx-featep__title a {
	color: inherit;
	text-decoration: none;
}

.sf-cx-featep__title a:hover,
.sf-cx-featep__title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-cx-featep__meta,
.sf-cx-featep__date {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-cx-featep__date {
	white-space: nowrap;
}

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

@media (min-width: 48em) {
	.sf-cx-featep {
		grid-template-columns: repeat(var(--sf-columns), minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
		row-gap: var(--sf-space-xs);
	}

	.sf-cx-featep__cover {
		grid-column: 1 / span 3;
		grid-row: 1 / span 2;
		width: 100%;
	}

	.sf-cx-featep__body {
		grid-column: 4 / -1;
		grid-row: 1;
	}

	.sf-cx-featep__date {
		grid-column: 4 / -1;
		grid-row: 2;
		align-self: start;
	}
}

@media (min-width: 64em) {
	.sf-cx-featep__body {
		grid-column: 4 / span 7;
	}

	.sf-cx-featep__date {
		grid-column: 11 / -1;
		grid-row: 1;
		align-self: center;
		justify-self: end;
		text-align: right;
	}
}

/* All episodes */
.sf-cx-eplist {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-lg);
}

.sf-cx-eplist .sf-cx-list__head {
	margin-bottom: 0;
}

.sf-cx-eplist .sf-cx-pager {
	margin-top: 0;
}

.sf-cx-episodes .sf-cx-stack {
	gap: var(--sf-space-xl);
}

/* Single episode */
.sf-cx-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-cx-player__row {
	align-items: center;
	row-gap: var(--sf-space-lg);
}

.sf-cx-player__cover {
	grid-column: 1 / -1;
	width: min(100%, 15rem);
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--sf-color-accent);
}

.sf-cx-player__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

.sf-cx-player__col .sf-embed,
.sf-cx-player__col .sf-cx-platforms {
	width: 100%;
}

.sf-cx-player__missing {
	margin: 0;
	color: var(--sf-color-text-muted);
}

@media (min-width: 48em) {
	.sf-cx-player__cover {
		grid-column: 1 / span 3;
		width: 100%;
	}

	.sf-cx-player__col {
		grid-column: 4 / -1;
	}
}

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

.sf-cx-notes .sf-cx-article__cols {
	align-items: start;
}

.sf-cx-guest {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	align-self: start !important;
}

.sf-cx-guest__name {
	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-cx-guest__role {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
}

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

.sf-cx-prose .sf-cx-chapters {
	gap: 0;
	padding-left: 0;
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-base);
	border-bottom: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-cx-prose .sf-cx-chapters > li {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1fr);
	align-items: center;
	gap: var(--sf-space-sm);
	min-height: 3.25rem;
	padding-block: var(--sf-space-2xs);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
	counter-increment: none;
}

.sf-cx-prose .sf-cx-chapters > li::before {
	content: none;
}

.sf-cx-chapters__time {
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
	font-variant-numeric: tabular-nums;
}

@media (min-width: 48em) {
	.sf-cx-prose .sf-cx-chapters > li {
		grid-template-columns: 6.875rem minmax(0, 1fr);
	}
}

.sf-cx-prose .sf-disclosure {
	font-family: var(--sf-font-sans);
}

/* ---------------------------------------------------------------------
 * 5. Search — Figma 512:3154 / 512:4002 / 512:4463
 * ------------------------------------------------------------------- */
.sf-cx-col-7 {
	grid-column: 1 / -1;
	min-width: 0;
}

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

.sf-cx-head--tight {
	padding-bottom: var(--sf-space-lg);
}

.sf-cx-filters--search {
	padding-top: var(--sf-space-lg);
}

.sf-cx-results {
	padding-block: var(--sf-space-lg) var(--sf-space-3xl);
}

.sf-cx-results__summary {
	margin: 0 0 var(--sf-space-sm);
	color: var(--sf-color-text);
	font-size: var(--sf-text-lg);
	font-weight: var(--sf-font-weight-regular);
	line-height: var(--sf-leading-body);
	letter-spacing: 0;
}

.sf-cx-results__list {
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-cx-result {
	display: flex;
	flex-direction: column;
	padding-block: var(--sf-space-md);
}

.sf-cx-result .sf-search-result__title {
	margin: 0;
	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);
	letter-spacing: 0;
}

.sf-cx-result .sf-search-result__title a {
	color: var(--sf-color-link);
	text-decoration: none;
}

.sf-cx-result .sf-search-result__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.sf-cx-result .sf-search-result__title svg {
	display: inline-block;
	vertical-align: -0.1em;
}

.sf-cx-result .sf-search-result__excerpt {
	margin: var(--sf-space-3xs) 0 0;
	color: var(--sf-color-text);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

.sf-cx-results .sf-cx-pager {
	margin-top: var(--sf-space-lg);
}

.sf-cx-notfound-row {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	margin-top: var(--sf-space-xl);
	padding-top: var(--sf-space-lg);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-cx-notfound-row__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-size: var(--sf-text-base);
	font-weight: var(--sf-font-weight-medium);
}

.sf-cx-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-xs) var(--sf-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-cx-results--none .sf-empty-state {
	max-width: none;
	padding-block: 0;
}

.sf-cx-start {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-md);
}

.sf-cx-results--none .sf-cx-start {
	margin-top: var(--sf-space-xl);
}

.sf-cx-start__title {
	margin: 0;
	font-size: var(--sf-text-lg);
	font-weight: var(--sf-font-weight-semibold);
	line-height: var(--sf-leading-h5);
	letter-spacing: 0;
}

/* ---------------------------------------------------------------------
 * 6. 404 — Figma 516:4457 / 516:4894
 * ------------------------------------------------------------------- */
/* The wrapper has its own class: «sf-cx-404» is also the <body> class, and the padding
   must not apply to the body (it showed as a white strip under the footer). */
.sf-cx-notfound {
	padding-bottom: var(--sf-space-3xl);
}

.sf-cx-404__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-md);
	grid-column: 1 / -1;
	max-width: 45rem;
	min-width: 0;
}

.sf-cx-404__intro .sf-page-intro__heading {
	max-width: none;
}

.sf-cx-404__intro .sf-page-intro__text {
	max-width: 36.25rem;
}

.sf-cx-404__search {
	width: 100%;
	max-width: 25rem;
}

.sf-cx-dotlist {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sf-space-2xs) var(--sf-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-cx-dotlist li + li::before {
	content: "·";
	margin-right: var(--sf-space-xs);
	color: var(--sf-color-text-muted);
}

.sf-cx-dotlist a {
	color: var(--sf-color-link);
	font-weight: var(--sf-font-weight-medium);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-cx-dotlist a:hover {
	color: var(--sf-color-link-hover);
}

.sf-cx-result:last-child {
	border-bottom: 0;
}

/* ---------------------------------------------------------------------
 * 7. Legal + cookies — Figma 516:5208 / 516:5519
 * ------------------------------------------------------------------- */
.sf-cx-head--legal {
	padding-bottom: 0;
}

.sf-cx--legal .sf-page-intro {
	gap: var(--sf-space-md);
}

.sf-cx--legal .sf-page-intro__text {
	max-width: 45rem;
}

.sf-cx--legal .sf-page-intro .sf-button {
	margin-top: var(--sf-space-3xs);
}

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

.sf-cx-legal__body {
	padding-block: var(--sf-space-2xl);
}

/* Prose of legal pages: sans 17, measure 680. */
.sf-cx-prose--legal,
.sf-cx-prose--sans {
	max-width: 42.5rem;
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

.sf-cx-prose--legal h2,
.sf-cx-prose--sans h2 {
	margin-top: var(--sf-space-xl);
}

.sf-cx-prose--legal > h2:first-child,
.sf-cx-prose--sans > h2:first-child {
	margin-top: 0;
}

.sf-cx-prose--legal h3,
.sf-cx-prose--sans h3 {
	margin-top: var(--sf-space-lg);
	font-size: var(--sf-text-xl);
}

.sf-cx-prose--legal h3 + *,
.sf-cx-prose--sans h3 + * {
	margin-top: var(--sf-space-xs);
}

.sf-cx-prose--legal ul > li::before,
.sf-cx-prose--sans ul > li::before {
	top: 0.75em;
}

.sf-cx-legal__dl {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	margin: 0;
}

.sf-cx-legal__dl-item {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-3xs);
}

.sf-cx-legal__dl dt {
	color: var(--sf-color-heading);
	font-size: var(--sf-text-sm);
	font-weight: var(--sf-font-weight-medium);
}

.sf-cx-legal__dl dd {
	margin: 0;
}

.sf-cx-legal__note {
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
}

.sf-cx-prose--legal .sf-data-table,
.sf-cx-prose--sans .sf-data-table {
	margin-top: var(--sf-space-md);
	max-width: none;
}

.sf-cx-legal__closing {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-sm);
	max-width: 42.5rem;
	margin-top: var(--sf-space-xl);
	padding-top: var(--sf-space-xl);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

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

/* Cookie settings box: a button with JS, a real form without. */
.sf-cx-cookiebox {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sf-space-sm);
	scroll-margin-top: calc(var(--sf-header-height-desktop) + var(--sf-space-md));
}

.sf-cx-cookiebox__status {
	margin: 0;
	padding: var(--sf-space-xs) var(--sf-space-sm);
	border-left: 2px solid var(--sf-color-border-emphasis);
	background: var(--sf-color-surface-muted);
	color: var(--sf-color-heading);
	font-size: var(--sf-text-sm);
}

.sf-cx-cookiebox__js {
	margin: 0;
}

html:not(.js) .sf-cx-cookiebox__js {
	display: none;
}

.js .sf-cx-cookiebox__form {
	display: none;
}

.sf-cx-cookiebox__form {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	width: 100%;
}

.sf-cx-cookiebox__fieldset {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	margin: 0;
	padding: 0;
	border: 0;
}

.sf-cx-cookiebox__legend {
	margin-bottom: var(--sf-space-xs);
	padding: 0;
	color: var(--sf-color-heading);
	font-weight: var(--sf-font-weight-medium);
}

.sf-cx-cookiebox__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-xs);
}

.sf-cx-prose > :first-child {
	margin-top: 0;
}

.sf-cx--episode .sf-cx-head--article {
	padding-bottom: var(--sf-space-2xl);
}
