/* Kontakt page (Figma 285:1176, update 28/10).
   Fold 1: two halves, 720 × 1024 at 1440: ManO2 dark (section style ManO2), ManO sage (ManO kadulja).
   Wordmark at 234 / 230 from the top (316 / 274 wide), then three rows 528 wide from 96 into the half:
   label (Inter SemiBold 12, 2.5 tracking, caps) at 524, the value (Inter Medium 14/20) 35 under it,
   a rule under each row; opening hours as a table (day, time), "Kuhinja radi do 23:00" right-aligned.
   Fold 2 ("Pišite nam", .mano-write): title 70/80 at 96, the form from x 730 (614 wide); see mano-forms.css.
   Fold 3: the photo 1440 × 727 (.mano-photo-band--tall, mano-restoran-band.css). */

.mano-contact.mano-contact {
	margin-block: 0;
}

.mano-contact__halves.mano-contact__halves {
	gap: 0;
	margin: 0;
}

.mano-contact__half.mano-contact__half {
	--mano-contact-label: var(--wp--preset--color--kaptol);
	--mano-contact-rule: var(--wp--preset--color--kaptol);
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	height: 100%;
	min-height: 1024px;
	margin: 0;
	padding: 234px var(--wp--preset--spacing--gutter) 120px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.mano-contact__half--mano2.mano-contact__half--mano2 {
	color: var(--wp--preset--color--topla-bijela);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.mano-contact__half--mano.mano-contact__half--mano {
	--mano-contact-label: var(--wp--preset--color--mano-kadulja-tamna);
	--mano-contact-rule: var(--wp--preset--color--mano-kadulja-tamna);
	padding-top: 230px;
	color: var(--wp--preset--color--dark-kaptol);
}

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

.mano-contact__wordmark.mano-contact__wordmark {
	height: 290px; /* wordmark top to the first label (524 − 234) */
	margin: 0;
}

.mano-contact__half--mano .mano-contact__wordmark.mano-contact__wordmark {
	height: 294px;
}

.mano-contact__wordmark img {
	display: block;
	width: 316px;
	max-width: 100%;
	height: auto;
}

.mano-contact__half--mano .mano-contact__wordmark img {
	width: 274px;
}

.mano-contact__rows.mano-contact__rows {
	max-width: 528px;
}

.mano-contact__row.mano-contact__row {
	position: relative;
	box-sizing: border-box;
	min-height: 96px; /* Figma rules at 620, 737, 848 */
	margin: 0;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--mano-contact-rule);
}

.mano-contact__row + .mano-contact__row {
	min-height: 117px;
	padding-top: 21px;
}

.mano-contact__row + .mano-contact__row + .mano-contact__row {
	min-height: 111px;
	padding-top: 15px;
}

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

.mano-contact__row a {
	color: inherit;
	text-decoration: none;
}

.mano-contact__row a:hover,
.mano-contact__row a:focus-visible {
	text-decoration: underline;
}

.mano-contact__label.mano-contact__label {
	margin-bottom: 20px;
	color: var(--mano-contact-label);
	font-size: 12px;
	font-weight: 600;
	line-height: 15px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
}

/* Opening hours: day and time in two columns (Figma 297 wide, time 57 in). */
.mano-contact__hours.mano-contact__hours {
	margin: 0;
}

.mano-contact__hours table {
	width: auto;
	border: 0;
	border-collapse: collapse;
}

.mano-contact__hours td {
	padding: 0 22px 0 0;
	border: 0;
	font-size: 14px;
	line-height: 20px;
	vertical-align: top;
}

.mano-contact__hours td:first-child {
	min-width: 35px;
}

.mano-contact__aside.mano-contact__aside {
	position: absolute;
	top: 56px; /* level with the first line of the hours */
	right: 0;
	color: var(--mano-contact-label);
	text-align: right;
}

/* "Pišite nam" (Figma 295:3372): the band 887 tall, title at 91, the form column from 730. */
.mano-write.mano-write {
	margin-block: 0;
	padding: 91px var(--wp--preset--spacing--gutter) 191px;
	background: var(--wp--preset--color--topla-bijela);
	color: var(--wp--preset--color--dark-kaptol);
}

.mano-write__columns.mano-write__columns {
	gap: 20px;
	max-width: 1248px;
	margin: 0 auto;
}

.mano-write__columns > .wp-block-column:last-child {
	flex: 0 1 614px !important;
	padding-top: 40px; /* "Restoran" at 1155, title top 1115 */
}

.mano-write__title.mano-write__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(44px, 4.861vw, 70px);
	font-weight: 400;
	line-height: 1.1429; /* 80 */
	letter-spacing: 0.02em;
}

