/* ==========================================================================
   The London Social Hub
   Tokens, base, layout, components, templates.
   ========================================================================== */

/* Typeface: Articulat CF from the site's Adobe Fonts kit (weights 300, 400, 700, 900). */

:root {
	/* Colour */
	/* The London Social Hub palette */
	--ink: #0e1019;          /* Night: dark sections, primary buttons */
	--ink-2: #34363d;        /* Charcoal: body text, hovers on dark */
	--ink-soft: rgba(255, 255, 255, 0.72); /* Secondary text on dark */
	--rose: #ff0f8b;         /* Brand pink. Overridden from Site settings. */
	--rose-deep: var(--rose); /* Kept as an alias so the palette has one pink */
	--rose-text: #db0071;    /* Brand pink, a touch deeper, for small pink text only: passes WCAG AA contrast (4.9:1 on white) where #ff0f8b (3.7:1) doesn't */
	--rose-tint: color-mix(in oklab, var(--rose) 9%, #fff);
	--cyan: #05dbf2;         /* Accent: "Tonight", highlights on dark */
	--cyan-tint: color-mix(in oklab, var(--cyan) 10%, #fff);
	--mist: #f7f7f9;
	--mist-2: #f2f5f7;
	--steel: #afbbc7;
	--line: color-mix(in srgb, var(--steel) 45%, #fff);
	--paper: #fff;
	--text: var(--ink-2);
	--muted: #606372;

	/* Type */
	--font-display: "articulat-cf", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-text: "articulat-cf", system-ui, -apple-system, "Segoe UI", sans-serif;
	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
	--step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.35rem);
	--step-4: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
	--step-5: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);

	/* Space and shape */
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 7vw, 104px);
	/* Events plugin colours follow the theme palette (its defaults came from the old theme). */
	--tlsh-accent: var(--rose);
	--tlsh-accent-hover: var(--rose);
	--tlsh-heading: var(--ink);
	--tlsh-text: var(--ink-2);
	--tlsh-surface: #fff;
	--tlsh-soft: var(--mist);
	--radius-card: 7px;
	--radius-control: 12px;
	--radius-photo: 7px; /* Images and grid cards: 7px everywhere */
	/* Every tag, badge and label on cards and pages shares one size. */
	--tag-pad: 2px 7px;
	--tag-size: 0.9rem;
	--tag-radius: 2px;
	--header-h: 76px;
}

/* ---------------------------------------------------------------- Base */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-text);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--rose-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-wrap: balance;
	color: var(--ink);
}

