/**
 * EQPAL Site Kit
 *
 * Palette is taken from LOGO.pdf, not from Elementor's global kit — the kit
 * currently holds a purple and a magenta that appear nowhere in the logo.
 * Update the kit to these values and the whole site will agree.
 *
 *   blue   #1F63A8   cmyk 87 / 58 / 10 / 0
 *   green  #17853C   cmyk 86 / 21 / 100 / 7
 *   lime   #8FC63F   cmyk 43 / 3 / 100 / 0
 *   yellow #F7EC1E   cmyk  4 / 0 / 93 / 0
 */

:root {
	--eqpal-primary: #1f63a8;
	--eqpal-secondary: #17853c;
	--eqpal-accent: #17853c;
	--eqpal-lime: #8fc63f;
	--eqpal-yellow: #f7ec1e;

	--eqpal-ink: #141e2c;
	--eqpal-ink-2: #3d4c5e;
	--eqpal-muted: #63748a;
	--eqpal-line: #dde5ef;
	--eqpal-surface: #ffffff;
	--eqpal-surface-2: #f7f9fc;

	--eqpal-radius: 12px;
	--eqpal-shadow: 0 1px 2px rgba(20, 30, 44, .06), 0 8px 24px rgba(20, 30, 44, .06);
	--eqpal-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* -------------------------------------------------- News bar */

.eqpal-newsbar {
	position: relative;
	z-index: 99;
	background: linear-gradient(90deg, var(--eqpal-primary), var(--eqpal-secondary));
	color: #fff;
	font-family: var(--eqpal-font);
	font-size: 0.9rem;
}

.eqpal-newsbar[data-dismissed] {
	display: none;
}

.eqpal-newsbar__inner {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.55rem 1rem;
}

.eqpal-newsbar__tag {
	flex: none;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.eqpal-newsbar__items {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

/* Without JS only the first headline shows — the bar still works. */
.eqpal-newsbar__item {
	display: none;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eqpal-newsbar__item.is-active {
	display: block;
	animation: eqpal-news-in 0.45s ease;
}

.eqpal-newsbar__item:hover,
.eqpal-newsbar__item:focus-visible {
	color: #fff;
	text-decoration: underline;
}

@keyframes eqpal-news-in {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: none; }
}

.eqpal-newsbar__all {
	flex: none;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: underline;
	white-space: nowrap;
}

.eqpal-newsbar__all:hover { color: #fff; }

.eqpal-newsbar__close {
	flex: none;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.eqpal-newsbar__close:hover { background: rgba(255, 255, 255, 0.32); }

@media (max-width: 600px) {
	.eqpal-newsbar { font-size: 0.82rem; }
	.eqpal-newsbar__inner { gap: 0.6rem; padding: 0.5rem 0.75rem; }
	.eqpal-newsbar__all { display: none; }
}

/* -------------------------------------------------- Composer */

.eqpal-composer {
	max-width: 720px;
	margin: 0 0 2rem;
	padding: 1rem 1.15rem 1.15rem;
	border: 1px solid var(--eqpal-line);
	border-radius: var(--eqpal-radius);
	background: var(--eqpal-surface);
	box-shadow: var(--eqpal-shadow);
	font-family: var(--eqpal-font);
}

.eqpal-composer__head {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.eqpal-composer__avatar {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.eqpal-composer__field {
	flex: 1 1 auto;
	min-width: 0;
}

/* Borderless, oversized — the box should feel like a status update. */
.eqpal-composer__body {
	display: block;
	width: 100%;
	min-height: 76px;
	padding: 0.5rem 0;
	border: 0;
	background: transparent;
	color: var(--eqpal-ink);
	font-family: inherit;
	font-size: 1.2rem;
	line-height: 1.45;
	resize: vertical;
}

.eqpal-composer__body::placeholder { color: var(--eqpal-muted); }
.eqpal-composer__body:focus { outline: none; }

.eqpal-composer__title {
	display: block;
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--eqpal-line);
	border-radius: 8px;
	background: var(--eqpal-surface-2);
	color: var(--eqpal-ink);
	font-family: inherit;
	font-size: 0.85rem;
}

.eqpal-composer__title:focus {
	outline: none;
	border-color: var(--eqpal-primary);
	background: var(--eqpal-surface);
}

.eqpal-composer__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.85rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--eqpal-line);
}

.eqpal-composer__photo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--eqpal-primary);
	cursor: pointer;
}

.eqpal-composer__photo input {
	max-width: 180px;
	font-size: 0.78rem;
}

.eqpal-composer__submit {
	padding: 0.6rem 1.9rem;
	border: 0;
	border-radius: 999px;
	background: var(--eqpal-primary);
	color: #fff;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.eqpal-composer__submit:hover {
	background: var(--eqpal-secondary);
	transform: translateY(-1px);
}

.eqpal-composer__progress {
	margin: 0.7rem 0 0;
	padding: 0.55rem 0.8rem;
	border-radius: 8px;
	background: rgba(31, 99, 168, 0.08);
	color: var(--eqpal-primary);
	font-size: 0.85rem;
	font-weight: 700;
}

.eqpal-composer__progress[hidden] { display: none; }

.eqpal-composer__submit:disabled {
	opacity: 0.55;
	cursor: progress;
	transform: none;
}

.eqpal-composer__hint {
	margin: 0.7rem 0 0;
	font-size: 0.78rem;
	color: var(--eqpal-muted);
}

.eqpal-composer__notice {
	margin-bottom: 0.85rem;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 700;
}

.eqpal-composer__notice.is-ok {
	background: #e8f5ec;
	color: #12652f;
}

.eqpal-composer__notice.is-error {
	background: #fdecef;
	color: #a3143b;
}

@media (max-width: 560px) {
	.eqpal-composer__foot { flex-direction: column; align-items: stretch; }
	.eqpal-composer__submit { width: 100%; }
}

/* -------------------------------------------------- Feed (timeline) */

.eqpal-feed {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 720px;
	font-family: var(--eqpal-font);
}

.eqpal-fpost {
	padding: 1.05rem 1.15rem 1.15rem;
	border: 1px solid var(--eqpal-line);
	border-radius: var(--eqpal-radius);
	background: var(--eqpal-surface);
	box-shadow: var(--eqpal-shadow);
}

.eqpal-fpost__head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0.6rem;
}

.eqpal-fpost__avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: conic-gradient(from 210deg, var(--eqpal-primary), var(--eqpal-secondary), var(--eqpal-lime), var(--eqpal-primary));
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.eqpal-fpost__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.eqpal-fpost__name {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--eqpal-ink);
}

