/* NativeDevicesComponent (app/components/native_devices_component.rb). A heading and a line, then one card per phone: its facts on the start side
   and its button on the end side, which wraps under the facts when there is no room (a phone, a longer language).

   Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads on the light shell
   and the console, in light and in dark, and mirrors in a right-to-left language. Nothing pinned to an edge, no height in vh, and everything that holds
   words may shrink and wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */

.native-devices {
  display: grid;
  gap: var(--density-gap);
  min-inline-size: 0;
}

.native-devices__title {
  margin-block: 0;
}

.native-devices__lede {
  margin-block: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.native-devices__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--density-gap);
}

.native-devices__device {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--density-gap);
  min-inline-size: 0;
  /* `.card` has no padding of its own (35-components.css); the card body's. */
  padding-block: var(--space-3);
  padding-inline: var(--space-4);
}

.native-devices__facts {
  display: grid;
  gap: 0.2rem;
  min-inline-size: 0;
  flex: 1 1 14rem;
}

.native-devices__platform {
  margin-block: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.native-devices__meta {
  margin-block: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.native-devices__turn-off {
  margin: 0;
}

/* The pages around it in the phone apps' sign-in (app/views/native, the front door's Face ID button): the offer's words and buttons, the status line
   a failed check is said in, and the one rule a button needs to stay hidden until the phone says it can (a class's display outranks the preflight's
   [hidden]). */
.native-sign-in {
  display: grid;
  gap: var(--density-gap);
  justify-items: start;
  min-inline-size: 0;
}

.native-sign-in__note {
  margin-block: 0;
  color: var(--fg2);
  max-inline-size: 60ch;
  overflow-wrap: anywhere;
}

/* The offer's parts are a page flow (41-page-structure.css), which spaces the buttons from the words above them. */
.native-offer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--density-gap);
  margin: 0;
}

.native-offer__label {
  max-inline-size: 60ch;
  overflow-wrap: anywhere;
}

.native-offer__status,
.native-biometric__status {
  margin-block: 0;
  color: var(--fg2);
  overflow-wrap: anywhere;
}

/* The Face ID button sits in the front door's sign-in flow (92-front-door.css), which spaces it from the way in under it. */
.native-biometric {
  min-inline-size: 0;
}

.native-offer__actions [hidden],
.native-biometric [hidden] {
  display: none;
}
