/* ==========================================================================
   DIMVIA — inner service pages (design-02 protection, -07 property,
   -10 mortgages; UA twins -08, -09).

   Tokens and the shared atoms (.dv-shell, .dv-eyebrow, .dv-secthead, .dv-btn,
   .dv-logo, header, footer) come from dimvia.css. Only what those three pages
   add lives here.

   SCOPE: desktop only, same as dimvia.css. The stop-gap is at the bottom.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero — dark band, copy left, photo bleeding off the right edge
   -------------------------------------------------------------------------- */

.dv-phero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 460px;
	padding-block: 7.5rem 3.5rem;
	background-color: var(--dv-ink);
	overflow: hidden;
}

/* .dv-phero centres its child with flex, and .dv-shell sizes to its content,
   so without this the shell shrink-wraps the copy and centres it instead of
   sitting on the page gutter. */
.dv-phero > .dv-shell {
	width: 100%;
	/* Flex item: stop a long title word from widening it past the screen. */
	min-width: 0;
}

.dv-phero__media {
	position: absolute;
	inset: 0 0 0 36%;
	z-index: -2;
}

.dv-phero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	display: block;
}

/* Frames low. Used by the protection page, whose supplied photo carries a
   glowing icon arc across its upper half that the mock-up's photo does not
   have -- see README. Drop the modifier when the clean shot arrives. */
.dv-phero--low .dv-phero__media img {
	object-position: 50% 88%;
}

/* Low framing alone cannot clear that arc -- the crop has only ~310px of
   vertical travel -- and its top circle landed behind the nav. This veil
   sinks it and keeps the nav legible. */
.dv-phero--low::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 200px;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(7, 17, 22, 0.88) 0%,
		rgba(7, 17, 22, 0.5) 55%,
		rgba(7, 17, 22, 0) 100%
	);
}

/* The copy runs over the left two-fifths, so the photo is faded out rather
   than hard-cut — a visible seam would read as a broken image. */
.dv-phero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(
			95deg,
			rgba(7, 17, 22, 0.97) 0%,
			rgba(7, 17, 22, 0.96) 40%,
			rgba(7, 17, 22, 0.78) 48%,
			rgba(7, 17, 22, 0.3) 58%,
			rgba(7, 17, 22, 0.06) 68%,
			rgba(7, 17, 22, 0) 78%
		),
		linear-gradient(180deg, rgba(7, 17, 22, 0.6) 0%, rgba(7, 17, 22, 0) 24%);
}

.dv-phero__copy {
	max-width: 470px;
}

.dv-crumbs {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1.4rem;
	font-family: var(--dv-body);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: rgba(245, 242, 236, 0.62);
}

.dv-crumbs ol {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The ">" separators were aria-hidden spans; as a list they are drawn here. */
.dv-crumbs li + li::before {
	content: ">";
	content: ">" / "";
	margin-right: 0.55rem;
}

.dv-crumbs a {
	color: rgba(245, 242, 236, 0.62);
	text-decoration: none;
	transition: color 0.2s ease;
}

.dv-crumbs a:hover,
.dv-crumbs a:focus-visible {
	color: var(--dv-gold);
}

.dv-crumbs span[aria-current] {
	color: rgba(245, 242, 236, 0.9);
}

.dv-phero__title {
	margin: 0;
	font-family: var(--dv-display);
	font-size: 3rem;
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--dv-light);
}

/* Second half of the headline in gold on its own line, as every mock-up does. */
.dv-phero__title span {
	display: block;
	color: var(--dv-gold);
}

.dv-phero__rule {
	width: 58px;
	height: 2px;
	margin: 1.5rem 0 1.6rem;
	background: var(--dv-gold);
}

.dv-phero__lead p {
	margin: 0 0 0.9rem;
	font-size: 1rem;
	line-height: 1.7;
	color: rgba(245, 242, 236, 0.86);
}

.dv-phero__lead p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Page body
   -------------------------------------------------------------------------- */

.dv-pagebody {
	background: var(--dv-ivory);
	padding-block: 3.6rem 4.4rem;
}

.dv-pagebody__head {
	margin-bottom: 2.6rem;
}

/* A second heading further down the same page (protection: "Where to start?"). */
.dv-pagebody__head--sub {
	margin: 2.8rem 0 0;
}

.dv-pagebody__head--sub + .dv-options {
	margin-top: 1.6rem;
}

