/*
 * Blog article layout (new brand).
 * Source: Figma "Hive Marketing" › Brand guidelines › "Blog · Article"
 * (Desktop 1440, Tablet 834, Mobile 393).
 * Everything is scoped to .hb-article so no other page is affected.
 * Site header and footer are untouched.
 */
.hb-article {
	--hb-text: #0b0a08;
	--hb-body: #3f4445;
	--hb-secondary: #6d6c6b;
	--hb-border: #e6e5e3;
	--hb-teal: #1a6872;
	--hb-gutter: 20px;
	--hb-measure: 802px;
	--hb-wide: 1142px;
	font-family: "Geist", Arial, sans-serif;
	color: var(--hb-text);
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.hb-article *,
.hb-article *::before,
.hb-article *::after {
	box-sizing: border-box;
}

.hb-article__column {
	width: 100%;
	max-width: calc(var(--hb-measure) + 2 * var(--hb-gutter));
	margin: 0 auto;
	padding-left: var(--hb-gutter);
	padding-right: var(--hb-gutter);
}

/* ---------- Heading ---------- */
.hb-article__heading {
	padding-top: 48px;
	padding-bottom: 40px;
}

.hb-article .hb-breadcrumb {
	margin: 0 0 32px;
	font-size: 16px;
	line-height: 21px;
	font-weight: 400;
	color: var(--hb-secondary);
}

.hb-article .hb-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.hb-article .hb-breadcrumb a:hover {
	color: var(--hb-text);
}

.hb-article .hb-breadcrumb span {
	margin: 0 6px;
}

.hb-article .hb-title {
	margin: 0 0 32px;
	padding: 0;
	font-family: inherit;
	font-size: 32px;
	line-height: 39px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--hb-text);
	text-wrap: balance;
}

.hb-article .hb-meta {
	display: flex;
	gap: 32px;
	margin: 0 0 32px;
	padding: 0;
}

.hb-article .hb-meta div {
	margin: 0;
}

.hb-article .hb-meta div:first-child {
	flex: none;
}

.hb-article .hb-meta__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hb-article .hb-avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.hb-article .hb-meta time {
	white-space: nowrap;
}

.hb-article .hb-meta dt {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 18px;
	font-weight: 400;
	color: var(--hb-secondary);
}

.hb-article .hb-meta dd {
	margin: 0;
	font-size: 16px;
	line-height: 21px;
	font-weight: 400;
	color: var(--hb-text);
}

.hb-article .hb-separator {
	height: 1px;
	margin: 0 0 32px;
	border: 0;
	background-image: linear-gradient(to right, rgba(109, 108, 107, 0.5) 2px, transparent 2px);
	background-size: 6px 1px;
	background-repeat: repeat-x;
}

.hb-article .hb-listen {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	text-align: left;
	color: inherit;
	cursor: pointer;
}

.hb-article .hb-listen__button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--hb-text);
	transition: transform 0.15s ease;
}

.hb-article .hb-listen:hover .hb-listen__button {
	transform: scale(1.05);
}

.hb-article .hb-listen:focus-visible {
	outline: 2px solid var(--hb-teal);
	outline-offset: 6px;
	border-radius: 24px;
}

.hb-article .hb-listen__button svg {
	display: block;
}

.hb-article .hb-listen__play {
	margin-left: 2px;
}

.hb-article .hb-listen__button svg.hb-listen__pause,
.hb-article .hb-listen.is-playing .hb-listen__button svg.hb-listen__play {
	display: none;
}

.hb-article .hb-listen.is-playing .hb-listen__button svg.hb-listen__pause {
	display: block;
}

.hb-article .hb-listen__title {
	display: block;
	font-size: 16px;
	line-height: 21px;
	font-weight: 500;
	color: var(--hb-text);
}

.hb-article .hb-listen__meta {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	line-height: 18px;
	font-weight: 400;
	color: var(--hb-secondary);
}

/* ---------- Body ---------- */
.hb-article__body {
	padding-top: 8px;
	padding-bottom: 64px;
}

.hb-article__body > * {
	margin: 0 0 20px;
}

.hb-article__body > *:last-child {
	margin-bottom: 0;
}

.hb-article__body p {
	padding: 0;
	font-size: 16px;
	line-height: 26px;
	font-weight: 400;
	color: var(--hb-body);
}

.hb-article__body p.hb-lead {
	font-size: 18px;
	line-height: 28px;
	color: var(--hb-text);
}

