.tdb-hdr .tdb-logo > .tdb-header-wordmark {
	display: block;
	width: clamp(100px, 12vw, 155px);
	height: clamp(44px, 5vw, 56px);
	object-fit: contain;
	object-position: right center;
}

.tdb-ftr ~ i.backtotop {
	display: none;
}

.tdb-team .tdb-people {
	display: grid;
	grid-template-columns: repeat(var(--tdb-team-columns, 1), minmax(0, 1fr));
}

.tdb-people--2 { --tdb-team-columns: 2; }
.tdb-people--3 { --tdb-team-columns: 3; }

.tdb-team .tdb-people > li > :is(a, .tdb-team-card) {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 100%;
	padding: 18px 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .35);
	text-align: center;
}

.tdb-team .tdb-people > li > a {
	transition: background-color .2s ease;
}

.tdb-team .tdb-people > li > a:is(:hover, :focus-visible) {
	background: rgba(255, 255, 255, .6);
}

.tdb-team .tdb-people > li img {
	width: min(120px, 100%);
	height: auto;
	aspect-ratio: 1;
	border: 4px solid var(--tdb-navy);
	border-radius: 50%;
	object-fit: cover;
}

.tdb-team .tdb-people--1 > li > :is(a, .tdb-team-card) {
	padding-block: clamp(26px, 5vw, 42px);
}

.tdb-team .tdb-people--1 > li img {
	width: min(132px, 100%);
}

.tdb-page .tdb-team .tdb-people--1 h3 {
	font-size: clamp(21px, 2.2vw, 27px);
}

.tdb-team .tdb-team-in > div > p:empty {
	display: none;
}

.tdb-shero .masih-portrait {
	justify-self: center;
	width: min(100%, 480px);
	margin: 0;
	padding: 5px;
	border: 1px solid color-mix(in srgb, var(--tdb-gold-d) 36%, #fff);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 16px 32px rgba(16, 44, 82, .12);
}

.tdb-shero .masih-portrait img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	border-radius: 11px;
	object-fit: cover;
	object-position: center 40%;
}

.tdb-page .tdb-bio-side > img {
	display: block;
	width: min(100%, 160px);
	height: auto;
	aspect-ratio: 1;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
}

@media (min-width: 1025px) {
	.tdb-shero.masih-contact-intro .tdb-shero-in {
		grid-template-areas: 'intro form' 'portrait form';
		align-items: start;
		row-gap: 22px;
	}

	.masih-contact-intro .tdb-shero-in > div {
		grid-area: intro;
	}

	.masih-contact-intro .tdb-shero-in > .tdb-form {
		grid-area: form;
		align-self: center;
	}

	.tdb-shero.masih-contact-intro .masih-portrait {
		grid-area: portrait;
		justify-self: start;
		width: min(100%, 420px);
	}
}

