/* Copyright Ayers Electronics Inc. All rights reserved. */

/* The networks step of a first run (js/network-setup.js sets body.networks-setup): the welcome shell
   around the Networks page's own card. No tab bar, no clock and no picture pan; the bird and the
   wordmark centred over the card, and the three-step tracker (css/components/first-start.css) under
   it. Every other visit to the page never draws any of this. */
body.networks-setup #guideHead,
body.networks-setup #guide #ondemand,
body.networks-setup #sideColumn,
body.networks-setup #previewCaption {
  display: none;
}
body.networks-setup.page-up #clock {
  opacity: 0;
}
/* The shell is centred on the screen by auto margins rather than justify-content, which would push a
   face taller than the screen past its top (the floor's Chromium 83 has no `safe` keyword). The card
   gives up height to the screen as it does on the page (css/layout/networks.css), its list scrolling
   inside it between the heading and CONTINUE, the bar going with it. */
body.networks-setup #serversPage {
  align-items: center;
}
body.networks-setup #serversPage::before,
body.networks-setup #serversPage::after {
  content: "";
  flex: none;
}
body.networks-setup #serversPage::before {
  margin-top: auto;
}
body.networks-setup #serversPage::after {
  margin-bottom: auto;
}
body.networks-setup #networksCard {
  width: 620px;
  max-width: 100%;
}
/* A television's 540: the shell keeps less air around the card so two whole rows show in the list. */
@media (max-height: 600px) {
  body.networks-setup #serversPage {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  body.networks-setup .networks-setup-head {
    margin-bottom: 8px;
  }
  body.networks-setup #networksSetupSteps {
    margin-top: 8px;
  }
}
.networks-setup-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
/* A margin rather than a flex gap, which the television WebViews' floor (Chromium 83) never draws. */
.networks-setup-mark {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}
.networks-setup-wordmark {
  font-size: var(--type-display);
  line-height: 1;
}
