/* Restaurant page enrichments. Happy Menu white/black/#00af74 system, square controls. */

.happymenu-discovery__header {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.happymenu-discovery__heading {
	margin: 0;
}

.happymenu-discovery-rail .happymenu-discovery__heading,
.happymenu-discovery-prices .happymenu-discovery__heading,
.happymenu-discovery-changes .happymenu-discovery__heading {
	font-size: 2.6rem;
}

.happymenu-discovery-loved .happymenu-discovery__heading {
	font-size: 2.2rem;
}

.happymenu-discovery__note {
	color: #6b7280;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.3rem;
	margin: 0;
}

.happymenu-discovery__sep {
	color: rgba(0, 0, 0, 0.35);
	margin: 0 0.5rem;
}

.happymenu-discovery__price {
	color: rgba(0, 0, 0, 0.22);
	font-weight: 700;
	letter-spacing: 0.04em;
}

.happymenu-discovery__price strong {
	color: #000;
}

/* At a glance */

.happymenu-discovery-glance {
	border: 1px solid #000;
	border-top: 0.4rem solid #00af74;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0 0 2.5rem;
	padding: 1.25rem 1.5rem;
}

.happymenu-discovery-glance__list {
	display: grid;
	gap: 0.85rem;
	margin: 0;
}

.happymenu-discovery-glance__row {
	align-items: baseline;
	display: grid;
	gap: 0.25rem 1.5rem;
	grid-template-columns: 9rem minmax(0, 1fr);
}

.happymenu-discovery-glance dt {
	color: #6b7280;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin: 0;
	text-transform: uppercase;
}

.happymenu-discovery-glance dd {
	color: #000;
	font-size: 1.5rem;
	line-height: 1.45;
	margin: 0;
}

.happymenu-discovery__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.happymenu-discovery__chip {
	border: 1px solid #000;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.35rem 0.7rem;
}

/* Linked chips: cuisine chips in the panel and on city hubs. */

.happymenu-discovery__chip--link,
.happymenu-discovery__chip--link:visited {
	color: #000 !important;
	text-decoration: none !important;
}

.happymenu-discovery__chip--link:hover,
.happymenu-discovery__chip--link:focus {
	background: #000;
	border-color: #000;
	color: #fff !important;
}

.happymenu-discovery__chip-count {
	color: #6b7280;
	font-weight: 600;
	margin-left: 0.3rem;
}

.happymenu-discovery__chip--link:hover .happymenu-discovery__chip-count,
.happymenu-discovery__chip--link:focus .happymenu-discovery__chip-count {
	color: rgba(255, 255, 255, 0.75);
}

.happymenu-discovery__area-link,
.happymenu-discovery__area-link:visited {
	color: #000 !important;
	font-weight: 700;
	text-decoration: underline !important;
	text-decoration-color: #00af74 !important;
	text-underline-offset: 0.25em;
}

.happymenu-discovery__area-link:hover {
	color: #00af74 !important;
}

/* Map, directly under the address paragraph */

.happymenu-discovery-map {
	margin: -0.5rem 0 1.25rem;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-map iframe {
	border: 0;
	display: block;
	height: 32rem;
	margin: 0;
	max-width: none;
	width: 100%;
}

.happymenu-discovery-map--click {
	align-items: center;
	background: #f1f3f2;
	border: 1px solid rgba(0, 0, 0, 0.12);
	display: flex;
	height: 32rem;
	justify-content: center;
}

.happymenu-discovery-map__open {
	background: #fff;
	border: 2px solid #000;
	border-radius: 0;
	color: #000;
	cursor: pointer;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	min-height: 4rem;
	padding: 0.6rem 1.4rem;
}

.happymenu-discovery-map__open:hover,
.happymenu-discovery-map__open:focus {
	background: #000;
	color: #fff;
}

/* Directions, under the map or the address paragraph */

.happymenu-discovery-directions {
	margin: -0.5rem 0 2rem;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-directions a,
:is(.entry-content, .happymenu-hub) .happymenu-discovery-directions a:visited {
	align-items: center;
	background: #000 !important;
	border: 2px solid #000;
	box-shadow: none !important;
	color: #fff !important;
	display: inline-flex;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	min-height: 4rem;
	padding: 0.6rem 1.2rem;
	text-decoration: none !important;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-directions a:hover,
:is(.entry-content, .happymenu-hub) .happymenu-discovery-directions a:focus {
	background: #fff !important;
	color: #000 !important;
}

/* Most loved here */

.happymenu-discovery-loved {
	margin: 2rem 0 2.5rem;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-loved__list {
	border-top: 2px solid #000;
	counter-reset: happymenu-loved;
	list-style: none;
	margin: 0;
	padding: 0;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-loved__item {
	align-items: baseline;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	counter-increment: happymenu-loved;
	display: grid;
	gap: 1rem;
	grid-template-columns: 2.5rem minmax(0, 1fr) auto;
	list-style: none;
	margin: 0;
	padding: 0.9rem 0;
}

.happymenu-discovery-loved__item::before {
	color: #00af74;
	content: counter(happymenu-loved);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.6rem;
	font-weight: 800;
}

.happymenu-discovery-loved__dish {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.happymenu-discovery-loved__category {
	color: #6b7280;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.happymenu-discovery-loved__name {
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.3;
}

.happymenu-discovery-loved__price {
	font-weight: 700;
	white-space: nowrap;
}

/* Nearby rails */

.happymenu-discovery-rail {
	margin: 3rem 0;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-rail__list {
	display: grid;
	gap: 1.75rem 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-card {
	list-style: none;
	margin: 0;
	min-width: 0;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-card__link,
:is(.entry-content, .happymenu-hub) .happymenu-discovery-card__link:visited {
	border: 0 !important;
	box-shadow: none !important;
	color: #000 !important;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	text-decoration: none !important;
}

.happymenu-discovery-card__link:focus-visible {
	outline: 2px solid #00af74;
	outline-offset: 3px;
}

.happymenu-discovery-card__media {
	aspect-ratio: 4 / 3;
	background: #f1f3f2;
	display: block;
	margin-bottom: 0.45rem;
	overflow: hidden;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-card__media img {
	display: block;
	height: 100%;
	margin: 0;
	max-width: none;
	object-fit: cover;
	transition: transform 0.3s ease;
	width: 100%;
}

.happymenu-discovery-card__link:hover .happymenu-discovery-card__media img {
	transform: scale(1.04);
}

.happymenu-discovery-card__media--empty {
	border: 1px solid rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 0.85rem 1rem;
}

.happymenu-discovery-card__tag {
	color: #00af74;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.happymenu-discovery-card__initial {
	color: #000;
	font-size: 4.8rem;
	font-weight: 700;
	line-height: 1;
	transition: color 0.2s ease;
}

.happymenu-discovery-card__link:hover .happymenu-discovery-card__initial {
	color: #00af74;
}

.happymenu-discovery__nowrap {
	white-space: nowrap;
}

.happymenu-discovery-card__name {
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.25;
}

.happymenu-discovery-card__link:hover .happymenu-discovery-card__name {
	color: #00af74;
}

.happymenu-discovery-card__meta {
	color: #6b7280;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.25rem;
	line-height: 1.4;
}

/* Price comparisons and price changes (restaurant pages, dish pages, hubs) */

.happymenu-discovery-prices,
.happymenu-discovery-changes {
	margin: 3rem 0;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-prices__list,
:is(.entry-content, .happymenu-hub) .happymenu-dish__changes {
	border-top: 2px solid #000;
	list-style: none;
	margin: 0;
	padding: 0;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-prices__item,
:is(.entry-content, .happymenu-hub) .happymenu-dish__change {
	align-items: baseline;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	list-style: none;
	margin: 0;
	padding: 0.85rem 0;
}

.happymenu-discovery-prices__dish,
.happymenu-dish__change-item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

:is(.entry-content, .happymenu-hub) .happymenu-discovery-prices__dish a,
:is(.entry-content, .happymenu-hub) .happymenu-discovery-prices__dish a:visited,
:is(.entry-content, .happymenu-hub) a.happymenu-dish__change-name,
:is(.entry-content, .happymenu-hub) a.happymenu-dish__change-name:visited {
	box-shadow: none !important;
	color: #000 !important;
	font-size: 1.7rem;
	font-weight: 700;
	text-decoration: underline !important;
	text-decoration-color: #00af74 !important;
	text-underline-offset: 0.25em;
}

.happymenu-dish__change-name {
	font-size: 1.6rem;
	font-weight: 700;
}

.happymenu-discovery-prices__typical {
	color: #6b7280;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.3rem;
}

.happymenu-discovery-prices__here,
.happymenu-dish__change-price {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 700;
	white-space: nowrap;
}

.happymenu-dish__change-price s {
	color: #6b7280;
	font-weight: 400;
	margin-right: 0.35rem;
}

.happymenu-dish__change-dir {
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin-left: 0.4rem;
	text-transform: uppercase;
}

.happymenu-dish__change-dir--up {
	color: #b42318;
}

.happymenu-dish__change-dir--down {
	color: #00af74;
}

@media (max-width: 600px) {
	.happymenu-discovery-glance {
		padding: 1rem 1.15rem;
	}

	.happymenu-discovery-glance__row {
		grid-template-columns: minmax(0, 1fr);
	}

	:is(.entry-content, .happymenu-hub) .happymenu-discovery-map iframe,
	.happymenu-discovery-map--click {
		height: 24rem;
	}

	.happymenu-discovery-rail .happymenu-discovery__heading,
	.happymenu-discovery-prices .happymenu-discovery__heading,
	.happymenu-discovery-changes .happymenu-discovery__heading {
		font-size: 2.2rem;
	}

	/* Rails become horizontal swipe rows on phones. */
	.entry-content .happymenu-discovery-rail__list {
		grid-auto-columns: 62%;
		grid-auto-flow: column;
		grid-template-columns: none;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding-bottom: 0.5rem;
		scroll-snap-type: x mandatory;
	}

	.entry-content .happymenu-discovery-card {
		scroll-snap-align: start;
	}
}
