/*
 * The sections of /contact-us/ (category «تماس با ما», core/components/categories/
 * contact/), with base.css: contact-desk (.hd-cdk), contact-ways (.hd-cwy),
 * contact-form (.hd-cfm, with captcha.css) and contact-routes (.hd-crt). Design
 * cnt1 «پیشخوان» of the canvas «بازطراحی صفحه «تماس با ما» های‌دیتا», which the
 * owner picked on 2026-11-23, with the list of which way for which task made
 * shorter and put under the form at the owner's word. Sizes are px of the
 * design times --u, a px at the root size it was drawn at on wide screens
 * (1440px wide, root 14px), and times --p on phones (390px wide, root 12px), so
 * the sections scale with the root as MojoCSS sets it. White cards share one
 * edge and shadow; no box lifts on hover; buttons ripple. Motion is transform
 * and opacity only, pauses off screen (data-hd="anim") and is still with
 * reduced motion. The block of the front desk at the end is written by
 * dev/tools/scenes/contact-desk.py.
 */

.hd-cdk,
.hd-cwy,
.hd-cfm,
.hd-crt {
	--u: calc(1rem / 14);
	--p: calc(1rem / 12);
	--hd-ct-card: #fff;
	--hd-ct-edge: inset 0 0 0 1px #E1ECF6;
	--hd-ct-shadow: 0 calc(30 * var(--u)) calc(60 * var(--u)) calc(-44 * var(--u)) rgba(16, 63, 99, .5);
	--hd-ct-tint: #E3F0FC;
	--hd-ct-pale: #F4F9FE;
	--hd-ct-rule: #E2EBF3;
}

/* === contact-desk: template/contact/desk.php === */

.hd-cdk {
	padding: calc(34 * var(--u)) 0 calc(30 * var(--u));
}

.hd-cdk-grid {
	display: grid;
	grid-template-columns: minmax(0, calc(500 * var(--u))) minmax(0, 1fr);
	align-items: center;
	gap: calc(40 * var(--u));
}

.hd-cdk-title {
	margin: 0;
	font-size: calc(54 * var(--u));
	line-height: 1.35;
	font-weight: 900;
	color: var(--hd-navy);
}

/* The phrase on the yellow marker of the home page, in the colour of the title. */
.hd-cdk-title .hd-hl {
	padding: 0 calc(4 * var(--u));
	color: inherit;
	background: linear-gradient(transparent 62%, rgba(255, 204, 0, .75) 62% 88%, transparent 88%);
}

.hd-cdk-lead {
	max-width: calc(470 * var(--u));
	margin-top: calc(14 * var(--u));
	font-size: calc(17 * var(--u));
	line-height: 2.05;
	font-weight: 500;
	color: var(--hd-text);
	text-wrap: pretty;
}

.hd-cdk-cta {
	display: flex;
	flex-wrap: wrap;
	gap: calc(12 * var(--u));
	margin-top: calc(26 * var(--u));
}

.hd-cdk-cta .button {
	height: auto;
	min-height: max(calc(52 * var(--u)), 44px);
	gap: calc(10 * var(--u));
	padding-inline: calc(26 * var(--u));
	font-size: calc(15 * var(--u));
	font-weight: 800;
	line-height: 1.4;
	box-shadow: 0 calc(16 * var(--u)) calc(30 * var(--u)) calc(-18 * var(--u)) rgba(2, 71, 174, .75);
}

/* The white button on the light page: an edge and a soft shadow. */
.hd-cdk-cta .button-white {
	color: var(--hd-blue);
	box-shadow: inset 0 0 0 1px #D3E2F1, 0 calc(14 * var(--u)) calc(26 * var(--u)) calc(-20 * var(--u)) rgba(16, 63, 99, .5);
}

.hd-cdk-cta .button-white .ripple {
	background: var(--hd-ct-tint);
}

.hd-cdk-bi {
	display: grid;
	flex: none;
}

.hd-cdk-bi svg {
	display: block;
	width: calc(19 * var(--u));
	height: calc(19 * var(--u));
}

.hd-cdk-tel bdi {
	font-size: calc(17 * var(--u));
	letter-spacing: calc(.5 * var(--u));
}

.hd-cdk-hours {
	display: flex;
	flex-wrap: wrap;
	gap: calc(12 * var(--u)) calc(22 * var(--u));
	margin-top: calc(26 * var(--u));
}

.hd-cdk-hours li,
.hd-cdk-hours a {
	display: flex;
	align-items: center;
	gap: calc(10 * var(--u));
}

