/*
Theme Name: Bayle Restaurant
Author: Bayle
Author URI: https://bayle.food/
Description: A block theme for restaurants, cafés and bars. Thirty style variations, three for each kind of place (Casual Bistro, Fine Dining, Café & Brunch, Lunch, Cloud Kitchen, Bar & Wine Bar, Bakery, Street Food, Pizzeria and Burger Joint), each with its own header, footer, home layout, section shapes and scroll motion. Starter page patterns for Home, Menu, Book a table, Food rescue, About and Contact, editable sample opening hours and contact snippets, a click-to-load OpenStreetMap section, accessible colour pairs and locally bundled fonts. The booking, menu and food rescue sections show the Bayle widget blocks when a companion plugin is active, and an editable text otherwise. English, Finnish and Swedish.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
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: bayle-restaurant
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, food-and-drink, full-site-editing, one-column, style-variations, template-editing, three-columns, threaded-comments, translation-ready, wide-blocks
*/

/* -------------------------------------------------------------------------
 * 0. Foundations
 * ---------------------------------------------------------------------- */
:root {
	--bayle-header-total: calc(var(--wp--custom--header--height) + (2 * var(--wp--custom--header--inset)));
	--bayle-ease: var(--wp--custom--motion--ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--bayle-header-total) + 1rem);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
}

:where(h1, h2, h3, h4) {
	text-wrap: balance;
}

:where(p, li) {
	text-wrap: pretty;
}

img {
	height: auto;
	max-width: 100%;
}

::selection {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:where(:not(.wp-element-button)):hover {
	text-decoration-thickness: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Focus: always visible, never colour-only. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--custom--focus--color);
	outline-offset: 3px;
	border-radius: 2px;
}

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--custom--focus--color);
	outline-offset: 3px;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 1rem;
	top: 1rem;
	padding: 0.85rem 1.25rem;
	z-index: 100000;
	text-decoration: none;
	font-weight: 600;
	border-radius: var(--wp--custom--radius--sm);
	outline: 2px solid var(--wp--preset--color--primary);
}

/* -------------------------------------------------------------------------
 * 1. Buttons
 * ---------------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link {
	text-decoration: none;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
}

.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(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

@media (prefers-reduced-motion: no-preference) {
	.wp-element-button,
	.wp-block-button__link {
		transition: background-color 0.2s var(--bayle-ease), color 0.2s var(--bayle-ease), border-color 0.2s var(--bayle-ease), transform 0.2s var(--bayle-ease);
	}

	.wp-block-button__link:active {
		transform: translateY(1px);
	}
}

/* -------------------------------------------------------------------------
 * 2. Header — sticky; transparent over the home hero, solid on scroll (CSS only)
 * ---------------------------------------------------------------------- */
.bayle-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	padding: var(--wp--custom--header--inset) var(--wp--custom--header--inset) 0;
	margin-block-start: 0;
}

.bayle-header__bar {
	display: grid;
	align-content: center;
	min-height: var(--wp--custom--header--height);
	padding-block: 0.5rem;
	background-color: var(--wp--custom--header--bg);
	color: var(--wp--custom--header--text);
	border-style: solid;
	border-width: var(--wp--custom--header--border-width);
	border-color: var(--wp--custom--header--border);
	border-radius: var(--wp--custom--header--radius);
	box-shadow: var(--wp--custom--header--shadow);
	position: relative;
	z-index: 0;
}

/* 2.3.2: the frosted-glass blur lives on a layer behind the bar, never on
   the bar itself. backdrop-filter (like transform or filter) on an ancestor
   makes it the containing block for position:fixed, which trapped the mobile
   menu overlay inside the header bar (links untappable under the page). */
.bayle-header__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	-webkit-backdrop-filter: var(--wp--custom--header--backdrop);
	backdrop-filter: var(--wp--custom--header--backdrop);
	pointer-events: none;
}

.bayle-header__inner {
	width: 100%;
}

.bayle-site-header .wp-block-site-title a,
.bayle-site-header .wp-block-navigation-item__content,
.bayle-site-header .wp-block-navigation__responsive-container-open {
	color: inherit;
}

.bayle-site-header .wp-block-navigation {
	text-transform: var(--wp--custom--nav--transform);
	letter-spacing: var(--wp--custom--nav--tracking);
	font-weight: var(--wp--custom--nav--weight);
}

.bayle-site-header .wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.4rem;
}

.bayle-site-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
}

.bayle-site-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.bayle-site-header .wp-block-navigation .wp-block-navigation-item__content:focus-visible::after,
.bayle-site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

@media (prefers-reduced-motion: no-preference) {
	.bayle-site-header .wp-block-navigation .wp-block-navigation-item__content::after {
		transition: transform 0.25s var(--bayle-ease);
	}
}

/* Mobile overlay menu. */
.bayle-site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: calc(var(--bayle-header-total) + 1rem) clamp(1.25rem, 6vw, 2.5rem) 2rem;
	font-size: var(--wp--preset--font-size--x-large);
	font-family: var(--wp--custom--font--heading);
	text-transform: none;
	letter-spacing: 0;
}

.bayle-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
}

.bayle-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
}

/* Language switcher (FI | SV | EN), last item of the header navigation. */
.bayle-lang-switcher__list {
	display: flex;
	align-items: center;
	gap: 0.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bayle-lang-switcher__item {
	display: flex;
	align-items: center;
}

.bayle-lang-switcher__item + .bayle-lang-switcher__item::before {
	content: "|";
	content: "|" / "";
	margin-inline: 0.15rem;
	opacity: 0.45;
}

.bayle-lang-switcher__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	min-height: 1.75rem;
	padding: 0.2rem 0.15rem;
	color: inherit;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.bayle-lang-switcher__link:hover,
.bayle-lang-switcher__link[aria-current] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.bayle-lang-switcher__link[aria-current] {
	font-weight: 700;
}

.bayle-lang-switcher__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wp-block-navigation .bayle-lang-switcher {
	margin-inline-start: 0.25rem;
	letter-spacing: 0;
}

/* Desktop: navigation and switcher stay on one line; the wordmark wraps first. */
@media (min-width: 1280px) {
	.bayle-site-header .wp-block-navigation__container {
		flex-wrap: nowrap;
		column-gap: min(var(--wp--style--block-gap, 1.5rem), 1.35vw);
	}

	.bayle-site-header .wp-block-navigation-item__content {
		white-space: nowrap;
	}
}

.bayle-site-header .wp-block-navigation__responsive-container.is-menu-open .bayle-lang-switcher {
	margin: 1.5rem 0 0;
}

/* Overlay menu: links and switcher share one start-aligned column. */
.bayle-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
}

