/*
Theme Name: Acacia Systems
Theme URI:
Author: thinkbox
Author URI:
Description: Theme for Acacia Systems
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.7.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acacia
Tags: block-theme, full-site-editing, custom-colors, custom-logo, editor-style, wide-blocks
*/

/* ==========================================================================
   Front-end styles that theme.json cannot express.
   Rule of thumb: colours, fonts, sizes, spacing -> theme.json.
   Behaviour, layout tricks, third-party markup -> here.
   Use presets: var(--wp--preset--color--primary), var(--wp--preset--spacing--40)
   and custom values: var(--wp--custom--transition).
   Breakpoints: 1024px (tablet), 781px (WP columns stack), 600px (phone).
   Block-specific CSS lives in assets/css/blocks/ and only loads when the block is used.
   ========================================================================== */




/* ---------- vars ---------- */



:root {

    --target-tile-main: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDIxMSAyMTEiPjxwYXRoIGQ9Ik0xMSAxMTlWMTFIMTExIiBmaWxsPSJub25lIiBzdHJva2U9IiM1QzUwQkQiIHN0cm9rZS13aWR0aD0iMTIuNSIvPjxjaXJjbGUgY3g9IjE1NiIgY3k9IjEzIiByPSIxMS41IiBmaWxsPSIjNUM1MEJEIi8+PGNpcmNsZSBjeD0iMTk5IiBjeT0iMTMiIHI9IjExLjUiIGZpbGw9IiM1QzUwQkQiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PC9zdmc+"),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDIxMSAyMTEiPjxwYXRoIGQ9Ik05MiAxMUgyMDBWMTExIiBmaWxsPSJub25lIiBzdHJva2U9IiM1QzUwQkQiIHN0cm9r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xNiwtODYwLjU0ODA5NCkiPjxwYXRoIGQ9Ik0xNDMuMTQ5LDg3MS44MTVMMTQzLjY0OSwxMDE1LjMxNSIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzQwY2NmZDtzdHJva2Utb3BhY2l0eToxO3N0cm9rZS13aWR0aDoxMi41cHg7Ii8+PC9nPjxnIHRyYW5zZm9ybT0ibWF0cml4KC0wLjAwMzQ4NCwwLjk5OTk5NCwtMC45OTk5OTQsLTAuMDAzNDg0LDEwMjcuMDc3MTM5LC01Ny4wOTI5MTcpIj48cGF0aCBkPSJNMTQzLjE0OSw4NzEuODE1TDE0My42NDksMTAxNS4zMTUiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiM0MGNjZmQ7c3Ryb2tlLW9wYWNpdHk6MTtzdHJva2Utd2lkdGg6MTIuNXB4OyIvPjwvZz48ZyB0cmFuc2Zvcm09Im1hdHJpeCgtMC4wMDM0ODQsMC45OTk5OTQsLTAuOTk5OTk0LC0wLjAwMzQ4NCwxMDI3LjA3NzEzOSwxNTIuNDA3MDc5KSI+PHBhdGggZD0iTTE0My4xNDksODcxLjgxNUwxNDMuNjQ5LDEwMTUuMzE1IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojNDBjY2ZkO3N0cm9rZS1vcGFjaXR5OjE7c3Ryb2tlLXdpZHRoOjEyLjVweDsiLz48L2c+PC9zdmc+");

}











/* ---------- Base ---------- */

/* Dark site: native controls (scrollbars, autofill, date pickers) draw dark too. */
:root {
	color-scheme: dark;
}

/* Even line lengths on headings; fewer orphans in body copy. */
:where(h1, h2, h3, h4, h5, h6) {
	text-wrap: balance;
}

:where(p, li, figcaption) {
	text-wrap: pretty;
}

.wp-site-blocks {
	overflow-x: clip; /* Prevents horizontal scroll from full-width bits without breaking position: sticky. */
}

p:empty {
	display: none;
}

a {
	text-decoration-skip-ink: auto;
	text-underline-offset: var(--wp--custom--link--underline-offset);
	transition: var(--wp--custom--transition);
}

