/**
 * Editorial listicle runtime.
 *
 * The reference design carries component-level presentation inline. This file
 * contains only the canvas reset, fixed-callbar behavior, interaction states,
 * and accessibility rules shared by every editorial-v1 page.
 */
html {
	scroll-behavior: smooth;
}

body.sp-is-listicle-editorial {
	margin: 0;
	background: #fff;
	padding-bottom: 64px;
	-webkit-font-smoothing: antialiased;
}

body.sp-is-listicle-editorial .sp-listicle-article,
body.sp-is-listicle-editorial .sp-listicle-article > .entry-content {
	margin: 0;
	max-width: none;
	padding: 0;
}

body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] {
	background: #fff;
	color: #141414;
	width: 100%;
}

body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] *,
body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] *::before,
body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] *::after {
	box-sizing: border-box;
}

body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] a {
	color: #141414;
}

body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] a:hover {
	color: #d43a2f;
}

body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] a:focus-visible {
	outline: 2px solid #d43a2f;
	outline-offset: 3px;
}

/* Keep renderer-owned phone actions comfortably keyboard/touch accessible. */
body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] a[data-cta][href^="tel:"] {
	align-items: center;
	display: inline-flex !important;
	justify-content: center;
	min-height: 44px;
}

body.sp-is-listicle-editorial #om-callbar a[data-cta] {
	min-height: 44px;
}

body.sp-is-listicle-editorial #om-callbar {
	display: flex;
}

body.sp-is-listicle-editorial #om-callbar .om-callbar-copy {
	display: block;
}

/*
 * Some legacy state directories were authored as a grid of adjacent blocks.
 * The lossless source port represents that grid as one owned wrapper containing
 * inline children, so restore the original wrap opportunities without adding,
 * removing, or reordering any source text.
 */
body.sp-is-listicle-editorial [data-source-component="directory"] > [data-legacy-classes~="ds-state-links-grid"] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	max-width: 100%;
	min-width: 0;
}

/*
 * The lossless source port retains paragraph boundaries as blank lines inside
 * several legacy text containers. Normal white-space collapsing erased those
 * boundaries visually and produced dense walls of copy. Restore only the
 * source-authored line breaks in prose-bearing blocks; CTA/layout wrappers are
 * intentionally excluded so their responsive topology remains unchanged.
 */
body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] [data-source-owned="legacy-visible-v1"][data-source-block-role="content-section"][data-legacy-classes~="ds-content-section"],
body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] [data-source-owned="legacy-visible-v1"][data-source-block-role="ranked-card"][data-legacy-classes~="ds-company-card"],
body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] [data-source-owned="legacy-visible-v1"][data-source-block-role="disclosure"][data-legacy-classes~="ds-disclaimer"],
body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] div[data-source-owned="legacy-visible-v1"][data-source-block-role="other"] {
	white-space: pre-line;
}

body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] [data-source-owned="legacy-visible-v1"][data-source-block-role="disclosure"][data-legacy-classes~="ds-disclaimer"] > strong:first-child {
	display: block;
	margin-bottom: 8px;
}

/* A retired pricing claim can be the sole text in a source feature row. */
body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] [data-source-owned="legacy-visible-v1"][data-source-block-role="ranked-card"]:empty {
	display: none !important;
}

.om-stress-flag[aria-pressed="true"] {
	border-left-color: #d43a2f !important;
}

.om-stress-flag:focus-visible,
.om-debit-slider:focus-visible {
	outline: 2px solid #d43a2f;
	outline-offset: 3px;
}

