/*
Theme Name: Lauriston
Theme URI: https://www.thelauriston.co.uk/
Author: UCW Computing
Description: Bespoke block theme for The Lauriston Hotel, Weston-super-Mare. Built for the WordPress Site Editor so hotel staff can edit every page without code. Pairs with the Lauriston Core plugin (booking, contact form, reviews, cookie consent). Designed and built by UCW Computing.
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lauriston
Tags: block-theme, full-site-editing, accessibility-ready, custom-colors, editor-style, wide-blocks
*/

/* ==========================================================================
   0. Tokens (most come from theme.json; these are layout helpers)
   ========================================================================== */
:root {
	--lh-header-h: 5.25rem;
	--lh-tab-drop: 2.5rem;
	--lh-ease: cubic-bezier(.2, .7, .2, 1);
	--lh-focus: var(--wp--preset--color--copper);
	--lh-radius: 2px;
	--lh-admin-bar: var(--wp-admin--admin-bar--height, 0px);
}
@media (max-width: 781px) {
	:root { --lh-header-h: 4.25rem; --lh-tab-drop: 1.25rem; }
}

/* ==========================================================================
   1. Base
   ========================================================================== */
html { scroll-padding-top: calc(var(--lh-header-h) + var(--lh-admin-bar) + 1rem); }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--wp--preset--color--brass); color: var(--wp--preset--color--ink); }
img { height: auto; }

/* Clear, consistent focus ring for keyboard users (WCAG 2.4.7 / 2.4.13). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--lh-focus);
	outline-offset: 3px;
	border-radius: 2px;
}
.is-style-section-slate :focus-visible,
.lh-header--overlay :focus-visible,
.lh-footer :focus-visible { --lh-focus: var(--wp--preset--color--brass); }

a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .2s var(--lh-ease), text-decoration-color .2s var(--lh-ease); }
a:hover { text-decoration-thickness: 2px; }

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--slate);
	color: #fff;
	font-weight: 700;
	z-index: 100000;
}

/* Remove the gap WordPress adds between top-level regions. */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > .lh-main, .wp-site-blocks > main { margin-block-start: 0; }

/* Full-width sections sit flush against each other. */
.lh-main .wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.lh-page-body > :first-child:not(.alignfull) { margin-block-start: var(--wp--preset--spacing--60); }
.lh-page-body > :last-child:not(.alignfull) { margin-block-end: var(--wp--preset--spacing--70); }

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

/* ==========================================================================
   2. Header
   ========================================================================== */
.wp-site-blocks > .lh-site-header {
	position: sticky;
	top: var(--lh-admin-bar);
	z-index: 100;
}
@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens. */
	.wp-site-blocks > .lh-site-header { top: 0; }
}
.lh-header {
	background: var(--wp--preset--color--shell);
	border-bottom: 1px solid var(--wp--preset--color--line);
	transition: background-color .35s var(--lh-ease), box-shadow .35s var(--lh-ease), border-color .35s var(--lh-ease), color .35s var(--lh-ease);
}
.lh-header__inner {
	min-height: var(--lh-header-h);
	gap: clamp(1rem, 2vw, 2rem);
	align-items: center;
}
.lh-header__inner > .lh-primary-nav { margin-inline-start: auto; }
.lh-header__actions { gap: 1.25rem; align-items: center; }
.lh-header__book .wp-block-button__link { padding: .7rem 1.25rem; white-space: nowrap; }

body.lh-scrolled .lh-header { box-shadow: 0 10px 30px -18px rgba(31, 37, 40, .45); }

/* Header that floats over a hero image (home + landing pages): fixed, so the hero starts at the very top. */
body.lh-has-hero .wp-site-blocks > .lh-site-header { position: fixed; left: 0; right: 0; }
.lh-header--overlay {
	background: transparent;
	border-color: transparent;
	color: var(--wp--preset--color--white);
}
body.lh-scrolled .lh-header--overlay,
.lh-header--overlay:has(.is-menu-open) {
	background: var(--wp--preset--color--shell);
	border-color: var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
}
body.lh-scrolled .lh-header--overlay :focus-visible { --lh-focus: var(--wp--preset--color--copper); }

