/* ============================================================
   NAV STYLES — margaret-turner.com
   ============================================================
   Designed to match the existing typography of the site:
   restrained serif-friendly, lowercase section labels,
   inline links separated by spacing.

   You can leave this file as-is. To tweak colours or sizes,
   edit the values below.
   ============================================================ */

/* =========================================================
   GLOBAL HEADER / NAVIGATION
   ========================================================= */

#site-nav {
  width: 100%;
  position: relative;
  z-index: 999999;
}

/* Main navigation bar */
.navbar {
  width: 100%;
  background: #2b0000;
  min-height: 64px;
  overflow: visible;
  position: relative;
  box-sizing: border-box;
  padding: 0 12px;
}

/* Clear floats */
.navbar::after {
  content: "";
  display: block;
  clear: both;
}

/* Main links */
.navbar a,
.dropdown .dropbtn {
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 22px 16px;
  text-decoration: none;
  font-size: 16px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

/* Dropdown wrapper */
.dropdown {
  float: left;
  position: relative;
}

/* Hover states */
.navbar a:hover,
.dropdown:hover .dropbtn {
  background-color: #a00000;
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  min-width: 240px;
  z-index: 999999;
  box-shadow: 0 5px 14px rgba(0,0,0,0.4);
}

/* Dropdown links */
.dropdown-content a {
  float: none;
  display: block;
  color: white;
  text-align: left;
  padding: 12px 16px;
  text-decoration: none;
  white-space: nowrap;
}

/* Dropdown hover */
.dropdown-content a:hover {
  background: #333;
}

/* Show dropdown */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile layout */
@media screen and (max-width: 700px) {

  .navbar {
    padding: 0;
  }

  .navbar a,
  .dropdown,
  .dropdown .dropbtn {
    float: none;
    width: 100%;
    text-align: left;
  }

  .dropdown-content {
    position: relative;
    width: 100%;
    box-shadow: none;
  }

}