@media (max-width: 640px) {
	body.sp-is-listicle-editorial,
	body.sp-is-listicle-editorial .sp-listicle-article,
	body.sp-is-listicle-editorial .sp-listicle-article > .entry-content,
	body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] {
		max-width: 100%;
		min-width: 0;
		overflow-x: clip;
	}

	body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] section > div,
	body.sp-is-listicle-editorial #comparison [style*="overflow-x:auto"] {
		max-width: 100%;
		min-width: 0;
	}

	body.sp-is-listicle-editorial #comparison [style*="overflow-x:auto"] {
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-inline: contain;
	}

	body.sp-is-listicle-editorial [data-debit-calculator] [style*="grid-template-columns:minmax(180px,1fr)"] {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 7px !important;
	}

	body.sp-is-listicle-editorial [data-listicle-design="editorial-v1"] a[style*="white-space:nowrap"] {
		max-width: 100%;
		overflow-wrap: anywhere;
		text-align: center;
		white-space: normal !important;
	}

	body.sp-is-listicle-editorial #om-callbar .om-callbar-copy {
		display: none !important;
	}

	body.sp-is-listicle-editorial #om-callbar > div:last-child {
		flex: 1 1 100% !important;
		min-width: 0;
	}

	body.sp-is-listicle-editorial #om-callbar > div:last-child > a[data-cta][href^="tel:"] {
		flex: 1 1 100%;
		width: 100%;
	}
}

@keyframes om-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .35; transform: scale(.7); }
}

@keyframes om-blink {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}

/* Keep Smith.ai clear of the editorial sticky action bar. */
body.sp-is-listicle-editorial #smithChatWidget {
	bottom: 88px !important;
}

/* Editorial-v1 Delancey Street exit popup. */
.om-exit-overlay[hidden] {
	display: none !important;
}

body.sp-exit-open #smithChatWidget {
	visibility: hidden !important;
	pointer-events: none !important;
}

.om-exit-overlay,
.om-exit-overlay *,
.om-exit-overlay *::before,
.om-exit-overlay *::after {
	box-sizing: border-box;
}

.om-exit-overlay {
	--om-exit-ink: #141414;
	--om-exit-red: #d43a2f;
	--om-exit-paper: #f4f4f1;
	--om-exit-line: #e4e4e0;
	--om-exit-copy: #4a4a46;
	--om-exit-muted: #9a9a94;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(20, 20, 20, 0.82);
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
	contain: layout style paint;
}

.om-exit-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.om-exit-dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.5fr);
	width: min(780px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: var(--om-exit-paper);
	border: 1px solid var(--om-exit-line);
	border-top: 3px solid var(--om-exit-red);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
	transform: translateY(12px) scale(0.99);
	transition: transform 180ms ease;
	overscroll-behavior: contain;
}

.om-exit-overlay.is-open .om-exit-dialog {
	transform: translateY(0) scale(1);
}

.om-exit-brand {
	position: relative;
	min-height: 100%;
	overflow: hidden;
	padding: 34px 30px;
	background-color: var(--om-exit-ink);
	background-image: repeating-linear-gradient(135deg, transparent 0, transparent 13px, rgba(255, 255, 255, 0.035) 13px, rgba(255, 255, 255, 0.035) 14px);
}

