/**
 * Brighta Tab Box (Technical Files Toggle) styles.
 * Every colour is a custom property on .bg-tgl so Elementor controls can override it.
 * No button elements are used, so anchors are reset where they act as controls.
 */

.bg-tgl {
	--tgl-bg: #ffffff;
	--tgl-border: #e3e7e9;
	--tgl-radius: 0px;
	--tgl-thumb-w: 300px;
	--tgl-thumb-h: 215px;

	--tgl-toggle: #c8862b;
	--tgl-toggle-size: 26px;
	--tgl-toggle-thickness: 3px;

	--tgl-tab-columns: 3;
	--tgl-tab-gap: 12px;
	--tgl-tab-color: #4a8f9c;
	--tgl-tab-bg: #ffffff;
	--tgl-tab-border: #9fc6cd;
	--tgl-tab-color-active: #ffffff;
	--tgl-tab-bg-active: #12333b;

	--tgl-img-fade: 260ms;

	--tgl-fname-hover: #4a8f9c;
	--tgl-file-icon: #5f9ea8;
	--tgl-file-icon-size: 26px;
	--tgl-file-divider: #e6eaec;

	--tgl-download: #4a8f9c;
	--tgl-request: #12333b;
	--tgl-action-hover: #c8862b;
	--tgl-btn-color: #ffffff;
	--tgl-btn-bg: #12333b;

	--tgl-sub-bg: #f6f8f9;
	--tgl-sub-hover-bg: #ffffff;

	background: var(--tgl-bg);
	border: 1px solid var(--tgl-border);
	border-radius: var(--tgl-radius);
	overflow: hidden;
}

.bg-tgl *,
.bg-tgl *::before,
.bg-tgl *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- Header */
.bg-tgl__header,
.bg-tgl__tab,
.bg-tgl__action,
.bg-tgl__subitem {
	text-decoration: none;
	box-shadow: none;
}

.bg-tgl__header {
	display: grid;
	grid-template-columns: var(--tgl-thumb-w) minmax(0, 1fr) auto;
	align-items: center;
	width: 100%;
	color: inherit;
	cursor: pointer;
}

.bg-tgl--stacked .bg-tgl__header {
	grid-template-columns: minmax(0, 1fr) auto;
}

.bg-tgl__thumb {
	display: block;
	width: 100%;
	height: var(--tgl-thumb-h);
	overflow: hidden;
	background: #dfe4e6;
	align-self: stretch;
}

.bg-tgl--stacked .bg-tgl__thumb {
	grid-column: 1 / -1;
}

.bg-tgl__thumb {
	position: relative;
}

.bg-tgl__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Every tab image is stacked in place and cross faded, so a swap never reflows
   the header or flashes an unloaded image. */
.bg-tgl__img {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity var(--tgl-img-fade) ease;
}

.bg-tgl__img.is-active {
	position: relative;
	opacity: 1;
}

.bg-tgl__heading {
	display: block;
	padding: 24px 30px;
	min-width: 0;
}

.bg-tgl__eyebrow {
	display: block;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4a8f9c;
}

.bg-tgl__title {
	display: block;
	font-size: 30px;
	line-height: 1.25;
	font-weight: 700;
	color: #12333b;
}

.bg-tgl__boxdesc {
	display: block;
	margin-top: 10px;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	color: #6b7b81;
}

/* Plus and minus */
.bg-tgl__toggle {
	position: relative;
	display: block;
	flex: none;
	width: var(--tgl-toggle-size);
	height: var(--tgl-toggle-size);
	margin-right: 30px;
}

.bg-tgl__toggle::before,
.bg-tgl__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: var(--tgl-toggle-thickness);
	margin-top: calc(var(--tgl-toggle-thickness) / -2);
	background: var(--tgl-toggle);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.bg-tgl__toggle::after {
	transform: rotate(90deg);
}

.bg-tgl.is-open .bg-tgl__toggle::after {
	transform: rotate(90deg) scaleX(0);
	opacity: 0;
}

/* ------------------------------------------------------------------- Bar */
.bg-tgl__bar {
	display: block;
	padding: 18px 30px;
	border-top: 1px solid var(--tgl-border);
	font-size: 16px;
}

.bg-tgl__bar--link {
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.bg-tgl__bar--link .bg-tgl__bartext,
.bg-tgl__bar--link .bg-tgl__hint {
	transition: color 0.18s ease;
}

.bg-tgl__bartext,
.bg-tgl__hint {
	display: block;
	color: #8a9499;
}

.bg-tgl__bartext {
	display: none;
}

.bg-tgl.is-open .bg-tgl__bartext {
	display: block;
}

.bg-tgl.is-open .bg-tgl__hint {
	display: none;
}

/* ------------------------------------------------------------------ Body */
.bg-tgl__body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.32s ease;
}

.bg-tgl.is-open .bg-tgl__body {
	grid-template-rows: 1fr;
}

.bg-tgl__body-inner {
	overflow: hidden;
	min-height: 0;
}