p { margin: 0; }
p + p { margin-top: 0.9em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* No outline boxes on focus. Keyboard focus is shown by colour changes on each
   control instead (see the :focus-visible rules on links, buttons and fields). */
*:focus,
*:focus-visible { outline: none; }
a:focus-visible { color: var(--rose); }
.button:focus-visible,
.share__btn:focus-visible,
.quick__link:focus-visible { border-color: var(--ink); }

.screen-reader-text {
	/* !important: form styles (e.g. label { width: 100% }) must never stretch these. */
	position: absolute !important;
	width: 1px !important; height: 1px !important;
	padding: 0 !important; margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.skip-link:focus {
	clip: auto !important; width: auto !important; height: auto !important;
	overflow: visible !important; margin: 0 !important;
	top: 12px; left: 12px; z-index: 1000;
	padding: 12px 18px !important;
	background: var(--paper); color: var(--ink);
	border-radius: var(--radius-control);
}

.icon { width: 1.2em; height: 1.2em; flex: none; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- Layout */

.wrap {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2,
.hero h1,
.newsletter h2,
.cat-tile.has-image .cat-tile__name { color: #fff; }
/* Two plain white sections in a row share their gap. */
.section:not(.section--mist):not(.section--ink) + .section:not(.section--mist):not(.section--ink) { padding-top: 0; }
.section__more { margin-top: 32px; text-align: center; }

.grid {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
.grid--2 { --cols: 2; }
.grid--3 { --cols: 3; }
.grid--4 { --cols: 4; }

@media (max-width: 1100px) {
	.grid--4 { --cols: 3; }
}
@media (max-width: 860px) {
	.grid--3, .grid--4 { --cols: 2; }
}
@media (max-width: 560px) {
	.grid--2, .grid--3, .grid--4 { --cols: 1; }

	/* Short rows of cards scroll sideways on phones instead of stacking. */
	.rail {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		padding-bottom: 6px;
		scrollbar-width: none;
	}
	.rail::-webkit-scrollbar { display: none; }
	.rail > * { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---------------------------------------------------------------- Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1.5px solid var(--rose);
	border-radius: 999px;
	background: var(--rose);
	color: #fff;
	font-family: var(--font-text);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}
.button:hover { opacity: 0.88; color: #fff; }
.button .icon { width: 18px; height: 18px; }

.button--rose { background: var(--rose); border-color: var(--rose); }

.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button--ghost:hover { opacity: 1; background: var(--paper); border-color: var(--rose); color: var(--ink); }

.button--small { min-height: 40px; padding: 8px 14px; font-size: 0.9375rem; }
.button--large { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.button--block { width: 100%; }

/* ---------------------------------------------------------------- Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}
.site-header__brand { flex: none; }

.site-logo { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.site-logo__img { width: auto; max-height: 38px; }
.site-logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav .menu { display: flex; gap: 4px; list-style: none; }
.site-nav .menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}
.site-nav .menu a:hover { background: var(--mist); }
.site-nav .current-menu-item > a,
.site-nav .current-page-ancestor > a,
.site-nav .current_page_item > a { color: var(--rose-deep); }

.site-nav__extra .button { min-height: 44px; padding: 10px 18px; }
.site-nav__extra { display: flex; align-items: center; gap: 16px; }


.social { display: flex; gap: 6px; list-style: none; }
.social a {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	color: inherit;
}
.social a:hover { background: var(--mist); color: var(--ink); }
.social .icon { width: 20px; height: 20px; }
.social--nav { display: none; }

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 48px; height: 48px;
	place-items: center;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: transparent;
}
.nav-toggle__close { display: none; }

/* Homepage: the header sits on the dark hero. */
.has-dark-header .site-header { background: var(--ink); border-bottom-color: rgba(255, 255, 255, 0.08); color: #fff; }
.has-dark-header .site-nav .menu a { color: #fff; }
.has-dark-header .site-nav .menu a:hover { background: rgba(255, 255, 255, 0.1); }
.has-dark-header .nav-toggle { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.has-dark-header .social a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Transparent header over the homepage hero (Customiser → Header). The header
   keeps its place in the page but the hero slides up underneath it. */
.has-transparent-header .site-header {
	margin-bottom: calc(var(--header-h) * -1);
	background: transparent;
	border-bottom-color: transparent;
	backdrop-filter: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.has-transparent-header .hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); }
.has-transparent-header .page-hero--photo { padding-top: calc(var(--header-h) + clamp(36px, 5vw, 64px)); min-height: calc(var(--header-h) + clamp(360px, 52vw, 560px)); }
.header-scroll-solid .site-header.is-scrolled { background: var(--ink); border-bottom-color: rgba(255, 255, 255, 0.08); }
.header-scroll-frosted .site-header.is-scrolled {
	background: rgba(14, 16, 25, 0.72);
	border-bottom-color: rgba(255, 255, 255, 0.08);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
}

/* Narrow desktop and iPad landscape: tighten so the menu stays on one line. */
@media (min-width: 961px) and (max-width: 1100px) {
	.site-logo__img { max-height: 32px; }
	.site-header__inner { gap: 16px; }
	.site-nav { gap: 16px; }
	.site-nav .menu { gap: 0; }
	.site-nav .menu a { padding: 10px; white-space: nowrap; }
	.site-nav__extra .button { padding: 10px 16px; white-space: nowrap; }
}

@media (max-width: 960px) {
	/* backdrop-filter would trap the fixed menu panel inside the header. */
	.site-header { backdrop-filter: none; background: var(--paper); }
	.nav-toggle { display: grid; }
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		z-index: 49;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		margin: 0;
		padding: 24px var(--gutter) 40px;
		background: var(--paper);
		color: var(--ink);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.has-transparent-header.nav-open .site-header { background: var(--ink); backdrop-filter: none; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav-open { overflow: hidden; }

	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a,
	.has-dark-header .site-nav .menu a {
		padding: 16px 0;
		border-bottom: 1px solid var(--line);
		border-radius: 0;
		color: var(--ink);
		font-family: var(--font-display);
		font-size: var(--step-2);
		font-weight: 700;
	}
	.site-nav__extra { flex-direction: column; align-items: flex-start; }
	.site-nav__extra .button { width: 100%; min-height: 52px; }
	.social--nav { display: flex; }
	.has-dark-header .site-nav .social a { color: var(--ink); }
}

/* ---------------------------------------------------------------- Hero (homepage) */

.hero {
	background: var(--ink);
	color: #fff;
	padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
	overflow: hidden;
}
.hero.has-bg { position: relative; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; }
.hero.has-bg .hero__photo--3 { border: 0; }
.hero__inner { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__inner.has-photos { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.hero__title {
	font-size: var(--step-5);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.02em;
	max-width: 13ch;
}
.hero__intro {
	margin-top: 20px;
	max-width: 46ch;
	color: var(--ink-soft);
	font-size: var(--step-1);
	line-height: 1.5;
}

/* The sentence search: the page's one loud moment. */
.sentence { margin-top: clamp(32px, 4vw, 48px); }
.sentence__line {
	font-family: var(--font-display);
	font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.25rem);
	font-weight: 400;
	line-height: 1.5;
	max-width: 24em;
}
.sentence__word { color: var(--ink-soft); margin-right: 0.25em; }
.sentence__pick { display: inline-block; position: relative; margin-right: 0.3em; }
.sentence__pick select {
	appearance: none;
	-webkit-appearance: none;
	field-sizing: content;
	max-width: 100%;
	margin: 0;
	padding: 0 1.2em 2px 0;
	border: 0;
	border-bottom: 1px solid #fff;
	border-radius: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.05em center / 0.75em;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}
.sentence__pick select:hover { border-bottom-color: var(--rose); }
.sentence__pick option { color: var(--ink); background: #fff; font-family: var(--font-text); font-size: 1rem; font-weight: 400; }

/* With JS, the large words are a label and the real select sits invisibly on
   top at normal size, so the list that opens is standard size. */
.sentence__value {
	display: inline-block;
	padding: 0 1.2em 2px 0;
	border-bottom: 1px solid #fff;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.05em center / 0.75em;
	color: #fff;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}
.sentence__pick.is-enhanced select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	opacity: 0;
	font-size: 1rem;
	cursor: pointer;
}
.sentence__pick.is-enhanced:hover .sentence__value { border-bottom-color: var(--rose); }
.sentence__pick.is-enhanced:has(select:focus-visible) .sentence__value { border-bottom-color: var(--rose); }

.sentence__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.sentence__alt { color: var(--ink-soft); font-weight: 700; }
.sentence__alt:hover { color: #fff; }

.hero__photos { position: relative; height: clamp(380px, 40vw, 540px); }
.hero__photo { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-photo); background: var(--ink-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--1 { inset: 0 34% 10% 0; }
.hero__photo--2 { inset: 6% 0 50% 70%; }
.hero__photo--3 { inset: 56% 0 0 46%; border: 6px solid var(--ink); }
.photos-1 .hero__photo--1 { inset: 0; }
.photos-2 .hero__photo--1 { inset: 0 30% 0 0; }
.photos-2 .hero__photo--2 { inset: 20% 0 20% 74%; }

@media (max-width: 960px) {
	.hero__inner.has-photos { grid-template-columns: 1fr; }
	.hero__photos { height: 300px; order: -1; }
	.hero__photo--1 { inset: 0 38% 0 0; }
	.hero__photo--2 { inset: 0 0 52% 64%; }
	.hero__photo--3 { inset: 52% 0 0 64%; border: 0; }
}
@media (max-width: 560px) {
	.hero__photos { display: none; }
	.sentence__line { line-height: 1.9; }
	.sentence__actions .button { width: 100%; }
}

/* ---------------------------------------------------------------- Quick links */

.quick { border-bottom: 1px solid var(--line); }
.quick__list {
	display: flex;
	gap: 10px;
	padding-block: 18px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.quick__list::-webkit-scrollbar { display: none; }
.quick__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}
.quick__link .icon { width: 18px; height: 18px; color: var(--rose-deep); }
.quick__link:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------------------------------------------------------- Section heads */

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: clamp(24px, 3vw, 36px);
}
.section-head__title { font-size: var(--step-3); }
.section-head__intro { margin-top: 10px; max-width: 58ch; color: var(--muted); }
.section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex: none;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}
.section-head__link .icon { width: 18px; height: 18px; color: var(--rose-deep); }
.section-head__link:hover { color: var(--rose-deep); }
@media (max-width: 560px) {
	.section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------- Shared card bits */

.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched { color: inherit; text-decoration: none; }

.placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--mist-2);
	color: var(--rose);
}
.placeholder .icon { width: 44px; height: 44px; stroke-width: 1.4; }
.placeholder--initial {
	font-family: var(--font-display);
	font-size: 4.5rem;
	font-weight: 700;
	color: var(--rose);
	letter-spacing: -0.02em;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: var(--tag-pad);
	border-radius: var(--tag-radius);
	background: var(--paper);
	color: var(--ink);
	font-size: var(--tag-size);
	font-weight: 700;
	line-height: 1.4;
}
.badge--cancelled { background: #b42318; color: #fff; }
.badge--past { background: var(--mist-2); color: var(--muted); }
.badge--ours { background: var(--rose-deep); color: #fff; }
.badge--age { background: var(--mist); }
.badge--count { background: rgba(14, 16, 25, 0.82); color: #fff; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: var(--tag-pad);
	border-radius: var(--tag-radius);
	background: var(--rose-tint);
	color: var(--ink);
	font-size: var(--tag-size);
	font-weight: 700;
	line-height: 1.4;
}
.tag .icon { width: 14px; height: 14px; color: var(--rose-deep); }

/* Date stamp on event cards */
.date-stamp {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: grid;
	justify-items: center;
	min-width: 56px;
	padding: 7px 10px 6px;
	border-radius: 2px;
	background: var(--paper);
	color: var(--ink);
	line-height: 1;
}
.date-stamp__day { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.date-stamp__month { margin-top: 3px; font-size: 0.8125rem; font-weight: 700; color: var(--rose-text); }
.date-stamp__word { font-size: var(--tag-size); font-weight: 700; line-height: 1.4; }
/* "Tonight" and "Tomorrow" are labels, so they match every other tag. */
.date-stamp--word { min-width: 0; padding: var(--tag-pad); }
.date-stamp.is-today { background: var(--cyan); }

/* ---------------------------------------------------------------- Event card */

.ev-card,
.venue-card,
.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
/* Cards have no border or shadow: the title turns pink to show the hover. */
.ev-card:hover .ev-card__title,
.venue-card:hover .venue-card__title,
.post-card:hover .post-card__title,
.ev-card:focus-within .ev-card__title,
.venue-card:focus-within .venue-card__title,
.post-card:focus-within .post-card__title { color: var(--rose); }

.ev-card__media,
.venue-card__media,
.post-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--mist-2);
	overflow: hidden;
	border-radius: var(--radius-photo);
}
.ev-card__media img,
.venue-card__media img,
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ev-card__media .badge,
.venue-card__media .badge { position: absolute; top: 12px; right: 12px; z-index: 2; }
.venue-card__media .badge { top: auto; right: auto; bottom: 12px; left: 12px; }

.ev-card__body,
.venue-card__body,
.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 14px 0 0;
}
.ev-card__cat,
.venue-card__type,
.post-card__meta { color: var(--rose-text); font-size: 0.875rem; font-weight: 700; }

.ev-card__title,
.venue-card__title,
.post-card__title {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.01em;
}
.ev-card__title a:hover,
.venue-card__title a:hover,
.post-card__title a:hover { color: var(--rose-deep); }

.ev-card__meta { display: grid; gap: 4px; list-style: none; color: var(--muted); font-size: 0.9375rem; }
.ev-card__meta li,
.venue-card__where { display: flex; align-items: flex-start; gap: 7px; }
.ev-card__meta .icon,
.venue-card__where .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--ink); opacity: 0.55; }
.venue-card__where { color: var(--muted); font-size: 0.9375rem; }

.ev-card__take,
.venue-card__take,
.post-card__excerpt { color: var(--ink); font-size: 0.9375rem; line-height: 1.5; }
.ev-card__take { padding: 10px 12px; border-radius: 2px; background: var(--cyan-tint); }

.ev-card__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 6px;
}
.ev-card__price { flex: none; margin-left: auto; font-weight: 700; white-space: nowrap; }

.ev-card.is-cancelled .ev-card__media img { filter: grayscale(1); opacity: 0.6; }
.ev-card.is-cancelled .ev-card__title { text-decoration: line-through; text-decoration-color: rgba(14, 16, 25, 0.4); }

.venue-card .tags { margin-top: auto; padding-top: 4px; }

/* ---------------------------------------------------------------- Category tiles */

.cat-tiles {
	display: grid;
	/* Equal grid, four across; any leftover tiles sit from the left. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 1.6vw, 18px);
	list-style: none;
}
.cat-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 168px;
	padding: 18px;
	border-radius: var(--radius-card);
	background: var(--paper);
	overflow: hidden;
}

.cat-tile:hover .cat-tile__name { color: var(--rose); }
@media (max-width: 700px) {
	.cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cat-tile__icon {
	position: absolute;
	top: 18px;
	left: 18px;
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border-radius: 2px;
	background: var(--rose-tint);
	color: var(--rose-deep);
}
.cat-tile__icon .icon { width: 24px; height: 24px; }
.cat-tile__link { display: grid; gap: 2px; }
.cat-tile__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.15; }
.cat-tile__count { color: var(--muted); font-size: 0.9375rem; }

.cat-tile.has-image { min-height: 0; height: clamp(170px, 15vw, 220px); padding: 18px; border: 0; overflow: hidden; color: #fff; }
.cat-tile__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tile.has-image:hover .cat-tile__img { transform: scale(1.04); }

@media (max-width: 700px) {
	.cat-tile.has-image { height: 170px; padding: 14px; }
	.cat-tile.has-image .cat-tile__name { font-size: 1.125rem; }
}
.cat-tile.has-image::before {
	/* Legibility scrim for the name over the photo. */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1; /* Above the photo, below the text. */
	background: linear-gradient(to top, rgba(14, 16, 25, 0.8) 0%, rgba(14, 16, 25, 0.25) 35%, rgba(14, 16, 25, 0) 70%);
}
/* Link stays unpositioned so its click area (.stretched) covers the whole tile. */
.cat-tile.has-image .cat-tile__name,
.cat-tile.has-image .cat-tile__count { position: relative; z-index: 2; }
.cat-tile.has-image .cat-tile__count { color: rgba(255, 255, 255, 0.82); }

/* ---------------------------------------------------------------- Areas */

.areas__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px clamp(32px, 6vw, 96px);
	align-items: center;
}
.areas__title { font-size: var(--step-4); letter-spacing: -0.015em; }
.areas__text > p { margin-top: 16px; max-width: 36ch; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }

/* Area tiles */
.areas__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; }
.areas__chip {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px 24px;
	border-radius: var(--radius-card);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 700;
	transition: background-color 0.15s ease;
}
.areas__count { color: var(--ink-soft); font-family: var(--font-text); font-size: 0.9375rem; font-weight: 400; }
.areas__chip:hover { background: var(--rose); color: #fff; }
.areas__chip:hover .areas__count { color: #fff; }

@media (max-width: 860px) {
	.areas__inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.areas__chips { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.areas__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.areas__list { columns: 1; }
}

/* ---------------------------------------------------------------- Community */

.community__inner { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.community__inner.has-photo { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.community__photo { margin: 0; border-radius: var(--radius-photo); overflow: hidden; aspect-ratio: 5 / 4; }
.community__photo img { width: 100%; height: 100%; object-fit: cover; }
.community__inner:not(.has-photo) .community__text { max-width: 760px; }
.community__title { font-size: var(--step-4); letter-spacing: -0.015em; }
.community__text > p { margin-top: 16px; max-width: 52ch; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.stats { display: flex; flex-wrap: wrap; gap: 24px 48px; margin: 32px 0 0; }
.stats__item { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--font-display); font-size: var(--step-4); font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--rose-deep); }
.stats dt { margin-top: 6px; color: var(--muted); font-weight: 700; }
.community__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 860px) {
	.community__inner.has-photo { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Newsletter */

.newsletter { position: relative; overflow-x: clip; background: var(--rose-deep); color: #fff; }
.newsletter__inner {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 24px clamp(32px, 6vw, 96px);
	align-items: center;
	padding-block: clamp(48px, 6vw, 80px);
}
.newsletter__title { font-size: var(--step-3); }
.newsletter__text p { margin-top: 12px; max-width: 46ch; color: rgba(255, 255, 255, 0.86); font-size: var(--step-1); line-height: 1.5; }
.newsletter__admin-note { padding: 14px 16px; border: 1.5px dashed rgba(255, 255, 255, 0.6); border-radius: var(--radius-control); }

/* Signup forms from newsletter plugins (Icegram Express and similar). */
.newsletter__form form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.newsletter__form form > * { margin: 0; }
.newsletter__form label { display: block; width: 100%; font-weight: 700; font-size: 0.9375rem; }
.newsletter__form .es-field-wrap,
.newsletter__form .es_subscription_form_fields { flex: 1 1 220px; }
.newsletter__form input[type="email"],
.newsletter__form input[type="text"] {
	width: 100%;
	min-height: 52px;
	margin-top: 6px;
	padding: 12px 16px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
}
.newsletter__form input[type="submit"],
.newsletter__form button[type="submit"] {
	min-height: 52px;
	padding: 12px 24px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-weight: 700;
}
.newsletter__form input[type="submit"]:hover,
.newsletter__form button[type="submit"]:hover { opacity: 0.88; }
.newsletter__form a { color: #fff; }
/* Built-in signup form (MailerLite). Sits on the pink band. */
.signup { display: grid; gap: 18px; }
.newsletter__form .signup { display: grid; }
.signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup__row { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__form .signup__email,
.newsletter__form input.signup__email {
	flex: 1 1 240px;
	width: auto;
	min-height: 48px;
	margin: 0;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.2;
}
.signup__email::placeholder { color: var(--muted); opacity: 1; }
.newsletter__form .signup__button,
.newsletter__form button.signup__button[type="submit"] {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 12px 22px;
	border: 1.5px solid #fff;
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity .15s;
}
.newsletter__form .signup__button:hover { opacity: 0.88; }
.signup.is-sending .signup__button { opacity: 0.6; cursor: progress; }
.signup__interests { margin: 0; padding: 0; border: 0; min-width: 0; }
.signup__interests legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 0.9375rem; }
.signup__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter__form .signup__choice { display: inline-flex; width: auto; font-weight: 400; cursor: pointer; }
.signup__choice input { position: absolute; opacity: 0; pointer-events: none; }
.signup__choice span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 0.9375rem;
	line-height: 1.2;
	transition: background .15s, color .15s;
}
.signup__choice span::before {
	content: "";
	width: 14px;
	height: 14px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	box-sizing: border-box;
}
.signup__choice:hover span { background: rgba(255, 255, 255, 0.26); }
.signup__choice input:checked + span { background: #fff; color: var(--ink); }
.signup__choice input:checked + span::before { border-color: var(--rose); background: var(--rose); }
.signup__small { margin: 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.86); }
.signup__small a { color: #fff; font-weight: 700; }
.signup__message:empty { display: none; }
.signup__message { margin: 0; padding: 12px 18px; border-radius: var(--radius-control); background: #fff; color: var(--ink); font-weight: 700; }
@media (max-width: 560px) {
	.newsletter__form .signup__button { flex-basis: 100%; }
}
.signup.is-done .signup__row,
.signup.is-done .signup__interests,
.signup.is-done .signup__small { display: none; }
@media (max-width: 860px) {
	.newsletter__inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--ink); color: var(--ink-soft); font-size: 0.9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
	padding-block: clamp(48px, 6vw, 80px);
}
.site-footer__about .site-logo { color: #fff; }
.site-footer__about p { margin-top: 18px; max-width: 34ch; }
.site-footer__about .social { margin-top: 16px; margin-left: -10px; }
.site-footer .social a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-footer__heading { margin-bottom: 14px; color: #fff; font-family: var(--font-text); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.site-footer__links,
.site-footer .menu { display: grid; gap: 8px; list-style: none; }
.site-footer__bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	padding-block: 22px 28px;
	font-size: 0.875rem;
}
.site-footer__bottom::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--gutter);
	right: var(--gutter);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: 20px; list-style: none; }
.site-footer__bottom .site-footer__credit { margin-left: auto; }
.site-footer__credit a { color: var(--ink-soft); }
@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.site-footer__bottom .site-footer__credit { margin-left: 0; }
}

/* ---------------------------------------------------------------- Page heroes */

.page-hero { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 48px); background: var(--mist); }
.page-hero__title { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.015em; max-width: 20ch; }
.page-hero__intro { margin-top: 14px; max-width: 60ch; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.page-hero .button { margin-top: 24px; }
.page-hero--article .page-hero__title { max-width: none; }
.page-hero--photo {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	min-height: clamp(360px, 52vw, 560px);
	background: var(--ink);
	color: #fff;
}
.page-hero--photo > .wrap { width: 100%; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(14, 16, 25, 0.88) 0%, rgba(14, 16, 25, 0.45) 55%, rgba(14, 16, 25, 0.25) 100%);
}
.page-hero--photo .page-hero__title { color: #fff; }
.page-hero--photo .article__meta,
.page-hero--photo .back-link { color: var(--ink-soft); }
.page-hero--photo .back-link:hover { color: #fff; }

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 18px;
	margin-left: -4px;
	color: var(--muted);
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
}
.back-link .icon { width: 18px; height: 18px; }
.back-link:hover { color: var(--ink); }

.page-body { padding-block: clamp(32px, 5vw, 56px) var(--section); }
.page-body__image { margin: 0 0 32px; }
/* Show images at their real size at most, never stretched: small publisher
   images stay sharp instead of being blown up to the column width. */
.page-body__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
	border-radius: var(--radius-photo);
}
.article__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; color: var(--muted); font-weight: 400; }

/* ---------------------------------------------------------------- Prose */

.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.6em; font-size: var(--step-1); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose img { border-radius: var(--radius-photo); }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--rose); font-size: 1.15rem; }

.builder-content { min-height: 40vh; }

/* ---------------------------------------------------------------- Directory */

.directory {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	padding-block: clamp(28px, 4vw, 48px) var(--section);
}

.filters {
	position: sticky;
	top: calc(var(--header-h) + 20px);
	display: grid;
	gap: 22px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--paper);
	max-height: calc(100vh - var(--header-h) - 40px);
	overflow-y: auto;
}
.admin-bar .filters { top: calc(var(--header-h) + 52px); }
.filters__head { display: none; }
.filters__title { font-size: var(--step-1); }
.filters__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mist); }

/* Filters apply as you change them when JS runs; the button is the no-JS fallback. */
.js .filters__actions { display: none; }
.filters__actions .button { width: 100%; }

.field { display: grid; gap: 8px; }
.field__label { display: block; padding: 0; font-weight: 700; font-size: 0.9375rem; }
.field__control { position: relative; }
.field__control select,
.field__control input {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-height: 48px;
	padding: 11px 42px 11px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-control);
	background: var(--paper);
	color: var(--ink);
	font-size: 1rem;
}
.field__control select:hover,
.field__control input:hover { border-color: var(--steel); }
.field__control select:focus,
.field__control input:focus { border-color: var(--rose); }
.field__control .icon { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.field__control--search .icon { right: auto; left: 14px; }
.field__control--search input { padding-left: 42px; padding-right: 14px; }

.pills { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.pills__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.9375rem;
	cursor: pointer;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}
.pill span .icon { width: 16px; height: 16px; color: var(--rose-deep); }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:checked + span .icon { color: var(--cyan); }
.pill input:focus-visible + span { border-color: var(--rose); }

.check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }

.results { min-width: 0; }
.results.is-loading [data-cards],
.results.is-loading .empty { opacity: 0.45; transition: opacity 0.15s ease; }
.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.results__count { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; }
.filters-open { display: none; }
.filters-open__count {
	display: grid;
	place-items: center;
	min-width: 22px; height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--rose-deep);
	color: #fff;
	font-size: 0.75rem;
}

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; list-style: none; }
.active-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px 6px 14px;
	border-radius: 999px;
	background: var(--mist);
	color: var(--ink);
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
}
.active-filter .icon { width: 16px; height: 16px; opacity: 0.6; }
.active-filter:hover { background: var(--mist-2); color: var(--ink); }
.active-filters__clear { margin-left: 4px; color: var(--muted); font-weight: 700; font-size: 0.9375rem; }

.load-more { margin-top: 36px; text-align: center; }

.empty { padding: 40px 24px; margin-bottom: 28px; border: 1.5px dashed var(--line); border-radius: var(--radius-card); text-align: center; }
.empty__title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; }
.empty p + p { margin-top: 10px; color: var(--muted); }
.empty .button { margin-top: 8px; }

.filters-scrim { display: none; }

@media (max-width: 960px) {
	.directory { grid-template-columns: 1fr; }
	.filters-open { display: inline-flex; }
	.filters {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 60;
		width: min(400px, 92vw);
		max-height: none;
		border: 0;
		border-radius: 0 var(--radius-card) var(--radius-card) 0;
		padding: 20px var(--gutter) 32px;
		align-content: start;
		transform: translateX(-102%);
		transition: transform 0.25s ease;
		}
	.admin-bar .filters { top: 0; }
	.filters.is-open { transform: none; }
	.filters__head { display: flex; align-items: center; justify-content: space-between; }
	.filters__actions,
	.js .filters__actions { display: block; position: sticky; bottom: -32px; margin: 0 calc(var(--gutter) * -1) -32px; padding: 16px var(--gutter) 24px; background: var(--paper); border-top: 1px solid var(--line); }
	.filters-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(14, 16, 25, 0.45); }
}

