.pmcal,
.pmcal * {
	box-sizing: border-box;
}

.pmcal {
	max-width: 1100px;
	margin: 2rem auto;
	font-family: Arial, Helvetica, sans-serif;
}

.pmcal-header h2 {
	margin: 0 0 1rem;
	font-size: 2rem;
	line-height: 1.1;
}

.pmcal-month {
	margin-bottom: 2rem;
}

.pmcal-month h3 {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pmcal-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.pmcal-table th {
	background: #155a74;
	color: #fff;
	padding: 0.8rem 0.4rem;
	text-align: center;
	text-transform: uppercase;
	font-size: 0.95rem;
}

.pmcal-table td {
	border: 1px solid #d6e4ea;
	height: 120px;
	vertical-align: top;
	padding: 0.5rem;
	background: #fff;
}

.pmcal-empty {
	background: #f8fbfc;
}

.pmcal-day-number {
	text-align: right;
	font-size: 1.6rem;
	line-height: 1;
	font-weight: 700;
	color: #555;
	margin-bottom: 0.5rem;
}

.pmcal-day-performances {
	display: block;
}

.pmcal-performance {
	display: block;
	position: relative;
	margin-top: 0.35rem;
	text-align: right;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: underline;
}

a.pmcal-performance {
	color: #155a74;
}

a.pmcal-performance:hover {
	text-decoration: underline;
}

.pmcal-not-on-sale,
.pmcal-sold-out {
	color: #777;
	opacity: 0.7;
}

.pmcal-note {
	display: block;
	font-size: 0.7rem;
	font-style: italic;
}

.pmcal-mobile-comma {
	display: none;
}

.pmcal-marker {
	display: inline-block;
	width: 0;
	height: 0;
	margin-right: 0.45rem;
	vertical-align: middle;
	color: var(--pmcal-marker-color, currentColor);
	border-top: 1rem solid currentColor;
	border-left: 1rem solid transparent;
}

.pmcal-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	margin-top: 1rem;
	margin-bottom: 4rem;
	font-size: 0.95rem;
}

.pmcal-legend-item {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.pmcal-legend .pmcal-marker {
	margin-right: 0.45rem;
}

@media (max-width: 700px) {
	.pmcal {
		width: 100%;
		max-width: 100%;
		margin: 1.5rem auto;
		padding-left: 0;
		padding-right: 0;
		overflow-x: hidden;
	}

	.pmcal-header h2 {
		font-size: 1.75rem;
	}

	.pmcal-month {
		margin-bottom: 1.5rem;
	}

	.pmcal-month h3 {
		font-size: 1.1rem;
	}

	.pmcal-table {
		display: block;
		width: 100%;
		max-width: 100%;
		border-collapse: separate;
		border-spacing: 0;
		table-layout: auto;
		overflow: hidden;
		position: relative;
	}

	.pmcal-table::after {
		content: "";
		display: block;
		width: 100%;
		border-bottom: 1px solid #d6e4ea;
	}

	.pmcal-table thead {
		display: none;
	}

	.pmcal-table tbody {
		display: block;
		width: 100%;
		box-sizing: border-box;
		border: 0;
	}

	.pmcal-table tr {
		display: contents;
	}

	.pmcal-table td {
		display: block;
		width: 100%;
		height: auto;
		min-height: 0;
		padding: 0;
		border: 0;
		background: transparent;
	}

	.pmcal-empty,
	.pmcal-no-events {
		display: none !important;
	}

	.pmcal-table td.pmcal-day {
		display: grid;
		grid-template-columns: 3rem minmax(0, 1fr);
		column-gap: 1rem;
		align-items: start;
		width: 100%;
		max-width: 100%;
		padding: 0.85rem 1rem;
		border: 1px solid #d6e4ea;
		border-bottom: 1px solid #d6e4ea;
		margin-bottom: -1px;
		background: #fff;
	}

	.pmcal-day-number {
		grid-column: 1;
		text-align: left;
		font-size: 1.4rem;
		line-height: 1;
		margin: 0;
	}

	.pmcal-day-performances {
		grid-column: 2;
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0;
	}

	.pmcal-performance {
		display: inline-flex;
		align-items: baseline;
		gap: 0.45rem;
		width: auto;
		text-align: left;
		margin: 0;
		font-size: 1rem;
		line-height: 1.25;
	}

	.pmcal-performance:not(.pmcal-has-marker)::before {
		content: "";
		display: inline-block;
		width: 0.8rem;
		height: 0.8rem;
		flex: 0 0 auto;
	}

	.pmcal-performance .pmcal-marker {
		flex: 0 0 auto;
		margin-right: 0;
		border-top-width: 0.8rem;
		border-left-width: 0.8rem;
	}

	.pmcal-time {
		display: inline;
	}

	.pmcal-mobile-comma {
		display: inline;
		margin-right: 0.45rem;
		color: #111;
	}

	.pmcal-note {
		display: inline;
		margin-left: 0.35rem;
	}

	.pmcal-legend {
		gap: 0.6rem 1rem;
		margin-top: 1rem;
		margin-bottom: 2.5rem;
		font-size: 0.9rem;
	}

	.pmcal-legend .pmcal-marker {
		border-top-width: 0.8rem;
		border-left-width: 0.8rem;
	}
}