/* Main column plus a narrower aside. */
.dv-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 366px;
	gap: 3.4rem;
	align-items: start;
}

/* --------------------------------------------------------------------------
   Icon list — the main column on every service page
   -------------------------------------------------------------------------- */

.dv-iconlist {
	display: grid;
	gap: 0;
}

.dv-iconlist__item {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 1.4rem;
	align-items: start;
	padding-block: 1.35rem;
	border-bottom: 1px solid var(--dv-hairline-soft);
}

.dv-iconlist__item:first-child {
	padding-top: 0;
}

.dv-iconlist__item:last-child {
	border-bottom: 0;
}

/* Blush disc behind a gold line icon — the same treatment as the home page
   service icons, one size down. */
.dv-iconlist__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--dv-blush);
	color: var(--dv-gold-deep);
}

.dv-iconlist__title {
	margin: 0.55rem 0 0.45rem;
	font-family: var(--dv-display);
	font-size: 1.1875rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	color: var(--dv-charcoal);
}

.dv-iconlist__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(23, 23, 23, 0.78);
}

/* Two-across variant used by the property page (design-07). */
.dv-grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	/* No column gap: a gap broke every horizontal hairline at the middle.
	   The space either side of the vertical divider is padding on the items
	   instead, so the lines run unbroken and the divider is centred. */
	column-gap: 0;
}

.dv-grid2 .dv-iconlist__item {
	padding-block: 1.5rem;
}

/* With two columns the first row is the first TWO items, and the divider
   between columns replaces the one under the last row of each. */
.dv-grid2 .dv-iconlist__item:nth-child(-n + 2) {
	padding-top: 0;
}

.dv-grid2 .dv-iconlist__item:nth-last-child(-n + 2) {
	border-bottom: 0;
}

.dv-grid2 .dv-iconlist__item:nth-child(odd) {
	padding-right: 2.4rem;
	border-right: 1px solid var(--dv-hairline-soft);
}

.dv-grid2 .dv-iconlist__item:nth-child(even) {
	padding-left: 2.4rem;
}

/* --------------------------------------------------------------------------
   Aside card
   -------------------------------------------------------------------------- */

.dv-card {
	background: var(--dv-blush);
	border: 1px solid rgba(199, 154, 85, 0.24);
	padding: 2rem 1.9rem 1.4rem;
}

.dv-card__title {
	margin: 0;
	font-family: var(--dv-display);
	font-size: 1.4375rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--dv-charcoal);
}

.dv-card__rule {
	width: 46px;
	height: 2px;
	margin: 1rem 0 0.5rem;
	background: var(--dv-gold);
}

.dv-card__row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 1.1rem;
	align-items: start;
	padding-block: 1.15rem;
	border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.dv-card__row:last-child {
	border-bottom: 0;
}

/* Filled ink disc, in contrast to the outlined blush discs in the main
   column — straight from design-02/-10. */
.dv-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--dv-ink);
	color: var(--dv-gold);
}

.dv-card__label {
	margin: 0;
	font-family: var(--dv-display);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--dv-charcoal);
}

.dv-card__text {
	margin: 0.3rem 0 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: rgba(23, 23, 23, 0.72);
}

/* The FAQ card has no per-row copy, so the question itself is set as body
   text and vertically centred against its disc. */
.dv-card__row--q {
	align-items: center;
}

.dv-card__question {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgba(23, 23, 23, 0.82);
}

/* --------------------------------------------------------------------------
   Option cards (design-02) — "I don't have cover" / "I already have cover"
   -------------------------------------------------------------------------- */

.dv-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.6rem;
	margin-top: 2.6rem;
}

.dv-option {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 1.2rem;
	align-items: center;
	padding: 1.5rem 1.6rem;
	background: var(--dv-ivory-warm);
	border: 1px solid rgba(199, 154, 85, 0.3);
}

/* The Ukrainian labels ("Переглянути моє страхування") are long enough to
   squeeze the card's copy into a sliver; let them wrap as design-23 does. */
.dv-option .dv-btn {
	max-width: 12.5rem;
	white-space: normal;
	text-align: center;
	line-height: 1.35;
}

.dv-option__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--dv-ink);
	color: var(--dv-gold);
}

.dv-option__title {
	margin: 0 0 0.35rem;
	font-family: var(--dv-display);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--dv-charcoal);
}

.dv-option__text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(23, 23, 23, 0.72);
}