/* --- The logo: their slate block, hanging from the top like a pennant --- */
.lh-logo { line-height: 0; }
.lh-logo__link { display: block; color: #fff; text-decoration: none; }
.lh-logo svg { display: block; width: 100%; height: auto; }
.lh-logo--tab { align-self: flex-start; position: relative; z-index: 2; }
.lh-logo--tab .lh-logo__link {
	display: flex;
	align-items: flex-end;
	width: clamp(7.75rem, 6rem + 5vw, 10.75rem);
	height: calc(var(--lh-header-h) + var(--lh-tab-drop));
	margin-bottom: calc(-1 * var(--lh-tab-drop));
	padding: 0 clamp(.7rem, .5rem + .6vw, 1.05rem) clamp(.7rem, .55rem + .5vw, 1rem);
	background: var(--wp--preset--color--slate);
	box-shadow: 0 18px 30px -20px rgba(31, 37, 40, .7);
	transition: height .35s var(--lh-ease), margin .35s var(--lh-ease), width .35s var(--lh-ease);
}
.lh-logo--tab .lh-logo__mark { display: block; width: 100%; }
body.lh-scrolled .lh-logo--tab .lh-logo__link {
	height: var(--lh-header-h);
	margin-bottom: 0;
	width: clamp(7rem, 5.5rem + 4vw, 9rem);
}
.lh-logo--wordmark .lh-logo__link { width: clamp(11rem, 8rem + 8vw, 15rem); }

/* --- Primary navigation --- */
.lh-primary-nav { font-size: 1.0625rem; }
.lh-primary-nav .wp-block-navigation-item__label { white-space: nowrap; }
.lh-primary-nav .wp-block-navigation__container { gap: clamp(.9rem, .2rem + 1.3vw, 1.85rem); }
.lh-primary-nav .wp-block-navigation-item__content {
	padding-block: .5rem;
	text-decoration: none;
	position: relative;
}
.lh-primary-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: .15rem;
	height: 2px;
	background: var(--wp--preset--color--brass);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--lh-ease);
}
.lh-primary-nav .wp-block-navigation-item__content:hover::after,
.lh-primary-nav .wp-block-navigation-item__content[aria-current="page"]::after,
.lh-primary-nav .current-menu-ancestor > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.lh-primary-nav .wp-block-navigation-item__content:hover { color: inherit; }

/* Drop-down menus */
.lh-primary-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--ink) !important;
	border: 0 !important;
	border-top: 3px solid var(--wp--preset--color--brass) !important;
	box-shadow: var(--wp--preset--shadow--soft);
	min-width: 15rem !important;
	padding: .5rem 0;
}
.lh-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .6rem 1.25rem; }
.lh-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--ink); }

/* Hamburger and full-screen menu (used below 1180px, not just phones) */
.lh-primary-nav .wp-block-navigation__responsive-container-open,
.lh-primary-nav .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	align-items: center;
}
.lh-primary-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
@media (max-width: 1179.98px) {
	.lh-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.lh-primary-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.lh-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--slate) !important;
	color: var(--wp--preset--color--white) !important;
	padding: clamp(1.25rem, 4vw, 3rem);
	padding-top: calc(var(--lh-admin-bar) + 1.25rem);
}
.lh-primary-nav .is-menu-open .wp-block-navigation__responsive-container-close { display: flex; color: #fff; }
.lh-primary-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; align-items: flex-start !important; }
.lh-primary-nav .is-menu-open .wp-block-navigation__container,
.lh-primary-nav .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; }
.lh-primary-nav .is-menu-open .wp-block-navigation__submenu-container { padding-left: 1rem !important; border-left: 2px solid var(--wp--preset--color--brass) !important; margin: .35rem 0 .5rem; }
.lh-primary-nav .is-menu-open .wp-block-navigation__container {
	gap: .35rem !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
	font-weight: 400;
}
.lh-primary-nav .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.125rem;
	padding: .25rem 0 .75rem 0 !important;
}
.lh-primary-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .35rem 0; opacity: .9; }
.lh-primary-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: transparent; color: var(--wp--preset--color--brass); }
.lh-primary-nav .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.lh-primary-nav .is-menu-open .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--brass); }