.bg-tgl.is-open .bg-tgl__body-inner {
	padding: 0 30px 26px;
}

.bg-tgl__empty {
	margin: 0;
	padding: 12px 0;
	font-size: 14px;
	color: #9aa4a8;
}

/* ------------------------------------------------------------------ Tabs */
.bg-tgl__tabs {
	display: grid;
	grid-template-columns: repeat(var(--tgl-tab-columns), minmax(0, 1fr));
	gap: var(--tgl-tab-gap);
	margin-bottom: 26px;
}

.bg-tgl__tab {
	display: block;
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	padding: 16px 10px;
	text-align: center;
	color: var(--tgl-tab-color);
	background: var(--tgl-tab-bg);
	border: 1px solid var(--tgl-tab-border);
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bg-tgl__tab:hover,
.bg-tgl__tab:focus {
	color: var(--tgl-tab-color);
	border-color: var(--tgl-tab-bg-active);
}

.bg-tgl__tab.is-active,
.bg-tgl__tab.is-active:hover,
.bg-tgl__tab.is-active:focus {
	color: var(--tgl-tab-color-active);
	background: var(--tgl-tab-bg-active);
	border-color: var(--tgl-tab-bg-active);
}

.bg-tgl__panel[hidden] {
	display: none;
}

.bg-tgl__panel-title {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 700;
	color: #111111;
}

/* ----------------------------------------------------------------- Files */
.bg-tgl__files {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bg-tgl__file {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px;
	padding: 18px 0;
	border-bottom: 1px solid var(--tgl-file-divider);
}

.bg-tgl__file:last-child {
	border-bottom: none;
}

.bg-tgl__ficon-wrap {
	display: flex;
	align-items: center;
	color: var(--tgl-file-icon);
}

.bg-tgl__ficon {
	width: var(--tgl-file-icon-size);
	height: auto;
}

.bg-tgl__finfo {
	display: block;
	min-width: 0;
}

.bg-tgl__fname {
	display: block;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #111111;
}

a.bg-tgl__fname--link {
	text-decoration: none;
	transition: color 0.18s ease;
}

a.bg-tgl__fname--link:hover,
a.bg-tgl__fname--link:focus {
	color: var(--tgl-fname-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bg-tgl__fmeta {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #9aa4a8;
}

.bg-tgl__faction {
	display: flex;
	justify-content: flex-end;
	white-space: nowrap;
}

/* --------------------------------------------------------------- Actions */
.bg-tgl__action {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 0;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.bg-tgl__action--download,
.bg-tgl__action--text {
	color: var(--tgl-download);
}

.bg-tgl__action--request {
	color: var(--tgl-request);
}

.bg-tgl__action:hover,
.bg-tgl__action:focus {
	color: var(--tgl-action-hover);
}

.bg-tgl__action--button {
	padding: 11px 20px;
	color: var(--tgl-btn-color);
	background: var(--tgl-btn-bg);
}

.bg-tgl__action--button:hover,
.bg-tgl__action--button:focus {
	color: var(--tgl-btn-color);
	filter: brightness(1.15);
}

.bg-tgl__aicon {
	flex: none;
}

.bg-tgl__action--request .bg-tgl__aicon {
	transition: transform 0.18s ease;
}

.bg-tgl__action--request:hover .bg-tgl__aicon {
	transform: translateX(4px);
}

.bg-tgl__caret {
	transition: transform 0.22s ease;
}

.bg-tgl__file.is-open .bg-tgl__caret {
	transform: rotate(180deg);
}

.bg-tgl__file.has-popup {
	cursor: pointer;
}

.bg-tgl__file.has-popup:hover .bg-tgl__action {
	color: var(--tgl-action-hover);
}

.bg-tgl__file.has-popup .bg-tgl__action--button:hover,
.bg-tgl__file.has-popup:hover .bg-tgl__action--button {
	color: var(--tgl-btn-color);
}

/* ----------------------------------------------------------- Group items */
.bg-tgl__subfiles {
	grid-column: 1 / -1;
	list-style: none;
	margin: 14px 0 4px;
	padding: 8px;
	background: var(--tgl-sub-bg);
}

.bg-tgl__subfiles[hidden] {
	display: none;
}

.bg-tgl__subitem {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	font-size: 15px;
	font-weight: 600;
	color: #12333b;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bg-tgl__subitem:hover,
.bg-tgl__subitem:focus {
	background: var(--tgl-sub-hover-bg);
	color: var(--tgl-action-hover);
}

.bg-tgl__subname {
	flex: 1 1 auto;
	color: #12333b;
}

/* Split variant: the name carries its own link, so it cannot sit inside the
   download anchor. The wrapper takes over the row styling instead. */
.bg-tgl__subitem--split {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	font-size: 15px;
	font-weight: 600;
	transition: background-color 0.15s ease;
}

.bg-tgl__subitem--split:hover {
	background: var(--tgl-sub-hover-bg);
}

a.bg-tgl__subname--link {
	flex: 1 1 auto;
	color: #12333b;
	text-decoration: none;
	transition: color 0.15s ease;
}

a.bg-tgl__subname--link:hover,
a.bg-tgl__subname--link:focus {
	color: var(--tgl-action-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bg-tgl__subdl {
	display: inline-flex;
	align-items: center;
	flex: none;
	color: var(--tgl-download);
	text-decoration: none;
	transition: color 0.15s ease;
}

.bg-tgl__subdl:hover,
.bg-tgl__subdl:focus {
	color: var(--tgl-action-hover);
}

.bg-tgl__submeta {
	font-size: 13px;
	font-weight: 400;
	color: #9aa4a8;
}

.bg-tgl__subempty {
	padding: 10px 14px;
	font-size: 14px;
	color: #9aa4a8;
}

/* ----------------------------------------------------------------- Focus */
.bg-tgl__header:focus-visible,
.bg-tgl__bar--link:focus-visible,
.bg-tgl__tab:focus-visible,
.bg-tgl__action:focus-visible,
.bg-tgl__subitem:focus-visible,
.bg-tgl__subname--link:focus-visible,
.bg-tgl__subdl:focus-visible,
.bg-tgl__fname--link:focus-visible {
	outline: 2px solid var(--tgl-tab-bg-active);
	outline-offset: 2px;
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1024px) {
	.bg-tgl__title {
		font-size: 25px;
	}

	.bg-tgl__tab {
		font-size: 16px;
		padding: 13px 8px;
	}
}

@media (max-width: 767px) {
	.bg-tgl__header {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.bg-tgl__thumb {
		grid-column: 1 / -1;
		height: 180px;
	}

	.bg-tgl__heading {
		padding: 18px 16px;
	}

	.bg-tgl__title {
		font-size: 21px;
	}

	.bg-tgl__toggle {
		margin-right: 16px;
	}

	.bg-tgl__bar {
		padding: 14px 16px;
		font-size: 15px;
	}

	.bg-tgl.is-open .bg-tgl__body-inner {
		padding: 0 16px 20px;
	}

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

	.bg-tgl__file {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 4px 10px;
	}

	.bg-tgl__faction {
		grid-column: 2 / -1;
		justify-content: flex-start;
		margin-top: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bg-tgl *,
	.bg-tgl *::before,
	.bg-tgl *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ---------------------------------------------------------------- Popup */
.bg-tgl-modal {
	--tgl-modal-overlay: rgba(10, 30, 36, 0.72);
	--tgl-modal-bg: #ffffff;
	--tgl-modal-width: 640px;
	--tgl-modal-padding: 34px;
	--tgl-modal-radius: 0px;
	--tgl-modal-close: #12333b;

	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s;
}

.bg-tgl-modal[hidden] {
	display: none;
}

.bg-tgl-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.bg-tgl-modal *,
.bg-tgl-modal *::before,
.bg-tgl-modal *::after {
	box-sizing: border-box;
}

.bg-tgl-modal__overlay {
	position: absolute;
	inset: 0;
	display: block;
	background: var(--tgl-modal-overlay);
	cursor: pointer;
}

.bg-tgl-modal__box {
	position: relative;
	width: 100%;
	max-width: var(--tgl-modal-width);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: var(--tgl-modal-padding);
	background: var(--tgl-modal-bg);
	border-radius: var(--tgl-modal-radius);
	box-shadow: 0 30px 70px rgba(10, 30, 36, 0.28);
	transform: translateY(14px);
	transition: transform 0.22s ease;
}

.bg-tgl-modal.is-open .bg-tgl-modal__box {
	transform: translateY(0);
}

.bg-tgl-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: var(--tgl-modal-close);
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.18s ease;
}

.bg-tgl-modal__close:hover,
.bg-tgl-modal__close:focus {
	color: var(--tgl-modal-close);
	opacity: 0.6;
}

.bg-tgl-modal__title {
	margin: 0 0 18px;
	padding-right: 34px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #12333b;
}

.bg-tgl-modal__body > *:first-child {
	margin-top: 0;
}

.bg-tgl-modal__body > *:last-child {
	margin-bottom: 0;
}

.bg-tgl-modal__body iframe {
	display: block;
	width: 100%;
	border: 0;
}

/* HubSpot sets an inline height on this wrapper. Give it a floor so a form that
   reports zero on first paint is still visible while it settles. */
.bg-tgl-modal__body .hs-form-frame,
.bg-tgl-modal__body .hbspt-form {
	min-height: 320px;
}

.bg-tgl-modal__template {
	display: none;
}

.bg-tgl-modal__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

body.bg-tgl-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.bg-tgl-modal {
		padding: 14px;
	}

	.bg-tgl-modal__box {
		max-height: calc(100vh - 28px);
		padding: 24px 18px;
	}

	.bg-tgl-modal__title {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bg-tgl-modal,
	.bg-tgl-modal__box {
		transition-duration: 0.01ms !important;
	}
}
