/* ==========================================================================
   WPea News – front end
   All values come from CSS custom properties set per layout, so every
   layout can look different on the same page. Fonts are inherited from
   the theme. Breakpoints use container queries, so a grid placed in a
   narrow page-builder column adapts to that column's width.
   ========================================================================== */

.wpean-news {
	--wpean-cols: 3;
	--wpean-cols-tab: 2;
	--wpean-cols-mob: 1;
	--wpean-gap: 28px;
	--wpean-radius: 8px;
	--wpean-pad: 22px;
	--wpean-border: 1px;
	--wpean-border-color: #e6e6e6;
	--wpean-card-bg: #fff;
	--wpean-ratio: 16 / 9;
	--wpean-accent-fallback: currentColor;
	--wpean-btn-radius: 4px;
	--wpean-list-img: 38%;
	--wpean-min-h: 380px;
	container-type: inline-size;
	container-name: wpean;
	margin: 0 0 1.5em;
	text-align: left;
}
.wpean-news *,
.wpean-news *::before,
.wpean-news *::after { box-sizing: border-box; }

/* ---------- Grid ---------- */
.wpean-news .wpean-grid {
	display: grid;
	grid-template-columns: repeat(var(--wpean-cols), minmax(0, 1fr));
	gap: var(--wpean-gap);
	margin: 0;
	padding: 0;
	transition: opacity .2s ease;
}
.wpean-news.is-loading .wpean-grid { opacity: .45; pointer-events: none; }

@container wpean (max-width: 820px) {
	.wpean-news .wpean-grid { grid-template-columns: repeat(var(--wpean-cols-tab), minmax(0, 1fr)); }
}
@container wpean (max-width: 540px) {
	.wpean-news .wpean-grid { grid-template-columns: repeat(var(--wpean-cols-mob), minmax(0, 1fr)); }
}

/* ---------- Card ---------- */
.wpean-news .wpean-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	background: var(--wpean-card-bg);
	border: var(--wpean-border) solid var(--wpean-border-color);
	border-radius: var(--wpean-radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.wpean-news.wpean--shadow-soft .wpean-card { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.wpean-news.wpean--shadow-medium .wpean-card { box-shadow: 0 6px 22px rgba(0,0,0,.10); }
.wpean-news.wpean--shadow-strong .wpean-card { box-shadow: 0 12px 36px rgba(0,0,0,.18); }
.wpean-news.wpean--hover-lift .wpean-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.wpean-news.wpean--hover-shadow .wpean-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.16); }

/* Image */
.wpean-news .wpean-card__media {
	display: block;
	position: relative;
	aspect-ratio: var(--wpean-ratio);
	overflow: hidden;
	background: rgba(127,127,127,.12);
	border: 0;
	margin: 0;
	line-height: 0;
}
.wpean-news.wpean--ratio-auto .wpean-card__media { aspect-ratio: auto; }
.wpean-news .wpean-card__media img,
.wpean-news .wpean-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
	transition: transform .5s ease, opacity .3s ease;
}
.wpean-news.wpean--ratio-auto .wpean-card__media img { position: static; height: auto !important; }
.wpean-news .wpean-card__media--empty span {
	position: absolute; inset: 0;
	background:
		linear-gradient(135deg, rgba(127,127,127,.10) 25%, transparent 25%) 0 0 / 24px 24px,
		rgba(127,127,127,.08);
}
.wpean-news.wpean--img-hover-zoom .wpean-card:hover .wpean-card__media img { transform: scale(1.05); }
.wpean-news.wpean--img-hover-fade .wpean-card:hover .wpean-card__media img { opacity: .82; }

/* Body */
.wpean-news .wpean-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 10px;
	padding: var(--wpean-pad);
	min-width: 0;
}
.wpean-news.wpean--align-center .wpean-card__body { text-align: center; align-items: center; }

