.bsf-app {
  --bsf-accent: #111827;
  --bsf-accent-contrast: #ffffff;
  --bsf-surface: #ffffff;
  --bsf-soft: #f6f7f8;
  --bsf-text: #202124;
  --bsf-muted: #667085;
  --bsf-border: #e4e7ec;
  --bsf-focus: #2563eb;
  --bsf-danger: #b42318;
  --bsf-radius: 16px;
  --bsf-control-radius: 11px;
  --bsf-sidebar-width: 292px;
  --bsf-gap: 30px;
  color: var(--bsf-text);
  font: inherit;
  line-height: 1.5;
}

.bsf-app *,
.bsf-app *::before,
.bsf-app *::after {
  box-sizing: border-box;
}

.bsf-app button,
.bsf-app input,
.bsf-app select,
.bsf-app textarea {
  font: inherit;
}

.bsf-app .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bsf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 24px;
}

.bsf-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 760px);
  margin: 0;
}

.bsf-search-input {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--bsf-border);
  border-radius: 999px;
  background: var(--bsf-surface);
  color: var(--bsf-muted);
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bsf-search-input:focus-within {
  border-color: var(--bsf-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.bsf-search-input input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--bsf-text);
  box-shadow: none !important;
}

.bsf-search-button,
.bsf-mobile-filter-button,
.bsf-submit,
.bsf-clear,
.bsf-drawer-close,
.bsf-pagination button,
.bsf-chip {
  min-height: 44px;
  cursor: pointer;
}

.bsf-search-button,
.bsf-submit {
  border: 1px solid var(--bsf-accent);
  border-radius: 999px;
  background: var(--bsf-accent);
  color: var(--bsf-accent-contrast);
  font-weight: 700;
  padding: 0 20px;
  transition: transform 150ms ease, opacity 150ms ease;
}

.bsf-search-button:hover,
.bsf-submit:hover {
  opacity: 0.92;
}

.bsf-search-button:active,
.bsf-submit:active {
  transform: translateY(1px);
}

.bsf-mobile-filter-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: max-content;
  padding: 0 16px;
  border: 1px solid var(--bsf-border);
  border-radius: 999px;
  background: var(--bsf-surface);
  color: var(--bsf-text);
  font-weight: 700;
}

.bsf-active-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bsf-accent);
  color: var(--bsf-accent-contrast);
  font-size: 12px;
  line-height: 1;
}

.bsf-layout {
  display: grid;
  align-items: start;
  gap: var(--bsf-gap);
}

.bsf-app--sidebar .bsf-layout {
  grid-template-columns: var(--bsf-sidebar-width) minmax(0, 1fr);
}

.bsf-app--sidebar-right .bsf-filter-panel {
  grid-column: 2;
  grid-row: 1;
}

.bsf-app--sidebar-right .bsf-main {
  grid-column: 1;
  grid-row: 1;
}

.bsf-app--top .bsf-layout {
  grid-template-columns: minmax(0, 1fr);
}

.bsf-filter-panel {
  min-width: 0;
  border: 1px solid var(--bsf-border);
  border-radius: var(--bsf-radius);
  background: var(--bsf-surface);
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.04);
  overflow: hidden;
}

.bsf-app--sidebar .bsf-filter-panel {
  position: sticky;
  top: 24px;
}

.bsf-filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bsf-border);
  font-size: 18px;
}

.bsf-drawer-close {
  display: none;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bsf-text);
  font-size: 30px;
  line-height: 1;
}

.bsf-filter-sections {
  min-width: 0;
}

.bsf-app--top .bsf-filter-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 16px;
  background: var(--bsf-soft);
}

.bsf-filter-section {
  border-bottom: 1px solid var(--bsf-border);
  background: var(--bsf-surface);
}

.bsf-app--top .bsf-filter-section {
  align-self: start;
  border: 1px solid var(--bsf-border);
  border-radius: 13px;
  overflow: hidden;
}

.bsf-filter-section:last-child {
  border-bottom: 0;
}

.bsf-filter-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 55px;
  padding: 13px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  outline: none;
}

.bsf-filter-section summary::-webkit-details-marker {
  display: none;
}

