/*
 * Cookie Jar Core: structural styles shared by every club site.
 *
 * No club colours or fonts here. Anything a club might change is read from a
 * theme.json preset or from a `--wp--custom--cj--*` property that the child
 * theme sets under settings.custom.cj (see CLAUDE.md). Fallbacks are neutral.
 *
 * Design language: full-bleed photography, one title per section, square
 * corners, small uppercase "label" text for nav, buttons and eyebrows.
 */

/* ------------------------------------------------------------------ *
 * Tokens
 * ------------------------------------------------------------------ */

:root {
	--cj-gutter: var(--wp--custom--cj--gutter, 4.5vw);
	--cj-max: var(--wp--custom--cj--max-width, 1200px);
	--cj-tint: var(--wp--custom--cj--tint, 0 0 0);
	--cj-dark: var(--wp--custom--cj--dark, var(--wp--preset--color--contrast));
	--cj-deep: var(--wp--custom--cj--deep, #111);
	--cj-light: var(--wp--custom--cj--light, var(--wp--preset--color--muted));
	--cj-on-dark: var(--wp--custom--cj--on-dark, #fff);
	--cj-on-light: var(--wp--custom--cj--on-light, var(--wp--preset--color--contrast));
	--cj-accent: var(--wp--custom--cj--accent, currentColor);
	--cj-brand: var(--wp--custom--cj--brand, var(--wp--preset--color--primary));
	--cj-display: var(--wp--custom--cj--display-font, var(--wp--preset--font-family--heading));
	--cj-label-font: var(--wp--custom--cj--label--font, var(--wp--preset--font-family--body));
	--cj-label-size: var(--wp--custom--cj--label--size, 0.75rem);
	--cj-label-weight: var(--wp--custom--cj--label--weight, 700);
	--cj-label-tracking: var(--wp--custom--cj--label--tracking, 0.12em);
	--cj-body-size: var(--wp--custom--cj--body--size, 1rem);
	--cj-body-line: var(--wp--custom--cj--body--line-height, 1.7);
	--cj-body-max: var(--wp--custom--cj--body--max-width, 40em);
	--cj-body-on-dark: var(--wp--custom--cj--body--on-dark, rgb(255 255 255 / 0.86));
}

/* ------------------------------------------------------------------ *
 * Page structure
 * ------------------------------------------------------------------ */

.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Full-width templates: stacked sections touch, no gap between bands.
 * Doubled class so this beats WordPress's layout rule
 * `:root :where(.is-layout-constrained) > * { margin-block-start: <blockGap> }`,
 * which has the same specificity and prints later (global styles), and
 * would otherwise leave a strip of page background between sections. */
.cj-sections.cj-sections > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

main {
	scroll-margin-top: var(--cj-header-height, 0px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

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

/* Square corners everywhere. */
.wp-site-blocks :where(img, iframe, input, textarea, select, button, .wp-block-button__link, .wp-block-cover, .wp-block-image) {
	border-radius: 0;
}

/* ------------------------------------------------------------------ *
 * Type helpers
 * ------------------------------------------------------------------ */

/* Label: nav, buttons, eyebrows, footer headings. */
.is-style-label,
.cj-label {
	font-family: var(--cj-label-font);
	font-size: var(--cj-label-size) !important;
	font-style: normal;
	font-weight: var(--cj-label-weight);
	line-height: 1.4;
	letter-spacing: var(--cj-label-tracking);
	text-transform: uppercase;
}

.cj-display {
	font-family: var(--cj-display);
	font-style: italic;
	font-weight: 400;
}

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

.wp-block-button__link {
	font-family: var(--cj-label-font);
	font-size: var(--cj-label-size);
	font-weight: var(--cj-label-weight);
	line-height: 1.4;
	letter-spacing: var(--cj-label-tracking);
	text-transform: uppercase;
	border-radius: 0;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Ghost: transparent, light text, translucent light border. */
.wp-block-button.is-style-ghost > .wp-block-button__link {
	background: transparent;
	color: var(--cj-on-dark);
	border: 1px solid rgb(255 255 255 / 0.7);
}

.wp-block-button.is-style-ghost > .wp-block-button__link:hover,
.wp-block-button.is-style-ghost > .wp-block-button__link:focus-visible {
	background: var(--cj-on-dark);
	color: var(--cj-dark);
	border-color: var(--cj-on-dark);
}

/* Outline in the current text colour (navy outline on light sections). */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--cj-dark);
	color: var(--cj-on-dark);
	border-color: var(--cj-dark);
}

/* Arrow link: label text, right arrow, thin underline. */
.wp-block-button.is-style-arrow > .wp-block-button__link,
.wp-block-button.is-style-text > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	background: transparent;
	color: inherit;
	border: 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.6);
}

.wp-block-button.is-style-arrow > .wp-block-button__link::after {
	content: "";
	flex: 0 0 auto;
	width: 22px;
	height: 10px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M0 5h21M16.5 0.5 21 5l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M0 5h21M16.5 0.5 21 5l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.wp-block-button.is-style-arrow > .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* Light sections: arrow underline follows the text colour. */
.cj-on-light .wp-block-button.is-style-arrow > .wp-block-button__link {
	border-bottom-color: currentColor;
}

/* Text link: label style with no underline (header utility links). */
.wp-block-button.is-style-text > .wp-block-button__link {
	padding: 0;
	border-bottom: 0;
}

/* On dark backgrounds links turn the accent colour on hover. */
:is(.cj-on-dark, .cj-header, .cj-footer) .wp-block-button:is(.is-style-arrow, .is-style-text) > .wp-block-button__link:hover,
:is(.cj-on-dark, .cj-header, .cj-footer) .wp-block-button:is(.is-style-arrow, .is-style-text) > .wp-block-button__link:focus-visible {
	color: var(--cj-accent);
}

.cj-on-light .wp-block-button.is-style-arrow > .wp-block-button__link:hover {
	color: var(--cj-brand);
}

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

.cj-header {
	--cj-header-bg: var(--wp--custom--cj--header--background, var(--wp--preset--color--base));
	--cj-header-fg: var(--wp--custom--cj--header--text, var(--wp--preset--color--contrast));
	position: relative;
	z-index: 1000;
	padding: 22px var(--cj-gutter) !important;
	background-color: var(--cj-header-bg);
	color: var(--cj-header-fg);
	transition:
		transform 0.35s ease,
		background-color 0.35s ease,
		color 0.35s ease;
}

.cj-header a:where(:not(.wp-element-button)) {
	color: inherit;
	text-decoration: none;
}

/* JS adds .cj-header-fixed to <html>; without JS the header sits at the top. */
.cj-header-fixed .cj-header {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	left: 0;
}

@media (max-width: 600px) {
	.cj-header-fixed .cj-header {
		top: 0;
	}
}

.cj-header-fixed:not(.cj-header-overlay) .wp-site-blocks {
	padding-top: var(--cj-header-height, 0px);
}

.cj-header.is-hidden {
	transform: translateY(-100%);
	/* While sliding away, hold the colours; any change (transparent to
	 * solid) happens only once the header is out of view. */
	transition:
		transform 0.35s ease,
		background-color 0s linear 0.35s,
		color 0s linear 0.35s;
}

/* Transparent over a hero (.cj-hero as the first block on the page). */
.cj-header.is-overlay {
	background-color: transparent;
	color: var(--wp--custom--cj--header--overlay-text, #fff);
}

.cj-header__inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 30px;
	max-width: var(--cj-max);
	margin-inline: auto;
}

.cj-header__inner > .wp-block-navigation {
	margin-inline-start: auto;
}

.cj-header__buttons {
	flex-wrap: nowrap;
	align-items: center;
	gap: 24px !important;
}

.cj-header__buttons .wp-block-button__link {
	white-space: nowrap;
}

.cj-header__buttons .wp-block-button:not([class*="is-style-"]) > .wp-block-button__link {
	padding: 15px 24px;
}

/* Thin divider between the menu and the utility links. */
.cj-header__buttons::before {
	content: "";
	flex: 0 0 1px;
	align-self: center;
	height: 22px;
	margin-inline-end: 6px;
	background: currentColor;
	opacity: 0.45;
}

/* Logos. A single .cj-logo is always shown. Optional .cj-logo--solid and
 * .cj-logo--overlay variants swap with the header state. */
.cj-header__brand {
	flex: 0 0 auto;
	margin: 0;
	padding-inline-end: var(--wp--custom--cj--logo--clear-space, 0px);
}

.cj-logo,
.cj-header__brand .wp-block-image {
	margin: 0;
	flex-shrink: 0;
}

.cj-logo img {
	display: block;
	width: var(--wp--custom--cj--logo--width, 160px);
	min-width: var(--wp--custom--cj--logo--min-width, 0px);
	max-width: none;
	height: auto;
	object-fit: contain;
	transform: none;
	filter: none;
}

.cj-header .cj-logo--overlay,
.cj-header.is-overlay .cj-logo--solid {
	display: none;
}

.cj-header.is-overlay .cj-logo--overlay {
	display: block;
}

@media (max-width: 600px) {
	.cj-header .cj-logo img {
		width: var(--wp--custom--cj--logo--mobile-width, var(--wp--custom--cj--logo--width, 140px));
	}
}

/* ------------------------------------------------------------------ *
 * Navigation: desktop
 * ------------------------------------------------------------------ */

.cj-header .wp-block-navigation {
	font-family: var(--cj-label-font);
	font-size: var(--cj-label-size);
	font-weight: var(--cj-label-weight);
	line-height: 1.4;
	letter-spacing: var(--cj-label-tracking);
	text-transform: uppercase;
}

.cj-header .wp-block-navigation__container {
	gap: 30px;
}

.cj-header .wp-block-navigation .wp-block-navigation-item__content {
	color: inherit;
}

.cj-header .wp-block-navigation-item__content:hover,
.cj-header .wp-block-navigation-submenu__toggle:hover,
.cj-header .wp-block-navigation-item__content:focus-visible,
.cj-header .wp-block-navigation-submenu__toggle:focus-visible {
	color: var(--cj-accent);
}

/* Dropdown: dark panel with label links. */
.cj-header .wp-block-navigation .has-child > .wp-block-navigation__submenu-container {
	min-width: 16rem;
	padding: 14px 0;
	border: 0;
	background-color: var(--wp--custom--cj--dropdown--background, var(--wp--preset--color--base)) !important;
	color: var(--wp--custom--cj--dropdown--text, var(--wp--preset--color--contrast)) !important;
}

.cj-header .wp-block-navigation .has-child > .wp-block-navigation__submenu-container {
	top: calc(100% + 14px);
}

/* Hover bridge so the pointer can cross the gap into the panel. */
.cj-header .wp-block-navigation .has-child > .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	inset: -14px 0 auto;
	height: 14px;
}

.cj-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 12px 24px;
}