/* Outlined, charcoal-on-ivory counterpart to .dv-btn for use on light bands. */
.dv-btn--outline {
	background: transparent;
	border: 1px solid var(--dv-gold-deep);
	color: var(--dv-gold-deep);
	padding: 0.8rem 1.1rem;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	white-space: nowrap;
}

.dv-btn--outline:hover,
.dv-btn--outline:focus-visible {
	background: var(--dv-gold-deep);
	color: var(--dv-light);
}

/* --------------------------------------------------------------------------
   Reassurance panel (design-07) — "what else, and what this is not"
   -------------------------------------------------------------------------- */

.dv-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
	margin-top: 2.8rem;
	padding: 2.2rem 2.3rem;
	background: var(--dv-ivory-warm);
	border: 1px solid rgba(199, 154, 85, 0.24);
}

.dv-panel__head {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 1.4rem;
	align-items: start;
}

.dv-panel__title {
	margin: 0 0 0.7rem;
	font-family: var(--dv-display);
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--dv-charcoal);
}

.dv-panel__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: rgba(23, 23, 23, 0.78);
}

.dv-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.05rem;
}

.dv-checks li {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: rgba(23, 23, 23, 0.82);
}

.dv-checks .dv-icon {
	margin-top: 0.1rem;
	color: var(--dv-gold-deep);
}

/* --------------------------------------------------------------------------
   Closing band — copy left, action right
   -------------------------------------------------------------------------- */

.dv-ctaband {
	position: relative;
	isolation: isolate;
	background: var(--dv-ink);
	color: var(--dv-light);
	padding-block: 2.9rem 3.1rem;
	overflow: hidden;
}

.dv-ctaband__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
}

.dv-ctaband__copy {
	max-width: 720px;
}

.dv-ctaband__title {
	margin: 0 0 0.7rem;
	font-family: var(--dv-display);
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.03em;
	color: var(--dv-light);
}

/* theme.json uppercases every h2 and that inherits, but design-02 sets this
   second line in sentence case. */
.dv-ctaband__title span {
	display: block;
	text-transform: none;
	color: var(--dv-gold);
}

.dv-ctaband__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: rgba(245, 242, 236, 0.8);
}

.dv-ctaband__action {
	flex: none;
	text-align: center;
}

.dv-ctaband__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: rgba(245, 242, 236, 0.72);
}

.dv-ctaband__note .dv-icon {
	color: var(--dv-gold);
}

/* --------------------------------------------------------------------------
   Booking form

   Contact Form 7's own stylesheet IS loaded, deliberately. Dequeuing it looked
   tidier but that sheet carries structural rules, not just looks: it hides the
   response output until the form has a state, hides the spinner until a submit
   is in flight, and visually hides the screen-reader-only response region.
   Without it those all render as stray empty boxes. What follows layers the
   design on top of it.
   -------------------------------------------------------------------------- */

.dv-book__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 3.6rem;
	align-items: start;
	margin-top: 1.9rem;
}

/* The whole form, button included, should fit one laptop screen (13"-17",
   ~650px of viewport under the browser's toolbars) — hence the tighter band
   than the site's standard 5.25rem section padding. */
.dv-book {
	padding-block: 2.6rem 2.8rem;
}

/* CF7's auto-paragraphing puts a <br> before and after every label, which
   added ~34px between each label and its input. */
.dv-form__grid br,
.dv-field--wide br {
	display: none;
}

.dv-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.8rem;
}

.dv-field,
.dv-field--wide {
	margin: 0;
}

.dv-field--wide {
	margin-top: 1rem;
}

.dv-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-family: var(--dv-body);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dv-gold-deep);
}

.dv-field__opt {
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: none;
	color: rgba(23, 23, 23, 0.45);
}

/* CF7 wraps every field in a span of its own, which would otherwise break the
   inputs out of the grid cell. */
.dv-field .wpcf7-form-control-wrap {
	display: block;
}

.dv-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.95rem;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(23, 23, 23, 0.14);
	border-radius: 2px;
	font-family: var(--dv-body);
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--dv-charcoal);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dv-input::placeholder {
	color: rgba(23, 23, 23, 0.4);
}

.dv-input:hover {
	border-color: rgba(199, 154, 85, 0.55);
}

.dv-input:focus {
	outline: 0;
	background: #fff;
	border-color: var(--dv-gold);
	box-shadow: 0 0 0 3px rgba(199, 154, 85, 0.16);
}

