.admin-toolbar__logo img {
  max-width: 64px;
}

/*
 * Gin 5.0.15 gives danger buttons in dialog button panes a solid danger
 * background, but leaves their default text set to the same danger colour.
 * Use Gin's contrasting button text token so labels such as Views UI's
 * "Remove" remain visible in both light and dark modes.
 */
.ui-dialog .ui-widget-content.ui-dialog-buttonpane .button.button--danger {
  color: var(--gin-color-button-text);
}

/* Hide node title in the admin Navigation top-bar on biodata pages */
body.page-node-type-biodata .top-bar__content .top-bar__title {
  display: none;
}

/* Do not reserve sticky top-bar space when the hidden title is its only item. */
body.page-node-type-biodata .top-bar:not(:has(.top-bar__tools > *)):has(.top-bar__context > .top-bar__title:only-child):not(:has(.top-bar__actions > *)) {
  display: none;
}

@media (min-width: 64rem) {
  body.page-node-type-biodata .top-bar:not(:has(.top-bar__tools > *)):has(.top-bar__context > .top-bar__title:only-child):not(:has(.top-bar__actions > *)) ~ .dialog-off-canvas-main-canvas {
    margin-block-start: 0;
  }
}

/* Views page displays provide their own page controls and need no top bar. */
body.views-page-display :is(#extra-specificity-hack, [data-drupal-admin-styles]).top-bar.top-bar.top-bar {
  display: none;
}

@media (min-width: 64rem) {
  body.views-page-display :is(#extra-specificity-hack, [data-drupal-admin-styles]).top-bar.top-bar.top-bar ~ .dialog-off-canvas-main-canvas {
    margin-block-start: 0;
  }
}
