/**
 * Food26 Review Header
 *
 * Contents
 * 1. Variables and layout (split, stacked; stacked below 992 px)
 * 2. Breadcrumb
 * 3. Badges
 * 4. Title, byline, standfirst
 * 5. Facts
 * 6. Actions (Read the Verdict, Hours & Map, round buttons)
 * 7. Photo, Critic's Pick and the score
 * 8. Phones, editor hint, reduced motion
 *
 * Colours read the Food26 Design Scheme (--inoforest-color-*, --inoforest-custom-*) with the design's values as
 * fallbacks. Rules use two classes; the Style tab's controls use three (or set the variables).
 */

/* 1. Variables and layout --------------------------------------------------------- */
.food26-review-header {
	--food26-rvh-primary: var(--inoforest-color-primary, #b23a1e);
	--food26-rvh-dark: var(--inoforest-custom-primary-dark, #8e2c15);
	--food26-rvh-accent: var(--inoforest-color-accent, #3f6b32);
	--food26-rvh-heading: var(--inoforest-color-heading, #2b1a12);
	--food26-rvh-muted: var(--inoforest-custom-muted, #6e5f55);
	--food26-rvh-line: var(--inoforest-color-border, #ece2d6);
	--food26-rvh-ratio: 4 / 3;
	--food26-rvh-radius: 26px;
	--food26-rvh-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--food26-rvh-gap, 60px);
}

.food26-review-header[data-layout="stacked"] {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--food26-rvh-gap, 40px);
}

.food26-review-header[data-layout="stacked"] .food26-review-header__content {
	max-width: 860px;
}

/* 2. Breadcrumb ----------------------------------------------------------------- */
/* inline-flex on the nav's text line, as in the design (it sits 3 px down on that line). */
.food26-review-header .food26-review-header__breadcrumb ol {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--food26-rvh-muted);
	list-style: none;
}

.food26-review-header__breadcrumb li {
	margin: 0;
}

.food26-review-header .food26-review-header__breadcrumb a {
	color: var(--food26-rvh-heading);
	text-decoration: none;
}

.food26-review-header .food26-review-header__breadcrumb a:hover,
.food26-review-header .food26-review-header__breadcrumb a:focus-visible {
	color: var(--food26-rvh-primary);
}

.food26-review-header .food26-review-header__sep {
	margin-inline-end: 8px;
	font-weight: 400;
	color: var(--food26-rvh-primary);
}

.food26-review-header__sep svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
	vertical-align: -0.125em;
}

[dir="rtl"] .food26-review-header__sep i,
[dir="rtl"] .food26-review-header__sep svg {
	scale: -1 1;
}

/* 3. Badges ---------------------------------------------------------------------- */
.food26-review-header__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.food26-review-header .food26-review-header__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #fff;
	text-decoration: none;
	background-color: var(--food26-rvh-accent);
	border-radius: 999px;
	transition: color 0.3s var(--food26-rvh-ease), background-color 0.3s var(--food26-rvh-ease);
}

.food26-review-header__badge svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.food26-review-header .food26-review-header__badge--primary {
	background-color: var(--food26-rvh-primary);
}

.food26-review-header .food26-review-header__badge--light {
	color: var(--food26-rvh-heading);
	background-color: #fff;
}

/* 4. Title, byline, standfirst ------------------------------------------------------ */
.food26-review-header .food26-review-header__title {
	margin: 0 0 16px;
	font-size: clamp(2.6rem, 5vw, 4rem);
	color: var(--food26-rvh-heading);
}

.food26-review-header .food26-review-header__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin-bottom: 20px;
	font-size: 0.9rem;
	color: var(--food26-rvh-muted);
}

.food26-review-header .food26-review-header__author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--food26-rvh-heading);
	text-decoration: none;
}

.food26-review-header .food26-review-header__author:hover,
.food26-review-header .food26-review-header__author:focus-visible {
	color: var(--food26-rvh-primary);
}

.food26-review-header .food26-review-header__avatar {
	width: 42px;
	height: 42px;
	max-width: none;
	object-fit: cover;
	border-radius: 50%;
}

.food26-review-header .food26-review-header__standfirst {
	margin: 0;
	font-family: var(--inoforest-font-heading-family, inherit);
	font-size: 1.3rem;
	font-style: italic;
	line-height: 1.5;
	color: var(--food26-rvh-heading);
}

/* 5. Facts ------------------------------------------------------------------------- */
.food26-review-header .food26-review-header__facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 26px 0 28px;
	padding: 0;
	list-style: none;
	background-color: #fff;
	border: 1px solid var(--food26-rvh-line);
	border-radius: 16px;
}

.food26-review-header .food26-review-header__fact {
	display: grid;
	justify-items: center;
	gap: 2px;
	margin: 0;
	padding: 16px 8px;
	text-align: center;
}

.food26-review-header .food26-review-header__fact + .food26-review-header__fact {
	border-inline-start: 1px solid var(--food26-rvh-line);
}

.food26-review-header .food26-review-header__fact-icon {
	display: grid;
	font-size: 1.35rem;
	color: var(--food26-rvh-primary);
}

