.stonehouse-calendar-shell {
	background: #fbfaf5;
	color: #202a2f;
	margin: 0 auto;
	max-width: 1280px;
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 4rem);
}

.stonehouse-calendar-heading {
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	max-width: 760px;
}

.stonehouse-calendar-kicker,
.stonehouse-calendar-legend {
	color: #48694c;
	font-family: Inter, "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.stonehouse-calendar-heading h1 {
	color: #202a2f;
	font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
	font-size: clamp(2rem, 3.4vw, 3.15rem);
	line-height: 1.05;
	margin: 0.4rem 0 0.8rem;
	max-width: 13ch;
}

.stonehouse-calendar-heading p:last-child {
	color: #66716d;
	font-size: 1rem;
	line-height: 1.6;
	max-width: 58ch;
}

.stonehouse-calendar-toolbar {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.stonehouse-calendar-legend {
	align-items: center;
	display: inline-flex;
	gap: 0.45rem;
	letter-spacing: 0.08em;
	margin-right: 1rem;
}

.stonehouse-calendar-legend::before {
	border-radius: 999px;
	content: "";
	display: inline-block;
	height: 0.65rem;
	width: 0.65rem;
}

.stonehouse-calendar-legend--community::before {
	background: #48694c;
}

.stonehouse-calendar-legend--holiday::before {
	background: #8a8880;
}

.stonehouse-calendar {
	background: #ffffff;
	border: 1px solid rgba(32, 42, 47, 0.1);
	border-radius: 8px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.055);
	overflow: hidden;
	padding: clamp(1rem, 2vw, 1.4rem);
}

.stonehouse-calendar .fc {
	font-family: Inter, "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.stonehouse-calendar .fc-toolbar-title {
	color: #202a2f;
	font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
	font-size: clamp(1.4rem, 2.3vw, 2rem);
	font-weight: 700;
}

.stonehouse-calendar .fc-button {
	background: transparent;
	border: 1px solid rgba(32, 42, 47, 0.16);
	border-radius: 5px;
	color: #202a2f;
	font-weight: 800;
	text-transform: none;
}

.stonehouse-calendar .fc-button-primary:not(:disabled):hover,
.stonehouse-calendar .fc-button-primary:not(:disabled).fc-button-active {
	background: #48694c;
	border-color: #48694c;
	color: #ffffff;
}

.stonehouse-calendar .fc-col-header-cell-cushion {
	color: #48694c;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
}

.stonehouse-calendar .fc-daygrid-day-number {
	color: #202a2f;
	font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
}

.stonehouse-calendar .fc-day-today {
	background: rgba(72, 105, 76, 0.08) !important;
	box-shadow: inset 0 3px 0 #48694c;
}

.stonehouse-calendar .fc-event {
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.25;
	padding: 0.2rem 0.35rem;
}

.stonehouse-calendar .stonehouse-fc-event-community {
	background: rgba(72, 105, 76, 0.12);
	border-left: 3px solid #48694c;
	color: #202a2f;
}

.stonehouse-calendar .stonehouse-fc-event-holiday {
	background: rgba(138, 136, 128, 0.16);
	border-left: 3px solid #8a8880;
	color: #4f5552;
}

.stonehouse-calendar .stonehouse-calendar-rsvp-badge {
	background: #48694c;
	border-radius: 999px;
	color: #ffffff;
	display: inline-block;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin-left: 0.35rem;
	padding: 0.08rem 0.35rem;
	text-transform: uppercase;
}

.stonehouse-calendar .fc-list {
	border-color: rgba(32, 42, 47, 0.1);
}

.stonehouse-calendar .fc-list-day-cushion {
	background: #f4f6f3 !important;
	color: #202a2f;
}

.stonehouse-calendar-modal {
	align-items: center;
	background: rgba(32, 42, 47, 0.56);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 1rem;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100000;
}

.stonehouse-calendar-modal[hidden] {
	display: none;
}

.stonehouse-calendar-modal__panel {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
	max-height: min(90vh, 760px);
	max-width: 620px;
	overflow: auto;
	padding: clamp(1.25rem, 3vw, 2rem);
	position: relative;
	width: min(100%, 620px);
}

