/* Rays of Worship Daily Devotionals — archive + single page styles.
   Same convention as devotional.css: Blocksy CSS variables with literal
   fallbacks, .row-dd- namespaced selectors. */

/* Archive */

.row-dd-archive {
	padding-top: var(--theme-content-spacing, 1.5rem);
	padding-bottom: var(--theme-content-spacing, 1.5rem);
}

.row-dd-archive__header {
	margin-bottom: var(--theme-content-spacing, 1.5rem);
}

.row-dd-archive__title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	color: var(--theme-text-color, #1a1a1a);
}

.row-dd-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--theme-content-spacing, 1.5rem);
}

@media (max-width: 900px) {
	.row-dd-archive-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.row-dd-archive-card--featured {
		grid-column: span 1;
	}
}

@media (max-width: 600px) {
	.row-dd-archive-grid {
		grid-template-columns: 1fr;
	}
}

.row-dd-archive-card {
	overflow: hidden;
	background: var(--theme-palette-color-1, #ffffff);
	box-shadow: var(--theme-box-shadow, 0 1px 3px rgba(0, 0, 0, 0.12));
}

.row-dd-archive-card--featured {
	grid-column: span 2;
	background: var(--theme-palette-color-2, #f7f7f7);
	box-shadow: 0 0 0 2px var(--theme-palette-color-3, #cccccc), var(--theme-box-shadow, 0 4px 16px rgba(0, 0, 0, 0.15));
}

.row-dd-archive-card--featured .row-dd-archive-card__image {
	aspect-ratio: 21 / 9;
}

.row-dd-archive-card--featured .row-dd-archive-card__title {
	font-size: 1.5rem;
}

.row-dd-archive-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.row-dd-archive-card__image {
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	background-color: var(--theme-palette-color-3, #e5e5e5);
}

.row-dd-archive-card__body {
	padding: 1.25rem;
}

.row-dd-archive-card__title {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
	color: #ffffff;
}

.row-dd-archive-card__verse-ref {
	margin: 0 0 0.5rem;
	font-weight: 600;
	font-size: 0.9rem;
	opacity: 0.85;
	color: #f7f7f7;
}

.row-dd-archive-card__excerpt {
	margin: 0;
	font-size: 0.95rem;
	opacity: 0.85;
	color: #e5e5e5;
}

.row-dd-archive__pagination {
	margin-top: var(--theme-content-spacing, 1.5rem);
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.row-dd-archive__empty {
	opacity: 0.75;
}

/* Single */

.row-dd-single {
	max-width: var(--theme-normal-container-max-width, 1200px);
}

.row-dd-single__article {
	max-width: 64rem;
	margin: 0 auto;
}

.row-dd-single__title {
	color: var(--theme-text-color, #1a1a1a);
	line-height: 120%;
}

.row-dd-single__body {
	display: flex;
	align-items: flex-start;
	gap: 2rem;
	padding-top: 6em;
}

.row-dd-single__image {
	flex: 1 1 50%;
	width: 50%;
}

.row-dd-single__main {
	flex: 1 1 50%;
	width: 50%;
}

.row-dd-single__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.row-dd-single__scripture {
	margin-bottom: 2rem;
	padding: 1.5rem;
	border-radius: 0 8px 8px 0;
	border: 1px solid var(--theme-palette-color-2, #f7f7f7);
	box-shadow: 0 0 0 2px var(--theme-palette-color-3, #cccccc), var(--theme-box-shadow, 0 4px 16px rgba(0, 0, 0, 0.15));
}

.row-dd-single__verse-text {
	margin: 0 0 0.75rem;
	/* font-size: clamp(1.1rem, 2vw, 1.35rem); */
	font-style: italic;
}

.row-dd-single__verse-ref {
	margin: 0;
	font-weight: 600;
	opacity: 0.85;
}

.row-dd-single__content p {
	margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
	.row-dd-single__body {
		flex-direction: column;
	}

	.row-dd-single__image,
	.row-dd-single__main {
		width: 100%;
	}
}
