/*
 * PJD Core - Events base stylesheet (v1.6.6).
 *
 * ALL structure, layout and behaviour. Contains ZERO colour literals (no hex, no
 * rgb/rgba) and ZERO font-family: the only colour-ish values are var(--pjc-*)
 * references and the keywords transparent / currentColor / inherit. Typography of
 * headings and prose is left to the THEME (A9); this file styles only the bespoke
 * atoms (eyebrow, tag, badge, meta, buttons, calendar cells) and consumes size /
 * weight / tracking tokens - never a font-family.
 *
 * Colour comes 100% from the selected skin. The low-specificity :where(.pjc) block
 * below gives keyword fallbacks so the "None" (skinless) option still renders a sane
 * structural layout that inherits the theme's own colours.
 */

/* ============================================================ 0. scope + tokens */

.pjc,
.pjc *,
.pjc *::before,
.pjc *::after {
	box-sizing: border-box;
}

.pjc {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

/* Skinless keyword fallbacks (zero specificity - a skin's .pjc {} always wins). No
   hex: surfaces are transparent, ink inherits the theme colour, brand bits use
   currentColor, so "None" renders as theme-coloured structure. */
:where(.pjc) {
	--pjc-surface-page: transparent;
	--pjc-surface-alt: transparent;
	--pjc-surface-soft: transparent;
	--pjc-surface-card: transparent;

	--pjc-ink-heading: inherit;
	--pjc-ink-body: inherit;
	--pjc-ink-muted: inherit;
	--pjc-ink-faint: inherit;
	--pjc-ink-on-accent: inherit;
	--pjc-ink-on-cat: inherit;

	--pjc-accent: currentColor;
	--pjc-accent-hover: currentColor;
	--pjc-brand: currentColor;
	--pjc-link: currentColor;
	--pjc-link-hover: currentColor;

	--pjc-border: currentColor;
	--pjc-border-hairline: currentColor;
	--pjc-border-card-hover: currentColor;

	--pjc-radius-card: 12px;
	--pjc-radius-featured: 12px;
	--pjc-radius-rail: 12px;
	--pjc-radius-band: 10px;
	--pjc-radius-pill: 999px;
	--pjc-radius-tag: 4px;
	--pjc-radius-btn: 6px;
	--pjc-radius-badge: 8px;
	--pjc-radius-cell: 6px;
	--pjc-radius-block: 3px;

	--pjc-shadow-card-hover: none;
	--pjc-shadow-featured: none;
	--pjc-shadow-rail: none;
	--pjc-shadow-badge: none;

	--pjc-fs-eyebrow: 12px;
	--pjc-fs-meta: 12.5px;
	--pjc-fs-tag: 10.5px;
	--pjc-fs-button: 14px;
	--pjc-fw-eyebrow: 600;
	--pjc-fw-tag: 700;
	--pjc-fw-button: 600;
	--pjc-ls-eyebrow: 0.16em;
	--pjc-ls-tag: 0.08em;
	--pjc-ls-button: 0.02em;
	--pjc-lh-body: 1.6;

	--pjc-container-max: 1200px;
	--pjc-container-pad: 24px;
	--pjc-col-gap: 40px;
	--pjc-sidebar-w: 300px;
	--pjc-card-pad: 18px;
	--pjc-space: 4px;

	--pjc-onnow-bg: transparent;
	--pjc-onnow-border: currentColor;
	--pjc-onnow-accent: currentColor;
	--pjc-today-bg: transparent;
	--pjc-today-ring: currentColor;
	--pjc-today-num-bg: transparent;
	--pjc-today-num-ink: inherit;
	--pjc-hero-overlay: none;

	--pjc-cat: currentColor;
	--pjc-cat-tag-bg: transparent;
	--pjc-cat-tag-text: inherit;
	--pjc-cat-block-bg: transparent;
	--pjc-cat-block-text: inherit;
	--pjc-block-border-w: 0;
}

.pjc {
	color: var(--pjc-ink-body);
	line-height: var(--pjc-lh-body);
}

.pjc a {
	color: var(--pjc-link);
}

.pjc a:hover {
	color: var(--pjc-link-hover);
}

/* ==================================================================== 1. layout */

.pjc-layout {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pjc-col-gap);
	max-width: var(--pjc-container-max);
	margin-inline: auto;
	padding-inline: var(--pjc-container-pad);
}

