/* Blog top navigation bar for the standalone ATSee page.
   Same look as the blog's own .site-navigation (css/main.scss section 1,
   _sass/_variables.scss colors) but under its own yb-* class names, so
   the blog's global stylesheet (body/h1/input/button resets) never has
   to be loaded here and can't fight the app's own styles. The menu items
   themselves come from _config.yml's `navigation` via Liquid in
   index.html, so this bar stays in sync with the blog automatically. */

:root { --site-nav-height: 50px; }

#yb-site-nav {
  position: relative;
  z-index: 2000;
  height: var(--site-nav-height);
  background: #3d3d3d;            /* lighten($mine-shaft, 4%) */
  padding: 0 30px;
  font-family: 'Lato', Calibri, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#yb-site-nav .yb-nav-inner {
  position: relative;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding-right: 60px;
}

#yb-site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#yb-site-nav li {
  float: left;
  font-size: 12px;
  line-height: 1.5;
  padding: 16px 0;
}

#yb-site-nav li a {
  display: block;
  padding: 0 15px;
  border-left: 2px solid #474747; /* $tundora */
  color: #818181;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

#yb-site-nav li:first-child > a { border-left: 0; padding-left: 0; }

#yb-site-nav li:hover > a,
#yb-site-nav li.current > a { color: #22b3eb; } /* $picton-blue */

#yb-site-nav .yb-nav-toggle { display: none; }

/* The app fills whatever is left under the bar. */
#app { height: calc(100% - var(--site-nav-height)); }

/* Presentation mode (P) is for clean screen recordings — the blog bar
   goes away with the rest of the chrome. */
body.presentation #yb-site-nav { display: none; }
body.presentation #app { height: 100%; }

/* Narrow screens: collapse the links behind a Menu button, like the blog. */
@media only screen and (max-width: 800px) {
  #yb-site-nav { padding: 0 15px; }

  #yb-site-nav .yb-nav-toggle {
    display: block;
    height: 50px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #818181;
    font: bold 12px/1 'Lato', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
  }
  #yb-site-nav .yb-nav-toggle[aria-expanded="true"] { color: #47c6f4; }

  #yb-site-nav ul {
    display: none;
    position: absolute;
    top: 50px;
    left: -15px;
    right: -75px;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    padding: 0 15px;
    background: #2d2d2d;
  }
  #yb-site-nav ul.open { display: block; }

  #yb-site-nav li {
    float: none;
    padding: 0;
    border-bottom: 2px solid #3d3d3d;
  }
  #yb-site-nav li:last-child { border-bottom: 0; }
  #yb-site-nav li a,
  #yb-site-nav li:first-child > a { border-left: 0; padding: 15px 0; }
}
