body:not(.single):not(.page-template-page-legal) :where(.is-layout-flow) > * {
	margin-block-start: 0;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:first-child {
	position: fixed;
	top: var(--wp--preset--admin-bar--height);
	z-index: 100;
	width: 100%;
	background-color: transparent;
	transition: background-color 0.25s ease;
}

html {
	scroll-padding-top: calc(var(--wp--preset--admin-bar--height, 0px) + 5.5rem);
}

:where(.wp-block-heading[id], .wp-block-group[id]) {
	scroll-margin-top: calc(var(--wp--preset--admin-bar--height, 0px) + 5.5rem);
}

header.wp-block-template-part.is-scrolled,
.wp-site-blocks > .wp-block-template-part:first-child.is-scrolled {
	background-color: var(--wp--preset--color--dark, #160F29);
}

/*
 * Header Login + Book a demo — match nav-update scratchpad exactly
 * (site-header__login + btn btn--sm site-header__cta).
 * Still uses Outline / Neon + smaller-button in the editor.
 */
header.wp-block-template-part .wp-block-buttons,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-buttons {
	gap: 12px; /* .site-header__actions */
	align-items: center;
}

/* Login → .site-header__login */
header.wp-block-template-part .wp-block-button.is-style-outline.smaller-button .wp-block-button__link,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-button.is-style-outline.smaller-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	color: inherit !important;
	font-size: 1rem; /* --fs-body-m */
	font-weight: 400;
	line-height: 1.15;
	padding: 8px 12px; /* --sp-8 --sp-12 */
	text-decoration: none;
	opacity: 1;
}

header.wp-block-template-part .wp-block-button.is-style-outline.smaller-button .wp-block-button__link:hover,
header.wp-block-template-part .wp-block-button.is-style-outline.smaller-button .wp-block-button__link:focus,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-button.is-style-outline.smaller-button .wp-block-button__link:hover,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-button.is-style-outline.smaller-button .wp-block-button__link:focus {
	background-color: transparent !important;
	border: 0 !important;
	color: inherit !important;
	opacity: 0.7;
}

/* Book a demo → .btn.btn--sm.site-header__cta on dark header */
header.wp-block-template-part .wp-block-button.is-style-button-neon.smaller-button .wp-block-button__link,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-button.is-style-button-neon.smaller-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--wp--preset--color--neon, #d5ff9f);
	border: none;
	border-radius: 4px; /* --radius-sm */
	box-shadow: none;
	color: var(--wp--preset--color--dark, #160f29);
	font-size: 0.9375rem; /* .site-header__cta overrides btn--sm 0.75rem */
	font-weight: 600;
	line-height: 1.15; /* --lh-tight */
	padding: 8px 20px; /* btn--sm y + cta x */
	text-decoration: none;
}

header.wp-block-template-part .wp-block-button.is-style-button-neon.smaller-button .wp-block-button__link:hover,
header.wp-block-template-part .wp-block-button.is-style-button-neon.smaller-button .wp-block-button__link:focus,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-button.is-style-button-neon.smaller-button .wp-block-button__link:hover,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-button.is-style-button-neon.smaller-button .wp-block-button__link:focus {
	background-color: #c2eb8c; /* --color-ext-neon-dark (scratchpad dark header hover) */
	color: var(--wp--preset--color--dark, #160f29);
}

header.wp-block-template-part .wp-block-button.is-style-button-neon.smaller-button .wp-block-button__link:active,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-button.is-style-button-neon.smaller-button .wp-block-button__link:active {
	background-color: #c2eb8c;
	color: var(--wp--preset--color--dark, #160f29);
}

footer.wp-block-template-part {
	.wp-block-list {
		list-style-type: none;
		padding-left: 0;

		li {
			padding: 4px 0;
		}
	}

	.wp-block-separator {
		opacity: .3;
	}
}

.wp-block-accordion-heading__toggle:hover 
.wp-block-accordion-heading__toggle-title {
    text-decoration: none;
}

.wp-block-accordion-heading__toggle-icon {
	color: var(--wp--preset--color--green);
}

.wp-block-accordion-item.is-open>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
	color: var(--wp--preset--color--neutral-1);
}

/*
 * Manual line breaks in copy exist to shape desktop wrapping, so below the
 * tablet breakpoint they leave text stranded mid-sentence. Drop them and let
 * the copy fill its container. Legal pages and blog posts are excluded because
 * their breaks structure clauses and quoted material rather than line length.
 */
/*
 * Imported blog posts use the classic [caption] shortcode, which prints an
 * inline pixel width (up to 8640px). max-width keeps that width when it fits
 * the column and caps it when it does not. width: auto would stretch every
 * caption to the column, so a 700px aligncenter image would sit on the left.
 * Block themes do not center classic .aligncenter (core only clears it).
 */
.single-post .wp-block-post-content .wp-caption,
.editor-styles-wrapper .wp-block-freeform .wp-caption {
	max-width: 100%;
}

.single-post .wp-block-post-content .wp-caption.aligncenter,
.editor-styles-wrapper .wp-block-freeform .wp-caption.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.single-post .wp-block-post-content img,
.editor-styles-wrapper .wp-block-freeform img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 781px) {
	body:not(.page-template-page-legal):not(.single-post) :where(p, h1, h2, h3, h4, h5, h6) br {
		display: none;
	}
}