.cj-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.cj-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--custom--cj--dropdown--accent, inherit);
	background-color: var(--wp--custom--cj--dropdown--hover-background, transparent);
}

.cj-header .wp-block-navigation__submenu-icon {
	width: 0.7em;
	height: 0.7em;
	margin-inline-start: 0.4em;
}

/* Parent items that only open a dropdown are buttons (submenuVisibility
 * "click"). On wide screens they also open on hover and on keyboard focus.
 * Escape adds .cj-dismissed (header.js) so the menu can be closed again. */
@media (min-width: 1280px) {
	.cj-header .wp-block-navigation .has-child.open-on-click:not(.cj-dismissed):hover > .wp-block-navigation__submenu-container,
	.cj-header .wp-block-navigation .has-child.open-on-click:not(.cj-dismissed):focus-within > .wp-block-navigation__submenu-container {
		visibility: visible;
		overflow: visible;
		opacity: 1;
		width: auto;
		height: auto;
		min-width: 16rem;
	}
}

/* 1280–1439px: tighter spacing so logo, menu, utility links and the button
 * stay on one row. */
@media (min-width: 1280px) and (max-width: 1439px) {
	.cj-header {
		--cj-label-tracking: 0.18em;
	}

	.cj-header__inner,
	.cj-header .wp-block-navigation__container {
		gap: 0 20px;
	}

	.cj-header__buttons {
		gap: 16px !important;
	}
}

/* ------------------------------------------------------------------ *
 * Navigation: full-screen menu below 1280px
 * ------------------------------------------------------------------ */

.cj-overlay-actions {
	display: none;
}

@media (max-width: 1279px) {
	.cj-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.cj-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	/* Phone and tablet bar: logo left, menu icon right. Every header button
	 * moves into the full-screen menu (cloned by header.js). */
	.cj-header__buttons {
		display: none !important;
	}

	.cj-header__brand {
		margin-inline-end: auto;
	}
}

