/* ==========================================================================
   Loaded on every page: generic content pages (privacy policy, terms, 404) + mobile booking bar
   ========================================================================== */

/* Generic pages (privacy policy, posts, 404) ------------------------------- */

.page-main {
	padding-block: calc(var(--header-h) + 4rem) var(--section-y);
}

.page-title {
	margin-bottom: 2rem;
	font: 400 clamp(2.5rem, 2rem + 3vw, 4.5rem) / 1 var(--font-display);
	text-transform: uppercase;
	text-wrap: balance;
}

.entry + .entry {
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid var(--line);
}

.entry__title {
	margin-bottom: 1rem;
	font: 600 1.75rem / 1.2 var(--font-label);
}

.entry__title a {
	text-decoration: none;
}

.prose {
	line-height: 1.7;
	color: var(--cream-muted);
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose :is(h2, h3, h4) {
	margin-top: 2em;
	font-family: var(--font-label);
	font-weight: 600;
	line-height: 1.2;
	color: var(--cream);
}

.prose a {
	color: var(--orange);
}

.prose :is(ul, ol) {
	padding-left: 1.25rem;
}

/* Mobile booking bar -------------------------------------------------------- */

.mobile-cta {
	position: fixed;
	inset: auto 0 0;
	z-index: var(--z-cta);
	display: flex;
	gap: 0.5rem;
	padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
	background: rgb(13 16 19 / 0.96);
	border-top: 1px solid var(--line);
	transition:
		transform var(--dur) var(--ease-out),
		visibility 0s linear;
}

.mobile-cta .btn {
	flex: 1;
	padding-inline: 1rem;
}

.mobile-cta .btn--primary {
	flex: 2;
}

.mobile-cta.is-hidden {
	visibility: hidden;
	transform: translateY(110%);
	transition:
		transform var(--dur) var(--ease-out),
		visibility 0s linear var(--dur);
}

@media (max-width: 1023px) {
	.site-footer {
		padding-bottom: 5rem;
	}
}

@media (min-width: 1024px) {
	.mobile-cta {
		display: none;
	}
}

/* Regulations page (template-parts/view-terms.php) ----------------------------- */

.site-footer__legal {
	max-width: 60rem;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.terms__operator {
	font-size: 0.9375rem;
}

.terms__print {
	margin-top: 1.25rem;
}

.terms__doc-title {
	font: 400 clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem) / 1.1 var(--font-display);
	text-transform: uppercase;
	color: var(--cream);
}

.terms__section,
.terms__annex {
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

.terms__section h3 {
	margin-top: 2.25em;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--line);
}

.terms__list {
	counter-reset: terms;
	list-style: none;
	padding-left: 0;
}

.terms__list > li {
	position: relative;
	padding-left: 2.25rem;
	counter-increment: terms;
}

.terms__list > li + li {
	margin-top: 0.75em;
}

.terms__list > li::before {
	content: counter(terms) ".";
	position: absolute;
	left: 0;
	font: 600 1rem / 1.7 var(--font-label);
	color: var(--orange);
}

.terms__annex {
	margin-top: 4rem;
	padding-top: 2.5rem;
	border-top: 4px solid transparent;
	border-image: var(--hazard) 4;
}

.terms__annex h2 {
	margin-top: 0.25rem;
	font: 400 clamp(1.4rem, 1.1rem + 1vw, 2rem) / 1.1 var(--font-display);
	text-transform: uppercase;
	color: var(--cream);
}

.terms__note {
	font-style: italic;
}

.terms__fields,
.terms__statements {
	padding-left: 1.25rem;
}

.terms__statements > li::marker {
	content: "☐  ";
	color: var(--orange);
}

.terms__table-wrap {
	margin-block: 1.5rem;
	overflow-x: auto;
}

.terms__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.terms__table caption {
	padding-bottom: 0.5rem;
	font: 600 1rem / 1.3 var(--font-label);
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
	color: var(--cream);
}

.terms__table th,
.terms__table td {
	padding: 0.5rem 0.75rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

.terms__table thead th {
	font-family: var(--font-label);
	letter-spacing: 0.06em;
	color: var(--cream);
}

.terms__table tbody th {
	font-weight: 400;
}

.terms__table td:last-child {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.terms__print {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.terms__download {
	gap: 0.6rem;
	text-decoration: none;
}

/* Buttons inside .prose must not take the orange link colour. */
.prose a.btn--primary {
	color: var(--coal-950);
}

.prose a.btn--ghost {
	color: var(--cream);
}

.terms__download small {
	font: 400 0.75rem / 1 var(--font-body);
	letter-spacing: 0;
	text-transform: none;
	opacity: 0.8;
}

.terms__download-icon {
	transform: rotate(90deg);
}

.terms__form-card {
	display: grid;
	gap: 1rem;
	justify-items: start;
	margin-block: 1.25rem;
	padding: 1.25rem;
	background: var(--coal-850);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
}

.terms__form-card p {
	margin: 0;
}

.terms__details {
	margin-top: 1rem;
}

.terms__details > summary {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font: 600 0.9375rem / 1 var(--font-label);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--orange);
	cursor: pointer;
}

.terms__details > summary:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 2px;
}

@media print {
	.terms__form-card,
	.terms__details > summary {
		display: none !important;
	}

	.site-header,
	.site-footer,
	.mobile-cta,
	.breadcrumbs,
	.jump-links,
	.terms__print,
	.skip-link {
		display: none !important;
	}

	body,
	.terms,
	.page-intro {
		color: #000;
		background: #fff;
	}

	.prose,
	.terms__doc-title,
	.terms__annex h2,
	.terms__table caption,
	.terms__table thead th {
		color: #000;
	}

	.terms__annex {
		break-before: page;
	}

	.terms__table-wrap {
		overflow: visible;
	}
}

/* Consent banner ------------------------------------------------------------ */

.consent {
	position: fixed;
	inset: auto 0 0;
	z-index: var(--z-header);
	background: rgb(13 16 19 / 0.97) var(--grain);
	border-top: 2px solid var(--orange);
	box-shadow: 0 -18px 40px rgb(0 0 0 / 0.45);
}

.consent__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	align-items: center;
	justify-content: space-between;
	max-width: 90rem;
	margin-inline: auto;
	padding: 1.1rem var(--gutter) calc(1.1rem + env(safe-area-inset-bottom));
}

.consent__copy {
	flex: 1 1 22rem;
	min-width: 0;
}

.consent__title {
	font: 600 0.875rem / 1 var(--font-label);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cream);
}

