/**
 * Migration route articles — extends blog single (.dr-blog-article / .dr-prose).
 */

/* Compact hero: clear fixed header + modest breathing room (not 22vw image hero padding) */
.dr-migration-route-page #blog_banner.details.dr-blog-hero {
	padding-top: calc(var(--dr-main-top-padding) + 24px);
	padding-bottom: 32px;
}

/* Sticky sidebar needs visible overflow (global #about uses overflow:hidden). */
#about.dr-blog-article.dr-route-article-wrap {
	overflow: visible;
}

.dr-migration-route-page .dr-route-article-wrap .dr-route-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: start;
	margin-left: 0;
	margin-right: 0;
}

@media (min-width: 992px) {
	.dr-migration-route-page .dr-route-article-wrap .dr-route-layout {
		grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
		column-gap: 32px;
	}
}

.dr-migration-route-page .dr-route-article,
.dr-migration-route-page .dr-route-sidebar {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	flex: none;
	float: none;
}

.dr-route-article-wrap {
	padding-top: 40px;
	padding-bottom: 56px;
}

.dr-route-article {
	min-width: 0;
}

.dr-route-article__deck {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--dr-text-secondary);
	margin-bottom: 1.25rem;
}

.dr-route-article__deck--lead {
	font-size: 1.2rem;
	line-height: 1.7;
	color: var(--dr-text-primary);
	margin-bottom: 1rem;
}

.dr-route-article__figure {
	margin: 0 0 2rem;
	padding: 0;
	max-width: 100%;
	overflow: hidden;
}

.dr-route-article__figure img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid color-mix(in srgb, var(--dr-primary) 12%, #e8f5f3);
	box-shadow: 0 8px 28px rgba(13, 148, 136, 0.1);
}

.dr-route-article__figure figcaption {
	margin-top: 10px;
	font-size: 0.8125rem;
	color: var(--dr-text-secondary);
	text-align: center;
}

#about.dr-blog-article .dr-route-article h2 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--dr-primary-dark);
	padding-bottom: 0.35rem;
	border-bottom: 2px solid color-mix(in srgb, var(--dr-primary) 20%, transparent);
}

#about.dr-blog-article .dr-route-article h2:first-of-type {
	margin-top: 0.5rem;
}

#about.dr-blog-article .dr-route-article h2[id] {
	scroll-margin-top: calc(var(--dr-scroll-margin-top, 72px) + 20px);
}

.dr-route-article__features li {
	margin-bottom: 0.65rem;
}

.dr-route-article__features strong {
	color: var(--dr-text-primary);
}

.dr-route-article__tagline {
	font-size: 1.0625rem;
	color: var(--dr-primary-dark);
}

.dr-route-article__back {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix(in srgb, var(--dr-primary) 12%, #eee);
}

.dr-route-article__back a {
	font-weight: 600;
	color: var(--dr-primary-dark);
	text-decoration: none;
}

.dr-route-article__back a:hover {
	text-decoration: underline;
}

/* Sidebar — no position:sticky (it caused CTAs/TOC to sit on top of the hero image while scrolling). */
.dr-route-sidebar {
	margin-top: 0;
}

.dr-route-sidebar__stack {
	position: relative;
	z-index: 1;
}

.dr-route-sidebar__card {
	padding: 22px 20px;
	margin-bottom: 20px;
	border-radius: 14px;
	background: var(--dr-bg-light-paper);
	border: 1px solid color-mix(in srgb, var(--dr-primary) 14%, #e8f5f3);
	box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}

.dr-route-sidebar__stack .dr-route-sidebar__card:last-child {
	margin-bottom: 0;
}

.dr-route-sidebar__card--muted {
	background: color-mix(in srgb, var(--dr-primary) 4%, white);
	box-shadow: none;
}

.dr-route-sidebar__label {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dr-text-secondary);
}

.dr-route-sidebar__route {
	margin: 0 0 10px;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--dr-text-primary);
}

.dr-route-sidebar__text {
	margin: 0 0 16px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--dr-text-secondary);
}

.dr-route-sidebar__cta {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dr-route-sidebar__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 12px 24px;
	margin: 0;
	float: none;
	font-family: "Montserrat", sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	text-align: center;
	color: #fff;
	background: linear-gradient(135deg, var(--dr-primary) 0%, var(--dr-primary-dark) 100%);
	border: none;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
}

.dr-route-sidebar__cta-btn:hover,
.dr-route-sidebar__cta-btn:focus {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(13, 148, 136, 0.32);
}

.dr-route-sidebar__cta-btn--outline {
	color: var(--dr-primary-dark);
	background: transparent;
	border: 2px solid var(--dr-primary);
	box-shadow: none;
}

