/*
 * Overdrive article reference tuning — 3.10.30
 * Compact Google preferred-source CTA inspired by the supplied publisher
 * reference, plus a restrained atmospheric canvas for dark article pages.
 */

/* Preferred Sources: one centered pill between article metadata and reading. */
body.single-post.go-verge .go-preferred-source-row {
	display: flex;
	justify-content: center;
	inline-size: 100%;
	margin: clamp(18px, 2.8vw, 28px) 0 clamp(22px, 3.4vw, 34px);
	padding: 0;
}

body.single-post.go-verge .go-preferred-source-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	inline-size: min(100%, 440px);
	min-block-size: 48px;
	padding: 10px 22px;
	border: 1px solid rgba(246, 247, 241, .10);
	border-radius: 999px;
	background: #2B2639;
	color: var(--overdrive-electric-lime, #d8ff38);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
	font-family: var(--font-sans, system-ui, sans-serif);
	font-size: clamp(13px, 1.2vw, 14px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-align: center;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

body.single-post.go-verge .go-preferred-source-pill__google {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	inline-size: 24px;
	block-size: 24px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(16, 20, 42, .08);
	line-height: 1;
}

body.single-post.go-verge .go-preferred-source-pill__google-mark {
	display: block;
	inline-size: 17px;
	block-size: 17px;
}

body.single-post.go-verge .go-preferred-source-pill:hover,
body.single-post.go-verge .go-preferred-source-pill:focus-visible {
	border-color: rgba(216, 255, 56, .28);
	background: #332D46;
	color: var(--overdrive-electric-lime, #d8ff38);
	transform: translateY(-1px);
}

body.single-post.go-verge .go-preferred-source-pill:focus-visible {
	outline: 2px solid var(--focus, #7f68ff);
	outline-offset: 3px;
}

html[data-theme='light-mode'] body.single-post.go-verge .go-preferred-source-pill {
	border-color: rgba(16, 20, 42, .10);
	background: #E2E6EC;
	color: var(--overdrive-electric-blue, #421aff);
	box-shadow: 0 7px 20px rgba(16, 20, 42, .08);
}

html[data-theme='light-mode'] body.single-post.go-verge .go-preferred-source-pill:hover,
html[data-theme='light-mode'] body.single-post.go-verge .go-preferred-source-pill:focus-visible {
	border-color: rgba(66, 26, 255, .24);
	background: #D9DEE7;
	color: var(--overdrive-electric-blue, #421aff);
}

/*
 * Dark article atmosphere.
 * The reference uses a slightly dimensional charcoal canvas instead of a flat
 * fill. This keeps the Overdrive plum-black base and adds only broad, low-alpha
 * brand light. No fixed attachment, pseudo-element overlay or animation: the
 * treatment stays cheap to paint and does not interfere with article ads.
 */
html[data-theme='dark-mode'] body.single-post.go-verge:not(.go-has-editorial-background) {
	background-color: var(--overdrive-canvas-dark, #13101C) !important;
	background-image:
		radial-gradient(900px 520px at 50% 4%, rgba(66, 26, 255, .085), transparent 72%),
		radial-gradient(760px 620px at 88% 40%, rgba(127, 104, 255, .035), transparent 76%),
		linear-gradient(180deg, #15111F 0%, #13101C 48%, #0F0C17 100%) !important;
	background-repeat: no-repeat !important;
	background-position: center top !important;
}

/* Let the body atmosphere show through the otherwise opaque reader shells. */
html[data-theme='dark-mode'] body.single-post.go-verge:not(.go-has-editorial-background) .go-site,
html[data-theme='dark-mode'] body.single-post.go-verge:not(.go-has-editorial-background) :where(.site-content, #content),
html[data-theme='dark-mode'] body.single-post.go-verge:not(.go-has-editorial-background) .go-main {
	background-color: transparent !important;
	background-image: none !important;
}

@media (max-width: 600px) {
	body.single-post.go-verge .go-preferred-source-row {
		margin-block: 16px 26px;
	}

	body.single-post.go-verge .go-preferred-source-pill {
		inline-size: min(100%, 420px);
		min-block-size: 46px;
		padding-inline: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-post.go-verge .go-preferred-source-pill {
		transition: none;
	}
	body.single-post.go-verge .go-preferred-source-pill:hover,
	body.single-post.go-verge .go-preferred-source-pill:focus-visible {
		transform: none;
	}
}
