/* PixelGR Events. Colors follow the theme through custom properties. */
.pgre {
	--pgre-accent: var(--pxgr-color-primary, var(--pgr-color-primary, #2e7d32));
	--pgre-ink: var(--pxgr-color-text, #1d1d1d);
	--pgre-muted: #5f6368;
	--pgre-line: #dcdcdc;
	--pgre-soft: #f5f7f5;
	--pgre-cat: var(--pgre-accent);
	margin: 0 0 32px;
	color: var(--pgre-ink);
}

.pgre-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* View switcher */
.pgre-views {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 20px;
}

.pgre-view {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--pgre-line);
	border-radius: 999px;
	color: var(--pgre-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.pgre-view:hover,
.pgre-view:focus-visible,
.pgre-view.is-current {
	border-color: var(--pgre-accent);
	background: var(--pgre-accent);
	color: #fff;
}

/* Month and year navigation */
.pgre-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
}

.pgre-nav-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
	text-align: center;
}

.pgre-nav-prev,
.pgre-nav-next {
	color: var(--pgre-accent);
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	white-space: nowrap;
}

.pgre-nav-next {
	justify-self: end;
}

.pgre-nav-prev:hover,
.pgre-nav-next:hover {
	text-decoration: underline;
}

/* Month grid */
.pgre-grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	margin: 0;
}

.pgre-grid th {
	padding: 10px 4px;
	background: var(--pgre-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	border: 1px solid var(--pgre-accent);
}

.pgre-grid th abbr {
	text-decoration: none;
	border: 0;
}

.pgre-day {
	height: 110px;
	padding: 6px;
	vertical-align: top;
	border: 1px solid var(--pgre-line);
	background: #fff;
}

.pgre-day.is-other {
	background: var(--pgre-soft);
}

.pgre-day.is-other .pgre-daynum {
	color: var(--pgre-muted);
}

.pgre-day.is-today {
	box-shadow: inset 0 0 0 2px var(--pgre-accent);
}

.pgre-daynum {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
}

.pgre-dayname {
	display: none;
}

.pgre-day-events,
.pgre-compact,
.pgre-cards {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgre-day-events li {
	margin: 0 0 4px;
}

.pgre-chip {
	display: block;
	padding: 4px 6px;
	border-left: 4px solid var(--pgre-cat);
	border-radius: 3px;
	background: var(--pgre-soft);
	color: var(--pgre-ink);
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.pgre-chip:hover,
.pgre-chip:focus-visible {
	background: var(--pgre-cat);
	color: #fff;
}

.pgre-chip-time {
	font-weight: 600;
}

.pgre-empty {
	margin: 16px 0 0;
	color: var(--pgre-muted);
	text-align: center;
}

/* Upcoming list */
.pgre-date-head {
	margin: 24px 0 10px;
	padding: 0 0 6px;
	border-bottom: 2px solid var(--pgre-accent);
	font-size: 18px;
}

.pgre-cards li {
	margin: 0 0 14px;
}

.pgre-card {
	display: flex;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--pgre-line);
	border-left: 4px solid var(--pgre-cat);
	border-radius: 6px;
	background: #fff;
}

.pgre-card-media {
	flex: 0 0 160px;
}

.pgre-card-media img {
	display: block;
	width: 160px;
	height: auto;
	border-radius: 4px;
}

.pgre-card-body {
	flex: 1 1 auto;
	min-width: 0;
}

.pgre-card-title {
	margin: 0 0 4px;
	font-size: 18px;
}

.pgre-card-title a {
	color: var(--pgre-ink);
	text-decoration: none;
}

.pgre-card-title a:hover {
	color: var(--pgre-accent);
}

.pgre-card-when,
.pgre-card-cat {
	margin: 0 0 6px;
	color: var(--pgre-muted);
	font-size: 14px;
}

.pgre-card-excerpt {
	margin: 0 0 10px;
}

/* Buttons */
.pgre-cta-wrap,
.pgre-ics-wrap {
	margin: 0;
}

.pgre-cta {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 4px;
	background: var(--pgre-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.pgre-cta:hover,
.pgre-cta:focus-visible {
	filter: brightness(0.9);
	color: #fff;
}

.pgre-ics {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid var(--pgre-accent);
	border-radius: 4px;
	color: var(--pgre-accent);
	font-weight: 600;
	text-decoration: none;
}

.pgre-ics:hover,
.pgre-ics:focus-visible {
	background: var(--pgre-accent);
	color: #fff;
}

/* Year view */
.pgre-year-month h3 {
	margin: 24px 0 8px;
	font-size: 20px;
}

.pgre-compact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 6px;
}

.pgre-compact-date {
	flex: 0 0 64px;
	padding: 4px 0;
	font-weight: 600;
	font-size: 14px;
}

.pgre-compact .pgre-chip {
	flex: 1 1 auto;
}

/* Single event */
.pgre-single {
	--pgre-accent: var(--pxgr-color-primary, var(--pgr-color-primary, #2e7d32));
	margin: 0 0 24px;
	padding: 20px;
	border: 1px solid #dcdcdc;
	border-left: 4px solid var(--pgre-accent);
	border-radius: 6px;
	background: #f5f7f5;
}

.pgre-single p {
	margin: 0 0 8px;
}

.pgre-single-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
}

.pgre-single .pgre-cta,
.pgre-single .pgre-ics {
	--pgre-accent: var(--pxgr-color-primary, var(--pgr-color-primary, #2e7d32));
}

.pgre-repeat-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 16px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid #dcdcdc;
}

.pgre-repeat-next {
	margin-left: auto;
}

.pgre-single-image {
	margin: 0 0 24px;
}

.pgre-single-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.pgre-back {
	margin: 24px 0 0;
}

.pgre a:focus-visible,
.pgre-single a:focus-visible,
.pgre-back a:focus-visible {
	outline: 2px solid var(--pgre-accent, #2e7d32);
	outline-offset: 2px;
}

/* Phones: the grid becomes a list of days that have events. */
@media (max-width: 700px) {
	.pgre-grid,
	.pgre-grid tbody,
	.pgre-grid tr,
	.pgre-grid td {
		display: block;
		width: 100%;
	}

	.pgre-grid thead,
	.pgre-day:not(.has-events) {
		display: none;
	}

	.pgre-day {
		height: auto;
		margin: 0 0 8px;
		border-radius: 6px;
	}

	.pgre-day.is-other.has-events {
		background: #fff;
	}

	.pgre-dayname {
		display: inline;
	}

	.pgre-daynum {
		font-size: 15px;
	}

	.pgre-nav {

		grid-template-columns: auto 1fr auto;

		gap: 8px;

	}


	.pgre-nav-title {

		font-size: 18px;

	}


	.pgre-nav-prev,

	.pgre-nav-next {

		font-size: 15px;

	}

	.pgre-card {
		flex-direction: column;
	}

	.pgre-card-media,
	.pgre-card-media img {
		width: 100%;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.pgre-chip,
	.pgre-view,
	.pgre-cta,
	.pgre-ics {
		transition: background-color 0.15s ease, color 0.15s ease;
	}
}

/* Event page as site sections (PixelGR Base): hero, details and description,
   closing band. Sizes follow the site's page heroes and sections. */
.pgre-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--pgr-container, 1200px);
	margin: 0 auto;
	padding: 0 16px;
}

.pgre-hero {
	--pgre-accent: var(--pxgr-color-primary, var(--pgr-color-primary, #2e7d32));
	position: relative;
	display: flex;
	align-items: center;
	min-height: 380px;
	padding: 96px 0;
	background-color: #141414;
	background-position: center;
	background-size: cover;
	color: #fff;
	text-align: center;
}

.pgre-hero.has-image {
	background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), var(--pgre-hero-image);
}

.pgre-hero-title {
	margin: 0 0 12px;
	color: #fff;
	font-size: 52px;
	font-weight: 800;
	line-height: 1.1;
}

.pgre-hero-when {
	margin: 0 0 28px;
	color: #fff;
	font-size: 20px;
}

.pgre-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.pgre-hbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 16px 32px;
	border: 2px solid transparent;
	border-radius: var(--pxgr-radius-sm, var(--pgr-radius, 6px));
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s, filter 0.15s;
}

.pgre-hbtn--primary,
.pgre-hbtn--primary:visited {
	background: var(--pgre-accent);
	color: #fff;
}

.pgre-hbtn--primary:hover,
.pgre-hbtn--primary:focus-visible {
	filter: brightness(0.92);
	color: #fff;
}

.pgre-hbtn--outline,
.pgre-hbtn--outline:visited {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

.pgre-hbtn--outline:hover,
.pgre-hbtn--outline:focus-visible {
	background: #fff;
	color: #141414;
}

.pgre-hbtn:focus-visible,
.pgre-band-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.pgre-body {
	--pgre-accent: var(--pxgr-color-primary, var(--pgr-color-primary, #2e7d32));
	padding: 64px 0;
}

.pgre-body-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px;
	align-items: start;
}

.pgre-body-grid.is-details-only {
	grid-template-columns: minmax(0, 720px);
	justify-content: center;
}

.pgre-body-main > :first-child {
	margin-top: 0;
}

.pgre-body-text > :last-child {
	margin-bottom: 0;
}

.pgre-details {
	padding: 28px;
	border-top: 4px solid var(--pgre-accent);
	border-radius: var(--pxgr-radius-sm, var(--pgr-radius, 6px));
	background: #f4f6f3;
}

.pgre-details-title {
	margin: 0 0 16px;
	font-size: 24px;
}

.pgre-details-list {
	margin: 0;
}

.pgre-details-row {
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pgre-details-row:first-child {
	padding-top: 0;
}

.pgre-details-row dt {
	margin: 0 0 2px;
	font-weight: 700;
}

.pgre-details-row dd {
	margin: 0;
}

.pgre-details .pgre-repeat-nav,
.pgre-details .pgre-back {
	margin: 16px 0 0;
}

.pgre-band-wrap {
	padding: 0 0 64px;
}

.pgre-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 32px;
	background: var(--pxgr-color-primary, var(--pgr-color-primary, #2e7d32));
	color: #fff;
}

.pgre-band-heading {
	margin: 0;
	color: #fff;
}

.pgre-band-text p {
	margin: 12px 0 0;
}

.pgre-band-btn,
.pgre-band-btn:visited {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	min-height: 44px;
	padding: 12px 24px;
	border-radius: var(--pxgr-radius-sm, var(--pgr-radius, 6px));
	background: #fff;
	color: var(--pxgr-color-primary, var(--pgr-color-primary, #2e7d32));
	font-weight: 600;
	text-decoration: none;
}

.pgre-band-btn:hover {
	filter: brightness(0.92);
}

@media (max-width: 767px) {
	.pgre-hero {
		min-height: 300px;
		padding: 64px 0;
	}

	.pgre-hero-title {
		font-size: 34px;
	}

	.pgre-hero-when {
		font-size: 17px;
	}

	.pgre-hbtn {
		width: 100%;
	}

	.pgre-body {
		padding: 48px 0;
	}

	.pgre-body-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.pgre-details {
		padding: 20px;
	}

	.pgre-band {
		flex-direction: column;
		align-items: flex-start;
	}

	.pgre-band-wrap {
		padding-bottom: 48px;
	}
}