/* ---------------------------------------------------------------- Event and venue pages */

.event__head,
.venue__head { padding-block: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 36px); }
.event__title,
.venue__title { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.015em; max-width: 24ch; }
.event__when {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 14px;
	color: var(--ink);
	font-size: var(--step-1);
	font-weight: 700;
}
.event__at { color: var(--muted); font-weight: 400; }
.event__flags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.event__flags .badge--ours,
.event__flags .badge--cancelled { color: #fff; }

.venue__kind { margin-bottom: 8px; color: var(--muted); font-weight: 700; }
.venue__kind a { color: var(--rose-deep); text-decoration: none; }
.venue__kind a:hover { color: var(--ink); }
.venue__address { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: var(--muted); font-size: var(--step-1); }
.venue__address .icon { margin-top: 4px; }

.event__layout,
.venue__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: clamp(32px, 4vw, 56px);
	align-items: start;
	padding-bottom: var(--section);
}
.venue__layout { padding-top: clamp(28px, 4vw, 48px); }

.event__image { margin: 0 0 32px; border-radius: var(--radius-photo); overflow: hidden; aspect-ratio: 16 / 9; background: var(--mist-2); }
.event__image img { width: 100%; height: 100%; object-fit: cover; }
/* Small source images: real size, centred on a blurred copy of themselves. */
.event__image.is-small { position: relative; display: grid; place-items: center; }
.event__image.is-small .event__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(32px) saturate(1.15); transform: scale(1.25); opacity: 0.6; }
.event__image.is-small .event__photo { position: relative; width: auto; height: auto; max-width: calc(100% - 48px); max-height: calc(100% - 48px); object-fit: contain; border-radius: var(--radius-photo); }
.event__content { margin-top: 8px; }
.event__source { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }

