/* v5.4.1: correct the legacy order cascade; do not auto-place hero columns. */
.sb-public .bm-lp__hero-grid {
  grid-template-areas: "copy platforms login";
}
.sb-public .bm-lp__hero-grid > .bm-lp__hero-copy { grid-area: copy; order: 0; }
.sb-public .bm-lp__hero-grid > .bm-lp__orbit { grid-area: platforms; order: 0; }
.sb-public .bm-lp__hero-grid > .bm-lp__hero-form { grid-area: login; order: 0; }
.sb-public .bm-lp__hero-grid > * { min-inline-size: 0; }
.sb-public .bm-lp__hero-copy { overflow-wrap: break-word; }
.sb-public .bm-lp__hero-copy .bm-lp__chip { overflow-wrap: anywhere; }
.sb-public .bm-lp__hero-grid .bm-lp__chip:last-child { grid-column: auto; }
.sb-public .bm-lp__hero .sb54-neon { inset: 0; }
.sb-public .bm-lp__hero .sb54-neon svg { display: block; }

/* A panel's neutral surfaces must not inherit Bootstrap's white text. */
.sb-panel .sb-menu-heading {
  color: var(--text-primary); background: var(--surface-overlay);
  border-block-end: 1px solid var(--border-subtle);
}
html[data-theme="light"] :is(.sb-public,.sb-panel) .bm-brand__1,
html[data-theme="light"] :is(.sb-public,.sb-panel) .bm-brand__2 {
  color: #17233a !important;
}
html[data-theme="light"] .sb-panel #sidebar .content-header > a,
html[data-theme="light"] .sb-panel #sidebar [data-action="sidebar_close"],
html[data-theme="light"] .sb-panel #sidebar .sb-sidebar-identity__text > a {
  color: #17233a !important;
}
html[data-theme="light"] .sb-panel #sidebar .sb-sidebar-identity__text > div,
html[data-theme="light"] .sb-panel #sidebar .bm-sidebar-copy {
  color: #455570 !important;
}
html[data-theme="light"] .sb-panel .sb54-menu,
html[data-theme="light"] .sb-panel .sb54-menu .sb-menu-heading,
html[data-theme="light"] .sb-panel .sb54-menu .dropdown-item,
html[data-theme="light"] .sb-panel .sb54-menu .list-group-item {
  color: #17233a !important; background-color: #fff !important;
}
html[data-theme="light"] .sb-panel .sb54-menu :is(.dropdown-item,.list-group-item):is(:hover,:focus) {
  color: #4125ae !important; background-color: #ece7fb !important;
}
/* The menu is portalled outside the header: style it by its own class. */
.sb-panel .sb54-menu .sb-menu-heading { font-size: 1rem; }
html[data-theme="light"] .sb-panel .sb-ticket-summary,
html[data-theme="light"] .sb-panel .sb-ticket-thread,
html[data-theme="light"] .sb-panel .sb-ticket-message__body {
  color: #17233a !important; background: #fff !important; border-color: #b8c4d8;
}
.sb-privacy-inline { margin-block: 2rem; padding: 1.5rem; border: 1px solid var(--border-default); border-radius: 14px; }
.sb-privacy-inline h2 { margin-top: 0; }
.sb-privacy-inline form { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 991.98px) {
  .sb-public .bm-lp__hero-grid { grid-template-areas: "copy" "platforms" "login"; }
  .sb-public .bm-lp__hero-grid .bm-lp__chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
