/* Neutralize legacy PW header/footer element rules when v2 chrome is active.
   Do NOT zero padding — Hive8 footer relies on padding: 64px/86px 0. */
body.hive5-v2-chrome > header.header__header {
	display: block;
	position: relative;
	width: 100%;
	padding: 0;
	margin: 0;
	flex-direction: unset;
	flex-wrap: unset;
	justify-content: unset;
	align-items: unset;
	z-index: 100;
	background: transparent;
}

body.hive5-v2-chrome > footer.footer__footer {
	display: block;
	position: relative;
	width: 100%;
	/* keep Hive8 .footer__footer padding from site.css */
	margin: 0;
	flex-direction: unset;
	align-items: unset;
	justify-content: unset;
	z-index: 1;
}

/* Legacy page bodies: breathing room above the shared v2 footer */
body.hive5-v2-chrome:not(.hive5-v2) > footer.footer__footer {
	margin-top: 64px;
}

@media (min-width: 1024px) {
	body.hive5-v2-chrome:not(.hive5-v2) > footer.footer__footer {
		margin-top: 86px;
	}
}

/*
 * Hybrid pages (v2 chrome + legacy body): PW style.css uses tag selectors
 * (nav a, header li, footer a, .button) that beat Hive8 BEM classes.
 * Isolate chrome typography/layout so Help/Transparency match Home.
 */
body.hive5-v2-chrome .header__header,
body.hive5-v2-chrome .header__header *,
body.hive5-v2-chrome .mobile-nav__root,
body.hive5-v2-chrome .mobile-nav__root *,
body.hive5-v2-chrome .footer__footer,
body.hive5-v2-chrome .footer__footer * {
	font-family: "Manrope", system-ui, sans-serif !important;
	letter-spacing: normal;
	text-transform: none;
}

body.hive5-v2-chrome .header__header {
	display: block !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff;
	font-size: 16px;
	line-height: 1.5;
	color: #000;
	-webkit-font-smoothing: antialiased;
}

body.hive5-v2-chrome .header__inner {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap;
	flex-direction: row;
}

body.hive5-v2-chrome .header__nav {
	display: none;
	align-items: center;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	gap: 0;
}

@media (min-width: 1024px) {
	body.hive5-v2-chrome .header__nav {
		display: flex !important;
	}
}

body.hive5-v2-chrome .header__nav a.header__nav-link,
body.hive5-v2-chrome .header__nav a.header__nav-link-active {
	display: flex !important;
	align-items: center;
	height: 100%;
	width: auto !important;
	margin: 0 !important;
	padding: 15px 20px 17px !important;
	border: 0 !important;
	border-radius: 32px;
	background: transparent !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	color: #4f4d59 !important;
	text-decoration: none !important;
	white-space: nowrap;
}

body.hive5-v2-chrome .header__nav a.header__nav-link:hover {
	color: #000 !important;
}

body.hive5-v2-chrome .header__nav a.header__nav-link-active {
	font-weight: 700 !important;
	color: #000 !important;
}

body.hive5-v2-chrome .header__actions {
	display: none;
	align-items: center;
	gap: 20px;
}

@media (min-width: 1024px) {
	body.hive5-v2-chrome .header__actions {
		display: flex !important;
	}
}

body.hive5-v2-chrome .header__actions a.header__login {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: 24px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 24px !important;
	color: #000 !important;
	text-decoration: none !important;
}

body.hive5-v2-chrome .header__actions a.btn,
body.hive5-v2-chrome .mobile-nav__cta a.btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto !important;
	min-height: 52px;
	margin: 0 !important;
	padding: 14px 24px !important;
	border: 0 !important;
	border-radius: 54px !important;
	background: #d327fb !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

body.hive5-v2-chrome .lang-switch__trigger,
body.hive5-v2-chrome .lang-switch__option,
body.hive5-v2-chrome .lang-switch__code {
	font-family: "Manrope", system-ui, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-decoration: none !important;
}