.bayle-site-header .wp-block-navigation__responsive-container.is-menu-open .bayle-lang-switcher__list {
	margin-inline-start: -0.6rem;
}

.bayle-site-header .wp-block-navigation__responsive-container.is-menu-open .bayle-lang-switcher__link {
	min-width: 2.75rem;
	min-height: 2.75rem;
	font-family: var(--wp--custom--font--body);
	font-size: 1.0625rem;
	color: var(--wp--preset--color--contrast);
}

.bayle-header__cta .wp-block-button__link {
	padding: 0.75em 1.35em;
	white-space: nowrap;
}

@media (max-width: 599px) {
	.bayle-header__cta .wp-block-button__link {
		padding: 0.7em 1em;
		font-size: 0.8125rem;
		letter-spacing: 0.04em;
	}

	/* Long names wrap onto two lines instead of pushing the page wider. */
	.bayle-site-header .wp-block-site-title {
		font-size: min(var(--wp--preset--font-size--medium), 4.6vw) !important;
		flex: 1 1 auto;
		min-width: 0;
		line-height: 1.1;
		overflow-wrap: break-word;
	}

	.bayle-header__actions {
		gap: 0.75rem !important;
		flex-shrink: 0;
	}

	.bayle-site-header .wp-block-site-title.bayle-title--long {
		font-size: min(var(--wp--preset--font-size--medium), 3.9vw) !important;
		letter-spacing: min(var(--wp--custom--header--title-tracking, 0em), 0.04em);
		overflow-wrap: anywhere;
	}
}

/* Transparent-over-hero behaviour, only where scroll-driven animations exist
   and the front page opens with a hero made for it (bayle_theme_has_overlay_hero()).
   Everywhere else the header simply stays solid and sticky. */
@supports (animation-timeline: scroll()) {
	.bayle-overlay-hero .bayle-site-header + .bayle-main,
	.bayle-overlay-hero .bayle-site-header + * > .bayle-main:first-child {
		margin-block-start: calc(-1 * var(--bayle-header-total));
	}

	.bayle-overlay-hero .bayle-header__bar {
		animation: bayle-header-solidify linear both;
		animation-timeline: scroll(root block);
		animation-range: 0px 240px;
	}

	.bayle-overlay-hero .bayle-site-header :focus-visible {
		outline-color: currentColor;
	}
}

@keyframes bayle-header-solidify {
	from {
		background-color: var(--wp--custom--header--bg-over-hero);
		color: var(--wp--custom--header--text-over-hero);
		border-color: transparent;
		box-shadow: none;
	}

	to {
		background-color: var(--wp--custom--header--bg);
		color: var(--wp--custom--header--text);
		border-color: var(--wp--custom--header--border);
		box-shadow: var(--wp--custom--header--shadow);
	}
}

/* -------------------------------------------------------------------------
 * 3. Hero: "stage". One markup, laid out per style variation by tokens
 *    (hero.stage.* in theme.json): split + arch, cinematic or collage.
 *    No overlay sits behind the text; photos keep their true colour.
 * ---------------------------------------------------------------------- */
.bayle-stage {
	--bayle-stage-pad: max(clamp(1.25rem, 5vw, 3rem), calc((100% - 1240px) / 2));
	display: grid;
	grid-template-columns: var(--bayle-stage-pad) repeat(12, minmax(0, 1fr)) var(--bayle-stage-pad);
	grid-template-rows: var(--wp--custom--hero--stage--rows);
	column-gap: clamp(0.75rem, 1.6vw, 1.5rem);
	padding-top: var(--wp--custom--hero--stage--pad-top);
	padding-bottom: var(--wp--custom--hero--stage--pad-bottom);
	background: var(--wp--custom--hero--stage--bg);
	color: var(--wp--custom--hero--stage--text);
	overflow: clip;
}

.bayle-stage.alignfull {
	margin-block: 0;
}

.bayle-stage > * {
	min-width: 0;
	margin: 0 !important;
}

.bayle-stage__title {
	position: relative;
	z-index: 3;
	grid-column: var(--wp--custom--hero--stage--title-col);
	grid-row: var(--wp--custom--hero--stage--title-row);
	align-self: var(--wp--custom--hero--stage--title-align);
	padding-bottom: var(--wp--preset--spacing--50);
}

.bayle-stage__title > * {
	margin-block: 0;
	text-shadow: var(--wp--custom--hero--stage--text-shadow);
}

.bayle-stage__title .is-style-eyebrow {
	margin-bottom: var(--wp--preset--spacing--40);
}

.bayle-stage h1 {
	font-size: var(--wp--custom--hero--title-size);
	line-height: 0.96;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: inherit;
}

.bayle-stage__body {
	position: relative;
	z-index: 3;
	grid-column: var(--wp--custom--hero--stage--body-col);
	grid-row: var(--wp--custom--hero--stage--body-row);
	display: grid;
	grid-template-columns: var(--wp--custom--hero--stage--body-cols);
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
	align-items: end;
	align-content: start;
}

.bayle-stage__body > * {
	margin: 0 !important;
}

.bayle-stage__lede {
	max-width: 36rem;
	color: var(--wp--preset--color--contrast-2);
}

.bayle-stage__actions {
	grid-column: var(--wp--custom--hero--stage--actions-col);
}

.bayle-stage__meta {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--contrast-2);
}

.bayle-stage__meta span + span::before {
	content: "";
	display: inline-block;
	width: 0.35em;
	height: 0.35em;
	margin-inline-end: 0.9em;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	vertical-align: 0.15em;
}