.om-exit-brand-kicker,
.om-exit-kicker,
.om-exit-brand-note,
.om-exit-proof,
.om-exit-action,
.om-exit-dismiss {
	font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.om-exit-brand-kicker {
	position: relative;
	z-index: 1;
	font-size: 9px;
	letter-spacing: 2px;
	color: var(--om-exit-red);
}

.om-exit-brand-name {
	position: relative;
	z-index: 1;
	margin-top: 28px;
	font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(30px, 4.1vw, 45px);
	font-weight: 200;
	letter-spacing: -1.4px;
	line-height: 0.94;
	color: #fff;
}

.om-exit-brand-name span,
.om-exit-title span {
	color: var(--om-exit-red);
}

.om-exit-brand-line {
	position: relative;
	z-index: 1;
	width: 42px;
	height: 2px;
	margin-top: 30px;
	background: var(--om-exit-red);
}

.om-exit-brand-note {
	position: relative;
	z-index: 1;
	max-width: 165px;
	margin-top: 14px;
	font-size: 8.5px;
	letter-spacing: 1.5px;
	line-height: 1.7;
	color: #c9c9c4;
}

.om-exit-brand-ghost {
	position: absolute;
	right: -18px;
	bottom: -32px;
	font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
	font-size: 138px;
	font-weight: 200;
	line-height: 1;
	letter-spacing: -10px;
	color: rgba(255, 255, 255, 0.045);
}

.om-exit-content {
	position: relative;
	padding: clamp(34px, 5vw, 52px);
}

.om-exit-close {
	position: absolute;
	top: 12px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
	font-size: 27px;
	font-weight: 200;
	line-height: 1;
	color: var(--om-exit-muted);
	cursor: pointer;
}

.om-exit-close:hover {
	color: var(--om-exit-ink);
}

.om-exit-kicker {
	padding-right: 38px;
	font-size: 9.5px;
	letter-spacing: 2.2px;
	line-height: 1.5;
	color: var(--om-exit-red);
}

.om-exit-title {
	max-width: 500px;
	margin: 14px 0 0;
	font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(30px, 4.5vw, 47px);
	font-weight: 200;
	letter-spacing: -1.3px;
	line-height: 1.02;
	color: var(--om-exit-ink);
}

.om-exit-description {
	max-width: 530px;
	margin: 17px 0 0;
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 14.5px;
	font-weight: 300;
	line-height: 1.72;
	color: var(--om-exit-copy);
}

.om-exit-actions {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.om-exit-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 19px;
	font-size: 9.5px;
	font-weight: 500;
	letter-spacing: 1.6px;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
}

.om-exit-action-call {
	border: 1px solid var(--om-exit-ink);
	background: var(--om-exit-ink);
	color: #fff !important;
}

.om-exit-action-call:hover {
	background: #000;
	color: #fff !important;
}

.om-exit-action-web {
	border: 1px solid var(--om-exit-red);
	background: transparent;
	color: var(--om-exit-ink) !important;
}

.om-exit-action-web:hover {
	background: var(--om-exit-red);
	color: #fff !important;
}

.om-exit-proof {
	display: flex;
	gap: 8px 16px;
	margin-top: 18px;
	flex-wrap: wrap;
	font-size: 8px;
	letter-spacing: 1.25px;
	line-height: 1.5;
	color: var(--om-exit-muted);
}

.om-exit-proof span {
	position: relative;
	padding-left: 10px;
}

.om-exit-proof span::before {
	position: absolute;
	left: 0;
	top: 0.52em;
	width: 4px;
	height: 4px;
	background: var(--om-exit-red);
	content: "";
}

.om-exit-disclosure {
	margin: 22px 0 0;
	padding-top: 15px;
	border-top: 1px solid var(--om-exit-line);
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 10.5px;
	font-weight: 300;
	line-height: 1.65;
	color: #6a6a66;
}

.om-exit-disclosure strong {
	font-weight: 600;
	color: var(--om-exit-copy);
}

.om-exit-dismiss {
	min-height: 44px;
	margin: 7px 0 -10px -10px;
	padding: 10px;
	border: 0;
	background: transparent;
	font-size: 8px;
	letter-spacing: 1.35px;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: #6a6a66;
	cursor: pointer;
}

.om-exit-dismiss:hover {
	color: var(--om-exit-ink);
}

.om-exit-close:focus-visible,
.om-exit-action:focus-visible,
.om-exit-dismiss:focus-visible,
.om-exit-dialog:focus-visible {
	outline: 2px solid var(--om-exit-red);
	outline-offset: 3px;
}

@supports (height: 100dvh) {
	.om-exit-dialog {
		max-height: calc(100dvh - 32px);
	}
}

@media (max-width: 680px) {
	body.sp-is-listicle-editorial #smithChatWidget {
		bottom: 72px !important;
	}

	.om-exit-overlay {
		align-items: end;
		padding: 10px;
	}

	.om-exit-dialog {
		grid-template-columns: minmax(0, 1fr);
		width: min(100%, 560px);
		max-height: calc(100vh - 20px);
	}

	.om-exit-brand {
		min-height: 96px;
		padding: 20px 24px;
	}

	.om-exit-brand-name {
		margin-top: 10px;
		font-size: 29px;
		line-height: 1;
	}

	.om-exit-brand-name br,
	.om-exit-brand-line,
	.om-exit-brand-note {
		display: none;
	}

	.om-exit-brand-ghost {
		right: 16px;
		bottom: -39px;
		font-size: 112px;
	}

	.om-exit-content {
		padding: 28px 22px 24px;
	}

	.om-exit-title {
		font-size: clamp(28px, 9.5vw, 39px);
	}

	.om-exit-actions {
		flex-direction: column;
	}

	.om-exit-action {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.om-exit-overlay,
	.om-exit-dialog {
		transition: none;
	}
}