/* Phone link in the header */
.lh-contact--phone-link a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	color: inherit;
}
.lh-contact--phone-link svg { width: 1.15rem; height: 1.15rem; flex: none; }
@media (max-width: 1399.98px) {
	.lh-header .lh-contact--phone-link .lh-contact__number { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.lh-header .lh-contact--phone-link a { min-width: 44px; min-height: 44px; justify-content: center; }
}
@media (max-width: 781px) {
	.lh-header .lh-contact--phone-link { display: none; }
}
@media (max-width: 479.98px) {
	.lh-header__book { display: none; }
}

/* ==========================================================================
   3. Heroes
   ========================================================================== */
.wp-block-cover.lh-hero {
	min-height: min(94svh, 62rem) !important;
	align-items: flex-end;
	padding-top: calc(var(--lh-header-h) + var(--wp--preset--spacing--60));
	padding-bottom: calc(var(--wp--preset--spacing--80) + 2rem);
}
.wp-block-cover.lh-hero .wp-block-cover__inner-container,
.wp-block-cover.lh-page-hero .wp-block-cover__inner-container,
.wp-block-cover.lh-panorama .wp-block-cover__inner-container { width: 100% !important; }
.lh-hero h1 { color: #fff; text-wrap: balance; max-width: 15ch; margin-block: .5rem 0; }
.lh-hero p.lh-hero__lead { max-width: 36rem; font-size: var(--wp--preset--font-size--large); line-height: 1.5; text-wrap: pretty; }
.lh-hero .wp-block-cover__image-background { animation: lh-hero-in 1.6s var(--lh-ease) both; }
@keyframes lh-hero-in { from { transform: scale(1.06); opacity: .6; } to { transform: scale(1); opacity: 1; } }

.wp-block-cover.lh-page-hero {
	min-height: clamp(26rem, 58svh, 40rem) !important;
	align-items: flex-end;
	padding-top: calc(var(--lh-header-h) + var(--lh-tab-drop) + var(--wp--preset--spacing--40));
	padding-bottom: var(--wp--preset--spacing--60);
}
.lh-page-hero h1 { color: #fff; max-width: 18ch; text-wrap: balance; margin-block: .35rem 0; }
.lh-page-hero .lh-hero__lead { max-width: 40rem; font-size: var(--wp--preset--font-size--large); line-height: 1.5; }
.lh-page-hero .wp-block-breadcrumbs,
.lh-page-hero .wp-block-breadcrumbs a { color: rgba(255, 255, 255, .92); }

.lh-page-head h1 { text-wrap: balance; max-width: 20ch; margin-block-start: .5rem; }
.lh-page-head__intro { max-width: 44rem; color: var(--wp--preset--color--muted); margin-block-start: 1rem; }
.lh-page-head__intro:empty { display: none; }

.wp-block-breadcrumbs { color: var(--wp--preset--color--muted); }
.wp-block-breadcrumbs a { color: inherit; }

/* On narrow screens text spans the whole photo, so darken it evenly for contrast. */
@media (max-width: 781px) {
	.wp-block-cover.lh-page-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(25, 30, 33, .5) 0%, rgba(25, 30, 33, .58) 45%, rgba(25, 30, 33, .8) 100%) !important;
	}
}

/* Cover overlays never go below the contrast we need for white text. */
.wp-block-cover.has-hero-fade-gradient-background .wp-block-cover__background,
.wp-block-cover .wp-block-cover__gradient-background.has-hero-fade-gradient-background { opacity: 1 !important; }

/* ==========================================================================
   4. Block style variations
   ========================================================================== */

/* Eyebrow: small label above a heading, led in by a short brass rule. */
.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: .85rem;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: .9375rem !important;
	font-weight: 700 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase;
	line-height: 1.3 !important;
	color: var(--wp--preset--color--copper);
	margin-block-end: 0;
}
.is-style-eyebrow::before {
	content: "";
	width: 2.25rem;
	height: 2px;
	background: var(--wp--preset--color--brass);
	flex: none;
}
.has-text-align-center.is-style-eyebrow { justify-content: center; }
.is-style-eyebrow + :where(h1, h2, h3) { margin-block-start: .75rem; }
.is-style-section-slate .is-style-eyebrow,
.lh-hero .is-style-eyebrow,
.lh-page-hero .is-style-eyebrow,
.has-slate-background-color .is-style-eyebrow,
.wp-block-cover .is-style-eyebrow { color: #E8D3AE; }

/* Big serif numbers for the facts strip. */
.is-style-stat {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem) !important;
	line-height: 1 !important;
	color: var(--wp--preset--color--brass);
	margin-block-end: .35rem;
	font-variant-numeric: lining-nums;
}
.is-style-stat + p { margin-block-start: 0; }