.bsf-filter-section summary:focus-visible,
.bsf-option input:focus-visible + span,
.bsf-chip:focus-visible,
.bsf-pagination button:focus-visible,
.bsf-clear:focus-visible,
.bsf-submit:focus-visible,
.bsf-mobile-filter-button:focus-visible,
.bsf-drawer-close:focus-visible,
.bsf-search-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.bsf-section-selected {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bsf-soft);
  color: var(--bsf-text);
  font-size: 12px;
}

.bsf-filter-section.has-selection .bsf-section-selected {
  display: inline-flex;
}

.bsf-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.bsf-filter-section[open] .bsf-chevron {
  transform: rotate(225deg);
}

.bsf-filter-content {
  padding: 0 18px 18px;
}

.bsf-filter-help {
  margin: 0 0 10px;
  color: var(--bsf-muted);
  font-size: 13px;
}

.bsf-control,
.bsf-option-search input {
  width: 100%;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid #cfd4dc;
  border-radius: var(--bsf-control-radius);
  background: var(--bsf-surface);
  color: var(--bsf-text);
}

.bsf-control:focus,
.bsf-option-search input:focus {
  border-color: var(--bsf-focus);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.bsf-option-search {
  display: block;
  margin: 0 0 10px;
}

.bsf-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 2px 0;
}

.bsf-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  cursor: pointer;
  font-weight: 400;
}

.bsf-option[hidden] {
  display: none;
}

.bsf-option input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--bsf-accent);
}

.bsf-buttons {
  flex-flow: row wrap;
  max-height: none;
  overflow: visible;
  gap: 8px;
}

.bsf-buttons .bsf-option {
  position: relative;
  min-height: 0;
}

.bsf-buttons .bsf-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bsf-buttons .bsf-option span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid #d5d9e0;
  border-radius: 999px;
  background: var(--bsf-surface);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.bsf-buttons .bsf-option input:checked + span {
  border-color: var(--bsf-accent);
  background: var(--bsf-accent);
  color: var(--bsf-accent-contrast);
}

.bsf-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-top: 1px solid var(--bsf-border);
  background: var(--bsf-surface);
}

.bsf-app--top .bsf-filter-actions {
  justify-content: flex-end;
}

.bsf-clear {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bsf-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 8px;
}

.bsf-submit {
  border-radius: 10px;
}

.bsf-app.is-desktop.has-realtime .bsf-submit {
  display: none;
}

.bsf-main {
  min-width: 0;
  outline: none;
}

.bsf-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  min-height: 38px;
  margin: 0 0 16px;
}

.bsf-status {
  color: var(--bsf-muted);
  font-weight: 650;
}

.bsf-active-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.bsf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 10px 5px 12px;
  border: 1px solid var(--bsf-border);
  border-radius: 999px;
  background: var(--bsf-surface);
  color: var(--bsf-text);
  font-size: 13px;
  line-height: 1.25;
}

.bsf-loading-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin: 0 0 10px;
  color: var(--bsf-muted);
  font-size: 14px;
}

.bsf-loading-status[hidden] {
  display: none;
}

.bsf-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--bsf-border);
  border-top-color: var(--bsf-accent);
  border-radius: 50%;
  animation: bsf-spin 700ms linear infinite;
}

@keyframes bsf-spin {
  to { transform: rotate(360deg); }
}

.bsf-results-wrap {
  transition: opacity 170ms ease;
}

.bsf-app.is-loading .bsf-results-wrap {
  opacity: 0.45;
  pointer-events: none;
}

.bsf-grid {
  display: grid;
  grid-template-columns: repeat(var(--bsf-columns, 3), minmax(0, 1fr));
  gap: 20px;
}

.bsf-card-result {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bsf-border);
  border-radius: var(--bsf-radius);
  background: var(--bsf-surface);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.bsf-card-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.09);
}

.bsf-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bsf-soft);
}

.bsf-card-image img,
.bsf-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsf-card-body {
  padding: 18px;
}

.bsf-card-body h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.35;
}

.bsf-card-body h3 a,
.bsf-read-more {
  color: inherit;
  text-decoration: none;
}

.bsf-card-body p {
  margin: 0 0 14px;
  color: var(--bsf-muted);
}

.bsf-read-more {
  font-weight: 750;
}

.bsf-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
}

.bsf-pagination button {
  min-width: 44px;
  padding: 0 10px;
  border: 1px solid var(--bsf-border);
  border-radius: 999px;
  background: var(--bsf-surface);
  color: var(--bsf-text);
}

