/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */
:root {
  --admin-toolbar-top-bar-height: calc(4 * var(--admin-toolbar-rem));
}
:is(#extra-specificity-hack, [data-drupal-admin-styles]) {
  &.top-bar {
    position: relative;
    z-index: var(--admin-toolbar-z-index-top-bar);
    display: flex;
    display: none;
    color: var(--admin-toolbar-color-gray-990);
    background-color: white;
    box-shadow: 0 0 8px 0 var(--admin-toolbar-color-shadow-15);
    font-family: var(--admin-toolbar-font-family);
    padding-inline: var(--admin-toolbar-space-4);
    padding-block: var(--admin-toolbar-space-4);

    @media (min-width: 64rem) {
      block-size: var(--admin-toolbar-top-bar-height);
      position: fixed;
      inset-block-start: 0;
      inset-inline-start: 0;
      width: 100vw;
      padding-block: var(--admin-toolbar-space-12);
      padding-inline: calc(var(--drupal-displace-offset-left, var(--admin-toolbar-sidebar-width)) + var(--admin-toolbar-space-32)) var(--admin-toolbar-space-32);
      box-shadow:
        0 0 40px 0 var(--admin-toolbar-color-shadow-6),
        0 4px 4px 0 var(--admin-toolbar-color-shadow-8);

      [dir="rtl"] & {
        padding-inline: calc(var(--drupal-displace-offset-right, var(--admin-toolbar-sidebar-width)) + var(--admin-toolbar-space-32)) var(--admin-toolbar-space-32);
      }
    }
  }

  &.top-bar:has(.top-bar__tools:not(:empty), .top-bar__context:not(:empty), .top-bar__actions:not(:empty)) {
    display: block;

    ~ .dialog-off-canvas-main-canvas {
      @media (min-width: 64rem) {
        margin-block-start: var(--admin-toolbar-top-bar-height);
      }
    }
  }

  .top-bar__actions {
    display: flex;
    justify-content: end;
    gap: 0.5rem;

    @media (min-width: 64rem) {
      justify-content: end;
      gap: var(--admin-toolbar-space-4);
    }
  }

  .top-bar__content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: center;
    gap: var(--admin-toolbar-space-16);
    width: 100%;
  }

  .top-bar__controls {
    display: none;

    @media (min-width: 64rem) {
      display: flex;
      gap: var(--admin-toolbar-space-8);
    }
  }

  .top-bar__context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--admin-toolbar-space-20);
  }

  .top-bar__title {
    --toolbar--title-max-width: 40ch;
  }

  .top-bar__tools {
    display: flex;
    gap: 0.5rem;
  }
}
