/* Parish Mass Times — tap a day, see its times.
   A line with the next Mass, a bar per day (a <details>), a line pointing to the newsletter.
   On the maroon home page closed days are plain rows divided by thin lines; on cream pages they are white
   bars. An open day is a cream box (maroon page) or a white box edged in maroon (cream pages).
   Fonts are the theme's (Lora), labels in Public Sans. Church dot colours: Stamford af2323, Oakham 1f5c3a,
   Exton 4b2a6a, as in the site's banners. */
.pmt {
	--pmt-cream: #faf7f2;
	--pmt-maroon: #600000;
	--pmt-ink: #1f1f1f;
	--pmt-sans: "Public Sans", system-ui, -apple-system, sans-serif;
	--pmt-bar: rgba(255, 255, 255, 0.08);
	--pmt-bar-hover: rgba(255, 255, 255, 0.13);
	--pmt-soft: rgba(255, 255, 255, 0.72);
	max-width: 720px;
	margin: 0 auto;
	color: #fff;
	text-align: left;
	container-type: inline-size;
	container-name: pmt;
}
.pmt.pmt-light {
	--pmt-bar: #fff;
	--pmt-bar-hover: #fff;
	--pmt-soft: rgba(31, 31, 31, 0.62);
	color: var(--pmt-ink);
}
.pmt *,
.pmt *::before,
.pmt *::after {
	box-sizing: border-box;
}
.pmt p {
	margin: 0;
	padding: 0;
}
.pmt a {
	text-decoration: none;
}

