/**
 * Menu page only — card grid, price color, location tabs, sides board.
 * @see https://develop.stackblue.com/deens-hot-chicken/menu/
 */

body.page-menu .site-section-title mark,
body.page-menu-cards .site-section-title mark {
	background: transparent !important;
	padding: 0 !important;
	color: #f32a22 !important;
}

/* Inactive location panels (class-based; saved markup stays editor-valid) */
body.page-menu .menu-panel:not(.is-active),
body.page-menu-cards .menu-panel:not(.is-active) {
	display: none !important;
}

body.page-menu .menu-panel.is-active,
body.page-menu-cards .menu-panel.is-active {
	display: block !important;
}

/* Equal 3-column hit cards */
body.page-menu .menu-board-grid,
body.page-menu-cards .menu-board-grid,
body.page-menu .wp-block-group.menu-board-grid,
body.page-menu-cards .wp-block-group.menu-board-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 24px !important;
	align-items: stretch !important;
}

body.page-menu .menu-board-card,
body.page-menu-cards .menu-board-card,
body.page-menu .wp-block-group.menu-board-card,
body.page-menu-cards .wp-block-group.menu-board-card {
	display: flex !important;
	flex-direction: column !important;
	height: 100%;
	margin: 0 !important;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--line, #e5e0d8);
}

