/* Dish pages, /menu/seafood-boil/{dish}/ (templates/menu-item.php only;
   option 3 has its own rules): spacing and the first screen (user,
   2026-11-02). Loaded after menu.css, in its own file so menu.css rewrites
   cannot drop it.
   - A little more room under the site header and under the crumbs.
   - The name and its description closer (12px; was 24).
   - Desktop: the dish (tag, name, description, calories • price,
     contains) and the product card fill the first screen, both centred
     on the same line, so Sauce it starts just below the fold. A short
     screen keeps the natural spacing (no forced height). */

body.acs-menu .m-page.m-page--item {
	--m-hdr: var(--acs-header-h); /* the site header's height: 56 phones, 72 from 1024 */
	--m-top: 2rem; /* header → crumbs */
	--m-card-h: 35rem; /* the product card from 1024 (menu.css .m-buy) */
}

body.acs-menu .m-page.m-page--item .m-item {
	margin-top: var(--m-top);
}

body.acs-menu .m-page.m-page--item .m-item__head .acs-crumbs {
	margin-bottom: 2.5rem; /* 40px to the place tag at every width (user, 2026-11-04; was 20) */
}

body.acs-menu .m-page.m-page--item .m-item__desc {
	margin-top: 0.75rem; /* was 24 */
}

/* Contains: no box (user, 2026-11-02: as option 3, every option): the red
   info icon and the line on one centre line, on the page ground */
body.acs-menu .m-page.m-page--item .m-item__allergen {
	padding: 0;
	border-radius: 0;
	background: none;
}

@media (min-width: 1024px) {
	body.acs-menu .m-page.m-page--item {
		--m-top: 3.5rem; /* was 40 */
		--m-hero: calc(100svh - var(--m-hdr) - var(--m-top) - 1.5rem); /* to the fold, less the row gap */
	}

	/* The dish at the top, 20px under the crumbs, no longer centred on the
	   fold (user, 2026-11-03); the card's top level with the place tag's */
	body.acs-menu .m-page.m-page--item .m-item__head {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	body.acs-menu .m-page.m-page--item .m-item__head .acs-crumbs {
		align-self: stretch;
	}

	body.acs-menu .m-page.m-page--item .m-item__side {
		margin-top: calc(var(--acs-text-sm-lh) + 1.25rem); /* the crumbs' line + their 20px */
	}
}

@media (min-width: 1280px) {
	body.acs-menu .m-page.m-page--item {
		--m-card-h: 37.1875rem; /* 595: the card's name and calories • price under the bowl (2026-11-02) */
	}
}

@media (min-width: 1440px) {
	body.acs-menu .m-page.m-page--item {
		--m-hdr: 6.25rem; /* the header is 100px tall from 1440 */
	}
}

/* ---------- Option 1 (user, 2026-11-02) ----------
   Order now right under calories • price: the price is where the visitor
   decides, so the button sits there, in the first screen next to the dish,
   and Contains reads as the small print after it. The card shows only the
   bowl. Sauce it to Allergens are FAQ-page rows (details, the red plus that
   turns to a minus, one open at a time: assets/location/faq.js); what is
   inside each opens unchanged (the client's three card looks). */
body.acs-menu .m-item__order {
	margin-top: 1.5rem;
}

body.acs-menu .m-item__order + .m-item__allergen {
	margin-top: 1.25rem;
}

@media (min-width: 1024px) {
	body.acs-menu .m-page--item:has(.m-buy--bare) {
		--m-card-h: 28.375rem; /* the card with Order now is 454 at 1024 (the centring above) */
	}
}

@media (min-width: 1280px) {
	body.acs-menu .m-page--item:has(.m-buy--bare) {
		--m-card-h: 32.875rem; /* 526 from 1280 */
	}
}

body.acs-menu .m-page--item .m-panels .m-panel.m-panel--acc {
	padding: 0;
	border-top: 0;
	border-bottom: 1px solid var(--acs-line);
}

body.acs-menu .m-page--item .m-panels .m-panel.m-panel--acc:first-child {
	border-top: 1px solid var(--acs-line);
}

body.acs-menu .m-panel--acc .m-panel__q .m-panel__title {
	margin: 0;
	font-size: var(--acs-h5-size);
	line-height: var(--acs-h5-lh);
	color: inherit; /* the FAQ row's red on hover */
}

body.acs-menu .m-panel--acc .m-panel__q .l-faq__mark {
	width: 1.5rem;
	height: 1.5rem;
}

body.acs-menu .m-panel--acc > .m-panel__body {
	padding: 0.5rem 0 2rem;
}

@media (min-width: 1024px) {
	body.acs-menu .m-panel--acc > .m-panel__body {
		padding-bottom: 2.5rem;
	}
}

/* Option 1's card (user, 2026-11-02): no wooden board, no torn edges; the
   bowl larger on a plain white card with the CTA's rounding. The bowl is
   52% of its photo's width, so the photo is drawn 163% wide: the bowl
   fills about 85% of the card */
body.acs-menu .m-buy.m-buy--bare {
	border-radius: var(--acs-radius);
	background: var(--acs-white);
}

body.acs-menu .m-buy.m-buy--bare::before,
body.acs-menu .m-buy.m-buy--bare::after {
	content: none;
}

body.acs-menu .m-buy--bare .m-buy__img {
	width: 163%;
	margin: 0 -31.5%;
}

/* ---------- Option 1's default look, 'list' (user, 2026-11-02: no white
   cards; a small picture, the name 16px, its line; 7 a row) ----------
   .m-o1-cards--list (templates/menu-item.php; ?cards=fill / outline /
   original keep the client's other looks). 3 a row on phones, 4 from 768
   (the sections sit in the left column beside the sticky card, 2026-11-02). */
body.acs-menu .m-page--item.m-page--o1.m-o1-cards--list :is(.m-sauces, .m-tiles, .m-heat) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem 0.75rem;
}

