/* Dish page option 1 (templates/menu-item.php, .m-page--o1; user,
   2026-11-02, after a shop grid): the board's choices read as information,
   not things to pick. No rules between the sections; Sauce it, Spice it,
   Extras and Add to bag as cards, the picture inside, the name and its
   line under the card at the left; two a row on phones, four from 768; no
   hover lift. Two looks to compare: A white cards on the grey page
   (.m-o1-cards--fill, the default) and B outline cards
   (.m-o1-cards--outline, ?cards=outline); ?cards=original shows the page
   as it was (no classes). All three are kept to show the client (user,
   2026-11-02: delete none). */

/* ---------- No lines between the sections */
body.acs-menu .m-page--item.m-page--o1 .m-panels .m-panel {
	border-top: 0;
}

/* ---------- The grid: equal columns across the main column */
body.acs-menu .m-page--item.m-page--o1 :is(.m-sauces, .m-tiles, .m-heat) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	justify-content: stretch;
	gap: 1.75rem 1rem;
}

/* Each item: the card, then its words at the left. The card is the item's
   width; the frame size follows it (container units), so the chillies'
   positions scale with the card. */
body.acs-menu .m-page--item.m-page--o1 :is(.m-sauce, .m-tile, .m-heat__item) {
	container-type: inline-size;
	--m-frame: 100cqw;
	width: auto;
	align-items: flex-start;
	text-align: left;
}

/* The card */
body.acs-menu .m-page--item.m-page--o1 :is(.m-sauce__cup, .m-tile__media, .m-heat__chilis) {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	margin: 0 0 0.75rem;
	border-radius: var(--acs-radius);
	background: var(--acs-white);
}

/* the picture inside, with air round it */
body.acs-menu .m-page--item.m-page--o1 .m-sauce__cup {
	padding: 16%;
	object-fit: contain;
	filter: none;
}

body.acs-menu .m-page--item.m-page--o1 .m-tile__media {
	padding: 8%;
}

body.acs-menu .m-page--item.m-page--o1 .m-heat__chilis {
	--m-chili: 26cqw;
	--m-chili-step: 10cqw;
	--m-chili-drop: 2.5cqw;
}

/* View only: nothing lifts on hover */
body.acs-menu .m-page--item.m-page--o1 :is(.m-sauce__cup, .m-tile__media img) {
	transform: none;
	transition: none;
}

/* ---------- The words: name (bold) and its line, left, free to wrap */
body.acs-menu .m-page--item.m-page--o1 :is(.m-sauce__name, .m-heat__name) {
	font-size: var(--acs-text-lg-size);
	line-height: var(--acs-text-lg-lh);
	white-space: normal;
}

body.acs-menu .m-page--item.m-page--o1 .m-tile:nth-child(-n + 3) .m-sauce__name {
	max-width: none;
}

body.acs-menu .m-page--item.m-page--o1 .m-sauce__meta {
	max-width: none;
}

body.acs-menu .m-page--item.m-page--o1 .m-heat__tag {
	align-self: auto;
	margin-left: 0;
	translate: none;
	white-space: normal;
}

/* ---------- B: outline cards, no fill */
body.acs-menu .m-page--item.m-page--o1.m-o1-cards--outline :is(.m-sauce__cup, .m-tile__media, .m-heat__chilis) {
	border: 1px solid color-mix(in srgb, var(--acs-ink) 16%, transparent);
	background: none;
}

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

	body.acs-menu .m-page--item.m-page--o1 :is(.m-sauce__name, .m-heat__name) {
		white-space: normal;
	}

	body.acs-menu .m-page--item.m-page--o1 .m-tile .m-sauce__name {
		white-space: normal;
	}
}