@media (max-width: 1023px) {
	.mano-contact__half.mano-contact__half {
		min-height: 0;
		padding-top: 160px;
		padding-bottom: 80px;
	}

	.mano-contact__half--mano.mano-contact__half--mano {
		padding-top: 96px;
	}

	.mano-contact__wordmark.mano-contact__wordmark,
	.mano-contact__half--mano .mano-contact__wordmark.mano-contact__wordmark {
		height: auto;
		margin-bottom: 64px;
	}

	.mano-write.mano-write {
		padding-block: 72px 96px;
	}

	.mano-write__columns > .wp-block-column:last-child {
		padding-top: 0;
	}
}

/* Phones (Figma 386:2145, update 03/11, 402 wide): the halves stacked, 437 tall each. ManO2: wordmark
   173 wide at y 123 (level with the menu button), ManO: 156 wide 37 into its half; the first label
   218 into each half. Rows: label (Inter SemiBold 10, 2.5 tracking) and value (Inter Medium 10/14)
   10 apart, a 1px rule 10 under the value (15 under the phone), the next label 10 under the rule;
   "Kuhinja radi do 23:00" right-aligned, level with the hours. */
@media (max-width: 781px) {
	.mano-contact__half.mano-contact__half,
	.mano-contact__half--mano.mano-contact__half--mano {
		min-height: 437px;
		padding: 123px 16px 23px;
		font-size: 10px;
		line-height: 14px;
	}

	.mano-contact__half--mano.mano-contact__half--mano {
		padding-top: 37px;
	}

	.mano-contact__wordmark.mano-contact__wordmark,
	.mano-contact__half--mano .mano-contact__wordmark.mano-contact__wordmark {
		height: 95px; /* wordmark top to the first label */
		margin: 0;
	}

	.mano-contact__half--mano .mano-contact__wordmark.mano-contact__wordmark {
		height: 181px;
	}

	.mano-contact__wordmark img {
		width: 173px;
	}

	.mano-contact__half--mano .mano-contact__wordmark img {
		width: 156px;
	}

	.mano-contact__rows.mano-contact__rows {
		max-width: none;
	}

	.mano-contact__row.mano-contact__row,
	.mano-contact__row + .mano-contact__row,
	.mano-contact__row + .mano-contact__row + .mano-contact__row {
		min-height: 0;
		padding: 9px 0 10px; /* 10 from the rule above, its 1px included */
	}

	.mano-contact__row.mano-contact__row:first-child {
		padding-top: 0;
	}

	.mano-contact__row + .mano-contact__row + .mano-contact__row {
		padding-bottom: 15px;
	}

	.mano-contact__label.mano-contact__label {
		margin-bottom: 10px;
		font-size: 10px;
		line-height: 14px;
	}

	.mano-contact__row:first-child .mano-contact__label.mano-contact__label {
		line-height: 12px;
	}

	.mano-contact__hours td {
		font-size: 10px;
		line-height: 14px;
	}

	/* The times 15 after the longest day name (x 77 in the frame). */
	.mano-contact__hours td:first-child {
		padding-right: 15px;
	}

	/* The ManO half: #ded8cd in the frame (Rectangle 27), sage on desktop. */
	.mano-contact__half--mano.mano-contact__half--mano.mano-contact__half--mano {
		background-color: var(--wp--preset--color--mano-dva-bez);
	}

	.mano-contact__aside.mano-contact__aside {
		position: absolute;
		top: 34px; /* level with the first line of the hours */
		margin: 0;
		text-align: right;
	}

	.mano-contact__half--mano .mano-contact__aside.mano-contact__aside {
		color: inherit;
	}

	/* "Pišite nam" (Frame 103): 50 above, 80 below; the title (serif 30/35) 50 above the form. */
	.mano-write.mano-write {
		padding: 50px 16px 80px;
		background: var(--wp--preset--color--bijela); /* Frame 103 is #ffffff */
	}

	.mano-write__columns.mano-write__columns {
		flex-direction: column;
		gap: 50px;
	}

	.mano-write__columns > .wp-block-column,
	.mano-write__columns > .wp-block-column:last-child {
		flex-basis: auto !important;
		padding-top: 0;
	}

	.mano-write__title.mano-write__title {
		font-size: 30px;
		line-height: 35px;
		letter-spacing: 0;
	}

	/* The photo under the form: 402 × 267. */
	.mano-write + .mano-photo-band--tall img,
	.mano-write + .mano-photo-band.mano-photo-band--tall img {
		height: auto; /* over the footer's phone photo height (mano-footer.css) */
		aspect-ratio: 402 / 267;
	}
}