body.acs-menu .m-page--item.m-page--o1.m-o1-cards--list :is(.m-sauce, .m-tile, .m-heat__item) {
	--m-frame: 4rem;
	align-items: center;
	text-align: center;
}

body.acs-menu .m-page--item.m-page--o1.m-o1-cards--list :is(.m-sauce__cup, .m-tile__media, .m-heat__chilis) {
	width: var(--m-frame);
	height: var(--m-frame);
	margin: 0 0 0.75rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

body.acs-menu .m-page--item.m-page--o1.m-o1-cards--list .m-heat__chilis {
	--m-chili: 1.375rem;
	--m-chili-step: 0.5rem;
	--m-chili-drop: 0.125rem;
}

body.acs-menu .m-page--item.m-page--o1.m-o1-cards--list :is(.m-sauce__name, .m-heat__name) {
	font-size: 1rem; /* 16px (user, 2026-11-02) */
	line-height: 1.375rem;
	text-wrap: balance;
}

body.acs-menu .m-page--item.m-page--o1.m-o1-cards--list :is(.m-sauce__meta, .m-heat__tag, .m-heat__price) {
	margin-top: 0.25rem;
	font-size: var(--acs-text-sm-size);
	line-height: var(--acs-text-sm-lh);
	text-align: center;
}

@media (min-width: 768px) {
	body.acs-menu .m-page--item.m-page--o1.m-o1-cards--list :is(.m-sauces, .m-tiles, .m-heat) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem 1rem;
	}

	body.acs-menu .m-page--item.m-page--o1.m-o1-cards--list :is(.m-sauce, .m-tile, .m-heat__item) {
		--m-frame: 4.5rem;
	}

	body.acs-menu .m-page--item.m-page--o1.m-o1-cards--list .m-heat__chilis {
		--m-chili: 1.5rem;
		--m-chili-step: 0.6rem;
		--m-chili-drop: 0.15rem;
	}
}