.food26-review-header__fact-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.food26-review-header .food26-review-header__fact-label {
	font-size: 0.8rem;
	color: var(--food26-rvh-muted);
}

.food26-review-header .food26-review-header__fact-value {
	font-size: 1rem;
	line-height: 1.3;
	color: var(--food26-rvh-heading);
	overflow-wrap: anywhere;
}

/* 6. Actions -------------------------------------------------------------------------- */
.food26-review-header__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.food26-review-header .food26-review-header__verdict {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 14px 30px;
	font-size: 0.975rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background-color: var(--food26-rvh-primary);
	border: 2px solid var(--food26-rvh-primary);
	border-radius: 999px;
	transition: color 0.3s var(--food26-rvh-ease), background-color 0.3s var(--food26-rvh-ease), border-color 0.3s var(--food26-rvh-ease);
}

.food26-review-header .food26-review-header__verdict:hover,
.food26-review-header .food26-review-header__verdict:focus-visible {
	color: #fff;
	background-color: var(--food26-rvh-dark);
	border-color: var(--food26-rvh-dark);
}

.food26-review-header .food26-review-header__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 14px 30px;
	font-size: 0.975rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--food26-rvh-heading);
	background-color: transparent;
	border: 2px solid var(--food26-rvh-line);
	border-radius: 999px;
	transition: color 0.3s var(--food26-rvh-ease), background-color 0.3s var(--food26-rvh-ease), border-color 0.3s var(--food26-rvh-ease);
}

.food26-review-header .food26-review-header__info:hover,
.food26-review-header .food26-review-header__info:focus-visible {
	color: #fff;
	background-color: var(--food26-rvh-dark);
	border-color: var(--food26-rvh-dark);
}

.food26-review-header .food26-review-header__icon-btn {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 54px;
	height: 54px;
	padding: 0;
	font-size: 21px;
	font-weight: 400;
	line-height: 1;
	color: var(--food26-rvh-heading);
	text-decoration: none;
	background-color: #fff;
	border: 2px solid var(--food26-rvh-line);
	border-radius: 50%;
	cursor: pointer;
	transition: color 0.3s var(--food26-rvh-ease), background-color 0.3s var(--food26-rvh-ease), border-color 0.3s var(--food26-rvh-ease);
}

.food26-review-header .food26-review-header__icon-btn:hover,
.food26-review-header .food26-review-header__icon-btn:focus-visible {
	color: #fff;
	background-color: var(--food26-rvh-primary);
	border-color: var(--food26-rvh-primary);
}

.food26-review-header__verdict svg,
.food26-review-header__info svg,
.food26-review-header__icon-btn svg,
.food26-review-header__pick svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* 7. Photo, Critic's Pick, score ------------------------------------------------------------ */
.food26-review-header__media {
	position: relative;
}

.food26-review-header .food26-review-header__frame {
	aspect-ratio: var(--food26-rvh-ratio);
	overflow: hidden;
	background-color: var(--inoforest-custom-warm, #f3e9dc);
	border-radius: var(--food26-rvh-radius);
}

.food26-review-header .food26-review-header__frame img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.food26-review-header .food26-review-header__pick {
	position: absolute;
	inset-block-start: 20px;
	inset-inline-start: 20px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #fff;
	background-color: var(--food26-rvh-accent);
	border-radius: 999px;
}

.food26-review-header .food26-review-header__score {
	position: absolute;
	inset-block-end: -34px;
	inset-inline-end: 30px;
	display: grid;
	place-content: center;
	justify-items: center;
	box-sizing: border-box;
	width: 128px;
	height: 128px;
	line-height: 1;
	color: #fff;
	background-color: var(--food26-rvh-primary);
	border: 6px solid var(--inoforest-color-surface, #faf4ec);
	border-radius: 50%;
	box-shadow: 0 18px 44px rgba(43, 26, 18, 0.12);
}

.food26-review-header .food26-review-header__score strong {
	font-family: var(--inoforest-font-heading-family, inherit);
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
}

.food26-review-header .food26-review-header__score span {
	margin-top: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* 8. Phones, editor hint, reduced motion ----------------------------------------------------- */
@media (max-width: 991px) {
	.food26-review-header {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--food26-rvh-gap, 40px);
	}
}

@media (max-width: 767px) {
	.food26-review-header .food26-review-header__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.food26-review-header .food26-review-header__fact:nth-child(3) {
		border-inline-start: 0;
	}

	.food26-review-header .food26-review-header__fact:nth-child(n + 3) {
		border-block-start: 1px solid var(--food26-rvh-line);
	}

	.food26-review-header .food26-review-header__score {
		inset-inline-end: 16px;
		width: 100px;
		height: 100px;
	}

	.food26-review-header .food26-review-header__score strong {
		font-size: 2rem;
	}
}

.food26-review-header__hint {
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.food26-review-header .food26-review-header__badge,
	.food26-review-header .food26-review-header__verdict,
	.food26-review-header .food26-review-header__info,
	.food26-review-header .food26-review-header__icon-btn {
		transition: none;
	}
}
