/*!
 * Elena's Bistro - the menu page.
 *
 * Loaded only on the Menu page template. Everything is scoped to
 * .elena-main--menu so the hero, the homepage cards, the gallery, the booking
 * page and the footer are untouched. Colours, type and spacing all come from
 * the theme's existing tokens.
 *
 * The frame of this component is .elena-menu-page__menu - the bare .elena-menu
 * class belongs to the masthead navigation (theme.css) and styling both with it
 * once laid this page out as three side-by-side columns. The frame is a plain
 * block: the top tab bar, the category panels and the repeated tab bar follow
 * one another down the page, all on one container.
 */

.elena-main--menu {
	padding-bottom: clamp(3rem, 2.5rem + 3vw, 5.5rem);
	padding-top: clamp(2.5rem, 2rem + 2vw, 4.5rem);
}

/* One centred measure for the whole page: the title, both tab bars, the
 * category panel and the dish list all sit on the same container. */
.elena-main--menu > .elena-container {
	max-width: 1160px;
}

/* -------------------------------------------------------------------------
 * Heading
 * ---------------------------------------------------------------------- */

.elena-menu-page__head {
	border-bottom: 0;
	margin-bottom: 2rem;
	padding-bottom: 0;
}

.elena-menu-page__head .elena-eyebrow {
	margin-bottom: 0.5rem;
}

.elena-menu-page__head .elena-section-title {
	font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.3rem);
	line-height: 1.05;
	margin-bottom: 0.35em;
}

/* The thin gold divider beneath the heading. */
.elena-menu-page__head::after {
	background-color: var(--elena-gold-soft);
	content: "";
	display: block;
	height: 1px;
	margin-top: 1.25rem;
	opacity: 0.6;
	width: 5rem;
}

.elena-main--menu .elena-notice {
	margin-bottom: 2rem;
	max-width: 52rem;
}

/* -------------------------------------------------------------------------
 * Category tabs (a bar above the menu and, when configured, a bar beneath it)
 * ---------------------------------------------------------------------- */

.elena-menu-nav {
	margin: 0 0 2.5rem;
}

/* The repeated bar is a deliberate bar of its own, after the last panel. */
.elena-menu-nav--bottom {
	border-top: 1px solid var(--elena-line-soft);
	margin: 3rem 0 0;
	padding-top: 2rem;
}

/* A single horizontal bar that spans the content width. The tabs share one row
 * whenever there is room for them and wrap onto a second row when there is
 * not, so a long list of categories never turns into a stack. */
.elena-menu-tabs {
	align-items: stretch;
	background-color: var(--elena-night-2);
	border: 1px solid var(--elena-line);
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0.75rem;
}

.elena-menu-tabs__item {
	display: flex;
	margin: 0;
}

.elena-menu-tab {
	-webkit-tap-highlight-color: transparent;
	align-items: center;
	border: 1px solid transparent;
	color: var(--elena-ivory);
	display: flex;
	font-family: var(--elena-font-display);
	font-size: 1.05rem;
	justify-content: center;
	letter-spacing: 0.05em;
	max-width: 100%;
	min-height: 3rem;
	overflow-wrap: break-word;
	padding: 0.6rem 1.4rem;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--elena-speed) var(--elena-ease), border-color var(--elena-speed) var(--elena-ease), color var(--elena-speed) var(--elena-ease), transform var(--elena-speed) var(--elena-ease);
}

/*
 * The states of a category control.
 *
 * A tab is an anchor, so it also answers to the theme's link colours:
 * `.elena-site a:link` and `.elena-site a:visited` are one class plus one
 * element, which is heavier than the single class these rules used to carry.
 * Those link colours won every time, so the selected tab painted a gold label
 * on its gold ground and the hover colour never arrived. Every state below
 * therefore names the bar it belongs to: the rules now outrank the link layer
 * and still reach nothing but the category controls in either bar.
 *
 * Hover and keyboard focus share the champagne ground; the selected category
 * keeps the deeper accent gold, so it stays the most prominent tab even while
 * another one is hovered. Both grounds take the near-black label.
 */
.elena-menu-nav .elena-menu-tab:link,
.elena-menu-nav .elena-menu-tab:visited {
	background-color: transparent;
	border-color: transparent;
	color: var(--elena-ivory);
}