.eqpal-fpost__meta {
	font-size: 0.8rem;
	color: var(--eqpal-muted);
}

.eqpal-fpost__tools {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.eqpal-fpost__pin {
	flex: none;
	padding: 0.18rem 0.6rem;
	border-radius: 999px;
	background: rgba(23, 133, 60, 0.12);
	color: var(--eqpal-accent);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.eqpal-fpost__title {
	margin: 0 0 0.45rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	text-wrap: balance;
}

.eqpal-fpost__title a {
	color: var(--eqpal-ink);
	text-decoration: none;
}

.eqpal-fpost__title a:hover { color: var(--eqpal-primary); }

.eqpal-fpost__body {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--eqpal-ink-2);
}

.eqpal-fpost__body > :first-child { margin-top: 0; }
.eqpal-fpost__body > :last-child { margin-bottom: 0; }

.eqpal-fpost__media {
	display: block;
	margin-top: 0.85rem;
	border: 1px solid var(--eqpal-line);
	border-radius: 10px;
	overflow: hidden;
}

.eqpal-fpost__media img {
	display: block;
	width: 100%;
	height: auto;
}

/* Photo galleries posted from the composer. WordPress's own gallery styles
   are float-based and collapse oddly inside a card, so lay them out here. */

.eqpal-fpost__body .gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin: 0.85rem 0 0;
}

