/*
 * Purple Pushpin — events without The Events Calendar: the facts block on a
 * single event, and the [pushpin_calendar] month grid. Colors come from the
 * --pp-* palette Core prints; the fallbacks keep it readable without it.
 */

/* The facts block -------------------------------------------------------- */

.pp-evfacts {
	margin: 0 0 32px;
	padding: 24px 28px;
	border-radius: 18px;
	background: var(--pp-warm, #f6f4f1);
	border: 1px solid var(--pp-line, #ece6dc);
}
.pp-evfacts__past {
	margin: 0 0 14px;
	font-weight: 700;
	color: var(--pp-main-text, #8a4b00);
}
.pp-evfacts__list {
	/*
	 * Each fact takes the room its words need and the row shares out the
	 * rest, so an email address sits on one line instead of being broken in
	 * half by an equal-width grid. Narrow screens stack them.
	 */
	display: flex;
	flex-wrap: wrap;
	gap: 20px 36px;
	margin: 0;
}
.pp-evfacts__list > div { flex: 1 1 auto; min-width: 120px; }
.pp-evfacts dt {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pp-main-text, #5a5a5a);
}
.pp-evfacts dd { margin: 0; line-height: 1.5; }
.pp-evfacts dd a,
.pp-evfacts__cal a { color: var(--pp-accent-text, inherit); font-weight: 700; }
.pp-evfacts__cal { margin: 18px 0 0; }
.pp-evfacts dd a[href^="mailto:"] { overflow-wrap: normal; word-break: normal; white-space: nowrap; }

/*
 * On a computer the facts run the full width of the page's container (the
 * same edges as the title band above), centered, rather than stopping at the
 * reading column. Nothing below 900px changes: there it is the column.
 */
@media (min-width: 900px) {
	.single-tribe_events .pp-evfacts { width: min(1132px, calc(100vw - 64px)); box-sizing: border-box; padding: 28px 36px; }
}
@media (max-width: 599px) {
	.pp-evfacts { padding: 20px; }
	.pp-evfacts__list { gap: 16px; }
	.pp-evfacts__list > div { flex-basis: 100%; }
	.pp-evfacts dd a[href^="mailto:"] { white-space: normal; overflow-wrap: anywhere; }
}

/* The month grid --------------------------------------------------------- */

.pp-cal { margin: 0 0 24px; }
.pp-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
}
.pp-cal__title { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; text-align: center; }
.pp-cal__nav {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 2px solid var(--pp-line, #e2ddd5);
	color: inherit;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.pp-cal__nav:hover { border-color: var(--pp-accent, currentColor); color: inherit; }

.pp-cal__grid {
	border: 1px solid var(--pp-line, #e2ddd5);
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
}
.pp-cal__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pp-cal__row + .pp-cal__row { border-top: 1px solid var(--pp-line, #e2ddd5); }
.pp-cal__dow {
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	background: var(--pp-dark, #2e2e2e);
	color: var(--pp-dark-on, #fff);
}
.pp-cal__day {
	min-height: 118px;
	padding: 8px 10px 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.pp-cal__day + .pp-cal__day { border-left: 1px solid var(--pp-line, #e2ddd5); }
.pp-cal__day--out { background: var(--pp-warm, #faf8f5); }
.pp-cal__num { font-size: 14px; font-weight: 700; color: #5a5a5a; }
.pp-cal__day.is-today .pp-cal__num {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--pp-main, #333);
	color: var(--pp-main-on, #fff);
}
.pp-cal__ev {
	display: block;
	padding: 6px 8px;
	border-radius: 8px;
	background: var(--pp-accent, #444);
	color: var(--pp-accent-on, #fff);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: break-word;
	hyphens: auto;
}
.pp-cal__ev:hover { color: var(--pp-accent-on, #fff); filter: brightness(1.08); }
.pp-cal__ev time { display: block; font-weight: 800; font-size: 12px; opacity: .9; }

/* The same month as a list: always under the grid for screen readers'
   sake is too much, so it shows only where the grid does not. */
.pp-cal__list { display: none; }
.pp-cal__item {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 14px 0;
	border-top: 1px solid var(--pp-line, #e2ddd5);
	color: inherit;
	text-decoration: none;
}
.pp-cal__item:first-child { border-top: 0; }
.pp-cal__badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 56px;
	height: 60px;
	border-radius: 10px;
	background: var(--pp-dark, #2e2e2e);
	color: var(--pp-dark-on, #fff);
	line-height: 1;
}
.pp-cal__badge span { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--pp-main-bright, #fff); }
.pp-cal__badge strong { font-size: 24px; font-weight: 800; margin-top: 3px; }
.pp-cal__words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-cal__words strong { font-size: 17px; line-height: 1.25; }
.pp-cal__words span { font-size: 14px; color: #5a5a5a; }
.pp-cal__empty { margin: 0; color: #5a5a5a; }

@media (max-width: 760px) {
	.pp-cal__grid { display: none; }
	.pp-cal__list { display: block; }
	.pp-cal__nav { padding: 8px 12px; font-size: 14px; }
}