.take { margin: 0 0 28px; padding: 20px 22px; border-radius: var(--radius-card); background: var(--cyan-tint); }
.take__label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9375rem; }
.take__label .icon { width: 18px; height: 18px; color: #0a8fa0; }
.take__text { margin-top: 8px; font-family: var(--font-display); font-size: var(--step-1); font-weight: 400; line-height: 1.45; letter-spacing: -0.005em; }

.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); }
.panel--sticky { display: grid; gap: 14px; }

/* The whole sidebar sticks as one unit, so the map can never slide over the
   booking panel. Only on screens tall enough to show all of it. */
@media (min-width: 961px) and (min-height: 940px) {
	.event__aside,
	.venue__aside { position: sticky; top: calc(var(--header-h) + 20px); }
	.admin-bar .event__aside,
	.admin-bar .venue__aside { top: calc(var(--header-h) + 52px); }
}
.panel--map { margin-top: 16px; }
.panel__rows { display: grid; gap: 16px; margin: 0 0 6px; }
.panel__row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.panel__row dt { padding-top: 2px; color: var(--rose-deep); }
.panel__row dd { display: grid; gap: 2px; margin: 0; overflow-wrap: anywhere; }
.panel__row dd span { color: var(--muted); }
.panel__row dd a { color: var(--ink); font-weight: 700; }
.panel__row dd a:hover { color: var(--rose-deep); }

