/*!
 * Elena's Bistro — page templates, archives and shared page components.
 *
 * menus • gallery and lightbox • events • restaurant information pages
 * blog and archives • forms
 *
 * Loaded on every request, after theme.css.
 */

/* -------------------------------------------------------------------------
 * Gallery
 * ---------------------------------------------------------------------- */

/*
 * One shape per kind of tile, one gutter throughout, and a column count that
 * only steps up when there is really room for it.
 *
 * An ordinary tile is always 4:3 landscape whatever layout its entry is set
 * to, and the featured tile — the entry whose layout is "wide" — runs the full
 * width of the mosaic as a 2:1 band. Nothing is drawn at 1:2 any more: the
 * tall pillar that ratio produced stood more than two rows high and took the
 * page over.
 */
.elena-gallery {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr);
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0;
}

@media (min-width: 30rem) {

	.elena-gallery {
		gap: 1rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 48rem) {

	.elena-gallery--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Four columns of a tablet's width would be 180px tiles, so the fourth
	 * column waits for a desktop. */
	.elena-gallery--cols-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 62rem) {

	.elena-gallery--cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.elena-gallery--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.elena-gallery--cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.elena-gallery__item {
	margin: 0;
	min-width: 0;
}

/*
 * The one deliberate span in the mosaic. A tile set to "tall" no longer spans
 * two rows; it is drawn as the ordinary landscape tile every other entry gets.
 */
.elena-gallery__item--wide {
	grid-column: 1 / -1;
}

.elena-gallery__figure {
	margin: 0;
}

.elena-gallery__link {
	background-color: var(--elena-night-3);
	display: block;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.elena-gallery__frame {
	display: block;
	height: 100%;
	line-height: 0;
}

/*
 * The shape is declared on the picture itself, so every tile's height is known
 * before its file arrives — no row of the mosaic is left guessing at a height
 * and then jumping when the images land.
 */
.elena-gallery__image {
	aspect-ratio: 4 / 3;
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms ease, opacity 600ms ease;
	width: 100%;
}

/*
 * The featured band: twice as wide as it is tall. That is a landscape
 * proportion the eye reads as deliberate beside the 4:3 tiles around it, where
 * the 1:2 portrait it replaced was an accident of an entry's layout field.
 */
.elena-gallery__item--wide .elena-gallery__image {
	aspect-ratio: 2 / 1;
}

/*
 * A video tile keeps the very frame and proportions of an image tile; the only
 * difference is the small play marker laid over the poster, and the flat stand
 * that fills the frame when the entry has no featured image to sit it on. The
 * stand is drawn with the same warm near-black the link already lines its
 * emptied frame with, so a clip with no poster never reads as a broken card.
 */
.elena-gallery__image--placeholder {
	background: linear-gradient(160deg, var(--elena-night-3) 0%, var(--elena-night) 100%);
}

.elena-gallery__play {
	align-items: center;
	background-color: rgba(8, 8, 7, 0.55);
	border: 1px solid var(--elena-line);
	border-radius: 999px;
	display: flex;
	height: 3rem;
	justify-content: center;
	left: 50%;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: background-color var(--elena-speed) var(--elena-ease), border-color var(--elena-speed) var(--elena-ease), transform var(--elena-speed) var(--elena-ease);
	width: 3rem;
}

.elena-gallery__play::before {
	border-color: transparent transparent transparent var(--elena-champagne);
	border-style: solid;
	border-width: 0.45rem 0 0.45rem 0.7rem;
	content: "";
	margin-left: 0.15rem;
}

.elena-gallery__link:hover .elena-gallery__play,
.elena-gallery__link:focus .elena-gallery__play {
	background-color: rgba(201, 162, 74, 0.24);
	border-color: var(--elena-gold);
	transform: translate(-50%, -50%) scale(1.06);
}

/*
 * The scrim under a caption, on the tiles that have one.
 *
 * Captions sit on the picture rather than under it, so this gradient is part of
 * the tile instead of something that only appears on hover: on a touch screen
 * there is no hover, and a caption over a pale photograph would be lost without
 * it. It deepens when the tile is hovered or focused.
 *
 * It is drawn only where a caption is actually printed. A tile whose entry has
 * a picture and nothing written about it is left clean, rather than darkened at
 * its foot for the sake of a line that is not there.
 */
.elena-gallery__link:has(.elena-gallery__caption)::after {
	background: linear-gradient(180deg, rgba(8, 8, 7, 0) 48%, rgba(8, 8, 7, 0.88));
	content: "";
	inset: 0;
	opacity: 0.85;
	pointer-events: none;
	position: absolute;
	transition: opacity var(--elena-speed) ease;
}

.elena-gallery__link:hover .elena-gallery__image,
.elena-gallery__link:focus .elena-gallery__image {
	opacity: 0.9;
	transform: scale(1.04);
}

.elena-gallery__link:hover:has(.elena-gallery__caption)::after,
.elena-gallery__link:focus:has(.elena-gallery__caption)::after {
	opacity: 1;
}

.elena-gallery__caption {
	bottom: 0;
	color: var(--elena-cream);
	font-size: 0.85rem;
	left: 0;
	padding: 1rem;
	position: absolute;
	right: 0;
	text-align: left;
	transform: translateY(0.35rem);
	transition: transform var(--elena-speed) ease;
	z-index: 1;
}

.elena-gallery__link:hover .elena-gallery__caption,
.elena-gallery__link:focus .elena-gallery__caption {
	transform: translateY(0);
}

.elena-gallery-nav {
	border-top: 1px solid var(--elena-line-soft);
	margin-top: 2rem;
	padding-top: 2rem;
}

.elena-gallery-nav__title {
	font-family: var(--elena-font-body);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.elena-gallery-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.elena-gallery-nav__link {
	align-items: center;
	border: 1px solid var(--elena-line-soft);
	border-radius: 999px;
	color: var(--elena-cream);
	display: inline-flex;
	gap: 0.5rem;
	font-size: 0.85rem;
	padding: 0.5rem 1.1rem;
}

.elena-gallery-nav__link:hover,
.elena-gallery-nav__link:focus {
	background-color: rgba(201, 162, 74, 0.1);
	border-color: var(--elena-gold);
	color: var(--elena-gold-soft);
}

.elena-gallery-nav__count {
	color: var(--elena-muted-2);
	font-size: 0.75rem;
}

.elena-gallery-page__actions,
.elena-gallery-archive__back {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin: 0;
}

/* -------------------------------------------------------------------------
 * The gallery page as a spread
 *
 * The gallery page is drawn as an editorial spread rather than a wall of
 * equals. Its masthead is centred and narrow; the rooms are offered as filters
 * above the tiles rather than as a list beneath them; and the tiles are set out
 * against four columns of the page, an ordinary tile taking one of them and a
 * wide tile two, with the closing row widened from its end so the spread always
 * reaches both edges.
 *
 * Choosing a filter narrows the spread where it stands, without a page load.
 * The reckoning behind that — which tile takes which share, and what is left of
 * the closing row — is done again over the tiles that remain; assets/js/
 * gallery.js holds it, and does the same sum the template did before drawing.
 * ---------------------------------------------------------------------- */

.elena-gallery-intro {
	max-width: 46rem;
}

.elena-gallery-page__actions {
	justify-content: center;
}

/* -------------------------------------------------------------------------
 * The filter bar
 * ---------------------------------------------------------------------- */

.elena-gallery-filter {
	border-bottom: 1px solid var(--elena-line-soft);
	border-top: 1px solid var(--elena-line-soft);
	margin: 0 0 clamp(1.5rem, 1rem + 1.2vw, 2.5rem);
	padding: 1.1rem 0;
}

.elena-gallery-filter__list {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 0.75rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.elena-gallery-filter__item {
	margin: 0;
}

/*
 * A pill is a link to its album archive first and a filter second, so it is
 * drawn as a link: the album's name, the number of tiles it will show, and the
 * gold rule and fill that say which one is holding the spread at the moment.
 */
.elena-gallery-filter__pill {
	align-items: center;
	border: 1px solid var(--elena-line-soft);
	border-radius: 999px;
	color: var(--elena-muted);
	display: inline-flex;
	font-family: var(--elena-font-body);
	font-size: 0.78rem;
	font-weight: 500;
	gap: 0.6rem;
	letter-spacing: 0.16em;
	line-height: 1;
	padding: 0.7rem 1.2rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color var(--elena-speed) var(--elena-ease), border-color var(--elena-speed) var(--elena-ease), color var(--elena-speed) var(--elena-ease);
}

.elena-gallery-filter__pill:hover,
.elena-gallery-filter__pill:focus {
	border-color: var(--elena-gold);
	color: var(--elena-gold-soft);
}

.elena-gallery-filter__pill[aria-current="true"] {
	background-color: rgba(201, 162, 74, 0.12);
	border-color: var(--elena-gold);
	color: var(--elena-gold-soft);
}

.elena-gallery-filter__count {
	color: var(--elena-muted-2);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
}

.elena-gallery-filter__pill[aria-current="true"] .elena-gallery-filter__count {
	color: var(--elena-gold);
}

/* -------------------------------------------------------------------------
 * The spread itself
 * ---------------------------------------------------------------------- */

/*
 * Four columns from the desktop breakpoint up, two on a tablet, one on a
 * telephone. The reckoning behind a filtered spread is run against whatever the
 * page is really drawn with, so a row of shares is never left with a hole in it
 * at a narrower width.
 */
.elena-gallery--mosaic {
	gap: clamp(0.75rem, 0.55rem + 0.6vw, 1.25rem);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 30rem) {

	.elena-gallery--mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 62rem) {

	.elena-gallery--mosaic {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.elena-gallery--mosaic .elena-gallery__item--span-1 {
	grid-column: span 1;
}

/* A wide tile takes two of the four columns, rather than the full width the
 * wide band runs to in the plain grid. */
.elena-gallery--mosaic .elena-gallery__item--span-2 {
	grid-column: span 2;
}

/*
 * On a page too narrow for two columns the share is capped at one.
 *
 * A tile asking to span a column that is not there does not overflow the grid —
 * the grid invents a column for it, and every second tile is then laid in a
 * column with no width at all and is drawn invisible. The script caps the
 * shares itself, but the cap is declared here as well, so the spread is whole
 * on the page as it arrives and stays whole if the script never runs.
 */
@media (max-width: 29.9375rem) {

	.elena-gallery--mosaic .elena-gallery__item--span-2 {
		grid-column: span 1;
	}
}

/*
 * Every tile fills the row it is laid in, whatever share of the row it took.
 *
 * A two-column tile beside ordinary ones sets the height of the row it is in,
 * and the ordinary tiles are drawn up to that same height: the picture is
 * cropped to the tile rather than stopping at its own proportion and leaving
 * the rest of the cell standing empty. The share a tile was given is the one
 * the script weighs a filtered spread with, so this holds after a filter as
 * well as on the page the template drew.
 */
.elena-gallery--mosaic .elena-gallery__figure {
	height: 100%;
}

/*
 * A two-column tile is a band, whichever tile it happens to be: the entry the
 * editor set wide, or the closing tile of a narrowed row that the script has
 * widened from the end to reach the edge of the spread. A band is twice as wide
 * as it is tall, so a widened tile is read as deliberate rather than as the
 * ordinary tile it started life as, blown up.
 */
.elena-gallery--mosaic .elena-gallery__item--span-2 .elena-gallery__image {
	aspect-ratio: 2 / 1;
}

/*
 * The tile carries the movement and the picture carries the fade.
 *
 * A filtered spread is a new arrangement of the same tiles, so the ones that
 * stay are measured before and after and slid from where they were drawn to
 * where they now belong, while the pictures are faded in and out by class.
 * Splitting the two keeps either clear of the rise a tile was handed on the way
 * in, which is an animation on the tile itself.
 */
.elena-gallery--mosaic .elena-gallery__item {
	transition: transform var(--elena-speed-medium) var(--elena-ease-out);
}

.elena-gallery--mosaic .elena-gallery__link {
	transition: opacity var(--elena-speed) var(--elena-ease);
}

.elena-gallery--mosaic .elena-gallery__item.is-fading .elena-gallery__link {
	opacity: 0;
}

.elena-gallery--mosaic .elena-gallery__item.is-filtered-out {
	display: none;
}

/*
 * The caption over a spread tile: the room the picture was taken in above the
 * line it goes by, both held below the bottom edge until the tile is pointed
 * at, and rising together with a scrim when it is. The photograph is the point
 * and the words are the gloss, so the words wait — except on a touch screen,
 * which has no pointer to unveil them and is given them at rest instead.
 *
 * Neither line is content: the link names itself, so the overlay is out of the
 * way of a screen reader as well as out of sight of the eye.
 */
.elena-gallery__overlay {
	align-items: flex-start;
	background: linear-gradient(180deg, rgba(8, 8, 7, 0) 38%, rgba(8, 8, 7, 0.9));
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	inset: 0;
	justify-content: flex-end;
	opacity: 0;
	padding: clamp(1rem, 0.8rem + 0.8vw, 1.75rem);
	position: absolute;
	transform: translateY(0.4rem);
	transition: opacity var(--elena-speed-medium) var(--elena-ease-out), transform var(--elena-speed-medium) var(--elena-ease-out);
	z-index: 2;
}

.elena-gallery__link:hover .elena-gallery__overlay,
.elena-gallery__link:focus .elena-gallery__overlay {
	opacity: 1;
	transform: translateY(0);
}

@media (hover: none) {

	.elena-gallery__overlay {
		opacity: 1;
		transform: none;
	}
}

.elena-gallery__album {
	color: var(--elena-gold);
	font-family: var(--elena-font-body);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.elena-gallery__overlay-title {
	color: var(--elena-cream);
	font-family: var(--elena-font-display);
	font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.5rem);
	line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {

	.elena-gallery--mosaic .elena-gallery__item,
	.elena-gallery--mosaic .elena-gallery__link {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
 * The menu
 * ---------------------------------------------------------------------- */

.elena-menu-page__content {
	max-width: 46rem;
}

.elena-menu-page__footnote {
	color: var(--elena-muted-2);
	font-size: 0.9rem;
	margin-top: 2.5rem;
}

/* The menu itself - tabs, section panels and the text-only dish rows - is
 * styled in assets/css/menu.css, which loads on the menu page only. */

/* Dishes (featured cards, menu rows, single dish) */

.elena-dish__badge {
	color: var(--elena-gold);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	margin: 0 0 0.6rem;
	text-transform: uppercase;
}

.elena-dish__heading {
	align-items: baseline;
	border-bottom: 1px solid var(--elena-line-soft);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	padding-bottom: 0.6rem;
}

.elena-dish__price {
	color: var(--elena-gold);
	flex: 0 0 auto;
	font-family: var(--elena-font-display);
	font-size: 1.15rem;
	margin: 0;
	white-space: nowrap;
}

.elena-dish__dietary {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0.85rem 0 0;
	padding: 0;
}

.elena-dish__dietary-item {
	border: 1px solid var(--elena-line-soft);
	border-radius: 999px;
	color: var(--elena-muted);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	padding: 0.2rem 0.7rem;
	text-transform: uppercase;
}

.elena-dish__dietary--single {
	margin-top: 1rem;
}

/* Dishes on the menu page are plain text rows, not cards: see
 * assets/css/menu.css. The card variant here is used by single dish pages. */

/* -------------------------------------------------------------------------
 * Events (archive, single and cards)
 * ---------------------------------------------------------------------- */

.elena-event-list {
	display: grid;
	gap: var(--elena-gap);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62rem) {

	.elena-event-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.elena-event-list--compact,
	.elena-event-list--past {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.elena-event__date {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.elena-event__day {
	color: var(--elena-gold);
	font-family: var(--elena-font-display);
	font-size: 2rem;
	line-height: 1;
}

/*
 * A repeating event prints its weekday phrase where the numeric day would sit,
 * so the two may run to several words. The phrase is read at a smaller, wrapped
 * size than the single day-number, keeping the card from stretching to fit.
 */
.elena-event__time--weekly {
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	line-height: 1.3;
}

.elena-event__time--weekly .elena-event__day {
	font-size: 1.05rem;
	letter-spacing: 0.02em;
}

.elena-event__month,
.elena-event__year {
	color: var(--elena-cream);
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.elena-event__year {
	color: var(--elena-muted-2);
}

.elena-event__flag {
	border: 1px solid var(--elena-line-soft);
	border-radius: 999px;
	color: var(--elena-muted-2);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	margin-left: auto;
	padding: 0.15rem 0.6rem;
	text-transform: uppercase;
}

.elena-event__meta {
	border-bottom: 1px solid var(--elena-line-soft);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0 0 0.85rem;
}

.elena-event__meta-item {
	color: var(--elena-muted);
	font-size: 0.85rem;
}

.elena-event__meta-item--price {
	color: var(--elena-gold);
}

.elena-event__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: auto 0 0;
	padding-top: 1.25rem;
}

.elena-event--past {
	opacity: 0.62;
}

.elena-event--past:hover,
.elena-event--past:focus-within {
	opacity: 1;
}

.elena-events__subheading {
	border-bottom: 1px solid var(--elena-line);
	font-family: var(--elena-font-body);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	margin: 3rem 0 1.75rem;
	padding-bottom: 0.75rem;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
 * What is on, as a month (events archive)
 *
 * The calendar and the list beneath it show the same events, so the two are
 * drawn from one surface: a day that has something on it carries a mark per
 * thing, and the list names them in full. A day with nothing on it is left
 * quiet rather than labelled.
 * ---------------------------------------------------------------------- */

.elena-calendar {
	background-color: var(--elena-night-2);
	border: 1px solid var(--elena-line-soft);
	margin: 2rem 0 0;
	padding: 1.25rem 1.25rem 1.4rem;
}

.elena-calendar__head {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.1rem;
}

.elena-calendar__month {
	font-family: var(--elena-font-display);
	font-size: 1.3rem;
	margin: 0;
	text-align: center;
}

.elena-calendar__step {
	align-items: center;
	color: var(--elena-muted);
	display: inline-flex;
	font-size: 0.72rem;
	gap: 0.4rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.elena-calendar__step:hover,
.elena-calendar__step:focus-visible {
	color: var(--elena-gold);
}

.elena-calendar__grid {
	border-collapse: collapse;
	table-layout: fixed;
	width: 100%;
}

.elena-calendar__weekday {
	color: var(--elena-muted-2);
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	padding: 0 0.5rem 0.6rem 0;
	text-align: left;
	text-transform: uppercase;
}

/*
 * Each column is named twice: in full, and in the three letters the day is
 * known by. Which of the two is drawn is decided by the width of the screen at
 * the foot of this file, so the column headings can always be read.
 */
.elena-calendar__weekday-short {
	display: none;
}

.elena-calendar__day {
	border-top: 1px solid var(--elena-line-soft);
	height: 5.25rem;
	padding: 0.45rem 0.5rem 0.55rem 0;
	vertical-align: top;
}

.elena-calendar__day--outside {
	border-top-color: transparent;
}

.elena-calendar__day--today {
	box-shadow: inset 0 0 0 1px var(--elena-gold);
}

.elena-calendar__number {
	color: var(--elena-muted-2);
	display: block;
	font-size: 0.78rem;
	margin-bottom: 0.35rem;
	text-decoration: none;
}

.elena-calendar__number:hover,
.elena-calendar__number:focus-visible {
	color: var(--elena-gold);
}

.elena-calendar__day--today .elena-calendar__number {
	color: var(--elena-gold);
	font-weight: 600;
}

.elena-calendar__day--selected {
	background-color: var(--elena-night-3);
	box-shadow: inset 0 0 0 2px var(--elena-gold);
}

.elena-calendar__day--selected .elena-calendar__number {
	color: var(--elena-cream);
	font-weight: 600;
}

.elena-calendar__day--past .elena-calendar__link,
.elena-calendar__day--past .elena-calendar__number {
	opacity: 0.6;
}

.elena-calendar__what {
	display: grid;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.elena-calendar__link {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--elena-cream);
	display: -webkit-box;
	font-size: 0.72rem;
	line-height: 1.3;
	overflow: hidden;
}

.elena-calendar__link:hover,
.elena-calendar__link:focus-visible {
	color: var(--elena-gold);
}

.elena-calendar__mark,
.elena-calendar__key::before {
	background-color: var(--elena-cream);
	border-radius: 999px;
	display: inline-block;
	height: 0.34rem;
	margin-right: 0.35rem;
	vertical-align: middle;
	width: 0.34rem;
}

.elena-calendar__item--event .elena-calendar__mark,
.elena-calendar__key--event::before {
	background-color: var(--elena-gold);
}

.elena-calendar__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0.9rem 0 0;
}

.elena-calendar__key {
	align-items: center;
	color: var(--elena-muted);
	display: inline-flex;
	font-size: 0.7rem;
}

/* An offer that runs every day of the month is named once, under the grid. */
.elena-calendar__standing {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.5rem 0 0;
}

.elena-calendar__standing .elena-calendar__link {
	color: var(--elena-muted);
	display: inline;
	font-size: 0.7rem;
}

.elena-calendar__standing .elena-calendar__link:hover,
.elena-calendar__standing .elena-calendar__link:focus-visible {
	color: var(--elena-gold);
}

.elena-calendar__separator {
	color: var(--elena-line);
	font-size: 0.7rem;
}

.elena-calendar__empty {
	color: var(--elena-muted);
	font-size: 0.85rem;
	margin: 1.1rem 0 0;
}

/*
 * A day that carries more than the two events the grid shows tucks the rest
 * away, and the "+N more" control chooses that day: the detail panel beneath
 * the grid then lists every occurrence, so nothing is hidden from a guest.
 */
.elena-calendar__item--overflow {
	display: none;
}

.elena-calendar__more {
	color: var(--elena-gold);
	display: block;
	font-size: 0.72rem;
	margin: 0.15rem 0 0;
	text-decoration: none;
}

.elena-calendar__more:hover,
.elena-calendar__more:focus-visible {
	color: var(--elena-cream);
}

/* One chosen day is listed beneath the grid - never the whole month - so a
 * visitor reads a single day's events and offers rather than every repeat. */
.elena-calendar__detail {
	border-top: 1px solid var(--elena-line);
	margin: 1.2rem 0 0;
	padding: 1rem 0 0;
}

.elena-calendar__detail-date {
	font-family: var(--elena-font-display);
	font-size: 1.05rem;
	margin: 0 0 0.7rem;
}

.elena-calendar__detail-empty {
	color: var(--elena-muted);
	font-size: 0.9rem;
	margin: 0;
}

.elena-calendar__detail-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.elena-calendar__detail-item {
	border-top: 1px solid var(--elena-line-soft);
	padding: 0.6rem 0;
}

.elena-calendar__detail-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.elena-calendar__detail-link {
	align-items: baseline;
	color: var(--elena-cream);
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.75rem;
	text-decoration: none;
}

.elena-calendar__detail-link:hover .elena-calendar__detail-title,
.elena-calendar__detail-link:focus-visible .elena-calendar__detail-title {
	color: var(--elena-gold);
}

.elena-calendar__detail-title {
	color: var(--elena-cream);
	font-size: 1rem;
}

.elena-calendar__detail-time {
	color: var(--elena-muted);
	font-size: 0.82rem;
}

.elena-calendar__detail-kind {
	color: var(--elena-gold);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.elena-calendar__detail-item--offer .elena-calendar__detail-title {
	color: var(--elena-muted);
}

/*
 * On a narrow screen the month shows which days are taken rather than what is
 * on them - a seven-column grid has no room for a title - and the list under
 * the calendar names the same events in full.
 */
@media (max-width: 47.99rem) {

	.elena-calendar {
		padding: 1rem 0.9rem 1.1rem;
	}

	.elena-calendar__step-label {
		display: none;
	}

	/*
	 * Seven columns of a phone are about forty pixels wide, and "WEDNESDAY"
	 * cannot be written in one: at 375px the longest name ran thirty-four
	 * pixels past its column and the seven ran into each other. The three
	 * letters are drawn instead, and the full name is kept for a screen
	 * reader by clipping it rather than removing it - `display: none` would
	 * leave the column with no name at all - so the day is still announced.
	 */
	.elena-calendar__weekday {
		position: relative;
	}

	.elena-calendar__weekday-long {
		border: 0;
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 1px;
	}

	.elena-calendar__weekday-short {
		display: inline;
	}

	.elena-calendar__day {
		height: 3.5rem;
		padding-right: 0.25rem;
	}

	.elena-calendar__link {
		font-size: 0;
	}

	.elena-calendar__link .elena-calendar__mark {
		height: 0.5rem;
		margin: 0;
		width: 0.5rem;
	}

	.elena-calendar__detail-date {
		font-size: 1rem;
	}

	.elena-calendar__detail-link {
		gap: 0.3rem 0.5rem;
	}

	.elena-calendar__more {
		display: none;
	}
}

/*
 * Event detail panel: one bordered surface holding the facts a guest needs.
 *
 * Every fact is its own grid cell, with the label stacked above the value. A
 * cell that sets the label and the value on one line cannot hold a long value
 * — an address — inside its column: right-aligned, it ran flush up to the
 * column edge and butted against the next column's label, so "Where" read as
 * "...United KingdomPrice". Stacking gives each value the full column width
 * and its own padding, and the hairlines are drawn cell by cell, which keeps
 * a single lattice at every width instead of doubling up at the panel edge.
 */
.elena-event-details {
	background-color: var(--elena-night-2);
	border: 1px solid var(--elena-line-soft);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0 0 2.5rem;
	padding: 0;
}

.elena-event-details__row {
	border-top: 1px solid var(--elena-line-soft);
	display: grid;
	gap: 0.4rem;
	min-width: 0;
	padding: 1.1rem 1.35rem;
}

.elena-event-details__row:first-child {
	border-top: 0;
}

.elena-event-details__label {
	color: var(--elena-muted-2);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1.4;
	margin: 0;
	text-transform: uppercase;
}

.elena-event-details__value {
	color: var(--elena-cream);
	font-size: 1rem;
	line-height: 1.55;
	margin: 0;
	min-width: 0;
	overflow-wrap: break-word;
}

/* The price is the one fact a guest scans for, so it carries the accent. */
.elena-event-details__row--price .elena-event-details__value {
	color: var(--elena-gold);
}

@media (min-width: 40rem) {

	.elena-event-details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/*
	 * The stacked rules give way to a lattice: from the second row onward a
	 * cell carries the rule above it, and the second column carries the one
	 * to its left, so the lines stop at the panel's own border.
	 */
	.elena-event-details__row,
	.elena-event-details__row:first-child {
		border-top: 0;
	}

	.elena-event-details__row:nth-child(n + 3) {
		border-top: 1px solid var(--elena-line-soft);
	}

	.elena-event-details__row:nth-child(even) {
		border-left: 1px solid var(--elena-line-soft);
	}
}

/* -------------------------------------------------------------------------
 * Special offers (an offer's own page)
 * ---------------------------------------------------------------------- */

/*
 * The poster is read here as artwork, so it is drawn whole on a dark ground of
 * its own and never cropped or stretched: the frame keeps it centred, holds it
 * to the column and lets it give way on a short screen rather than running off
 * one. The width and height in the markup are the attachment's own, so the
 * room for the artwork is reserved before the file arrives and the page never
 * reflows around it.
 */
.elena-entry__media--poster {
	align-items: center;
	background-color: var(--elena-night-2);
	border: 1px solid var(--elena-line-soft);
	display: flex;
	justify-content: center;
	line-height: 0;
	padding: clamp(0.75rem, 0.5rem + 1.5vw, 1.75rem);
}

.elena-entry__media--poster .elena-offer-poster {
	display: block;
	height: auto;
	max-height: min(78vh, 46rem);
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

/*
 * The event's featured image is its poster, drawn whole and never cropped or
 * stretched, on a dark ground behind a thin champagne-gold frame. It shares the
 * offer poster's contain treatment but carries its own scoped trim, so the
 * offer page's frame is left exactly as it was while an event poster reads a
 * touch more like the framed artwork it is.
 */
.elena-entry--event .elena-entry__media--poster {
	border: 1px solid rgba(201, 162, 74, 0.32);
	border-radius: var(--elena-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.18);
}

.elena-entry--event .elena-entry__media--poster .elena-event__poster {
	display: block;
	height: auto;
	max-height: min(78vh, 46rem);
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

/* -------------------------------------------------------------------------
 * Restaurant information pages
 * ---------------------------------------------------------------------- */

.elena-contact__details,
.elena-about__panels,
.elena-private__facts {
	display: grid;
	gap: var(--elena-gap);
	grid-template-columns: minmax(0, 1fr);
	margin: 2rem 0;
}

@media (min-width: 40rem) {

	.elena-contact__details,
	.elena-about__panels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Only one block to show — no address configured, or no telephone and
	 * email. It takes the whole row rather than sitting in the left column
	 * with an empty rule beside it. */
	.elena-contact__details > :only-child {
		grid-column: 1 / -1;
	}
}

.elena-contact__block {
	border-top: 1px solid var(--elena-line);
	padding-top: 1.25rem;
}

.elena-contact__label,
.elena-about__label {
	color: var(--elena-gold);
	font-family: var(--elena-font-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.elena-contact__address,
.elena-about__address {
	display: flex;
	flex-direction: column;
	font-style: normal;
	line-height: 1.9;
	margin: 0 0 0.75rem;
}

.elena-contact__list {
	display: grid;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.elena-contact__link,
.elena-about__link,
.elena-private__link {
	color: var(--elena-cream);
	font-family: var(--elena-font-display);
	font-size: 1.25rem;
}

.elena-contact__link:hover,
.elena-about__link:hover,
.elena-private__link:hover {
	color: var(--elena-gold-soft);
}

.elena-contact__actions,
.elena-about__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin: 2.5rem 0 0;
}

.elena-about__signature {
	color: var(--elena-gold);
	font-family: var(--elena-font-display);
	font-size: 1.4rem;
	margin: 2rem 0 0;
}

/* Private dining: shared between the homepage panel and the page template */

.elena-private__facts {
	gap: 0.6rem;
	margin: 2rem 0;
}

@media (min-width: 40rem) {

	.elena-private__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.elena-private__fact {
	border-bottom: 1px solid var(--elena-line-soft);
	color: var(--elena-cream);
	padding-bottom: 0.6rem;
	padding-left: 1.1rem;
	position: relative;
}

.elena-private__fact::before {
	background-color: var(--elena-gold);
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	top: 0.9em;
	width: 0.6rem;
}

.elena-private__actions,
.elena-private__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.elena-private__contact {
	margin: 2rem 0;
}

.elena-private__phone,
.elena-private__email {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.elena-private__phone-label {
	color: var(--elena-muted-2);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* Enquiries */

.elena-enquiry {
	background-color: var(--elena-night-2);
	border: 1px solid var(--elena-line-soft);
	margin-top: 3rem;
	padding: 2.5rem var(--elena-gutter);
}

.elena-enquiry__inner {
	max-width: 46rem;
}

/* -------------------------------------------------------------------------
 * The booking page
 * -------------------------------------------------------------------------
 *
 * The page prints a heading section of its own and the shortcode then prints
 * its own section for the form, and both carry the full section rhythm
 * (--elena-section-y top and bottom) plus the heading block's own margin and
 * padding. Nothing was empty and nothing was misconfigured — the heading and
 * the first field were simply separated by two sections' worth of padding at
 * once, which at 1440px left 312px of blank air between the two.
 *
 * On this page only, the seam is collapsed to one deliberate gap: the heading
 * section gives up its bottom padding, the heading block keeps its hairline as
 * the divider with a tighter margin, and the form's section keeps a single
 * measured breath above the first field. Everything inside the form, the
 * heading, the divider and the hours block below are untouched, and no other
 * page is affected.
 */

.elena-main--booking .elena-section--booking-head {
	padding-bottom: 0;
}

.elena-main--booking .elena-section--booking-head .elena-section-head--page {
	margin-bottom: 0;
	padding-bottom: 1.25rem;
}

.elena-main--booking .elena-entry--booking > .elena-entry__content > .elena-section {
	padding-top: clamp(1.75rem, 1rem + 2vw, 3.5rem);
}

/* -------------------------------------------------------------------------
 * Archives, blog and search
 * ---------------------------------------------------------------------- */

.elena-main--blog .elena-layout__main,
.elena-main--archive .elena-container {
	min-width: 0;
}

.elena-main--search .elena-search-summary {
	color: var(--elena-muted);
	margin-bottom: 2rem;
}

.elena-layout--single {
	grid-template-columns: minmax(0, 1fr);
}

.elena-search__form {
	margin-bottom: 2.5rem;
	max-width: 30rem;
}

/* Not found */

.elena-main--not-found {
	text-align: center;
}

.elena-not-found__title {
	margin-bottom: 0.4em;
}

.elena-not-found__text {
	color: var(--elena-muted);
	margin-left: auto;
	margin-right: auto;
	max-width: 36rem;
}

.elena-not-found__search {
	margin: 2rem auto;
	max-width: 26rem;
}

.elena-not-found__links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.elena-not-found__links a {
	border: 1px solid var(--elena-line-soft);
	border-radius: 999px;
	color: var(--elena-cream);
	display: inline-block;
	font-size: 0.85rem;
	padding: 0.5rem 1.1rem;
}

.elena-not-found__links a:hover,
.elena-not-found__links a:focus {
	border-color: var(--elena-gold);
	color: var(--elena-gold-soft);
}

.elena-not-found__home,
.elena-not-found__booking {
	margin: 2rem 0 0;
}

/* -------------------------------------------------------------------------
 * Small completions
 * ---------------------------------------------------------------------- */

.elena-intro__body,
.elena-experience__body,
.elena-private__body,
.elena-visit__body,
.elena-visit__aside {
	min-width: 0;
}

.elena-visit,
.elena-booking {
	display: block;
}

/* -------------------------------------------------------------------------
 * The event a booking came from
 * -------------------------------------------------------------------------
 *
 * Shown only when the guest arrived from an event, above the form. It is a
 * quiet, premium card rather than a second hero: a gold hairline, the event's
 * name in the display face, and the date the form is actually holding. It sits
 * inside the same narrow column as the form, so nothing about the page's
 * rhythm moves on an ordinary visit.
 */

.elena-booking-event {
	background-color: rgba(217, 191, 130, 0.06);
	border: 1px solid rgba(217, 191, 130, 0.28);
	border-radius: var(--elena-radius, 3px);
	margin: 0 0 clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
	padding: clamp(1.15rem, 0.9rem + 1vw, 1.75rem);
	position: relative;
}

/*
 * A single gold rule along the top edge. Drawn as a pseudo-element rather than
 * a border so the card keeps its even, rounded border on every side.
 */
.elena-booking-event::before {
	background: linear-gradient(90deg, var(--elena-gold, #c9a24a), rgba(217, 191, 130, 0));
	content: "";
	height: 2px;
	inset: 0 0 auto 0;
	position: absolute;
}

.elena-booking-event__eyebrow {
	color: var(--elena-gold-soft, #d9bf82);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	margin: 0 0 0.45rem;
	text-transform: uppercase;
}

.elena-booking-event__title {
	font-family: var(--elena-font-display, Georgia, serif);
	font-size: clamp(1.35rem, 1.15rem + 1vw, 1.85rem);
	font-weight: 500;
	line-height: 1.15;
	margin: 0 0 0.5rem;
}

.elena-booking-event__when {
	color: var(--elena-cream, #f5f0e6);
	font-size: 1rem;
	margin: 0;
}

.elena-booking-event__time,
.elena-booking-event__sep {
	color: var(--elena-muted, #b8b0a1);
}

.elena-booking-event__details {
	border-top: 1px solid var(--elena-line-soft, rgba(245, 240, 230, 0.1));
	display: grid;
	gap: 0.4rem 1.25rem;
	grid-template-columns: max-content 1fr;
	margin: 1rem 0 0;
	padding-top: 0.9rem;
}

.elena-booking-event__row {
	display: contents;
}

.elena-booking-event__label {
	color: var(--elena-muted, #b8b0a1);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.elena-booking-event__value {
	margin: 0;
	min-width: 0;
}

.elena-booking-event__row--price .elena-booking-event__value {
	color: var(--elena-gold-soft, #d9bf82);
}

.elena-booking-event__note {
	color: var(--elena-muted, #b8b0a1);
	font-size: 0.875rem;
	margin: 1rem 0 0;
}

.elena-booking-event__actions {
	margin: 0.9rem 0 0;
}

.elena-booking-event__link {
	border-bottom: 1px solid rgba(217, 191, 130, 0.5);
	color: var(--elena-gold, #c9a24a);
	font-size: 0.875rem;
	text-decoration: none;
}

.elena-booking-event__link:hover,
.elena-booking-event__link:focus-visible {
	border-bottom-color: var(--elena-gold, #c9a24a);
	color: var(--elena-gold-soft, #d9bf82);
}

.elena-booking-event__link:focus-visible {
	outline: 2px solid var(--elena-gold, #c9a24a);
	outline-offset: 3px;
}

/*
 * A live music night uses the same card, because the guest is being told the
 * same thing. It is marked with its own modifier so the two can be told apart
 * in the markup - and so a rule can be added here later without touching the
 * event's card - but it inherits every part of the design deliberately: two
 * evenings, one announcement.
 */
.elena-booking-event--offer .elena-booking-event__eyebrow {
	color: var(--elena-gold, #c9a24a);
}

/*
 * Desktop: the summary belongs to the form's column, not to the viewport.
 *
 * The card is printed inside .elena-entry__content, which deliberately has no
 * container of its own because the shortcode brings one. So the card alone ran
 * the full width of a 1440px screen while the form below it sat in the 780px
 * narrow container — a banner, not a card. From 1024px up it is now centred on
 * the same narrow container and inset by the same gutter the form's container
 * uses, so its edges line up exactly with the fields underneath.
 *
 * The title also gives up the 1.8em top margin that .elena-entry__content puts
 * on every h2: correct in prose, but inside a card it opened a 53px hole
 * between the eyebrow and the event's name. Padding and the rhythm between the
 * rows are tightened for the same reason — the same six facts, read in about
 * 80px less height.
 *
 * Everything here is inside the desktop query on purpose: the card at mobile
 * widths keeps its full-bleed placement and its existing type scale.
 */
@media (min-width: 64rem) {
	.elena-main--booking .elena-booking-event {
		margin-left: auto;
		margin-right: auto;
		max-width: calc(var(--elena-container-narrow, 780px) - 2 * var(--elena-gutter, 1.5rem));
		padding: 1.5rem 1.75rem;
	}

	.elena-main--booking .elena-booking-event__eyebrow {
		margin-bottom: 0.35rem;
	}

	.elena-main--booking .elena-booking-event__title {
		font-size: 1.7rem;
		line-height: 1.12;
		margin: 0 0 0.4rem;
	}

	.elena-main--booking .elena-booking-event__when {
		font-size: 0.95rem;
		line-height: 1.5;
	}

	.elena-main--booking .elena-booking-event__details {
		gap: 0.25rem 1rem;
		margin-top: 0.8rem;
		padding-top: 0.7rem;
	}

	.elena-main--booking .elena-booking-event__value {
		font-size: 0.95rem;
		line-height: 1.5;
	}

	.elena-main--booking .elena-booking-event__note {
		font-size: 0.82rem;
		line-height: 1.5;
		margin-top: 0.8rem;
	}

	.elena-main--booking .elena-booking-event__actions {
		margin-top: 0.7rem;
	}

	.elena-main--booking .elena-booking-event__link {
		font-size: 0.82rem;
	}
}

.elena-dish__media-link,
.elena-event__media-link {
	display: block;
	line-height: 0;
}

.elena-event__time {
	align-items: baseline;
	display: inline-flex;
	gap: 0.5rem;
}

.elena-event__meta-item--when,
.elena-event__meta-item--time,
.elena-event__meta-item--location {
	display: inline-block;
}

.elena-visit__address-line,
.elena-about__address-line,
.elena-contact__address-line {
	display: block;
}

.elena-visit__map-link {
	margin: 1.5rem 0 0;
}

.elena-contact__item,
.elena-gallery-nav__item {
	margin: 0;
}

.elena-hours-panel--visit,
.elena-hours-panel--about,
.elena-hours-panel--contact,
.elena-hours-panel--booking {
	border-top: 1px solid var(--elena-line);
	padding-top: 1rem;
}

/*
 * On the contact and booking pages the panel is the only thing in a wide
 * column, and a day and a time pushed to the two ends of 732px stop reading as
 * one row. The table is held to the width of a contact detail block and stays
 * on the left, under the details it belongs to, instead of stretching across
 * the page.
 */
.elena-hours-panel--contact .elena-hours,
.elena-hours-panel--booking .elena-hours {
	max-width: 26rem;
}

.elena-footer__hours {
	margin-top: 0.75rem;
}