.is-style-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: var(--wp--preset--color--slate); text-wrap: pretty; }
.is-style-section-slate .is-style-lead { color: #fff; }

/* Arch: the hotel's bay windows, rendered as an image mask. */
.wp-block-image.is-style-arch img {
	aspect-ratio: 4 / 5;
	width: 100%;
	object-fit: cover;
	border-radius: 50% 50% var(--lh-radius) var(--lh-radius) / 40% 40% var(--lh-radius) var(--lh-radius);
}

/* Brass frame offset behind the photo. */
.wp-block-image.is-style-framed { position: relative; isolation: isolate; }
.wp-block-image.is-style-framed::before {
	content: "";
	position: absolute;
	inset: 1.1rem -1.1rem -1.1rem 1.1rem;
	border: 1px solid var(--wp--preset--color--brass);
	z-index: -1;
	pointer-events: none;
}
.wp-block-image.is-style-framed img { position: relative; }
@media (max-width: 600px) { .wp-block-image.is-style-framed::before { inset: .6rem -.6rem -.6rem .6rem; } }

/* Buttons */
.wp-block-button__link { transition: background-color .2s var(--lh-ease), color .2s var(--lh-ease), border-color .2s var(--lh-ease), transform .2s var(--lh-ease); min-height: 44px; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border: 2px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--slate); border-color: var(--wp--preset--color--slate); color: #fff; }
.is-style-section-slate .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--slate); }

.wp-block-button.is-style-light > .wp-block-button__link { background: #fff; border-color: #fff; color: var(--wp--preset--color--slate); }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: var(--wp--preset--color--sand); border-color: var(--wp--preset--color--sand); }

.wp-block-button.is-style-arrow-link > .wp-block-button__link {
	background: transparent;
	border: 0;
	padding: .5rem 0;
	color: currentColor;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brass);
	text-decoration-thickness: 2px;
	text-underline-offset: .35em;
}
.wp-block-button.is-style-arrow-link > .wp-block-button__link::after {
	content: "\2192";
	display: inline-block;
	margin-left: .5rem;
	transition: transform .25s var(--lh-ease);
}
.wp-block-button.is-style-arrow-link > .wp-block-button__link:hover { color: var(--wp--preset--color--copper); }
.is-style-section-slate .wp-block-button.is-style-arrow-link > .wp-block-button__link:hover { color: var(--wp--preset--color--brass); }
.wp-block-button.is-style-arrow-link > .wp-block-button__link:hover::after { transform: translateX(4px); }