.share { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.share__label { margin-bottom: 10px; font-weight: 700; font-size: 0.9375rem; }
.share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	gap: 6px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
}
.share__btn .icon { width: 18px; height: 18px; }
.share__btn:hover { border-color: var(--ink); color: var(--ink); }
.share__btn--icon { flex: 0 0 auto; width: 44px; padding: 0; position: relative; }
.share__btn--icon[hidden] { display: none; }
.share__copied:empty { display: none; }
.share__copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: var(--tag-radius); background: var(--ink); color: #fff; font-size: 0.8125rem; white-space: nowrap; }
.share--article { margin: 40px 0 0; }

.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-photo); overflow: hidden; background: var(--mist); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__placeholder { display: grid; place-items: center; align-content: center; gap: 10px; height: 100%; padding: 16px; text-align: center; }
.map__placeholder > .icon { width: 36px; height: 36px; color: var(--rose); stroke-width: 1.5; }
.map__note { color: var(--muted); font-size: 0.8125rem; }
.map__open { margin-top: 10px; font-size: 0.9375rem; }
.map__open a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.map__open .icon { width: 15px; height: 15px; }

.venue__section + .venue__section,
.take + .venue__section,
.venue__content + .venue__section { margin-top: 40px; }
.venue__section .take { margin-top: 0; }
.venue__subtitle { margin-bottom: 18px; font-size: var(--step-2); }
.venue__main > .take { margin-top: 32px; }
.venue__main > .take:first-child { margin-top: 0; }
.venue__content { margin-top: 32px; }

