/* =========================================================================
   Activity Calendar — front-end styles
   ========================================================================= */

.acal-frame {
	--acal-ink: #2b2b2b;
	--acal-line: #b9b9b9;
	--acal-leaf: #4f8f5a;
	--acal-flower: #e0559b;
	--acal-green: #cfe8b6;
	--acal-yellow: #ffe9a3;
	--acal-orange: #f7cfa0;
	--acal-pink: #f6c9cb;
	--acal-blue: #bcd6ee;
	--acal-purple: #DAD2E9;
	--acal-dark_green: #01FE02;

	max-width: 1200px;
	margin: 2rem auto;
	padding: 30px;
	box-sizing: border-box;
	/*	background:
		radial-gradient(circle at 6% 4%,   var(--acal-flower) 0 14px, transparent 15px),
		radial-gradient(circle at 16% 3%,  var(--acal-leaf)   0 12px, transparent 13px),
		radial-gradient(circle at 94% 5%,  var(--acal-flower) 0 14px, transparent 15px),
		radial-gradient(circle at 84% 3%,  var(--acal-leaf)   0 12px, transparent 13px),
		radial-gradient(circle at 4% 96%,  var(--acal-leaf)   0 13px, transparent 14px),
		radial-gradient(circle at 96% 95%, var(--acal-flower) 0 14px, transparent 15px),
		linear-gradient(135deg, #ffd98a 0%, #ffb47a 35%, #f79fb8 70%, #b6e0a0 100%);*/
	background: #FFFDF5;
	border-radius: 6px;
}

.acal-ev--green {
	background: #cfe8b6;
}

.acal-ev--yellow {
	background: #ffe9a3;
}

.acal-ev--orange {
	background: #f7cfa0;
}

.acal-ev--pink {
	background: #f6c9cb;
}

.acal-ev--blue {
	background: #bcd6ee;
}

.acal-ev--purple {
	background: #DAD2E9;
}

.acal-ev--dark_green {
	background: #01FE02;
}

.acal-modal__close {
	background: unset ! IMPORTANT;
	border: unset ! IMPORTANT;
	font-size: 20px ! IMPORTANT;
	font-weight: 400 !IMPORTANT;
	display: flex ! IMPORTANT;
	justify-content: center !important;
	align-items: center !important;
	line-height: 20px !important;
	padding: 0 !important;
}

/*.acal-modal__close:hover{
    background:unset!important;
    color:var(--acal-yellow)!important;
}*/
.acal-frame--custom {
	background-size: 100% 100% !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}

.acal-inner {
	background: #fff;
	border: 1px solid var(--acal-line);
	padding: 14px 18px 10px;
	box-sizing: border-box;
}

.acal-month {
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(2rem, 6vw, 4.4rem);
	letter-spacing: .5px;
	margin: 6px 0 14px;
	color: var(--acal-ink);
}

/* ---- Grid ---- */
.acal-grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.acal-grid th {
	font-family: Georgia, serif;
	font-weight: 400;
	font-size: .95rem;
	text-align: left;
	padding: 4px 6px;
	border: 1px solid var(--acal-line);
	background: #fafafa;
}

.acal-grid td {
	border: 1px solid var(--acal-line);
	vertical-align: top;
	height: 118px;
	width: 14.28%;
	padding: 3px 0px 4px;
	position: relative;
	overflow: hidden;
}

.acal-ev {
	font-size: 15px !important;
	line-height: 20px !important;
	border-top: 1px solid #e5e5e5 !important;
	padding: 4px 3px !important;
	/*    margin: 5px 0!important;*/
}

.calendar-time-content {
	display: flex;
}

.acal-empty {
	background: #fbfbfb;
}

.acal-wd-abbr {
	display: none;
}

.acal-date {
	position: absolute;
	top: 2px;
	right: 5px;
	font-family: Georgia, serif;
	font-size: 1.05rem;
	color: #000;
	line-height: 1;
	font-weight: 600;
}

.acal-dot {
	display: none;
}

/* only shown on mobile */

/* ---- Events ---- */
.acal-events {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.acal-ev {
	font-size: .72rem;
	line-height: 1.2;
	margin: 0 0 2px;
	padding: 1px 3px;
	border-radius: 2px;
	word-wrap: break-word;
}

.acal-ev.has-desc {
	cursor: pointer;
}

.acal-ev.has-desc:hover {
	outline: 1px solid rgba(0, 0, 0, .25);
}

.acal-ev-time {
	font-weight: 700;
}

.acal-ev-loc {
	font-weight: 700;
}

.acal-ev-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-top: 3px;
	border-radius: 2px;
}

.acal-ev-desc {
	display: none;
}

/* raw HTML store for the popup; never shown inline */



/* ---- Past / today states ---- */
.acal-day.is-past .acal-date {
	opacity: .45;
}

.acal-day.is-past {
	background: #fafafa;
}

.acal-ev--past {
	opacity: .5;
}

.acal-ev--past:hover,
.acal-ev--past:focus-visible {
	opacity: .85;
}

/* readable on interaction */

.acal-ev-tag {
	display: inline-block;
	font-size: .6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b6b6b;
	background: rgba(0, 0, 0, .06);
	border-radius: 3px;
	padding: 0 4px;
	margin-left: 2px;
	vertical-align: middle;
}

.acal-day.is-today {
	box-shadow: inset 0 0 0 1px var(--acal-flower);
	padding: 3px;
}

.acal-day.is-today .acal-date {
	font-weight: 700;
	color: var(--acal-flower);
}