.hb-article__body a {
	color: var(--hb-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.hb-article__body a:hover {
	color: var(--hb-teal);
}

.hb-article__body h2 {
	padding: 28px 0 0;
	font-family: inherit;
	font-size: 23px;
	line-height: 28px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--hb-text);
	text-wrap: balance;
}

.hb-article .hb-highlights {
	margin-top: 40px;
	margin-bottom: 40px;
	padding: 22px;
	border: 1px solid var(--hb-border);
	border-radius: 24px;
	background: #faf9f8;
}

.hb-article .hb-highlights h3 {
	margin: 0 0 14px;
	padding: 0;
	font-family: inherit;
	font-size: 18px;
	line-height: 23px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--hb-text);
}

.hb-article .hb-highlights ul {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hb-article .hb-highlights li {
	position: relative;
	margin: 0;
	padding: 0 0 0 18px;
	font-size: 15px;
	line-height: 24px;
	font-weight: 400;
	color: var(--hb-body);
}

.hb-article .hb-highlights li::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 9px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #e56d25;
}

.hb-article .hb-figure {
	margin-top: 52px;
	margin-bottom: 52px;
	padding: 0;
}

.hb-article .hb-figure svg {
	display: block;
	width: 100%;
	height: auto;
	font-family: "Geist", Arial, sans-serif;
}

/* The mobile chart is fluid: it is as wide as the text column, and only the
   horizontal positions stretch. Text sizes and the height stay fixed. */
.hb-article .hb-figure svg.hb-figure__mobile {
	width: 100%;
	height: 441px;
	border: 1px solid var(--hb-border);
	border-radius: 16px;
	background: #faf9f8;
}

.hb-article .hb-figure__desktop {
	display: none !important;
}

.hb-article__body p.hb-pullquote {
	margin-top: 40px;
	margin-bottom: 12px;
	padding: 0 0 0 16px;
	border-left: 3px solid var(--hb-teal);
	font-size: 21px;
	line-height: 27px;
	font-weight: 500;
	color: var(--hb-text);
}

/* ---------- Closing call to action ---------- */
.hb-article__cta {
	border-top: 1px solid var(--hb-border);
}

.hb-article__cta-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	max-width: calc(var(--hb-wide) + 2 * var(--hb-gutter));
	margin: 0 auto;
	padding: 48px var(--hb-gutter) 56px;
}

.hb-article__cta h2 {
	margin: 0 0 12px;
	padding: 0;
	font-family: inherit;
	font-size: 26px;
	line-height: 32px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--hb-text);
	text-wrap: balance;
}

.hb-article__cta p {
	max-width: 640px;
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 25px;
	font-weight: 400;
	color: var(--hb-secondary);
}

.hb-article .hb-button {
	display: inline-flex;
	align-items: center;
	flex: none;
	min-height: 41px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--hb-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 21px;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.hb-article .hb-button:hover {
	background: #262524;
	color: #fff;
}

/* ---------- Chart animation (scroll-linked, both directions) ----------
   --chart-p runs from 0 to 1 as the chart scrolls into view. Without
   JavaScript or with reduced motion the chart is simply shown complete. */
.hb-article .hb-figure.is-animated {
	--chart-p: 0;
	--bar-1: clamp(0, calc(var(--chart-p) / 0.55), 1);
	--bar-2: clamp(0, calc((var(--chart-p) - 0.15) / 0.55), 1);
	--bar-3: clamp(0, calc((var(--chart-p) - 0.3) / 0.55), 1);
	--arrow: clamp(0, calc((var(--chart-p) - 0.5) / 0.45), 1);
	--arrow-end: clamp(0, calc((var(--chart-p) - 0.88) / 0.12), 1);
}

.hb-article .hb-figure.is-animated .chart-bar {
	transform-box: fill-box;
	transform-origin: center bottom;
}

.hb-article .hb-figure.is-animated .chart-bar--2024 { transform: scaleY(var(--bar-1)); }
.hb-article .hb-figure.is-animated .chart-bar--2025 { transform: scaleY(var(--bar-2)); }
.hb-article .hb-figure.is-animated .chart-bar--2026 { transform: scaleY(var(--bar-3)); }

.hb-article .hb-figure.is-animated .chart-value--2024 { opacity: clamp(0, calc(var(--bar-1) * 3 - 2), 1); }
.hb-article .hb-figure.is-animated .chart-value--2025 { opacity: clamp(0, calc(var(--bar-2) * 3 - 2), 1); }
.hb-article .hb-figure.is-animated .chart-value--2026 { opacity: clamp(0, calc(var(--bar-3) * 3 - 2), 1); }

.hb-article .hb-figure.is-animated .chart-arrow__line {
	stroke-dasharray: 1;
	stroke-dashoffset: calc(1 - var(--arrow));
}

.hb-article .hb-figure.is-animated .chart-arrow__head,
.hb-article .hb-figure.is-animated .chart-callout {
	opacity: var(--arrow-end);
}

/* ---------- Sticky player ---------- */
.hb-article .hb-player {
	position: fixed;
	left: 50%;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 12px;
	width: min(400px, calc(100vw - 2 * var(--hb-gutter)));
	padding: 8px 20px 8px 8px;
	border-radius: 999px;
	background: #1b1a19;
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.hb-article .hb-player[hidden] {
	display: none;
}

.hb-article .hb-player.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hb-article .hb-player__button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #0b0a08;
	cursor: pointer;
}

.hb-article .hb-player__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.hb-article .hb-player__button svg {
	display: block;
}

.hb-article .hb-player__button svg.hb-icon-play {
	margin-left: 2px;
}

.hb-article .hb-player__button svg.hb-icon-pause,
.hb-article .hb-player.is-playing .hb-player__button svg.hb-icon-play {
	display: none;
}

.hb-article .hb-player.is-playing .hb-player__button svg.hb-icon-pause {
	display: block;
}

.hb-article .hb-player__main {
	flex: 1;
	min-width: 0;
}

.hb-article .hb-player__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 7px;
}