ul.wp-block-list {
	padding-inline-start: 1.125rem;
}

ul.wp-block-list.is-style-dash,
ul.is-style-dash {
	list-style-type: "- ";
}

/* House style: buttons are underlined uppercase text links (see theme.json). */
.wp-element-button,
.wp-block-button__link {
	text-underline-offset: 7px;
	transition: var(--wp--custom--transition);
}

.wp-block-button.is-style-solid .wp-block-button__link {
	text-decoration: none;
}

/* Legacy class from older builds: h2 with class "large" == Heading style "Large display". */
h2.large {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.15;
	text-transform: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

img {
	height: auto;
	max-width: 100%;
}

/* ---------- Header (template part with className "site-header") ---------- */

.site-header {
	position: sticky;
	top: var(--wp--custom--header--sticky-offset);
	z-index: 99;
	background-color: var(--wp--preset--color--base);
	transition: var(--wp--custom--transition);
}

body.is-scrolled .site-header {
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Optional: hide on scroll down, reveal on scroll up. Add class "hide-on-scroll" to the header template part. */
.site-header.hide-on-scroll {
	transition: transform 0.3s ease-out, box-shadow 0.2s ease-out;
}

body.scroll-down .site-header.hide-on-scroll {
	transform: translateY(-100%);
}

/* Optional: transparent header over a full-width cover on the home page.
   Add class "is-overlay" to the header template part. */
.home .site-header.is-overlay {
	position: fixed;
	inset-inline: 0;
	background-color: transparent;
	color: var(--wp--preset--color--base);
}

.home.is-scrolled .site-header.is-overlay {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.site-header .wp-block-site-logo {
	margin-inline-end: auto;
}

/* ---------- Footer (template part with className "site-footer") ---------- */

.site-footer p,
.site-footer li {
	line-height: 1.5;
}

.site-footer p a {
	text-decoration: none;
}

.site-footer p a:hover {
	text-decoration: underline;
}

/* ---------- Main ---------- */

/* Let full-width first sections sit flush under the header. */
main > .wp-block-post-content > .alignfull:first-child {
	margin-block-start: 0;
}

/* ---------- Utility classes (add via Advanced > Additional CSS class(es)) ---------- */

.give-space {
	margin-block-end: var(--wp--preset--spacing--60) !important;
}

.no-gap {
	gap: 0 !important;
}

.is-flush > * {
	margin-block: 0 !important;
}

/* Legacy names kept for content copied from older Thinkbox builds. */
.responsive,
.show-mobile {
	display: none !important;
}

/* Horizontal scroll-snap row: block style "Carousel (scroll)" on Columns, Gallery or
   Post Template, or the class "is-carousel" on anything with direct children. */
.is-carousel,
.is-style-carousel,
.is-style-carousel .acacia-posts__grid {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.is-carousel > *,
.is-style-carousel > *,
.is-style-carousel .acacia-posts__grid > * {
	flex: 0 0 calc((100% - 2 * var(--wp--style--block-gap, 1.25rem)) / 3) !important;
	scroll-snap-align: start;
}

/* ---------- Loop layouts (Loop settings panel, inc/query-loops.php) ----------
   Static columns (.is-loop-columns) and grid (.is-loop-grid) Query Loops.
   Settings arrive as custom properties on the block wrapper, on the live page
   and in the editor: --acacia-cols, --acacia-cols-tablet, --acacia-row-gap, --acacia-col-gap.
   Sliders (.flexslider) are laid out by FlexSlider (assets/css/flexslider.css). */

.wp-block-query:is(.is-loop-columns, .is-loop-grid) .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(var(--acacia-cols, 3), minmax(0, 1fr)) !important;
	column-gap: var(--acacia-col-gap, var(--wp--style--block-gap, 1.25rem));
	row-gap: var(--acacia-row-gap, var(--wp--preset--spacing--50, 2rem));
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-query:is(.is-loop-columns, .is-loop-grid) .wp-block-post-template > * {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

@media (max-width: 1024px) {

	.wp-block-query:is(.is-loop-columns, .is-loop-grid) .wp-block-post-template {
		grid-template-columns: repeat(var(--acacia-cols-tablet, 2), minmax(0, 1fr)) !important;
	}
}

@media (max-width: 600px) {

	.wp-block-query:is(.is-loop-columns, .is-loop-grid) .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* ---------- Drag panel (assets/js/drag-panel.js, set up in assets/js/site.js) ---------- */

/* While dragging is enabled the row keeps its desktop column widths instead of stacking.
   (The script also adds core's is-not-stacked-on-mobile class; this covers other blocks.) */
.is-dragging-enabled.is-dragging-enabled > * {
	flex-basis: 0 !important;
	flex-grow: 1 !important;
	min-width: 0;
}

.is-dragging-enabled {
	cursor: grab;
	user-select: none;
}

/* ---------- [acacia_posts] shortcode ---------- */

.acacia-posts__grid {
	display: grid;
	grid-template-columns: repeat(var(--acacia-columns, 3), minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--style--block-gap, 1.25rem);
}

.acacia-posts__item > * + * {
	margin-block-start: 0.75rem;
}

.acacia-posts__item .wp-block-image {
	margin: 0;
}

.acacia-posts__item h3 a {
	text-decoration: none;
}

.acacia-posts--logos .acacia-posts__item {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Back to top (button injected by assets/js/theme.js) ---------- */

.back-to-top {
	position: fixed;
	inset-block-end: 30px;
	inset-inline-end: 30px;
	z-index: 1038;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--wp--custom--back-to-top--background) url(assets/images/icon-up.svg) no-repeat center / 75%;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: var(--wp--custom--transition);
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	opacity: 0.6;
}

/* ---------- Accessibility ---------- */

.skip-link:focus {
	z-index: 100000;
}

/* Keep in-page targets and tabbed-to elements clear of the sticky header. */
html {
	scroll-padding-top: 7rem;
}

/* Visible keyboard focus. Links and .wp-element-button get theirs from theme.json
   (elements > link / button > :focus-visible); these cover the other controls. */
.wp-block-accordion-heading__toggle:focus-visible,
.wp-block-navigation__responsive-container-open:focus-visible,
.wp-block-navigation__responsive-container-close:focus-visible,
.wp-block-navigation-submenu__toggle:focus-visible,
summary:focus-visible,
.flexslider:focus-visible,
.flex-direction-nav a:focus-visible,
.flex-control-paging a:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast-2) !important;
	outline-offset: 3px;
}

.wp-block-accordion-heading__toggle:focus-visible {
	outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {

	.acacia-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.is-carousel > *,
	.is-style-carousel > *,
	.is-style-carousel .acacia-posts__grid > * {
		flex-basis: calc((100% - var(--wp--style--block-gap, 1.25rem)) / 2) !important;
	}
}

@media (max-width: 781px) {

	.responsive,
	.show-mobile {
		display: block !important;
	}

	.nonresponsive,
	.hide-mobile {
		display: none !important;
	}

	.back-to-top {
		display: none;
	}
}

@media (max-width: 600px) {

	.acacia-posts__grid {
		grid-template-columns: 1fr;
	}

	.is-carousel > *,
	.is-style-carousel > *,
	.is-style-carousel .acacia-posts__grid > * {
		flex-basis: 85% !important;
	}
}

/* ==========================================================================
   Acacia Systems (site-specific, added 1.2.0)
   ========================================================================== */

/* ---------- Pill buttons (block styles "Pill: Light / Navy / Outline") ---------- */

.wp-block-button[class*="is-style-pill-"] .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	text-decoration: none;
	line-height: 1.2;
}

.wp-block-button[class*="is-style-pill-"] .wp-block-button__link::after {
	content: "";
	width: 1.15em;
	height: 0.8em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: var(--wp--custom--transition);
}

.wp-block-button[class*="is-style-pill-"] .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.wp-block-button.is-style-pill-light .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.wp-block-button.is-style-pill-navy .wp-block-button__link:hover,
.wp-block-button.is-style-pill-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
}

/* ---------- Header: floats over the hero on the front page ---------- */

.home .site-header {
	position: absolute;
	inset-inline: 0;
	top: var(--wp--custom--header--sticky-offset);
	background-color: transparent;
}

.site-header .site-logo-link img {
	display: block;
}

/* ---------- Home hero ---------- */

.acacia-hero .wp-block-cover__inner-container {
	padding-block: 7rem 4rem;
}

/* ---------- Video / media frame ---------- */

.acacia-video img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* ---------- Awarded contracts slider (pattern "Loop: contracts slider") ---------- */

.wp-block-query.contracts {
	--flex-arrow-space: 0px;
	padding-block: 20px;
}
.wp-block-query.contracts .flex-viewport {
	overflow-x: clip !important; overflow-y: visible !important;
}
.wp-block-query.contracts .flex-direction-nav .flex-prev {
    left: -30px;
}
.wp-block-query.contracts .flex-direction-nav .flex-next {
    right: -30px;

}




.wp-block-query.contracts .wp-block-post-template {

}
.wp-block-query.contracts .wp-block-post-template  li {
	display: flex !important;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
}

.wp-block-query.contracts .wp-block-post-template  li {
	position: relative;
	padding: 50px !important;
}

/* Corner brackets around each product */
.wp-block-query.contracts .wp-block-post-template  li {
  background-image: var(--target-tile-main);
  background-position:
    top 16px left 16px,
    top 16px right 16px,
    bottom 16px right 16px;
  background-size:
    50px 50px,
    50px 50px,
    50px 50px;
  background-repeat: no-repeat;
}

.wp-block-query.contracts .wp-block-post-template  li::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 0;
  width: 40px;
  height: 70px;
  background-image: var(--target-tile-cross);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}


.wp-block-query.contracts .wp-block-post-template  li:hover {
background-image: var(--target-tile-main-hover);
  background-position:
    top 16px left 16px,
    top 16px right 16px,
    bottom 16px right 16px;
  background-size:
    50px 50px,
    50px 50px,
    50px 50px;
  background-repeat: no-repeat;
}

.wp-block-query.contracts .wp-block-post-template  li:hover::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 0;
  width: 40px;
  height: 70px;
background-image: var(--target-tile-cross-hover);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}





.acacia-contracts__title {
	margin: 0;
}

.acacia-contracts__system {
	margin: 0;
	color: var(--wp--preset--color--base-2);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.4;
}

.acacia-contracts__text {
	margin: 0.5rem 0 0;
	flex-grow: 1;
}

.acacia-contracts__image {
	margin: 1rem 0 0;
}

.acacia-contracts__image img {
	object-fit: cover;
}

/* Arrows and dots in cyan so they read on navy (they were navy from when this
   section was white). Arrows sit outside the tiles at -30px (the user's setting);
   on phones the page gutter is only ~20px, so they move in to stay on screen. */
.wp-block-query.contracts {
	--flex-arrow-color: var(--wp--preset--color--contrast-2);
	--flex-dot-color: var(--wp--preset--color--contrast-2);
}

/* Two tiles or one (site.js getContractsItemWidth): dots drop 30px further,
   clear of the tile's corner graphic. */
@media (max-width: 781px) {

	.wp-block-query.contracts .flex-control-nav {
		margin-top: calc(var(--wp--preset--spacing--20, 1rem) + 30px) !important;
	}
}

@media (max-width: 600px) {

	.wp-block-query.contracts .flex-direction-nav .flex-prev {
		left: -18px;
	}

	.wp-block-query.contracts .flex-direction-nav .flex-next {
		right: -18px;
	}
}

/* ---------- Footer ---------- */

.site-footer {
	font-size: var(--wp--preset--font-size--medium);
}

.site-footer .acacia-footer__label {
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.site-footer .acacia-contact {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 0 1rem;
	align-items: start;
}

.site-footer .acacia-contact img {
	width: 52px;
	height: auto;
	margin-top: 0.3em;
}

.site-footer .acacia-contact p {
	margin: 0;
}

.site-footer .acacia-footer__legal a {
	text-decoration: none;
}

.site-footer .acacia-footer__legal a:hover {
	text-decoration: underline;
}

.site-footer .acacia-quick-links .wp-block-navigation__container {
	align-items: flex-end;
}

@media (max-width: 781px) {

	.site-footer .acacia-quick-links .wp-block-navigation__container {
		align-items: flex-start;
	}

	.site-footer .is-content-justification-right {
		align-items: flex-start;
	}

}

/* ---------- Solutions: product diagram ([acacia_products view="diagram"]) ---------- */

.acacia-diagram {
	position: relative;
	color: var(--wp--preset--color--accent);
	aspect-ratio: 1300 / 1000;
/* 	max-width: 1300px; */
	max-width: 100%;
	margin-inline: auto;
	background: url(/wp-content/uploads/2026/11/solutions-header-image.svg) no-repeat center center;
	background-size: contain;
}

.acacia-diagram__orbits {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.8;
}

.acacia-diagram__list {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	padding: 0;
	list-style: none;
}

.acacia-diagram__item {
	position: absolute;
}

.acacia-diagram__item a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75em;
	padding: 1.75rem 1.75rem;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* Corner brackets around each product */
.acacia-diagram__item a {
  background-image: var(--target-tile-main);
  background-position:
    top left,
    top right,
    bottom right;
  background-size:
    50px 50px,
    50px 50px,
    50px 50px;
  background-repeat: no-repeat;
}

.acacia-diagram__item a::after {
  content: "";
  position: absolute;
  bottom: -48px;
  left: -16px;
  width: 40px;
  height: 70px;
  background-image:  var(--target-tile-cross);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}


.acacia-diagram__item a:hover {
background-image: var(--target-tile-main-hover);
  background-position:
    top left,
    top right,
    bottom right;
  background-size:
    50px 50px,
    50px 50px,
    50px 50px;
  background-repeat: no-repeat;
}

.acacia-diagram__item a:hover::after {
  content: "";
  position: absolute;
  bottom: -48px;
  left: -16px;
  width: 40px;
  height: 70px;
  background-image: var(--target-tile-cross-hover);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}








/* 
.acacia-diagram__item a:hover::before,
.acacia-diagram__item a:hover::after,
.acacia-diagram__item a:focus-visible::before,
.acacia-diagram__item a:focus-visible::after {
	border-color: var(--wp--preset--color--contrast-2);
	width: 32px;
	height: 32px;
}
 */
.acacia-diagram__name {
	font-size: clamp(2rem, 1.2rem + 3vw, 4.5rem);
	font-weight: 500;
	line-height: 1;
	margin-bottom: 20px;
}

.acacia-diagram__tagline {
	max-width: 11em;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.15;
}

/* 
.acacia-diagram__item--1 { top: 12%; left: 46%; }
.acacia-diagram__item--2 { top: 30%; left: 2%; }
.acacia-diagram__item--3 { top: 56%; left: 0; }
.acacia-diagram__item--4 { top: 44%; left: 50%; }
.acacia-diagram__item--5 { top: 78%; left: 30%; }
 */

.acacia-diagram__item--1 { top: 12%; left: 50%; }
.acacia-diagram__item--2 { top: 30%; left: 6%; }
.acacia-diagram__item--3 { top: 56%; left: 11%; }
.acacia-diagram__item--4 { top: 44%; left: 60%; }
.acacia-diagram__item--5 { top: 78%; left: 30%; }

/* Spread out at 1024px and below, where the items shrink (2026-11-20). */
@media (max-width: 1024px) {
	.acacia-diagram__item--1 { top: 0; left: 50%; }
	.acacia-diagram__item--2 { top: 24%; left: 4%; }
	.acacia-diagram__item--3 { top: 56%; left: 8%; }
	.acacia-diagram__item--4 { top: 40%; left: 61%; }
	.acacia-diagram__item--5 { top: 82%; left: 32%; }
}









/* Proportional scaling below 1024px.
   --acacia-u is 1px on screens 1024px and wider, then shrinks with the screen
   (100vw / 1024), so names, taglines, padding and the corner target icons all
   scale together and the items keep clear of each other. Sizes are written in
   design pixels × --acacia-u; at 1024px and above they equal the values above.
   The single-column layout (≤781px) uses a fixed scale, set in its own query. */
.acacia-diagram {
	--acacia-u: min(1px, 100vw / 1024);
}

.acacia-diagram__item a {
	padding: calc(28 * var(--acacia-u));
}

.acacia-diagram__item a,
.acacia-diagram__item a:hover {
	background-size:
		calc(50 * var(--acacia-u)) calc(50 * var(--acacia-u)),
		calc(50 * var(--acacia-u)) calc(50 * var(--acacia-u)),
		calc(50 * var(--acacia-u)) calc(50 * var(--acacia-u));
}

.acacia-diagram__item a::after,
.acacia-diagram__item a:hover::after {
	bottom: calc(-48 * var(--acacia-u));
	left: calc(-16 * var(--acacia-u));
	width: calc(40 * var(--acacia-u));
	height: calc(70 * var(--acacia-u));
}

.acacia-diagram__name {
	margin-bottom: calc(20 * var(--acacia-u));
}

@media (max-width: 1024px) {

	/* 50px at 1024px (where the clamp above is also ~50px), then proportional. */
	.acacia-diagram__name {
		font-size: calc(50 * var(--acacia-u));
	}
}

/* Blue tagline: at most one wrap (two lines). 20ch fits half of the longest
   tagline ("Counter Drone Combat Management System"); balance evens the lines.
   ch follows the font size, so the width scales with everything else. */
.acacia-diagram__tagline {
	max-width: 20ch;
	font-size: max(1rem, calc(24 * var(--acacia-u)));
	text-wrap: balance;
}

/* Name and tagline stay side by side. The name never wraps. The tagline is as
   wide as it needs (up to 20ch) and may narrow only to 9em, about the width two
   lines of the longer taglines need, so it doesn't drop to three lines when an
   item sits near the edge or the screen is narrow (checked down to ~375px). */
.acacia-diagram__name {
	flex-shrink: 0;
	white-space: nowrap;
}

.acacia-diagram__tagline {
	width: max-content;
	min-width: 9em;
}

@media (max-width: 781px) {

	/* One column: fixed scale, with room under each item for its corner icon. */
	.acacia-diagram {
		--acacia-u: 0.7px;
	}

	/* Items keep their own width (not full width) and stagger like the large
	   view: Chironex right, Onyx and Cortex left (Cortex indented), Reflex
	   right, Vertex centre. Flex alignment can't push an item off screen. */
	.acacia-diagram .acacia-diagram__list {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: calc(70 * var(--acacia-u));
		padding-bottom: calc(50 * var(--acacia-u));
	}

	.acacia-diagram .acacia-diagram__item {
		max-width: 100%;
	}

	/* Overrides flex-wrap: wrap below: keep the tagline beside the name. */
	.acacia-diagram .acacia-diagram__item a {
		flex-wrap: nowrap;
	}

	.acacia-diagram .acacia-diagram__item--1,
	.acacia-diagram .acacia-diagram__item--4 {
		align-self: flex-end;
	}

	.acacia-diagram .acacia-diagram__item--3 {
		margin-inline-start: 8%;
		max-width: 92%;
	}

	.acacia-diagram .acacia-diagram__item--5 {
		align-self: center;
	}
}

@media (max-width: 550px) {

	.acacia-diagram {
		--acacia-u: 0.6px;
	}
}

@media (max-width: 781px) {

	.acacia-diagram {
		aspect-ratio: auto;
	}

	.acacia-diagram__orbits {
		opacity: 0.35;
	}

	.acacia-diagram__list,
	.acacia-diagram__item {
		position: static;
	}

	.acacia-diagram__list {
		display: grid;
		gap: 0.5rem;
	}

	.acacia-diagram__item a {
		flex-wrap: wrap;
	}
}

/* ---------- Solutions: accordion (core Accordion, block style "Products") ---------- */

.wp-block-accordion.is-style-products {
	counter-reset: acacia-product;
	border-top: 1px solid var(--wp--preset--color--base);
}

.is-style-products > .wp-block-accordion-item {
	counter-increment: acacia-product;
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--base);
	transition: var(--wp--custom--transition);
}

.is-style-products > .wp-block-accordion-item.is-open {
	background-color: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--primary);
}