.elena-menu-nav .elena-menu-tab:hover {
	background-color: var(--elena-gold-soft);
	border-color: var(--elena-gold-soft);
	color: var(--elena-night);
}

.elena-menu-nav .elena-menu-tab:focus-visible {
	background-color: var(--elena-gold-soft);
	border-color: var(--elena-gold-soft);
	color: var(--elena-night);
	outline: 2px solid var(--elena-gold-soft);
	outline-offset: 2px;
}

.elena-menu-nav .elena-menu-tab.is-active,
.elena-menu-nav .elena-menu-tab[aria-selected="true"] {
	background-color: var(--elena-gold);
	border-color: var(--elena-gold);
	color: var(--elena-night);
}

/* The category the visitor is on keeps its ground under the pointer and under
 * the keyboard caret, so it never looks like an ordinary hover. */
.elena-menu-nav .elena-menu-tab.is-active:hover,
.elena-menu-nav .elena-menu-tab.is-active:focus-visible,
.elena-menu-nav .elena-menu-tab[aria-selected="true"]:hover,
.elena-menu-nav .elena-menu-tab[aria-selected="true"]:focus-visible {
	background-color: var(--elena-gold);
	border-color: var(--elena-gold);
	color: var(--elena-night);
}

/* A category answers a press by settling back a hair, so the tap is felt
 * before the panel below changes. */
.elena-menu-nav .elena-menu-tab:active {
	transform: scale(0.98);
	transition-duration: var(--elena-speed-fast);
}

/*
 * Phones: the bar becomes a stack of boards. The script moves each board
 * inside its own row and opens one at a time, so the stack is a single-open
 * accordion - pressing a board opens it in place and closes the one before.
 * Without the script every row is a plain link and the boards stay in the
 * page below the stack, so the whole menu still reads.
 *
 * The second bar is left out here: the stack already holds every board, so a
 * second copy beneath the last one would only repeat it.
 */
@media (max-width: 48rem) {

	.elena-menu-nav {
		margin-bottom: 2rem;
	}

	.elena-menu-nav--bottom {
		display: none;
	}

	.elena-menu-tabs {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		justify-content: flex-start;
		padding: 0;
	}

	.elena-menu-tabs__item {
		display: block;
		flex: 1 1 auto;
		scroll-margin-top: 5.5rem;
		width: 100%;
	}

	.elena-menu-tab {
		border-bottom: 1px solid var(--elena-line-soft);
		font-size: 1.02rem;
		justify-content: flex-start;
		min-height: 3.25rem;
		padding: 0.95rem 1.15rem;
		text-align: left;
		white-space: normal;
		width: 100%;
	}

	/* A board's content sits inside its own row, indented to the heading's own
	 * measure so the board reads as one block rather than as a new section. The
	 * rule the open heading gave up is drawn under the content instead, so the
	 * row still ends where the next one begins. */
	.elena-menu-tabs__item > .elena-menu-panel {
		border-bottom: 1px solid var(--elena-line-soft);
		padding: 0 1.15rem 1.75rem;
		scroll-margin-top: 5.5rem;
	}

	.elena-menu-tabs__item > .elena-menu-panel .elena-menu-intro {
		margin-bottom: 1.5rem;
	}

	.elena-menu-tabs__item > .elena-menu-panel .elena-menu-intro__title {
		font-size: clamp(1.35rem, 1.2rem + 1vw, 1.7rem);
	}

	.elena-menu-tabs__item > .elena-menu-panel .elena-menu-panel__body {
		border-top: 1px solid var(--elena-line-soft);
		padding-top: 1.35rem;
	}

	/* The row's own rule already closes the heading off from the dishes. */
	.elena-menu-tabs__item > .elena-menu-panel .elena-menu-intro + .elena-menu-panel__body {
		border-top: 0;
		padding-top: 0;
	}

	/* The open row carries the ground, so the stack shows which board is open
	 * even when the content below it is scrolled past. */
	.elena-menu-page__menu.is-enhanced .elena-menu-tab.is-active {
		background-color: var(--elena-night-3);
		border-bottom-color: transparent;
		color: var(--elena-gold-soft);
	}

	.elena-menu-page__menu.is-enhanced .elena-menu-tab.is-active:hover,
	.elena-menu-page__menu.is-enhanced .elena-menu-tab.is-active:focus-visible {
		background-color: var(--elena-night-3);
		border-bottom-color: transparent;
		color: var(--elena-gold-soft);
	}

	/* The row says which way the board moves: a chevron pointing down while it
	 * is closed, turned up once it is open. */
	.elena-menu-page__menu.is-enhanced .elena-menu-tab::after {
		border-bottom: 1px solid currentColor;
		border-right: 1px solid currentColor;
		content: "";
		flex: 0 0 auto;
		height: 0.45rem;
		margin-left: auto;
		transform: rotate(45deg) translate(-0.1rem, -0.1rem);
		transition: transform var(--elena-speed) var(--elena-ease);
		width: 0.45rem;
	}

	.elena-menu-page__menu.is-enhanced .elena-menu-tab.is-active::after {
		transform: rotate(-135deg) translate(-0.1rem, -0.1rem);
	}
}

