/*
 * Article page. Design: Article — Desktop (720 + 64 gap + 336 rail, top padding 40) /
 * Mobile (head padding 22/20, full-bleed 228px lead photo).
 */
.fp-single {
	padding-top: 22px;
}

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

/* Breadcrumb: Home › Section (PJS 13 semibold; current section in brand). */
.fp-breadcrumbs {
	font-family: var(--fp-font-ui);
	font-size: 13px;
	font-weight: 600;
}

.fp-breadcrumbs ol,
.fp-breadcrumbs > span {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--fp-muted);
}

.fp-breadcrumbs li + li::before {
	content: "";
	width: 5px;
	height: 5px;
	border-top: 1.4px solid var(--fp-chevron);
	border-right: 1.4px solid var(--fp-chevron);
	transform: rotate(45deg);
}

.fp-breadcrumbs li:last-child a,
.fp-breadcrumbs [aria-current] {
	color: var(--fp-brand-text);
}

.fp-breadcrumbs a:hover {
	text-decoration: underline;
}

.fp-article__title {
	margin-top: 12px;
	font-size: 24px; /* Design 27px; reduced for FaithPanda's long headlines (owner decision 2026-11-24). */
	line-height: 1.2;
}

.fp-article__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin-top: 16px;
}

.fp-article__byline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fp-article__author {
	color: var(--fp-ink);
	font-family: var(--fp-font-ui);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.fp-article__author a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fp-article__dates {
	display: flex;
	flex-wrap: wrap;
	column-gap: 0;
	row-gap: 2px;
	margin-top: 3px;
	color: var(--fp-muted);
	font-size: 13px;
	line-height: 1.4;
}

/* "Published … · Updated … · 4 min read": separators only between parts that are present. */
.fp-article__dates > span + span::before {
	content: "·";
	margin-inline: 0.45em;
}

/* On phones the Updated date takes its own line instead of a dangling separator. */
@media (max-width: 767px) {
	.fp-article__dates > .fp-article__updated {
		flex-basis: 100%;
	}

	.fp-article__dates > .fp-article__updated::before {
		content: none;
	}
}

/* Share: 34/36px outlined circles. */
.fp-share {
	display: flex;
	gap: 8px;
}

.fp-share__button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--fp-rule);
	border-radius: 50%;
	background: var(--fp-surface);
	color: var(--fp-ink);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fp-share__button:hover {
	border-color: var(--fp-ink);
}

.fp-share__button.is-copied {
	border-color: var(--fp-teal);
	background: var(--fp-teal);
	color: #fff;
}

/* Share bar below the article (owner request 2026-11-25, from a reference screenshot):
   white bar; comment count left; brand marks on grey circles + outlined "Share" button right. */
.fp-sharebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 32px;
	padding: 14px 12px;
	border: 1px solid var(--fp-rule);
	border-radius: var(--fp-radius);
	background: var(--fp-surface);
}

.fp-sharebar__comments {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--fp-ink);
	font-family: var(--fp-font-ui);
	font-size: 15px;
	font-weight: 700;
}

.fp-sharebar__circle {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid #cfcfcf;
	border-radius: 50%;
	color: #9a9a9a;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.fp-sharebar__comments:hover .fp-sharebar__circle {
	border-color: var(--fp-ink);
	color: var(--fp-ink);
}