.cj-header .wp-block-navigation__responsive-container-open,
.cj-header .wp-block-navigation__responsive-container-close {
	min-width: 48px;
	min-height: 48px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: inherit;
}

.cj-header .wp-block-navigation__responsive-container-open svg,
.cj-header .wp-block-navigation__responsive-container-close svg {
	width: 30px;
	height: 30px;
}

.cj-header .wp-block-navigation__responsive-container-open {
	margin-inline-end: -10px;
}

.cj-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 22px var(--cj-gutter) 40px;
	background-color: var(--wp--custom--cj--menu-overlay--background, var(--wp--preset--color--contrast)) !important;
	color: var(--wp--custom--cj--menu-overlay--text, var(--wp--preset--color--base)) !important;
}

.cj-header .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 22px;
	right: calc(var(--cj-gutter) - 10px);
}

.cj-header .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	padding-top: 72px;
}

.cj-header .is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0 !important;
	align-items: stretch !important;
}

.cj-header .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid rgb(255 255 255 / 0.18);
	flex-direction: column;
	align-items: stretch !important;
}

.cj-header .is-menu-open .wp-block-navigation-item__content,
.cj-header .is-menu-open .wp-block-navigation-submenu__toggle {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 56px;
	padding: 8px 0 !important;
	font-size: var(--wp--custom--cj--menu-overlay--font-size, var(--cj-label-size));
	color: inherit;
	text-align: start;
}

/* Submenus collapse and expand on tap. */
.cj-header .is-menu-open .has-child > .wp-block-navigation__submenu-container {
	display: none !important;
}

.cj-header .is-menu-open .has-child > [aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	display: flex !important;
	flex-direction: column;
	padding: 0 0 12px 16px !important;
	border: 0;
	background: transparent !important;
	color: inherit !important;
}

.cj-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	border-bottom: 0;
}

.cj-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	min-height: 48px;
	opacity: 0.86;
}

.cj-header .is-menu-open .wp-block-navigation-submenu__toggle {
	justify-content: space-between;
	background: none;
	border: 0;
	cursor: pointer;
}

.cj-header .is-menu-open .wp-block-navigation-submenu__toggle::after {
	content: "+";
	margin-inline-start: 1rem;
	font-size: 1.75em;
	font-weight: 300;
	line-height: 1;
	color: var(--wp--custom--cj--menu-overlay--accent, currentColor);
}

.cj-header .is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"]::after {
	content: "\2212";
}

.cj-header .is-menu-open .wp-block-navigation__submenu-icon {
	display: none;
}

.cj-header .is-menu-open .cj-overlay-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	margin-top: 32px;
}

.cj-header .is-menu-open .cj-overlay-actions .wp-block-button {
	display: block;
	width: 100%;
}

.cj-header .is-menu-open .cj-overlay-actions .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 15px 24px;
}

.cj-header .is-menu-open .cj-overlay-actions .is-style-text > .wp-block-button__link {
	border: 1px solid rgb(255 255 255 / 0.7);
}

/* ------------------------------------------------------------------ *
 * Shared photo sections (Cover blocks)
 *
 * Overlays come from CSS, not the block's overlay settings, so every
 * section of a kind looks the same. Managers swap the photo and set its
 * focal point in the block toolbar; the focal point becomes object-position.
 * ------------------------------------------------------------------ */

:is(.cj-hero, .cj-feature, .cj-tile, .cj-booking, .cj-split__media).wp-block-cover {
	margin-block: 0;
	padding: 0;
	color: var(--cj-on-dark);
	background-color: var(--cj-deep);
	overflow: hidden;
}

:is(.cj-hero, .cj-feature, .cj-tile, .cj-booking, .cj-split__media) > .wp-block-cover__image-background {
	object-fit: cover;
}

:is(.cj-hero, .cj-feature, .cj-tile, .cj-booking, .cj-split__media) > .wp-block-cover__background {
	opacity: 1 !important;
	background-color: transparent !important;
}

/* The editor may mark a pale photo "light"; keep the text light regardless. */
:is(.cj-hero, .cj-feature, .cj-tile, .cj-booking).is-light .wp-block-cover__inner-container,
:is(.cj-hero, .cj-feature, .cj-tile, .cj-booking) .wp-block-cover__inner-container {
	color: var(--cj-on-dark);
}

:is(.cj-hero, .cj-feature, .cj-tile, .cj-booking) :where(h1, h2, h3, p) {
	color: inherit;
}

/* Content row: title left, optional item right, bottom aligned. */
.cj-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end !important;
	justify-content: space-between;
	gap: 24px 48px;
	width: 100%;
	max-width: var(--cj-max);
	margin-inline: auto;
}

.cj-row > * {
	margin: 0 !important;
}

/* Hero ------------------------------------------------------------- */

.cj-hero.wp-block-cover {
	height: 100vh;
	min-height: 640px !important;
	align-items: flex-end;
}

@supports (height: 100svh) {
	.cj-hero.wp-block-cover {
		height: 100svh;
	}
}

.cj-hero > .wp-block-cover__background {
	background: linear-gradient(180deg, rgb(var(--cj-tint) / 0.74) 0%, rgb(var(--cj-tint) / 0.06) 30%, rgb(var(--cj-tint) / 0) 56%, rgb(var(--cj-tint) / 0.72) 100%) !important;
}

.cj-hero .wp-block-cover__inner-container {
	width: 100% !important;
	padding: 0 var(--cj-gutter) 64px;
}

.cj-hero__title,
.cj-hero h1 {
	margin: 0;
	font-family: var(--cj-display);
	font-size: clamp(52px, 6.2vw, 92px) !important;
	font-style: italic;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.01em;
}

.cj-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 36px !important;
}

.cj-hero__meta > * {
	margin: 0 !important;
}

/* Shorter hero (e.g. a visitor page). */
.cj-hero--short.wp-block-cover {
	height: 90vh;
	max-height: 820px;
}

/* "Scroll" cue: label followed by a short line. */
.cj-scroll {
	display: inline-flex;
	align-items: center;
	gap: 18px;
}

.cj-row > .cj-scroll {
	margin-inline-start: auto !important;
}

.cj-scroll::after {
	content: "";
	width: 64px;
	height: 1px;
	background: currentColor;
}

/* Full-width button shown in the hero on phones only. */
.cj-hero__phone-cta {
	display: none !important;
}