/* -------------------------------------------------------------------------
 * Panels
 * ---------------------------------------------------------------------- */

/*
 * The panels. Each is an ordinary block in normal flow: the category
 * introduction fills the content width and the dishes follow beneath it.
 * Nothing here is positioned, floated or limited to a narrow column.
 */

.elena-menu-page__panels {
	display: block;
}

.elena-menu-panel {
	scroll-margin-top: 7rem;
}

/* The inactive panels are only ever hidden once the script has taken over, so
 * the whole menu stays readable without JavaScript. */
.elena-menu-page__menu.is-enhanced .elena-menu-panel:not(.is-active):not(.elena-menu-panel--static),
.elena-menu-panel[hidden] {
	display: none;
}

/*
 * Changing category.
 *
 * The script only ever adds or removes `is-active` on a panel, so the moment a
 * category is chosen the fresh panel is already in place and the animation
 * below simply plays. The panel settles as a whole - the introduction travels
 * with the dishes - and the dishes then follow in small steps, the way a
 * section of the homepage arrives. A category reads as a page turned rather
 * than a list swapped out.
 *
 * Keyframes and the independent "translate" property, so a dish keeps the hover
 * transition it already owns and nothing is clobbered by the entrance.
 * Opacity is carried by the dishes alone: stacking a panel fade on top of a
 * dish fade would leave the first row washed out on its way in.
 */
.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active {
	animation: elena-menu-panel-in var(--elena-speed-medium) var(--elena-ease-out) both;
}

.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active .elena-menu-list > .elena-menu-dish {
	animation: elena-menu-row-in 560ms var(--elena-ease-out) both;
}

/* The cascade stops at the seventh dish: a long list must never keep the
 * visitor waiting on the last row to arrive. */
.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active .elena-menu-list > .elena-menu-dish:nth-child(2),
.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active .elena-menu-list > .elena-menu-dish:nth-child(n + 8) {
	animation-delay: var(--elena-stagger);
}

.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active .elena-menu-list > .elena-menu-dish:nth-child(3) {
	animation-delay: calc(var(--elena-stagger) * 2);
}

.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active .elena-menu-list > .elena-menu-dish:nth-child(4) {
	animation-delay: calc(var(--elena-stagger) * 3);
}

.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active .elena-menu-list > .elena-menu-dish:nth-child(5) {
	animation-delay: calc(var(--elena-stagger) * 4);
}

.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active .elena-menu-list > .elena-menu-dish:nth-child(6) {
	animation-delay: calc(var(--elena-stagger) * 5);
}

.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active .elena-menu-list > .elena-menu-dish:nth-child(7) {
	animation-delay: calc(var(--elena-stagger) * 6);
}

@keyframes elena-menu-panel-in {

	from {
		translate: 0 0.6rem;
	}

	to {
		translate: 0 0;
	}
}

@keyframes elena-menu-row-in {

	from {
		opacity: 0;
		translate: 0 0.6rem;
	}
}

.elena-menu-intro {
	background-color: var(--elena-night-2);
	border: 1px solid var(--elena-line-soft);
	border-top-color: var(--elena-line);
	margin: 0 0 2.25rem;
	padding: 1.75rem clamp(1.25rem, 0.5rem + 2vw, 2.25rem);
}