.pjc-layout__main {
	flex: 1 1 560px;
	min-width: 0;
}

.pjc-layout__sidebar {
	flex: 0 0 var(--pjc-sidebar-w);
	min-width: 0;
	position: sticky;
	top: 96px;
	align-self: flex-start;
}

@media (max-width: 900px) {
	.pjc-layout__sidebar {
		flex-basis: 100%;
		position: static;
	}
}

/* ==================================================================== 2. atoms */

.pjc-eyebrow {
	display: inline-block;
	font-size: var(--pjc-fs-eyebrow);
	font-weight: var(--pjc-fw-eyebrow);
	letter-spacing: var(--pjc-ls-eyebrow);
	text-transform: uppercase;
	color: var(--pjc-ink-faint);
}

.pjc-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--pjc-cat);
	vertical-align: middle;
}

.pjc-tag {
	display: inline-block;
	font-size: var(--pjc-fs-tag);
	font-weight: var(--pjc-fw-tag);
	letter-spacing: var(--pjc-ls-tag);
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: var(--pjc-radius-tag);
	background: var(--pjc-cat-tag-bg);
	color: var(--pjc-cat-tag-text);
}

.pjc-date-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	padding: 6px 9px 5px;
	border-radius: var(--pjc-radius-badge);
	box-shadow: var(--pjc-shadow-badge);
	background: var(--pjc-cat-tag-bg);
	color: var(--pjc-cat);
}

.pjc-date-badge__day {
	font-size: 22px;
	font-weight: 700;
}

.pjc-date-badge__month {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pjc-btn {
	display: inline-block;
	font-size: var(--pjc-fs-button);
	font-weight: var(--pjc-fw-button);
	letter-spacing: var(--pjc-ls-button);
	line-height: 1;
	padding: 12px 24px;
	border-radius: var(--pjc-radius-btn);
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pjc-btn--primary {
	background: var(--pjc-accent);
	color: var(--pjc-ink-on-accent);
}

.pjc-btn--primary:hover {
	background: var(--pjc-accent-hover);
	color: var(--pjc-ink-on-accent);
}

.pjc-btn--secondary {
	background: var(--pjc-surface-soft);
	color: var(--pjc-ink-body);
}

.pjc-btn--gold {
	background: var(--pjc-accent);
	color: var(--pjc-ink-on-accent);
}

.pjc-btn--outline {
	background: transparent;
	color: var(--pjc-brand);
	border-color: var(--pjc-brand);
}

.pjc-cal-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--pjc-space) * 2);
}

/* ================================================================== 3. on-now */

.pjc-on-now {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: calc(var(--pjc-space) * 3);
	padding: 15px 20px;
	border-radius: var(--pjc-radius-band);
	background: var(--pjc-onnow-bg);
	border: 1px solid var(--pjc-onnow-border);
}

.pjc-on-now__pulse {
	width: 11px;
	height: 11px;
	border-radius: 999px;
	background: var(--pjc-onnow-accent);
	box-shadow: 0 0 0 4px transparent;
	animation: pjc-pulse 2s ease-out infinite;
}

@keyframes pjc-pulse {
	0% {
		box-shadow: 0 0 0 0 var(--pjc-onnow-accent);
		opacity: 1;
	}
	70% {
		box-shadow: 0 0 0 7px transparent;
		opacity: 0.85;
	}
	100% {
		box-shadow: 0 0 0 0 transparent;
		opacity: 1;
	}
}

.pjc-on-now__label {
	color: var(--pjc-onnow-accent);
	letter-spacing: 0.14em;
	margin: 0;
}

.pjc-on-now__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--pjc-space) * 3);
}

.pjc-on-now__item {
	display: inline-flex;
	align-items: baseline;
	gap: var(--pjc-space);
	padding-left: calc(var(--pjc-space) * 3);
	position: relative;
}

.pjc-on-now__item + .pjc-on-now__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	border-left: 1px solid var(--pjc-onnow-border);
}

.pjc-on-now__link {
	font-weight: 600;
	text-decoration: none;
}