.wpean-news .wpean-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0;
	font-size: .8em;
	line-height: 1.4;
	letter-spacing: .02em;
	color: var(--wpean-meta, inherit);
	opacity: var(--wpean-meta-opacity, .75);
}
.wpean-news[style*="--wpean-meta:"] .wpean-card__meta { --wpean-meta-opacity: 1; }
.wpean-news.wpean--align-center .wpean-card__meta { justify-content: center; }
.wpean-news .wpean-card__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.wpean-news .wpean-card__cat {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--wpean-accent, inherit);
}
.wpean-news.wpean--cat-pill .wpean-card__cat {
	padding: 3px 10px;
	border-radius: 99px;
	background: var(--wpean-accent, #222);
	color: #fff;
	letter-spacing: .06em;
	font-size: .92em;
}

.wpean-news .wpean-card__title {
	margin: 0;
	padding: 0;
	font-size: var(--wpean-title-size, 1.25em);
	line-height: 1.3;
	color: var(--wpean-title, inherit);
	word-wrap: break-word;
}
.wpean-news .wpean-card__title a {
	color: inherit;
	text-decoration: none;
	border: 0;
	box-shadow: none;
	background: none;
	transition: color .2s ease;
}
.wpean-news .wpean-card__title a:hover,
.wpean-news .wpean-card:hover .wpean-card__title a { color: var(--wpean-title-hover, var(--wpean-title, inherit)); }
.wpean-news.wpean--clamp .wpean-card__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--wpean-title-lines);
	overflow: hidden;
}

.wpean-news .wpean-card__excerpt {
	margin: 0;
	padding: 0;
	font-size: var(--wpean-text-size, .95em);
	line-height: 1.6;
	color: var(--wpean-text, inherit);
}

/* Read more */
.wpean-news .wpean-card__footer { margin-top: auto; padding-top: 6px; }
.wpean-news .wpean-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: .92em;
	line-height: 1.2;
	text-decoration: none;
	border: 0;
	box-shadow: none;
	color: var(--wpean-btn-bg, var(--wpean-accent, inherit));
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.wpean-news .wpean-card__arrow { transition: transform .2s ease; }
.wpean-news .wpean-card:hover .wpean-card__arrow { transform: translateX(4px); }
.wpean-news.wpean--more-link .wpean-card__more:hover { color: var(--wpean-btn-hover-bg, var(--wpean-btn-bg, inherit)); text-decoration: underline; }