.is-style-products .wp-block-accordion-heading {
	margin: 0;
	font-size: inherit;
	color: inherit;
}

.is-style-products .wp-block-accordion-heading__toggle {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr) 2.5rem;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
}

/* Row number: 01/, 02/ … follows the row order. */
.is-style-products .wp-block-accordion-heading__toggle::before {
	content: counter(acacia-product, decimal-leading-zero) "/";
	align-self: start;
	padding-top: 0.6em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.is-style-products .wp-block-accordion-heading__toggle-title {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3.75rem);
	font-weight: 500;
	line-height: 1.1;
}

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

.acacia-tagline {
	font-size: clamp(1rem, 0.85rem + 0.6vw, 1.75rem);
	font-weight: 600;
	line-height: 1.35;
}

/* +/- in a circle (the core "+" character is hidden). */
.is-style-products .wp-block-accordion-heading__toggle-icon {
	position: relative;
	justify-self: end;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--wp--preset--color--contrast-2);
	border-radius: 50%;
	font-size: 0;
	transform: none !important;
	transition: var(--wp--custom--transition);
}

.is-style-products .wp-block-accordion-heading__toggle-icon::before,
.is-style-products .wp-block-accordion-heading__toggle-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40%;
	height: 1.5px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: var(--wp--custom--transition);
}

