:root {
  --libwipi-accent: #3d63dd;
  --libwipi-accent-soft: #edf2ff;
}

html[data-theme="dark"] {
  --libwipi-accent: #8da4ff;
  --libwipi-accent-soft: #1b2442;
}

.bd-main .bd-content .bd-article-container {
  max-width: 70rem;
}

.sd-card {
  border-top: 0.2rem solid var(--libwipi-accent) !important;
  background: color-mix(in srgb, var(--libwipi-accent-soft) 45%, transparent);
}

table code,
.sig-name,
.sig-prename {
  word-break: normal;
}

.bd-article table {
  width: 100%;
}

/* Keep the full desktop navigation on one row; smaller screens use the
   theme's collapsed navigation instead. */
@media (min-width: 992px) {
  #pst-header .bd-header__inner,
  #pst-header .navbar-header-items,
  #pst-header .navbar-header-items__center,
  #pst-header .bd-navbar-elements {
    flex-wrap: nowrap;
  }

  #pst-header .navbar-header-items__center {
    min-width: 0;
  }

  #pst-header .bd-navbar-elements {
    white-space: nowrap;
  }

  #pst-header .bd-navbar-elements > .nav-item {
    flex: 0 0 auto;
  }
}