.hd-cdk-hours a {
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.hd-cdk-hours a:hover .hd-cdk-ht {
	text-decoration: underline;
	text-underline-offset: calc(5 * var(--u));
}

.hd-cdk-hi {
	display: grid;
	flex: none;
	place-items: center;
	width: calc(34 * var(--u));
	height: calc(34 * var(--u));
	border-radius: 50%;
	background: #fff;
	color: var(--hd-blue);
	box-shadow: inset 0 0 0 1px #D6E4F1;
}

.hd-cdk-hi svg {
	display: block;
	width: calc(17 * var(--u));
	height: calc(17 * var(--u));
}

.hd-cdk-ht {
	font-size: calc(14 * var(--u));
	line-height: 1.7;
	font-weight: 600;
	color: var(--hd-text);
}

.hd-cdk-ht b {
	font-weight: 900;
	color: var(--hd-navy);
}

/* The drawing (an <img>) and what moves over it (an inline <svg> of the same box). */
.hd-cdk-art {
	position: relative;
	min-width: 0;
}

.hd-cdk-img {
	display: block;
	width: 100%;
	height: auto;
}

.hd-cdk-layers {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* === contact-ways: template/contact/ways.php === */

.hd-cwy {
	padding: calc(6 * var(--u)) 0 0;
}

.hd-cwy-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: calc(20 * var(--u));
}

.hd-cwy-list.is-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hd-cwy-list.is-1 {
	grid-template-columns: minmax(0, 1fr);
}

.hd-cwy-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: calc(26 * var(--u)) calc(26 * var(--u)) calc(22 * var(--u));
	border-radius: calc(28 * var(--u));
	background: var(--hd-ct-card);
	box-shadow: var(--hd-ct-shadow), var(--hd-ct-edge);
}

.hd-cwy-head {
	display: flex;
	align-items: center;
	gap: calc(13 * var(--u));
}

.hd-cwy-ic,
.hd-cfm-ic,
.hd-cfm-ai,
.hd-crt-ic {
	display: grid;
	flex: none;
	place-items: center;
	width: calc(48 * var(--u));
	height: calc(48 * var(--u));
	min-width: 44px;
	min-height: 44px;
	border-radius: calc(15 * var(--u));
	background: var(--hd-ct-tint);
	color: var(--hd-blue);
}

.hd-cwy-ic svg,
.hd-cfm-ic svg,
.hd-cfm-ai svg,
.hd-crt-ic svg {
	display: block;
	width: calc(23 * var(--u));
	height: calc(23 * var(--u));
}

.hd-cwy-ic.is-y,
.hd-crt-ic.is-y {
	background: var(--hd-yellow);
	color: var(--hd-navy);
}

.hd-cfm-ic.is-b {
	background: var(--hd-blue);
	color: #fff;
}

.hd-cwy-label {
	font-size: calc(14.5 * var(--u));
	line-height: 1.6;
	font-weight: 800;
	color: var(--hd-text);
}

.hd-cwy-value {
	margin-top: calc(18 * var(--u));
	font-size: calc(25 * var(--u));
	line-height: 1.5;
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-cwy-value.is-num {
	font-size: calc(31 * var(--u));
	letter-spacing: calc(1.5 * var(--u));
}

.hd-cwy-value.is-lat {
	font-size: calc(24 * var(--u));
}

.hd-cwy-text {
	flex: 1 1 auto;
	margin-top: calc(6 * var(--u));
	font-size: calc(14 * var(--u));
	line-height: 2;
	font-weight: 500;
	color: var(--hd-text);
	text-wrap: pretty;
}

.hd-cwy-go {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: calc(8 * var(--u));
	min-height: 44px;
	margin-top: calc(10 * var(--u));
	font-size: calc(15 * var(--u));
	font-weight: 800;
	color: var(--hd-blue);
	text-decoration: none;
}

.hd-cwy-go::after {
	width: calc(18 * var(--u));
	height: calc(18 * var(--u));
	transition: transform .3s;
}

.hd-cwy-go:hover::after {
	transform: translateX(calc(-4 * var(--u)));
}

[dir=ltr] .hd-cwy-go:hover::after {
	transform: scaleX(-1) translateX(calc(-4 * var(--u)));
}

/* === contact-form: template/contact/form.php === */

.hd-cfm {
	padding: calc(64 * var(--u)) 0 0;
}

.hd-cfm-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: start;
	gap: calc(24 * var(--u));
}

.hd-cfm-grid.is-solo {
	grid-template-columns: minmax(0, 1fr);
}

.hd-cfm-card,
.hd-cfm-office {
	min-width: 0;
	border-radius: calc(28 * var(--u));
	background: var(--hd-ct-card);
	box-shadow: var(--hd-ct-shadow), var(--hd-ct-edge);
}

.hd-cfm-card {
	padding: calc(32 * var(--u)) calc(34 * var(--u)) calc(26 * var(--u));
}

.hd-cfm-head {
	display: flex;
	align-items: center;
	gap: calc(16 * var(--u));
	margin-bottom: calc(24 * var(--u));
}