.pjc-on-now__meta {
	font-size: var(--pjc-fs-meta);
	color: var(--pjc-ink-muted);
}

/* ================================================================= 4. featured */

.pjc-featured {
	position: relative;
	background: var(--pjc-surface-card);
	border: 1px solid var(--pjc-border);
	border-radius: var(--pjc-radius-featured);
	box-shadow: var(--pjc-shadow-featured);
	overflow: hidden;
}

.pjc-featured__viewport {
	overflow: hidden;
}

.pjc-featured__track {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	transition: transform 0.4s ease;
}

.pjc-featured__slide {
	position: relative;
	flex: 0 0 100%;
	display: flex;
	flex-wrap: wrap;
	min-width: 0;
}

.pjc-featured__media {
	position: relative;
	flex: 1 1 360px;
	min-height: 260px;
	background: var(--pjc-surface-soft);
}

.pjc-featured__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pjc-featured__overlay {
	position: absolute;
	inset: 0;
	background: var(--pjc-hero-overlay);
}

.pjc-featured--hero .pjc-featured__body {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: var(--pjc-ink-on-cat);
}

.pjc-featured__body {
	flex: 1 1 360px;
	min-width: 0;
	padding: 30px 34px;
	display: flex;
	flex-direction: column;
	gap: calc(var(--pjc-space) * 2);
}

.pjc-featured__kicker {
	letter-spacing: 0.16em;
}

.pjc-featured__title {
	margin: 0;
}

.pjc-featured__title a {
	text-decoration: none;
	color: inherit;
}

.pjc-featured__date {
	margin: 0;
	font-size: var(--pjc-fs-meta);
	color: var(--pjc-ink-muted);
}

.pjc-featured--hero .pjc-featured__date,
.pjc-featured--hero .pjc-featured__excerpt {
	color: inherit;
}

.pjc-featured__excerpt {
	margin: 0;
}

.pjc-featured__cta {
	align-self: flex-start;
	margin-top: var(--pjc-space);
}

.pjc-featured__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 1px solid var(--pjc-border);
	background: var(--pjc-surface-card);
	cursor: pointer;
}

.pjc-featured__nav--prev {
	left: 12px;
}

.pjc-featured__nav--next {
	right: 12px;
}

.pjc-featured__nav::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	margin: auto;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.pjc-featured__nav--prev::before {
	transform: rotate(-135deg);
	margin-left: 15px;
}

.pjc-featured__nav--next::before {
	transform: rotate(45deg);
	margin-right: 15px;
}

.pjc-featured__dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: var(--pjc-space);
}

.pjc-featured__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 999px;
	border: 0;
	background: currentColor;
	opacity: 0.4;
	cursor: pointer;
}

.pjc-featured__dot.is-active {
	opacity: 1;
}

/* ================================================================ 5. list/card */

.pjc-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--pjc-col-gap);
}

.pjc-list--compact {
	grid-template-columns: 1fr;
	gap: calc(var(--pjc-space) * 3);
}

.pjc-list__empty,
.pjc-agenda__empty {
	color: var(--pjc-ink-muted);
	margin: 0;
}

.pjc-card {
	display: flex;
	flex-direction: column;
	background: var(--pjc-surface-card);
	border: 1px solid var(--pjc-border);
	border-radius: var(--pjc-radius-card);
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pjc-card:hover {
	box-shadow: var(--pjc-shadow-card-hover);
	border-color: var(--pjc-border-card-hover);
}

.pjc-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--pjc-surface-soft);
}

.pjc-card__media--empty {
	min-height: 120px;
}

.pjc-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pjc-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--pjc-space);
	padding: var(--pjc-card-pad);
}

.pjc-card__title {
	margin: 0;
}

.pjc-card__title a {
	text-decoration: none;
	color: inherit;
}

.pjc-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--pjc-space) * 2);
	margin: 0;
	font-size: var(--pjc-fs-meta);
	color: var(--pjc-ink-muted);
}

.pjc-card__excerpt {
	margin: 0;
}

.pjc-card--compact {
	flex-direction: row;
	align-items: stretch;
}

.pjc-card--compact .pjc-card__media {
	flex: 0 0 96px;
	aspect-ratio: 1 / 1;
}