.bsf-pagination button[aria-current="page"] {
  border-color: var(--bsf-accent);
  background: var(--bsf-accent);
  color: var(--bsf-accent-contrast);
}

.bsf-empty,
.bsf-error {
  padding: 42px 24px;
  border: 1px dashed var(--bsf-border);
  border-radius: var(--bsf-radius);
  background: var(--bsf-soft);
  text-align: center;
}

.bsf-empty-icon {
  margin-bottom: 8px;
  color: var(--bsf-muted);
  font-size: 34px;
}

.bsf-empty h3 {
  margin: 0 0 7px;
}

.bsf-empty p {
  margin: 0;
  color: var(--bsf-muted);
}

.bsf-error {
  color: var(--bsf-danger);
}

.bsf-drawer-backdrop {
  display: none;
}

.bsf-lock {
  overflow: hidden;
}

@media (max-width: 1040px) {
  .bsf-app--sidebar .bsf-layout {
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 22px;
  }

  .bsf-grid {
    grid-template-columns: repeat(min(var(--bsf-columns, 3), 2), minmax(0, 1fr));
  }
}

.bsf-app.is-mobile .bsf-toolbar {
  align-items: stretch;
}

.bsf-app.is-mobile .bsf-search-form {
  flex: 1;
}

.bsf-app.is-mobile .bsf-search-button {
  display: none;
}

.bsf-app.is-mobile .bsf-mobile-filter-button {
  display: inline-flex;
}

.bsf-app.is-mobile .bsf-layout,
.bsf-app.is-mobile.bsf-app--sidebar .bsf-layout {
  display: block;
}

.bsf-app.is-mobile .bsf-filter-panel {
  position: fixed;
  z-index: 100002;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(94vw, 410px);
  max-width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: -18px 0 44px rgba(16, 24, 40, 0.16);
  overflow: auto;
  overscroll-behavior: contain;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 220ms ease;
}

.bsf-app.is-mobile .bsf-filter-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.bsf-app.is-mobile .bsf-filter-panel-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--bsf-surface);
}

.bsf-app.is-mobile .bsf-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bsf-app.is-mobile .bsf-filter-sections,
.bsf-app.is-mobile.bsf-app--top .bsf-filter-sections {
  display: block;
  padding: 0;
  background: var(--bsf-surface);
}

.bsf-app.is-mobile.bsf-app--top .bsf-filter-section {
  border: 0;
  border-bottom: 1px solid var(--bsf-border);
  border-radius: 0;
}

.bsf-app.is-mobile .bsf-filter-actions {
  position: sticky;
  z-index: 3;
  bottom: 0;
  justify-content: space-between;
  padding-bottom: max(15px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.07);
}

.bsf-app.is-mobile .bsf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bsf-app.is-mobile .bsf-drawer-backdrop:not([hidden]) {
  display: block;
  position: fixed;
  z-index: 100001;
  inset: 0;
  background: rgba(16, 24, 40, 0.48);
  backdrop-filter: blur(2px);
}

.bsf-app.is-mobile .bsf-active-chips {
  justify-content: flex-start;
}

.bsf-app.is-mobile .bsf-grid {
  grid-template-columns: 1fr;
}


@media (prefers-reduced-motion: reduce) {
  .bsf-app *,
  .bsf-app *::before,
  .bsf-app *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

.bsf-request-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #d92d20;
  border-radius: 12px;
  background: #fff4f2;
  color: #912018;
  font-size: 0.94rem;
}

/* 0.5.1 top-toolbar experience */
.bsf-filter-rail {
  min-width: 0;
}

.bsf-rail-arrow,
.bsf-all-filters-button {
  display: none;
}

.bsf-summary-copy {
  min-width: 0;
}

.bsf-summary-label {
  display: block;
}

.bsf-summary-value {
  display: none;
}

.bsf-top-active-content {
  display: none;
}

.bsf-top-active-row .bsf-filter-actions {
  width: 100%;
}

.bsf-app--sidebar .bsf-top-active-row {
  display: block;
}

.bsf-app--sidebar .bsf-top-active-row .bsf-active-chips {
  display: none;
}

.bsf-app--top .bsf-sidebar-active-chips {
  display: none;
}

