/* The articles navigation collapses at 1040px; match its language control. */
@media (min-width: 768px) and (max-width: 1040px) {
  .jakito-language--desktop, .jakito-language--menu.jakito-language--desktop { display: none; }
  .jakito-language--mobile { display: flex; flex-wrap: wrap; padding-block: .5rem; }
  .jakito-language--menu.jakito-language--mobile { display: block; padding-block: .5rem; }
}

.bs-page .bh-header .ba-trigger svg.ba-chevron { width:14px; height:14px; max-width:14px; max-height:14px; flex:0 0 14px; }


/* Keep the desktop shell on the site's 1120px content grid. */
@media (min-width: 900px) {
  .bs-page .bh-header {
    inset-inline: 1rem;
    max-width: 1120px;
    margin-inline: auto;
  }

  .bs-page .bh-header .bh-bar {
    width: calc(100% - 2rem);
  }
}

@media (width > 1040px) {
  .bs-page .bh-tools > .jakito-language--desktop {
    position: relative;
    inset: auto;
    transform: none;
    flex: none;
  }

  .bs-page .bh-tools > .jakito-language--desktop summary {
    min-width: 44px;
    width: auto;
    min-height: 44px;
    padding-inline: .55rem;
    border: 1px solid var(--bf-color-line);
    background: var(--bf-color-surface);
    font-size: .8rem;
  }

  .bs-page .bh-tools > .jakito-language--desktop[open] summary,
  .bs-page .bh-tools > .jakito-language--desktop summary:hover {
    color: var(--bf-color-brass);
  }
}