.elena-menu-intro__title {
	color: var(--elena-gold-soft);
	font-family: var(--elena-font-display);
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem);
	margin: 0 0 0.5rem;
}

.elena-menu-intro__text {
	color: var(--elena-muted);
	font-size: 0.98rem;
	max-width: 46rem;
}

.elena-menu-intro__text :last-child {
	margin-bottom: 0;
}

.elena-menu-empty {
	color: var(--elena-muted);
	margin: 0 auto;
	max-width: 42rem;
	text-align: center;
}

/* -------------------------------------------------------------------------
 * Menu types: the boards a diner chooses between, and the sections inside them
 * ---------------------------------------------------------------------- */

/* The board's own name and description: the same introduction a tab panel
 * carries, because a board is read the same way - a title, a line of context,
 * then the dishes. */
.elena-menu-type .elena-menu-intro {
	margin-bottom: 2.75rem;
}

/* A board with no courses keeps its heading and gains a line beneath it, so the
 * panel never opens on a title over blank space. It reads as body copy inside
 * the board rather than as the page-wide notice, so it takes the board's own
 * alignment instead of the centred message used when the whole menu is empty. */
.elena-menu-type__empty {
	color: var(--elena-muted);
	margin: 0;
	max-width: 46rem;
	text-align: left;
}

/* -------------------------------------------------------------------------
 * A board whose menu is a file
 * ---------------------------------------------------------------------- */

/*
 * The board's menu is a document, and the card is the one press that opens it
 * in the browser's own reader. It sits under the board's description, on the
 * board's own left edge, and is only as wide as it needs to be: a short line
 * for a whole menu, not a plate pretending to be the menu itself.
 */
.elena-menu-type__pdf {
	margin: 0;
	max-width: 30rem;
	text-align: left;
}

.elena-menu-type__pdf-card {
	-webkit-tap-highlight-color: transparent;
	align-items: center;
	background-color: var(--elena-night-2);
	border: 1px solid var(--elena-line);
	color: var(--elena-cream);
	display: flex;
	gap: 1rem;
	padding: 1rem 1.15rem;
	text-decoration: none;
	transition: background-color var(--elena-speed) var(--elena-ease), border-color var(--elena-speed) var(--elena-ease), color var(--elena-speed) var(--elena-ease), transform var(--elena-speed) var(--elena-ease);
}

/* The link colours of the theme outrank a single class, so every state names
 * the card's own link rather than leaving the palette to win. */
.elena-menu-type__pdf-card:link,
.elena-menu-type__pdf-card:visited {
	color: var(--elena-cream);
}

.elena-menu-type__pdf-card:hover,
.elena-menu-type__pdf-card:focus-visible {
	background-color: var(--elena-night-3);
	border-color: var(--elena-gold);
	color: var(--elena-white);
}

.elena-menu-type__pdf-card:focus-visible {
	outline: 2px solid var(--elena-gold-soft);
	outline-offset: 2px;
}

.elena-menu-type__pdf-card:active {
	transform: scale(0.99);
	transition-duration: var(--elena-speed-fast);
}

/* The small page at the head of the card: a sheet with a folded corner and two
 * ruled lines, drawn in borders so it needs no image and no extra request. */
.elena-menu-type__pdf-mark {
	border: 1px solid var(--elena-gold-deep);
	border-radius: 1px;
	flex: 0 0 auto;
	height: 1.85rem;
	position: relative;
	width: 1.45rem;
}

.elena-menu-type__pdf-mark::before {
	background:
		linear-gradient(var(--elena-gold-deep), var(--elena-gold-deep)) 0 0 / 100% 1px no-repeat,
		linear-gradient(var(--elena-gold-deep), var(--elena-gold-deep)) 0 0 / 1px 100% no-repeat;
	border-left: 1px solid var(--elena-gold-deep);
	border-top: 1px solid var(--elena-gold-deep);
	content: "";
	height: 0.42rem;
	position: absolute;
	right: -1px;
	top: -1px;
	width: 0.42rem;
}