@media (max-width: 781px) {
	.cj-hero .wp-block-cover__inner-container {
		padding-bottom: 48px;
	}

	.cj-hero:has(.cj-hero__phone-cta) .wp-block-cover__inner-container {
		padding-bottom: 32px;
	}

	.cj-hero__phone-cta {
		display: flex !important;
		width: 100%;
	}

	.cj-hero__phone-cta .wp-block-button,
	.cj-hero__phone-cta .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.cj-scroll {
		display: none;
	}
}

/* Statement -------------------------------------------------------- */

.cj-statement {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	margin-block: 0;
	padding: 156px var(--cj-gutter) !important;
	text-align: center;
	background-color: var(--cj-dark);
	color: var(--cj-on-dark);
}

.cj-statement::before {
	content: "";
	width: 1px;
	height: 64px;
	background: var(--cj-accent);
}

.cj-statement > * {
	max-width: 980px;
	margin: 0 !important;
}

.cj-statement :where(h2, p.cj-statement__text) {
	font-family: var(--cj-display);
	font-size: clamp(36px, 4.2vw, 60px) !important;
	font-style: italic;
	font-weight: 400;
	line-height: 1.15;
	color: inherit;
}

.cj-statement .wp-block-buttons {
	justify-content: center;
}

@media (max-width: 781px) {
	.cj-statement {
		padding-block: 104px !important;
	}
}

/* Feature ---------------------------------------------------------- */

.cj-feature.wp-block-cover {
	min-height: 800px !important;
	align-items: flex-end;
}

.cj-feature--short.wp-block-cover {
	min-height: 700px !important;
}

.cj-feature > .wp-block-cover__background {
	background: linear-gradient(180deg, rgb(var(--cj-tint) / 0) 45%, rgb(var(--cj-tint) / 0.78) 100%) !important;
}

/* The inner container fills the photo (above the overlay) so the arrow
 * link can be stretched over the whole feature, like the tiles. */
.cj-feature .wp-block-cover__inner-container {
	position: absolute !important;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: auto !important;
	padding: 0 var(--cj-gutter) 64px;
}

.cj-feature .wp-block-button.is-style-arrow > .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
}

.cj-feature .wp-block-button.is-style-arrow > .wp-block-button__link:focus-visible {
	outline: none;
}

.cj-feature:has(.wp-block-button__link:focus-visible) {
	outline: 2px solid var(--cj-on-dark);
	outline-offset: -8px;
}

/* Hovering a feature or tile anywhere highlights its words in the accent
 * colour, showing the whole photo is a link. */
:is(.cj-feature, .cj-tile) :where(h2, h3, .wp-block-button__link) {
	transition: color 0.25s ease;
}

:is(.cj-feature, .cj-tile):is(:hover, :focus-within) :is(h2, h3, h2 a, h3 a),
.cj-feature:is(:hover, :focus-within) .wp-block-button.is-style-arrow > .wp-block-button__link {
	color: var(--cj-accent);
}

.cj-feature :where(h2) {
	margin: 0;
	font-family: var(--cj-display);
	font-size: clamp(48px, 5.6vw, 84px) !important;
	font-style: italic;
	font-weight: 400;
	line-height: 1.02;
}

@media (max-width: 781px) {
	.cj-feature.wp-block-cover,
	.cj-feature--short.wp-block-cover {
		min-height: 560px !important;
	}

	.cj-feature .wp-block-cover__inner-container {
		padding-bottom: 48px;
	}
}

/* Tile strip ------------------------------------------------------- */

.cj-tiles {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 !important;
	margin-block: 0;
	background: var(--cj-deep);
}

.cj-tiles > * {
	margin: 0 !important;
}

.cj-tile.wp-block-cover {
	min-height: 720px !important;
	align-items: flex-end;
	border-left: 1px solid rgb(255 255 255 / 0.2);
}

.cj-tile > .wp-block-cover__background {
	background: linear-gradient(180deg, rgb(var(--cj-tint) / 0) 50%, rgb(var(--cj-tint) / 0.82) 100%) !important;
}

.cj-tile .wp-block-cover__image-background {
	transition: transform 0.8s ease;
}

.cj-tile:hover .wp-block-cover__image-background,
.cj-tile:focus-within .wp-block-cover__image-background {
	transform: scale(1.03);
}

/* The inner container fills the tile (above the overlay) so the stretched
 * title link below covers the whole tile. */
.cj-tile .wp-block-cover__inner-container {
	position: absolute !important;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: auto !important;
	padding: 0 48px 48px;
}

.cj-tile .wp-block-cover__inner-container > * {
	margin: 0;
}

.cj-tile :where(h2, h3) {
	font-family: var(--cj-display);
	font-size: 46px !important;
	font-style: italic;
	font-weight: 400;
	line-height: 1.05;
}

/* The whole tile is a link: the title link is stretched over the tile. */
.cj-tile a {
	color: inherit;
	text-decoration: none;
}

.cj-tile a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.cj-tile a:focus-visible {
	outline: none;
}

.cj-tile:has(a:focus-visible) {
	outline: 2px solid var(--cj-on-dark);
	outline-offset: -8px;
}

@media (max-width: 1100px) and (min-width: 782px) {
	.cj-tile .wp-block-cover__inner-container {
		padding: 0 32px 40px;
	}

	.cj-tile :where(h2, h3) {
		font-size: 38px !important;
	}
}

@media (max-width: 781px) {
	.cj-tiles {
		grid-template-columns: 1fr;
	}

	.cj-tile.wp-block-cover {
		min-height: 340px !important;
		border-left: 0;
		border-top: 1px solid rgb(255 255 255 / 0.2);
	}

	.cj-tile .wp-block-cover__inner-container {
		padding: 0 var(--cj-gutter) 36px;
	}

	.cj-tile :where(h2, h3) {
		font-size: 38px !important;
	}
}

/* Booking band ----------------------------------------------------- */

/* Hovering or focusing the band's button highlights its title. */
.cj-booking :where(h2) {
	transition: color 0.25s ease;
}

.cj-booking:has(.wp-block-button__link:is(:hover, :focus-visible)) :where(h2) {
	color: var(--cj-accent);
}


.cj-booking.wp-block-cover {
	min-height: 620px !important;
	padding: 64px var(--cj-gutter);
}

.cj-booking > .wp-block-cover__background {
	background: rgb(var(--cj-tint) / 0.5) !important;
}

.cj-booking .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	text-align: center;
}

.cj-booking .wp-block-cover__inner-container > * {
	margin: 0 !important;
}