/* Photo mosaic on venue pages */
.mosaic {
	display: grid;
	gap: 10px;
	margin: 0;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, clamp(150px, 17vw, 230px));
	border-radius: var(--radius-photo);
	overflow: hidden;
}
.mosaic__item { margin: 0; overflow: hidden; background: var(--mist-2); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__item:first-child { grid-row: span 2; }
.mosaic--1 { grid-template-columns: 1fr; grid-template-rows: clamp(220px, 34vw, 460px); }
.mosaic--1 .mosaic__item:first-child { grid-row: auto; }
.mosaic--2 { grid-template-columns: 2fr 1fr; }
.mosaic--3 { grid-template-columns: 2fr 1fr; }
.mosaic--4 .mosaic__item:nth-child(2) { grid-column: span 2; }

/* Phones: keep the booking button in reach while reading. */
.cta-bar { display: none; }
@media (max-width: 960px) {
	.cta-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
		background: var(--paper);
		border-top: 1px solid var(--line);
		}
	.cta-bar__text { display: grid; line-height: 1.3; }
	.cta-bar__text strong { font-size: 1.125rem; }
	.cta-bar__text span { color: var(--muted); font-size: 0.875rem; }
	.single-tlsh_event .site-footer { padding-bottom: 80px; }
	.event__layout,
	.venue__layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.mosaic,
	.mosaic--2,
	.mosaic--3 {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		height: 260px;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		border-radius: 0;
		scrollbar-width: none;
	}
	.mosaic__item { flex: 0 0 86%; border-radius: var(--radius-photo); scroll-snap-align: center; }
	.mosaic--1 .mosaic__item { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- Pagination (blog) */

.pagination { margin-top: 40px; }
.pagination,
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px; height: 44px;
	padding: 0 14px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.dots { border-color: transparent; min-width: 24px; padding: 0 4px; }

/* ---------------------------------------------------------------- Motion */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- About page */

.about-story__inner { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-story__inner.has-photo { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.about-story__text { font-size: var(--step-1); line-height: 1.6; }
.about-story__photo { margin: 0; border-radius: var(--radius-photo); overflow: hidden; aspect-ratio: 4 / 3; }
.about-story__photo img { width: 100%; height: 100%; object-fit: cover; }

/* About: how it works */
.how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.how__step { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-card); background: var(--paper); }
.how__num { position: absolute; top: clamp(20px, 3vw, 32px); right: clamp(20px, 3vw, 32px); font-family: var(--font-display); font-size: var(--step-3); font-weight: 900; line-height: 1; color: var(--steel); }
.how__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--rose); color: #fff; }
.how__icon .icon { width: 22px; height: 22px; }
.how__title { margin-top: 20px; font-size: var(--step-1); }
.how__text { margin-top: 8px; color: var(--muted); line-height: 1.55; }
@media (max-width: 860px) {
	.how__steps { grid-template-columns: 1fr; }
}

.stats--wide { justify-content: space-around; margin: 0; text-align: center; }
.stats--wide .stats__item { align-items: center; }

.team__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 220px));
	gap: 32px;
	list-style: none;
}
.team__person { text-align: center; }
.team__photo {
	display: block;
	width: 140px;
	height: 140px;
	margin: 0 auto 16px;
	border-radius: var(--radius-photo);
	object-fit: cover;
}
.team__photo--initial {
	display: grid;
	place-items: center;
	background: var(--rose-tint);
	color: var(--rose);
	font-family: var(--font-display);
	font-size: 3rem;
	font-weight: 700;
}
.team__name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; color: var(--ink); }
.team__role { margin-top: 2px; color: var(--muted); }