.wpean-news.wpean--more-button .wpean-card__more,
.wpean-news.wpean--more-outline .wpean-card__more {
	padding: 10px 18px;
	border-radius: var(--wpean-btn-radius);
	border: 2px solid var(--wpean-btn-bg, #222);
	justify-content: center;
}
.wpean-news.wpean--more-button .wpean-card__more { background: var(--wpean-btn-bg, #222); color: var(--wpean-btn-text, #fff); }
.wpean-news.wpean--more-button .wpean-card__more:hover {
	background: var(--wpean-btn-hover-bg, var(--wpean-btn-bg, #000));
	border-color: var(--wpean-btn-hover-bg, var(--wpean-btn-bg, #000));
	color: var(--wpean-btn-hover-text, var(--wpean-btn-text, #fff));
}
.wpean-news.wpean--more-outline .wpean-card__more { background: transparent; color: var(--wpean-btn-bg, #222); }
.wpean-news.wpean--more-outline .wpean-card__more:hover {
	background: var(--wpean-btn-hover-bg, var(--wpean-btn-bg, #222));
	border-color: var(--wpean-btn-hover-bg, var(--wpean-btn-bg, #222));
	color: var(--wpean-btn-hover-text, #fff);
}
.wpean-news.wpean--more-full .wpean-card__more { display: flex; width: 100%; }

/* Whole card clickable: stretch the title link over the card */
.wpean-news.wpean--card-link .wpean-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.wpean-news.wpean--card-link .wpean-card__more { position: relative; z-index: 2; }

/* ---------- List ---------- */
.wpean-news.wpean--list .wpean-grid { grid-template-columns: minmax(0, 1fr); }
.wpean-news.wpean--list .wpean-card { flex-direction: row; }
.wpean-news.wpean--list .wpean-card__media { flex: 0 0 var(--wpean-list-img); aspect-ratio: auto; min-height: 100%; }
.wpean-news.wpean--list .wpean-card__media img { position: absolute; inset: 0; }
.wpean-news.wpean--list .wpean-card__body { justify-content: center; }
.wpean-news.wpean--list .wpean-card__media--empty { min-height: 160px; }
@container wpean (max-width: 540px) {
	.wpean-news.wpean--list .wpean-card { flex-direction: column; }
	.wpean-news.wpean--list .wpean-card__media { flex: none; aspect-ratio: var(--wpean-ratio); }
}

/* ---------- Featured first card ---------- */
.wpean-news.wpean--featured .wpean-card--featured { grid-column: 1 / -1; flex-direction: row; }
.wpean-news.wpean--featured .wpean-card--featured .wpean-card__media { flex: 0 0 58%; aspect-ratio: auto; min-height: 360px; }
.wpean-news.wpean--featured .wpean-card--featured .wpean-card__media img { position: absolute; inset: 0; }
.wpean-news.wpean--featured .wpean-card--featured .wpean-card__body { justify-content: center; padding: calc(var(--wpean-pad) * 1.6); }
.wpean-news.wpean--featured .wpean-card--featured .wpean-card__title { font-size: calc(var(--wpean-title-size, 1.25em) * 1.45); }
@container wpean (max-width: 820px) {
	.wpean-news.wpean--featured .wpean-card--featured { flex-direction: column; }
	.wpean-news.wpean--featured .wpean-card--featured .wpean-card__media { flex: none; min-height: 0; aspect-ratio: var(--wpean-ratio); }
	.wpean-news.wpean--featured .wpean-card--featured .wpean-card__body { padding: var(--wpean-pad); }
}

/* ---------- Overlay card style ---------- */
.wpean-news.wpean--style-overlay .wpean-card {
	min-height: var(--wpean-min-h);
	justify-content: flex-end;
	border: 0;
	color: #fff;
	--wpean-title: var(--wpean-overlay-title, #fff);
}
.wpean-news.wpean--style-overlay .wpean-card .wpean-card__media { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto !important; min-height: 0 !important; flex: none !important; }
.wpean-news.wpean--style-overlay .wpean-card--featured { min-height: calc(var(--wpean-min-h) * 1.25); flex-direction: column; }
.wpean-news.wpean--style-overlay .wpean-card--featured .wpean-card__body { flex: 0 1 auto; max-width: 720px; }
.wpean-news.wpean--style-overlay .wpean-card__media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78) 100%);
}
.wpean-news.wpean--style-overlay .wpean-card__body { position: relative; z-index: 1; flex: 0 0 auto; pointer-events: none; }
.wpean-news.wpean--style-overlay .wpean-card__body a { pointer-events: auto; }
.wpean-news.wpean--style-overlay .wpean-card__meta,
.wpean-news.wpean--style-overlay .wpean-card__excerpt { color: rgba(255,255,255,.9); }
.wpean-news.wpean--style-overlay .wpean-card__title { color: var(--wpean-title, #fff); }
.wpean-news.wpean--style-overlay.wpean--more-link .wpean-card__more { color: #fff; }
.wpean-news.wpean--style-overlay.wpean--list .wpean-card { flex-direction: column; }

/* ---------- Carousel ---------- */
.wpean-news.wpean--carousel { position: relative; }
.wpean-news.wpean--carousel .wpean-grid {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--wpean-cols) - 1) * var(--wpean-gap)) / var(--wpean-cols));
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.wpean-news.wpean--carousel .wpean-grid::-webkit-scrollbar { display: none; }
.wpean-news.wpean--carousel .wpean-card { scroll-snap-align: start; }
.wpean-news.wpean--hover-lift.wpean--carousel .wpean-grid { padding-top: 6px; }
@container wpean (max-width: 820px) {
	.wpean-news.wpean--carousel .wpean-grid { grid-template-columns: none; grid-auto-columns: calc((100% - (var(--wpean-cols-tab) - 1) * var(--wpean-gap)) / var(--wpean-cols-tab)); }
}
@container wpean (max-width: 540px) {
	.wpean-news.wpean--carousel .wpean-grid { grid-template-columns: none; grid-auto-columns: 85%; }
}
.wpean-news .wpean-carousel-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.wpean-news .wpean-carousel-btn,
.wpean-news .wpean-loadmore {
	appearance: none;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	border: 2px solid var(--wpean-btn-bg, currentColor);
	color: var(--wpean-btn-bg, inherit);
	background: transparent;
	border-radius: var(--wpean-btn-radius);
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.wpean-news .wpean-carousel-btn { width: 42px; height: 42px; font-size: 18px; padding: 0; }
.wpean-news .wpean-carousel-btn:hover,
.wpean-news .wpean-loadmore:hover { background: var(--wpean-btn-bg, #222); color: var(--wpean-btn-text, #fff); border-color: var(--wpean-btn-bg, #222); }
.wpean-news .wpean-carousel-btn[disabled] { opacity: .3; cursor: default; }

/* ---------- Tabs ---------- */
.wpean-news .wpean-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
}
.wpean-news.wpean--align-center .wpean-tabs { justify-content: center; }
.wpean-news .wpean-tab {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 99px;
	border: 1px solid rgba(127,127,127,.35);
	font-size: .88em;
	line-height: 1.3;
	text-decoration: none;
	color: inherit;
	box-shadow: none;
	transition: all .2s ease;
}
.wpean-news .wpean-tab:hover { border-color: var(--wpean-accent, currentColor); }
.wpean-news .wpean-tab.is-active {
	background: var(--wpean-accent, #222);
	border-color: var(--wpean-accent, #222);
	color: #fff;
}

/* ---------- Pagination / load more ---------- */
.wpean-news .wpean-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.wpean-news .wpean-page {
	min-width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 10px;
	border-radius: var(--wpean-btn-radius);
	border: 1px solid rgba(127,127,127,.3);
	text-decoration: none;
	color: inherit;
	box-shadow: none;
	line-height: 1;
}
.wpean-news a.wpean-page:hover { border-color: var(--wpean-btn-bg, var(--wpean-accent, currentColor)); }
.wpean-news .wpean-page.is-current { background: var(--wpean-btn-bg, var(--wpean-accent, #222)); border-color: var(--wpean-btn-bg, var(--wpean-accent, #222)); color: var(--wpean-btn-text, #fff); }
.wpean-news .wpean-loadmore-wrap { text-align: center; margin-top: 32px; }
.wpean-news .wpean-loadmore { padding: 12px 28px; font-weight: 600; }
.wpean-news .wpean-empty { opacity: .7; }

.wpean-news .screen-reader-text,
.wpean-article .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ==========================================================================
   Single article
   ========================================================================== */
.wpean-article {
	--wpean-content-w: 760px;
	display: block;
	width: 100%;
	padding: 0 0 60px;
}
.wpean-article *,
.wpean-article *::before,
.wpean-article *::after { box-sizing: border-box; }
.wpean-article__container {
	max-width: calc(var(--wpean-content-w) + 40px);
	margin: 0 auto;
	padding: 48px 20px 0;
}
.wpean-article__back {
	display: inline-block;
	margin-bottom: 28px;
	font-size: .9em;
	text-decoration: none;
	color: inherit;
	opacity: .75;
	box-shadow: none;
	border: 0;
}
.wpean-article__back:hover { opacity: 1; }
.wpean-article__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wpean-article__cat {
	font-size: .78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--wpean-accent, inherit);
}
.wpean-article__title {
	margin: 0 0 16px;
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	line-height: 1.15;
}
.wpean-standfirst {
	margin: 0 0 18px;
	font-size: 1.2em;
	line-height: 1.55;
	opacity: .85;
}
.wpean-standfirst--after-hero { margin-bottom: 28px; }
.wpean-article__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
	font-size: .88em;
	opacity: .7;
}
.wpean-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.wpean-article__header { margin-bottom: 32px; }
.wpean-article__featured {
	margin: 0 -20px 40px;
	padding: 0;
}
.wpean-article__featured img { display: block; width: 100%; height: auto; border-radius: 6px; }
.wpean-article__featured figcaption,
.wpean-article figcaption { font-size: .85em; opacity: .7; margin-top: 8px; text-align: center; }
@media (min-width: 1100px) {
	.wpean-article__featured { margin-left: -80px; margin-right: -80px; }
}

/* Banner hero */
.wpean-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(70vh, 620px);
	background-size: cover;
	background-position: center;
	color: #fff;
}
.wpean-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.75) 100%); }
.wpean-hero__inner {
	position: relative;
	width: 100%;
	max-width: calc(var(--wpean-content-w) + 40px);
	margin: 0 auto;
	padding: 60px 20px 48px;
}
.wpean-hero .wpean-article__title,
.wpean-hero .wpean-article__cat { color: #fff; }
.wpean-hero .wpean-article__meta { opacity: .9; }

/* Body sections */
.wpean-article__body { font-size: 1.08em; line-height: 1.75; }
.wpean-article .wpean-article__body > *,
.wpean-article__body--theme > * { margin-top: 0; margin-bottom: 0; }
.wpean-article .wpean-article__body > * + *,
.wpean-article__body--theme > * + * { margin-top: 1.6em; }
.wpean-article .wpean-s--quote::before,
.wpean-article .wpean-s--quote::after,
.wpean-article__body--theme .wpean-s--quote::before { content: none; display: none; }
.wpean-s { margin-left: 0; margin-right: 0; }
.wpean-s--text > :first-child { margin-top: 0; }
.wpean-s--text > :last-child { margin-bottom: 0; }
.wpean-s--text p { margin: 0 0 1.1em; }
.wpean-s--text h2, .wpean-s--text h3, .wpean-s--text h4 { margin: 1.6em 0 .6em; line-height: 1.25; }
.wpean-s--text a { color: var(--wpean-accent, inherit); text-decoration: underline; text-underline-offset: 3px; }
.wpean-s--text blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 3px solid var(--wpean-accent, currentColor); font-style: italic; }
.wpean-s--text ul, .wpean-s--text ol { margin: 0 0 1.1em 1.4em; padding: 0; }
.wpean-s--text li { margin-bottom: .35em; }

.wpean-s--image { margin: 0; padding: 0; }
.wpean-s--image img { display: block; width: 100%; height: auto; border-radius: 6px; }
@media (min-width: 1100px) {
	.wpean-s--wide { margin-left: -80px; margin-right: -80px; }
}
.wpean-s--full {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
}
.wpean-s--full img { border-radius: 0; }

.wpean-s--gallery { margin: 0; }
.wpean-gallery { display: grid; grid-template-columns: repeat(var(--wpean-gallery-cols, 3), minmax(0, 1fr)); gap: 10px; }
.wpean-gallery__item img { display: block; width: 100%; height: auto; border-radius: 4px; }
.wpean-s--gallery-crop .wpean-gallery__item img { aspect-ratio: 1 / 1; object-fit: cover; }
.wpean-gallery a { display: block; border: 0; box-shadow: none; }
@media (max-width: 600px) { .wpean-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wpean-s--video { margin: 0; }
.wpean-embed { position: relative; }
.wpean-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

.wpean-s--quote { margin: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--wpean-accent, currentColor); font-style: normal; }
.wpean-s--quote p { margin: 0; font-size: 1.25em; line-height: 1.5; font-style: italic; }
.wpean-s--quote cite { display: block; margin-top: 10px; font-size: .85em; font-style: normal; opacity: .7; }
.wpean-s--quote cite::before { content: "— "; }
.wpean-s--quote-large { border: 0; padding: 12px 0; text-align: center; }
.wpean-s--quote-large p { font-size: 1.7em; line-height: 1.35; }
.wpean-s--quote-large p::before { content: "\201C"; display: block; font-size: 2.4em; line-height: .6; margin-bottom: 8px; color: var(--wpean-accent, currentColor); font-style: normal; }

.wpean-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none !important;
	border: 2px solid var(--wpean-accent, #222);
	box-shadow: none;
	transition: all .2s ease;
}
.wpean-btn--solid { background: var(--wpean-accent, #222); color: #fff !important; }
.wpean-btn--solid:hover { opacity: .88; }
.wpean-btn--outline { background: transparent; color: var(--wpean-accent, #222) !important; }
.wpean-btn--outline:hover { background: var(--wpean-accent, #222); color: #fff !important; }
.wpean-btn--link { border: 0; padding: 0; color: var(--wpean-accent, inherit) !important; text-decoration: underline !important; }

.wpean-article .wpean-s--divider { border: 0; height: 1px; background: rgba(127,127,127,.3); margin-top: 2.4em; margin-bottom: 2.4em; }
.wpean-s--divider-dots { background: none; height: auto; text-align: center; }
.wpean-s--divider-dots::before { content: "\2022\2003\2022\2003\2022"; opacity: .5; letter-spacing: .2em; }
.wpean-s--divider-space { background: none; height: 1em; }

/* Tables (e.g. from imported articles) */
.wpean-s-table { overflow-x: auto; }
.wpean-s-table table { width: 100%; border-collapse: collapse; font-size: .92em; }
.wpean-s-table th, .wpean-s-table td { padding: 10px 12px; border: 1px solid rgba(127,127,127,.3); text-align: left; vertical-align: top; }
.wpean-s-table th { font-weight: 700; background: rgba(127,127,127,.08); }

/* Share */
.wpean-article__footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(127,127,127,.25); }
.wpean-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wpean-share__label { font-weight: 600; margin-right: 6px; font-size: .9em; }
.wpean-share__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(127,127,127,.35);
	color: inherit;
	text-decoration: none;
	box-shadow: none;
	transition: all .2s ease;
}
.wpean-share__btn:hover { background: var(--wpean-accent, #222); border-color: var(--wpean-accent, #222); color: #fff; }
.wpean-share__btn.is-copied { background: #2e7d32; border-color: #2e7d32; color: #fff; }

/* Related */
.wpean-article__related {
	max-width: 1200px;
	margin: 64px auto 0;
	padding: 48px 20px 0;
	border-top: 1px solid rgba(127,127,127,.2);
}
.wpean-article__related-title { margin: 0 0 24px; font-size: 1.6em; }

/* Block-theme body wrapper */
.wpean-article__body--theme .wpean-standfirst { font-size: 1.2em; }

/* Lightbox */
.wpean-lightbox-overlay {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.9);
	cursor: zoom-out;
	animation: wpean-fade .2s ease;
}
.wpean-lightbox-overlay img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.wpean-lightbox-overlay button {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border-radius: 50%; border: 0;
	background: rgba(255,255,255,.15); color: #fff; font-size: 22px; cursor: pointer;
}
.wpean-lightbox-overlay .wpean-lb-prev { left: 16px; }
.wpean-lightbox-overlay .wpean-lb-next { right: 16px; }
.wpean-lightbox-overlay .wpean-lb-close { top: 30px; right: 16px; transform: none; }
@keyframes wpean-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.wpean-news *, .wpean-article * { transition: none !important; animation: none !important; }
}
