/* Optional colour mode; all appearance overrides are scoped to the dark state. */
html[data-pbb-theme="dark"] {
	color-scheme: dark;
	--pbb-page: #101824;
	--pbb-paper: #172231;
	--pbb-card: #1c2a3c;
	--pbb-border: #3c5069;
	--pbb-text: #edf2fa;
	--pbb-muted: #bcc9da;
	--pbb-link: #91baff;
	--pbb-brand-panel: #173b70;
	background: var(--pbb-page);
}
html[data-pbb-theme="dark"] body {
	background-color: var(--pbb-page) !important;
	color: var(--pbb-text);
}
html[data-pbb-theme="dark"] body.pbb-colour-ready [data-pbb-surface="paper"] {
	background-color: var(--pbb-paper) !important;
}
html[data-pbb-theme="dark"] body.pbb-colour-ready [data-pbb-surface="card"] {
	background-color: var(--pbb-card) !important;
}
html[data-pbb-theme="dark"] body.pbb-colour-ready [data-pbb-surface="brand"] {
	background-color: var(--pbb-brand-panel) !important;
}
html[data-pbb-theme="dark"] body.pbb-colour-ready[data-pbb-surface] {
	background-color: var(--pbb-page) !important;
}
html[data-pbb-theme="dark"] body.pbb-colour-ready [data-pbb-ink="text"] {
	color: var(--pbb-text) !important;
}
html[data-pbb-theme="dark"] body.pbb-colour-ready [data-pbb-ink="accent"] {
	color: var(--pbb-link) !important;
}
html[data-pbb-theme="dark"] body.pbb-colour-ready {
	--e-global-color-text: var(--pbb-text);
	--e-global-color-fa1aeb7: var(--pbb-text);
}
html[data-pbb-theme="dark"] .elementor-widget-theme-site-logo img {
	filter: brightness(0) invert(1);
}
html[data-pbb-theme="dark"] .elementor a:not(.elementor-button):hover {
	color: #c5dbff !important;
}
html[data-pbb-theme="dark"] .elementor .elementor-button {
	border-color: #91baff;
}
html[data-pbb-theme="dark"] :is(input:not([type="radio"]):not([type="checkbox"]),textarea,select) {
	background-color: #142031 !important;
	color: var(--pbb-text) !important;
	border-color: var(--pbb-border) !important;
}
html[data-pbb-theme="dark"] :is(input,textarea)::placeholder {
	color: var(--pbb-muted) !important;
	opacity: 1;
}
html[data-pbb-theme="dark"] :is(input,select,textarea) { accent-color: #91baff; }
html[data-pbb-theme="dark"] .elementor-form {
	background-color: var(--pbb-card) !important;
	color: var(--pbb-text) !important;
	border-color: var(--pbb-border) !important;
}
html[data-pbb-theme="dark"] .elementor-field-label,
html[data-pbb-theme="dark"] .elementor-message,
html[data-pbb-theme="dark"] .elementor-field-option label {
	color: var(--pbb-text) !important;
}
html[data-pbb-theme="dark"] .elementor-message-danger {
	color: #ffb7b7 !important;
}
html[data-pbb-theme="dark"] .elementor-message-success {
	color: #9ce6c2 !important;
}
html[data-pbb-theme="dark"] .pbb-popup__dialog {
	background: var(--pbb-paper);
	color: var(--pbb-text);
	border-top-color: #78aaff;
}
html[data-pbb-theme="dark"] .pbb-popup__dialog h2,
html[data-pbb-theme="dark"] .pbb-popup__content,
html[data-pbb-theme="dark"] .pbb-popup__content :is(p,strong,li) { color: var(--pbb-text); }
html[data-pbb-theme="dark"] :is(.pbb-popup__eyebrow,.pbb-popup__period,.pbb-popup__details-link,.pbb-popup__content a) {
	color: var(--pbb-link);
}
html[data-pbb-theme="dark"] .pbb-popup__icon { background: #243a59; color: #a0c4ff; }
html[data-pbb-theme="dark"] .pbb-popup .pbb-popup__close {
	background: #2b3d55 !important; color: var(--pbb-text) !important;
}
html[data-pbb-theme="dark"] .pbb-popup .pbb-popup__close:hover {
	background: #3b526f !important;
}
html[data-pbb-theme="dark"] :is(.cmplz-cookiebanner,.cmplz-manage-consent,.dialog-widget-content) {
	background-color: var(--pbb-paper) !important; color: var(--pbb-text) !important;
	border-color: var(--pbb-border) !important;
}
html[data-pbb-theme="dark"] .cmplz-cookiebanner :is(.cmplz-title,.cmplz-message,.cmplz-category-title,.cmplz-description) {
	color: var(--pbb-text) !important;
}
html[data-pbb-theme="dark"] .cmplz-cookiebanner a { color: var(--pbb-link) !important; }
html[data-pbb-theme="dark"] :focus-visible {
	outline: 3px solid #a4c8ff !important;
	outline-offset: 4px;
}
html[data-pbb-theme="dark"] .pbb-practice-banner { background: #173b70; }
html[data-pbb-theme="dark"] .pbb-practice-banner a { color: #fff; }

/* Custom navigation is injected outside Elementor's styled widget tree. */
html[data-pbb-theme="dark"] .dialog-wrapper {
	background: var(--pbb-paper) !important;
	color: var(--pbb-text) !important;
	border-color: var(--pbb-border) !important;
	box-shadow: 0 14px 40px rgb(0 0 0 / 38%) !important;
}
html[data-pbb-theme="dark"] .dialog-wrapper .dialog-option {
	background-color: transparent !important;
	color: var(--pbb-text) !important;
	border-color: var(--pbb-border) !important;
}
html[data-pbb-theme="dark"] .dialog-wrapper .dialog-option:is(:hover,:focus-visible) {
	background-color: #2b405d !important;
	color: #c5dbff !important;
}
html[data-pbb-theme="dark"] .DIALOG-OVERLAY {
	background: var(--pbb-paper) !important;
	color: var(--pbb-text) !important;
	border-color: var(--pbb-border) !important;
	box-shadow: -16px 0 55px rgb(0 0 0 / 30%);
}
html[data-pbb-theme="dark"] :is(.DIALOG-OVERLAY__headline,.DIALOG-OVERLAY__infotext) {
	color: var(--pbb-text) !important;
}
html[data-pbb-theme="dark"] .DIALOG-OVERLAY__infotext a {
	color: var(--pbb-link) !important;
}
html[data-pbb-theme="dark"] .DIALOG-OVERLAY__button {
	background: var(--pbb-card) !important;
	color: var(--pbb-link) !important;
	border-color: #91baff !important;
}
html[data-pbb-theme="dark"] .DIALOG-OVERLAY__button a {
	color: var(--pbb-link) !important;
}
html[data-pbb-theme="dark"] .DIALOG-OVERLAY__button:is(:hover,:focus-within) {
	background: #2b405d !important;
}
html[data-pbb-theme="dark"] .DIALOG-OVERLAY__button-badge {
	background: #57371f !important;
	color: #ffdfb5 !important;
}
html[data-pbb-theme="dark"] .menu {
	background-color: var(--pbb-paper) !important;
	color: var(--pbb-text) !important;
}
html[data-pbb-theme="dark"] .menu a { color: var(--pbb-text) !important; }

/* Accessible native radio group; works with Tab and the arrow keys. */
.pbb-colour-control[hidden] { display: none !important; }
.pbb-colour-control {
	position: fixed;
	z-index: 99990;
	bottom: max(18px, env(safe-area-inset-bottom));
	left: 18px;
	display: flex;
	gap: 3px;
	margin: 0;
	padding: 5px;
	border: 1px solid #cbd5e3;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 5px 22px rgb(15 30 50 / 16%);
	color: #27374c;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	line-height: 1;
}
.pbb-colour-control label { position: relative; margin: 0; cursor: pointer; }
.pbb-colour-control input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.pbb-colour-control label > span {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 999px;
	white-space: nowrap;
	color: inherit;
}
.pbb-colour-control input:checked + span { color: #fff; background: #226ce0; }
.pbb-colour-control input:focus-visible + span {
	outline: 3px solid #226ce0;
	outline-offset: 3px;
}
.pbb-colour-control svg {
	width: 16px; height: 16px; fill: none; stroke: currentColor;
	stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.pbb-colour-sr {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
html[data-pbb-theme="dark"] .pbb-colour-control {
	background: #1b293b; color: #edf2fa; border-color: #405772;
	box-shadow: 0 5px 25px rgb(0 0 0 / 30%);
}
html[data-pbb-theme="dark"] .pbb-colour-control input:checked + span {
	color: #101824; background: #a0c4ff;
}
html[data-pbb-theme="dark"] .pbb-colour-control input:focus-visible + span { outline-color: #a0c4ff; }
@media (max-width: 600px) {
	.pbb-colour-control {
		left: 10px;
		bottom: calc(56px + env(safe-area-inset-bottom));
		font-size: 11px;
	}
	.pbb-colour-control label > span { padding: 8px 10px; min-height: 40px; }
}
/* Collapsed by default; the native radio options open beside the toggle. */
.pbb-colour-options[hidden] { display: none !important; }
.pbb-colour-options {
display: flex;
align-items: center;
gap: 3px;
padding: 0;
margin: 0;
min-width: 0;
border: 0;
color: inherit;
font: inherit;
}
.pbb-colour-control .pbb-colour-toggle {
all: unset;
box-sizing: border-box;
display: grid;
place-items: center;
width: 40px;
min-width: 40px;
height: 40px;
padding: 0;
border: 0;
border-radius: 50%;
background: transparent;
color: inherit;
cursor: pointer;
}
.pbb-colour-control .pbb-colour-toggle svg { width: 20px; height: 20px; }
.pbb-colour-control .pbb-colour-toggle:is(:hover,[aria-expanded="true"]) {
background: #e8effa;
}
html[data-pbb-theme="dark"] .pbb-colour-control .pbb-colour-toggle:is(:hover,[aria-expanded="true"]) {
background: #344963;
}
.pbb-colour-control .pbb-colour-toggle:focus-visible {
outline: 3px solid #226ce0;
outline-offset: 3px;
}
html[data-pbb-theme="dark"] .pbb-colour-control .pbb-colour-toggle:focus-visible { outline-color: #a0c4ff; }

@media (prefers-reduced-motion: reduce) {
	.pbb-colour-control *, .pbb-popup { transition: none !important; animation: none !important; }
}
html[data-pbb-preview="true"] .pbb-colour-control { bottom: 72px; }
@media (max-width: 600px) {
	html[data-pbb-preview="true"] .pbb-colour-control { bottom: 116px; }
}
@media print {
	.pbb-colour-control { display: none !important; }
}