.hd-cfm-title {
	margin: 0;
	font-size: calc(24 * var(--u));
	line-height: 1.55;
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-cfm-sub {
	font-size: calc(14.5 * var(--u));
	line-height: 1.9;
	font-weight: 500;
	color: var(--hd-text);
}

.hd-cfm-msg {
	margin-bottom: calc(18 * var(--u));
	padding: calc(12 * var(--u)) calc(18 * var(--u));
	border-radius: calc(16 * var(--u));
	font-size: calc(14.5 * var(--u));
	line-height: 1.8;
	font-weight: 700;
}

.hd-cfm-msg.is-error {
	background: #FEF1F0;
	color: #B42318;
	box-shadow: inset 0 0 0 1px #F5C2BD;
}

.hd-cfm-msg.is-ok {
	background: #EEF8F1;
	color: #12723A;
	box-shadow: inset 0 0 0 1px #A7DDBA;
}

.hd-cfm-form {
	margin: 0;
}

.hd-cfm-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: calc(16 * var(--u)) calc(14 * var(--u));
}

.hd-cfm-f {
	display: grid;
	align-content: start;
	gap: calc(7 * var(--u));
	min-width: 0;
}

.hd-cfm-f.is-msg {
	grid-column: 1 / -1;
}

.hd-cfm-f.is-cap {
	grid-column: span 2;
	align-self: end;
}

.hd-cfm-f.is-send {
	align-self: end;
}

.hd-cfm-l {
	font-size: calc(13.5 * var(--u));
	line-height: 1.5;
	font-weight: 800;
	color: var(--hd-ink);
}

/* The edge of a field is 3:1 on the white card, a control's edge. */
.hd-cfm-in {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: max(calc(54 * var(--u)), 44px);
	margin: 0;
	padding: 0 calc(18 * var(--u));
	border: 0;
	border-radius: calc(16 * var(--u));
	background: var(--hd-ct-pale);
	box-shadow: inset 0 0 0 1px #7896B4;
	font: inherit;
	font-size: calc(15 * var(--u));
	font-weight: 600;
	color: var(--hd-navy);
	transition: box-shadow .2s, background-color .2s;
}

[dir=rtl] .hd-cfm-in[dir=ltr] {
	text-align: right;
}

textarea.hd-cfm-in {
	min-height: calc(128 * var(--u));
	padding: calc(14 * var(--u)) calc(18 * var(--u));
	line-height: 1.9;
	resize: vertical;
}

.hd-cfm-in:hover {
	box-shadow: inset 0 0 0 1px #5E85A8;
}

.hd-cfm-in:focus,
.hd-cfm-in:focus-visible {
	outline: 0;
	background: #fff;
	box-shadow: inset 0 0 0 2px var(--hd-blue), 0 0 0 calc(4 * var(--u)) rgba(2, 71, 174, .12);
}

/* The captcha as tall and round as the fields. */
.hd-cfm .hd-cap-box {
	min-height: max(calc(56 * var(--u)), 48px);
	border-radius: calc(16 * var(--u));
}

.hd-cfm-send.button {
	width: 100%;
	height: auto;
	min-height: max(calc(56 * var(--u)), 48px);
	gap: calc(10 * var(--u));
	font-size: calc(15.5 * var(--u));
	font-weight: 800;
	box-shadow: 0 calc(16 * var(--u)) calc(30 * var(--u)) calc(-18 * var(--u)) rgba(2, 71, 174, .8);
}

.hd-cfm-send svg {
	display: block;
	flex: none;
	width: calc(20 * var(--u));
	height: calc(20 * var(--u));
	color: var(--hd-yellow);
	transform: scaleX(-1);
}

[dir=ltr] .hd-cfm-send svg {
	transform: none;
}

.hd-cfm-note {
	display: flex;
	align-items: flex-start;
	gap: calc(10 * var(--u));
	margin-top: calc(20 * var(--u));
	padding-top: calc(16 * var(--u));
	border-top: 1px dashed #D6E4F1;
	font-size: calc(13.5 * var(--u));
	line-height: 1.95;
	font-weight: 600;
	color: var(--hd-text);
}

.hd-cfm-ni {
	display: grid;
	flex: none;
	color: var(--hd-blue);
}

.hd-cfm-ni svg {
	display: block;
	width: calc(18 * var(--u));
	height: calc(18 * var(--u));
	margin-top: calc(4 * var(--u));
}

.hd-cfm-note a {
	font-weight: 800;
	color: var(--hd-blue);
	text-decoration: underline;
	text-underline-offset: calc(5 * var(--u));
	white-space: nowrap;
}

/* --- The office card. */

.hd-cfm-office {
	padding: calc(12 * var(--u));
}

.hd-cfm-map {
	height: calc(226 * var(--u));
	border-radius: calc(20 * var(--u));
	isolation: isolate;
}

.hd-cfm-map .hd-map-image {
	min-height: 100%;
	object-fit: cover;
}

.hd-cfm-map .hd-map-pin {
	z-index: 1;
	width: calc(30 * var(--u));
}

