/* Install and offline: the landing's install button and in-app line, the two-step sheet's
 * steps, the offline line under the top bar, and the sign-in buttons while offline. Tokens only;
 * the sheet itself is a nudge (`.card.nudge.sheet`, nudge.css). Edited by hand. */

#install-landing[hidden],
#install-line[hidden] {
  display: none;
}

.install-line {
  margin: var(--s-2) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--t-meta);
  line-height: var(--lh-ui);
}

.install-steps {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-step {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: var(--lh-ui);
  color: var(--text);
}

/* The step's number: the display face, plain text colour (yellow is for what you press). */
.install-step-n {
  flex: none;
  width: 1ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: var(--t-d1);
  line-height: var(--lh-tight);
  color: var(--text);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* The icon, drawn with the text colour and no box: it must not look tappable. */
.install-step-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--text);
}

.install-step-text {
  flex: 1;
  min-width: 0;
}

/* The pointer under the steps: a down arrow toward the bar's button, centred or at the right. */
.install-point {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--t-meta);
  line-height: var(--lh-ui);
  color: var(--text);
}

/* The arrow comes first in the markup and is drawn last here: under the text, on the midline. */
.install-point--center {
  flex-direction: column-reverse;
  text-align: center;
}

/* At the right edge, the arrow over the bar's "..." button, the words to its left. */
.install-point--right {
  flex-direction: row-reverse;
  justify-content: flex-start; /* in a reversed row, the start is the right edge */
  text-align: right;
}

.install-point-ico {
  display: grid;
  width: 24px;
  height: 24px;
  color: var(--accent-text);
}

.install-os h3 {
  margin: var(--s-4) 0 var(--s-2);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: var(--t-d0);
  line-height: var(--lh-snug);
  color: var(--text);
}

.install-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  line-height: var(--lh-ui);
}

.install-open {
  display: grid;
  gap: var(--s-3);
}

.install-open .btn {
  justify-self: start;
}

.install-nudge-body {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: var(--lh-ui);
}

.install-nudge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.offline-line {
  position: fixed;
  top: calc(var(--topbar-h) + var(--s-2));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
}

body[data-offline="1"] a[data-google-sign-in] {
  opacity: 0.5;
  pointer-events: none;
}