/* ---------- Option 1, 2026-11-02 (user): the shack these prices are from
   as a quiet light-yellow tag (a place, not a call to act); the heading's
   lines closer and even; Order now on the sticky card at the right (the
   sections run beside it in the left column); more room above and below
   each section's row line. */
body.acs-menu .m-page.m-page--item .m-item__place {
	background: var(--acs-yellow); /* Shack Yellow fill (user, 2026-11-03; was the light yellow) */
	font-weight: 600;
}

body.acs-menu .m-page.m-page--item .m-item__dish > .m-item__meta {
	margin-top: 1rem;
}

body.acs-menu .m-page.m-page--item .m-item__allergen {
	margin-top: 1.25rem;
}

body.acs-menu .m-panel--acc .m-panel__q {
	padding-block: 1.75rem;
}

@media (min-width: 1024px) {
	body.acs-menu .m-panel--acc .m-panel__q {
		padding-block: 2rem;
	}
}

/* The sticky card with Order now (2026-11-02): the bowl a little smaller so
   the whole card, button included, stays on screen while it is pinned
   (about 560px tall from 1280, as --m-card-h assumes) */
body.acs-menu .m-buy.m-buy--bare {
	min-height: 0;
}

body.acs-menu .m-buy--bare .m-buy__img {
	width: 140%;
	margin: -6% -20%;
}

/* ---------- Option 1's default look, text only (user, 2026-11-03: as
   option 2's Sauces / Extras / Add-ons, no pictures; space is tight):
   the name bold over its facts, 5px grey circles between, 2 a row on
   phones, 3 when the column has room for them (a container query: the
   column beside the sticky card is narrow at some widths) (template-parts/menu/panels.php type 'text'). */
body.acs-menu .m-panel--text > .m-panel__body {
	container-type: inline-size;
}