body.hive5-v2-chrome .footer__footer {
	display: block !important;
	background: #f6f6f6 !important;
	font-size: 16px;
	line-height: 1.5;
	color: #000;
	-webkit-font-smoothing: antialiased;
}

body.hive5-v2-chrome .footer__brand p {
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: #524d59 !important;
	max-width: 360px;
}

body.hive5-v2-chrome .footer__column h4 {
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	margin: 0 0 8px !important;
	color: #000 !important;
}

body.hive5-v2-chrome .footer__column ul {
	display: flex !important;
	flex-direction: column;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.hive5-v2-chrome .footer__column a {
	display: block !important;
	width: auto !important;
	margin: 0 !important;
	padding: 7px 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: #524d59 !important;
	text-decoration: none !important;
}

body.hive5-v2-chrome .footer__column a:hover {
	color: #d327fb !important;
}

body.hive5-v2-chrome .footer__bottom p,
body.hive5-v2-chrome .footer__copy {
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: #a09fa1 !important;
}

body.hive5-v2-chrome .footer__copy {
	color: #4f4d59 !important;
}

/*
 * Mobile drawer: PW style.css styles ALL `nav a` as big pill buttons
 * (padding ~1rem 1.5rem, borders, flex). Reset to Hive8 mobile-nav.
 */
body.hive5-v2-chrome .mobile-nav__root {
	position: fixed !important;
	inset: 0 !important;
	z-index: 90 !important;
	display: flex !important;
	flex-direction: column !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	color: #000 !important;
}

body.hive5-v2-chrome .mobile-nav__root[hidden] {
	display: none !important;
}

body.hive5-v2-chrome .mobile-nav__backdrop {
	position: absolute !important;
	inset: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: rgba(0, 0, 0, 0.35) !important;
	box-shadow: none !important;
}

body.hive5-v2-chrome .mobile-nav__panel {
	position: relative !important;
	z-index: 1 !important;
	flex: 1 1 auto !important;
	max-height: 100% !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	margin: 0 !important;
	padding: 93px 16px 48px !important;
	border: 0 !important;
	border-radius: 0 0 24px 24px !important;
	background: #fff !important;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

body.hive5-v2-chrome .mobile-nav__nav {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 24px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	list-style: none !important;
}

body.hive5-v2-chrome .mobile-nav__nav a.mobile-nav__link,
body.hive5-v2-chrome a.mobile-nav__link {
	display: block !important;
	position: static !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	gap: 0 !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: #4f4d59 !important;
	text-align: center !important;
	text-decoration: none !important;
	justify-content: center !important;
	align-items: center !important;
	overflow: visible !important;
	user-select: auto !important;
}

body.hive5-v2-chrome .mobile-nav__nav a.mobile-nav__link + a.mobile-nav__link,
body.hive5-v2-chrome a.mobile-nav__link + a.mobile-nav__link {
	margin: 0 !important;
}

body.hive5-v2-chrome .mobile-nav__nav a.mobile-nav__link:hover,
body.hive5-v2-chrome a.mobile-nav__link:hover {
	color: #d327fb !important;
	background: transparent !important;
	text-decoration: none !important;
}

body.hive5-v2-chrome .mobile-nav__nav a.mobile-nav__link.is-active,
body.hive5-v2-chrome a.mobile-nav__link.is-active {
	font-weight: 700 !important;
	color: #000 !important;
	background: transparent !important;
}

body.hive5-v2-chrome .mobile-nav__cta {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 20px !important;
	width: 100% !important;
	margin: 8px 0 0 !important;
	padding: 0 !important;
}

body.hive5-v2-chrome a.mobile-nav__login {
	display: inline-flex !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	color: #000 !important;
	text-decoration: none !important;
}

body.hive5-v2-chrome .mobile-nav__cta a.btn,
body.hive5-v2-chrome .mobile-nav__cta a.btn--primary {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 52px !important;
	margin: 0 !important;
	padding: 14px 24px !important;
	border: 0 !important;
	border-radius: 54px !important;
	background: #d327fb !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

body.hive5-v2-chrome .mobile-nav__root .lang-switch--mobile {
	margin: 0 !important;
}

body.hive5-v2-chrome.nav-open {
	overflow: hidden;
}

@media (min-width: 1024px) {
	body.hive5-v2-chrome .mobile-nav__root {
		display: none !important;
	}
}

/* Full v2 pages — match Hive8 .app overflow so wide org chart scrolls inside its viewport */
body.hive5-v2 {
	background: #fff;
	overflow-x: clip;
}

/*
 * WP the_content → Hive8 article reading column.
 * Keep the same 920px measure as .article__header-column / .article__reading
 * so H1 and body share one left edge. Style native ul/ol like design bullets.
 */
.article__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: none;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--grey-700, #4a4a4a);
}

@media (min-width: 1024px) {
	.article__content {
		font-size: 18px;
	}
}

.article__content > *:first-child {
	margin-top: 0;
}

.article__content > *:last-child {
	margin-bottom: 0;
}

.article__content p {
	margin: 0;
}

.article__content h2,
.article__content h3,
.article__content h4 {
	font-family: var(--font-display, Newsreader, serif);
	font-weight: 400;
	color: var(--black, #070707);
	margin: 24px 0 4px;
	line-height: 1.1;
}

.article__content > h2:first-child,
.article__content > h3:first-child,
.article__content > h4:first-child {
	margin-top: 0;
}

.article__content h2 {
	font-size: clamp(28px, 3vw, 36px);
	letter-spacing: -0.36px;
}

.article__content h3,
.article__content h4 {
	font-size: 28px;
	letter-spacing: -0.28px;
	line-height: 1.3;
}

.article__content ul,
.article__content ol {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.article__content ul.wp-block-list,
.article__content ol.wp-block-list,
.article__content .wp-block-list {
	padding-left: 0;
	margin-left: 0;
}

.article__content li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	margin: 0;
	padding: 0;
	line-height: 1.5;
	color: var(--grey-700, #4a4a4a);
}

.article__content ul > li::before {
	content: "•";
	color: var(--pink-600, #d327fb);
	font-weight: 700;
	line-height: 1.5;
}

.article__content ol {
	counter-reset: article-ol;
}

.article__content ol > li {
	counter-increment: article-ol;
}

.article__content ol > li::before {
	content: counter(article-ol) ".";
	color: var(--pink-600, #d327fb);
	font-weight: 700;
	line-height: 1.5;
}

/* Nested lists: keep indent without breaking marker grid */
.article__content li ul,
.article__content li ol {
	grid-column: 1 / -1;
	margin-top: 8px;
	padding-left: 0;
}

.article__content figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.article__content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.article__content figcaption {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--grey-500, #8a8a8a);
	text-align: center;
}

.article__content a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.article__content a:hover {
	color: var(--pink-600, #d327fb);
}

.article__content blockquote {
	margin: 0;
	display: flex;
	gap: 16px;
	border: 0;
	padding: 0;
	color: var(--grey-700, #4a4a4a);
}

.article__content blockquote::before {
	content: "";
	flex: 0 0 4px;
	align-self: stretch;
	border-radius: 2px;
	background: var(--pink-600, #d327fb);
}

.article__content blockquote p {
	margin: 0;
	font-family: var(--font-display, Newsreader, serif);
	font-size: clamp(20px, 2.5vw, 24px);
	line-height: 1.35;
	font-weight: 400;
}

.article__content blockquote p + p {
	margin-top: 12px;
}

.article__content hr {
	margin: 0;
	border: 0;
	border-top: 1px solid var(--grey-200, #e8e8e8);
	width: 100%;
}

/* Cover image from WP thumbnail should fill design frame */
.article__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

a.pagination__arrow,
a.pagination__page,
a.pagination__page-active {
	text-decoration: none;
	box-sizing: border-box;
}

/* Blog media bar — image logos (ACF gallery) */
.media-bar__logo-img {
	display: block;
	height: 28px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
}

@media (min-width: 1024px) {
	.media-bar__logo-img {
		height: 34px;
	}
}
