/* ==========================================================================
   VARIANT 6 "MARINA" — marina navy, terracotta and ochre façades, fairway
   green and warm sand; Source Serif 4 and Figtree; full-screen hero (the shared
   layout: the text over the photo, with a gradient dark only behind the text). Loaded after the shared stylesheets,
   so it only overrides. Colours come from tokens.css.
   ========================================================================== */

/* ---- Header: warm sand ---------------------------------------------------- */
.da-header {
	background: rgba(248, 243, 234, 0.97);
}

@supports (backdrop-filter: blur(8px)) {
	.da-header {
		background: rgba(248, 243, 234, 0.9);
	}
}

/* ---- Headings: Source Serif 4, semibold, at a text optical size -------------
   Every heading (hero H1, section headings, page titles) in semibold, with the
   optical size held at 24: the sturdy strokes and commas of the text cut, not the
   thin display cut the shared rules would select at large sizes. */
h1,
h2,
h3,
.da-hero__title,
.da-heading__title,
.da-page-head__title {
	font-weight: 600;
	letter-spacing: -0.01em;
	font-variation-settings: "opsz" 24;
}

/* ---- Full-screen hero ------------------------------------------------------
   The shared layout (text over the photo), with the photo kept as light as the
   text allows: instead of the flat overlay over the whole photo, a gradient that
   is dark only behind the text (left on wide screens, bottom on phones). The
   headline is a full sentence, one size below the display size, semibold. Wide screens: the
   text block stays in the left third; the island of apartments fills the middle
   of the photo, so its left end sits behind the text and its main part to the
   right. Phones: a portrait photo of its own (picture/source by width, the slot's
   phone image), composed so the text sits low over the water. */
.da-hero__title {
	max-width: 19ch;
	font-size: clamp(1.75rem, 1.15rem + 1.9vw, 3rem); /* between --da-fs-xl and --da-fs-2xl: the headline in the left third */
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.da-hero__media::after {
	background: linear-gradient(to top, rgba(10, 33, 54, 0.76) 0%, rgba(10, 33, 54, 0.7) 64%, rgba(10, 33, 54, 0.3) 76%, rgba(10, 33, 54, 0.05) 88%);
}

@media (max-width: 599.98px) {

	/* A smaller headline and sub-copy keep the text block low, under the apartments. */
	.da-hero__title {
		font-size: 1.5rem;
	}

	.da-hero__text {
		margin-top: var(--da-space-4);
		font-size: var(--da-fs-sm);
		line-height: 1.45;
	}

	.da-hero__media .da-media__img {
		object-position: 50% 50% !important; /* the phone photo (its own portrait crop), over the wide screens' focus */
	}

	/* The two buttons side by side when both labels fit on one line with the
	   standard padding (at 390 px they do); on narrower screens each takes a
	   full row, as stacked. */
	.da-hero .da-actions {
		display: flex;
	}

	.da-hero .da-actions .da-btn {
		flex: 1 1 auto;
		white-space: nowrap;
	}
}

@media (min-width: 600px) {
	.da-hero__media::after {
		background: linear-gradient(90deg, rgba(10, 33, 54, 0.74) 0%, rgba(10, 33, 54, 0.6) 30%, rgba(10, 33, 54, 0.2) 45%, rgba(10, 33, 54, 0.04) 58%);
	}

	.da-hero__content {
		/* the left third of the screen, measured from the text's own left edge */
		max-width: max(22rem, calc(100vw / 3 - max(var(--da-gutter), (100vw - var(--da-container)) / 2)));
	}

	.da-hero__title {
		max-width: none;
	}
}

/* ---- Homepage sections that would leave an empty half (as on variant 2) 
   Two sections have no photo slot ("The practical side of a new life", and
   "New developments" while no project is published): their text uses the
   full width. Two have a photo slot ("What could your life … look like?",
   "A budget in context"): while the slot has no photo, the text takes its
   place; once a photo is set, the shared two-column layout applies again by
   itself (the rules below only match a figure without an image). */

/* "The practical side of a new life": heading and introduction across the
   top, the guides in two columns below. */
@media (min-width: 960px) {
	.da-teasers .da-teasers__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--da-space-7);
	}

	.da-teasers .da-teasers__head {
		position: static;
		display: grid;
		grid-template-columns: 7fr 5fr;
		gap: var(--da-grid-gap);
		align-items: end;
	}

	.da-teasers .da-teasers__head .da-heading {
		margin-bottom: 0;
	}

	.da-teasers .da-teasers__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: var(--da-grid-gap);
	}
}