body.acs-menu .m-ptext {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.acs-menu .m-ptext__item {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

/* names 16px bold, their lines 14px, at every width (user, 2026-11-03) */
body.acs-menu .m-ptext__name {
	color: var(--acs-ink);
	font-size: 1rem;
	line-height: 1.5rem;
	font-weight: 700;
}

body.acs-menu .m-ptext__line {
	color: var(--acs-ink-soft);
	font-size: 0.875rem;
	line-height: 1.375rem;
}

/* a fact and the dot before it wrap together (the first may wrap: Trifecta's sauces) */
body.acs-menu .m-ptext__part + .m-ptext__part {
	white-space: nowrap;
}

body.acs-menu .m-ptext__part + .m-ptext__part::before {
	content: "";
	display: inline-block;
	width: 0.3125rem;
	height: 0.3125rem;
	margin: 0 0.5rem;
	border-radius: 50%;
	background: var(--acs-ctrl-line);
	vertical-align: 0.1875em;
}

@media (min-width: 768px) {
	body.acs-menu .m-ptext {
		gap: 1.75rem 2.5rem;
	}
}

@container (min-width: 40rem) {
	body.acs-menu .m-ptext {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Option 1's first screen (user, 2026-11-03) ----------
   The dish name on one line at every width (sized from its letter count:
   the MENU face is about 0.62em a letter), the description on two,
   balanced (user, 2026-11-04; the centring on the card and the run to the
   fold removed with the card, below). */
body.acs-menu .m-page.m-page--item .m-item__head {
	container-type: inline-size;
}

body.acs-menu .m-page.m-page--item .m-item__title {
	max-width: none;
	font-size: clamp(1.75rem, 100cqi / (var(--m-tlen, 12) * 0.64), var(--acs-h1-size)); /* down to 28px; a longer name (the four menus' drinks: Hot Honey Blueberry Lemonade) two even lines (user, 2026-11-04; headings max 2 lines) */
	line-height: 1.1;
	text-wrap: balance;
}

body.acs-menu .m-page.m-page--item .m-item__desc {
	max-width: 30em;
	text-wrap: balance; /* two even lines (user, 2026-11-04) */
}


/* Option 1, phones and tablets (user, 2026-11-04): the product card runs
   the grid's full width, edge to edge with the text above it (was held to
   416px, short of the right edge from 460px screens); the bowl keeps its
   phone size, centred, so it never becomes a banner */
@media (max-width: 1023px) {
	body.acs-menu .m-page--item .m-item__side {
		max-width: none;
	}

	body.acs-menu .m-page--item .m-buy--bare .m-buy__img {
		width: min(140%, 35rem);
		margin-block: max(-6%, -1.5rem);
		margin-inline: max(-20%, (100% - 35rem) / 2);
	}
}

/* ---------- Option 1: no card, the bowl alone (user, 2026-11-04) ----------
   No white card: the dish's bowl on the page ground with Order now under
   it (data-acs-order: the chosen shack's online ordering, in a new tab).
   The text and the bowl start together, 20px under the crumbs; Sauce it
   follows at the section gap. The photo's clear air above the food is
   tucked under (-10%), so the food's top meets the tag's top. */
body.acs-menu .m-page--item .m-buy.m-buy--bare {
	gap: 1.25rem;
	min-height: 0;
	padding: 0;
	border-radius: 0;
	background: none;
	justify-content: flex-start;
}

body.acs-menu .m-page--item .m-buy--bare .m-buy__img {
	margin-top: -10%;
}

@media (max-width: 1023px) {
	body.acs-menu .m-page--item .m-buy--bare .m-buy__img {
		margin-top: max(-10%, -2.5rem);
	}
}


/* Option 1, phones and tablets (user, 2026-11-04): the heading block
   centred over the bowl, which sits centred under it: the crumbs, the tag,
   the name, the two lines, calories • price and Contains (desktop keeps
   the text at the left with the bowl beside it) */
@media (max-width: 1023px) {
	body.acs-menu .m-page--item:has(.m-buy--bare) .m-item__head {
		text-align: center;
	}

	body.acs-menu .m-page--item:has(.m-buy--bare) .m-item__dish {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	body.acs-menu .m-page--item:has(.m-buy--bare) .m-item__meta {
		justify-content: center;
	}
}

/* ---------- Option 1 (user, 2026-11-04) ----------
   Desktop: the bowl's top level with the crumbs' top, Order now under it,
   the pair sticky as the sections scroll by; Sauce it 40px under Contains
   (no row held open for the bowl). Every width: Good to know plain on the
   page ground, no white card. */
@media (min-width: 1024px) {
	body.acs-menu .m-page.m-page--item:has(.m-buy--bare) .m-item__side {
		margin-top: 0;
	}

	body.acs-menu .m-page--item:has(.m-buy--bare) .m-item {
		grid-template-rows: auto 1fr; /* the tall sticky bowl's extra height goes to the sections' row, never between Contains and Sauce it */
		row-gap: 0;
	}

	body.acs-menu .m-page--item:has(.m-buy--bare) .m-item__body {
		margin-top: 4rem; /* + the sections' own 16px: the line above Sauce it 80px under Contains (user, 2026-11-04; was 100) */
	}

	/* the boil bowls (bowls/) carry more clear air over the food than the
	   other menus' photos (gen/): tucked a little more */
	body.acs-menu .m-page--item .m-buy--bare .m-buy__img[src*="/bowls/"] {
		margin-top: -14%;
	}
}

/* phones and tablets: the line above Sauce it 40px under Order now (the
   grid's gap and the sections' own space came to 48) */
@media (max-width: 1023px) {
	body.acs-menu .m-page--item:has(.m-buy--bare) .m-item__body {
		margin-top: -0.5rem;
	}
}

/* The place tag → the dish name: 24px on every dish page, every width
   (user, 2026-11-04; was 16) */
body.acs-menu .m-page.m-page--item .m-item__place {
	margin-bottom: 1.5rem;
}

/* The bowl → Order now: 40px from the bowl's foot (its shadow's faint
   edge aside) to the button (user, 2026-11-04; was 52–54) */
body.acs-menu .m-page--item .m-buy.m-buy--bare {
	gap: var(--m-bowl-btn, 0.5rem);
}

@media (min-width: 1024px) {
	body.acs-menu .m-page--item {
		--m-bowl-btn: 7px; /* the larger photo's shadow edge: 40px at 1024 */
	}
}

@media (min-width: 1280px) {
	body.acs-menu .m-page--item {
		--m-bowl-btn: 6px;
	}
}

/* Desktop: the sticky bowl and Order now 20px higher, where it starts and
   where it pins (user, 2026-11-04) */
@media (min-width: 1024px) {
	body.acs-menu .m-page.m-page--item:has(.m-buy--bare) .m-item__side {
		margin-top: -1.25rem;
		top: calc(var(--acs-sticky-h) + var(--acs-tear-h) + 1rem - 1.25rem);
	}
}

/* The dish's line runs to the name's width (user, 2026-11-04): its first
   line ends where the name ends, the rest on the second. A short name
   (Snow crab) would make it 4–5 lines, so the line is never narrower than
   22em: two lines, the first a little fuller, as a sentence reads. The
   line takes no part in the width (inline-size containment); the name and
   that floor set it. */
body.acs-menu .m-page.m-page--item .m-item__name {
	width: fit-content;
	min-width: min(100%, var(--acs-text-lg-size) * 21.5); /* about 58% of the line's length: two lines, the first fuller */
	max-width: 100%;
}

body.acs-menu .m-page.m-page--item .m-item__name .m-item__desc {
	contain: inline-size;
	width: 100%;
	max-width: 30em; /* a long name (Dungeness clusters): still two lines, the second never a stray word */
	text-wrap: pretty; /* fill the first line; no word left alone on the second */
}

/* Dishes with nothing to choose (Six Wings and the like): no empty
   sections block, so the cards sit the page's one gap (60/120) under the
   bowl and Order now, not 92 (audit, 2026-11-04) */
body.acs-menu .m-page--item .m-item__body:not(:has(*)) {
	display: none;
}

@media (max-width: 1023px) {
	/* the grid keeps the empty row's 32px gap: taken back under the bowl */
	body.acs-menu .m-page--item .m-item--plain > .m-item__side {
		margin-bottom: calc(-1 * 2rem);
	}
}

/* Contains on phones and tablets: when it runs to two lines, two even
   ones (user, 2026-11-04: 'Soy, Nuts' was left short), the icon on their
   shared middle */
@media (max-width: 1023px) {
	body.acs-menu .m-page--item .m-item__allergen p {
		text-wrap: balance;
	}
}

/* Phones (user, 2026-11-04): the icon right beside the words, 6px; the two
   lines left aligned to each other; the icon and lines together centred.
   The words' box held to the two even lines' width (14.25em), so it never
   stretches wider than they are and leaves the icon out on its own. */
@media (max-width: 599px) {
	body.acs-menu .m-page--item .m-item__allergen {
		gap: 0.375rem;
	}

	body.acs-menu .m-page--item .m-item__allergen p {
		max-width: 14.25em; /* two even lines at its 14px */
		text-align: left;
	}

	/* The icon centred on the first line (user, 2026-11-05): its middle
	   level with the middle of line 1's capitals (11.5px up from the
	   two lines' shared middle) */
	body.acs-menu .m-page--item .m-item__allergen svg {
		translate: 0 -0.71875rem;
	}
}

/* The dish page's bowl: its shadow never cut (user, 2026-11-05). Clipped
   at the sides only (the enlarged photo's clear air must not widen the
   page; the bowl and its shadow sit well inside), free above and below;
   every photo carries its own soft contact shadow (baked into bowls/ and
   cutouts/ too, user 2026-11-05: as Six Wings), so no CSS shadow. */
body.acs-menu .m-page--item .m-buy.m-buy--bare {
	overflow: clip visible;
}

body.acs-menu .m-page--item .m-buy--bare .m-buy__img {
	filter: none;
}