textarea.dv-input {
	resize: vertical;
	/* An explicit height, because CF7's rows="" otherwise sets ~137px. Still
	   resizable for a longer message. */
	height: 6.5rem;
	min-height: 5rem;
}

select.dv-input {
	appearance: none;
	/* Chevron drawn in the background so the control keeps the theme's gold
	   rather than the browser's blue arrow. */
	background-image: linear-gradient(45deg, transparent 50%, var(--dv-gold-deep) 50%),
		linear-gradient(135deg, var(--dv-gold-deep) 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 2.6rem;
}

.dv-consent {
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: rgba(23, 23, 23, 0.72);
}

/* CF7 nests the box and its text inside one <label>, so that label is what has
   to become the flex row; the wrapping spans just need their default margins
   removed. */
.dv-consent .wpcf7-list-item {
	margin: 0;
}

.dv-consent label {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	cursor: pointer;
}

.dv-consent input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0.15rem 0 0;
	accent-color: var(--dv-gold-deep);
	flex: none;
}

/* Honeypot: hidden from people, not from bots. Kept out of the flow and out of
   the accessibility tree rather than display:none, which some bots skip. */
.dv-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

.dv-form__actions {
	margin: 1.2rem 0 0;
}

.dv-form__actions .dv-btn {
	border: 0;
	cursor: pointer;
}

.dv-form__fallback {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.7;
}

/* CF7 validation and response text. */
.dv-form .wpcf7-not-valid-tip {
	margin-top: 0.4rem;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: #a4331f;
}

.dv-form .wpcf7-not-valid {
	border-color: #a4331f;
}

/* Decoration only. CF7's sheet controls WHETHER this is shown; overriding its
   display here is what put a permanent empty bordered box under the button. */
.dv-form .wpcf7-response-output {
	margin: 1.6rem 0 0;
	padding: 0.95rem 1.1rem;
	border: 1px solid rgba(23, 23, 23, 0.16);
	border-left-width: 3px;
	border-radius: 2px;
	font-size: 0.875rem;
	line-height: 1.55;
}

.dv-form form.sent .wpcf7-response-output {
	border-color: rgba(199, 154, 85, 0.5);
	border-left-color: var(--dv-gold-deep);
	background: rgba(199, 154, 85, 0.08);
}

.dv-form form.invalid .wpcf7-response-output,
.dv-form form.unaccepted .wpcf7-response-output,
.dv-form form.failed .wpcf7-response-output,
.dv-form form.spam .wpcf7-response-output {
	border-left-color: #a4331f;
	background: rgba(164, 51, 31, 0.06);
}

.dv-form .wpcf7-spinner {
	margin-left: 0.8rem;
}

/* --------------------------------------------------------------------------
   Booking aside
   -------------------------------------------------------------------------- */

.dv-book__aside {
	padding-left: 2.4rem;
	border-left: 1px solid var(--dv-hairline);
}

.dv-book__aside .dv-eyebrow {
	margin-bottom: 1.6rem;
}

/* .dv-contact is styled for the dark footer, so its colours are re-stated for
   this ivory band. */
.dv-book__aside .dv-contact {
	display: flex;
	margin-bottom: 1.1rem;
	color: var(--dv-charcoal);
}

.dv-book__aside .dv-contact:hover {
	color: var(--dv-gold-deep);
}

.dv-book__note {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	margin: 2rem 0 0;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(23, 23, 23, 0.1);
	font-size: 0.8125rem;
	line-height: 1.55;
	color: rgba(23, 23, 23, 0.62);
}

.dv-book__note .dv-icon {
	flex: none;
	margin-top: 0.15rem;
	color: var(--dv-gold-deep);
}