/* A ring that leaves the foot of the pin now and then. */
.hd-cfm-map::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 0;
	width: calc(44 * var(--u));
	height: calc(18 * var(--u));
	margin: calc(-9 * var(--u)) 0 0 calc(-22 * var(--u));
	border-radius: 50%;
	background: rgba(2, 71, 174, .35);
	opacity: 0;
	transform: scale(.4);
	animation: hd-cfm-ring 2.8s ease-out infinite;
	pointer-events: none;
}

.hd-cfm-map .hd-map-chip {
	min-height: max(calc(38 * var(--u)), 36px);
	gap: calc(7 * var(--u));
	padding: 0 calc(14 * var(--u));
	border-radius: calc(12 * var(--u));
	font-size: calc(13 * var(--u));
	font-weight: 800;
	box-shadow: 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(16, 63, 99, .18);
}

.hd-cfm-map .hd-map-chip svg {
	width: calc(14 * var(--u));
	height: calc(14 * var(--u));
}

.hd-cfm-map .hd-map-links {
	top: calc(12 * var(--u));
	inset-inline-start: calc(12 * var(--u));
}

.hd-cfm-ob {
	padding: calc(20 * var(--u)) calc(14 * var(--u)) calc(6 * var(--u));
}

.hd-cfm-addr {
	display: flex;
	align-items: flex-start;
	gap: calc(13 * var(--u));
	margin-top: calc(12 * var(--u));
	font-size: calc(15 * var(--u));
	line-height: 1.95;
	font-weight: 700;
	color: var(--hd-ink);
}

.hd-cfm-addr small {
	display: block;
	font-size: calc(13 * var(--u));
	font-weight: 700;
	color: var(--hd-text);
}

.hd-cfm-nb {
	display: inline-block;
}

.hd-cfm-soct {
	margin: calc(20 * var(--u)) 0 0;
	padding-top: calc(16 * var(--u));
	border-top: 1px solid var(--hd-ct-rule);
	font-size: calc(14 * var(--u));
	line-height: 1.7;
	font-weight: 800;
	color: var(--hd-text);
}

.hd-cfm-soc {
	display: grid;
	gap: calc(8 * var(--u));
	margin-top: calc(10 * var(--u));
}

.hd-cfm-soc a {
	display: flex;
	align-items: center;
	gap: calc(13 * var(--u));
	min-height: 44px;
	padding: calc(9 * var(--u)) calc(12 * var(--u));
	border-radius: calc(18 * var(--u));
	background: var(--hd-ct-pale);
	color: inherit;
	text-decoration: none;
	transition: background-color .2s;
}

.hd-cfm-soc a:hover {
	background: #E8F2FC;
}

.hd-cfm-si {
	display: grid;
	flex: none;
	place-items: center;
	width: calc(42 * var(--u));
	height: calc(42 * var(--u));
	border-radius: calc(13 * var(--u));
	background: #fff;
	color: var(--hd-blue);
}

.hd-cfm-si svg {
	display: block;
	width: calc(20 * var(--u));
	height: calc(20 * var(--u));
}

.hd-cfm-st {
	display: grid;
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.7;
}

.hd-cfm-st b {
	font-size: calc(14.5 * var(--u));
	font-weight: 800;
	color: var(--hd-navy);
}

.hd-cfm-st small {
	font-size: max(calc(12.5 * var(--u)), 11px);
	font-weight: 600;
	color: var(--hd-text);
}

.hd-cfm-sh {
	font-size: calc(13 * var(--u));
	font-weight: 800;
	color: var(--hd-blue);
}

@keyframes hd-cfm-ring {
	0% {
		opacity: .9;
		transform: scale(.4);
	}

	70% {
		opacity: 0;
	}

	100% {
		opacity: 0;
		transform: scale(2.2);
	}
}

/* === contact-routes: template/contact/routes.php === */

.hd-crt {
	padding: calc(72 * var(--u)) 0 calc(40 * var(--u));
}

.hd-crt-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: calc(10 * var(--u)) calc(30 * var(--u));
}

.hd-crt-title {
	margin: 0;
	font-size: calc(30 * var(--u));
	line-height: 1.5;
	font-weight: 900;
	color: var(--hd-navy);
	text-wrap: balance;
}

/* The phrase in blue, without the yellow line of .hd-hl. */
.hd-crt-title .hd-hl {
	padding: 0;
	background: none;
}

.hd-crt-sub {
	margin-bottom: calc(6 * var(--u));
	font-size: calc(15 * var(--u));
	line-height: 2;
	font-weight: 500;
	color: var(--hd-text);
	text-wrap: pretty;
}

.hd-crt-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: calc(48 * var(--u));
	margin-top: calc(24 * var(--u));
	padding: calc(6 * var(--u)) calc(30 * var(--u));
	border-radius: calc(28 * var(--u));
	background: var(--hd-ct-card);
	box-shadow: var(--hd-ct-shadow), var(--hd-ct-edge);
}

.hd-crt-list li {
	min-width: 0;
}

