.cif-calendar {
	padding-block: clamp(2rem, 5vw, 4rem);
	font-size: 1rem;
}

.cif-calendar--page [hidden] {
	display: none !important;
}

.cif-calendar__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	background: linear-gradient(135deg, #fff8e7, #fff0d2);
	border-radius: 1.25rem;
	overflow: hidden;
}

.cif-calendar__intro {
	align-self: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	color: #39261f;
}

.cif-calendar__intro h1 {
	margin: 0 0 0.75rem;
	color: #103d2b;
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.1;
}

.cif-calendar__intro h1::after,
.cif-calendar__month h2::after {
	content: "";
	display: block;
	width: 3.25rem;
	height: 0.2rem;
	margin-top: 0.65rem;
	border-radius: 1rem;
	background: #e38a25;
}

.cif-calendar__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cif-calendar__hero-actions a.cif-calendar__button,
.cif-calendar__hero-actions a.cif-calendar__enquiry {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.6rem 0.85rem;
	border-radius: 0.65rem;
	color: #fff;
	font-weight: 700;
}

.cif-calendar__intro a.cif-calendar__button {
	background: #a83e16;
	border-color: #a83e16;
}

.cif-calendar__intro a.cif-calendar__button:hover,
.cif-calendar__intro a.cif-calendar__button:focus {
	background: #792b12;
	border-color: #792b12;
}

.cif-calendar__intro p {
	margin: 0 0 1rem;
}

.cif-calendar__hero-photo {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 13rem;
	object-fit: cover;
}

.cif-calendar__note {
	margin: 1.25rem 0 0;
}

.cif-calendar a.cif-calendar__enquiry {
	gap: 0.45rem;
	border: 1px solid #154a32;
	background: #154a32;
}

.cif-calendar a.cif-calendar__enquiry:hover,
.cif-calendar a.cif-calendar__enquiry:focus-visible {
	background: #103b28;
	color: #fff !important;
}

.cif-calendar .cif-calendar__enquiry svg {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}

@media (max-width: 767px) {
	.cif-calendar__hero {
		grid-template-columns: 1fr;
	}

	.cif-calendar__hero-photo {
		height: auto;
		min-height: 0;
		aspect-ratio: 2.5;
	}
}

.cif-calendar__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block: 1.25rem 0;
	padding: 0.5rem;
	border: 1px solid #c9dfd3;
	border-radius: 0.85rem;
	background: #e3f2e9;
}

.cif-calendar__filters a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.45rem 0.8rem;
	border-radius: 0.6rem;
	color: #154a32;
	font-weight: 700;
}

.cif-calendar__filters a:hover,
.cif-calendar__filters a:focus-visible {
	background: #fff;
	color: #154a32;
}

.cif-calendar__filters a[aria-current="true"] {
	background: #154a32;
	color: #fff !important;
}

.cif-calendar__months {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-block: 1.5rem 2rem;
}

.cif-calendar__months a {
	display: inline-block;
	border: 1px solid #d7e9e1;
	border-radius: 2rem;
	padding: 0.45rem 0.85rem;
	background: #f2f9f4;
	color: #174a3c;
	font-weight: 600;
}

.cif-calendar__months a:hover,
.cif-calendar__months a:focus-visible {
	background: #09605a;
	color: #fff !important;
}

.cif-calendar__button {
	display: inline-block;
	border: 1px solid #742d1d;
	border-radius: 0.35rem;
	padding: 0.5rem 0.85rem;
	color: #742d1d;
}

.cif-calendar__button {
	background: #742d1d;
	color: #fff;
}

.cif-calendar a.cif-calendar__button:hover,
.cif-calendar a.cif-calendar__button:focus {
	background: #572316;
	color: #fff !important;
}

.cif-calendar__month {
	padding: clamp(1rem, 3vw, 2rem);
	border-radius: 1.25rem;
	background: linear-gradient(120deg, #effaf3, #def3ef);
}

.cif-calendar__month h2 {
	margin: 0 0 1.25rem;
	color: #103d2b;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.cif-calendar__month + .cif-calendar__month {
	margin-top: 2rem;
}

.cif-calendar--page .cif-calendar__cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.cif-calendar--page .cif-calendar__cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

.cif-calendar__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 0 0 1.25rem;
}

.cif-calendar__card {
	border: 1px solid #ded6d1;
	border-top: 3px solid #a54a2c;
	border-radius: 0.5rem;
	padding: 1.15rem;
	background: #fff;
}

.cif-calendar__card:target {
	outline: 2px solid #742d1d;
	outline-offset: 3px;
}

.cif-calendar__card--illustrated {
	--event-tint: #fff1cb;
	--event-ink: #814500;
	border: 1px solid #d9e8e0;
	border-radius: 1rem;
	padding: 0.3rem;
	box-shadow: 0 3px 7px rgb(24 75 56 / 9%);
}

.cif-calendar__card--illustrated[data-event-art="meditation"],
.cif-calendar__card--illustrated[data-event-art="campus"] {
	--event-tint: #dcf5e3;
	--event-ink: #255a3f;
}

.cif-calendar__card--illustrated[data-event-art="devotion"] {
	--event-tint: #ffe4d6;
	--event-ink: #8e3721;
}

.cif-calendar__card--illustrated[data-event-art="gathering"] {
	--event-tint: #efe3f8;
	--event-ink: #614479;
}

.cif-calendar__card-heading {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.85rem;
	border-radius: 0.7rem;
	background: var(--event-tint);
}

.cif-calendar__card-heading .cif-calendar__date {
	margin: 0;
	color: var(--event-ink);
}

.cif-calendar__date-icon {
	flex: 0 0 1.15rem;
	width: 1.15rem;
	height: 1.15rem;
	color: var(--event-ink);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cif-calendar__card-body {
	display: flex;
	align-items: flex-start;
	gap: clamp(0.5rem, 2vw, 1rem);
	padding: 0.85rem;
}

.cif-calendar__card-copy {
	min-width: 0;
	overflow-wrap: anywhere;
}

.cif-calendar__card-icon {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 3rem;
	height: 3rem;
	padding: 0.65rem;
	border-radius: 50%;
	background: var(--event-tint);
	color: var(--event-ink);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.45;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cif-calendar [id] {
	scroll-margin-top: 7rem;
}

.cif-calendar__card h3 {
	margin-block: 0.35rem 0.65rem;
	font-size: 1.2rem;
	line-height: 1.35;
}

.cif-calendar__card p {
	margin: 0 0 0.35rem;
}

.cif-calendar__card--illustrated h3 {
	margin-top: 0;
	color: #103d2b;
	font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}

.cif-calendar__date,
.cif-calendar__event-link,
.cif-calendar__save summary,
.cif-calendar__save a {
	color: #742d1d;
	font-weight: 600;
}

.cif-calendar__event-link {
	text-decoration: underline;
}

.cif-calendar__save {
	margin-top: 0.85rem;
}

.cif-calendar__card--illustrated .cif-calendar__save {
	margin-top: 0.65rem;
}

.cif-calendar--page .cif-calendar__event-link,
.cif-calendar--page .cif-calendar__save summary,
.cif-calendar--page .cif-calendar__save a {
	color: #09605a;
}

.cif-calendar__save summary {
	cursor: pointer;
}

.cif-calendar__save a {
	display: block;
	width: fit-content;
	margin-top: 0.45rem;
	text-decoration: underline;
}