.pjc-list--related .pjc-card__excerpt {
	display: none;
}

/* =================================================================== 6. agenda */

.pjc-agenda {
	display: flex;
	flex-direction: column;
	gap: calc(var(--pjc-space) * 6);
}

.pjc-agenda__group {
	display: flex;
	flex-direction: column;
	gap: calc(var(--pjc-space) * 2);
}

.pjc-agenda__group-title {
	margin: 0;
	padding-bottom: var(--pjc-space);
	border-bottom: 1px solid var(--pjc-border-hairline);
}

.pjc-agenda-row {
	display: flex;
	gap: calc(var(--pjc-space) * 4);
	padding: 16px 22px;
	background: var(--pjc-surface-card);
	border: 1px solid var(--pjc-border);
	border-left: 4px solid var(--pjc-cat);
	border-radius: var(--pjc-radius-rail);
}

.pjc-agenda-row__date {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	min-width: 44px;
}

.pjc-agenda-row__dow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pjc-ink-muted);
}

.pjc-agenda-row__num {
	font-size: 32px;
	font-weight: 700;
	color: var(--pjc-ink-heading);
}

.pjc-agenda-row__body {
	display: flex;
	flex-direction: column;
	gap: var(--pjc-space);
	min-width: 0;
}

.pjc-agenda-row__time {
	font-size: var(--pjc-fs-meta);
	font-weight: 700;
	color: var(--pjc-ink-muted);
}

.pjc-agenda-row__title {
	margin: 0;
}

.pjc-agenda-row__title a {
	text-decoration: none;
	color: inherit;
}

.pjc-agenda-row__venue {
	font-size: var(--pjc-fs-meta);
	color: var(--pjc-ink-muted);
}

/* =================================================================== 7. filter */

.pjc-filter {
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--pjc-space) * 2);
}

.pjc-filter__pill {
	display: inline-flex;
	align-items: center;
	gap: calc(var(--pjc-space) * 2);
	font-size: var(--pjc-fs-meta);
	font-weight: 500;
	padding: 9px 12px;
	border-radius: var(--pjc-radius-pill);
	border: 1px solid var(--pjc-border);
	background: var(--pjc-surface-card);
	color: var(--pjc-ink-body);
	cursor: pointer;
}

.pjc-filter__pill.is-active {
	background: var(--pjc-cat);
	color: var(--pjc-ink-on-cat);
	border-color: var(--pjc-cat);
}

.pjc-filter__pill.is-active .pjc-dot {
	background: var(--pjc-ink-on-cat);
}

/* =================================================================== 7b. search */

.pjc-search {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: calc(var(--pjc-space) * 2);
}

.pjc-search__input {
	flex: 1 1 220px;
	min-width: 0;
	padding: 11px 14px;
	font-size: var(--pjc-fs-button);
	color: var(--pjc-ink-body);
	background: var(--pjc-surface-card);
	border: 1px solid var(--pjc-border);
	border-radius: var(--pjc-radius-btn);
}

.pjc-search__input::placeholder {
	color: var(--pjc-ink-faint);
}

.pjc-search__submit {
	flex: 0 0 auto;
}

/* ========================================================== 8. calendars shared */

.pjc-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: calc(var(--pjc-space) * 2);
	margin-bottom: calc(var(--pjc-space) * 3);
}

.pjc-cal__title {
	margin: 0;
	text-align: center;
	flex: 1 1 auto;
}

.pjc-cal__nav {
	width: 32px;
	height: 32px;
	border-radius: var(--pjc-radius-btn);
	border: 1px solid var(--pjc-border);
	background: var(--pjc-surface-card);
	cursor: pointer;
	position: relative;
}

.pjc-cal__nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.pjc-cal__nav--prev::before {
	transform: translate(-30%, -50%) rotate(-135deg);
}

.pjc-cal__nav--next::before {
	transform: translate(-70%, -50%) rotate(45deg);
}

.pjc-cal__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

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

.pjc-cal__grid th {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pjc-ink-muted);
	padding: calc(var(--pjc-space) * 1.5) 0;
	text-align: center;
}

.pjc-cal__grid th abbr {
	text-decoration: none;
	cursor: default;
}