.consent__text {
	margin-top: 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--cream-muted);
	text-wrap: pretty;
}

.consent__text a {
	color: var(--orange);
}

.consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.site-footer__consent {
	padding: 0;
	font: inherit;
	color: var(--cream-muted);
	background: none;
	border: 0;
	border-bottom: 1px solid var(--line-strong);
	cursor: pointer;
}

.site-footer__consent:hover {
	color: var(--orange);
}

@media (max-width: 1023px) {
	/* Sits above the sticky booking bar. */
	.consent {
		bottom: 4.5rem;
	}

	.consent__actions .btn {
		flex: 1;
	}
}

/* Guide: article list and article ------------------------------------------- */

.article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 1.5rem;
}

.article-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.4rem;
	background: var(--coal-850);
	border: 1px solid var(--line);
	transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.article-card:hover {
	border-color: var(--orange);
	transform: translateY(-2px);
}

.article-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.article-card__tag {
	font: 600 0.75rem / 1 var(--font-label);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--orange);
}

.article-card__title {
	font: 400 1.375rem / 1.15 var(--font-display);
	text-transform: uppercase;
}

.article-card__title a {
	color: var(--cream);
	text-decoration: none;
}

.article-card__title a:hover {
	color: var(--orange);
}

.article-card__lead {
	flex: 1;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--cream-muted);
	text-wrap: pretty;
}

.article__media img {
	width: 100%;
	margin-bottom: 2rem;
}

.article__offer {
	margin-top: 2.5rem;
	padding: 1.6rem;
	background: var(--coal-850);
	border-top: 2px solid var(--orange);
}

.article__offer-title {
	font: 400 1.5rem / 1.1 var(--font-display);
	text-transform: uppercase;
	color: var(--cream);
}

.article__offer p + a {
	margin-top: 1.2rem;
}

.article__offer p:not(.article__offer-title) {
	margin-top: 0.6rem;
	color: var(--cream-muted);
}

.article__related {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.article__related-list {
	display: grid;
	gap: 0.6rem;
	margin-top: 0.9rem;
}
