/* PulpitKit front-end styles — self-contained, theme-independent.
   Uses inherited fonts and neutral colors so it blends with any theme;
   all classes are prefixed pk- to avoid collisions. */

.pk-sermons,
.pk-events {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin: 1rem 0;
}

.pk-sermon,
.pk-event {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 1rem 1.25rem;
	background: rgba(0, 0, 0, 0.02);
}

.pk-sermon-title,
.pk-event-title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.pk-sermon-title a,
.pk-event-title a {
	text-decoration: none;
}

.pk-sermon-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	opacity: 0.85;
}

.pk-sermon-scripture {
	font-style: italic;
}

.pk-sermon-audio {
	width: 100%;
	margin: 0.25rem 0 0.5rem;
}

.pk-sermon-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.5rem 0 0;
}

.pk-button {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.9rem;
	line-height: 1.2;
	text-decoration: none;
}

.pk-button:hover {
	opacity: 0.8;
}

/* Events */

.pk-event {
	display: flex;
	gap: 1.25rem;
}

.pk-event-when {
	flex: 0 0 11rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: 0.95rem;
}

.pk-event-date {
	font-weight: 700;
}

.pk-event-recurs {
	font-size: 0.85rem;
	opacity: 0.8;
}

.pk-event-body {
	flex: 1 1 auto;
	min-width: 0;
}

.pk-event-location {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	opacity: 0.85;
}

.pk-event-excerpt {
	margin: 0;
}

@media (max-width: 600px) {
	.pk-event {
		flex-direction: column;
		gap: 0.5rem;
	}

	.pk-event-when {
		flex-basis: auto;
	}
}

/* Livestream */

.pk-live {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 1.25rem;
	margin: 1rem 0;
	text-align: center;
}

.pk-live-badge {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.2rem 0.75rem;
	border-radius: 999px;
	background: #c0392b;
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
}

.pk-live-title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.pk-live-next {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	opacity: 0.9;
}

.pk-live-embed {
	position: relative;
	max-width: 880px;
	margin: 0 auto 1rem;
	aspect-ratio: 16 / 9;
}

.pk-live-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 6px;
}

.pk-live-facebook {
	margin: 0.5rem 0 0;
}

.pk-empty {
	opacity: 0.8;
	font-style: italic;
}