.pjc-cal__cell {
	vertical-align: top;
	border: 1px solid var(--pjc-border-hairline);
	border-radius: var(--pjc-radius-cell);
	padding: calc(var(--pjc-space) * 1.5);
}

.pjc-cal__cell.is-outside {
	opacity: 0.4;
}

.pjc-cal__cell.is-weekend {
	background: var(--pjc-surface-alt);
}

.pjc-cal__cell.is-today {
	background: var(--pjc-today-bg);
	box-shadow: inset 0 0 0 2px var(--pjc-today-ring);
}

.pjc-cal__num {
	display: inline-block;
	font-size: var(--pjc-fs-meta);
	font-weight: 500;
}

.pjc-cal__cell.is-today .pjc-cal__num {
	font-weight: 700;
}

/* ==================================================================== 9. mini */

.pjc-cal--mini .pjc-cal__cell {
	height: 38px;
	text-align: center;
	border: 0;
	border-radius: var(--pjc-radius-cell);
	padding: var(--pjc-space);
}

.pjc-cal--mini .pjc-cal__cell.is-today {
	background: var(--pjc-today-bg);
	box-shadow: inset 0 0 0 1.5px var(--pjc-today-ring);
}

.pjc-cal--mini .pjc-cal__cell.is-today .pjc-cal__num {
	background: var(--pjc-today-num-bg);
	color: var(--pjc-today-num-ink);
	border-radius: 999px;
	padding: 0 6px;
}

.pjc-cal__dots {
	display: flex;
	justify-content: center;
	gap: 3px;
	margin-top: 3px;
}

.pjc-cal__dots .pjc-dot {
	width: 4px;
	height: 4px;
}

.pjc-cal__legend {
	list-style: none;
	margin: calc(var(--pjc-space) * 3) 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--pjc-space) * 2);
}

.pjc-cal__legend-item {
	display: inline-flex;
	align-items: center;
	gap: var(--pjc-space);
	font-size: var(--pjc-fs-meta);
	color: var(--pjc-ink-muted);
}

/* =================================================================== 10. month */

.pjc-cal--month .pjc-cal__cell {
	height: 118px;
}

.pjc-cal__events {
	list-style: none;
	margin: 3px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pjc-cal__event {
	font-size: 9.5px;
	font-weight: 700;
	border-radius: var(--pjc-radius-block);
	background: var(--pjc-cat-block-bg);
	color: var(--pjc-cat-block-text);
	border-left: var(--pjc-block-border-w) solid var(--pjc-cat);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pjc-cal__event a {
	display: block;
	padding: 2px 5px;
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pjc-cal__more button {
	font-size: 9.5px;
	font-weight: 700;
	background: none;
	border: 0;
	padding: 2px 5px;
	color: var(--pjc-link);
	cursor: pointer;
}

/* ==================================================================== 11. week */

.pjc-week__selector {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pjc-space);
	margin-bottom: calc(var(--pjc-space) * 3);
}

.pjc-week__wk {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: calc(var(--pjc-space) * 2) calc(var(--pjc-space) * 3);
	border-radius: var(--pjc-radius-btn);
	border: 1px solid var(--pjc-border);
	background: var(--pjc-surface-soft);
	color: var(--pjc-ink-body);
	cursor: pointer;
	text-align: left;
}

.pjc-week__wk.is-active {
	background: var(--pjc-brand);
	color: var(--pjc-ink-on-cat);
	border-color: var(--pjc-brand);
}

.pjc-week__wk-range {
	font-weight: 700;
}

.pjc-week__wk-count {
	font-size: var(--pjc-fs-meta);
	opacity: 0.8;
}

.pjc-week__allweek {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(var(--pjc-space) * 2);
	padding-bottom: calc(var(--pjc-space) * 2);
	margin-bottom: calc(var(--pjc-space) * 2);
	border-bottom: 1px solid var(--pjc-border-hairline);
}

.pjc-week__allweek-chip {
	display: inline-block;
	font-size: var(--pjc-fs-meta);
	padding: 3px 9px;
	border-radius: var(--pjc-radius-block);
	background: var(--pjc-surface-card);
	border-left: 3px solid var(--pjc-cat);
	text-decoration: none;
	color: var(--pjc-ink-body);
}

.pjc-week__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: var(--pjc-space);
}

@media (max-width: 720px) {
	.pjc-week__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.pjc-week__day {
	display: flex;
	flex-direction: column;
	gap: var(--pjc-space);
	min-height: 120px;
	padding: var(--pjc-space);
	border: 1px solid var(--pjc-border-hairline);
	border-radius: var(--pjc-radius-cell);
}

.pjc-week__day.is-weekend {
	background: var(--pjc-surface-alt);
}

.pjc-week__day.is-today {
	box-shadow: inset 0 0 0 2px var(--pjc-today-ring);
}

.pjc-week__day-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.pjc-week__dow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pjc-ink-muted);
}