.eqpal-fpost__body .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eqpal-fpost__body .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eqpal-fpost__body .gallery-item {
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	float: none !important;
}

.eqpal-fpost__body .gallery-icon { margin: 0; }

.eqpal-fpost__body .gallery-item img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 0 !important;
	border-radius: 8px;
	transition: opacity 0.16s ease;
}

.eqpal-fpost__body .gallery-item a:hover img { opacity: 0.88; }

.eqpal-fpost__body .gallery-caption { display: none; }

@media (max-width: 520px) {
	.eqpal-fpost__body .gallery,
	.eqpal-fpost__body .gallery-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Inside a feed card the share bar is a footer, not a page-level divider. */
.eqpal-fpost .eqpal-share {
	margin: 0.85rem 0 0;
	padding-top: 0.75rem;
}

.eqpal-fpost .eqpal-share__label { display: none; }

/* -------------------------------------------------- Share bar */

.eqpal-share {
	margin: 2.5rem 0 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--eqpal-line);
	font-family: var(--eqpal-font);
}

.eqpal-share__label {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--eqpal-muted);
}

.eqpal-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eqpal-share__list li { margin: 0; }

.eqpal-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--eqpal-line);
	border-radius: 999px;
	background: transparent;
	color: var(--eqpal-ink-2);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.eqpal-share__btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.eqpal-share__btn:hover,
.eqpal-share__btn:focus-visible {
	color: #fff;
	border-color: transparent;
}

.eqpal-share__btn--facebook:hover { background: #1877f2; }
.eqpal-share__btn--x:hover        { background: #000; }
.eqpal-share__btn--linkedin:hover { background: #0a66c2; }
.eqpal-share__btn--whatsapp:hover { background: #25d366; }
.eqpal-share__btn--email:hover    { background: var(--eqpal-primary); }
.eqpal-share__btn--link:hover     { background: var(--eqpal-secondary); }

.eqpal-share__btn.is-copied {
	background: var(--eqpal-secondary);
	border-color: transparent;
	color: #fff;
}

/* -------------------------------------------------- Post actions menu */

.eqpal-actions {
	position: relative;
	flex: none;
	font-family: var(--eqpal-font);
}

.eqpal-actions__toggle {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--eqpal-muted);
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.eqpal-actions__toggle:hover,
.eqpal-actions__toggle[aria-expanded="true"] {
	background: rgba(31, 99, 168, 0.1);
	color: var(--eqpal-primary);
}

.eqpal-actions__menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 30;
	min-width: 190px;
	padding: 0.3rem;
	border: 1px solid var(--eqpal-line);
	border-radius: 10px;
	background: var(--eqpal-surface);
	box-shadow: 0 8px 26px rgba(20, 30, 44, 0.16);
}

.eqpal-actions__menu[hidden] { display: none; }

.eqpal-actions__menu form { margin: 0; }

.eqpal-actions__item {
	display: block;
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--eqpal-ink-2);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.eqpal-actions__item:hover,
.eqpal-actions__item:focus-visible {
	background: var(--eqpal-surface-2);
	color: var(--eqpal-primary);
}

.eqpal-actions__item.is-danger { color: #a3143b; }

.eqpal-actions__item.is-danger:hover,
.eqpal-actions__item.is-danger:focus-visible {
	background: #fdecef;
	color: #8d1032;
}

/* -------------------------------------------------- Latest (hero band) */

.eqpal-latest-band {
	padding: 2.5rem 1.25rem;
	background: var(--eqpal-surface-2);
	border-bottom: 1px solid var(--eqpal-line);
}

/* Homepage news row */

.eqpal-newshome {
	max-width: 1200px;
	margin: 0 auto;
	font-family: var(--eqpal-font);
}

.eqpal-newshome__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

.eqpal-newshome__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.4vw, 1.7rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--eqpal-ink);
}

.eqpal-newshome__all {
	flex: none;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--eqpal-primary);
	text-decoration: none;
	white-space: nowrap;
}

.eqpal-newshome__all:hover { text-decoration: underline; }

@media (max-width: 600px) {
	.eqpal-latest-band { padding: 1.75rem 1rem; }
	.eqpal-newshome__head { margin-bottom: 0.85rem; }
}

.eqpal-latest {
	font-family: var(--eqpal-font);
	max-width: 1140px;
	margin: 0 auto;
}

.eqpal-latest__link {
	display: flex;
	align-items: stretch;
	gap: 0;
	overflow: hidden;
	border: 1px solid var(--eqpal-line);
	border-radius: 16px;
	background: var(--eqpal-surface);
	box-shadow: var(--eqpal-shadow);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eqpal-latest__link:hover,
.eqpal-latest__link:focus-visible {
	transform: translateY(-3px);
	border-color: transparent;
	box-shadow: 0 10px 34px rgba(20, 30, 44, 0.14);
}

.eqpal-latest__media {
	flex: 0 0 42%;
	min-height: 260px;
	overflow: hidden;
	background: var(--eqpal-surface-2);
}

.eqpal-latest__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eqpal-latest__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;
	background: linear-gradient(135deg, var(--eqpal-primary), var(--eqpal-secondary) 65%, var(--eqpal-lime));
}

.eqpal-latest__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.55rem;
	padding: 1.9rem 2.1rem;
	min-width: 0;
}