.elena-menu-type__pdf-mark::after {
	background-color: var(--elena-gold-deep);
	box-shadow: 0 0.32rem 0 var(--elena-gold-deep);
	content: "";
	height: 1px;
	left: 0.3rem;
	position: absolute;
	right: 0.3rem;
	top: 0.85rem;
}

.elena-menu-type__pdf-card:hover .elena-menu-type__pdf-mark,
.elena-menu-type__pdf-card:focus-visible .elena-menu-type__pdf-mark {
	border-color: var(--elena-gold);
}

.elena-menu-type__pdf-card:hover .elena-menu-type__pdf-mark::before,
.elena-menu-type__pdf-card:focus-visible .elena-menu-type__pdf-mark::before {
	border-color: var(--elena-gold);
	background:
		linear-gradient(var(--elena-gold), var(--elena-gold)) 0 0 / 100% 1px no-repeat,
		linear-gradient(var(--elena-gold), var(--elena-gold)) 0 0 / 1px 100% no-repeat;
}

.elena-menu-type__pdf-card:hover .elena-menu-type__pdf-mark::after,
.elena-menu-type__pdf-card:focus-visible .elena-menu-type__pdf-mark::after {
	background-color: var(--elena-gold);
	box-shadow: 0 0.32rem 0 var(--elena-gold);
}

