/**
 * Article (single post) template styles — session-5f.
 *
 * Loaded via fizzics_enqueue_article_assets() on single article/post, the
 * article archive, and the podcast templates (podcast.css inherits the
 * .article-grid and .breadcrumbs families from here).
 *
 * Layout: content 3/4 + sticky rail 1/4 from 1025px (rail-layout.css); one column below.
 *
 * 2026-08-28 (session-theme-publish-blockers): this file was authored with
 * Tailwind `@apply` inside `@layer components`, but nothing ever compiled it —
 * `npm run build:css` only processes assets/src/tailwind.css, which never
 * imported it. Enqueuing it as-authored would have shipped `@apply` directives
 * to the browser, which are not valid CSS and are dropped. It is now plain CSS
 * using the locked design tokens from theme/style.css, matching the pattern
 * already used by programme.css, trivia.css, category.css and experiment.css —
 * the four CPT stylesheets that are enqueued directly and therefore work.
 *
 * Token mapping note: the Tailwind source referenced `fizzics-primary`
 * (#0066cc), a generic blue that is not in the locked 4-colour brand palette
 * (#1B1464 navy / #529F3B green / #FFFFFF white / #EB7923 orange). Because
 * this stylesheet had never rendered, there was no existing appearance to
 * preserve, so links use the site-wide link token (--green-900) and headings
 * use --navy rather than introducing an off-brand blue.
 */

/* ==========================================================================
 * Breadcrumbs
 * ========================================================================== */

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-2, 0.5rem);
	color: var(--muted, #6C6978);
	margin-top: 0;
	margin-bottom: var(--s-4, 1rem);
}

.breadcrumbs p {
	margin: 0;
}

