/* =========================================================================
   Actifyd Menu — Ashirvaad Grand
   Built on the --ag- design tokens. If the theme has not defined them the
   fallbacks here carry the same values, so the plugin never renders unstyled.

   Prices are hidden by default, so the layout does not lean on a price
   column: the item numbers carry the left edge and the list runs three
   columns wide instead of two.
   ========================================================================= */

.ag-menu,
.ag-now {
	--p-cream: var(--ag-cream, #FFFEF4);
	--p-paper: var(--ag-paper, #FFFFFF);
	--p-sunk: var(--ag-surface-sunk, #FFFEE6);
	--p-yellow-soft: var(--ag-yellow-soft, #FFFBB8);
	--p-green: var(--ag-green, #00863F);
	--p-green-deep: var(--ag-green-deep, #007236);
	--p-green-dark: var(--ag-green-dark, #005528);
	--p-red: var(--ag-red, #EC1D23);
	--p-red-deep: var(--ag-red-deep, #CF191F);
	--p-ink: var(--ag-ink, #172216);
	--p-muted: var(--ag-ink-muted, #6F766A);
	--p-line: var(--ag-border, #E3DDC5);
	--p-line-strong: var(--ag-border-strong, #D1C7A7);
	--p-head: var(--ag-font-heading, "Fraunces", Georgia, serif);
	--p-body: var(--ag-font-body, "Figtree", system-ui, sans-serif);

	font-family: var(--p-body);
	color: var(--p-ink);
}

/* An element hidden by script stays hidden, whatever the theme sets on the
   class. Divi styles .ag-row as a list item and would otherwise re-show it. */
.ag-menu [hidden],
.ag-now [hidden] {
	display: none !important;
}

.ag-menu *,
.ag-now * {
	box-sizing: border-box;
}

/* ------------------------------------------------------------- controls */

.ag-ctrl {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--p-cream);
	border-bottom: 1px solid var(--p-line);
	padding-block: 12px;
	margin-bottom: 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ag-ctrl-row {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	min-width: 0;
}

.ag-menu #ag-q {
	flex: 1 1 200px;
	min-width: 0;
	font: inherit;
	font-size: 15px;
	padding: 9px 13px;
	border: 1px solid var(--p-line-strong);
	border-radius: 6px;
	background: var(--p-paper);
	color: var(--p-ink);
}

.ag-chiprow {
	display: flex;
	gap: 7px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: thin;
}

.ag-menu .ag-chip {
	flex: 0 0 auto;
	font: inherit;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
	padding: 6px 12px;
	border: 1px solid var(--p-line-strong);
	border-radius: 999px;
	background: var(--p-paper);
	color: var(--p-muted);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.ag-menu .ag-chip:hover {
	border-color: var(--p-green);
	color: var(--p-green-deep);
}

.ag-menu .ag-chip[aria-pressed="true"] {
	background: var(--p-green);
	border-color: var(--p-green);
	color: #fff;
}

.ag-menu #ag-now[aria-pressed="true"] {
	background: var(--p-red-deep);
	border-color: var(--p-red-deep);
}

.ag-menu a:focus-visible,
.ag-menu button:focus-visible,
.ag-menu input:focus-visible,
.ag-now a:focus-visible {
	outline: 2px solid var(--p-green-deep);
	outline-offset: 3px;
}

/* ------------------------------------------------------------- sections */

.ag-sec {
	padding-block: 34px 10px;
	border-bottom: 1px solid var(--p-line);
	scroll-margin-top: 90px;
}

.ag-sec-head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 16px;
	align-items: baseline;
	margin-bottom: 18px;
}

.ag-menu .ag-sec-head h2 {
	grid-column: 1;
	margin: 0;
	font-family: var(--p-head);
	font-weight: 600;
	font-size: clamp(21px, 3.4vw, 27px);
	color: var(--p-ink);
	text-wrap: balance;
}

.ag-menu .ag-sec-win {
	grid-column: 1;
	margin: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--p-green-deep);
	display: flex;
	align-items: center;
	gap: 6px;
}

.ag-clock {
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
	border: 1.6px solid currentColor;
	border-radius: 50%;
	position: relative;
}

.ag-clock::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 2px;
	width: 1.6px;
	height: 4px;
	background: currentColor;
}

.ag-menu .ag-sec-count {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	font-size: 12px;
	color: var(--p-muted);
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------- the signature strip */

/* auto-fill, not auto-fit: a section with two photographed dishes keeps two
   normal cards rather than stretching them across the whole row. */
.ag-feats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
	gap: 14px;
	margin-bottom: 26px;
}

.ag-feat {
	min-width: 0;
	background: var(--p-paper);
	border: 1px solid var(--p-line);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ag-menu .ag-feat-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-bottom: 1px solid var(--p-line);
	background: var(--p-sunk);
}

.ag-feat-body {
	padding: 12px 14px 13px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1 1 auto;
}

.ag-menu .ag-feat-body h3 {
	margin: 0;
	font-family: var(--p-head);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.25;
	color: var(--p-ink);
}

.ag-feat-meta {
	margin: 0;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

/* ----------------------------------------------------------- price list */

.ag-menu .ag-rows {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 44px;
}

/* No price column, so the names can run narrower and one more column fits. */
.ag-menu .ag-rows--nopr {
	columns: 3;
	column-gap: 36px;
}

.ag-menu .ag-row {
	display: flex;
	align-items: baseline;
	gap: 9px;
	margin: 0;
	padding: 7px 0;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
}

.ag-menu .ag-row::marker {
	content: none;
}

.ag-num {
	flex: 0 0 auto;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--p-red);
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}

.ag-dish {
	min-width: 0;
	font-size: 14.5px;
	color: var(--p-ink);
}

.ag-lead {
	flex: 1 1 auto;
	min-width: 14px;
	align-self: center;
	height: 1px;
	background-image: linear-gradient(90deg, var(--p-line-strong) 0 5px, transparent 5px 10px);
	background-size: 10px 1px;
	background-repeat: repeat-x;
}

.ag-rs {
	flex: 0 0 auto;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--p-ink);
	font-variant-numeric: tabular-nums;
}

.ag-feat .ag-rs {
	font-size: 16px;
	color: var(--p-green-deep);
}

.ag-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--p-muted);
	font-size: 15px;
}

.ag-note {
	margin: 22px 0 0;
	font-size: 12.5px;
	color: var(--p-muted);
}

/* ------------------------------------------------------- serving now */

.ag-now {
	background: var(--p-green-dark);
	color: #fff;
	border-radius: 14px;
	padding: 28px clamp(18px, 4vw, 34px) 30px;
}

.ag-now-eyebrow {
	margin: 0;
	font-size: 11.5px;
	letter-spacing: .2em;
	text-transform: uppercase;
	opacity: .85;
}

.ag-now .ag-now-head {
	margin: 8px 0 0;
	font-family: var(--p-head);
	font-weight: 700;
	font-size: clamp(24px, 4.4vw, 36px);
	line-height: 1.15;
	color: var(--ag-yellow, #FFF200);
	text-wrap: balance;
}

.ag-now-sub {
	margin: 6px 0 0;
	font-size: 14px;
	opacity: .9;
}

.ag-now-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.ag-now-card {
	min-width: 0;
}

.ag-now .ag-now-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
}

.ag-now .ag-now-card h3 {
	margin: 9px 0 0;
	font-family: var(--p-head);
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.3;
	color: #fff;
}

.ag-now-cta {
	margin: 24px 0 0;
}

.ag-now .ag-now-cta a {
	display: inline-block;
	background: var(--ag-yellow, #FFF200);
	color: var(--p-ink);
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	padding: 11px 22px;
	border-radius: 10px;
}

.ag-now .ag-now-cta a:hover {
	background: #fff;
}

/* ---------------------------------------------------------- breakpoints */

@media (max-width: 980px) {
	.ag-menu .ag-rows--nopr { columns: 2; }
}

@media (max-width: 767px) {
	.ag-menu .ag-rows,
	.ag-menu .ag-rows--nopr { columns: 1; }
	.ag-sec { padding-block: 26px 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.ag-menu *, .ag-now * {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
