/*
 * Manjit's dish spotlight (manjits/dish-spotlight): one dish on espresso, its photo in an arch shaped like the
 * tandoor's mouth, a tag hanging on a string, ingredient chips with dots in the dish's own colours, price and
 * order button. The colours sampled from the Garlic Chilli Nan photos line up with the site's own (butter →
 * brass, chilli → accent, char → espresso), so only the dots use new ones.
 */
.q-spot {
	--q-spot-butter: #E8C34B;
	--q-spot-dough: #F4E8BD;
	--q-spot-herb: #4E6B1A;
	--q-spot-green: #3E8E2E;
	--q-spot-chilli: #C0391B;
	--q-spot-char: #4E3605;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--on-dark);
	margin-block: 0;
	padding-block: var(--wp--preset--spacing--70, 5rem);
	padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}
/* Tandoor glow behind the bread: very soft, no image. */
.q-spot::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: min(70vw, 760px);
	aspect-ratio: 1;
	left: -12%;
	top: 50%;
	translate: 0 -50%;
	background: radial-gradient(closest-side, rgb(242 140 15 / 26%), rgb(198 40 40 / 10%) 55%, transparent 75%);
	pointer-events: none;
}
.q-spot__inner {
	max-width: 1180px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.q-spot__media { display: grid; gap: 16px; justify-items: center; }
.q-spot__arch { position: relative; width: min(100%, 420px); padding-top: 10px; }
.q-spot__frame {
	aspect-ratio: 4 / 5;
	border-radius: 999px 999px 18px 18px;
	overflow: hidden;
	border: 3px solid rgb(244 180 26 / 55%);
	box-shadow: 0 0 0 10px rgb(244 180 26 / 8%), 0 30px 60px -18px rgb(0 0 0 / 60%);
	background: #2a0a0e;
}
.q-spot__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.q-spot__img.is-swapping { opacity: 0; }

/* The hanging tag (the owner's badge style): a pin, a string and a card that swings once, then settles. */
.q-spot__tag {
	position: absolute;
	top: 0;
	right: 8%;
	display: grid;
	justify-items: center;
	transform-origin: 50% 0;
	pointer-events: none;
}
.q-spot__tag::before { content: ""; width: 2px; height: 46px; background: linear-gradient(var(--wp--preset--color--brass-light), var(--wp--preset--color--brass)); }
.q-spot__tag::after {
	content: "";
	position: absolute;
	top: -5px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--brass);
	box-shadow: 0 0 0 3px rgb(244 180 26 / 25%);
}
.q-spot__tag span {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--espresso);
	border-radius: 10px;
	border-top: 4px solid var(--wp--preset--color--accent);
	padding: 10px 14px 9px;
	text-align: center;
	box-shadow: 0 12px 24px -8px rgb(0 0 0 / 55%);
	font: 700 11px/1.25 var(--wp--preset--font-family--body);
	letter-spacing: .12em;
	text-transform: uppercase;
}
.q-spot__tag em {
	display: block;
	margin-top: 2px;
	font: italic 600 18px/1.1 var(--wp--preset--font-family--display);
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--accent);
}
.q-spot.is-swinging .q-spot__tag { animation: q-spot-sway 3.6s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes q-spot-sway {
	0% { transform: rotate(14deg); }
	22% { transform: rotate(-9deg); }
	42% { transform: rotate(5deg); }
	60% { transform: rotate(-2.5deg); }
	78% { transform: rotate(1deg); }
	100% { transform: rotate(0); }
}

.q-spot__angles { display: flex; gap: 10px; }
.q-spot__angle {
	width: 64px;
	height: 64px;
	padding: 0;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid transparent;
	background: none;
	cursor: pointer;
	opacity: .72;
	transition: opacity .2s, border-color .2s;
}
.q-spot__angle img { display: block; width: 100%; height: 100%; object-fit: cover; }
.q-spot__angle[aria-pressed="true"] { border-color: var(--wp--preset--color--brass); opacity: 1; }
.q-spot__angle:hover { opacity: 1; }
.q-spot__angle:focus-visible { outline: 3px solid var(--wp--preset--color--brass-light); outline-offset: 2px; }

.q-spot__copy { display: grid; gap: 18px; min-width: 0; }
.q-spot__eyebrow { color: var(--wp--preset--color--brass); }
.q-spot__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.1rem, 4.6vw, 3.5rem);
	font-weight: 600;
	line-height: 1.05;
	text-wrap: balance;
	color: var(--wp--preset--color--on-dark);
}
.q-spot__title em { display: block; font-style: italic; font-weight: 400; color: var(--wp--preset--color--brass); }
.q-spot__text { margin: 0; max-width: 46ch; font-size: 1.0625rem; color: var(--wp--preset--color--on-dark-muted); }
.q-spot__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.q-spot__chips li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px 5px 8px;
	border: 1px solid rgb(235 205 180 / 28%);
	border-radius: 999px;
	font-size: .875rem;
}
.q-spot__chips li::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--q-dot, var(--wp--preset--color--brass));
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 25%);
}
.q-spot__chips [data-dot="dough"] { --q-dot: var(--q-spot-dough); }
.q-spot__chips [data-dot="butter"] { --q-dot: var(--q-spot-butter); }
.q-spot__chips [data-dot="herb"] { --q-dot: var(--q-spot-herb); }
.q-spot__chips [data-dot="green-chilli"] { --q-dot: var(--q-spot-green); }
.q-spot__chips [data-dot="chilli"] { --q-dot: var(--q-spot-chilli); }
.q-spot__chips [data-dot="char"] { --q-dot: var(--q-spot-char); }
.q-spot__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.q-spot__buy .wp-block-buttons { margin: 0; }
.q-spot__price {
	font: 600 1.9rem/1 var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--brass-light);
	font-variant-numeric: tabular-nums;
}
.q-spot__price.is-out { font-size: 1.2rem; color: var(--wp--preset--color--on-dark-muted); }

@media (max-width: 820px) {
	.q-spot__inner { grid-template-columns: minmax(0, 1fr); }
	.q-spot__arch { width: min(100%, 340px); }
}
@media (prefers-reduced-motion: reduce) {
	.q-spot.is-swinging .q-spot__tag { animation: none; }
	.q-spot__img { transition: none; }
}