/* "What could your life … look like?" without a photo: heading and
   introduction on the left, the guides on the right. */
.da-propertyed__grid:not(:has(.da-propertyed__figure img)) .da-propertyed__figure {
	display: none;
}

@media (min-width: 960px) {
	.da-propertyed__grid:not(:has(.da-propertyed__figure img)) {
		grid-template-columns: minmax(0, 1fr);
	}

	.da-propertyed__grid:not(:has(.da-propertyed__figure img)) .da-propertyed__body {
		display: grid;
		grid-template-columns: 5fr 7fr;
		column-gap: var(--da-space-9);
		align-items: start;
	}

	.da-propertyed__grid:not(:has(.da-propertyed__figure img)) .da-propertyed__body > .da-heading,
	.da-propertyed__grid:not(:has(.da-propertyed__figure img)) .da-propertyed__body > .da-lede {
		grid-column: 1;
	}

	.da-propertyed__grid:not(:has(.da-propertyed__figure img)) .da-propertyed__body > .da-teasers__list {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.da-propertyed__grid:not(:has(.da-propertyed__figure img)) .da-propertyed__body > .da-propertyed__more {
		grid-column: 2;
	}
}

/* "A budget in context" without a photo: the heading, €300,000 and
   introduction on the left, centred against the list of areas on the right;
   the note and the button under the list. The two flexible rows above and
   below the left block share the list's spare height equally. */
.da-budget__grid:not(:has(.da-budget__figure img)) .da-budget__figure {
	display: none;
}

@media (min-width: 960px) {
	.da-budget__grid:not(:has(.da-budget__figure img)) {
		grid-template-columns: minmax(0, 1fr);
	}

	.da-budget__grid:not(:has(.da-budget__figure img)) .da-budget__body {
		display: grid;
		grid-template-columns: 5fr 6fr;
		grid-template-rows: 1fr auto auto auto 1fr auto auto;
		column-gap: var(--da-space-9);
		align-items: start;
	}

	.da-budget__grid:not(:has(.da-budget__figure img)) .da-budget__body > .da-eyebrow {
		grid-column: 1;
		grid-row: 2;
	}

	.da-budget__grid:not(:has(.da-budget__figure img)) .da-budget__body > .da-budget__title {
		grid-column: 1;
		grid-row: 3;
	}

	.da-budget__grid:not(:has(.da-budget__figure img)) .da-budget__body > .da-budget__intro {
		grid-column: 1;
		grid-row: 4;
	}

	.da-budget__grid:not(:has(.da-budget__figure img)) .da-budget__body > .da-budget__types {
		grid-column: 2;
		grid-row: 1 / 6;
		margin-top: 0;
	}

	.da-budget__grid:not(:has(.da-budget__figure img)) .da-budget__body > .da-budget__footnote {
		grid-column: 2;
		grid-row: 6;
	}

	.da-budget__grid:not(:has(.da-budget__figure img)) .da-budget__body > .da-btn {
		grid-column: 2;
		grid-row: 7;
		justify-self: start;
	}
}

/* "New developments" while no project is published: heading across the top,
   then the text and the list of details in three columns. */
@media (min-width: 960px) {
	.da-dev-pending {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--da-space-6);
	}

	.da-dev-pending .da-heading__title {
		max-width: none;
	}

	.da-dev-pending__body > .da-lede {
		max-width: 60ch;
	}

	.da-dev-pending__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---- Key figures (Living page): four figures in a row --------------------
   The list keeps every word of the text; the value is set large above its
   description, and the dash between them is kept for screen readers only. */
.da-keyfigures {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--da-space-5);
	margin: var(--da-space-7) 0;
	padding: var(--da-space-6) 0;
	list-style: none;
	border-top: 1px solid var(--da-rule);
	border-bottom: 1px solid var(--da-rule);
}

.da-keyfigures > li {
	margin: 0;
	padding: 0;
	color: var(--da-text-muted);
	font-size: var(--da-fs-sm);
	line-height: 1.45;
}

.da-keyfigures > li::before {
	content: none;
}

.da-prose .da-keyfigures {
	padding-left: 0; /* aligned with the text column (no list indent) */
}

.da-keyfigures > li + li {
	margin-top: 0; /* the grid gap spaces the figures (no list spacing from .da-prose) */
}

.da-keyfigures__value {
	display: block;
	margin-bottom: var(--da-space-2);
	color: var(--da-ink);
	font-family: var(--da-font-serif);
	font-size: var(--da-fs-lg);
	font-weight: 500;
	line-height: 1.05;
}

.da-keyfigures__sep {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (min-width: 960px) {
	.da-keyfigures {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