.hb-article .hb-player__title {
	overflow: hidden;
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
	color: #fff;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hb-article .hb-player__time {
	flex: none;
	font-size: 12px;
	line-height: 16px;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
	color: #a9a8a7;
}

.hb-article .hb-player__track {
	height: 2px;
	border-radius: 1px;
	background: rgba(255, 255, 255, 0.2);
	overflow: hidden;
}

.hb-article .hb-player__fill {
	display: block;
	width: 100%;
	height: 100%;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
	.hb-article .hb-player,
	.hb-article .hb-player.is-visible {
		transition: none;
	}
}

/* ---------- Tablet (768–1023) ---------- */
@media (min-width: 768px) {
	.hb-article {
		--hb-gutter: 40px;
	}

	.hb-article__heading {
		padding-top: 80px;
		padding-bottom: 56px;
	}

	.hb-article .hb-breadcrumb {
		margin-bottom: 40px;
	}

	.hb-article .hb-title {
		margin-bottom: 40px;
		font-size: 42px;
		line-height: 50px;
	}

	.hb-article .hb-meta,
	.hb-article .hb-separator {
		margin-bottom: 40px;
	}

	.hb-article .hb-meta {
		gap: 64px;
	}

	.hb-article__body {
		padding-bottom: 96px;
	}

	.hb-article__body p {
		font-size: 18px;
		line-height: 30px;
	}

	.hb-article__body p.hb-lead {
		font-size: 20px;
		line-height: 31px;
	}

	.hb-article__body h2 {
		font-size: 27px;
		line-height: 33px;
	}

	.hb-article .hb-highlights {
		margin-top: 48px;
		margin-bottom: 48px;
		padding: 32px;
	}

	.hb-article .hb-highlights h3 {
		font-size: 20px;
		line-height: 26px;
	}

	.hb-article .hb-highlights li {
		padding-left: 20px;
		font-size: 17px;
		line-height: 28px;
	}

	.hb-article .hb-highlights li::before {
		top: 10px;
		width: 8px;
		height: 8px;
	}

	.hb-article .hb-figure {
		margin-top: 68px;
		margin-bottom: 68px;
	}

	.hb-article .hb-figure__desktop {
		display: block !important;
	}

	.hb-article .hb-figure__mobile {
		display: none !important;
	}

	.hb-article__body p.hb-pullquote {
		padding-left: 24px;
		font-size: 25px;
		line-height: 33px;
	}

	.hb-article__cta-inner {
		padding-top: 64px;
		padding-bottom: 72px;
	}

	.hb-article__cta h2 {
		font-size: 32px;
		line-height: 40px;
	}

	.hb-article__cta p {
		font-size: 18px;
		line-height: 28px;
	}
}

/* ---------- Desktop (1024 and up) ---------- */
@media (min-width: 1024px) {
	.hb-article .hb-title {
		font-size: 48px;
		line-height: 56px;
	}

	.hb-article__body p.hb-lead {
		font-size: 21px;
		line-height: 32px;
	}

	.hb-article__body h2 {
		font-size: 30px;
		line-height: 37px;
	}

	.hb-article__body p.hb-pullquote {
		font-size: 28px;
		line-height: 36px;
	}

	.hb-article__cta-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 48px;
	}

	.hb-article__cta-text {
		max-width: 864px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hb-article .hb-listen__button,
	.hb-article .hb-button {
		transition: none;
	}
}
