/* wwh/events-programme — /events/ body (core 2.79.0). */
.wwh-prog {
	--wwh-p-cream: var(--wp--preset--color--warm-cream, #F2EFEA);
	--wwh-p-cream-2: var(--wp--preset--color--warm-cream-2, #E9E4DB);
	--wwh-p-ink: var(--wp--preset--color--ink-primary, #1A1613);
	--wwh-p-caption: var(--wp--preset--color--ink-caption, #5A544D);
	--wwh-p-brand: var(--wp--preset--color--brand-text, #8F632F);
	--wwh-p-terracotta: var(--wp--preset--color--terracotta, #9A4A30);
	--wwh-p-gold: var(--wp--preset--color--gold, #D9B25C);
	--wwh-p-forest: var(--wp--preset--color--forest, #2F4A3A);
	--wwh-p-ui: var(--wp--preset--font-family--ui);
	--wwh-p-display: var(--wp--preset--font-family--display);
	background: var(--wwh-p-cream);
	color: var(--wwh-p-ink);
	margin: 0;
}

/* ── Sticky bar ── */
.wwh-prog__bar {
	position: sticky;
	top: var(--wwh-pinned-header, 0px); /* clears the theme's pinned bar */
	z-index: 20;
	background: rgba(242, 239, 234, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(26, 22, 19, 0.12);
}
/* No `.admin-bar` rule: --wwh-pinned-header (theme header.css / sticky-header.js)
   already counts the admin bar, and one here outranked it (core 2.125.0). */
.wwh-prog__bar-inner {
	box-sizing: border-box;
	width: min(1240px, 100%);
	margin: 0 auto;
	padding: 0.7rem 1.5rem;
	display: flex;
	gap: 0.35rem;
	align-items: center;
	overflow-x: auto;
	scrollbar-width: thin;
}
.wwh-prog__jump,
.wwh-prog__chip {
	flex: none;
	font-family: var(--wwh-p-ui);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	color: var(--wwh-p-ink);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.wwh-prog__jump:hover,
.wwh-prog__chip:hover {
	background: var(--wwh-p-cream-2);
	color: var(--wwh-p-ink);
}
.wwh-prog__chip.is-active {
	background: var(--wwh-p-ink);
	color: var(--wwh-p-cream);
}
.wwh-prog__sep {
	flex: none;
	width: 1px;
	height: 1.4rem;
	background: rgba(26, 22, 19, 0.2);
	margin: 0 0.5rem;
}

.wwh-prog__wrap {
	box-sizing: border-box;
	width: min(1240px, 100%);
	margin: 0 auto;
	padding: 0 1.5rem 4rem;
}
.wwh-prog__empty {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.25rem;
	font-style: italic;
	text-align: center;
	padding: 4rem 0 1rem;
	margin: 0;
	color: var(--wwh-p-caption);
}

/* ── Featured ── */
.wwh-prog__feature {
	position: relative;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	margin: 2.75rem 0 0.75rem;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(26, 22, 19, 0.08);
	transition: box-shadow 0.3s ease;
}
.wwh-prog__feature:hover {
	box-shadow: 0 20px 50px rgba(26, 22, 19, 0.16);
}
.wwh-prog__feature-img {
	position: relative;
	min-height: 21rem;
	overflow: hidden;
	background: var(--wwh-p-cream-2);
}
.wwh-prog__feature-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s ease;
}
.wwh-prog__feature:hover .wwh-prog__feature-img img {
	transform: scale(1.05);
}
.wwh-prog__feature-body {
	padding: clamp(1.5rem, 3.4vw, 2.75rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
}
.wwh-prog__flag {
	align-self: flex-start;
	font-family: var(--wwh-p-ui);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	background: var(--wwh-p-terracotta);
	color: #fff;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
}
.wwh-prog__feature-title {
	font-family: var(--wwh-p-display);
	font-weight: 400;
	font-size: clamp(2.1rem, 3.6vw, 3.1rem);
	line-height: 1.02;
	margin: 0;
}
.wwh-prog__feature-title a {
	color: inherit;
	text-decoration: none;
}
/* Whole card clickable through the title link; the button sits above it. */
.wwh-prog__feature-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.wwh-prog__feature-title a:focus-visible {
	outline: none;
}
.wwh-prog__feature:focus-within {
	box-shadow: 0 0 0 3px var(--wwh-p-gold), 0 20px 50px rgba(26, 22, 19, 0.16);
}
.wwh-prog__feature-lede {
	margin: 0;
	color: var(--wwh-p-caption);
	font-size: 1.1rem;
}
.wwh-prog__facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1.25rem;
	margin: 0.4rem 0 0;
	font-family: var(--wwh-p-ui);
	font-size: 0.82rem;
	line-height: 1.4;
}
.wwh-prog__facts dt {
	font-size: 0.75rem; /* GitLab #60: was 0.62rem (9.9px). */
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wwh-p-brand);
}
.wwh-prog__facts dd {
	margin: 0.15rem 0 0;
}
.wwh-prog__btn {
	position: relative;
	z-index: 1;
	align-self: flex-start;
	margin-top: 0.5rem;
	font-family: var(--wwh-p-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background: var(--wwh-p-ink);
	color: var(--wwh-p-cream);
	padding: 0.9rem 1.25rem;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.wwh-prog__btn:hover,
.wwh-prog__btn:focus-visible,
.wwh-prog__feature:hover .wwh-prog__btn {
	background: var(--wwh-p-terracotta);
	color: #fff;
}

/* ── Months + compact cards ── */
.wwh-prog__month {
	padding-top: 2.5rem;
	scroll-margin-top: 5rem;
}
.wwh-prog__month-h {
	font-family: var(--wwh-p-display);
	font-weight: 400;
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	line-height: 1;
	margin: 0 0 1.1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}
.wwh-prog__month-h::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(26, 22, 19, 0.18);
}
.wwh-prog__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem;
}
.wwh-prog__card {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	min-height: 150px;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	color: var(--wwh-p-ink);
	text-decoration: none;
	border: 1px solid transparent;
	transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.wwh-prog__card:hover,
.wwh-prog__card:focus-visible {
	border-color: var(--wwh-p-gold);
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(26, 22, 19, 0.1);
	color: var(--wwh-p-ink);
	outline: none;
}
.wwh-prog__card:focus-visible {
	box-shadow: 0 0 0 3px var(--wwh-p-gold);
}
.wwh-prog__card-img {
	position: relative;
	overflow: hidden;
	background: var(--wwh-p-cream-2);
}
.wwh-prog__card-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.wwh-prog__card:hover .wwh-prog__card-img img {
	transform: scale(1.08);
}
.wwh-prog__card-body {
	padding: 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.wwh-prog__when {
	font-family: var(--wwh-p-ui);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wwh-p-terracotta);
}
.wwh-prog__card-title {
	font-family: var(--wwh-p-display);
	font-size: 1.5rem;
	line-height: 1.1;
}
.wwh-prog__loc {
	font-family: var(--wwh-p-ui);
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--wwh-p-caption);
}
.wwh-prog__price {
	margin-top: auto;
	padding-top: 0.5rem;
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-family: var(--wwh-p-ui);
	font-size: 0.75rem;
	font-weight: 600;
}
.wwh-prog__price i {
	font-style: normal;
	color: var(--wwh-p-brand);
	white-space: nowrap;
}

/* No-image placeholder: waterwheel segments in the category colour, with a date disc. */
.wwh-prog__ph {
	--wwh-ph-lt: color-mix(in srgb, var(--wwh-ph, #2F4A3A) 78%, #fff);
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: conic-gradient(
		var(--wwh-ph, #2F4A3A) 0 12.5%, var(--wwh-ph-lt) 0 25%,
		var(--wwh-ph, #2F4A3A) 0 37.5%, var(--wwh-ph-lt) 0 50%,
		var(--wwh-ph, #2F4A3A) 0 62.5%, var(--wwh-ph-lt) 0 75%,
		var(--wwh-ph, #2F4A3A) 0 87.5%, var(--wwh-ph-lt) 0
	);
	transition: transform 0.6s ease;
}
.wwh-prog__card:hover .wwh-prog__ph {
	transform: rotate(22.5deg) scale(1.15);
}
.wwh-prog__ph b {
	width: 56%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--wwh-p-cream);
	display: grid;
	place-content: center;
	text-align: center;
	font-family: var(--wwh-p-display);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wwh-p-ink);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.wwh-prog__card:hover .wwh-prog__ph b {
	transform: rotate(-22.5deg) scale(0.87);
}
.wwh-prog__ph small {
	display: block;
	font-family: var(--wwh-p-ui);
	font-size: 0.75rem; /* GitLab #60: was 0.55rem (8.8px). */
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wwh-p-terracotta);
	margin-top: 0.2rem;
}

/* ── Markets calendar ── */
.wwh-prog__markets {
	margin-top: 3.5rem;
	background: var(--wwh-p-cream-2);
	border-radius: 18px;
	padding: 1.75rem;
	scroll-margin-top: 5rem;
}
.wwh-prog__markets-h {
	font-family: var(--wwh-p-display);
	font-weight: 400;
	font-size: 2rem;
	line-height: 1;
	margin: 0 0 0.3rem;
}
.wwh-prog__markets-intro {
	font-family: var(--wwh-p-ui);
	font-size: 0.85rem;
	color: var(--wwh-p-caption);
	margin: 0 0 1.1rem;
}
.wwh-prog__mrow {
	display: grid;
	grid-template-columns: 17rem minmax(0, 1fr);
	gap: 1.1rem;
	align-items: center;
	padding: 0.9rem 0;
	border-top: 1px solid rgba(26, 22, 19, 0.12);
}
.wwh-prog__mrule {
	display: block;
	font-family: var(--wwh-p-ui);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	/* ink-caption, not brand-text: this sits on warm-cream-2, where brand-text
	   measures 4.15:1 (E2E 2026-10-03 F-19). ink-caption is 5.9:1. */
	color: var(--wp--preset--color--ink-caption, #5A544D);
}
.wwh-prog__mname {
	display: block;
	font-family: var(--wwh-p-display);
	font-size: 1.4rem;
	line-height: 1.1;
	color: var(--wwh-p-ink);
	text-decoration: none;
}
.wwh-prog__mname:hover {
	color: var(--wwh-p-terracotta);
}
.wwh-prog__mvenue {
	font-family: var(--wwh-p-ui);
	font-size: 0.75rem;
	color: var(--wwh-p-caption);
}
.wwh-prog__dates {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.wwh-prog__dates a {
	display: inline-block;
	font-family: var(--wwh-p-ui);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.55rem 0.75rem;
	border-radius: 999px;
	background: #fff;
	color: var(--wwh-p-ink);
	border: 1px solid rgba(26, 22, 19, 0.12);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.wwh-prog__dates a:hover,
.wwh-prog__dates a:focus-visible {
	background: var(--wwh-p-ink);
	color: var(--wwh-p-cream);
}
.wwh-prog__dates a.is-soon {
	background: var(--wwh-p-forest);
	border-color: var(--wwh-p-forest);
	color: #fff;
}

@media (max-width: 980px) {
	.wwh-prog__feature { grid-template-columns: 1fr; }
	.wwh-prog__feature-img { min-height: 16rem; }
	.wwh-prog__cards { grid-template-columns: minmax(0, 1fr); }
	.wwh-prog__mrow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
	.wwh-prog__wrap { padding: 0 1rem 3rem; }
	.wwh-prog__bar-inner { padding: 0.6rem 1rem; }
	.wwh-prog__card { grid-template-columns: 112px minmax(0, 1fr); min-height: 130px; }
	.wwh-prog__card-title { font-size: 1.3rem; }
	.wwh-prog__facts { grid-template-columns: 1fr; }
	.wwh-prog__markets { padding: 1.25rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.wwh-prog__card,
	.wwh-prog__card-img img,
	.wwh-prog__ph,
	.wwh-prog__feature-img img { transition: none; }
	.wwh-prog__card:hover { transform: none; }
	.wwh-prog__card:hover .wwh-prog__card-img img,
	.wwh-prog__feature:hover .wwh-prog__feature-img img,
	.wwh-prog__card:hover .wwh-prog__ph,
	.wwh-prog__card:hover .wwh-prog__ph b { transform: none; }
}
