/**
 * Allergens & nutrition (13.0): the location (Mesa) hero, then the allergen
 * chart (option 2, made final 2026-10-13): the filter and key straight on
 * the page ground, then one white table on thin rules. A light red row
 * names each category; a red tick (and the PDF's note under it) where the
 * item contains the allergen, a dash where it doesn't. Brand colours and
 * the style guide's type only.
 */

body.acs-allergens .al-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

body.acs-allergens .al-chart__inner {
	width: min(var(--l-wrap), 100% - 2 * var(--acs-gutter));
	margin-inline: auto;
}

/* ---------- Filter and key ----------
   On the page ground, no panel (user, 2026-10-13): the white pills carry
   it, a light rule above the key. */

body.acs-allergens .al-filter {
	display: grid;
	gap: 1.25rem;
}

body.acs-allergens .al-filter[hidden] {
	display: none;
}

body.acs-allergens .al-filter__title {
	margin: 0;
	font-family: var(--acs-font-display);
	font-size: var(--acs-h5-size); /* the style guide's H5 (user, 2026-10-13) */
	line-height: var(--acs-h5-lh);
	text-transform: uppercase;
	color: var(--acs-ink);
}

body.acs-allergens .al-filter__sub {
	margin: 0.25rem 0 0;
	font-size: var(--acs-text-base-size);
	line-height: var(--acs-text-base-lh);
	color: var(--acs-ink-soft);
}

/* The pills and Clear: Clear on the next line, at the left, below 1024;
   beside the one row of pills from 1024 (user, 2026-10-21) */
body.acs-allergens .al-filter__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

body.acs-allergens .al-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-self: stretch;
}

/* The pills in the site's tab style (the Social events picker tabs, user
   2026-10-13): white pills on a light rule, small bold capitals, no icon;
   a red rule on hover, red once picked. They share the full width: one
   row of seven from 1024, four and three below. */