/* --------------------------------------------------------------------------
   NOT YET DONE: narrow viewports. Stop-gap only, as in dimvia.css.
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.dv-cols,
	.dv-grid2,
	.dv-options,
	.dv-panel,
	.dv-book__inner,
	.dv-form__grid {
		grid-template-columns: 1fr;
	}

	.dv-book__aside {
		padding-left: 0;
		border-left: 0;
	}

	/* Stacked under the form, the aside's contacts repeat the footer's a
	   screen further down. Keep only the privacy note, which belongs to the
	   form. */
	.dv-book__inner {
		gap: 0;
	}

	.dv-book__aside .dv-eyebrow,
	.dv-book__aside .dv-contact {
		display: none;
	}

	.dv-book__note {
		margin-top: 1.6rem;
	}

	/* Stacked, the panel's shield icon only costs the copy 80px of width and
	   repeats the heading's meaning, so it goes; the text takes the full card. */
	.dv-panel__head {
		grid-template-columns: minmax(0, 1fr);
	}

	.dv-panel__head > .dv-iconlist__icon {
		display: none;
	}

	.dv-grid2 .dv-iconlist__item:nth-child(odd) {
		padding-right: 0;
		border-right: 0;
	}

	.dv-grid2 .dv-iconlist__item:nth-child(even) {
		padding-left: 0;
	}

	/* One column: the two-column rules above ("first TWO items have no top
	   padding", "last TWO have no divider") no longer apply. Restore a
	   normal list -- padding and a hairline between every item, none after
	   the last. */
	.dv-grid2 .dv-iconlist__item:nth-child(2) {
		padding-top: 1.5rem;
	}

	.dv-grid2 .dv-iconlist__item:nth-last-child(2) {
		border-bottom: 1px solid var(--dv-hairline-soft);
	}

	.dv-phero__media {
		inset: 0;
	}

	.dv-ctaband__inner {
		flex-wrap: wrap;
	}
}

/* Phones: the page-hero title is a fixed 3rem above, and long Ukrainian words
   ("СТРАХУВАННЯ", "НЕРУХОМІСТЬ") are wider than the text column at that size.
   Lives here, after the 3rem rule, because dimvia.css loads first and would
   lose the cascade. */
@media (max-width: 600px) {
	.dv-phero__title {
		font-size: clamp(1.75rem, 8.2vw, 3rem);
		overflow-wrap: break-word;
	}

	/* Option cards: icon + copy on one row, the button under them across the
	   card. Three columns (icon | copy | button) cannot fit a 320px screen. */
	.dv-option {
		grid-template-columns: 56px minmax(0, 1fr);
		padding: 1.25rem;
	}

	.dv-option .dv-btn {
		grid-column: 1 / -1;
		max-width: none;
		/* Stretch across the card via the grid, not width:100% -- the button
		   has its own side padding, so 100% + padding overflowed the card. */
		width: auto;
		justify-self: stretch;
		box-sizing: border-box;
		justify-content: center;
	}

	/* Closing CTA band: let the action shrink to the screen. */
	.dv-ctaband__action {
		flex: 1 1 100%;
		min-width: 0;
		width: 100%;
	}

	.dv-ctaband__action .dv-btn {
		box-sizing: border-box;
		max-width: 100%;
		white-space: normal;
		justify-content: center;
	}
}

/* --------------------------------------------------------------------------
   Hero legibility on phones (500px and below)
   There the copy runs across the whole photo, but the hero's dark ramp is
   horizontal and was built for copy sitting on the left. (On wider screens
   the copy still sits on the left, on the ramp, and needs no help.) So: a soft dark
   scrim behind the copy block ONLY (it fades out at the top and bottom, so
   the rest of the photo is untouched), plus a faint shadow on the text.
   -------------------------------------------------------------------------- */

@media (max-width: 500px) {
	.dv-hero__copy,
	.dv-phero__copy {
		position: relative;
		z-index: 0;
	}

	.dv-hero__copy::before,
	.dv-phero__copy::before {
		content: "";
		position: absolute;
		z-index: -1;
		pointer-events: none;
		inset: -2.75rem calc(-1 * var(--dv-gutter));
		background: rgba(7, 17, 22, 0.66);
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
		mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
	}

	.dv-hero__copy :is(h1, p, nav, a:not(.dv-btn)),
	.dv-phero__copy :is(h1, p, nav, div, a:not(.dv-btn)) {
		text-shadow: 0 1px 14px rgba(7, 17, 22, 0.7), 0 0 2px rgba(7, 17, 22, 0.35);
	}
}