.hd-crt-list li:nth-child(n+3) {
	border-top: 1px solid var(--hd-ct-rule);
}

.hd-crt-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: calc(16 * var(--u));
	height: 100%;
	min-height: 44px;
	padding: calc(18 * var(--u)) 0;
	color: inherit;
	text-decoration: none;
}

.hd-crt-item:focus-visible {
	outline: 2px solid var(--hd-blue);
	outline-offset: calc(-2 * var(--u));
	border-radius: calc(14 * var(--u));
}

.hd-crt-ic {
	width: calc(46 * var(--u));
	height: calc(46 * var(--u));
}

.hd-crt-ic svg {
	width: calc(22 * var(--u));
	height: calc(22 * var(--u));
}

.hd-crt-tx {
	display: grid;
	gap: calc(2 * var(--u));
	min-width: 0;
}

.hd-crt-t {
	font-size: calc(16.5 * var(--u));
	line-height: 1.6;
	font-weight: 900;
	color: var(--hd-navy);
	transition: color .2s;
}

.hd-crt-item:hover .hd-crt-t {
	color: var(--hd-blue);
}

.hd-crt-s {
	font-size: calc(13.5 * var(--u));
	line-height: 1.85;
	font-weight: 500;
	color: var(--hd-text);
	text-wrap: pretty;
}

/* The pill of the action: it ripples while its row is hovered. */
.hd-crt-go {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: calc(7 * var(--u));
	min-width: max(calc(40 * var(--u)), 36px);
	min-height: max(calc(40 * var(--u)), 36px);
	padding: 0 calc(16 * var(--u));
	border-radius: 99px;
	background: var(--hd-ct-tint);
	color: var(--hd-blue);
	font-size: calc(13.5 * var(--u));
	font-weight: 800;
	line-height: 1.4;
	white-space: nowrap;
}

.hd-crt-go::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	inset-inline-start: -30%;
	width: 160%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #CFE2F6;
	transform: translateY(-50%) scale(0);
	transform-origin: 100% 50%;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

[dir=ltr] .hd-crt-go::before {
	transform-origin: 0 50%;
}

.hd-crt-item:hover .hd-crt-go::before {
	transform: translateY(-50%) scale(1);
}

.hd-crt-go::after {
	width: calc(16 * var(--u));
	height: calc(16 * var(--u));
}

/* The page's last section is the strip of who is behind the name (about-trust,
   about.css): the room before the footer. */
.hd-crt ~ .hd-abc {
	padding-bottom: calc(76 * var(--u));
}

/* === Tablets. === */

@media (max-width: 1139.98px) {
	.hd-crt-list {
		column-gap: calc(32 * var(--u));
		padding-inline: calc(24 * var(--u));
	}
}

@media (max-width: 991.98px) {
	.hd-cdk-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: calc(20 * var(--u));
	}

	.hd-cdk-text {
		max-width: calc(620 * var(--u));
	}

	.hd-cdk-art {
		width: 100%;
		max-width: calc(600 * var(--u));
		margin-inline: auto;
	}

	.hd-cwy-list,
	.hd-cwy-list.is-2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.hd-cwy-card {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: calc(2 * var(--u)) calc(18 * var(--u));
		padding: calc(22 * var(--u)) calc(24 * var(--u));
	}

	.hd-cwy-head {
		display: contents;
	}

	.hd-cwy-ic {
		grid-column: 1;
		grid-row: 1 / 4;
		align-self: start;
	}

	.hd-cwy-label {
		grid-column: 2;
		grid-row: 1;
		font-size: calc(13.5 * var(--u));
	}

	.hd-cwy-value {
		grid-column: 2;
		grid-row: 2;
		margin: 0;
	}

	.hd-cwy-text {
		grid-column: 2;
		grid-row: 3;
		margin: 0;
	}

	.hd-cwy-go {
		grid-column: 3;
		grid-row: 1 / 4;
		margin: 0;
	}

	.hd-cfm {
		padding-top: calc(56 * var(--u));
	}

	.hd-cfm-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hd-crt {
		padding-top: calc(60 * var(--u));
	}

	.hd-crt-list {
		grid-template-columns: minmax(0, 1fr);
		padding: calc(4 * var(--u)) calc(24 * var(--u));
	}

	.hd-crt-list li:nth-child(n) {
		border-top: 1px solid var(--hd-ct-rule);
	}

	.hd-crt-list li:first-child {
		border-top: 0;
	}
}

/* === Phones: px of the design at 390px wide, times --p. === */