.tdb-trustsec .tdb-reviews--existing {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tdb-page .tdb-services {
	position: relative;
	padding-bottom: 44px;
	background: var(--tdb-navy);
}

.tdb-services > .tdb-services-art {
	position: absolute;
	bottom: 0;
	left: 0;
	width: clamp(140px, 19vw, 280px);
	height: auto;
	pointer-events: none;
}

.tdb-services > .tdb-wrap {
	position: relative;
}

.tdb-page .tdb-services > .tdb-notch {
	position: absolute;
	inset-inline: 0;
	top: calc(100% - 1px);
	z-index: 2;
	width: 150px;
	height: 46px;
	margin: 0 auto;
	border-radius: 0 0 75px 75px / 0 0 46px 46px;
	background: var(--tdb-navy);
}

.tdb-services > .tdb-notch::before {
	display: none;
}

.tdb-services > .tdb-notch img {
	top: -24px;
	padding: 6px;
	background: var(--tdb-ink);
	object-fit: contain;
}

.tdb-cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.tdb-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 22px 14px 18px;
	border: 1px solid var(--tdb-gold);
	border-radius: 12px;
	background: linear-gradient(180deg, var(--tdb-navy-3), var(--tdb-navy));
	text-align: center;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.tdb-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.tdb-card img {
	width: auto;
	height: 38px;
}

.tdb-page .tdb-card h3 {
	color: #fff;
	font-size: 17px;
	text-shadow: 0 0 14px rgba(255, 255, 255, .45);
}

.tdb-card p {
	flex: 1;
	color: #aebbc7;
	font-size: 14px;
	line-height: 1.8;
}

.tdb-consult {
	margin-top: 28px;
	text-align: center;
	color: #c3ccd5;
}

.tdb-consult .tdb-btn {
	margin: 8px 8px 0;
}

.tdb-page .tdb-card .tdb-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	margin-block-start: auto;
	padding: 6px 14px;
	border: 1px solid #657487;
	border-radius: 999px;
	color: #fff;
	font: 14px/1.4 var(--tdb-font-m);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.tdb-card .tdb-pill::after {
	width: 7px;
	height: 7px;
	flex: none;
	border: solid currentColor;
	border-width: 0 0 1.5px 1.5px;
	transform: rotate(45deg);
	content: '';
}

.tdb-page .tdb-card:is(:hover, :focus-visible) .tdb-pill {
	color: var(--tdb-navy);
	border-color: var(--tdb-gold);
	background: var(--tdb-gold);
}

.tdb-page .tdb-special a:focus-visible,
.tdb-page .tdb-samples a:focus-visible {
	border-color: var(--tdb-gold);
	background: rgba(242, 187, 102, .08);
}

.tdb-page :is(.tdb-btn, .tdb-card, .tdb-post, .tdb-special a, .tdb-samples a, .tdb-people a):focus-visible,
.tdb-hdr :is(a, summary):focus-visible,
.tdb-callbar a:focus-visible {
	outline: 2px solid var(--tdb-gold-d);
	outline-offset: 3px;
}

.tdb-page :is(.tdb-dark, .tdb-offer, .tdb-offer-card) :is(a, button):focus-visible {
	outline-color: var(--tdb-gold);
}

.tdb-page .tdb-post {
	min-width: 0;
}

.tdb-page .tdb-post:is(:hover, :focus-visible) h3 {
	color: var(--tdb-gold);
}

.tdb-page .tdb-post time {
	color: #c3ccd5;
}

.tdb-page .tdb-post-excerpt {
	display: -webkit-box;
	min-block-size: 3.3em;
	max-block-size: 3.3em;
	margin: 0;
	padding-inline: 4px;
	overflow: hidden;
	color: #e0e7ef;
	font-size: 14px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tdb-faq details > summary {
	padding-inline: 18px;
}

.tdb-faq details > summary::after {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff1d8;
	color: var(--tdb-navy);
}

.tdb-faq details > summary:focus-visible {
	outline: 2px solid var(--tdb-gold-d);
	outline-offset: -4px;
	border-radius: 10px;
}

#contract-request,
#notice-request,
.tdb-notice-topic {
	scroll-margin-block-start: 90px;
}

.tdb-notice-topic {
	margin-top: 20px;
}

@media (max-width: 1024px) {
	.tdb-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tdb-callbar:has(> :nth-child(3)) {
		grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
	}

	.tdb-callbar:has(> :nth-child(3)) .tdb-btn {
		padding-inline: 6px;
		font-size: clamp(12px, 3.6vw, 15px);
	}

	.tdb-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.tdb-card {
		gap: 10px;
		padding: 16px 8px 14px;
	}

	.tdb-card img {
		height: 30px;
	}

	.tdb-page .tdb-card h3 {
		display: flex;
		flex: 1;
		align-items: center;
		font-size: 16px;
	}

	.tdb-card p {
		display: none;
	}

	.tdb-page .tdb-card .tdb-pill {
		min-height: 36px;
		padding: 4px 10px;
	}
}

@media (max-width: 540px) {
	.tdb-team .tdb-people,
	.tdb-trustsec .tdb-reviews--existing {
		grid-template-columns: 1fr;
	}

	.tdb-services > .tdb-services-art {
		opacity: .4;
	}

	.tdb-team .tdb-people > li img {
		width: min(112px, 100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tdb-page :is(.tdb-btn, .tdb-card, .tdb-card .tdb-pill, .tdb-team .tdb-people > li > a) {
		transition: none;
	}

	.tdb-page :is(.tdb-btn, .tdb-card):hover {
		transform: none;
	}
}