.eqpal-latest__label {
	align-self: flex-start;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: var(--eqpal-secondary);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eqpal-latest__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.22;
	color: var(--eqpal-ink);
	text-wrap: balance;
}

.eqpal-latest__link:hover .eqpal-latest__title { color: var(--eqpal-primary); }

.eqpal-latest__excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--eqpal-muted);
}

.eqpal-latest__meta {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: var(--eqpal-muted);
}

.eqpal-latest__more {
	font-weight: 700;
	color: var(--eqpal-primary);
}

@media (max-width: 780px) {
	.eqpal-latest__link { flex-direction: column; }

	.eqpal-latest__media {
		flex: none;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.eqpal-latest__placeholder { min-height: 0; }

	.eqpal-latest__body { padding: 1.3rem 1.4rem 1.6rem; }
}

/* -------------------------------------------------- Card grid */

.eqpal-events {
	display: grid;
	grid-template-columns: repeat(var(--eqpal-cols, 3), minmax(0, 1fr));
	gap: 1.1rem;
	font-family: var(--eqpal-font);
}

@media (max-width: 900px) {
	.eqpal-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.eqpal-events { grid-template-columns: minmax(0, 1fr); }
}

.eqpal-event-card {
	border: 1px solid var(--eqpal-line);
	border-radius: var(--eqpal-radius);
	overflow: hidden;
	background: var(--eqpal-surface);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.eqpal-event-card:hover {
	transform: translateY(-3px);
	border-color: transparent;
	box-shadow: var(--eqpal-shadow);
}

.eqpal-event-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.eqpal-event-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--eqpal-surface-2);
}

.eqpal-event-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eqpal-event-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(31, 99, 168, 0.18), rgba(143, 198, 63, 0.22));
}

.eqpal-event-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.9rem 1rem 1.1rem;
}

.eqpal-event-card__date {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--eqpal-accent);
}

.eqpal-event-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--eqpal-ink);
}

.eqpal-event-card__excerpt {
	margin: 0;
	font-size: 0.875rem;
	color: var(--eqpal-muted);
}

.eqpal-event-card__more {
	margin-top: 0.3rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--eqpal-primary);
}

/* -------------------------------------------------- Admin hint */

.eqpal-empty {
	padding: 1rem 1.1rem;
	border: 1px dashed var(--eqpal-line);
	border-radius: 10px;
	background: var(--eqpal-surface-2);
	color: var(--eqpal-muted);
	font-family: var(--eqpal-font);
	font-size: 0.9rem;
}

.eqpal-thumb-hint {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: #12652f;
}