@media (max-width: 575.98px) {
	.hd-cdk {
		padding: calc(22 * var(--p)) 0 calc(18 * var(--p));
	}

	.hd-cdk-title {
		font-size: calc(36 * var(--p));
	}

	.hd-cdk-lead {
		margin-top: calc(8 * var(--p));
		font-size: calc(15 * var(--p));
		line-height: 2;
	}

	.hd-cdk-cta {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: calc(10 * var(--p));
		margin-top: calc(18 * var(--p));
	}

	.hd-cdk-cta .button {
		gap: calc(9 * var(--p));
		min-height: max(calc(50 * var(--p)), 44px);
		padding-inline: calc(12 * var(--p));
		font-size: calc(15 * var(--p));
	}

	.hd-cdk-cta .button:only-child {
		grid-column: 1 / -1;
	}

	.hd-cdk-bi svg {
		width: calc(18 * var(--p));
		height: calc(18 * var(--p));
	}

	.hd-cdk-tel bdi {
		font-size: calc(16 * var(--p));
	}

	/* The short items in even columns, each its icon over its words: in a
	   wrapping row the third one stood alone under the other two. */
	.hd-cdk-hours {
		display: grid;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		gap: calc(8 * var(--p));
		margin-top: calc(18 * var(--p));
	}

	.hd-cdk-hours li,
	.hd-cdk-hours a {
		flex-direction: column;
		justify-content: flex-start;
		gap: calc(7 * var(--p));
		text-align: center;
	}

	.hd-cdk-hi {
		width: calc(30 * var(--p));
		height: calc(30 * var(--p));
	}

	.hd-cdk-hi svg {
		width: calc(15 * var(--p));
		height: calc(15 * var(--p));
	}

	.hd-cdk-ht {
		font-size: calc(13 * var(--p));
	}

	.hd-cdk-art {
		margin-top: calc(6 * var(--p));
	}

	.hd-cwy {
		padding: calc(6 * var(--p)) 0 0;
	}

	.hd-cwy-list {
		gap: calc(10 * var(--p));
	}

	.hd-cwy-card {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 0 calc(14 * var(--p));
		padding: calc(16 * var(--p)) calc(16 * var(--p)) calc(12 * var(--p));
		border-radius: calc(22 * var(--p));
	}

	.hd-cwy-ic,
	.hd-cfm-ic,
	.hd-cfm-ai,
	.hd-crt-ic {
		width: calc(44 * var(--p));
		height: calc(44 * var(--p));
		border-radius: calc(14 * var(--p));
	}

	.hd-cwy-ic svg,
	.hd-cfm-ic svg,
	.hd-cfm-ai svg {
		width: calc(22 * var(--p));
		height: calc(22 * var(--p));
	}

	.hd-cwy-label {
		font-size: calc(12.5 * var(--p));
	}

	.hd-cwy-value {
		font-size: calc(19 * var(--p));
	}

	.hd-cwy-value.is-num {
		font-size: calc(24 * var(--p));
		letter-spacing: calc(1 * var(--p));
	}

	.hd-cwy-value.is-lat {
		font-size: calc(18 * var(--p));
	}

	.hd-cwy-text {
		font-size: calc(13 * var(--p));
		line-height: 1.9;
	}

	.hd-cwy-go {
		grid-column: 2;
		grid-row: 4;
		gap: calc(6 * var(--p));
		margin-top: calc(2 * var(--p));
		font-size: calc(14 * var(--p));
	}

	.hd-cwy-go::after {
		width: calc(16 * var(--p));
		height: calc(16 * var(--p));
	}

	.hd-cfm {
		padding-top: calc(52 * var(--p));
	}

	.hd-cfm-grid {
		gap: calc(14 * var(--p));
	}

	.hd-cfm-card,
	.hd-cfm-office {
		border-radius: calc(22 * var(--p));
	}

	.hd-cfm-card {
		padding: calc(20 * var(--p)) calc(16 * var(--p)) calc(18 * var(--p));
	}

	.hd-cfm-head {
		gap: calc(12 * var(--p));
		margin-bottom: calc(16 * var(--p));
	}

	.hd-cfm-title {
		font-size: calc(19 * var(--p));
	}

	.hd-cfm-sub {
		font-size: calc(13 * var(--p));
	}

	.hd-cfm-msg {
		margin-bottom: calc(14 * var(--p));
		padding: calc(10 * var(--p)) calc(14 * var(--p));
		border-radius: calc(14 * var(--p));
		font-size: calc(13.5 * var(--p));
	}

	.hd-cfm-fields {
		grid-template-columns: minmax(0, 1fr);
		gap: calc(14 * var(--p));
	}

	.hd-cfm-f {
		gap: calc(6 * var(--p));
	}

	.hd-cfm-f.is-cap {
		grid-column: auto;
	}

	.hd-cfm-l {
		font-size: calc(13 * var(--p));
	}

	/* 16px at least: a smaller field makes the phone zoom in on it. */
	.hd-cfm-in {
		min-height: max(calc(52 * var(--p)), 44px);
		padding: 0 calc(16 * var(--p));
		border-radius: calc(14 * var(--p));
		font-size: max(calc(15 * var(--p)), 16px);
	}

	textarea.hd-cfm-in {
		min-height: calc(130 * var(--p));
		padding: calc(12 * var(--p)) calc(16 * var(--p));
	}

	.hd-cfm .hd-cap-box {
		min-height: max(calc(54 * var(--p)), 48px);
		border-radius: calc(14 * var(--p));
	}

	.hd-cfm-send.button {
		gap: calc(9 * var(--p));
		min-height: max(calc(54 * var(--p)), 48px);
		font-size: calc(15.5 * var(--p));
	}

	.hd-cfm-send svg {
		width: calc(19 * var(--p));
		height: calc(19 * var(--p));
	}

	.hd-cfm-note {
		gap: calc(8 * var(--p));
		margin-top: calc(16 * var(--p));
		padding-top: calc(12 * var(--p));
		font-size: calc(12.5 * var(--p));
	}

	.hd-cfm-ni svg {
		width: calc(16 * var(--p));
		height: calc(16 * var(--p));
	}

	.hd-cfm-office {
		padding: calc(8 * var(--p));
	}

	.hd-cfm-map {
		height: calc(170 * var(--p));
		border-radius: calc(16 * var(--p));
	}

	.hd-cfm-map .hd-map-pin {
		width: calc(28 * var(--p));
	}

	.hd-cfm-map::after {
		width: calc(40 * var(--p));
		height: calc(16 * var(--p));
		margin: calc(-8 * var(--p)) 0 0 calc(-20 * var(--p));
	}

	.hd-cfm-map .hd-map-chip {
		gap: calc(6 * var(--p));
		padding: 0 calc(12 * var(--p));
		border-radius: calc(11 * var(--p));
		font-size: calc(12.5 * var(--p));
	}

	.hd-cfm-map .hd-map-links {
		top: calc(10 * var(--p));
		inset-inline-start: calc(10 * var(--p));
	}

	.hd-cfm-ob {
		padding: calc(16 * var(--p)) calc(8 * var(--p)) calc(4 * var(--p));
	}

	.hd-cfm-addr {
		gap: calc(12 * var(--p));
		font-size: calc(14 * var(--p));
	}

	.hd-cfm-addr small {
		font-size: calc(12.5 * var(--p));
	}

	.hd-cfm-soct {
		margin-top: calc(16 * var(--p));
		padding-top: calc(12 * var(--p));
		font-size: calc(13 * var(--p));
	}

	.hd-cfm-soc a {
		gap: calc(10 * var(--p));
		padding: calc(8 * var(--p)) calc(10 * var(--p));
		border-radius: calc(14 * var(--p));
	}

	.hd-cfm-si {
		width: calc(40 * var(--p));
		height: calc(40 * var(--p));
		border-radius: calc(12 * var(--p));
	}

	.hd-cfm-st b {
		font-size: calc(13.5 * var(--p));
	}

	.hd-cfm-st small {
		font-size: max(calc(12 * var(--p)), 10px);
	}

	.hd-cfm-sh {
		font-size: calc(12 * var(--p));
	}

	.hd-crt {
		padding: calc(52 * var(--p)) 0 calc(28 * var(--p));
	}

	.hd-crt-head {
		display: block;
	}

	.hd-crt-title {
		font-size: calc(23 * var(--p));
		line-height: 1.55;
	}

	.hd-crt-sub {
		margin: calc(4 * var(--p)) 0 0;
		font-size: calc(14 * var(--p));
	}

	.hd-crt-list {
		margin-top: calc(16 * var(--p));
		padding: calc(2 * var(--p)) calc(16 * var(--p));
		border-radius: calc(22 * var(--p));
	}

	/* The task and the arrow share the first row and the line runs under both,
	   the icon beside the two rows: beside the arrow the line had a third less
	   room and ran to four or five lines on the narrowest phones. */
	.hd-crt-item {
		grid-template-areas: "ic t go" "ic s s";
		align-items: start;
		gap: calc(2 * var(--p)) calc(12 * var(--p));
		padding: calc(14 * var(--p)) 0;
	}

	.hd-crt-tx {
		display: contents;
	}

	.hd-crt-ic {
		grid-area: ic;
	}

	.hd-crt-t {
		grid-area: t;
		align-self: center;
	}

	.hd-crt-s {
		grid-area: s;
	}

	.hd-crt-go {
		grid-area: go;
		align-self: center;
	}

	.hd-crt-ic {
		width: calc(42 * var(--p));
		height: calc(42 * var(--p));
		min-width: 40px;
		min-height: 40px;
		border-radius: calc(13 * var(--p));
	}

	.hd-crt-ic svg {
		width: calc(20 * var(--p));
		height: calc(20 * var(--p));
	}

	.hd-crt-t {
		font-size: calc(15 * var(--p));
	}

	.hd-crt-s {
		font-size: max(calc(12.5 * var(--p)), 11px);
		line-height: 1.8;
	}

	/* The pill keeps its arrow; its words are read, not shown. */
	.hd-crt-go {
		width: max(calc(38 * var(--p)), 36px);
		min-height: max(calc(38 * var(--p)), 36px);
		padding: 0;
	}

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

	.hd-crt ~ .hd-abc {
		padding-bottom: calc(56 * var(--p));
	}
}