/* Tick lists */
.wp-block-list.is-style-ticks,
.wp-block-list.is-style-columns { list-style: none; padding-left: 0; }
.wp-block-list.is-style-ticks > li,
.wp-block-list.is-style-columns > li {
	position: relative;
	padding-left: 2rem;
	margin-block: .5rem;
}
.wp-block-list.is-style-ticks > li::before,
.wp-block-list.is-style-columns > li::before {
	content: "";
	position: absolute;
	left: .15rem;
	top: .5em;
	width: .9rem;
	height: .5rem;
	border-left: 2px solid var(--wp--preset--color--tide);
	border-bottom: 2px solid var(--wp--preset--color--tide);
	transform: rotate(-45deg);
}
.is-style-section-slate .wp-block-list.is-style-ticks > li::before,
.is-style-section-slate .wp-block-list.is-style-columns > li::before { border-color: var(--wp--preset--color--brass); }
.wp-block-list.is-style-columns { columns: 2 16rem; column-gap: 2.5rem; }
.wp-block-list.is-style-columns > li { break-inside: avoid; }

/* Overlap: pull a section up over the one before it (e.g. booking card over the hero). */
.wp-block-group.is-style-overlap-up {
	position: relative;
	z-index: 3;
	margin-top: -2.75rem !important; /* Half the booking bar's height: it straddles the edge of the section above. */
}

/* Card columns */
.wp-block-columns.is-style-cards { gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.wp-block-columns.is-style-cards > .wp-block-column {
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--soft);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding-bottom: 1.75rem;
	position: relative;
}
.wp-block-columns.is-style-cards > .wp-block-column > * { margin-inline: 1.75rem; }
.wp-block-columns.is-style-cards > .wp-block-column > .wp-block-image:first-child { margin: 0 0 1.5rem 0; overflow: hidden; }
.wp-block-columns.is-style-cards > .wp-block-column > .wp-block-image:first-child img {
	border-radius: 0;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	transition: transform .8s var(--lh-ease);
}
.wp-block-columns.is-style-cards > .wp-block-column:hover > .wp-block-image:first-child img { transform: scale(1.04); }
.wp-block-columns.is-style-cards > .wp-block-column > .wp-block-buttons:last-child { margin-top: auto; padding-top: .5rem; }
.wp-block-columns.is-style-cards h3 { font-size: var(--wp--preset--font-size--x-large); }

/* Mosaic gallery: a grid whose feature tile adapts to the number of photos so rows always fill. */
.wp-block-gallery.is-style-mosaic.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: .75rem !important;
}
.wp-block-gallery.is-style-mosaic.has-nested-images figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
	align-self: stretch;
}
.wp-block-gallery.is-style-mosaic.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 2px;
}
/* 3, 6, 9… photos: first is a 2×2 feature. */
.wp-block-gallery.is-style-mosaic figure.wp-block-image:first-child:nth-last-child(3n) { grid-column: span 2; grid-row: span 2; }
.wp-block-gallery.is-style-mosaic figure.wp-block-image:first-child:nth-last-child(3n) img { aspect-ratio: auto; }
/* 5, 8… photos: first spans two columns. */
.wp-block-gallery.is-style-mosaic figure.wp-block-image:first-child:nth-last-child(3n+2) { grid-column: span 2; }
.wp-block-gallery.is-style-mosaic figure.wp-block-image:first-child:nth-last-child(3n+2) img { aspect-ratio: auto; }
/* 4, 7… photos: first is a full-width banner. */
.wp-block-gallery.is-style-mosaic figure.wp-block-image:first-child:nth-last-child(3n+1) { grid-column: 1 / -1; }
.wp-block-gallery.is-style-mosaic figure.wp-block-image:first-child:nth-last-child(3n+1) img { aspect-ratio: 21 / 9; }
@media (max-width: 600px) {
	.wp-block-gallery.is-style-mosaic.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wp-block-gallery.is-style-mosaic figure.wp-block-image:first-child { grid-column: 1 / -1 !important; grid-row: auto !important; }
	.wp-block-gallery.is-style-mosaic figure.wp-block-image:first-child img { aspect-ratio: 16 / 10 !important; }
}

/* FAQ / details */
.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--slate);
	padding-right: 2.75rem;
	position: relative;
	min-height: 44px;
	display: flex;
	align-items: center;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: .25rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--line);
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.25rem;
	line-height: 1;
	transition: transform .25s var(--lh-ease), background-color .25s;
}
.wp-block-details[open] summary::after { content: "\2212"; background: var(--wp--preset--color--sand); }
.wp-block-details > :not(summary) { margin-block-start: .75rem; max-width: 44rem; }