.breadcrumbs a {
	color: var(--muted, #6C6978);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--green-900, #1C3A12);
	text-decoration: underline;
}

.breadcrumbs__sep {
	color: var(--line, #D4D9D1);
	margin: 0;
}

/* ==========================================================================
 * Tag row (article + podcast)
 * ========================================================================== */

.article-tag-row,
.podcast-tag-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-1, 0.25rem) var(--s-4, 1rem);
	color: var(--muted, #6C6978);
	margin-bottom: var(--s-2, 0.5rem);
}

.article-tag-row__cat a,
.article-tag-row__topics a,
.podcast-tag-row__topics a {
	color: var(--navy, #1B1464);
	font-weight: 600;
	text-decoration: none;
}

.article-tag-row__cat a:hover,
.article-tag-row__topics a:hover,
.podcast-tag-row__topics a:hover {
	text-decoration: underline;
}

/* ==========================================================================
 * AEO lede
 *
 * style.css §15.11 already ships a green-panel .aeo-lede used by the programme
 * template. Only the article/podcast measure constraint is added here, scoped
 * so the programme panel is untouched.
 * ========================================================================== */

.article-single .aeo-lede,
.podcast-single .aeo-lede {
	max-width: 68ch;
}

/* ==========================================================================
 * Cite-this inline link
 * ========================================================================== */

.article-cite-link-wrap {
	margin-top: 0;
	margin-bottom: var(--s-4, 1rem);
}

.article-cite-link {
	color: var(--green-900, #1C3A12);
	text-decoration: underline;
}

/* ==========================================================================
 * Author byline (override only — the pattern ships its own baseline)
 * ========================================================================== */

.article-single .author-byline,
.podcast-single .author-byline {
	margin-top: var(--s-2, 0.5rem);
	margin-bottom: var(--s-6, 2rem);
}

/* ==========================================================================
 * 2-col grid wrapper
 * ========================================================================== */

/* Column tracks, gap, stacking and the sticky rail come from rail-layout.css
 * (.fz-rail-layout, Ben 22 Oct 2026). The rail clears the sticky header. */
.article-grid {
	/* The header height itself is added in rail-layout.css (--fz-header-h). */
	--fz-rail-top: var(--s-5, 1.5rem);
	margin-top: var(--s-5, 1.5rem);
}

.article-grid__main {
	min-width: 0;
}

.article-grid__rail {
	display: flex;
	flex-direction: column;
	gap: var(--s-5, 1.5rem);
	min-width: 0;
}

/* The rail's flex gap already spaces its boxes; the online-teaching and consultancy
 * boxes' own vertical margins doubled it (Ben, 27 Oct 2026: fit the rail). */
.article-grid__rail > .intl-teaching-cta {
	margin-top: 0;
	margin-bottom: 0;
}

/* ==========================================================================
 * Citations section
 * ========================================================================== */

.article-citations {
	margin-top: var(--s-7, 3rem);
	padding-top: var(--s-5, 1.5rem);
	border-top: 1px solid var(--line, #D4D9D1);
}

.article-citations__heading {
	color: var(--navy, #1B1464);
	margin-bottom: var(--s-2, 0.5rem);
}

.article-citations__body {
	color: var(--ink-soft, #4A4557);
	overflow-wrap: break-word;
}

.article-citations__reviewed {
	color: var(--muted, #6C6978);
	margin-top: var(--s-2, 0.5rem);
}

/* ==========================================================================
 * Trustpilot mini placeholder
 * ========================================================================== */

.trustpilot-mini {
	border: 1px solid var(--line, #D4D9D1);
	border-radius: var(--r-sm, 0.5rem);
	padding: var(--s-4, 1rem);
	background: var(--paper, #FFFFFF);
}

.trustpilot-mini__eyebrow {
	color: var(--muted, #6C6978);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: var(--s-1, 0.25rem);
}

.trustpilot-mini__placeholder {
	color: var(--ink-soft, #4A4557);
	font-size: var(--step--1);
	margin: 0;
}

/* ==========================================================================
 * Related articles rail
 * ========================================================================== */

.related-articles {
	border: 1px solid var(--line, #D4D9D1);
	border-radius: var(--r-sm, 0.5rem);
	padding: var(--s-4, 1rem);
	background: var(--paper, #FFFFFF);
}

.related-articles__heading {
	color: var(--navy, #1B1464);
	margin-top: 0;
	margin-bottom: var(--s-3, 0.75rem);
}

.related-articles__item {
	padding-block: var(--s-2, 0.5rem);
	border-bottom: 1px solid var(--line, #D4D9D1);
}

.related-articles__item:last-child {
	border-bottom: 0;
}

.related-articles__item a {
	color: var(--green-900, #1C3A12);
	text-decoration: none;
}

.related-articles__item a:hover {
	text-decoration: underline;
}

/* ==========================================================================
 * Ben, 23 Oct 2026: article title, body headings and lists, byline under
 * the hero image, "Cite this" dialog.
 *
 * Tailwind's preflight (main.css, loaded after style.css) resets h1-h6 to
 * font-size: inherit and ul/ol to list-style: none with no padding, so the
 * article H1 rendered at body size. Same fix as the programme title in #144:
 * restore the design-system scale.
 * ========================================================================== */

.article-single .article-single__title {
	font-size: var(--step-5);
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-weight: 800;
	color: var(--navy, #1B1464);
	margin: var(--s-2, 0.5rem) 0 var(--s-4, 1rem);
}

/* Content headings and lists: assets/src/content-typography.css (site-wide). */

/* Byline sits directly under the hero image now. */
.article-single .author-byline--article {
	margin: 0 0 var(--s-5, 1.5rem);
	border: 1px solid var(--line, #D4D9D1);
	border-radius: 12px;
	flex-wrap: wrap;
}

.article-single .author-byline--article .author-byline__cite-wrap {
	margin: 0;
}

/* "Cite this" button and dialog: assets/src/cite-dialog.css. */

/* ==========================================================================
 * Ben Newsome's bio page, /articles/ben-newsome/ (Ben, 25 Oct 2026)
 * Content is .fz-bio markup in the post. Header with his headshot, readable
 * line length, award cards, image + text rows; images never upscaled.
 * ========================================================================== */

.fz-bio { max-width: 52rem; margin-inline: auto; color: var(--ink, #181421); }
.fz-bio p { max-width: 65ch; }
.fz-bio a { color: var(--green-900, #1C3A12); text-decoration: underline; text-underline-offset: 2px; }

.fz-bio__header {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: var(--s-6, 2rem);
	align-items: center;
	padding-bottom: var(--s-6, 2rem);
	border-bottom: 1px solid var(--line, #D4D9D1);
}
.fz-bio__photo {
	width: 220px;
	height: 220px;
	border-radius: 50%;
	object-fit: cover;
	border: 6px solid var(--surface, #F5F8F3);
}
.fz-bio__eyebrow {
	display: inline-block;
	margin: 0 0 var(--s-2, 0.5rem);
	padding: 0.2rem 0.75rem;
	border-radius: 999px;
	background: var(--navy-050, #EEEDF5);
	color: var(--navy, #1B1464);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.fz-bio__name {
	margin: 0 0 var(--s-1, 0.25rem);
	font-size: clamp(1.875rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--navy, #1B1464);
}
.fz-bio__name span { color: var(--green-900, #1C3A12); }
.fz-bio__creds { margin: 0 0 var(--s-4, 1rem); color: var(--ink-soft, #4A4557); font-weight: 600; }
.fz-bio__lede { margin: 0; font-size: 1.125rem; line-height: 1.6; }

.fz-bio__section { padding: var(--s-6, 2rem) 0; border-bottom: 1px solid var(--line-soft, #EBEFE9); }
.fz-bio__section:last-child { border-bottom: 0; }
.fz-bio__section h2 { margin: 0 0 var(--s-4, 1rem); color: var(--navy, #1B1464); }

.fz-bio__awards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: var(--s-3, 0.75rem);
	margin: 0 0 var(--s-5, 1.5rem);
	padding: 0;
	list-style: none;
}
.fz-bio__awards li {
	display: flex;
	flex-direction: column;
	gap: var(--s-1, 0.25rem);
	padding: var(--s-4, 1rem);
	border: 1px solid var(--line, #D4D9D1);
	border-left: 4px solid var(--green, #529F3B);
	border-radius: 0.5rem;
	background: var(--surface, #F5F8F3);
}
.fz-bio__award-org {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-soft, #4A4557);
}
.fz-bio__awards a { font-weight: 700; }

.fz-bio__feature { margin: 0 auto; max-width: 425px; }
.fz-bio__feature img { display: block; width: 100%; height: auto; border-radius: 0.5rem; }

.fz-bio__row {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: var(--s-5, 1.5rem);
	align-items: start;
}
.fz-bio__row + .fz-bio__row { margin-top: var(--s-5, 1.5rem); }
.fz-bio__figure { margin: 0; }
.fz-bio__figure img { display: block; width: 100%; max-width: 200px; height: auto; border-radius: 0.5rem; }
.fz-bio__figure figcaption { margin-top: var(--s-2, 0.5rem); font-size: 0.875rem; color: var(--muted, #6C6978); }
.fz-bio__text p { margin: 0 0 var(--s-3, 0.75rem); line-height: 1.65; }
.fz-bio__text p:last-child { margin-bottom: 0; }

.fz-bio__videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s-4, 1rem); }
.fz-bio__video { position: relative; aspect-ratio: 16 / 9; border-radius: 0.5rem; overflow: hidden; background: #000; }
/* Frame fills the 16:9 box exactly (no black band even if the wrapper and frame disagree). Three classes to beat the generic embed rule in main.css, which loads after this sheet. */
.fz-bio .fz-bio__videos .fz-bio__video iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border: 0; }

@media (max-width: 640px) {
	.fz-bio__header { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--s-4, 1rem); }
	.fz-bio__header p { margin-inline: auto; }
	.fz-bio__photo { width: 180px; height: 180px; }
	.fz-bio__row { grid-template-columns: 1fr; }
	.fz-bio__figure img { max-width: 100%; }
	.fz-bio__figure--small img { max-width: 274px; }
}