@media (prefers-reduced-motion: reduce) {
	.hd-cfm-map::after {
		animation: none;
	}

	.hd-cwy-go::after,
	.hd-crt-go::before,
	.hd-crt-t {
		transition: none;
	}
}

/* contact-desk scene: generated by dev/tools/scenes/contact-desk.py, do not edit */

/*
 * What moves on the front desk of contact-desk (template/contact/parts/desk-layers.php, over
 * assets/img/contact-desk.svg), each a child of the root <svg>: the second hand turns once a
 * minute round the centre of the clock; in a loop of 9 seconds the question comes in, then the
 * status of the ticket turns blue with a tick and the answer comes in under the question, and
 * all three go out together at its end; every 4 seconds the handset jiggles and the two rings
 * of the phone open out; the steam of the mug rises and the mail chip bobs. Transform and
 * opacity only. They pause off screen (data-hd="anim") and, with less motion, stand still in
 * their base style: the question, the answer and the blue status shown, the rings drawn.
 */
.hd-cdk .hd-cdk-sec {
	transform-box: view-box;
	transform-origin: 452px 112px;
	animation: hd-cdk-spin 60s linear infinite;
}

.hd-cdk .hd-cdk-q {
	animation: hd-cdk-ask 9s ease-out infinite;
}

.hd-cdk .hd-cdk-ok {
	transform-box: fill-box;
	transform-origin: center;
	animation: hd-cdk-pop 9s ease-out infinite;
}