.bsf-app--top.is-desktop {
  --bsf-top-blue: #155eef;
  --bsf-top-blue-soft: #eef4ff;
  --bsf-top-blue-border: #c7d7fe;
  --bsf-top-shadow: 0 14px 34px rgba(16, 24, 40, 0.09);
}

.bsf-app--top.is-desktop .bsf-layout {
  display: block;
}

.bsf-app--top.is-desktop .bsf-filter-panel {
  position: relative;
  top: auto;
  overflow: visible;
  border: 1px solid #edf0f5;
  border-radius: 24px;
  box-shadow: var(--bsf-top-shadow);
}

.bsf-app--top.is-desktop .bsf-filter-panel-header {
  display: none;
}

.bsf-app--top.is-desktop .bsf-filter-rail {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 52px;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 18px 20px;
  border-radius: inherit;
  background: var(--bsf-surface);
}

.bsf-app--top.is-desktop .bsf-filter-viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.bsf-app--top.is-desktop .bsf-filter-viewport::-webkit-scrollbar {
  display: none;
}

.bsf-app--top.is-desktop .bsf-filter-sections {
  display: flex;
  grid-template-columns: none;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  padding: 0;
  background: transparent;
}

.bsf-app--top.is-desktop .bsf-filter-section {
  position: relative;
  flex: 0 0 clamp(190px, 15vw, 250px);
  align-self: stretch;
  overflow: visible;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  background: var(--bsf-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  scroll-snap-align: start;
}

.bsf-app--top.is-desktop .bsf-sort-section {
  flex-basis: clamp(190px, 14vw, 225px);
}

.bsf-app--top.is-desktop .bsf-filter-section summary {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 12px 16px;
  border-radius: inherit;
  font-weight: 400;
}

.bsf-app--top.is-desktop .bsf-filter-section[open] summary {
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.bsf-app--top.is-desktop .bsf-summary-label {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsf-app--top.is-desktop .bsf-summary-value {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #202939;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsf-app--top.is-desktop .bsf-section-selected {
  display: none !important;
}

.bsf-app--top.is-desktop .bsf-chevron {
  width: 9px;
  height: 9px;
  margin-right: 2px;
}

.bsf-app--top.is-desktop .bsf-filter-section > .bsf-filter-content {
  position: fixed;
  z-index: 100020;
  width: min(340px, calc(100vw - 32px));
  max-height: min(430px, calc(100vh - 32px));
  overflow: auto;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: var(--bsf-surface);
  box-shadow: 0 20px 44px rgba(16, 24, 40, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 130ms ease, transform 130ms ease, visibility 130ms ease;
}

.bsf-app--top.is-desktop .bsf-filter-section[open] > .bsf-filter-content.is-positioned {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bsf-app--top.is-desktop .bsf-rail-arrow,
.bsf-app--top.is-desktop .bsf-all-filters-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid #e7eaf0;
  background: var(--bsf-surface);
  color: #202939;
  cursor: pointer;
}

.bsf-app--top.is-desktop .bsf-rail-arrow {
  width: 52px;
  padding: 0;
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(16, 24, 40, 0.06);
}

.bsf-app--top.is-desktop .bsf-rail-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.bsf-app--top.is-desktop .bsf-all-filters-button {
  gap: 9px;
  min-width: max-content;
  padding: 0 18px;
  border-color: var(--bsf-top-blue-border);
  border-radius: 16px;
  color: #1849a9;
  font-weight: 750;
}

.bsf-app--top.is-desktop .bsf-all-filters-button:hover,
.bsf-app--top.is-desktop .bsf-all-filters-button:focus-visible {
  background: #f5f8ff;
}

.bsf-app--top.is-desktop .bsf-all-filters-button .bsf-active-count {
  background: var(--bsf-top-blue);
}

.bsf-app--top.is-desktop .bsf-top-active-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 22px 28px 24px;
  border-top: 1px solid #edf0f5;
  background: var(--bsf-surface);
  border-radius: 0 0 24px 24px;
}

.bsf-app--top.is-desktop .bsf-top-active-content {
  display: grid;
  min-width: 0;
  gap: 11px;
}

.bsf-app--top.is-desktop .bsf-active-title {
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.bsf-app--top.is-desktop .bsf-active-chips {
  justify-content: flex-start;
  gap: 10px;
}

.bsf-app--top.is-desktop .bsf-chip {
  min-height: 42px;
  padding: 8px 13px 8px 15px;
  border-color: transparent;
  border-radius: 9px;
  background: var(--bsf-top-blue-soft);
  color: #175cd3;
  font-size: 14px;
  font-weight: 650;
}

.bsf-app--top.is-desktop .bsf-filter-actions {
  width: auto;
  min-width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
}

.bsf-app--top.is-desktop .bsf-clear {
  min-height: 50px;
  padding: 0 12px;
  color: #1849a9;
}

.bsf-app--top.is-desktop .bsf-submit,
.bsf-app--top.is-desktop.has-realtime .bsf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-color: var(--bsf-top-blue);
  border-radius: 10px;
  background: var(--bsf-top-blue);
  box-shadow: 0 3px 8px rgba(21, 94, 239, 0.22);
}

.bsf-app--top.is-desktop .bsf-main {
  margin-top: 26px;
}

.bsf-app--top.is-desktop .bsf-results-head {
  margin-bottom: 14px;
}

/* Desktop All Filters drawer for the top layout. */
.bsf-app--top.is-desktop .bsf-filter-panel.is-open {
  position: fixed;
  z-index: 100002;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(94vw, 460px);
  max-width: 100%;
  overflow: auto;
  border: 0;
  border-radius: 0;
  box-shadow: -20px 0 46px rgba(16, 24, 40, 0.2);
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-filter-panel-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  background: var(--bsf-surface);
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-filter-rail {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 0;
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-filter-viewport {
  overflow: visible;
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-filter-sections {
  display: block;
  width: auto;
  min-width: 0;
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-filter-section {
  border: 0;
  border-bottom: 1px solid var(--bsf-border);
  border-radius: 0;
  box-shadow: none;
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-filter-section summary {
  min-height: 64px;
  padding: 14px 20px;
  border-radius: 0;
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-filter-section > .bsf-filter-content {
  position: static;
  width: auto;
  max-height: none;
  padding: 0 20px 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-rail-arrow,
.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-all-filters-button {
  display: none;
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-top-active-row {
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: block;
  padding: 14px 18px max(14px, env(safe-area-inset-bottom));
  border-radius: 0;
  box-shadow: 0 -10px 26px rgba(16, 24, 40, 0.08);
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-top-active-content {
  margin-bottom: 12px;
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-filter-actions {
  display: flex;
  width: 100%;
}

.bsf-app--top.is-desktop .bsf-filter-panel.is-open .bsf-submit {
  flex: 1;
}

/* Mobile structure for the new rail wrapper. */
.bsf-app.is-mobile .bsf-filter-rail {
  display: block;
}

.bsf-app.is-mobile .bsf-filter-viewport {
  overflow: visible;
}

.bsf-app.is-mobile .bsf-rail-arrow,
.bsf-app.is-mobile .bsf-all-filters-button {
  display: none;
}

.bsf-app.is-mobile .bsf-top-active-row {
  position: sticky;
  z-index: 3;
  bottom: 0;
  padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--bsf-border);
  background: var(--bsf-surface);
  box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.07);
}

.bsf-app.is-mobile .bsf-top-active-content {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.bsf-app.is-mobile .bsf-active-title {
  font-size: 13px;
}

.bsf-app.is-mobile .bsf-top-active-row .bsf-filter-actions {
  position: static;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.bsf-app.is-mobile .bsf-top-active-row .bsf-active-chips {
  justify-content: flex-start;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .bsf-app--top.is-desktop .bsf-filter-rail {
    grid-template-columns: 46px minmax(0, 1fr) auto 46px;
    gap: 10px;
    padding-inline: 14px;
  }

  .bsf-app--top.is-desktop .bsf-rail-arrow {
    width: 46px;
  }

  .bsf-app--top.is-desktop .bsf-all-filters-button {
    padding-inline: 14px;
  }
}

.bsf-app--top.is-desktop .bsf-drawer-backdrop:not([hidden]) {
  display: block;
  position: fixed;
  z-index: 100001;
  inset: 0;
  background: rgba(16, 24, 40, 0.46);
  backdrop-filter: blur(2px);
}

.bsf-date-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475467;
}

.bsf-app--top.is-desktop .bsf-top-active-row > .bsf-filter-actions:only-child {
  grid-column: 2;
}

.bsf-app--top.is-desktop.has-realtime:not(.has-active-filters) .bsf-top-active-row {
  display: none;
}