/* the live dot */
.pmt .pmt-pulse {
	position: relative;
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-radius: 50%;
	background: #2f9a5c;
	vertical-align: 1px;
}
.pmt .pmt-pulse::after {
	content: "";
	position: absolute;
	inset: -5px;
	border: 2px solid #2f9a5c;
	border-radius: 50%;
	opacity: 0;
	animation: pmt-pulse 2.2s ease-out infinite;
}
@keyframes pmt-pulse {
	0% {
		transform: scale(0.5);
		opacity: 0.8;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

/* next Mass: one plain line */
.pmt .pmt-line {
	min-height: 1.5em;
	margin: 0 0 26px;
	font-family: var(--pmt-sans);
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
	color: var(--pmt-soft);
}
.pmt .pmt-line strong {
	font-weight: 600;
	color: #fff;
}
.pmt.pmt-light .pmt-line strong {
	color: var(--pmt-ink);
}
.pmt .pmt-line a,
.pmt .pmt-line a:visited {
	margin-left: 8px;
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* the days */
.pmt .pmt-days {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pmt .pmt-day-bar {
	margin: 0;
	border-radius: 16px;
	background: var(--pmt-bar);
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.pmt.pmt-light .pmt-day-bar {
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(60, 20, 10, 0.04);
}
.pmt .pmt-day-bar > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 12px 24px;
	list-style: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.pmt .pmt-day-bar > summary::-webkit-details-marker,
.pmt .pmt-day-bar > summary::marker {
	display: none;
	content: none;
}
.pmt .pmt-day-bar > summary:hover {
	border-radius: 16px;
	background: var(--pmt-bar-hover);
}
.pmt .pmt-day-bar > summary:focus-visible {
	border-radius: 16px;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.pmt .pmt-day-label {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}
.pmt .pmt-day-tag {
	padding: 5px 10px;
	border-radius: 200px;
	background: var(--pmt-cream);
	color: var(--pmt-maroon);
	font-family: var(--pmt-sans);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.pmt .pmt-day-tag:empty {
	display: none;
}
.pmt.pmt-light .pmt-day-tag {
	background: var(--pmt-maroon);
	color: #fff;
}
.pmt .pmt-chevron {
	width: 11px;
	height: 11px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	opacity: 0.7;
	transform: translateY(-3px) rotate(45deg);
	transition: transform 0.25s ease;
}
.pmt .pmt-day-bar[open] .pmt-chevron {
	transform: translateY(3px) rotate(-135deg);
}

/* an open day: a cream box on the maroon home page, a white box edged in maroon on cream pages */
.pmt .pmt-day-bar[open] {
	background: var(--pmt-cream);
	color: var(--pmt-ink);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.pmt.pmt-light .pmt-day-bar[open] {
	background: #fff;
	box-shadow: 0 0 0 2px var(--pmt-maroon), 0 14px 34px rgba(60, 20, 10, 0.12);
}
.pmt .pmt-day-bar[open] > summary:hover {
	background: transparent;
}
.pmt .pmt-day-bar[open] .pmt-day-label {
	color: var(--pmt-maroon);
}
.pmt .pmt-day-bar[open] .pmt-day-tag {
	background: var(--pmt-maroon);
	color: #fff;
}

/* maroon home page: closed days are plain rows divided by lines, as in the original toggles */
.pmt:not(.pmt-light) .pmt-days {
	gap: 0;
}
.pmt:not(.pmt-light) .pmt-day-bar {
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 0;
	background: transparent;
}
.pmt:not(.pmt-light) .pmt-day-bar > summary:hover {
	border-radius: 0;
	background: rgba(255, 255, 255, 0.05);
}
.pmt:not(.pmt-light) .pmt-day-bar[open] {
	margin: 12px 0;
	border-bottom-color: transparent;
	border-radius: 16px;
	background: var(--pmt-cream);
}
.pmt:not(.pmt-light) .pmt-day-bar[open] > summary:hover {
	background: transparent;
}

/* the services inside a day */
.pmt ul.pmt-svcs {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 2px 24px 24px;
	list-style: none;
	animation: pmt-open 0.25s ease;
}
@keyframes pmt-open {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.pmt .pmt-svc {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	align-items: baseline;
	gap: 3px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--pmt-ink);
	transition: opacity 0.3s ease;
}
.pmt .pmt-svc::marker {
	content: none;
}
.pmt .pmt-svc-time {
	font-family: var(--pmt-sans);
	font-size: 18px;
	font-weight: 700;
	color: var(--pmt-maroon);
	white-space: nowrap;
}
.pmt .pmt-svc-what {
	font-size: 18px;
	line-height: 1.35;
}
.pmt .pmt-svc-mass .pmt-svc-what {
	font-weight: 600;
}
.pmt .pmt-svc-where {
	display: flex;
	grid-column: 2;
	align-items: center;
	gap: 8px;
	font-family: var(--pmt-sans);
	font-size: 14px;
	color: rgba(31, 31, 31, 0.68);
}
.pmt .pmt-svc-where i,
.pmt .pmt-place-name i {
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--pmt-c);
}
.pmt .pmt-svc.pmt-past {
	opacity: 0.45;
}

/* the churches (Mass Times page) */
.pmt ul.pmt-places {
	display: grid;
	gap: 18px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}
.pmt .pmt-places li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pmt .pmt-places li::marker {
	content: none;
}
.pmt .pmt-place-name {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 18px;
	font-weight: 600;
}
.pmt .pmt-place-name a,
.pmt .pmt-place-addr a {
	color: inherit;
}
.pmt .pmt-place-addr {
	grid-column: 1;
	padding-left: 18px;
	font-family: var(--pmt-sans);
	font-size: 14px;
	color: var(--pmt-soft);
}
.pmt .pmt-place-dir,
.pmt .pmt-place-dir:visited {
	grid-row: 1 / span 2;
	grid-column: 2;
	align-self: center;
	color: inherit;
	font-family: var(--pmt-sans);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* the newsletter line: "Any changes to Mass times are in the newsletter" */
.pmt .pmt-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 22px;
	margin-top: 26px;
	text-align: center;
}
.pmt .pnl-notice-line,
.pmt .pmt-notice-line {
	margin: 0;
	font-family: var(--pmt-sans);
	font-size: 15px;
	color: var(--pmt-soft);
}
.pmt .pnl-notice-line a,
.pmt .pnl-notice-line a:visited,
.pmt .pmt-notice-line a,
.pmt .pmt-notice-line a:visited,
.pmt .pmt-note-more,
.pmt .pmt-note-more:visited {
	color: inherit;
	font-family: var(--pmt-sans);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.pmt.pmt-light .pnl-notice-line a,
.pmt.pmt-light .pmt-notice-line a,
.pmt.pmt-light .pmt-note-more {
	color: var(--pmt-ink);
}
.pmt:not(.pmt-light) .pnl-notice-line a,
.pmt:not(.pmt-light) .pmt-notice-line a,
.pmt:not(.pmt-light) .pmt-note-more {
	color: #fff;
}

.pmt .pmt-admin-note,
.pmt-admin-note {
	margin-top: 16px;
	color: #c33;
	font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
	.pmt .pmt-pulse::after,
	.pmt ul.pmt-svcs {
		animation: none;
	}
}

/* phones (by the section's own width) */
@container pmt (max-width: 460px) {
	.pmt .pmt-line {
		font-size: 15px;
	}
	.pmt .pmt-day-bar > summary {
		min-height: 60px;
		padding: 10px 20px;
	}
	.pmt ul.pmt-svcs {
		padding: 2px 20px 22px;
	}
	.pmt .pmt-svc {
		grid-template-columns: 92px minmax(0, 1fr);
		column-gap: 10px;
	}
	.pmt .pmt-svc-time,
	.pmt .pmt-svc-what {
		font-size: 17px;
	}
	.pmt .pmt-places li {
		grid-template-columns: minmax(0, 1fr);
	}
	.pmt .pmt-place-dir {
		grid-row: auto;
		grid-column: 1;
		padding-left: 18px;
	}
}