.hd-cdk .hd-cdk-a {
	transform-box: fill-box;
	transform-origin: 50% 0;
	animation: hd-cdk-reply 9s cubic-bezier(.2, .7, .2, 1) infinite;
}

.hd-cdk .hd-cdk-hs {
	transform-box: fill-box;
	transform-origin: 50% 100%;
	animation: hd-cdk-jig 4s ease-in-out infinite;
}

.hd-cdk .hd-cdk-ring,
.hd-cdk .hd-cdk-ring2 {
	transform-box: fill-box;
	transform-origin: 0 100%;
	animation: hd-cdk-ring 4s ease-out infinite;
}

.hd-cdk .hd-cdk-ring2 {
	animation-delay: .18s;
}

.hd-cdk .hd-cdk-steam,
.hd-cdk .hd-cdk-steam2 {
	transform-box: fill-box;
	animation: hd-cdk-steam 3.2s ease-in-out infinite;
}

.hd-cdk .hd-cdk-steam2 {
	animation-delay: 1.1s;
}

.hd-cdk .hd-cdk-float {
	animation: hd-cdk-bob 6s ease-in-out infinite;
}

@keyframes hd-cdk-spin {
	to { transform: rotate(360deg); }
}

@keyframes hd-cdk-ask {
	0% { opacity: 0; transform: translateY(8px); }
	6%, 90% { opacity: 1; transform: none; }
	97%, 100% { opacity: 0; }
}

@keyframes hd-cdk-pop {
	0%, 40% { opacity: 0; transform: scale(.6); }
	45% { opacity: 1; transform: scale(1.12); }
	49%, 88% { opacity: 1; transform: none; }
	95%, 100% { opacity: 0; }
}

@keyframes hd-cdk-reply {
	0%, 34% { opacity: 0; transform: translateY(8px); }
	42%, 88% { opacity: 1; transform: none; }
	95%, 100% { opacity: 0; }
}

@keyframes hd-cdk-jig {
	0%, 30%, 100% { transform: none; }
	4% { transform: rotate(-3deg) translateY(-2px); }
	8% { transform: rotate(3deg) translateY(-2px); }
	12% { transform: rotate(-2deg) translateY(-1px); }
	16% { transform: none; }
}

@keyframes hd-cdk-ring {
	0%, 100% { opacity: 0; transform: scale(.8); }
	8% { opacity: 1; transform: scale(1); }
	26% { opacity: 0; transform: scale(1.15); }
}

@keyframes hd-cdk-steam {
	0% { opacity: 0; transform: translateY(6px); }
	40% { opacity: 1; }
	100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes hd-cdk-bob {
	0%, 100% { transform: none; }
	50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
	.hd-cdk :is(.hd-cdk-sec, .hd-cdk-q, .hd-cdk-ok, .hd-cdk-a, .hd-cdk-hs, .hd-cdk-ring, .hd-cdk-ring2, .hd-cdk-steam, .hd-cdk-steam2, .hd-cdk-float) {
		animation: none;
	}
}

/* Forced colours: the drawing is a picture and keeps its colours, as an image would. */
@media (forced-colors: active) {
	.hd-cdk .hd-cdk-art {
		forced-color-adjust: none;
	}
}

/* end of contact-desk scene */