/* ==========================================================================
   5. Section components
   ========================================================================== */

/* Facts strip */
.lh-facts .wp-block-column { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: clamp(1rem, 2vw, 1.75rem); }
.lh-facts .wp-block-column:first-child { border-left: 0; padding-left: 0; }
.lh-facts p:not(.is-style-stat) { font-size: 1rem; line-height: 1.45; margin: 0; color: #DCE3E5; }
@media (max-width: 781px) {
	.lh-facts .wp-block-column { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 1.25rem; }
	.lh-facts .wp-block-column:first-child { border-top: 0; padding-top: 0; }
}

/* Panorama band */
.wp-block-cover.lh-panorama { min-height: clamp(22rem, 46vw, 40rem) !important; }
.lh-panorama h2 { color: #fff; max-width: 16ch; text-wrap: balance; }
.lh-panorama .lh-hero__lead { max-width: 34rem; font-size: var(--wp--preset--font-size--large); line-height: 1.5; }
.lh-panorama .wp-block-cover__inner-container { text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }

/* Split feature: text + overlapping image pair */
.wp-block-columns.lh-split { align-items: center !important; column-gap: clamp(2.5rem, 1rem + 5vw, 6.5rem); }
.lh-image-pair { position: relative; }
.lh-image-pair > .wp-block-image:nth-child(2) {
	position: absolute;
	width: 46%;
	right: -1rem;
	bottom: -2.5rem;
	border: 8px solid var(--wp--preset--color--shell);
	box-shadow: var(--wp--preset--shadow--lifted);
	margin: 0;
}
.is-style-section-sand .lh-image-pair > .wp-block-image:nth-child(2) { border-color: var(--wp--preset--color--sand); }
@media (max-width: 781px) {
	.lh-image-pair > .wp-block-image:nth-child(2) { right: 0; bottom: -1.5rem; width: 44%; border-width: 5px; }
	.lh-image-pair { margin-bottom: 2rem; }
}

/* Info "pills" (check-in times etc.) */
.lh-info-row { gap: 1px !important; background: var(--wp--preset--color--line); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; overflow: hidden; }
.lh-info-row > .wp-block-column { background: var(--wp--preset--color--white); padding: 1.5rem 1.75rem; margin: 0 !important; }
.lh-info-row h3 { font-size: var(--wp--preset--font-size--large); margin: 0 0 .35rem; }
.lh-info-row p { margin: 0; }

/* Quote / review band */
.lh-quote-mark { font-family: var(--wp--preset--font-family--heading); font-size: 6rem; line-height: .6; color: var(--wp--preset--color--brass); margin-bottom: 0; }

/* Posts grid (offers & news) */
.lh-posts .wp-block-post { background: #fff; box-shadow: var(--wp--preset--shadow--soft); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.lh-posts .wp-block-post > :not(.wp-block-post-featured-image) { margin-inline: 1.5rem; }
.lh-posts .wp-block-post > :last-child { margin-bottom: 1.5rem; }
.lh-posts .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large); }
.lh-posts .wp-block-post-title a { text-decoration: none; }
.lh-posts .wp-block-post-title a:hover { text-decoration: underline; }

/* ==========================================================================
   6. Footer
   ========================================================================== */
.lh-footer { font-size: 1.0625rem; }
.lh-footer__top { gap: 2rem; align-items: flex-end; }
.lh-footer__strap { color: #C9D1D3; margin-block-start: 1rem; }
.lh-footer__rule { width: 100% !important; border-color: rgba(255, 255, 255, .16) !important; margin-block: var(--wp--preset--spacing--50) !important; opacity: 1; }
.lh-footer__heading {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: .9375rem !important;
	font-weight: 700 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase;
	color: #E8D3AE !important;
	margin-block-end: 1rem;
}
.lh-footer__links { list-style: none; padding: 0; margin: 0; }
.lh-footer__links li { margin-block: .45rem; }
.lh-footer a { text-decoration-color: rgba(255, 255, 255, .35); }
.lh-footer a:hover { color: var(--wp--preset--color--brass); text-decoration-color: currentColor; }
.lh-footer__bottom {
	margin-block-start: var(--wp--preset--spacing--60) !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: 1rem;
	color: #C9D1D3;
	gap: .5rem 2rem;
}
.lh-footer__bottom p { margin: 0; }
@media (max-width: 781px) {
	/* Room for the fixed "Call / Book" bar. */
	.lh-footer { padding-bottom: calc(var(--wp--preset--spacing--40) + 4.5rem) !important; }
}

/* ==========================================================================
   7. Misc
   ========================================================================== */
.wp-block-separator.is-style-wide, .wp-block-separator { opacity: 1; }
.wp-block-table table { border-collapse: collapse; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--wp--preset--color--line); padding: .6rem .8rem; vertical-align: top; }
.wp-block-table thead { border-bottom: 2px solid var(--wp--preset--color--slate); }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
	.lh-site-header, .lh-site-footer, .lh-action-bar, .lh-cookie, .lh-booking { display: none !important; }
	body { background: #fff; color: #000; }
}

/* Card groups (e.g. the contact form card, policy cards) need inner padding. */
.wp-block-group.lh-form-card,
.wp-block-column.lh-policy-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.wp-block-column.lh-policy-card h3 { margin-top: 0; }

/* Long-form text pages (privacy, accessibility statement): calmer heading sizes. */
.lh-page-body .wp-block-group.is-layout-constrained > h2.wp-block-heading:not([class*="-font-size"]) { font-size: var(--wp--preset--font-size--x-large); margin-block-start: 2.5rem; }
.lh-page-body .wp-block-group.is-layout-constrained > h3.wp-block-heading:not([class*="-font-size"]) { font-size: var(--wp--preset--font-size--large); margin-block-start: 1.75rem; }

/* Footer credit with the UCW Faculty of Computing logo. */
.lh-credit { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .85rem; margin: 0; }
.lh-credit__link { display: inline-flex; line-height: 0; border-radius: 2px; }
.lh-credit__link img { display: block; width: 172px; height: auto; opacity: .92; transition: opacity .2s; }
.lh-credit__link:hover img, .lh-credit__link:focus-visible img { opacity: 1; }

/* ==========================================================================
   Home page hero: full-screen photograph, evenly darkened, with the welcome
   centred over it and the booking box overlapping the bottom edge.
   ========================================================================== */
.wp-block-cover.lh-hero {
	align-items: center;
	padding-bottom: calc(var(--wp--preset--spacing--70) + 2.75rem);
}
.wp-block-cover.lh-hero .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(25, 30, 33, .58) 0%, rgba(25, 30, 33, .4) 40%, rgba(25, 30, 33, .52) 100%) !important;
}
.lh-hero-centre {
	max-width: 72rem;
	margin-inline: auto;
	text-align: center;
	text-shadow: 0 1px 24px rgba(0, 0, 0, .35);
}
/* "Lauriston Hotel" is the headline; "Welcome to the" sits above it as a smaller italic line. */
.lh-hero-centre h1 {
	color: #fff;
	font-size: clamp(2.9rem, 0.8rem + 8vw, 9.5rem);
	line-height: 1;
	letter-spacing: -0.02em;
	max-width: none;
	margin: 0 auto 1.5rem;
}
.lh-hero-centre h1 em {
	display: block;
	font-style: italic;
	font-size: max(.4em, 1.25rem);
	line-height: 1.2;
	letter-spacing: 0;
	margin-bottom: .35em;
}
@media (min-width: 782px) {
	.lh-hero-centre h1 em { line-height: 1; margin-bottom: .05em; }
	color: #F1E6D2;
}
.lh-hero-centre p.lh-hero__lead {
	color: #fff;
	font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem);
	line-height: 1.5;
	max-width: 46rem;
	margin: 0 auto 2.25rem;
	text-wrap: balance;
}
.lh-hero-centre .wp-block-buttons { margin: 0; text-shadow: none; }