.elena-menu-type__pdf-body {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.elena-menu-type__pdf-title {
	color: inherit;
	display: block;
	font-family: var(--elena-font-display);
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.elena-menu-type__pdf-note {
	color: var(--elena-muted-2);
	display: block;
	font-family: var(--elena-font-body);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	margin-top: 0.25rem;
	text-transform: uppercase;
}

/* The cue is an arrow into the document: a shaft and a head made of two
 * borders, pointing out of the card rather than down the page. */
.elena-menu-type__pdf-cue {
	border-right: 1px solid var(--elena-gold-deep);
	border-top: 1px solid var(--elena-gold-deep);
	flex: 0 0 auto;
	height: 0.5rem;
	margin-right: 0.2rem;
	transform: rotate(45deg);
	transition: border-color var(--elena-speed) var(--elena-ease), transform var(--elena-speed) var(--elena-ease);
	width: 0.5rem;
}

.elena-menu-type__pdf-card:hover .elena-menu-type__pdf-cue,
.elena-menu-type__pdf-card:focus-visible .elena-menu-type__pdf-cue {
	border-color: var(--elena-gold);
	transform: rotate(45deg) translate(0.12rem, -0.12rem);
}

@media (prefers-reduced-motion: reduce) {

	.elena-menu-type__pdf-card,
	.elena-menu-type__pdf-cue {
		transition: none;
	}
}

/* A section inside a board is a headed block rather than a panel: it shares the
 * page with the sections above and below it, so it scrolls into view a little
 * short and keeps its own anchor. */
.elena-menu-section {
	scroll-margin-top: 7rem;
}

.elena-menu-section + .elena-menu-section {
	margin-top: 3.25rem;
}

/* The section heading is the loudest thing inside a board after the board's own
 * name, so a diner can pick out the courses at a glance. */
.elena-menu-section__title {
	align-items: center;
	color: var(--elena-cream);
	display: flex;
	font-family: var(--elena-font-display);
	font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem);
	font-weight: 500;
	gap: 0.7rem;
	letter-spacing: 0.12em;
	margin: 0 0 1.25rem;
	text-transform: uppercase;
}

.elena-menu-section__mark {
	background-color: var(--elena-gold);
	display: block;
	flex: 0 0 auto;
	height: 0.55rem;
	width: 0.55rem;
}

.elena-menu-section__title::after {
	background: linear-gradient(90deg, var(--elena-line), rgba(217, 191, 130, 0));
	content: "";
	flex: 1 1 auto;
	height: 1px;
}

.elena-menu-section__text {
	color: var(--elena-muted);
	font-size: 0.95rem;
	margin-bottom: 1.25rem;
	max-width: 44rem;
}

.elena-menu-section__text :last-child {
	margin-bottom: 0;
}

/* Sub-sections sit inside a section, so they hold back a step. */
.elena-menu-section .elena-menu-group {
	margin-top: 2.25rem;
}

/* -------------------------------------------------------------------------
 * Sub-section headings
 * ---------------------------------------------------------------------- */

.elena-menu-group {
	margin-top: 2.75rem;
}

.elena-menu-group:first-child {
	margin-top: 0;
}

.elena-menu-group__title {
	align-items: center;
	color: var(--elena-cream);
	display: flex;
	font-family: var(--elena-font-display);
	font-size: 1.2rem;
	font-weight: 500;
	gap: 0.6rem;
	letter-spacing: 0.14em;
	margin: 0 0 1.1rem;
	text-transform: uppercase;
}

.elena-menu-group__mark {
	background-color: var(--elena-gold);
	display: block;
	flex: 0 0 auto;
	height: 0.45rem;
	width: 0.45rem;
}

.elena-menu-group__title::after {
	background: linear-gradient(90deg, var(--elena-line), rgba(217, 191, 130, 0));
	content: "";
	flex: 1 1 auto;
	height: 1px;
}

.elena-menu-group__text {
	color: var(--elena-muted);
	font-size: 0.92rem;
	margin-bottom: 1.1rem;
	max-width: 42rem;
}

/* -------------------------------------------------------------------------
 * Dish rows: name and price on one line, description underneath
 * ---------------------------------------------------------------------- */

.elena-menu-list {
	display: grid;
	gap: 0;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62rem) {

	/* Two balanced columns once there is enough to read. Short lists stay in a
	 * single column, where they look calmer, and a lone dish always sits at the
	 * start of the first column rather than in the middle of the page. */
	.elena-menu-list:not(.elena-menu-list--single) {
		column-gap: var(--elena-gap-lg);
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* No hairline is left dangling at the foot of either column. */
	.elena-menu-list:not(.elena-menu-list--single) .elena-menu-dish:nth-last-child(-n + 2) {
		border-bottom-color: transparent;
	}
}

.elena-menu-dish {
	border-bottom: 1px solid var(--elena-line-soft);
	padding: 1.15rem 0;
}

.elena-menu-dish:last-child {
	border-bottom: 0;
}

.elena-menu-dish__head {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	justify-content: space-between;
}

.elena-menu-dish__name {
	color: var(--elena-ivory);
	/* A zero flex-basis keeps a long dish name and its price on the same line:
	 * the name wraps inside the space left over instead of pushing the price
	 * onto a line of its own. Prices are never clipped. */
	flex: 1 1 0;
	font-family: var(--elena-font-display);
	font-size: 1.22rem;
	font-weight: 500;
	letter-spacing: 0.015em;
	margin: 0;
	min-width: 0;
	overflow-wrap: break-word;
}

.elena-menu-dish__price {
	color: var(--elena-gold-soft);
	flex: 0 0 auto;
	font-family: var(--elena-font-display);
	font-size: 1.16rem;
	margin: 0;
	white-space: nowrap;
}

.elena-menu-dish__note {
	color: var(--elena-muted-2);
	display: block;
	font-family: var(--elena-font-body);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	margin-top: 0.15rem;
	text-align: right;
	text-transform: uppercase;
}

.elena-menu-dish__text {
	color: var(--elena-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-top: 0.4rem;
	max-width: 34rem;
}

.elena-menu-dish__text :last-child {
	margin-bottom: 0;
}

.elena-menu-dish__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0.65rem 0 0;
	padding: 0;
}

.elena-menu-dish__tag {
	border: 1px solid var(--elena-line-soft);
	color: var(--elena-muted);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	padding: 0.15rem 0.55rem;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
 * Optional buttons
 * ---------------------------------------------------------------------- */

.elena-menu-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	justify-content: center;
	margin-top: 2.75rem;
}

.elena-menu-actions__button {
	min-width: 11rem;
}

/* The download button follows the board being read, and a board with no PDF of
 * its own leaves it out. The rule is spelled out because a button carries its
 * own `display`, which would otherwise win over the `hidden` attribute. */
.elena-menu-actions[hidden],
.elena-menu-actions__button[hidden] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {

	.elena-menu-tab {
		transition: none;
	}

	/* A category change is instant: the panel is simply there, and no dish
	 * waits on a turn that will never visibly arrive. */
	.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active,
	.elena-menu-page__menu.is-enhanced .elena-menu-panel.is-active .elena-menu-list > .elena-menu-dish {
		animation: none;
	}
	}