.pjc-week__dnum {
	font-size: 15px;
	font-weight: 700;
}

.pjc-week__event {
	display: block;
	font-size: 11px;
	padding: 3px 6px;
	border-radius: var(--pjc-radius-block);
	background: var(--pjc-cat-block-bg);
	color: var(--pjc-cat-block-text);
	border-left: var(--pjc-block-border-w) solid var(--pjc-cat);
	text-decoration: none;
}

.pjc-week__event-time {
	display: block;
	font-weight: 700;
}

.pjc-week__empty {
	margin: 0;
	font-size: 11px;
	color: var(--pjc-ink-faint);
}

.pjc-week__jump {
	margin-top: calc(var(--pjc-space) * 3);
}

/* ======================================================= 12. schedule / expand */

.pjc-schedule__switch {
	display: inline-flex;
	gap: var(--pjc-space);
	margin-bottom: calc(var(--pjc-space) * 4);
	padding: var(--pjc-space);
	border-radius: var(--pjc-radius-pill);
	background: var(--pjc-surface-soft);
}

.pjc-schedule__tab {
	font-size: var(--pjc-fs-meta);
	font-weight: 600;
	padding: 8px 18px;
	border: 0;
	border-radius: var(--pjc-radius-pill);
	background: transparent;
	color: var(--pjc-ink-body);
	cursor: pointer;
}

.pjc-schedule__tab.is-active {
	background: var(--pjc-brand);
	color: var(--pjc-ink-on-cat);
}

.pjc-expand {
	margin-top: calc(var(--pjc-space) * 4);
}

.pjc-expand__panel {
	margin-top: calc(var(--pjc-space) * 3);
}

/* ===================================================================== 13. map */

.pjc-map {
	width: 100%;
	min-height: 320px;
	border-radius: var(--pjc-radius-card);
	overflow: hidden;
	background: var(--pjc-surface-soft);
}

.pjc .leaflet-container {
	font: inherit;
}

/* ============================================================ 14. single event */

.pjc-event {
	display: flex;
	flex-direction: column;
	gap: calc(var(--pjc-space) * 2);
}

.pjc-event__when {
	font-weight: 700;
	color: var(--pjc-ink-heading);
}

.pjc-event__time,
.pjc-event__venue,
.pjc-event__organiser {
	color: var(--pjc-ink-body);
}

.pjc-event__address {
	font-style: normal;
	color: var(--pjc-ink-muted);
}

.pjc-event__dates {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--pjc-space);
}

/* ============================================================= 15. state utils */

/* Hide via the hidden attribute or the is-hidden class. Both forms of the selector
   are needed: .pjc[hidden] catches a .pjc root that is itself hidden (the on-now
   band), .pjc [hidden] catches hidden descendants. !important beats an author
   display rule that would otherwise defeat the UA [hidden] style. inert is NOT
   display:none - carousel off-slides stay laid out (translated off-screen). */
.pjc[hidden],
.pjc [hidden],
.pjc.is-hidden,
.pjc .is-hidden {
	display: none !important;
}

.pjc [inert] {
	pointer-events: none;
	user-select: none;
}

/* =========================================================== 16. a11y / motion */

.pjc :focus-visible {
	outline: 2px solid var(--pjc-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.pjc *,
	.pjc *::before,
	.pjc *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.pjc-featured__track {
		transition: none !important;
	}

	.pjc-on-now__pulse {
		animation: none !important;
	}
}
