/* Restaurant intro + awards line (ManO2 Figma 242:809, ManO 242:995).
   The intro is one centred paragraph (serif 22/32, 995 wide on ManO2, 1043 on ManO), vertically
   centred in the 331px between the hero and the awards line. The awards line reuses the home awards row (.mano-awards: same markup,
   spreading and ticker), here with the page's own content and a light look: grey text between
   two thin rules instead of the dark band. */

.mano-rintro.mano-rintro {
	margin-block: 0;
	background: var(--mano-page, var(--wp--preset--color--topla-bijela));
}

.mano-rintro__text.mano-rintro__text {
	display: flex;
	box-sizing: border-box;
	min-height: 331px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 32px var(--wp--preset--spacing--gutter);
}

.mano-rintro__text p {
	max-width: 1043px;
	margin: 0;
	color: var(--wp--preset--color--tekst-primarna);
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(19px, 1.528vw, 22px); /* 22px at 1440 */
	line-height: 1.4545; /* 32px */
	letter-spacing: 0.03em;
	text-align: center;
	text-wrap: pretty;
}

.page-template-page-restoran-mano2 .mano-rintro__text p {
	max-width: 995px;
}

/* Awards line: rules at y 1355 and 1388 (0.5px #8c8578), text 96–1344. */
.mano-awards-line.mano-awards-line {
	margin: 0;
	padding: 8px var(--wp--preset--spacing--gutter) 7px; /* 33px with the rules (a 0.5px rule draws 1px on standard screens) */
	overflow: hidden;
	border-top: 0.5px solid var(--wp--preset--color--kaptol);
	border-bottom: 0.5px solid var(--wp--preset--color--kaptol);
	color: var(--wp--preset--color--kaptol);
}

.mano-awards-line .mano-awards.mano-awards {
	font-weight: 500;
	letter-spacing: 2.354px;
	line-height: 16.35px;
}

@media (max-width: 781px) {
	.mano-rintro__text.mano-rintro__text {
		min-height: 0;
		padding-block: 64px;
	}
}

/* Standard-density screens draw a 0.5px rule as a full pixel; half the colour keeps Figma's weight. */
@media (max-resolution: 1.5dppx) {
	.mano-awards-line.mano-awards-line {
		border-color: color-mix(in srgb, var(--wp--preset--color--kaptol) 50%, transparent);
	}
}

/* Intro with a heading and a timeline instead of the awards line (Kaptol Figma 1:2454, 1:2377,
   1:2455–1:2463): heading 85px under the sub-nav, the text 51px under it (825 wide, 18/28), then
   three timeline points 85px lower, 233 wide and 70 apart, each a year and a label under a thin rule. */
.mano-rintro:has(> .mano-rintro__title) {
	padding: 85px var(--wp--preset--spacing--gutter) 0;
}

.mano-rintro__title.mano-rintro__title {
	margin: 0;
	color: var(--wp--preset--color--kaptol);
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(40px, 4.861vw, 70px);
	font-stretch: condensed;
	font-weight: 500;
	line-height: 1.0286;
	text-align: center;
}

.mano-rintro:has(> .mano-rintro__title) .mano-rintro__text.mano-rintro__text {
	min-height: 0;
	padding: 51px 0 0;
}

.mano-rintro:has(> .mano-rintro__title) .mano-rintro__text p {
	max-width: 825px;
	letter-spacing: -0.01em;
}

.mano-rintro__timeline.mano-rintro__timeline {
	display: flex;
	justify-content: center;
	gap: 70px;
	margin: 85px 0 0;
}

.mano-rintro__point.mano-rintro__point {
	display: flex;
	flex: 0 1 233px;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--kaptol);
}

.mano-rintro__point > * {
	margin-block: 0;
}

.mano-rintro__year.mano-rintro__year {
	color: var(--wp--preset--color--dark-kaptol);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 22px;
	font-stretch: condensed;
	font-weight: 500;
	line-height: 26px;
}

.mano-rintro__label.mano-rintro__label {
	color: var(--wp--preset--color--kaptol);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--small);
	line-height: 14px;
}

@media (max-width: 781px) {
	.mano-rintro:has(> .mano-rintro__title) {
		padding-top: 64px;
	}

	.mano-rintro:has(> .mano-rintro__title) .mano-rintro__text.mano-rintro__text {
		padding: 32px 0 0;
	}

	.mano-rintro__timeline.mano-rintro__timeline {
		gap: 20px;
		margin-top: 48px;
	}
}

/* Phones (Figma 353:392, Frame 141): the intro (serif 14/20, 327 wide, centred) 80px under the hero,
   the awards line 50px under it (23px between its rules, Inter Medium 8px), the cards 50px lower. */
@media (max-width: 781px) {
	body:has(.mano-rhero__wordmark) .mano-rintro__text.mano-rintro__text {
		padding: 80px 37.5px 50px;
	}

	body:has(.mano-rhero__wordmark) .mano-rintro__text p {
		color: var(--wp--preset--color--dark-kaptol);
		font-size: 14px;
		line-height: 20px;
		letter-spacing: 0.02em;
	}

	body:has(.mano-rhero__wordmark) .mano-awards-line.mano-awards-line {
		padding: 7px 16px 6px; /* 23px with the rules */
	}

	body:has(.mano-rhero__wordmark) .mano-awards-line .mano-awards.mano-awards {
		letter-spacing: 1.71px;
		line-height: 8px;
	}
}