.fp-sharebar__share {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.fp-share--brand {
	gap: 6px;
}

.fp-share--brand .fp-share__button {
	width: 36px;
	height: 36px;
	border: 0;
	background: #f0f0f0;
	color: #1a1a1a;
}

.fp-share--brand .fp-share__button:hover {
	background: #e2e2e2;
}

.fp-share--brand .fp-share__button--facebook {
	color: #1877f2;
}

.fp-share--brand .fp-share__button--pinterest {
	color: #e60023;
}

.fp-share--brand .fp-share__button--whatsapp {
	color: #1fa855;
}

.fp-share--brand .fp-share__button.is-copied {
	background: var(--fp-teal);
	color: #fff;
}

.fp-sharebar__native {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
	background: var(--fp-surface);
	color: var(--fp-ink);
	font-family: var(--fp-font-ui);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.fp-sharebar__native svg {
	color: #6b6b6b;
}

.fp-sharebar__native:hover {
	border-color: var(--fp-ink);
}

/* Phones (< 480px): Pinterest and email circles are left out so the row fits one line; the "Share"
   button opens the phone's share sheet, which offers them and every other app (Product Phase 1). */
@media (max-width: 479px) {
	.fp-share--brand li:has(.fp-share__button--pinterest),
	.fp-share--brand li:has(.fp-share__button--email) {
		display: none;
	}
}

/* Phones: "Share" is icon-only so the row fits 320px screens. */
.fp-sharebar__native-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Smallest phones (320–359px): tighter circles so all six buttons fit. */
@media (max-width: 359px) {
	.fp-sharebar {
		gap: 8px;
		padding: 12px 10px;
	}

	.fp-sharebar__comments {
		gap: 6px;
	}

	.fp-sharebar__circle,
	.fp-share--brand .fp-share__button,
	.fp-sharebar__native {
		width: 30px;
		height: 30px;
	}

	.fp-share--brand,
	.fp-sharebar__share {
		gap: 4px;
	}

	.fp-sharebar svg {
		width: 16px;
		height: 16px;
	}
}

@media (min-width: 480px) {
	.fp-sharebar {
		padding: 16px 20px;
	}

	.fp-share--brand .fp-share__button {
		width: 38px;
		height: 38px;
	}

	.fp-sharebar__circle {
		width: 38px;
		height: 38px;
	}

	.fp-sharebar__share {
		gap: 12px;
	}

	.fp-sharebar__native {
		width: auto;
		height: 38px;
		padding: 0 16px 0 12px;
	}

	.fp-sharebar__native-label {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
	}
}

/* Lead photo: full-bleed on mobile. */
.fp-article__image {
	margin: 20px calc(-1 * var(--fp-gutter)) 0;
}

.fp-article__image img {
	width: 100%;
	aspect-ratio: 390 / 228;
	object-fit: cover;
}

.fp-article__image figcaption {
	margin-top: 8px;
	padding-inline: var(--fp-gutter);
	color: var(--fp-muted);
	font-size: 13px;
	line-height: 1.5;
}

.fp-article__content {
	margin-top: 24px;
}

/* "Written by" author box. */
.fp-author-box {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 28px;
	padding: 22px;
	background: var(--fp-surface);
}

.fp-author-box__label {
	color: var(--fp-brand-text);
	font-family: var(--fp-font-ui);
	font-size: 12.5px;
	font-weight: 600;
}

.fp-author-box__name {
	margin-top: 6px;
	font-size: 20px;
}

.fp-author-box__bio {
	margin-top: 6px;
	color: var(--fp-body);
	font-size: 14.5px;
	line-height: 1.6;
}

/* Right rail. */
.fp-rail {
	display: none;
}

/* Latest Stories list: the rail (desktop) and below the article on phones and tablets. */
.fp-rail__heading {
	font-size: 19px;
}

.fp-rail__list {
	margin-top: 10px;
}

.fp-rail__item {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 12px;
	padding-block: 14px;
	border-top: 1px solid #e6dfd6;
}

.fp-rail__thumb img {
	width: 88px;
	height: 66px;
	object-fit: cover;
	border-radius: var(--fp-radius);
}

.fp-rail__title {
	font-size: 14px;
	line-height: 1.32;
}

.fp-rail__title a:hover {
	text-decoration: underline;
}

.fp-rail__age {
	margin-top: 5px;
	color: var(--fp-muted);
	font-size: 12px;
}

.fp-latest-mobile {
	margin-top: 32px;
}

/* "Article sidebar" widgets (Appearance → Widgets), between Latest Stories and the bottom ad. */
.fp-rail__widgets {
	display: grid;
	gap: 28px;
	margin-top: 28px;
}

.fp-rail__widget {
	color: var(--fp-body);
	font-size: 14.5px;
	line-height: 1.6;
}

.fp-rail__widget > .fp-rail__heading,
.fp-rail__widget .wp-block-heading {
	margin-bottom: 10px;
}

.fp-rail__widget a:hover {
	text-decoration: underline;
}

.fp-rail__widget img {
	max-width: 100%;
	height: auto;
	border-radius: var(--fp-radius);
}

.fp-rail__widget ul {
	display: grid;
	gap: 8px;
}

/* Recommended: 6 below 1024px, the configured number on desktop. */
@media (min-width: 1024px) {
	.fp-latest-mobile,
	.fp-card--mobile-only {
		display: none;
	}
}

/* Recommended. */
.fp-related {
	margin-top: 8px;
}

.fp-rule-heading--lg {
	font-size: 22px;
}

@media (min-width: 768px) {
	.fp-author-box {
		flex-direction: row;
		gap: 18px;
	}

	.fp-article__image {
		margin-inline: 0;
	}

	.fp-article__image img {
		aspect-ratio: 720 / 420;
		border-radius: var(--fp-radius);
	}

	.fp-article__image figcaption {
		padding-inline: 0;
	}
}

@media (min-width: 1024px) {
	.fp-single {
		padding-top: 40px;
	}

	.fp-single--rail {
		display: grid;
		grid-template-columns: minmax(0, 720px) 336px;
		justify-content: space-between;
		gap: 64px;
	}

	.fp-single:not(.fp-single--rail) .fp-article {
		max-width: 720px;
		margin-inline: auto;
	}

	.fp-article__title {
		margin-top: 14px;
		font-size: 34px; /* Design 40px; reduced for long headlines (owner decision 2026-11-24). */
		line-height: 1.18;
	}

	.fp-article__meta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-top: 20px;
	}

	.fp-share__button {
		width: 36px;
		height: 36px;
	}

	.fp-article__image {
		margin-top: 24px;
	}

	.fp-article__content {
		margin-top: 32px;
	}

	.fp-author-box {
		margin-top: 36px;
	}

	.fp-rail {
		display: block;
	}

	/* Sticky rail (owner request 2026-11-25). --fp-rail-top comes from rail.js: the header offset when the
	   rail fits the window, else a negative offset so it pins by its bottom edge (everything stays reachable). */
	.fp-rail__inner {
		position: sticky;
		top: var(--fp-rail-top, calc(var(--fp-header-h) + 24px));
		display: flex;
		flex-direction: column;
		gap: 28px;
	}



	.fp-related {
		margin-top: 0;
	}

	.fp-rule-heading--lg {
		padding-block: 64px 26px;
		font-size: 30px;
	}
}

/* Article header actions (Product Phase 1): "Save" pill, plus the top share row when it is on.
   Phones: Save sits at the right of the byline as an icon button, so the lead photo does not move down. */
.fp-article__meta:not(:has(.fp-share)) {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.fp-article__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.fp-save--article {
	flex: none;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--fp-rule);
	border-radius: 999px;
	background: var(--fp-surface);
	font: 600 13.5px/1 var(--fp-font-ui);
}

.fp-save--article:hover {
	border-color: var(--fp-ink);
}

.fp-save--article[aria-pressed="true"] {
	border-color: currentColor;
}

.fp-save--article .fp-save__label {
	display: none;
}

@media (min-width: 480px) {
	.fp-save--article {
		padding: 0 14px 0 12px;
	}

	.fp-save--article:not([aria-pressed="true"]) .fp-save__label--off,
	.fp-save--article[aria-pressed="true"] .fp-save__label--on {
		display: inline;
	}
}