.is-style-products .wp-block-accordion-heading__toggle-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.is-style-products .is-open .wp-block-accordion-heading__toggle-icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.is-style-products .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-icon {
	background-color: var(--wp--preset--color--contrast-2);
	color: var(--wp--preset--color--base);
}

.is-style-products .wp-block-accordion-panel {
	max-width: 62rem;
	padding: 0 1.5rem 2rem calc(1.5rem + 3rem + 1rem);
}

.is-style-products .wp-block-accordion-panel > * + * {
	margin-block-start: 1.5rem;
}

/* Pill buttons have no border (1.7.1), except in the accordion, where they keep the 1px cyan outline. */
.is-style-products .wp-block-button .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--contrast-2);
}

.is-style-products .wp-block-button .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--accent);
}

/* Diagram links (#product-…) land on the panel's first paragraph; keep the row in view. */
.is-style-products .wp-block-accordion-panel [id] {
	scroll-margin-top: 12rem;
}

@media (max-width: 781px) {

	.is-style-products .wp-block-accordion-heading__toggle {
		grid-template-columns: 2.25rem minmax(0, 1fr) 2.5rem;
		padding-inline: 0.75rem;
	}

	.is-style-products .wp-block-accordion-heading__toggle-title {
		grid-template-columns: 1fr;
		gap: 0.4rem;
	}

	.is-style-products .wp-block-accordion-panel {
		padding: 0 0.75rem 1.5rem calc(0.75rem + 2.25rem + 1rem);
	}
}

/* ---------- Solution page template (page-solution) ---------- */

.acacia-solution-others .wp-block-post-title {
	margin: 0;
}

.acacia-solution-others .wp-block-post-title a {
	text-decoration: none;
}

.acacia-solution-others .wp-block-post-title a:hover {
	text-decoration: underline;
}

.acacia-solution-others .wp-block-post-template > li {
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--contrast);
}