.cj-booking :where(h2) {
	font-family: var(--cj-display);
	font-size: clamp(52px, 6.4vw, 96px) !important;
	font-style: italic;
	font-weight: 400;
	line-height: 1;
}

.cj-booking .wp-block-buttons {
	justify-content: center;
}

@media (max-width: 781px) {
	.cj-booking.wp-block-cover {
		min-height: 520px !important;
	}
}

/* Split: photo one side, dark panel the other ---------------------- */

.cj-split {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 !important;
	margin-block: 0;
}

.cj-split > * {
	margin: 0 !important;
}

.cj-split__media.wp-block-cover {
	min-height: 680px !important;
}

/* Desktop: the photo keeps one fixed size (a viewport tall, at least
 * 680px) and stays pinned while the panel beside it grows, e.g. when an
 * accordion row opens. Stretching it with the panel made object-fit:
 * cover crop harder, which looked like the photo zooming in. */
@media (min-width: 782px) {
	.cj-split__media.wp-block-cover {
		position: sticky;
		top: 0;
		align-self: start;
		height: 100vh;
	}

	@supports (height: 100svh) {
		.cj-split__media.wp-block-cover {
			height: 100svh;
		}
	}
}

.cj-split__media > .wp-block-cover__background {
	background: transparent !important;
}

.cj-split__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 110px 6.5% !important;
	background-color: var(--cj-dark);
	color: var(--cj-on-dark);
}

.cj-split__panel > * {
	margin-block: 0 !important;
}

.cj-split__panel > :where(h2) {
	margin-bottom: 40px !important;
	font-family: var(--cj-display);
	font-size: clamp(40px, 4.4vw, 64px) !important;
	font-style: italic;
	font-weight: 400;
	line-height: 1.05;
	color: inherit;
}

/* Reverse: photo on the right on desktop, still first on phones. */
@media (min-width: 782px) {
	.cj-split--reversed > .cj-split__media {
		order: 2;
	}
}

@media (max-width: 781px) {
	.cj-split {
		grid-template-columns: 1fr;
	}

	.cj-split__media.wp-block-cover {
		min-height: 420px !important;
	}

	.cj-split__panel {
		padding: 80px var(--cj-gutter) !important;
	}
}

/* Accordion (core Details blocks) ---------------------------------- */

.cj-accordion > .wp-block-details,
.cj-split__panel > .wp-block-details {
	margin: 0 !important;
	border-top: 1px solid rgb(255 255 255 / 0.22);
}

.cj-split__panel > .wp-block-details:last-child {
	border-bottom: 1px solid rgb(255 255 255 / 0.22);
}

.cj-split__panel .wp-block-details summary {
	position: relative;
	display: block;
	padding: 26px 56px 26px 0;
	font-family: var(--cj-display);
	font-size: 32px;
	font-style: italic;
	line-height: 1.2;
	cursor: pointer;
	list-style: none;
}

.cj-split__panel .wp-block-details summary::-webkit-details-marker {
	display: none;
}

/* Thin plus that turns into a minus when open. */
.cj-split__panel .wp-block-details summary::before,
.cj-split__panel .wp-block-details summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 4px;
	width: 20px;
	height: 1px;
	background: currentColor;
	transition: transform 0.25s ease;
}

.cj-split__panel .wp-block-details summary::after {
	transform: rotate(90deg);
}

.cj-split__panel .wp-block-details[open] summary::after {
	transform: rotate(0deg);
}

.cj-split__panel .wp-block-details summary:hover {
	color: var(--cj-accent);
}

.cj-split__panel .wp-block-details > :not(summary) {
	margin: 0 0 26px;
	max-width: var(--cj-body-max);
	font-size: var(--cj-body-size);
	line-height: var(--cj-body-line);
	color: var(--cj-body-on-dark);
}

@media (max-width: 781px) {
	.cj-split__panel .wp-block-details summary {
		font-size: 26px;
	}
}

/* Light sections (off-white, navy text) ---------------------------- */

.cj-light-section {
	margin-block: 0;
	padding: 124px var(--cj-gutter) !important;
	background-color: var(--cj-light);
	color: var(--cj-on-light);
}

.cj-light-section--tall {
	padding-block: 136px !important;
}

.cj-light-section > * {
	max-width: var(--cj-max);
	margin-inline: auto !important;
}

.cj-light-section :where(h2) {
	margin: 0;
	font-family: var(--cj-display);
	font-size: clamp(40px, 4.4vw, 64px) !important;
	font-style: italic;
	font-weight: 400;
	line-height: 1.05;
	color: inherit;
}

/* Short brand-coloured rule under a heading. */
.cj-light-section .is-style-rule::after {
	width: 96px;
	margin-top: 32px;
	border-top: 2px solid var(--cj-brand);
}

.cj-two-col {
	display: grid !important;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px 8% !important;
	align-items: start;
}

.cj-two-col > * {
	margin: 0 !important;
}

.cj-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
}

.cj-stack > * {
	margin: 0 !important;
}



@media (max-width: 781px) {
	.cj-light-section,
	.cj-light-section--tall {
		padding-block: 88px !important;
	}

	.cj-two-col {
		grid-template-columns: 1fr;
	}
}

/* Price list ------------------------------------------------------- */

.cj-price-list {
	display: flex;
	flex-direction: column;
	gap: 0 !important;
}

.cj-price-row {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: baseline !important;
	justify-content: space-between;
	gap: 24px;
	margin: 0 !important;
	padding: 26px 0;
	border-top: 1px solid rgb(28 43 74 / 0.22);
	border-top-color: color-mix(in srgb, var(--cj-on-light) 22%, transparent);
}

.cj-price-row:last-child {
	border-bottom: 1px solid color-mix(in srgb, var(--cj-on-light) 22%, transparent);
}

.cj-price-row > * {
	margin: 0 !important;
}

.cj-price-row > :first-child {
	font-family: var(--cj-display);
	font-size: 34px;
	font-style: italic;
	line-height: 1.15;
}

.cj-price-row > :last-child {
	font-size: 18px;
	font-weight: 700;
	text-align: end;
}

@media (max-width: 781px) {
	.cj-price-row > :first-child {
		font-size: 28px;
	}
}

/* Desktop: the heading and button beside a price list stay in view while
 * the rows scroll past (sticky within the section). Below the fixed
 * header; when the header hides on scroll down the gap simply grows. */
@media (min-width: 782px) {
	.cj-two-col:has(> .cj-price-list) > .cj-stack {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--cj-header-height, 0px) + 40px);
		align-self: start;
	}
}

