/*
 * Sacred Roots blocks. Colors and fonts come from the theme's presets so a theme refresh restyles these too.
 */

/* Prayer times */
.sr-prayer-times__line {
	margin: 0;
}

.sr-prayer-times__item {
	white-space: nowrap;
}

.sr-editor-note {
	font-size: 0.8rem;
	opacity: 0.7;
}

/* Upcoming events */
.sr-upcoming__year {
	margin: 0 0 1.5rem;
	font-weight: 700;
	font-size: 1.5rem;
	text-align: center;
}

.sr-upcoming__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-upcoming__item {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	margin-bottom: 2rem;
}

.sr-upcoming__thumb {
	flex: 0 0 110px;
}

.sr-upcoming__thumb img {
	display: block;
	width: 110px;
	height: auto;
}

.sr-upcoming__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

/* No underline on hover (owner request, #42). */
.sr-upcoming__title a,
.sr-upcoming__title a:hover {
	text-decoration: none;
}

.sr-upcoming__meta {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.85;
}

/* Month calendar */
.sr-cal__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.sr-cal__month {
	margin: 0;
	font-size: 2rem;
	font-weight: 400;
}

.sr-cal__arrow {
	padding: 0 0.5rem;
	font-size: 2rem;
	line-height: 1;
	text-decoration: none;
}

.sr-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.sr-cal__weekday {
	padding-bottom: 0.75rem;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
}

.sr-cal__day {
	min-height: 7.5rem;
	padding: 0.6rem;
	background: color-mix(in srgb, currentColor 5%, transparent);
	font-size: 0.8rem;
	line-height: 1.3;
}

.sr-cal__day--blank {
	background: color-mix(in srgb, currentColor 3%, transparent);
}

.sr-cal__day--today {
	background: color-mix(in srgb, currentColor 12%, transparent);
}

.sr-cal__date {
	margin-bottom: 0.5rem;
	text-align: right;
}

.sr-cal__date-long {
	display: none;
}

.sr-cal__event {
	display: block;
	margin-bottom: 0.6rem;
	text-decoration: none;
}

/* No underline on hover (owner request, #42); :hover also beats the theme's link hover rule. */
.sr-cal__event:hover {
	text-decoration: none;
}

.sr-cal__time {
	display: block;
	font-weight: 700;
}

.sr-cal__more {
	margin-top: 1rem;
	text-align: right;
}

/* Phones: the grid becomes a list of days that have events. */
@media (max-width: 600px) {
	.sr-cal__grid {
		display: block;
	}

	.sr-cal__weekday,
	.sr-cal__day--blank,
	.sr-cal__day--empty {
		display: none;
	}

	.sr-cal__day {
		min-height: 0;
		margin-bottom: 4px;
		font-size: 1rem;
	}

	.sr-cal__date {
		font-weight: 700;
		text-align: left;
	}

	.sr-cal__date-long {
		display: inline;
	}

	.sr-cal__time {
		display: inline;
		margin-right: 0.5em;
	}
}

/* Note above The Events Calendar's pages */
.sr-weekly-note {
	margin: 0 0 1.5rem;
}