.dr-route-sidebar__cta-btn--outline:hover,
.dr-route-sidebar__cta-btn--outline:focus {
	color: #fff;
	background: var(--dr-primary);
	box-shadow: 0 8px 20px rgba(13, 148, 136, 0.2);
}

.dr-route-sidebar__toc {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.875rem;
	line-height: 1.5;
	list-style: disc;
}

.dr-route-sidebar__toc li {
	margin-bottom: 0.5rem;
	display: list-item;
}

.dr-route-sidebar__toc a {
	color: var(--dr-primary-dark);
	text-decoration: none;
	display: inline;
}

.dr-route-sidebar__toc a:hover {
	text-decoration: underline;
}

@media (max-width: 991px) {
	.dr-route-sidebar {
		margin-top: 8px;
	}
}

@media (max-width: 767px) {
	.dr-migration-route-page #blog_banner.details.dr-blog-hero {
		padding-top: calc(var(--dr-main-top-padding) + 16px);
		padding-bottom: 24px;
	}

	.dr-route-article-wrap {
		padding-top: 28px;
		padding-bottom: 40px;
	}

	#about.dr-blog-article .dr-route-article h2 {
		font-size: 1.25rem;
	}

	.dr-route-article__deck {
		font-size: 1rem;
	}

	.dr-route-article__figure {
		margin-bottom: 1.5rem;
	}

	.dr-route-sidebar__card {
		padding: 18px 16px;
	}
}

@media (max-width: 575px) {
	.dr-route-sidebar__route,
	.dr-route-article__figure figcaption {
		word-break: break-word;
		overflow-wrap: anywhere;
	}
}

/* Migration hub topic pages */
.dr-route-article--hub .dr-blog-prose-card ul {
	margin: 0.5rem 0 0;
	padding-left: 1.1rem;
}

.dr-route-article--hub .dr-blog-prose-card--compact ul {
	list-style: none;
	padding-left: 0;
	margin: 0.35rem 0 0;
}

.dr-route-article--hub .dr-blog-prose-card li {
	margin-bottom: 0.35rem;
}

.dr-route-article--hub .dr-blog-prose-card--compact li {
	margin-bottom: 0.2rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--dr-text-secondary);
}

.dr-route-hub__checklist {
	list-style: none;
	padding-left: 0;
	margin: 1rem 0 1.25rem;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem 1.25rem;
}

.dr-route-hub__checklist li {
	position: relative;
	padding-left: 1.35rem;
	margin: 0;
}

.dr-route-hub__checklist li::before {
	content: "\f00c";
	font-family: FontAwesome;
	position: absolute;
	left: 0;
	top: 0.1rem;
	color: var(--dr-primary);
	font-size: 0.85rem;
}

.dr-route-hub-faq {
	margin: 1rem 0 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dr-route-hub-faq__item {
	border: 1px solid color-mix(in srgb, var(--dr-primary) 18%, #e8f5f3);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.dr-route-hub-faq__question {
	cursor: pointer;
	padding: 1rem 1.1rem;
	font-weight: 600;
	color: var(--dr-primary-dark);
	list-style: none;
}

.dr-route-hub-faq__question::-webkit-details-marker {
	display: none;
}

.dr-route-hub-faq__answer {
	padding: 0 1.1rem 1rem;
	color: var(--dr-text-secondary);
}

.dr-route-hub-cta {
	margin: 2.5rem 0 1.5rem;
	padding: 2rem 1.5rem;
	border-radius: 14px;
	text-align: center;
	background: linear-gradient(135deg, color-mix(in srgb, var(--dr-primary) 12%, #fff), #f0fdfa);
	border: 1px solid color-mix(in srgb, var(--dr-primary) 22%, transparent);
}

.dr-route-hub-cta__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	color: var(--dr-primary-dark);
	border: none;
	padding: 0;
}

.dr-route-hub-cta__text {
	margin: 0 0 1.25rem;
	color: var(--dr-text-secondary);
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

.dr-route-hub-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.dr-route-hub-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 1.35rem;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dr-route-hub-cta__btn--primary {
	background: var(--dr-primary);
	color: #fff;
}

.dr-route-hub-cta__btn--primary:hover,
.dr-route-hub-cta__btn--primary:focus-visible {
	background: var(--dr-primary-dark);
	color: #fff;
}

.dr-route-hub-cta__btn--outline {
	border: 2px solid var(--dr-primary);
	color: var(--dr-primary-dark);
	background: #fff;
}

.dr-route-hub-cta__btn--outline:hover,
.dr-route-hub-cta__btn--outline:focus-visible {
	background: color-mix(in srgb, var(--dr-primary) 8%, #fff);
}

@media (max-width: 767px) {
	.dr-route-hub__checklist {
		grid-template-columns: 1fr;
	}

	.dr-route-hub-cta__actions {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dr-route-hub-cta__btn {
		transition: none;
	}
}

/* Migration route split hero (hub topic guides) */
#main.nopadd.dr-migration-route-page--split-hero {
	padding-top: var(--dr-main-top-padding, 72px);
}

.dr-route-split-hero {
	position: relative;
	overflow: hidden;
	background: #eef9f7;
	border-top: 3px solid var(--dr-primary-dark);
	padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 36px);
}

.dr-route-split-hero .dr-article-hero__breadcrumb {
	margin-bottom: 16px;
}

.dr-route-split-hero .dr-article-hero__breadcrumb-item a,
.dr-route-split-hero .dr-article-hero__breadcrumb-item.is-current span {
	color: var(--dr-primary-dark);
}

.dr-route-split-hero .dr-article-hero__breadcrumb-item a:hover {
	color: var(--dr-primary);
}

.dr-route-split-hero .dr-article-hero__breadcrumb-sep {
	color: rgba(15, 23, 42, 0.35);
}

.dr-route-split-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(24px, 3vw, 36px);
	align-items: center;
}

@media (min-width: 992px) {
	.dr-route-split-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: clamp(24px, 3vw, 40px);
	}
}

.dr-route-split-hero__title {
	margin: 0 0 12px;
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--dr-text-primary);
}

.dr-route-split-hero__meta {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--dr-text-secondary);
}