.bayle-stage__media {
	position: relative;
	overflow: hidden;
}

.bayle-stage__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bayle-stage__media--main {
	z-index: 1;
	grid-column: var(--wp--custom--hero--stage--main-col);
	grid-row: var(--wp--custom--hero--stage--main-row);
	height: var(--wp--custom--hero--stage--main-height);
	align-self: start;
	border-radius: var(--wp--custom--hero--stage--main-radius);
	box-shadow: var(--wp--custom--hero--stage--main-shadow);
	border: var(--wp--custom--hero--stage--main-border, 0);
	transform: var(--wp--custom--hero--stage--main-transform, none);
}

.bayle-stage__media--main::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: var(--wp--custom--hero--stage--main-fade);
}

.bayle-stage__media--b {
	z-index: 2;
	display: var(--wp--custom--hero--stage--b-display);
	grid-column: var(--wp--custom--hero--stage--b-col);
	grid-row: var(--wp--custom--hero--stage--b-row);
	align-self: var(--wp--custom--hero--stage--b-align);
	justify-self: var(--wp--custom--hero--stage--b-justify);
	width: 100%;
	aspect-ratio: var(--wp--custom--hero--stage--b-ratio);
	transform: var(--wp--custom--hero--stage--b-transform);
	border-radius: var(--wp--custom--hero--stage--b-radius);
	border: var(--wp--custom--hero--stage--b-border);
	box-shadow: var(--wp--preset--shadow--lifted, 0 24px 50px -28px rgba(0,0,0,0.45));
}

.bayle-stage__media--c {
	z-index: 2;
	display: var(--wp--custom--hero--stage--c-display);
	grid-column: var(--wp--custom--hero--stage--c-col);
	grid-row: var(--wp--custom--hero--stage--c-row);
	align-self: var(--wp--custom--hero--stage--c-align);
	width: 100%;
	aspect-ratio: var(--wp--custom--hero--stage--c-ratio);
	transform: var(--wp--custom--hero--stage--c-transform);
	border-radius: var(--wp--custom--hero--stage--c-radius);
	border: var(--wp--custom--hero--stage--b-border);
	box-shadow: var(--wp--preset--shadow--lifted, 0 24px 50px -28px rgba(0,0,0,0.45));
}

.bayle-stage :focus-visible {
	outline-color: currentColor;
}

@media (max-width: 781px) {
	.bayle-stage {
		grid-template-rows: var(--wp--custom--hero--stage--mobile-rows);
		row-gap: var(--wp--preset--spacing--50);
		background: var(--wp--custom--hero--stage--mobile-bg);
	}

	.bayle-stage__title {
		grid-column: 2 / 14;
		grid-row: var(--wp--custom--hero--stage--mobile-title-row);
		padding-bottom: 0;
	}

	.bayle-stage__body {
		grid-column: 2 / 14;
		grid-row: var(--wp--custom--hero--stage--mobile-body-row);
		grid-template-columns: minmax(0, 1fr);
	}

	.bayle-stage__actions {
		grid-column: 1;
	}

	.bayle-stage__media--main {
		grid-column: var(--wp--custom--hero--stage--mobile-main-col);
		grid-row: var(--wp--custom--hero--stage--mobile-main-row);
		height: var(--wp--custom--hero--stage--mobile-main-height);
	}

	.bayle-stage__media--b {
		display: var(--wp--custom--hero--stage--mobile-b-display);
		grid-column: var(--wp--custom--hero--stage--mobile-b-col);
		grid-row: var(--wp--custom--hero--stage--mobile-b-row);
		transform: var(--wp--custom--hero--stage--mobile-b-transform);
		border-width: 6px;
	}

	.bayle-stage__media--c {
		display: var(--wp--custom--hero--stage--mobile-c-display);
		grid-column: var(--wp--custom--hero--stage--mobile-c-col);
		grid-row: var(--wp--custom--hero--stage--mobile-c-row);
		transform: var(--wp--custom--hero--stage--mobile-c-transform);
		border-width: 6px;
	}
}

/* Legacy full-bleed cover hero (kept for content made with 2.0). */
.wp-block-cover.bayle-hero {
	min-height: var(--wp--custom--hero--min-height);
	color: var(--wp--custom--hero--text);
}

.bayle-hero :where(h1, h2, p) {
	color: inherit;
}

/* Pattern images ship without width/height attributes. Give images that
   declare an aspect ratio a definite size before they load, so lazy loading
   always triggers and layout never collapses. */
.wp-block-image img[style*="aspect-ratio"] {
	width: 100%;
	height: auto;
}

/* Split hero. */
.bayle-hero-split .wp-block-image img {
	width: 100%;
	object-fit: cover;
}

/* -------------------------------------------------------------------------
 * 4. Block styles: eyebrow, card, ornament
 * ---------------------------------------------------------------------- */
.is-style-eyebrow {
	width: fit-content;
	max-width: 100%;
	color: var(--wp--custom--eyebrow--color);
	background: var(--wp--custom--eyebrow--bg);
	padding: var(--wp--custom--eyebrow--padding);
	border-radius: var(--wp--custom--eyebrow--radius);
	font-family: var(--wp--custom--eyebrow--font);
	font-size: var(--wp--custom--eyebrow--size);
	font-style: var(--wp--custom--eyebrow--style);
	font-weight: var(--wp--custom--eyebrow--weight);
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	text-transform: var(--wp--custom--eyebrow--transform);
	line-height: 1.3;
}

.is-style-eyebrow.has-text-align-center {
	margin-inline: auto;
}

.is-style-card {
	background: var(--wp--custom--card--bg);
	border: var(--wp--custom--card--border);
	border-radius: var(--wp--custom--card--radius);
	box-shadow: var(--wp--custom--card--shadow);
	overflow: hidden;
}

.is-style-card > .wp-block-image:first-child,
.is-style-card > figure:first-child {
	margin-block-start: 0;
}