/* Required-field note of the booking form. */
.dv-form__required {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Desktop scale (>= 1024px) — page-specific part. The root font size is 75%
   from 1024px up (see the end of dimvia.css), so rem sizes here are already
   ~25% smaller; this block pins the type floors and shrinks the px sizes.
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
	/* Second pass: ~13% less air on the page bands (header clearance kept). */
	.dv-phero {
		min-height: 300px;
		padding-block: 6.8rem 2.8rem;
	}

	.dv-pagebody {
		padding-block: 3rem 3.7rem;
	}

	.dv-pagebody__head {
		margin-bottom: 2.2rem;
	}

	.dv-ctaband {
		padding-block: 2.5rem 2.7rem;
	}

	.dv-phero__copy {
		max-width: 400px;
	}

	.dv-phero--low::after {
		height: 150px;
	}

	.dv-phero__rule {
		width: 44px;
	}

	.dv-phero__lead p,
	.dv-iconlist__text,
	.dv-card__label,
	.dv-card__question,
	.dv-option__title,
	.dv-panel__text,
	.dv-checks li,
	.dv-ctaband__text,
	.dv-form__fallback,
	.dv-input {
		font-size: 14px;
	}

	.dv-card__text,
	.dv-option__text,
	.dv-consent,
	.dv-form .wpcf7-response-output {
		font-size: 13px;
	}

	.dv-crumbs,
	.dv-form__required,
	.dv-ctaband__note,
	.dv-book__note,
	.dv-form .wpcf7-not-valid-tip {
		font-size: 12px;
	}

	.dv-btn--outline,
	.dv-field label {
		font-size: 11px;
	}

	.dv-iconlist__title,
	.dv-panel__title {
		font-size: 15px;
	}

	.dv-cols {
		grid-template-columns: minmax(0, 1fr) 290px;
	}

	.dv-iconlist__item {
		grid-template-columns: 46px minmax(0, 1fr);
	}

	.dv-iconlist__icon {
		width: 46px;
		height: 46px;
	}

	.dv-iconlist__icon .dv-icon {
		width: 22px;
		height: 22px;
	}

	.dv-card__row {
		grid-template-columns: 36px minmax(0, 1fr);
	}

	.dv-card__icon {
		width: 36px;
		height: 36px;
	}

	.dv-card__icon .dv-icon {
		width: 17px;
		height: 17px;
	}

	.dv-option {
		grid-template-columns: 44px minmax(0, 1fr) auto;
	}

	.dv-option__icon {
		width: 44px;
		height: 44px;
	}

	.dv-option__icon .dv-icon {
		width: 20px;
		height: 20px;
	}

	.dv-option .dv-btn {
		max-width: 10.5rem;
	}

	.dv-panel__head {
		grid-template-columns: 46px minmax(0, 1fr);
	}

	.dv-checks li {
		grid-template-columns: 18px minmax(0, 1fr);
	}

	.dv-checks .dv-icon {
		width: 17px;
		height: 17px;
	}

	.dv-ctaband__copy {
		max-width: 560px;
	}

	.dv-book__inner {
		grid-template-columns: minmax(0, 1fr) 280px;
	}

	.dv-input {
		padding: 0.85rem 1rem;
	}
}

/* --------------------------------------------------------------------------
   Protection hero photo (.dv-phero--low)
   The supplied photo has a glowing arc of five icons across its upper 60%, so
   it cannot be cropped to a short band without cutting circles in half or
   the faces (README open item 3).
   - >= 1024px: styled like the home hero (flush right, top and bottom, a wide
     eased CSS dissolve on the left, no frame). page-protection-hero.jpg = the
     clean original (design/assets/family-protection-icons.jpg) plus a soft
     margin on its left and top; the mask dissolves over the margin so the arc
     stays whole, and the top margin keeps the house circle clear of the nav.
   - < 1024px: page-protection-crop.jpg (the photo only) stacks above the copy
     like the home hero; its bottom dissolves into the ink under the copy.
   -------------------------------------------------------------------------- */

.dv-phero--low::before,
.dv-phero--low::after {
	background: none;
	display: none;
}

@media (max-width: 1023px) {
	.dv-phero--low {
		/* ~80% of the photo's height (width x 0.739). No header clearance: the
		   header is overlaid, the photo starts at the very top like the home
		   hero. */
		padding-top: calc(min(100vw, 560px) * 0.59);
	}

	.dv-phero--low .dv-phero__media {
		inset: 0 0 auto 0;
		width: min(100%, 560px);
		margin-inline: auto;
		aspect-ratio: 1280 / 946;
		-webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
	}

	.dv-phero--low .dv-phero__media img {
		object-position: 50% 50%;
	}

	/* Soft dark veil under the overlaid header (as on the home hero) so the
	   logo, language pill and burger read on the bright window area. */
	.dv-phero--low::before {
		display: block;
		z-index: -1;
		bottom: auto;
		height: 6.5rem;
		background: linear-gradient(180deg, rgba(7, 17, 22, 0.62) 0%, rgba(7, 17, 22, 0) 100%);
	}
}

