/* GENERATED FILE — DO NOT EDIT BY HAND.
 *
 * Bootstrap's brand blue, remapped onto the active theme's colour. Regenerate with:
 *     python3 scripts/generate_theme_bridge.py
 * Only needed when bootstrap.min.css changes (a Bootstrap upgrade).
 *
 * Loaded after bootstrap.min.css and BEFORE theme CSS, so a theme can still override
 * anything here. Everything resolves through var(--bs-primary), which the base template
 * binds to var(--theme-primary, #1a1a1a) — so a themed site gets its colour and a
 * portal-only install with no theme gets monochrome, never Bootstrap blue.
 *
 * Bootstrap's SVG marks (switch knob, checkbox tick, indeterminate dash, radio dot,
 * accordion chevron) carry their colour inside the image, where no variable reaches. They
 * are redrawn here as gradients (or used as a mask over currentColor) so a mark on the
 * primary colour is painted in --theme-primary-foreground — see MARK_SHAPES in the script.
 *
 * 31 rules generated from bootstrap.min.css.
 */
:root {
  --bs-primary-text-emphasis: var(--bs-primary);
  --bs-primary-bg-subtle: color-mix(in srgb, var(--bs-primary) 12%, var(--theme-surface, #fff));
  --bs-primary-border-subtle: color-mix(in srgb, var(--bs-primary) 25%, var(--theme-surface, #fff));
  --bs-link-color: var(--bs-primary);
  --bs-link-hover-color: var(--theme-primary-hover, #333);
  --bs-focus-ring-color: color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

.table-primary {
  --bs-table-bg: color-mix(in srgb, var(--bs-primary) 12%, var(--theme-surface, #fff));
}

.form-control:focus {
  border-color: color-mix(in srgb, var(--bs-primary) 60%, var(--theme-surface, #fff));
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

.form-select:focus {
  border-color: color-mix(in srgb, var(--bs-primary) 60%, var(--theme-surface, #fff));
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

.form-check-input:focus {
  border-color: color-mix(in srgb, var(--bs-primary) 60%, var(--theme-surface, #fff));
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.form-check-input:checked[type=checkbox] {
  --bs-form-check-bg-image: linear-gradient(45deg, transparent calc(29.289% - .5px), var(--theme-primary-foreground, #fff) calc(29.289% + .5px), var(--theme-primary-foreground, #fff) calc(70.711% - .5px), transparent calc(70.711% + .5px)),
    radial-gradient(7.5% 7.5% at 30% 50%, var(--theme-primary-foreground, #fff) calc(100% - .5px), transparent calc(100% + .5px)),
    radial-gradient(7.5% 7.5% at 45% 65%, var(--theme-primary-foreground, #fff) calc(100% - .5px), transparent calc(100% + .5px)),
    linear-gradient(135deg, transparent calc(36.94% - .5px), var(--theme-primary-foreground, #fff) calc(36.94% + .5px), var(--theme-primary-foreground, #fff) calc(63.06% - .5px), transparent calc(63.06% + .5px)),
    radial-gradient(7.5% 7.5% at 75% 35%, var(--theme-primary-foreground, #fff) calc(100% - .5px), transparent calc(100% + .5px));
}

.form-check-input:checked[type=checkbox]:not(.form-switch .form-check-input) {
  background-size: 25.607% 25.607%, 100% 100%, 100% 100%, 40.607% 40.607%, 100% 100%;
  background-position: 33.197% 60.082%, 0 0, 0 0, 66.837% 50%, 0 0;
}

.form-check-input:checked[type=radio] {
  --bs-form-check-bg-image: radial-gradient(circle closest-side, var(--theme-primary-foreground, #fff) calc(50% - .5px), transparent calc(50% + .5px));
}

.form-check-input[type=checkbox]:indeterminate {
  --bs-form-check-bg-image: linear-gradient(0deg, transparent calc(42.5% - .5px), var(--theme-primary-foreground, #fff) calc(42.5% + .5px), var(--theme-primary-foreground, #fff) calc(57.5% - .5px), transparent calc(57.5% + .5px)),
    radial-gradient(7.5% 7.5% at 30% 50%, var(--theme-primary-foreground, #fff) calc(100% - .5px), transparent calc(100% + .5px)),
    radial-gradient(7.5% 7.5% at 70% 50%, var(--theme-primary-foreground, #fff) calc(100% - .5px), transparent calc(100% + .5px));
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.form-check-input[type=checkbox]:indeterminate:not(.form-switch .form-check-input) {
  background-size: 40% 100%, 100% 100%, 100% 100%;
  background-position: 50% 0%, 0 0, 0 0;
}

.form-switch .form-check-input:focus {
  --bs-form-switch-bg: radial-gradient(circle closest-side, color-mix(in srgb, var(--bs-primary) 60%, var(--theme-surface, #fff)) calc(75% - .5px), transparent calc(75% + .5px));
}

.form-switch .form-check-input:checked {
  --bs-form-switch-bg: radial-gradient(circle closest-side, var(--theme-primary-foreground, #fff) calc(75% - .5px), transparent calc(75% + .5px));
}

.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px var(--theme-surface, #fff),0 0 0 .25rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

.form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 1px var(--theme-surface, #fff),0 0 0 .25rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

.form-range::-webkit-slider-thumb {
  background-color: var(--bs-primary);
}

.form-range::-moz-range-thumb {
  background-color: var(--bs-primary);
}

.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-color: var(--theme-primary-foreground, #fff);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--theme-primary-hover, #333);
  --bs-btn-hover-color: var(--theme-primary-foreground, #fff);
  --bs-btn-hover-border-color: var(--theme-primary-hover, #333);
  --bs-btn-active-bg: var(--theme-primary-hover, #333);
  --bs-btn-active-color: var(--theme-primary-foreground, #fff);
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-color: var(--theme-primary-foreground, #fff);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-color: var(--theme-primary-foreground, #fff);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-color: var(--theme-primary-foreground, #fff);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--bs-primary);
  --bs-dropdown-link-active-color: var(--theme-primary-foreground, #fff);
}

.dropdown-menu-dark {
  --bs-dropdown-link-active-bg: var(--bs-primary);
  --bs-dropdown-link-active-color: var(--theme-primary-foreground, #fff);
}

.nav-link:focus-visible {
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--bs-primary);
  --bs-nav-pills-link-active-color: var(--theme-primary-foreground, #fff);
}

.accordion {
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

[data-bs-theme=dark] .accordion-button::after {
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
}

.pagination {
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
  --bs-pagination-active-bg: var(--bs-primary);
  --bs-pagination-active-color: var(--theme-primary-foreground, #fff);
  --bs-pagination-active-border-color: var(--bs-primary);
}

.progress,.progress-stacked {
  --bs-progress-bar-bg: var(--bs-primary);
  --bs-progress-bar-color: var(--theme-primary-foreground, #fff);
}

.list-group {
  --bs-list-group-active-bg: var(--bs-primary);
  --bs-list-group-active-color: var(--theme-primary-foreground, #fff);
  --bs-list-group-active-border-color: var(--bs-primary);
}

.btn-close {
  --bs-btn-close-focus-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

.form-switch .form-check-input {
  background-size: calc(50% - var(--bs-border-width)) 100%;
}

.accordion-button::after {
  background-image: none;
  background-color: currentColor;
  -webkit-mask: var(--bs-accordion-btn-icon) 0 0 / var(--bs-accordion-btn-icon-width) no-repeat;
  mask: var(--bs-accordion-btn-icon) 0 0 / var(--bs-accordion-btn-icon-width) no-repeat;
}

.accordion-button:not(.collapsed)::after {
  background-image: none;
  -webkit-mask-image: var(--bs-accordion-btn-active-icon);
  mask-image: var(--bs-accordion-btn-active-icon);
}
