/* The react-native-web root reset, served as a file so the CSP needs no inline style. */
html,
body {
  height: 100%;
}
body {
  margin: 0;
  overflow: hidden;
}
#root {
  display: flex;
  height: 100%;
  flex: 1;
}

/*
 * The keyboard focus ring (DESIGN.md « Focus »; MEASURES.focusRing: 2 wide, 2 outside the control), in
 * cedar ink (accentText), the dark theme's own when the phone is dark (the app follows that setting).
 * On the cedar appointment card (« Itinéraire », data-focus-ring="on-cedar") it is the card's text
 * colour. A focus the app moves itself (tabindex -1: a heading, a sheet) draws none.
 */
:focus-visible {
  outline-style: solid;
  outline-width: 2px;
  outline-offset: 2px;
  outline-color: #1a5d48;
}
[data-focus-ring='on-cedar']:focus-visible {
  outline-color: #ffffff;
}
[tabindex='-1']:focus-visible {
  outline-style: none;
}
@media (prefers-color-scheme: dark) {
  :focus-visible {
    outline-color: #86d2b2;
  }
  [data-focus-ring='on-cedar']:focus-visible {
    outline-color: #eef0f3;
  }
}