/* ---- Footer ---- */
.acal-footer {
	display: flex;
	/*	justify-content: space-between; */
	justify-content: start;
	/*	gap: 16px; */
	gap: 4px;
	flex-wrap: wrap;
	/*	background: #dff0cf;*/
	/*	border: 1px solid var(--acal-line);*/
	border-top: none;
	padding: 6px 10px;
	margin-top: -1px;
	padding: 0 !important;
}

p.acal-disclaimer {
	font-weight: 700 !important;
	font-size: 16px !important;
	margin: 0 !important;
	text-align: left;
}

.acal-footer p {
	font-size: 16px !important;
	line-height: 24px !important;
	font-weight: 700 !important;
}

.acal-key,
.acal-bus {
	margin: 0;
	font-size: .8rem;
	font-weight: 600;
	color: #234;
}

.acal-disclaimer {
	text-align: center;
	font-weight: 700;
	font-size: .85rem;
	margin: 8px 0 2px;
	color: var(--acal-ink);
}

/* =========================================================================
   Modal / popup
   ========================================================================= */
.acal-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

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

.acal-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
}

.acal-modal__box {
	position: relative;
	max-width: 440px;
	width: calc(100% - 40px);
	margin: 12vh auto 0;
	background: #fff;
	border-radius: 8px;
	padding: 22px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	font-family: inherit;
}

.acal-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.acal-modal__close:hover {
	color: #000;
}

.acal-m-title {
	font-family: Georgia, serif;
	font-size: 1.35rem !important;
	margin: 0 24px 6px 0;
	color: var(--acal-ink);
	line-height: 100% !important;
}

.acal-m-meta {
	font-size: .9rem;
	color: #555;
	margin: 0 0 10px;
}

.acal-m-time {
	font-weight: 700;
}

.acal-m-img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 0 0 10px;
}

.acal-m-desc {
	font-size: .95rem;
	line-height: 1.5;
	color: #333;
	margin: 0;
}

.acal-m-desc p {
	margin: 0 0 .6em;
}

.acal-m-desc p:last-child {
	margin-bottom: 0;
}

.acal-m-desc ul,
.acal-m-desc ol {
	margin: 0 0 .6em 1.2em;
	padding: 0;
}

.acal-m-desc li {
	margin: 0 0 .2em;
}

.acal-m-desc a {
	color: #2b5fd0;
	text-decoration: underline;
}

.acal-m-desc strong {
	font-weight: 700;
}

.acal-m-desc--empty {
	color: #999;
	font-style: italic;
}

.acal-m-past {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	color: #8a6d3b;
	background: #fcf3d9;
	border-radius: 4px;
	padding: 3px 8px;
	margin: 0 0 10px;
}

.acal-m-item--past {
	opacity: .55;
}

.acal-m-tag {
	font-size: .62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b6b6b;
	background: rgba(0, 0, 0, .07);
	border-radius: 3px;
	padding: 0 4px;
	margin-left: auto;
}

tr,
tr td {
	background: #fff !important;
}

select.acal-c-loc {
	display: none;
}

.acal-m-list {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.acal-m-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 6px;
	border-bottom: 1px solid #eee;
	font-size: .95rem;
}

.acal-m-item:last-child {
	border-bottom: 0;
}

.acal-m-item--clickable {
	cursor: pointer;
}

.acal-m-item--clickable:hover {
	background: #f6f6f6;
}

.acal-m-item-time {
	font-weight: 700;
	min-width: 46px;
}

.acal-m-item-loc {
	font-weight: 700;
	color: #567;
}

.acal-m-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 auto;
	display: inline-block;
	border: 1px solid rgba(0, 0, 0, .15);
}



/* =========================================================================
   Mobile: keep the grid, show dots, tap a date for the day popup
   ========================================================================= */
@media (max-width: 1000px) {
	.calendar-time-content {
		flex-wrap: wrap;
	}
}

@media (max-width: 720px) {

	p.acal-disclaimer {
		font-size: 15px !important;
	}

	.acal-footer p {
		font-size: 15px !important;
		line-height: 23px !important;
	}

	.acal-frame {
		padding: 12px;
	}

	.acal-inner {
		padding: 10px;
	}

	.acal-wd-full {
		display: none;
	}

	.acal-wd-abbr {
		display: inline;
	}

	.acal-grid th {
		text-align: center;
		font-size: .75rem;
		padding: 3px 0;
	}

	.acal-grid td {
		height: 46px;
		padding: 2px;
		text-align: center;
	}

	.acal-events {
		display: none;
	}

	/* hide the text — data still read by JS */
	.acal-ev-img {
		display: none;
	}

	.acal-date {
		position: static;
		font-size: .85rem;
	}

	.acal-day.has-events {
		cursor: pointer;
	}

	.acal-dot {
		display: block;
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: var(--acal-blue);
		margin: 3px auto 0;
	}

	.acal-day.has-events:active {
		background: #fff7e6;
	}

	.acal-day.is-past .acal-dot {
		opacity: .4;
	}

	.acal-footer {
		flex-direction: column;
		gap: 4px;
	}

	.acal-modal__box {
		margin-top: 8vh;
	}

	.acal-m-item .acal-m-dot {
		display: none;
	}

	.acal-dot {
		display: block;
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: #A3A737;
		margin: 3px auto 0;
	}
}


/* Respect reduced motion / no transitions needed, but keep focus visible */
.acal-ev:focus-visible,
.acal-day:focus-visible {
	outline: 2px solid #3858c8;
	outline-offset: 1px;
}