/* PersonaBannerComponent (app/components/persona_banner_component.rb): the banner on every page while a tester works as a persona (docs/reset_plan.md sections 6.4
   and 8). The sentence first and "Return to yourself" after it, on one line when there is room and the button wrapping under the sentence when there is not
   (a phone, a longer language). The break-glass and emergency banners' sibling: the accent 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).

   It sits in the page's flow, at the top of the main region or in the native frame's banners: nothing here is fixed or sticky, so it never covers what has the
   focus (WCAG 2.4.11), and it scrolls away with the page. In a browser the button stands on the page's own surface, so its label is a pair the contrast check
   measures in both modes; in a shell it takes the platform's button look (96-native-ios.css, 97-native-android.css), which axe measures in both modes in the
   preview's ios and android examples. It keeps the button's own target size (24px, and the 44px floor on touch, 40-native.css).

   Tokens only and logical properties only (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads on both shells, in light and in dark, and
   mirrors in a right-to-left language. No height in vh, and everything that holds words may shrink and wrap (WCAG 1.4.10). */

.persona-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-accent-line);
  border-inline-start-width: 4px;
  border-radius: var(--radius-md);
  background: var(--tone-accent-bg);
  color: var(--tone-accent-fg);
  overflow-wrap: anywhere;
}

.persona-banner__reading {
  flex: 1 1 18rem;
  min-inline-size: 0;
  max-inline-size: 72ch;
  margin-block: 0;
}

/* The name is a span with dir="auto": an isolate in its own direction, as a bdi is, said here as well as by the browser's own rule for [dir]. */
.persona-banner__name {
  font-weight: 600;
  unicode-bidi: isolate;
}

.persona-banner__return {
  flex: 0 1 auto;
  min-inline-size: 0;
  margin: 0;
}

.persona-banner__return .btn {
  --btn-bg: var(--surface);
}