.dr-route-split-hero__body {
	margin: 0 0 16px;
	font-size: clamp(15px, 1.8vw, 17px);
	line-height: 1.65;
	color: var(--dr-text-secondary);
	max-width: 52em;
}

.dr-route-split-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.dr-route-split-hero__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	background: var(--dr-primary);
	color: #fff;
	transition: opacity 0.2s;
}

.dr-route-split-hero__cta-btn:hover {
	opacity: 0.92;
	color: #fff;
}

.dr-route-split-hero__cta-btn--outline {
	background: transparent;
	color: var(--dr-primary-dark);
	border: 2px solid var(--dr-primary);
}

.dr-route-split-hero__cta-btn--outline:hover {
	background: rgba(20, 184, 166, 0.08);
	color: var(--dr-primary-dark);
}

.dr-route-split-hero__visual {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
}

.dr-route-split-hero__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

@media (min-width: 992px) {
	.dr-route-split-hero__visual {
		max-width: 520px;
		margin: 0 auto;
	}
}

@media (max-width: 991px) {
	.dr-route-split-hero__inner {
		align-items: flex-start;
	}

	.dr-route-split-hero__visual {
		max-width: min(100%, 480px);
		margin: 0 auto;
	}

	.dr-route-split-hero__cta-btn {
		flex: 1 1 calc(50% - 6px);
		min-width: 140px;
	}
}

@media (max-width: 575px) {
	.dr-route-split-hero__cta-btn {
		flex: 1 1 100%;
	}
}

.dr-migration-route-page--split-hero .dr-route-article-wrap {
	padding-top: clamp(16px, 2vw, 24px);
}

@media (prefers-reduced-motion: reduce) {
	.dr-route-split-hero__cta-btn {
		transition: none;
	}
}

/* Migration hub process timeline */
.dr-route-hub-process {
	list-style: none;
	margin: 1.25rem 0 2rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	counter-reset: dr-hub-step;
}

.dr-route-hub-process__step {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 0 1rem;
	padding: 0 0 1.5rem;
	position: relative;
}

.dr-route-hub-process__step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 21px;
	top: 44px;
	bottom: 0;
	width: 2px;
	background: color-mix(in srgb, var(--dr-primary) 25%, #e8f5f3);
}

.dr-route-hub-process__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--dr-primary);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.dr-route-hub-process__content {
	min-width: 0;
	padding-top: 0.35rem;
}

.dr-route-hub-process__title {
	margin: 0 0 0.35rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--dr-primary-dark);
}

.dr-route-hub-process__content p {
	margin: 0;
	color: var(--dr-text-secondary);
	line-height: 1.6;
}

@media (max-width: 575px) {
	.dr-route-hub-process__step {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 0 0.75rem;
	}

	.dr-route-hub-process__number {
		width: 36px;
		height: 36px;
		font-size: 0.875rem;
	}

	.dr-route-hub-process__step:not(:last-child)::before {
		left: 17px;
		top: 36px;
	}
}