/* Map embed -------------------------------------------------------- */

.cj-map,
.cj-map iframe {
	display: block;
	width: 100%;
	min-height: 420px;
	border: 0;
}

.cj-map iframe {
	height: 100%;
	aspect-ratio: 4 / 3;
}

/* Status band ------------------------------------------------------ */

.cj-status {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-end !important;
	justify-content: space-between;
	gap: 24px 48px;
	margin-block: 0;
	padding: 72px var(--cj-gutter) !important;
	background-color: var(--cj-dark);
	color: var(--cj-on-dark);
	border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.cj-status > * {
	margin: 0 !important;
}

.cj-status__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cj-status__text > * {
	margin: 0 !important;
}

.cj-status__text > .is-style-label {
	color: var(--cj-accent);
}

.cj-status__text > :not(.is-style-label) {
	font-family: var(--cj-display);
	font-size: 36px;
	font-style: italic;
	line-height: 1.2;
}

/* Max-width wrapper inside full-bleed bands. */
.cj-status {
	padding-inline: max(var(--cj-gutter), calc((100vw - var(--cj-max)) / 2)) !important;
}

/* Section heading row (title left, label right). */
.cj-heading-row {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-end !important;
	justify-content: space-between;
	gap: 16px 48px;
	margin-bottom: 56px !important;
}

.cj-heading-row > * {
	margin: 0 !important;
}

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

.cj-footer {
	margin-block: 0;
	padding: 104px var(--cj-gutter) 40px !important;
	background-color: var(--cj-dark);
	color: rgb(255 255 255 / 0.86);
	font-size: 16px;
	line-height: 1.8;
}

.cj-footer > * {
	max-width: var(--cj-max);
	margin-inline: auto !important;
}

.cj-footer p {
	overflow-wrap: anywhere;
}

.cj-footer a:where(:not(.wp-element-button)) {
	color: inherit;
	text-decoration: none;
}

.cj-footer a:where(:not(.wp-element-button)):hover,
.cj-footer a:where(:not(.wp-element-button)):focus-visible {
	color: var(--cj-accent);
}

/* Optional band at the top of the footer (footer-signup slot). */
.cj-footer__signup {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	margin-bottom: 96px !important;
	padding-bottom: 96px;
	text-align: center;
	border-bottom: 1px solid rgb(255 255 255 / 0.22);
}

.cj-footer__signup > * {
	margin: 0 !important;
}

.cj-footer__signup :where(h2) {
	font-family: var(--cj-display);
	font-size: clamp(40px, 4.4vw, 64px);
	font-style: italic;
	font-weight: 400;
	line-height: 1.05;
	color: var(--cj-on-dark);
}

.cj-footer__signup > p {
	max-width: var(--cj-body-max);
	font-size: var(--cj-body-size);
	line-height: var(--cj-body-line);
	color: var(--cj-body-on-dark);
}

.cj-footer__signup .cj-form {
	display: flex;
	justify-content: center;
	margin-top: 8px !important;
}

.cj-footer__signup .cj-signup {
	justify-content: center;
}

@media (max-width: 781px) {
	.cj-footer__signup {
		margin-bottom: 64px !important;
		padding-bottom: 64px;
	}
}

.cj-footer__main {
	display: grid !important;
	grid-template-columns: auto repeat(3, minmax(0, 1fr));
	gap: 48px 6% !important;
	align-items: start;
}

.cj-footer__main > * {
	margin: 0 !important;
}

.cj-footer__col > * {
	margin-block: 0 !important;
}

.cj-footer__col > * + * {
	margin-top: 18px !important;
}

.cj-footer__heading,
.cj-footer .is-style-label {
	color: var(--cj-accent);
}

.cj-footer .cj-logo img {
	width: var(--wp--custom--cj--logo--footer-width, 200px);
	min-width: 0;
}

.cj-footer .wp-block-social-links {
	gap: 12px 20px;
}

.cj-footer .wp-block-social-links.is-style-logos-only .wp-social-link {
	color: inherit;
}

.cj-footer .wp-block-social-links .wp-social-link svg {
	width: 22px;
	height: 22px;
}

.cj-footer__bottom {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	margin-top: 80px !important;
	padding-top: 28px;
	border-top: 1px solid rgb(255 255 255 / 0.22);
	font-size: 14px;
}

.cj-footer__bottom > * {
	margin: 0 !important;
}

.cj-footer__bottom .wp-block-site-title {
	font: inherit;
}

.cj-footer .cj-legal-nav {
	gap: 8px 28px;
	font-size: 14px;
}

@media (max-width: 1100px) {
	.cj-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cj-footer__main > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 781px) {
	.cj-footer {
		padding-top: 80px !important;
	}

	.cj-footer__main {
		grid-template-columns: 1fr;
	}

	.cj-footer__bottom {
		margin-top: 56px !important;
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ------------------------------------------------------------------ *
 * Text content in sections
 *
 * Body paragraphs use the body tokens (size, line height, 640px-ish
 * measure); on dark bands they take --cj-body-on-dark.
 * ------------------------------------------------------------------ */

.cj-dark-section {
	margin-block: 0;
	padding: 124px var(--cj-gutter) !important;
	background-color: var(--cj-dark);
	color: var(--cj-on-dark);
}

.cj-dark-section > * {
	max-width: var(--cj-max);
	margin-inline: auto !important;
}

.cj-dark-section :where(h2) {
	margin: 0;
	font-family: var(--cj-display);
	font-size: clamp(40px, 4.4vw, 64px) !important;
	font-style: italic;
	font-weight: 400;
	line-height: 1.05;
	color: inherit;
}

:is(.cj-light-section, .cj-dark-section, .cj-split__panel, .cj-statement, .cj-closing, .cj-status) :is(.cj-stack, .cj-offset, .cj-split__panel, .cj-statement, .cj-closing, .cj-status__more, .cj-content) > p:not([class*="is-style-"]),
.cj-split__panel > p:not([class*="is-style-"]),
.cj-statement > p:not([class*="is-style-"]),
.cj-closing > p:not([class*="is-style-"]) {
	max-width: var(--cj-body-max);
	margin-block: 0;
	font-size: var(--cj-body-size);
	font-weight: 400;
	line-height: var(--cj-body-line);
}

:is(.cj-dark-section, .cj-split__panel, .cj-statement, .cj-closing:not(.cj-closing--light), .cj-status) p:not([class*="is-style-"]) {
	color: var(--cj-body-on-dark);
}

.cj-light-section p,
.cj-closing--light p {
	color: var(--cj-on-light);
}

/* Long email addresses never push a phone layout wider. */
:is(.cj-light-section, .cj-dark-section, .cj-split__panel, .cj-statement, .cj-closing, .cj-status) p {
	overflow-wrap: anywhere;
}

/* Links in body text: underlined, same colour as the text. */
:is(.cj-light-section, .cj-dark-section, .cj-split__panel, .cj-statement, .cj-closing, .cj-status) p a:where(:not(.wp-element-button)) {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

:is(.cj-dark-section, .cj-split__panel, .cj-statement, .cj-closing:not(.cj-closing--light), .cj-status) p a:where(:not(.wp-element-button)):hover {
	color: var(--cj-accent);
}

.cj-light-section p a:where(:not(.wp-element-button)):hover,
.cj-closing--light p a:where(:not(.wp-element-button)):hover {
	color: var(--cj-brand);
}

/* Statement: an optional body line under the sentence, centred. */
.cj-statement > p:not([class*="is-style-"]) {
	max-width: var(--cj-body-max) !important;
	margin-inline: auto !important;
}

/* Text column aligned with the right-hand column of .cj-two-col. */
.cj-offset {
	display: grid !important;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	column-gap: 8%;
	row-gap: 1.2em;
}

.cj-offset > * {
	grid-column: 2;
	margin: 0 !important;
}

/* Right-hand content column of a titled section. */
.cj-content {
	display: flex;
	flex-direction: column;
	gap: 1.2em;
}

.cj-content > * {
	margin: 0 !important;
}

.cj-content > * + .cj-table,
.cj-content > .cj-table + * {
	margin-top: 1.2em !important;
}

/* Split panel holding text rather than an accordion. */
.cj-split__panel > p:not([class*="is-style-"]) + p,
.cj-split__panel > p:not([class*="is-style-"]) + :is(.cj-table, .cj-rule-list, .cj-timeline) {
	margin-top: 1.2em !important;
}

/* Timeline: year label in the accent colour, one line each. */
.cj-timeline {
	display: flex;
	flex-direction: column;
	gap: 0 !important;
	margin: 0;
	padding: 0;
	border-left: 1px solid rgb(255 255 255 / 0.3);
}

.cj-timeline__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px !important;
	margin: 0 !important;
	padding: 0 0 30px 36px;
}

.cj-timeline__item:last-child {
	padding-bottom: 0;
}

.cj-timeline__item::before {
	content: "";
	position: absolute;
	top: 5px;
	left: -4px;
	width: 7px;
	height: 7px;
	background: var(--cj-accent);
}

.cj-timeline__item > * {
	margin: 0 !important;
}

.cj-timeline__item > .is-style-label {
	color: var(--cj-accent);
}

.cj-timeline__item > p:not([class*="is-style-"]) {
	max-width: var(--cj-body-max);
	font-size: var(--cj-body-size);
	line-height: var(--cj-body-line);
	color: var(--cj-body-on-dark);
}

/* Ruled list: short lines separated by thin rules. */
.cj-rule-list {
	display: flex;
	flex-direction: column;
	gap: 0 !important;
}

.cj-rule-list > p {
	max-width: var(--cj-body-max);
	margin: 0 !important;
	padding: 20px 0;
	border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
	font-size: var(--cj-body-size);
	line-height: var(--cj-body-line);
}

.cj-rule-list > p:last-child {
	border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}

.cj-dark-section .cj-rule-list > p,
.cj-split__panel .cj-rule-list > p {
	color: var(--cj-body-on-dark);
	border-color: rgb(255 255 255 / 0.22);
}

/* Name rows: display-type name, one body line. */
.cj-def-list {
	display: flex;
	flex-direction: column;
	gap: 0 !important;
}

.cj-def-row {
	display: grid !important;
	grid-template-columns: minmax(140px, 3fr) minmax(0, 7fr);
	gap: 8px 32px;
	align-items: baseline;
	margin: 0 !important;
	padding: 24px 0;
	border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}

.cj-def-row:last-child {
	border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}

.cj-def-row > * {
	margin: 0 !important;
}

.cj-def-row > :first-child {
	font-family: var(--cj-display);
	font-size: 30px;
	font-style: italic;
	line-height: 1.15;
}

.cj-def-row > :last-child {
	max-width: var(--cj-body-max);
	font-size: var(--cj-body-size);
	line-height: var(--cj-body-line);
}

:is(.cj-dark-section, .cj-split__panel) .cj-def-row {
	border-color: rgb(255 255 255 / 0.22);
}

:is(.cj-dark-section, .cj-split__panel) .cj-def-row > :last-child {
	color: var(--cj-body-on-dark);
}

@media (max-width: 781px) {
	.cj-def-row {
		grid-template-columns: 1fr;
	}

	.cj-def-row > :first-child {
		font-size: 26px;
	}
}

/* Tables (core Table block, class cj-table): same look as the scorecard.
 * Header cells are labels in the brand colour (accent on dark), cells
 * 17px with a 1px rule above. First column left, others centred; on
 * two-column tables the value sits right. Scrolls sideways when narrow. */
.wp-block-table.cj-table {
	margin: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wp-block-table.cj-table table {
	width: 100%;
	min-width: 420px;
	table-layout: auto;
	border-collapse: collapse;
	font-size: 17px;
	line-height: 1.5;
	color: inherit;
}

.wp-block-table.cj-table :is(th, td) {
	padding: 18px 12px;
	text-align: center;
	vertical-align: baseline;
	border: 0;
	border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	font-variant-numeric: lining-nums;
}

.wp-block-table.cj-table tr:last-child td {
	border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.wp-block-table.cj-table :is(th, td):first-child {
	padding-left: 0;
	text-align: start;
}

.wp-block-table.cj-table :is(th, td):last-child {
	padding-right: 0;
}

.wp-block-table.cj-table thead {
	border: 0;
}

.wp-block-table.cj-table thead th {
	font-family: var(--cj-label-font);
	font-size: var(--cj-label-size);
	font-weight: var(--cj-label-weight);
	letter-spacing: var(--cj-label-tracking);
	text-transform: uppercase;
	color: var(--cj-brand);
	border-top: 0;
}

:is(.cj-dark-section, .cj-split__panel) .wp-block-table.cj-table thead th {
	color: var(--cj-accent);
}

:is(.cj-dark-section, .cj-split__panel) .wp-block-table.cj-table :is(th, td) {
	border-color: rgb(255 255 255 / 0.22);
}

:is(.cj-dark-section, .cj-split__panel) .wp-block-table.cj-table td {
	color: var(--cj-body-on-dark);
}

/* Two-column price tables: value right-aligned. */
.wp-block-table.cj-table--prices :is(th, td):last-child {
	text-align: end;
	white-space: nowrap;
}

.wp-block-table.cj-table--prices table {
	min-width: 0;
}

.wp-block-table.cj-table a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* Grouped price list: label headings between groups, a small note. */
.cj-price-list > .is-style-label {
	margin: 0 0 12px !important;
	color: var(--cj-brand);
}

.cj-price-list > .cj-price-row + .is-style-label {
	margin-top: 56px !important;
}

.cj-price-list--compact .cj-price-row > :first-child {
	font-size: 26px;
}

.cj-note,
.cj-price-list > .cj-note {
	max-width: var(--cj-body-max);
	margin: 28px 0 0 !important;
	font-size: 16px;
	line-height: 1.7;
}

@media (max-width: 781px) {
	.cj-price-list--compact .cj-price-row > :first-child {
		font-size: 22px;
	}
}

/* Tables directly inside a light/dark band (e.g. under the scorecard). */
:is(.cj-light-section, .cj-dark-section) > .wp-block-table.cj-table {
	margin-top: 64px !important;
}

:is(.cj-light-section, .cj-dark-section) > .cj-heading-row + .wp-block-table.cj-table {
	margin-top: 0 !important;
}

:is(.cj-light-section, .cj-dark-section) > .wp-block-table.cj-table + * {
	margin-top: 80px !important;
}

/* All cells left-aligned (e.g. a contact table). */
.wp-block-table.cj-table--left :is(th, td) {
	text-align: start;
}

/* Closing band: centred line(s) and a button, dark or light. */
.cj-closing {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	margin-block: 0;
	padding: 120px var(--cj-gutter) !important;
	text-align: center;
	background-color: var(--cj-dark);
	color: var(--cj-on-dark);
}

.cj-closing--light {
	background-color: var(--cj-light);
	color: var(--cj-on-light);
}

.cj-closing > * {
	margin: 0 !important;
}

.cj-closing > p:not([class*="is-style-"]) {
	margin-inline: auto !important;
}

.cj-closing :where(h2) {
	font-family: var(--cj-display);
	font-size: clamp(40px, 4.4vw, 64px) !important;
	font-style: italic;
	font-weight: 400;
	line-height: 1.05;
	color: inherit;
}

.cj-closing .wp-block-buttons {
	justify-content: center;
	margin-top: 12px !important;
}

@media (max-width: 781px) {
	.cj-closing {
		padding-block: 88px !important;
	}
}

/* Status band: "Details" disclosure (core Details block) styled as an
 * arrow link; the line it reveals sits under it. */
.cj-status__more {
	max-width: 420px;
	margin: 0 !important;
}

.cj-status__more summary {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	font-family: var(--cj-label-font);
	font-size: var(--cj-label-size);
	font-weight: var(--cj-label-weight);
	line-height: 1.4;
	letter-spacing: var(--cj-label-tracking);
	text-transform: uppercase;
	border-bottom: 1px solid rgb(255 255 255 / 0.6);
	cursor: pointer;
	list-style: none;
}

.cj-status__more summary::-webkit-details-marker {
	display: none;
}

.cj-status__more summary::after {
	content: "";
	width: 22px;
	height: 10px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M0 5h21M16.5 0.5 21 5l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M0 5h21M16.5 0.5 21 5l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.cj-status__more[open] summary::after {
	transform: rotate(90deg);
}

.cj-status__more summary:hover,
.cj-status__more summary:focus-visible {
	color: var(--cj-accent);
}

.cj-status__more > p {
	margin-top: 18px !important;
}

/* Sign-up form (front end; the action is connected per site). */
.cj-signup {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	max-width: 560px;
}

.cj-signup input[type="email"] {
	flex: 1 1 240px;
	min-width: 0;
	min-height: 54px;
	padding: 0 18px;
	font: inherit;
	font-size: 16px;
	color: var(--cj-on-dark);
	background: transparent;
	border: 1px solid rgb(255 255 255 / 0.7);
	border-radius: 0;
}

.cj-signup input[type="email"]::placeholder {
	color: rgb(255 255 255 / 0.7);
}

.cj-signup input[type="email"]:focus-visible {
	outline: 2px solid var(--cj-accent);
	outline-offset: 2px;
}

.cj-signup button {
	min-height: 54px;
	padding: 18px 30px;
	font-family: var(--cj-label-font);
	font-size: var(--cj-label-size);
	font-weight: var(--cj-label-weight);
	line-height: 1.4;
	letter-spacing: var(--cj-label-tracking);
	text-transform: uppercase;
	color: var(--cj-dark);
	background: var(--cj-on-dark);
	border: 1px solid var(--cj-on-dark);
	border-radius: 0;
	cursor: pointer;
}

.cj-signup button:hover,
.cj-signup button:focus-visible {
	color: var(--cj-dark);
	background: var(--cj-accent);
	border-color: var(--cj-accent);
}

.cj-closing .cj-signup {
	justify-content: center;
}

@media (max-width: 781px) {
	.cj-offset {
		grid-template-columns: minmax(0, 1fr);
	}

	.cj-offset > * {
		grid-column: 1;
	}

	.cj-dark-section {
		padding-block: 88px !important;
	}

	.cj-signup button {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ *
 * Plain text pages (default page template)
 * ------------------------------------------------------------------ */

.cj-text-page {
	padding: 120px var(--cj-gutter) 136px !important;
}

.cj-text-page h1 {
	font-size: clamp(44px, 5vw, 72px);
	line-height: 1.05;
}

/* ------------------------------------------------------------------ *
 * Reduced motion
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.cj-header,
	.cj-tile .wp-block-cover__image-background,
	.wp-block-button__link,
	.wp-block-button__link::after,
	.cj-split__panel .wp-block-details summary::after {
		transition: none !important;
	}

	.cj-tile:hover .wp-block-cover__image-background,
	.cj-tile:focus-within .wp-block-cover__image-background {
		transform: none;
	}

	:is(.cj-feature, .cj-tile) :where(h2, h3, .wp-block-button__link) {
		transition: none;
	}

	.cj-booking :where(h2) {
		transition: none;
	}
}