/* 431-1023px: the logo lockup shows its tagline there and runs under the
   house circle, so this crop (page-protection-crop-top.jpg) carries ~200px of
   extra photo-coloured, ink-fading margin on top. The circle then sits under
   the header band, the photo still begins at the very top of the screen. */
@media (min-width: 431px) and (max-width: 1023px) {
	.dv-phero--low {
		padding-top: calc(min(100vw, 560px) * 0.72);
	}

	.dv-phero--low .dv-phero__media {
		aspect-ratio: 1280 / 1146;
		-webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
	}
}

/* Wider than the 560px photo box (tablets): soften the side edges too. */
@media (min-width: 600px) and (max-width: 1023px) {
	.dv-phero--low .dv-phero__media {
		-webkit-mask-image:
			linear-gradient(180deg, #000 82%, transparent 100%),
			linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
		-webkit-mask-composite: source-in;
		mask-image:
			linear-gradient(180deg, #000 82%, transparent 100%),
			linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
		mask-composite: intersect;
	}
}

@media (min-width: 1024px) {
	/* Same look as the home hero: the home's green-black ink, the same ramp
	   (dimvia.css re-enables ::before for this page) and the same eased photo
	   dissolve (--dv-fade-w, a mask in dimvia.css). The photo is flush with the
	   right edge and the top and bottom of the band, no frame. */
	.dv-phero--low {
		box-sizing: border-box;
		min-height: 500px;
		--dv-hero-ink: 6, 27, 25;
		background-color: rgb(var(--dv-hero-ink));
	}

	.dv-phero--low::before {
		display: block;
	}

	/* page-protection-hero.jpg (1920x1242) = the photo (right 1280px) plus a
	   soft, photo-coloured margin on its left and top, so the dissolve sits on
	   the margin and the icon arc stays whole and clear of the nav. The top
	   1050px are shown, aligned to the top. */
	.dv-phero--low .dv-phero__media {
		--dv-fade-w: 38%;
		inset: 0 0 0 auto;
		height: 100%;
		aspect-ratio: 1920 / 1050;
		max-width: 66%;
	}

	.dv-phero--low .dv-phero__media img {
		object-position: 100% 0;
	}

	.dv-phero--low .dv-phero__title {
		text-shadow: 0 0 16px rgba(11, 21, 26, 0.9);
	}
}

/* Above 1920px the band grows with the width so the photo (always flush with
   the right edge of the window) scales up gently (~0.5x natural at 1920px,
   ~0.75x at 3440px) instead of leaving a void between copy and photo. The copy
   stays on the 1440px composition. */
@media (min-width: 1921px) {
	.dv-phero--low {
		min-height: calc(500px + (100vw - 1920px) * 0.18);
	}
}

/* --------------------------------------------------------------------------
   Privacy policy (templates/page-privacy-policy.html)

   A plain text page: no hero, so the header stays solid. One readable column,
   about 68 characters wide, under the same ruled heading as /book/. Text is
   heavier than the theme's 300 default because it is long reading.
   -------------------------------------------------------------------------- */

.dv-policy {
	padding-block: 3.2rem 4.4rem;
}

.dv-policy__body {
	max-width: 68ch;
	margin: 2.2rem auto 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--dv-charcoal);
	overflow-wrap: break-word;
}

.dv-policy__body p,
.dv-policy__body ul {
	margin: 0 0 1rem;
}

.dv-policy__intro {
	font-size: 1.0625em;
}

.dv-policy__h {
	margin: 2.4rem 0 0.7rem;
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: var(--dv-charcoal);
}

.dv-policy__body ul {
	padding-left: 1.3rem;
}

.dv-policy__body li {
	margin-bottom: 0.4rem;
}

.dv-policy__body a {
	color: var(--dv-charcoal);
	text-decoration: underline;
	text-decoration-color: var(--dv-gold-deep);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.dv-policy__body a:hover,
.dv-policy__body a:focus-visible {
	text-decoration-color: var(--dv-charcoal);
}

.dv-policy__body code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
}

@media (min-width: 1024px) {
	.dv-policy {
		padding-block: 2.8rem 3.7rem;
	}

	.dv-policy__body {
		font-size: 15px;
	}

	.dv-policy__h {
		font-size: 19px;
	}
}

/* --------------------------------------------------------------------------
   Large screens (>= 1920px) — page-specific part. --dv-scale (1.5) and the
   wider --dv-content-max come from the tier at the end of dimvia.css; every
   px size of the desktop scale above is repeated here times --dv-scale.
   -------------------------------------------------------------------------- */

@media (min-width: 1920px) {
	.dv-phero {
		min-height: calc(300px * var(--dv-scale));
	}

	.dv-phero--low {
		min-height: calc(500px * var(--dv-scale) + (100vw - 1920px) * 0.18);
	}

	.dv-phero--low::after {
		height: calc(150px * var(--dv-scale));
	}

	.dv-phero__copy {
		max-width: calc(400px * var(--dv-scale));
	}

	.dv-phero__rule {
		width: calc(44px * var(--dv-scale));
	}

	.dv-phero__lead p,
	.dv-iconlist__text,
	.dv-card__label,
	.dv-card__question,
	.dv-option__title,
	.dv-panel__text,
	.dv-checks li,
	.dv-ctaband__text,
	.dv-form__fallback,
	.dv-input {
		font-size: calc(14px * var(--dv-scale));
	}

	.dv-card__text,
	.dv-option__text,
	.dv-consent,
	.dv-form .wpcf7-response-output {
		font-size: calc(13px * var(--dv-scale));
	}

	.dv-crumbs,
	.dv-form__required,
	.dv-ctaband__note,
	.dv-book__note,
	.dv-form .wpcf7-not-valid-tip {
		font-size: calc(12px * var(--dv-scale));
	}

	.dv-btn--outline,
	.dv-field label {
		font-size: calc(11px * var(--dv-scale));
	}

	.dv-iconlist__title,
	.dv-panel__title {
		font-size: calc(15px * var(--dv-scale));
	}

	.dv-cols {
		grid-template-columns: minmax(0, 1fr) calc(290px * var(--dv-scale));
	}

	.dv-iconlist__item,
	.dv-panel__head {
		grid-template-columns: calc(46px * var(--dv-scale)) minmax(0, 1fr);
	}

	.dv-iconlist__icon {
		width: calc(46px * var(--dv-scale));
		height: calc(46px * var(--dv-scale));
	}

	.dv-iconlist__icon .dv-icon {
		width: calc(22px * var(--dv-scale));
		height: calc(22px * var(--dv-scale));
	}

	.dv-card__row {
		grid-template-columns: calc(36px * var(--dv-scale)) minmax(0, 1fr);
	}

	.dv-card__icon {
		width: calc(36px * var(--dv-scale));
		height: calc(36px * var(--dv-scale));
	}

	.dv-card__icon .dv-icon {
		width: calc(17px * var(--dv-scale));
		height: calc(17px * var(--dv-scale));
	}

	.dv-card__rule {
		width: calc(46px * var(--dv-scale));
	}

	.dv-option {
		grid-template-columns: calc(44px * var(--dv-scale)) minmax(0, 1fr) auto;
	}

	.dv-option__icon {
		width: calc(44px * var(--dv-scale));
		height: calc(44px * var(--dv-scale));
	}

	.dv-option__icon .dv-icon {
		width: calc(20px * var(--dv-scale));
		height: calc(20px * var(--dv-scale));
	}

	.dv-checks li {
		grid-template-columns: calc(18px * var(--dv-scale)) minmax(0, 1fr);
	}

	.dv-checks .dv-icon {
		width: calc(17px * var(--dv-scale));
		height: calc(17px * var(--dv-scale));
	}

	.dv-ctaband__copy {
		max-width: calc(560px * var(--dv-scale));
	}

	.dv-book__inner {
		grid-template-columns: minmax(0, 1fr) calc(280px * var(--dv-scale));
	}

	.dv-consent input[type="checkbox"] {
		width: calc(16px * var(--dv-scale));
		height: calc(16px * var(--dv-scale));
	}

	select.dv-input {
		background-position: calc(100% - 20px * var(--dv-scale)) calc(50% + 2px), calc(100% - 14px * var(--dv-scale)) calc(50% + 2px);
		background-size: calc(6px * var(--dv-scale)) calc(6px * var(--dv-scale)), calc(6px * var(--dv-scale)) calc(6px * var(--dv-scale));
	}

	.dv-policy__body {
		font-size: calc(15px * var(--dv-scale));
	}

	.dv-policy__h {
		font-size: calc(19px * var(--dv-scale));
	}
}
