/* metta-shows: add to calendar (3.7.0).
 * The line under the ticket button on event pages, and the subscribe panel
 * on /events/. Tokens come from the child theme (:root --m-*); the
 * fallbacks keep it readable if the theme changes. */

.m-cal { margin-top: 1rem; }

/* .m-cal / .m-cal-sub + .m-mono: the theme's .m-event-info .m-mono { display: block }
 * loads later at the same weight, so the line needs one more class to stay flex. */
.m-cal-line,
.m-cal .m-cal-line.m-mono,
.m-cal-sub .m-cal-line.m-mono {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: .5rem;
	margin: 0;
	color: var(--m-muted, #8b93a5);
}
.m-cal-label { margin-right: .25rem; }
.m-cal-sep { color: var(--m-muted, #8b93a5); }

/* 44px tap targets without making the line look tall. */
.m-cal-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--m-sand, #ede7dc);
	text-decoration: underline;
	text-decoration-color: rgba(237, 231, 220, .3);
	text-underline-offset: 4px;
	transition: color .2s, text-decoration-color .2s;
}
.m-cal-link:hover,
.m-cal-link:focus-visible {
	color: var(--m-coral, #ff6b52);
	text-decoration-color: currentColor;
}
.m-cal-more { margin: 0; }
.m-cal-link-quiet,
.m-cal-more .m-cal-link { color: var(--m-muted, #8b93a5); }
.m-cal-more .m-cal-link:hover,
.m-cal-more .m-cal-link:focus-visible { color: var(--m-coral, #ff6b52); }

.m-cal-hint {
	margin: .25rem 0 0;
	font-size: .9rem;
	line-height: 1.5;
	color: var(--m-muted, #8b93a5);
}
.m-cal-hint[hidden] { display: none; }

/* ---- /events/ subscribe panel ---- */
.m-cal-sub {
	max-width: 640px;
	margin: 0 0 2.5rem;
	border: 1px solid var(--m-line, rgba(237, 231, 220, .12));
	border-radius: 14px;
	background: var(--m-surface, #111624);
	scroll-margin-top: 6rem;
}
.m-cal-sub > summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 52px;
	padding: .75rem 1.25rem;
	cursor: pointer;
	color: var(--m-sand, #ede7dc);
	transition: color .2s;
}
.m-cal-sub > summary::-webkit-details-marker { display: none; }
.m-cal-sub > summary::after {
	content: "+";
	font-size: 1.15rem;
	line-height: 1;
	color: var(--m-coral, #ff6b52);
}
.m-cal-sub[open] > summary::after { content: "\2212"; }
.m-cal-sub > summary:hover { color: var(--m-coral, #ff6b52); }
.m-cal-sub-body { padding: 0 1.25rem 1rem; }
.m-cal-sub-copy {
	margin: 0 0 .25rem;
	color: var(--m-muted, #8b93a5);
	font-size: 1rem;
	line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
	.m-cal-link, .m-cal-sub > summary { transition: none; }
}
