/* AssumedUserBannerComponent (app/components/assumed_user_banner_component.rb): the band on every page while a super admin sees Tessera as a member of staff (plan 04,
   "Assume a user"). The persona banner's sibling (13-persona-banner.css): the words first and Stop after them, on one line when there is room and Stop wrapping under
   them when there is not. The info tone with a thick edge at the start, and the words say what it is, so the tone is never the only signal (WCAG 1.4.1).

   In the page's flow, never fixed or sticky, so it never covers what has the focus (WCAG 2.4.11). Tokens and logical properties only, so it reads in both modes and
   mirrors in a right-to-left language; everything that holds words may shrink and wrap (WCAG 1.4.10). */

.assumed-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  min-inline-size: 0;
  margin-block-end: var(--density-gap);
  padding: 0.6rem 1rem;
  border: 1px solid var(--tone-info-line);
  border-inline-start-width: 4px;
  border-radius: var(--radius-md);
  background: var(--tone-info-bg);
  color: var(--tone-info-fg);
  overflow-wrap: anywhere;
}

.assumed-banner__words {
  flex: 1 1 18rem;
  min-inline-size: 0;
  max-inline-size: 72ch;
}

.assumed-banner__reading,
.assumed-banner__see-only {
  margin-block: 0;
}

.assumed-banner__name {
  font-weight: 600;
  unicode-bidi: isolate;
}

.assumed-banner__stop {
  flex: 0 1 auto;
  min-inline-size: 0;
  margin: 0;
}

.assumed-banner__stop .btn {
  --btn-bg: var(--surface);
}
