/* One shared content edge for the homepage; card padding stays internal. */
.dd-home-page {
	--dd-home-max-width: 1440px;
	--dd-home-gutter: 32px;
}

.dd-home-page #main-content > section > .container-fluid,
.dd-home-page .dd-home-shell,
.dd-home-page #main-content > .dd-clinic-slot,
.dd-home-page .footer.footer-modern .footer-top > .container-fluid,
.dd-home-page .footer.footer-modern .footer-bottom > .container-fluid,
.dd-home-page .header .header-nav {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--dd-home-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--dd-home-gutter);
	padding-right: var(--dd-home-gutter);
}

.dd-home-page .dd-home-editorial,
.dd-home-page .dd-home-faq {
	padding-left: 0;
	padding-right: 0;
}

.dd-home-page .dd-home-editorial__inner,
.dd-home-page .dd-home-hero .banner-wrapper--wide {
	max-width: none;
	width: 100%;
}

/* Additional aggregate counts in the existing homepage footer pulse. */
.dd-home-page .dd-home-pulse__row { padding-inline: 140px; }
@media (max-width: 767px) {
	/* Leave the floating support controls below the wrapped counters. */
	.dd-home-page .dd-home-pulse { padding-bottom: 145px; }
	.dd-home-page .dd-home-pulse__row { padding-inline: 0; }
}
.dd-home-pulse__chip--blog .dd-home-pulse__chip-tag,
.dd-home-pulse__chip--blog.dd-home-pulse__chip--alert strong { color: #7250bb; }
.dd-home-pulse__chip--login .dd-home-pulse__chip-tag,
.dd-home-pulse__chip--login strong { color: #15558d; }
.dd-home-pulse__chip--patients .dd-home-pulse__chip-tag,
.dd-home-pulse__chip--patients strong { color: #087d73; }

/* Align the open benefits row with the three existing doctor cards below. */
.dd-home-page .dd-home-benefits {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.dd-home-page .dd-home-benefits li {
	gap: 9px;
	padding: 0 10px;
	border: 1px solid transparent;
}
.dd-home-page .dd-home-benefits li:not(:last-child) { border-right-color: #c6d5e9; }
.dd-home-page .dd-home-benefits li > span:last-child { min-width: 0; }
.dd-home-page .dd-home-benefits li strong { white-space: normal; font-size: 12px; min-height: 3.1em; }
.dd-home-page .dd-home-benefits__icon { flex-basis: 34px; height: 34px; font-size: 16px; }

/* Compact labels echo the specialist label beside the hero illustration. */
.dd-home-doctor-tools {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 20px 0 0;
}

.dd-home-doctor-tools__item {
	--tool-color: #086e9d;
	--tool-tint: #e6f5fc;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	gap: 9px;
	min-width: 0;
	min-height: 44px;
	padding: 12px 10px;
	border: 1px solid #fff;
	border-radius: 16px;
	background: #fffffff5;
	box-shadow: 0 8px 24px #2149690c;
	text-align: left;
	text-decoration: none;
	transition: box-shadow .2s ease, border-color .2s ease;
}

/* Sweep light inside the stationary label without moving the card. */
.dd-home-doctor-tools__item::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 45%;
	background: linear-gradient(105deg, transparent, var(--tool-tint), transparent);
	opacity: .65;
	pointer-events: none;
	animation: dd-doctor-label-shine 6s ease-in-out infinite;
	animation-delay: inherit;
}
.dd-home-doctor-tools__icon,
.dd-home-doctor-tools__copy { position: relative; }

.dd-home-doctor-tools__item--publishing {
	--tool-color: #7250bb;
	--tool-tint: #f0eafa;
	animation-delay: -2s;
}

.dd-home-doctor-tools__item--soon {
	--tool-color: #087d73;
	--tool-tint: #e3f5ee;
	animation-delay: -4s;
}

.dd-home-doctor-tools__icon {
	display: grid;
	place-items: center;
	flex: 0 0 34px;
	height: 34px;
	border-radius: 11px;
	color: var(--tool-color);
	background: var(--tool-tint);
	font-size: 16px;
}

.dd-home-doctor-tools__copy { min-width: 0; flex: 1; }
.dd-home-doctor-tools__copy strong {
	display: block;
	color: #173e60;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}
.dd-home-doctor-tools__copy small {
	display: block;
	margin: 0 0 4px;
	color: #647f91;
	font-size: 8px;
	font-weight: 600;
	letter-spacing: .8px;
	text-transform: uppercase;
	line-height: 1.5;
}
.dd-home-doctor-tools__copy .dd-home-doctor-tools__status { color: #087d73; }
a.dd-home-doctor-tools__item:hover {
	border-color: #d8e7f1;
	box-shadow: 0 10px 26px #21496919;
	text-decoration: none;
}
a.dd-home-doctor-tools__item:hover strong { color: var(--tool-color); }
a.dd-home-doctor-tools__item:focus-visible { outline: 3px solid var(--tool-color); outline-offset: 3px; }
.dd-home-doctor-tools:hover .dd-home-doctor-tools__item::before,
.dd-home-doctor-tools:focus-within .dd-home-doctor-tools__item::before { animation-play-state: paused; }

@keyframes dd-doctor-label-shine {
	0%, 12% { transform: translateX(-150%) skewX(-12deg); }
	52%, 100% { transform: translateX(330%) skewX(-12deg); }
}

@media (prefers-reduced-motion: reduce) {
	.dd-home-doctor-tools__item { animation: none; transition: none; }
	.dd-home-doctor-tools__item::before { animation: none; opacity: 0; }
}

@media (min-width: 768px) and (max-width: 1100px) {
	.dd-home-page .dd-home-benefits { gap: 7px; }
	.dd-home-page .dd-home-benefits li { padding: 0 8px; gap: 6px; }
	.dd-home-page .dd-home-benefits__icon { flex-basis: 28px; width: 28px; height: 28px; font-size: 14px; }
	.dd-home-page .dd-home-benefits li strong { font-size: 11px; }
	.dd-home-doctor-tools { gap: 7px; margin-top: 16px; }
	.dd-home-doctor-tools__item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 8px; border-radius: 13px; }
	.dd-home-doctor-tools__icon { flex: 0 0 28px; width: 28px; height: 28px; font-size: 14px; }
	.dd-home-doctor-tools__copy strong { font-size: 11px; }
	.dd-home-doctor-tools__copy small { font-size: 7px; letter-spacing: .4px; }
}

@media (max-width: 991.98px) {
	.dd-home-page { --dd-home-gutter: 24px; }
}

@media (max-width: 767.98px) {
	.dd-home-page { --dd-home-gutter: 16px; }
	.dd-home-doctor-tools { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
	.dd-home-doctor-tools__item { padding: 9px 12px; gap: 10px; border-radius: 14px; }
	.dd-home-doctor-tools__copy strong { font-size: 13px; }
	.dd-home-doctor-tools__icon { flex-basis: 34px; height: 34px; font-size: 16px; }
}

/* Keep all three labels clear of the support widget on short phone screens. */
@media (max-width: 767.98px) and (max-height: 700px) {
	.dd-home-page .dd-home-hero.section { padding-top: 20px; }
	.dd-home-page .dd-home-hero .banner-header h1 { font-size: clamp(24px, 7.7vw, 28px); line-height: 1.2; margin: 12px 0; }
	.dd-home-page .dd-home-hero .banner-header .dd-hero-subtitle { font-size: 13px; line-height: 1.6; }
	.dd-home-doctor-tools { margin-top: 14px; }
}