.stonehouse-calendar-modal__close {
	align-items: center;
	background: #f4f6f3;
	border: 0;
	border-radius: 999px;
	color: #202a2f;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.4rem;
	height: 2rem;
	justify-content: center;
	position: absolute;
	right: 1rem;
	top: 1rem;
	width: 2rem;
}

.stonehouse-calendar-modal__type {
	color: #48694c;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	margin: 0 2.5rem 0.55rem 0;
	text-transform: uppercase;
}

.stonehouse-calendar-modal h2 {
	color: #202a2f;
	font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	line-height: 1.08;
	margin: 0 2.5rem 0.8rem 0;
}

.stonehouse-calendar-modal__time,
.stonehouse-calendar-modal__location,
.stonehouse-calendar-modal__description {
	color: #66716d;
	line-height: 1.55;
}

.stonehouse-calendar-modal__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.stonehouse-calendar-modal__details,
.stonehouse-calendar-modal__add {
	border-radius: 5px;
	display: inline-block;
	font-weight: 800;
	text-decoration: none;
}

.stonehouse-calendar-modal__details {
	background: #48694c;
	color: #ffffff;
	padding: 0.72rem 1rem;
}

.stonehouse-calendar-modal__details:hover,
.stonehouse-calendar-modal__details:focus {
	background: #2e4a31;
	color: #ffffff;
}

.stonehouse-calendar-modal__add {
	background: #f4f6f3;
	color: #48694c;
	padding: 0.72rem 1rem;
}

.stonehouse-calendar-modal__add:hover,
.stonehouse-calendar-modal__add:focus {
	background: #e8eee7;
	color: #2e4a31;
}

.stonehouse-calendar-rsvp {
	background: #f4f6f3;
	border: 1px solid rgba(32, 42, 47, 0.1);
	border-radius: 8px;
	display: grid;
	gap: 0.8rem;
	margin-top: 1rem;
	padding: 1rem;
}

.stonehouse-calendar-rsvp[hidden] {
	display: none;
}

.stonehouse-calendar-rsvp h3 {
	font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
	margin: 0;
}

.stonehouse-calendar-rsvp label {
	color: #202a2f;
	display: grid;
	font-weight: 700;
	gap: 0.35rem;
}

.stonehouse-calendar-rsvp input,
.stonehouse-calendar-rsvp textarea {
	border: 1px solid rgba(32, 42, 47, 0.16);
	border-radius: 5px;
	font: inherit;
	padding: 0.7rem 0.8rem;
}

.stonehouse-calendar-rsvp button {
	background: #48694c;
	border: 0;
	border-radius: 5px;
	color: #ffffff;
	cursor: pointer;
	font-weight: 800;
	padding: 0.8rem 1rem;
}

.stonehouse-calendar-rsvp__message {
	color: #48694c;
	font-weight: 700;
	margin: 0;
}

.stonehouse-event-details-panel {
	background: #ffffff;
	border: 1px solid rgba(32, 42, 47, 0.1);
	border-radius: 8px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.055);
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)) auto;
	margin: 0 auto 2rem;
	max-width: 860px;
	overflow: hidden;
}

.stonehouse-event-details-panel div,
.stonehouse-event-details-panel a {
	background: #ffffff;
	padding: 1rem 1.1rem;
}

.stonehouse-event-details-panel span {
	color: #48694c;
	display: block;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	margin-bottom: 0.25rem;
	text-transform: uppercase;
}

.stonehouse-event-details-panel strong {
	color: #202a2f;
	font-size: 0.95rem;
	line-height: 1.35;
}

.stonehouse-event-details-panel a {
	align-items: center;
	background: #48694c;
	color: #ffffff;
	display: flex;
	font-weight: 800;
	justify-content: center;
	text-decoration: none;
}

@media (max-width: 720px) {
	.stonehouse-calendar-shell {
		padding-inline: 1.25rem;
	}

	.stonehouse-calendar-toolbar {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.6rem;
	}

	.stonehouse-calendar {
		padding: 0.8rem;
	}

	.stonehouse-calendar .fc-header-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 0.75rem;
	}

	.stonehouse-calendar .fc-toolbar-chunk {
		display: flex;
		justify-content: space-between;
	}

	.stonehouse-event-details-panel {
		grid-template-columns: 1fr;
	}
}