/* --------------------------------------------------
 * Beat Elementor's global kit
 *
 * The kit styles bare headings with `.elementor-kit-6 h2/h3`, which is one
 * class plus an element — that outranks any single-class selector of ours.
 * Its text colour is #FFFFFF and its h3 size is 33px, so our card headings
 * rendered as invisible 33px white text on white cards.
 *
 * Two classes beats one class + one element, so these selectors win without
 * resorting to !important, and without us touching the site's global colours.
 * -------------------------------------------------- */

.eqpal-events .eqpal-event-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--eqpal-ink);
}

.eqpal-feed .eqpal-fpost__title {
	margin: 0 0 0.45rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--eqpal-ink);
}

.eqpal-feed .eqpal-fpost__title a { color: var(--eqpal-ink); }
.eqpal-feed .eqpal-fpost__title a:hover { color: var(--eqpal-primary); }

.eqpal-latest .eqpal-latest__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.22;
	color: var(--eqpal-ink);
}

.eqpal-newshome .eqpal-newshome__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.4vw, 1.7rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--eqpal-ink);
}

/* Body copy inside our components must not inherit the white global either. */
.eqpal-events .eqpal-event-card__excerpt,
.eqpal-feed .eqpal-fpost__body,
.eqpal-latest .eqpal-latest__excerpt {
	color: var(--eqpal-muted);
}

.eqpal-feed .eqpal-fpost__body { color: var(--eqpal-ink-2); }

.eqpal-feed .eqpal-fpost__body a,
.eqpal-feed .eqpal-fpost__body strong {
	color: inherit;
}

/* --------------------------------------------------
 * Single post / single event pages
 *
 * These are rendered by hello-elementor's own template, not by Elementor, so
 * the title and body text inherit the kit's white and vanish on the white
 * page. Scoped deliberately to these two body classes: Elementor-built pages
 * must keep their own colours, including white text on dark sections.
 * -------------------------------------------------- */

body.single-post .site-main .entry-title,
body.single-eqpal_event .site-main .entry-title {
	color: var(--eqpal-ink);
	line-height: 1.2;
	text-wrap: balance;
}

body.single-post .site-main .page-content,
body.single-post .site-main .page-content p,
body.single-post .site-main .page-content li,
body.single-post .site-main .page-content blockquote,
body.single-eqpal_event .site-main .page-content,
body.single-eqpal_event .site-main .page-content p,
body.single-eqpal_event .site-main .page-content li {
	color: var(--eqpal-ink-2);
}

body.single-post .site-main .page-content h2,
body.single-post .site-main .page-content h3,
body.single-post .site-main .page-content h4,
body.single-eqpal_event .site-main .page-content h2,
body.single-eqpal_event .site-main .page-content h3 {
	color: var(--eqpal-ink);
}

body.single-post .site-main .page-content a,
body.single-eqpal_event .site-main .page-content a {
	color: var(--eqpal-primary);
}

/* The theme sets --content-width to 100%, which runs body text the full width
   of a desktop screen. Give the reading column a sane measure. */
body.single-post .site-main,
body.single-eqpal_event .site-main {
	max-width: 820px;
	margin-inline: auto;
	padding-inline: 1.25rem;
	font-family: var(--eqpal-font);
}

body.single-post .site-main .page-content > :first-child { margin-top: 0; }

body.single-post .site-main .post-thumbnail img,
body.single-post .site-main .page-content img {
	height: auto;
	border-radius: 10px;
}

/* Galleries posted from the composer, shown on the post itself. */
body.single-post .page-content .gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 1.25rem 0 0;
}

body.single-post .page-content .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.single-post .page-content .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

body.single-post .page-content .gallery-item {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
}

body.single-post .page-content .gallery-icon { margin: 0; }

body.single-post .page-content .gallery-item img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 0 !important;
	border-radius: 8px;
}

body.single-post .page-content .gallery-caption { display: none; }

@media (max-width: 520px) {
	body.single-post .page-content .gallery,
	body.single-post .page-content .gallery-columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.eqpal-newsbar__item.is-active,
	.eqpal-event-card,
	.eqpal-composer__submit,
	.eqpal-share__btn {
		animation: none;
		transition: none;
	}
}