.is-style-card > .wp-block-image:first-child img {
	border-radius: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.is-style-card {
		transition: transform 0.35s var(--bayle-ease), box-shadow 0.35s var(--bayle-ease);
	}

	.is-style-card:hover {
		transform: translateY(-3px);
		box-shadow: var(--wp--custom--card--hover-shadow);
	}
}

.wp-block-separator.is-style-ornament {
	width: var(--wp--custom--divider--width) !important;
	max-width: var(--wp--custom--divider--width);
	height: var(--wp--custom--divider--height);
	border: 0 !important;
	border-radius: var(--wp--custom--divider--radius);
	background: var(--wp--custom--divider--bg) !important;
	opacity: 1;
	margin-inline: auto;
}

.wp-block-separator.is-style-ornament.is-left {
	margin-inline: 0 auto;
}

/* -------------------------------------------------------------------------
 * 5. Media
 * ---------------------------------------------------------------------- */
.wp-block-image img,
.wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--media);
}

.wp-block-image.is-resized img,
.bayle-media img {
	object-fit: cover;
}

.bayle-gallery .wp-block-image {
	margin: 0;
}

.bayle-gallery .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bayle-gallery .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

.bayle-gallery .wp-block-column > * {
	margin-block: 0;
}

.bayle-stack-photo {
	position: relative;
}

.bayle-stack-photo .bayle-stack-photo__small {
	position: absolute;
	right: -4%;
	bottom: -8%;
	width: 42%;
	border: 6px solid var(--wp--preset--color--base);
	border-radius: calc(var(--wp--custom--radius--media) + 6px);
	box-shadow: var(--wp--preset--shadow--lifted);
	margin: 0;
}

@media (max-width: 781px) {
	.bayle-stack-photo .bayle-stack-photo__small {
		right: 4%;
		bottom: -6%;
		width: 38%;
	}
}

/* -------------------------------------------------------------------------
 * 6. Sections & components
 * ---------------------------------------------------------------------- */

/* Bands (inverted sections) */
.has-band-background-color .is-style-eyebrow {
	color: var(--wp--custom--band--eyebrow);
	background: transparent;
	padding: 0;
}

.has-band-background-color :where(h1, h2, h3, h4, h5, h6),
.has-band-background-color :where(a:not(.wp-element-button)) {
	color: inherit;
}

.has-band-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background-color: var(--wp--preset--color--on-band);
	color: var(--wp--preset--color--band);
	border-color: var(--wp--preset--color--on-band);
}

.has-band-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.has-band-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--band);
}

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

.has-band-background-color :focus-visible {
	outline-color: currentColor;
}

/* Dish cards / menu lines */
.bayle-price {
	font-family: var(--wp--custom--price--font);
	font-size: var(--wp--custom--price--size);
	color: var(--wp--preset--color--primary);
	white-space: nowrap;
	line-height: 1.2;
}