body.acs-allergens .al-chip {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.625rem 1rem 0.5rem;
	border: 1.5px solid var(--acs-line);
	border-radius: 999px;
	background: var(--acs-white);
	color: var(--acs-ink);
	font: inherit;
	font-size: var(--acs-text-sm-size);
	line-height: var(--acs-text-sm-lh);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.acs-allergens .al-chip svg {
	display: none;
}

body.acs-allergens .al-chip:not([aria-pressed="true"]):hover {
	border-color: var(--acs-red);
}

body.acs-allergens .al-chip[aria-pressed="true"] {
	border-color: var(--acs-red);
	background: var(--acs-red);
	color: var(--acs-white);
}

@media (min-width: 1024px) {
	body.acs-allergens .al-filter__row {
		flex-direction: row;
		align-items: center;
	}

	body.acs-allergens .al-filter__chips {
		flex: 1;
		min-width: 0;
		flex-wrap: nowrap;
	}

	body.acs-allergens .al-chip {
		flex: 1 1 0;
		padding: 0.75rem 1.25rem 0.625rem;
	}
}

@media (max-width: 1023px) {
	body.acs-allergens .al-chip {
		flex: 1 1 calc(25% - 0.5rem);
	}
}

/* Phones: all seven pills on one line that scrolls sideways, running to
   the screen's edges so the cut-off pill shows there is more (no
   scrollbar); Clear at the row's left once a pill is picked
   (user, 2026-10-21; were four and three on two lines). The pill row
   (with Clear) pins under the header's torn edge while the chart scrolls
   by, on the page ground; the heading, line, count and key scroll away.
   Its wrappers step aside (display: contents) so it pins for the whole
   chart, not just the filter box. */
@media (max-width: 767px) {
	body.acs-allergens .al-panel,
	body.acs-allergens .al-filter:not([hidden]) {
		display: contents;
	}

	body.acs-allergens .al-filter__row {
		position: sticky;
		top: var(--acs-pin-h);
		z-index: 3;
		margin: 1.25rem calc(-1 * var(--acs-gutter)) 0;
		padding-block: 0.5rem;
		background: var(--acs-bg);
	}

	/* the torn edge's gaps above the row: page ground, so rows passing
	   behind never show through; only while it is pinned (is-pinned,
	   allergens.js), so it never draws an edge over the page otherwise */
	body.acs-allergens .al-filter__row.is-pinned::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: var(--acs-tear-h);
		background: var(--acs-bg);
		pointer-events: none;
	}

	body.acs-allergens .al-filter__count {
		margin-top: 0.75rem;
	}

	body.acs-allergens .al-filter__chips {
		flex-wrap: nowrap;
		gap: 0.5rem;
		padding-inline: var(--acs-gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-inline: var(--acs-gutter);
		scrollbar-width: none;
	}

	body.acs-allergens .al-filter__chips::-webkit-scrollbar {
		display: none;
	}

	/* every pill the same width, so three and a half fit any phone: the
	   half-cut one says there is more (user, 2026-10-21) */
	body.acs-allergens .al-chip {
		flex: none;
		width: min(8rem, calc((100vw - var(--acs-gutter) - 3.5rem) / 3.4 - 0.5rem)); /* 3.5rem: Clear at the row's left */
		min-width: max-content;
		padding-inline: 0.75rem;
	}

	/* and the row fades out at the edge with more to come: the right
	   until the end, the left once scrolled (allergens.js sets them) */
	body.acs-allergens .al-filter__chips {
		--al-fade-l: 0px;
		--al-fade-r: 3.5rem;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, var(--acs-ink) var(--al-fade-l), var(--acs-ink) calc(100% - var(--al-fade-r)), transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, var(--acs-ink) var(--al-fade-l), var(--acs-ink) calc(100% - var(--al-fade-r)), transparent 100%);
	}

	body.acs-allergens .al-filter__chips.is-scrolled {
		--al-fade-l: 3.5rem;
	}

	body.acs-allergens .al-filter__chips.is-end {
		--al-fade-r: 0px;
	}

	/* Clear: fixed at the row's left, on the same line, the pills
	   scrolling beside it (user, 2026-10-21) */
	body.acs-allergens .al-filter__row {
		flex-direction: row;
		align-items: center;
		gap: 0;
	}

	body.acs-allergens .al-filter__row .al-clear { /* above the base Clear rule further down */
		order: -1;
		flex: none;
		margin-inline-start: var(--acs-gutter);
		padding-inline: 0 0.75rem;
	}

	body.acs-allergens .al-filter__row .al-filter__chips {
		flex: 1;
		min-width: 0;
	}

	body.acs-allergens .al-filter__row .al-filter__chips {
		padding-inline-start: 0.5rem;
	}

	/* on phones Clear is always there, in the pills' row: grey and inert
	   until a pill is picked, then the red link (user, 2026-10-21) */
	body.acs-allergens .al-filter__row .al-clear[hidden] {
		display: inline-flex;
	}

	body.acs-allergens .al-filter__row .al-clear:disabled {
		color: var(--acs-ink-soft);
		text-decoration-color: transparent;
		cursor: default;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.acs-allergens .al-chip {
		transition: none;
	}
}

/* Clear: a red text link, underlined (user, 2026-10-13) */
body.acs-allergens .al-clear {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.5rem 1rem;
	border: 0;
	background: transparent;
	color: var(--acs-red);
	font: inherit;
	font-size: var(--acs-text-base-size);
	line-height: var(--acs-text-base-lh);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

body.acs-allergens .al-filter__count {
	margin: 0;
	font-size: var(--acs-text-sm-size);
	line-height: var(--acs-text-sm-lh);
	color: var(--acs-ink-soft);
}

body.acs-allergens .al-key {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 1.25rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--acs-line);
	list-style: none;
	font-size: var(--acs-text-sm-size);
	line-height: var(--acs-text-sm-lh);
	color: var(--acs-ink-soft);
}

body.acs-allergens .al-key li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

body.acs-allergens .al-key__mark {
	display: inline-flex;
	justify-content: center;
	width: 1.5rem;
	color: var(--acs-ink-soft);
}

body.acs-allergens .al-key__mark.is-yes {
	color: var(--acs-red);
}

/* ---------- The table ----------
   One 1px rule round every cell, the same everywhere, never doubled:
   each cell draws its right and bottom edge, the first column its left,
   the header row its top. The corners are rounded on the cells (not
   clipped off the table), so the header keeps them while it is pinned. */

body.acs-allergens .al-table {
	--al-line: #d0d4d2; /* a step darker than --acs-line, so the rules read */
	--al-cat: var(--acs-ink); /* the heading bars: our black, white text (user, 2026-10-14) */
	width: 100%;
	margin-top: 3rem;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}

body.acs-allergens .al-cat[hidden],
body.acs-allergens .al-clear[hidden],
body.acs-allergens .al-nothing[hidden],
body.acs-allergens .al-table tr[hidden] {
	display: none;
}

body.acs-allergens .al-table th,
body.acs-allergens .al-table td {
	padding: 0.6875rem 0.5rem;
	border: 0;
	border-right: 1px solid var(--al-line);
	border-bottom: 1px solid var(--al-line);
	background: var(--acs-white);
	font-size: var(--acs-text-base-size);
	line-height: var(--acs-text-base-lh);
	text-align: left;
	vertical-align: middle;
}

body.acs-allergens .al-table tr > :first-child {
	border-left: 1px solid var(--al-line);
}

/* The header row: white, small bold capitals in ink, the allergens
   centred over their ticks */
body.acs-allergens .al-table thead th {
	padding-block: 0.875rem 0.75rem;
	border-top: 1px solid var(--al-line);
	color: var(--acs-ink);
	font-size: var(--acs-text-sm-size);
	line-height: var(--acs-text-sm-lh);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.acs-allergens .al-table thead th[data-al-col] {
	text-align: center;
}

body.acs-allergens .al-table thead th.is-picked {
	color: var(--acs-red);
}

body.acs-allergens .al-table thead th:first-child {
	border-top-left-radius: var(--acs-radius);
}

body.acs-allergens .al-table thead th:last-child {
	border-top-right-radius: var(--acs-radius);
}

body.acs-allergens .al-table tbody:last-of-type tr:last-child > :first-child {
	border-bottom-left-radius: var(--acs-radius);
}

body.acs-allergens .al-table tbody:last-of-type tr:last-child > :last-child {
	border-bottom-right-radius: var(--acs-radius);
}

body.acs-allergens .al-table .al-table__item {
	width: 30%;
	padding-left: 1.25rem;
}

/* The category: a light red row across the table, its name in the Order
   now button's red, the body face at 14px (user, 2026-10-13) */
body.acs-allergens .al-table .al-cat__title {
	margin: 0;
	padding: 0.5rem 1.25rem;
	background: var(--al-cat);
	color: var(--acs-white);
	font-family: var(--acs-font-body);
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.375rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* The allergen columns start the same 1.25rem from their rule as the
   dish names do (desktop; phones lay the cells out in a list) */
@media (min-width: 900px) {
	body.acs-allergens .al-table thead th[data-al-col],
	body.acs-allergens .al-table td.al-cell {
		padding-left: 0.5rem;
	}
}

/* A part of the category above (dressings, salad proteins, po' boys):
   a light grey bar, its dishes level with every other dish; no tree
   lines or indents (user, 2026-10-15) */
body.acs-allergens .al-table .al-cat--sub .al-cat__title {
	background: #eaeaea; /* black at about 8%: apart from the page ground, still light */
	color: var(--acs-ink);
	font-weight: 600;
}

body.acs-allergens .al-table tbody th {
	font-weight: 700;
	color: var(--acs-ink);
}

body.acs-allergens .al-row:hover > * {
	background: var(--acs-hover);
}

body.acs-allergens .al-row__name {
	display: block;
}

/* A dish with a menu page: its name links there, underlined at rest, red
   while its row is hovered */
body.acs-allergens .al-row__link {
	color: var(--acs-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.15s ease;
}

body.acs-allergens .al-row:hover .al-row__link,
body.acs-allergens .al-row__link:focus-visible {
	color: var(--acs-red);
}

body.acs-allergens .al-row__note {
	display: block;
	font-size: var(--acs-text-sm-size);
	line-height: var(--acs-text-sm-lh);
	font-weight: 400;
	color: var(--acs-ink-soft);
}

/* Each cell: the tick (or dash) centred, its note centred under it at
   12px (user, 2026-10-13) */
body.acs-allergens .al-cell__in {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	min-height: 1.5rem;
	text-align: center;
}

/* A red disc with a white tick; the cell's rule turns red too, over the
   grey (user, 2026-10-14) */
body.acs-allergens .al-cell.is-yes svg,
body.acs-allergens .al-key__mark.is-yes svg {
	flex: none;
	box-sizing: border-box;
	width: 1.125rem;
	height: 1.125rem;
	padding: 0.1875rem;
	stroke-width: 3;
	border-radius: 50%;
	background: var(--acs-red);
	color: var(--acs-white);
}

/* One red rule between two ticked cells, never two: the cell's own right
   and bottom rule turn red, and its left and top rule (the neighbours')
   are painted over on the same pixel */
body.acs-allergens .al-cell.is-yes {
	border-right-color: var(--acs-red);
	border-bottom-color: var(--acs-red);
	box-shadow: -1px 0 0 var(--acs-red), 0 -1px 0 var(--acs-red), -1px -1px 0 var(--acs-red);
	position: relative; /* above the neighbours' grey rules */
	z-index: 1;
}

/* Where the cell meets a black heading bar (the first row under a bar, the
   last row above the next one; the grey part bars keep the red) it has no red rule on that edge */
body.acs-allergens .al-table .al-cat:not(.al-cat--sub) .al-cat__row + .al-row .al-cell.is-yes {
	box-shadow: -1px 0 0 var(--acs-red);
}

body.acs-allergens .al-table .al-cat:not(.al-cat--more):not(:last-of-type) .al-row:last-child .al-cell.is-yes {
	border-bottom-color: var(--acs-ink);
}


body.acs-allergens .al-cell__note {
	font-size: 0.75rem;
	line-height: 1.125rem;
	color: var(--acs-ink);
	transform: translateY(1px); /* the face sits high in its line: level with the tick's centre */
}

body.acs-allergens .al-cell__label {
	display: none;
}

body.acs-allergens .al-cell__dash {
	display: inline-block;
	width: 1.125rem;
	text-align: center;
	color: var(--acs-ink-soft);
	opacity: 0.5;
}

body.acs-allergens .al-nothing {
	margin: 3rem 0 0;
	font-size: var(--acs-text-lg-size);
	line-height: var(--acs-text-lg-lh);
	text-align: center;
}

/* The header row stays pinned under the header and its torn edge, so
   every column keeps its allergen. The page ground fills the tear's gap
   above it and the corners outside its curve, so rows scrolling behind
   never show (a copy of each corner cell, shifted out to its corner). */
body.acs-allergens {
	--al-head-top: calc(var(--acs-sticky-h) + var(--acs-tear-h));
}

@media (min-width: 900px) {
	body.acs-allergens .al-table thead th {
		position: sticky;
		top: var(--al-head-top);
		z-index: 2;
	}

	body.acs-allergens .al-table thead th::before {
		content: "";
		position: absolute;
		left: -1px;
		right: -1px;
		bottom: calc(100% + 1px); /* above the cell's top rule, not over it */
		height: var(--acs-tear-h);
		background: var(--acs-bg);
		pointer-events: none;
	}

	body.acs-allergens .al-table thead th:first-child {
		box-shadow: calc(-1 * var(--acs-radius)) calc(-1 * var(--acs-radius)) 0 0 var(--acs-bg);
	}

	body.acs-allergens .al-table thead th:last-child {
		box-shadow: var(--acs-radius) calc(-1 * var(--acs-radius)) 0 0 var(--acs-bg);
	}
}

@media (min-width: 900px) and (max-width: 1023px) {
	body.acs-allergens .al-table .al-table__item {
		width: 26%;
		padding-left: 1rem;
	}
}

/* ---------- Phones and tablets ----------
   Below 900 the seven columns are too narrow: one rule round the whole
   list, each category a light red bar, each item a block, its name over
   the seven allergens in two columns, a red tick (and the note) or a
   dash before each. */
@media (max-width: 899px) {
	body.acs-allergens .al-table,
	body.acs-allergens .al-table tbody {
		display: block;
	}

	body.acs-allergens .al-table {
		overflow: hidden;
		border: 1px solid var(--al-line);
		border-radius: var(--acs-radius);
	}

	body.acs-allergens .al-table thead {
		display: none;
	}

	body.acs-allergens .al-table .al-cat__row {
		display: block;
	}

	body.acs-allergens .al-table .al-cat__row .al-cat__title {
		display: block;
		border: 0;
		border-bottom: 1px solid var(--al-line);
		border-radius: 0;
	}

	body.acs-allergens .al-table tbody tr.al-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.375rem 1rem;
		padding: 1rem 1.25rem;
		border-bottom: 1px solid var(--al-line);
		background: var(--acs-white);
	}

	/* The grid above outranks the [hidden] rule: keep filtered rows hidden. */
	body.acs-allergens .al-table tbody tr.al-row[hidden],
	body.acs-allergens .al-table tbody.al-cat[hidden] {
		display: none;
	}

	body.acs-allergens .al-table tbody:last-of-type tr.al-row:last-child {
		border-bottom: 0;
	}

	body.acs-allergens .al-table tbody tr.al-row > *,
	body.acs-allergens .al-table tbody tr.al-row:hover > * {
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
	}

	body.acs-allergens .al-table tbody th.al-table__item {
		grid-column: 1 / -1;
		width: auto;
		padding: 0 0 0.25rem;
	}

	body.acs-allergens .al-cell__in {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 0.375rem;
		font-size: var(--acs-text-sm-size);
		line-height: var(--acs-text-sm-lh);
		text-align: left;
	}

	body.acs-allergens .al-cell__label {
		display: inline;
	}

	body.acs-allergens .al-cell.is-yes .al-cell__label {
		font-weight: 700;
		color: var(--acs-ink);
	}

	body.acs-allergens .al-cell.is-no .al-cell__label {
		color: var(--acs-ink-soft);
	}

	body.acs-allergens .al-cell__note {
		font-size: var(--acs-text-sm-size);
		line-height: var(--acs-text-sm-lh);
		color: var(--acs-ink-soft);
	}

	body.acs-allergens .al-cell__note::before {
		content: "· ";
	}

	body.acs-allergens .al-cell.is-yes,
	body.acs-allergens .al-table .al-cat:not(.al-cat--sub) .al-cat__row + .al-row .al-cell.is-yes {
		box-shadow: none;
		position: static;
	}

	body.acs-allergens .al-cell.is-yes svg,
	body.acs-allergens .al-cell svg {
		width: 1.125rem;
		height: 1.125rem;
		padding: 0.1875rem;
	}

	body.acs-allergens .al-cell__dash {
		width: 1rem;
	}
}

/* ---------- Hero: the location (Mesa) split hero ----------
   (user, 2026-10-13) Corporate events' type for it (H1, Body XL line, the
   yellow button), no crab parade. Phones and tablets: the photo, 24px,
   the copy. Desktop: the copy centred in the red you can see, the hero
   tucked 1.75rem under the bar at the top and the tear's 0.668 hidden at
   both edges. */
body.acs-allergens .l-hero__title {
	margin-top: 0;
	font-size: min(var(--acs-h1-size), 10.5vw); /* the H1, a touch smaller below 375 so one line fits at 320 (it ran 13px over; user, 2026-10-21) */
	line-height: var(--acs-h1-lh);
	letter-spacing: normal;
	white-space: nowrap; /* one line at every width */
}

body.acs-allergens .l-hero__sub {
	max-width: 32rem;
	margin: 1rem 0 0; /* 16px heading to line */
	font-size: var(--acs-text-xl-size);
	line-height: var(--acs-text-xl-lh);
	color: var(--acs-white);
}

body.acs-allergens .l-hero__cta {
	margin: 1.5rem 0 0; /* 24px line to button (user, 2026-10-13) */
}

/* The location stylesheet gives every .l-btn a 1.75rem top margin; here
   the paragraph's 24px is the whole gap (user, 2026-10-13: the button sat
   52px under the line) */
body.acs-allergens .l-hero__cta .l-btn {
	margin-top: 0;
}

@media (max-width: 1023px) {
	body.acs-allergens .l-hero {
		padding-bottom: calc(var(--l-tear) + 2.5rem);
	}

	body.acs-allergens .l-hero__media {
		height: clamp(15rem, 68vw, 20rem);
	}

	body.acs-allergens .l-hero__content {
		margin-top: 1.5rem;
	}
}

@media (min-width: 1024px) {
	body.acs-allergens .l-hero {
		min-height: 36rem; /* the location pages' */
		padding-bottom: 0;
	}

	body.acs-allergens .l-hero__content {
		margin-top: 0;
		padding-top: calc(var(--l-tear) * 0.668 + 1.75rem + 3rem);
		padding-bottom: calc(var(--l-tear) * 0.668 + 3rem);
	}
}

/* Under the hero: measured from where the red visibly ends, not from the
   hero's box, whose torn bottom edge hides 0.668 of --l-tear in the page
   colour (64px, 40px on phones; user, 2026-10-13) */
body.acs-allergens .l-hero + .al-chart {
	margin-top: calc(4rem - var(--l-tear) * 0.668);
}

@media (max-width: 767px) {
	body.acs-allergens .l-hero + .al-chart {
		margin-top: calc(2.5rem - var(--l-tear) * 0.668);
	}
}