.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band__title { font-size: var(--step-3); }
.cta-band__text p { margin-top: 12px; max-width: 52ch; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button--light { background: #fff; border-color: #fff; color: var(--ink); }
.button--light:hover { color: var(--ink); }

@media (max-width: 860px) {
	.about-story__inner.has-photo { grid-template-columns: 1fr; }
	.about-story__photo { order: -1; }
	.team__photo { width: 112px; height: 112px; }
}

/* ---------------------------------------------------------------- Contact page */

.contact {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
	padding-block: clamp(32px, 5vw, 56px) var(--section);
}
.contact__form { padding: clamp(22px, 3vw, 36px); }
.contact__subtitle { margin-bottom: 16px; font-size: var(--step-2); }
.contact__block + .contact__block { margin-top: 36px; }
.contact__email { color: var(--ink); font-size: var(--step-1); font-weight: 700; overflow-wrap: anywhere; }
.contact__email:hover { color: var(--rose); }
.contact__links { display: grid; list-style: none; }
.contact__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-weight: 700;
}
.contact__link span { flex: 1; }
.contact__link .icon { width: 22px; height: 22px; color: var(--rose); }
.contact__link .icon-chevron { width: 18px; height: 18px; color: var(--muted); }
.contact__link:hover { color: var(--rose); }

@media (max-width: 860px) {
	.contact { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Forms (WPForms and similar) */

.form-skin .wpforms-container {
	--wpforms-field-border-radius: 12px;
	--wpforms-field-border-color: var(--line);
	--wpforms-field-text-color: var(--ink);
	--wpforms-label-color: var(--ink);
	--wpforms-button-background-color: var(--rose);
	--wpforms-button-text-color: #fff;
	--wpforms-button-border-radius: 999px;
	--wpforms-field-size-font-size: 1rem;
	--wpforms-label-size-font-size: 0.9375rem;
	margin: 0 !important;
}
.form-skin .wpforms-container .wpforms-form .wpforms-field { padding: 0 0 18px; }
.form-skin .wpforms-container .wpforms-form .wpforms-field-label {
	margin-bottom: 8px;
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 0.9375rem;
	font-weight: 700;
}
.form-skin .wpforms-container .wpforms-form .wpforms-required-label { color: var(--rose); }
.form-skin .wpforms-container .wpforms-form input[type="text"],
.form-skin .wpforms-container .wpforms-form input[type="email"],
.form-skin .wpforms-container .wpforms-form input[type="tel"],
.form-skin .wpforms-container .wpforms-form select,
.form-skin .wpforms-container .wpforms-form textarea {
	width: 100%;
	max-width: none;
	min-height: 50px;
	padding: 12px 16px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	box-shadow: none;
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1rem;
}
.form-skin .wpforms-container .wpforms-form textarea { min-height: 160px; resize: vertical; }
.form-skin .wpforms-container .wpforms-form input:focus,
.form-skin .wpforms-container .wpforms-form select:focus,
.form-skin .wpforms-container .wpforms-form textarea:focus { border-color: var(--rose); box-shadow: none; outline: none; }
.form-skin .wpforms-container .wpforms-form ::placeholder { color: var(--muted); opacity: 1; }
.form-skin .wpforms-container .wpforms-form .wpforms-submit-container { padding: 6px 0 0; }
.form-skin .wpforms-container .wpforms-form button[type="submit"] {
	min-height: 50px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--rose);
	color: #fff;
	font-family: var(--font-text);
	font-size: 1rem;
	font-weight: 700;
	box-shadow: none;
}
.form-skin .wpforms-container .wpforms-form button[type="submit"]:hover { background: var(--rose); opacity: 0.88; }
.form-skin .wpforms-container .wpforms-form label.wpforms-error,
.form-skin .wpforms-container .wpforms-form em.wpforms-error { color: #b42318; font-size: 0.875rem; }
.form-skin .wpforms-confirmation-container-full {
	padding: 18px 20px;
	border: 0;
	border-radius: 12px;
	background: var(--cyan-tint);
	color: var(--ink);
}

/* No shadows anywhere on the site. */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }

/* Main headings: Articulat CF Black (900, already in the Adobe Fonts kit). */
h1, h2,
h1[class], h2[class] { font-weight: 900; }

/* ---------------------------------------------------------------- Plugin buttons */

/* Buttons printed by the events plugin (e.g. "Read the full story" on news) match the theme's. */
body .tlsh-ev-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 1.5px solid var(--rose);
	border-radius: 999px;
	background: var(--rose);
	color: #fff;
	font-family: var(--font-text);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.15s ease;
}
body .tlsh-ev-button:hover,
body .tlsh-ev-button:focus { background: var(--rose); color: #fff; opacity: 0.88; }

/* ---------------------------------------------------------------- Festivals page */

.festivals__count { margin: 0 0 18px; display: inline-block; padding: var(--tag-pad); border-radius: var(--tag-radius); background: var(--cyan); color: var(--ink); font-size: var(--tag-size); font-weight: 700; }
.festivals__lead { padding-bottom: 0; }
.festivals__month + .festivals__month { margin-top: clamp(40px, 5vw, 64px); }
.festivals__month-title { margin-bottom: 20px; font-size: var(--step-2); }
.fest-card__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--rose); font-weight: 700; }
.fest-card__cta .icon { width: 16px; height: 16px; }
.fest-card .ev-card__media img { width: 100%; height: 100%; object-fit: cover; }
.festivals__note { margin-top: 40px; color: var(--muted); font-size: 0.875rem; }

/* Festival with several sessions: one row per date. */
.fest-dates { margin-top: 32px; scroll-margin-top: calc(var(--header-h) + 16px); }
.fest-dates__title { margin-bottom: 14px; font-size: var(--step-1); }
.fest-dates__list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-card); }
.fest-dates__item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.fest-dates__item + .fest-dates__item { border-top: 1px solid var(--line); }
.fest-dates__when { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fest-dates__when span { color: var(--muted); font-size: 0.875rem; }
.fest-dates__price { font-weight: 700; white-space: nowrap; }
.fest-dates__item .button { flex-shrink: 0; }
@media (max-width: 560px) {
	.fest-dates__item { flex-wrap: wrap; }
	.fest-dates__when { flex-basis: 100%; }
	.fest-dates__item .button { margin-left: auto; }
}

/* Page heroes that reuse the homepage hero (e.g. London festivals). */
.hero--page { padding-block: clamp(56px, 8vw, 120px); }
.hero--page .hero__title { max-width: 16ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
#festivals { scroll-margin-top: calc(var(--header-h) + 16px); }