.bayle-dish__body {
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.bayle-dish__tags {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
}

.bayle-menu-line {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-block: var(--wp--preset--spacing--30);
}

/* Steps (food rescue) */
.bayle-steps {
	counter-reset: bayle-step;
}

.bayle-step {
	counter-increment: bayle-step;
	position: relative;
}

.bayle-step::before {
	content: counter(bayle-step, decimal-leading-zero);
	display: block;
	font-family: var(--wp--custom--price--font);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1;
	color: var(--wp--preset--color--primary);
	margin-bottom: var(--wp--preset--spacing--30);
}

.has-band-background-color .bayle-step::before {
	color: var(--wp--custom--band--eyebrow);
}

/* Stats */
.bayle-stat__value {
	font-family: var(--wp--custom--price--font);
	line-height: 1;
}

/* Opening hours */
.bayle-hours__row {
	border-bottom: 1px dashed color-mix(in srgb, currentColor 28%, transparent);
	padding-block: 0.6rem;
	gap: 1rem;
}

.bayle-hours__row > * {
	margin: 0 !important;
}

.bayle-hours__row:last-child {
	border-bottom: 0;
}

/* Press strip: four different-looking marks from the style's own two fonts
   (no extra font downloads). */
.bayle-press__mark {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
	white-space: nowrap;
	line-height: 1.1;
}

.bayle-press__mark--serif {
	font-family: var(--wp--custom--font--heading);
	font-size: 1.5rem;
	font-style: italic;
	font-weight: 500;
}

.bayle-press__mark--sans {
	font-family: var(--wp--custom--font--body);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

.bayle-press__mark--display {
	font-family: var(--wp--custom--font--heading);
	font-size: 1.5rem;
}

.bayle-press__mark--round {
	font-family: var(--wp--custom--font--body);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* Testimonials */
.bayle-quote-card .wp-block-quote {
	margin: 0;
}

.bayle-quote-card .wp-block-quote cite {
	display: block;
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--contrast-2);
	font-family: var(--wp--preset--font-family--system-sans);
	font-style: normal;
	font-size: var(--wp--preset--font-size--small);
}

.bayle-stars {
	color: var(--wp--preset--color--primary);
	letter-spacing: 0.2em;
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

/* OpenStreetMap embed (Custom HTML block in the Location & contact pattern) */
.bayle-osm {
	margin: 0;
}

.bayle-osm__frame {
	display: block;
	width: 100%;
	height: clamp(300px, 42vw, 480px);
	border: var(--wp--custom--card--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--card--shadow);
	background: var(--wp--preset--color--base-2);
	filter: var(--wp--custom--map--filter, none);
}

/* Click-to-load placeholder: nothing loads from the map service before the click. */
.bayle-osm__consent {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--50);
	text-align: center;
	color: var(--wp--preset--color--contrast-2);
}

.bayle-osm__notice {
	max-width: 32rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.bayle-osm__caption {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	margin-top: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}

.bayle-osm__caption a {
	color: inherit;
}

.bayle-osm__caption > a:first-child {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* FAQ */
.bayle-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-block: var(--wp--preset--spacing--40);
	margin: 0;
}

.bayle-faq .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	font-family: var(--wp--custom--font--heading);
	font-weight: 600;
}

.bayle-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.bayle-faq .wp-block-details summary::after {
	content: "+";
	font-size: 1.5em;
	line-height: 0.7;
	color: var(--wp--preset--color--primary);
	flex: none;
}

.bayle-faq .wp-block-details[open] summary::after {
	content: "–";
}

.bayle-faq .wp-block-details > :not(summary) {
	color: var(--wp--preset--color--contrast-2);
	margin-top: var(--wp--preset--spacing--20);
}

/* Lists */
.bayle-checklist {
	list-style: none;
	padding-left: 0;
}

.bayle-checklist li {
	position: relative;
	padding-left: 1.75em;
	margin-block: 0.5em;
}

.bayle-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.9em;
	height: 0.5em;
	border-left: 2px solid var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
	transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------
 * 7. Bayle embeds
 * ---------------------------------------------------------------------- */
/* Bayle widget frames sit on a deliberate light "card" in every variation:
   the widgets are light, transparent pages with dark text, so they need a
   light surface behind them (on Fine Dining: ivory with a gold hairline). */
.bayle-embed-shell {
	position: relative;
	background: var(--wp--custom--widget--surface);
	color: var(--wp--custom--widget--ink);
	border: var(--wp--custom--widget--border);
	border-radius: var(--wp--custom--widget--radius);
	box-shadow: var(--wp--custom--widget--shadow);
	outline: var(--wp--custom--widget--outline);
	outline-offset: var(--wp--custom--widget--outline-offset);
	padding: var(--wp--custom--widget--padding);
	overflow: hidden;
}

.bayle-embed-shell .bayle-restaurant {
	position: relative;
	z-index: 1;
	margin: 0;
}

.bayle-embed-shell .bayle-restaurant__frame {
	display: block;
	width: 100%;
	border: 0;
	border-radius: max(0px, calc(var(--wp--custom--widget--radius) - 8px));
	background: var(--wp--custom--widget--surface);
	color-scheme: light;
}

/* Booking does not report its height: reserve room for the whole form. */
.bayle-embed-shell--booking .bayle-restaurant__frame {
	min-height: 980px;
}

@media (max-width: 600px) {
	.bayle-embed-shell--booking .bayle-restaurant__frame {
		min-height: 1060px;
	}
}

/* "Loading..." placeholder (2.3.1). The frame is opaque from the start, so
   text can never show through a transparent widget, and the placeholder is
   an opaque cover above the frame until the frame has loaded. The theme marks
   loaded frames with .is-loaded (onload, any plugin version; the plugin's
   resize.js does the same); a short CSS fallback removes the cover even if
   no load event ever arrives. */
.bayle-embed-shell iframe {
	background: var(--wp--custom--widget--surface);
}

.bayle-embed-shell__loading {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	margin: 0;
	background: var(--wp--custom--widget--surface);
	color: var(--wp--custom--widget--ink-soft);
	font-size: var(--wp--preset--font-size--small);
	pointer-events: none;
	animation: bayle-placeholder-out 0.01s linear 6s forwards;
}

.bayle-embed-shell:has(iframe.is-loaded) .bayle-embed-shell__loading,
.bayle-embed-shell:has(.bayle-restaurant.is-loaded) .bayle-embed-shell__loading,
.bayle-embed-shell.is-loaded .bayle-embed-shell__loading {
	display: none;
}

@keyframes bayle-placeholder-out {
	to {
		visibility: hidden;
	}
}

.bayle-embed-shell__direct {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	margin-top: var(--wp--preset--spacing--30);
}

.bayle-embed-notice {
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
}

.bayle-embed-notice a {
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * 8. Footer
 * ---------------------------------------------------------------------- */
.bayle-site-footer a:where(:not(.wp-element-button)) {
	color: inherit;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}

.bayle-site-footer a:where(:not(.wp-element-button)):hover {
	text-decoration-color: currentColor;
}

.bayle-site-footer .bayle-footer__label {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	font-family: var(--wp--preset--font-family--system-sans);
	color: var(--wp--preset--color--contrast-2);
}

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

/* -------------------------------------------------------------------------
 * 9. Posts
 * ---------------------------------------------------------------------- */
.bayle-post-card .wp-block-post-featured-image {
	margin: 0;
}

.bayle-post-card .wp-block-post-featured-image img {
	border-radius: 0;
}

.wp-block-post-content > .alignfull:first-child {
	margin-block-start: 0;
}

/* -------------------------------------------------------------------------
 * 10. Layout glue
 * ---------------------------------------------------------------------- */
.wp-site-blocks > .bayle-main,
.wp-site-blocks > .bayle-site-footer {
	margin-block-start: 0;
}

.bayle-page-content > :last-child:not(.alignfull) {
	margin-block-end: var(--wp--preset--spacing--80);
}

.bayle-dish > *,
.bayle-post-card > * {
	margin-block: 0;
}

.bayle-dish {
	display: flex;
	flex-direction: column;
}

.bayle-avatar {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: var(--wp--preset--spacing--20);
	border-radius: 50%;
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--custom--font--heading);
	font-size: 1.125rem;
	letter-spacing: 0.04em;
	border: 1px solid var(--wp--preset--color--line);
}

.bayle-chef-quote p {
	font-family: var(--wp--custom--font--heading);
	line-height: 1.3;
}

/* 2.4: the theme's 3-column card grids (reviews, dishes, team, steps,
   posts) stack on phones. Some WordPress versions kept three ~100px columns. */
@media (max-width: 599px) {
	.bayle-main .wp-block-group.is-layout-grid,
	.bayle-auto .wp-block-group.is-layout-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Collapse the primary navigation into the overlay on tablets and small
   laptops as well (the header also carries the FI | SV | EN switcher). */
@media (min-width: 600px) and (max-width: 1279px) {
	.bayle-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

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

/* Wide screens: links that do not fit beside the name and buttons fold into
   the menu button too (class set by assets/js/wordmark-fit.js). */
.bayle-site-header.bayle-nav-fold .wp-block-navigation__responsive-container-open:not(.always-shown) {
	display: flex;
}

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

/* -------------------------------------------------------------------------
 * 12. Signature layer (2.1) — editorial type, texture and scroll-linked motion.
 *     Pure CSS. Every animation is opt-in via prefers-reduced-motion: no-preference
 *     and feature-detected, so the static design is always complete.
 * ---------------------------------------------------------------------- */

/* Emphasis word (hero and headings) */
.wp-block-heading em,
.bayle-manifesto__text em {
	font-style: var(--wp--custom--emphasis--style);
	color: var(--wp--custom--emphasis--color-ink);
	background: var(--wp--custom--emphasis--bg);
	padding-inline: 0.04em;
}

/* Shaped media per variation */
.bayle-stack-photo > figure:first-child img,
.bayle-section-team .wp-block-columns .wp-block-image img,
.bayle-section-rescue .wp-block-image img {
	border-radius: var(--wp--custom--media--shape-alt);
}

/* Filled buttons get a small arrow that nudges on hover. */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::after {
	content: var(--wp--custom--button--arrow);
	display: inline-block;
	margin-inline-start: 0.5em;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link[href^="tel:"]::after,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link[href^="mailto:"]::after {
	content: none;
}

/* Marquee band */
.bayle-marquee {
	overflow: hidden;
	background: var(--wp--custom--marquee--bg);
	color: var(--wp--custom--marquee--text);
	border-block: var(--wp--custom--marquee--border);
	padding-block: clamp(1rem, 2.4vw, 1.75rem);
}

.bayle-marquee__track {
	display: flex;
	width: max-content;
	margin: 0;
	font-family: var(--wp--custom--marquee--font);
	font-style: var(--wp--custom--marquee--style);
	font-size: clamp(1.75rem, 4.4vw, 4rem);
	line-height: 1;
	letter-spacing: var(--wp--custom--marquee--tracking);
	text-transform: var(--wp--custom--marquee--transform);
	white-space: nowrap;
}

.bayle-marquee__group {
	display: flex;
	align-items: center;
	gap: 0 clamp(1.25rem, 3vw, 2.75rem);
	padding-inline-end: clamp(1.25rem, 3vw, 2.75rem);
}

.bayle-marquee__sep {
	font-size: 0.45em;
	font-style: normal;
	opacity: 0.75;
}

/* Manifesto */
.bayle-manifesto__text {
	font-family: var(--wp--custom--font--heading);
	font-size: clamp(1.9rem, 4.6vw, 4.4rem);
	line-height: 1.12;
	letter-spacing: -0.015em;
	max-width: 24ch;
	margin-inline: auto !important;
	text-wrap: balance;
}

.bayle-manifesto .is-style-ornament {
	width: 3rem;
	margin: 0 !important;
}

.bayle-pill {
	display: inline-block;
	height: 0.82em;
	width: auto;
	aspect-ratio: 2.3 / 1;
	object-fit: cover;
	border-radius: 999px;
	vertical-align: -0.08em;
	margin-inline: 0.06em;
	box-shadow: 0 0 0 1px var(--wp--preset--color--line);
}

/* Dishes: numbered index + photo zoom */
.bayle-dishes {
	counter-reset: bayle-dish;
}

.bayle-dish {
	counter-increment: bayle-dish;
}

.bayle-dish > .wp-block-image {
	overflow: hidden;
	position: relative;
}

.bayle-dish > .wp-block-image::after {
	content: "No. " counter(bayle-dish, decimal-leading-zero);
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	padding: 0.3em 0.7em;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--radius--button);
}

/* Footer wordmark */
/* Opening hours and contact snippets: one block, styled by where it sits. */
.bayle-footer .bayle-hours,
.bayle-footer .bayle-info {
	font-size: var(--wp--preset--font-size--small);
}

.bayle-footer .bayle-hours__row {
	padding-block: 0.15rem;
	border: 0;
	flex-wrap: wrap !important;
	column-gap: 1rem;
	row-gap: 0;
}

.bayle-footer .bayle-hours__row > p {
	white-space: nowrap;
}

.bayle-section-hours .bayle-hours__row > p {
	font-size: var(--wp--preset--font-size--large);
}

.bayle-footer .wp-block-block,
.bayle-section-location .wp-block-block {
	margin-block: 0;
}

/* Powered by Bayle credit (footer bottom bar). The variation picks the mark
   built for its surface: --wp--custom--brand-mark--scheme-light/dark. */
.bayle-powered {
	margin: 0;
}

.bayle-powered__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	color: inherit;
	text-decoration: none;
	min-height: 44px;
}

.bayle-powered__link:hover span,
.bayle-powered__link:focus-visible span {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.bayle-powered__mark {
	height: 24px;
	width: auto;
	flex: none;
}

.bayle-powered__mark--light {
	display: var(--wp--custom--brand-mark--light, inline-block);
}

.bayle-powered__mark--dark {
	display: var(--wp--custom--brand-mark--dark, none);
	height: 30px;
}

/* Wordmark: always one line, always whole. Sized from the container width
   and the title length (set by PHP as --bayle-wordmark-chars), capped. */
.bayle-wordmark-fit {
	container-type: inline-size;
	width: 100%;
	margin-block-start: var(--wp--preset--spacing--60);
}

.bayle-footer__wordmark {
	margin: 0 !important;
	font-size: clamp(2rem, 9vw, 15rem) !important;
	font-size: min(15rem, calc(100cqi / (var(--bayle-wordmark-chars, 12) * var(--wp--custom--wordmark--advance, 0.6)))) !important;
	line-height: 0.9 !important;
	letter-spacing: var(--wp--custom--wordmark--tracking) !important;
	text-transform: var(--wp--custom--wordmark--transform) !important;
	color: var(--wp--custom--wordmark--color);
	white-space: nowrap;
	overflow: visible;
	text-align: center;
	user-select: none;
}

.bayle-footer__wordmark a {
	color: inherit;
	text-decoration: none;
}


/* -------------------------------------------------------------------------
 * Concept sections (2.2.0): stickers, booking/order switch, today's lunch,
 * location of the day, drinks list, bake schedule, order band.
 * Everything is token-driven so each style variation gives it its own voice.
 * ---------------------------------------------------------------------- */

/* Booking appears only where the variation takes bookings; order-first
   variations swap the header CTA for "Order now". */
.bayle-nav-book,
.bayle-btn-book,
.bayle-header__cta--book {
	display: var(--wp--custom--booking--display, flex) !important;
}

.bayle-btn-order,
.bayle-header__cta--order {
	display: var(--wp--custom--order--display, none) !important;
}

.bayle-booking-only {
	display: var(--wp--custom--booking--block, block) !important;
}

/* Sticker / badge */
.bayle-sticker {
	display: grid !important;
	place-content: center;
	text-align: center;
	inline-size: var(--wp--custom--sticker--size, 8.5rem);
	aspect-ratio: 1;
	padding: 0.85rem;
	border-radius: var(--wp--custom--sticker--radius, 999px);
	background: var(--wp--custom--sticker--bg, var(--wp--preset--color--accent));
	color: var(--wp--custom--sticker--text, var(--wp--preset--color--contrast));
	border: var(--wp--custom--sticker--border, 0);
	box-shadow: var(--wp--custom--sticker--shadow, none);
	font-family: var(--wp--custom--sticker--font, var(--wp--custom--font--heading));
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: var(--wp--custom--sticker--tracking, 0);
	text-transform: var(--wp--custom--sticker--transform, none);
	rotate: var(--wp--custom--sticker--rotate, -8deg);
	margin: 0 !important;
}

.bayle-sticker strong {
	display: block;
	font-size: 2em;
	line-height: 1;
	font-weight: inherit;
}

.bayle-stage__sticker {
	position: relative;
	z-index: 3;
	grid-column: var(--wp--custom--hero--stage--sticker-col, 10 / 12);
	grid-row: var(--wp--custom--hero--stage--sticker-row, 1);
	align-self: var(--wp--custom--hero--stage--sticker-align, end);
	justify-self: var(--wp--custom--hero--stage--sticker-justify, start);
	translate: var(--wp--custom--hero--stage--sticker-shift, -35% 35%);
}

@media (max-width: 781px) {
	.bayle-stage__sticker {
		grid-column: var(--wp--custom--hero--stage--mobile-sticker-col, 9 / 14);
		grid-row: var(--wp--custom--hero--stage--mobile-sticker-row, 2);
		align-self: start;
		justify-self: end;
		translate: 4% 12%;
		--wp--custom--sticker--size: 6.5rem;
	}
}

/* Shared card for concept blocks */
.bayle-concept-card {
	background: var(--wp--custom--card--bg);
	border: var(--wp--custom--card--border);
	border-radius: var(--wp--custom--card--radius);
	box-shadow: var(--wp--custom--card--shadow);
	padding: clamp(1.25rem, 3vw, 2.5rem);
}

/* Today's lunch */
.bayle-lunch__day {
	font-family: var(--wp--custom--font--heading);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin: 0 !important;
}

.bayle-lunch__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0;
}

.bayle-lunch__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding-block: 0.9rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.bayle-lunch__list li:last-child {
	border-bottom: 0;
}

.bayle-lunch__list li span {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
}

.bayle-price-card {
	background: var(--wp--preset--color--band);
	color: var(--wp--preset--color--on-band);
	border-radius: var(--wp--custom--card--radius);
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.bayle-price-card .bayle-price-card__price {
	font-family: var(--wp--custom--font--heading);
	font-size: clamp(3rem, 7vw, 5.5rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.03em;
	margin: 0 !important;
}

.bayle-price-card .bayle-price-card__rows p {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.5rem;
	border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
	margin: 0 !important;
}

/* Location of the day */
.bayle-spot__now {
	font-family: var(--wp--custom--font--heading);
	font-size: clamp(2.25rem, 6vw, 4.5rem);
	line-height: 0.95;
	text-transform: var(--wp--custom--eyebrow--transform);
	margin: 0 !important;
}

.bayle-week {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bayle-week li {
	display: grid;
	grid-template-columns: 3.5rem 1fr auto;
	gap: 1rem;
	align-items: baseline;
	padding-block: 0.7rem;
	border-bottom: 2px solid var(--wp--preset--color--line);
}

.bayle-week li strong {
	font-family: var(--wp--custom--font--heading);
	text-transform: uppercase;
}

.bayle-week li.is-today {
	background: var(--wp--custom--sticker--bg, var(--wp--preset--color--accent));
	color: var(--wp--custom--sticker--text, var(--wp--preset--color--contrast));
	padding-inline: 0.75rem;
	border-radius: var(--wp--custom--radius--sm);
}

/* Drinks list */
.bayle-drinks__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bayle-drinks__list li {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding-block: 0.65rem;
}

.bayle-drinks__list li::after {
	content: "";
	order: 1;
	flex: 1;
	border-bottom: 1px dotted color-mix(in srgb, currentColor 45%, transparent);
	translate: 0 -0.3em;
}

.bayle-drinks__list li b {
	order: 2;
	font-family: var(--wp--custom--price--font);
	font-weight: 600;
}

.bayle-drinks__list li em {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}

.has-on-band-color .bayle-drinks__list li em {
	color: inherit;
	opacity: 0.85;
}

/* Bake schedule */
.bayle-bakes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
	gap: var(--wp--preset--spacing--40);
}

.bayle-bakes li {
	background: var(--wp--custom--card--bg);
	border: var(--wp--custom--card--border);
	border-radius: var(--wp--custom--card--radius);
	padding: 1.25rem;
}

.bayle-bakes li strong {
	display: block;
	font-family: var(--wp--custom--font--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.4rem;
}

/* Order band */
.bayle-order-band .bayle-sticker {
	justify-self: end;
}

@media (prefers-reduced-motion: no-preference) {
	.bayle-sticker {
		animation: bayle-wobble var(--wp--custom--motion--wobble, 7s) ease-in-out infinite alternate;
	}
}

@keyframes bayle-wobble {
	to {
		rotate: calc(var(--wp--custom--sticker--rotate, -8deg) * -0.4);
	}
}

/* Lunch hours (synced detail). Shown in the shared hours band and footer only
   where the style turns it on (custom.lunch.display); the "Lunch hours"
   pattern can be inserted anywhere. */
.bayle-lunch-only {
	display: var(--wp--custom--lunch--display, none) !important;
	margin-top: var(--wp--preset--spacing--50);
}

.bayle-lunch-hours__label {
	font-family: var(--wp--custom--font--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	margin: 0 0 0.35rem !important;
}

.bayle-lunch-hours .bayle-hours__row p {
	white-space: nowrap;
	margin: 0;
}

.bayle-lunch-hours .bayle-hours__row {
	padding-block: 0.45rem;
	border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	gap: 1rem;
}

.bayle-lunch-hours__price {
	font-weight: 700;
	margin: 0.6rem 0 0 !important;
}

/* Compact info row inside a hero. */
.bayle-stage__detail .bayle-lunch-hours {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1.25rem;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
}

.bayle-stage__detail .bayle-lunch-hours__label {
	flex-basis: 100%;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--primary);
	margin: 0 !important;
}

.bayle-stage__detail .bayle-lunch-hours .bayle-hours__row {
	justify-content: flex-start;
	gap: 0.5rem;
	padding: 0;
	border: 0;
}

.bayle-stage__detail .bayle-lunch-hours .bayle-hours__row p:last-child {
	font-weight: 700;
}

.bayle-stage__detail .bayle-lunch-hours__price {
	margin: 0 !important;
}

.bayle-price-card .bayle-lunch-hours {
	margin-block: var(--wp--preset--spacing--40);
}

.bayle-footer .bayle-lunch-hours__label {
	font-size: inherit;
}

/* ---- Motion (opt-in) ---- */
@media (prefers-reduced-motion: no-preference) {
	.bayle-stage__title,
	.bayle-stage__body {
		animation: bayle-enter var(--wp--custom--motion--enter, 0.9s) var(--bayle-ease) both;
	}

	.bayle-stage__body {
		animation-delay: 0.15s;
	}

	.bayle-stage__media--b,
	.bayle-stage__media--c {
		animation: bayle-float 9s ease-in-out infinite alternate;
	}

	.bayle-stage__media--c {
		animation-duration: 11s;
	}

	.bayle-marquee__track {
		animation: bayle-marquee var(--wp--custom--motion--marquee, 46s) linear infinite;
	}

	.bayle-marquee:hover .bayle-marquee__track {
		animation-play-state: paused;
	}

	.wp-block-button:not(.is-style-outline) > .wp-block-button__link::after {
		transition: transform 0.25s var(--bayle-ease);
	}

	.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover::after {
		transform: translateX(0.25em);
	}

	.bayle-dish > .wp-block-image img {
		transition: transform 0.9s var(--bayle-ease);
	}

	.bayle-dish:hover > .wp-block-image img {
		transform: scale(1.06);
	}

	@supports (animation-timeline: scroll()) {
		.bayle-stage__media--main img {
			animation: bayle-drift linear both;
			animation-timeline: scroll(root block);
			animation-range: 0 100vh;
		}
	}

	@supports (animation-timeline: view()) {
		/* Scroll reveals only move and sharpen content that is already fully
		   visible; nothing is ever hidden while waiting to scroll into view. */
		.bayle-main > section:not(.bayle-stage):not(.bayle-marquee) :is(.wp-block-heading, .is-style-eyebrow, .bayle-step, .bayle-hours__row, .bayle-quote-card, .bayle-dish),
		.bayle-auto > section :is(.wp-block-heading, .is-style-eyebrow, .bayle-dish) {
			animation: bayle-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 80%;
		}

		/* The figure is the timeline subject, so the effect never depends on
		   the image having loaded (lazy images start at zero size). */
		:is(.bayle-main, .bayle-auto) > section:not(.bayle-stage) .wp-block-image:not(.bayle-stack-photo__small) {
			overflow: hidden;
			view-timeline: --bayle-figure block;
		}

		:is(.bayle-main, .bayle-auto) > section:not(.bayle-stage) .wp-block-image:not(.bayle-stack-photo__small) img {
			animation: bayle-unveil linear both;
			animation-timeline: --bayle-figure;
			animation-range: entry 0% cover 40%;
		}

		.bayle-ink {
			color: transparent;
			background:
				linear-gradient(var(--wp--preset--color--contrast), var(--wp--preset--color--contrast)) 0 0 / 0% 100% no-repeat,
				linear-gradient(color-mix(in srgb, var(--wp--preset--color--contrast) 42%, transparent), color-mix(in srgb, var(--wp--preset--color--contrast) 42%, transparent));
			-webkit-background-clip: text;
			background-clip: text;
			animation: bayle-ink linear both;
			animation-timeline: view();
			animation-range: entry 35% cover 60%;
		}
	}
}

@keyframes bayle-rise {
	from {
		transform: translateY(var(--wp--custom--motion--rise, 32px));
	}

	to {
		transform: none;
	}
}

/* Load-time entrance for the hero: time-based, finishes in under a second. */
@keyframes bayle-enter {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes bayle-unveil {
	from {
		transform: scale(1.12);
		filter: saturate(0.75);
	}

	to {
		transform: none;
		filter: none;
	}
}

@keyframes bayle-drift {
	to {
		transform: scale(1.1) translateY(5%);
	}
}

@keyframes bayle-float {
	to {
		translate: 0 calc(-1 * var(--wp--custom--motion--float, 14px));
	}
}

@keyframes bayle-marquee {
	to {
		transform: translateX(-50%);
	}
}

@keyframes bayle-ink {
	to {
		background-size: 100% 100%, auto;
	}
}

/* -------------------------------------------------------------------------
 * 11. Motion preferences
 * ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.is-style-card:hover {
		transform: none;
	}
}

@media (forced-colors: active) {
	.is-style-card,
	.bayle-embed-shell,
	.bayle-header__bar {
		border: 1px solid CanvasText;
	}

	.wp-block-separator.is-style-ornament {
		background: CanvasText !important;
	}
}