body.page-menu .menu-board-card .img-wrap,
body.page-menu-cards .menu-board-card .img-wrap {
	aspect-ratio: 16 / 10;
	background: var(--red, #f32a22);
	line-height: 0;
}

body.page-menu .menu-board-card .img-wrap .wp-block-image,
body.page-menu-cards .menu-board-card .img-wrap .wp-block-image,
body.page-menu .menu-board-card .img-wrap img,
body.page-menu-cards .menu-board-card .img-wrap img {
	margin: 0 !important;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.page-menu .menu-board-card__body,
body.page-menu-cards .menu-board-card__body {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto;
	padding: 20px 22px 24px;
	background: #fff;
	color: var(--ink, #15110d);
}

body.page-menu .menu-board-card__body h3,
body.page-menu-cards .menu-board-card__body h3 {
	margin: 0 0 8px;
	font-size: 22px;
	text-transform: uppercase;
	color: var(--ink, #15110d) !important;
}

body.page-menu .menu-board-card__body > p,
body.page-menu-cards .menu-board-card__body > p {
	margin: 0 0 14px;
	line-height: 1.55;
	color: var(--ink, #15110d) !important;
}

body.page-menu .menu-board-card__footer,
body.page-menu-cards .menu-board-card__footer {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: center;
	margin-top: auto !important;
	padding-top: 15px;
	border-top: 1px solid rgba(0, 0, 0, 0.31);
}

/* Price must stay brand red (overrides body p { color: ink }) */
body.page-menu .menu-board-card__price,
body.page-menu-cards .menu-board-card__price,
body.page-menu .menu-board-card__body p.menu-board-card__price,
body.page-menu-cards .menu-board-card__body p.menu-board-card__price {
	margin: 0 !important;
	font-size: 24px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	color: var(--red, #f32a22) !important;
}

body.page-menu .menu-board-card__price sup,
body.page-menu-cards .menu-board-card__price sup {
	font-size: 0.55em;
	font-weight: 800;
	color: inherit !important;
}

/* —— Location tabs (live outline pills; override theme.json button fill) —— */
body.page-menu .menu-location-bar.wp-block-buttons,
body.page-menu-cards .menu-location-bar.wp-block-buttons,
body.page-menu .wp-block-buttons.menu-location-bar {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 12px !important;
	margin: 0 0 14px !important;
	width: 100%;
}

body.page-menu .menu-location-bar .wp-block-button.menu-location-btn,
body.page-menu-cards .menu-location-bar .wp-block-button.menu-location-btn {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	width: auto !important;
}

body.page-menu .menu-location-bar .wp-block-button.menu-location-btn .wp-block-button__link,
body.page-menu-cards .menu-location-bar .wp-block-button.menu-location-btn .wp-block-button__link,
body.page-menu .menu-location-bar .wp-block-button.menu-location-btn .wp-element-button,
body.page-menu .menu-location-btn.wp-block-button .wp-block-button__link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 12px 22px !important;
	border-radius: 999px !important;
	border: 1.5px solid var(--line, #e5e0d8) !important;
	background: transparent !important;
	background-color: transparent !important;
	font-weight: 700 !important;
	font-size: 12px !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	color: var(--ink, #15110d) !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.page-menu .menu-location-bar .wp-block-button.menu-location-btn.is-active .wp-block-button__link,
body.page-menu-cards .menu-location-bar .wp-block-button.menu-location-btn.is-active .wp-block-button__link,
body.page-menu .menu-location-bar .wp-block-button.menu-location-btn:hover .wp-block-button__link,
body.page-menu-cards .menu-location-bar .wp-block-button.menu-location-btn:hover .wp-block-button__link,
body.page-menu .menu-location-bar .wp-block-button.menu-location-btn.is-active .wp-element-button,
body.page-menu .menu-location-bar .wp-block-button.menu-location-btn:hover .wp-element-button {
	background: var(--red, #f32a22) !important;
	background-color: var(--red, #f32a22) !important;
	border-color: var(--red, #f32a22) !important;
	color: var(--cream, #fff6e8) !important;
}

/* —— Sides & Beverages board (match live 2-col image | title | price) —— */
body.page-menu .menu-board-sides, body.page-menu-cards .menu-board-sides {
    margin-top: 48px;
    padding: 28px;
    border-radius: 18px;
    background: #b10d0b;
    color: var(--cream, #fff6e8);
    overflow: visible;
    background: radial-gradient(circle at 50% 45%, #d6312f 0%, #df2328 38%, #c90008 72%, #ad0004 100%);
}

body.page-menu .menu-board-sides .menu-section-title,
body.page-menu-cards .menu-board-sides .menu-section-title {
	color: var(--cream, #fff6e8) !important;
}

body.page-menu .menu-board-sides .menu-list,
body.page-menu-cards .menu-board-sides .menu-list,
body.page-menu .menu-board-sides .wp-block-group.menu-list {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	align-items: stretch !important;
	gap: 0 30px !important;
	row-gap: 0 !important;
	margin: 0 !important;
	border-top: 1px solid rgba(255, 246, 232, 0.15);
	width: 100%;
}

body.page-menu .menu-board-sides .menu-list__item,
body.page-menu-cards .menu-board-sides .menu-list__item,
body.page-menu .menu-board-sides .menu-list__item.wp-block-group {
	display: grid !important;
	grid-template-columns: 72px minmax(0, 1fr) auto !important;
	align-items: center !important;
	column-gap: 12px !important;
	row-gap: 0 !important;
	width: 47% !important;
	max-width: 47% !important;
	flex: 0 0 47% !important;
	margin: 0 !important;
	padding: 15px 0 !important;
	border-bottom: 1px solid rgba(255, 246, 232, 0.15) !important;
	box-sizing: border-box !important;
	flex-wrap: nowrap !important;
	justify-content: unset !important;
	min-width: 0 !important;
}

body.page-menu .menu-board-sides .menu-fodd-image-block,
body.page-menu .menu-board-sides .menu-fodd-image-block.wp-block-group {
	margin: 0 !important;
	padding: 0 !important;
	width: 72px;
	max-width: 72px;
	line-height: 0;
}

body.page-menu .menu-board-sides .menu-fodd-image-block .wp-block-image,
body.page-menu .menu-board-sides .menu-fodd-image-block figure {
	margin: 0 !important;
	width: 100%;
}

body.page-menu .menu-board-sides .menu-fodd-image-block img {
	width: 100% !important;
	max-width: 70px !important;
	height: auto !important;
	display: block !important;
	object-fit: contain;
}

body.page-menu .menu-board-sides .menu-list__item > .wp-block-group:not(.menu-fodd-image-block) {
	margin: 0 !important;
	min-width: 0;
}

body.page-menu .menu-board-sides .menu-list__item h3,
body.page-menu-cards .menu-board-sides .menu-list__item h3 {
	margin: 0 !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
	color: var(--cream, #fff6e8) !important;
	line-height: 1.25 !important;
}

body.page-menu .menu-board-sides .menu-list__price,
body.page-menu-cards .menu-board-sides .menu-list__price,
body.page-menu .menu-board-sides p.menu-list__price {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 22px !important;
	font-weight: 800 !important;
	color: #fff !important;
	white-space: nowrap !important;
	text-align: right !important;
	justify-self: end !important;
	opacity: 1 !important;
	line-height: 1.2 !important;
}

body.page-menu .menu-board-sides .menu-list__price sup {
	font-size: 12px;
	font-weight: 700;
	color: inherit !important;
}

/* Get Directions — centered below Sides & Beverages (menu page only) */
body.page-menu .menu-sides-cta.wp-block-buttons,
body.page-menu-cards .menu-sides-cta.wp-block-buttons,
body.page-menu .wp-block-buttons.menu-sides-cta,
body.page-menu .menu-panel-cta.wp-block-buttons,
body.page-menu-cards .menu-panel-cta.wp-block-buttons,
body.page-menu .wp-block-buttons.menu-panel-cta {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
	margin: 28px 0 0 !important;
	text-align: center !important;
}

body.page-menu .menu-sides-cta .wp-block-button,
body.page-menu-cards .menu-sides-cta .wp-block-button,
body.page-menu .menu-panel-cta .wp-block-button,
body.page-menu-cards .menu-panel-cta .wp-block-button {
	margin: 0 !important;
}

/* Independent sides section (outside location tabs) */
body.page-menu .container > .menu-board-sides,
body.page-menu .wp-block-group.container > .menu-board-sides {
	margin-top: 48px;
}

/* Live side-image size tweaks (1-based among list items) */
body.page-menu .menu-board-sides .menu-list__item:nth-child(1) .menu-fodd-image-block img {
	max-width: 98px !important;
}

body.page-menu .menu-board-sides .menu-list__item:nth-child(1) .menu-fodd-image-block {
	width: 98px;
	max-width: 98px;
}

body.page-menu .menu-board-sides .menu-list__item:nth-child(1) {
	grid-template-columns: 98px minmax(0, 1fr) auto !important;
}

body.page-menu .menu-board-sides .menu-list__item:nth-child(6) .menu-fodd-image-block img {
	max-width: 74px !important;
}

body.page-menu .menu-board-sides .menu-list__item:nth-child(7) .menu-fodd-image-block img {
	max-width: 56px !important;
}

body.page-menu .menu-board-sides .menu-list__item:nth-child(8) .menu-fodd-image-block img {
	max-width: 54px !important;
	position: relative;
	left: 11px;
}

@media (max-width: 960px) {
	body.page-menu .menu-board-grid,
	body.page-menu-cards .menu-board-grid,
	body.page-menu .wp-block-group.menu-board-grid,
	body.page-menu-cards .wp-block-group.menu-board-grid {
		grid-template-columns: 1fr !important;
	}

	body.page-menu .menu-board-sides .menu-list__item,
	body.page-menu-cards .menu-board-sides .menu-list__item,
	body.page-menu .menu-board-sides .menu-list__item.wp-block-group {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		grid-template-columns: 70px minmax(0, 1fr) auto !important;
	}

	body.page-menu .menu-board-sides .menu-list__item:nth-child(1) {
		grid-template-columns: 70px minmax(0, 1fr) auto !important;
	}

	body.page-menu .menu-board-sides .menu-list__item:nth-child(1) .menu-fodd-image-block {
		width: 70px;
		max-width: 70px;
	}

	body.page-menu .menu-board-sides .menu-list__item:nth-child(1) .menu-fodd-image-block img {
		max-width: 70px !important;
	}
}
