/* Shared chrome added for the static site. Keeps Shapebox; only fixes layout gaps. */

/* Logo with the tagline directly underneath, menu on the right. */
#header > .group {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
}

#header .site-title {
  grid-column: 1;
  grid-row: 1;
  float: none;
  line-height: 1;
  padding: 12px 0 0;
}

#header .site-description {
  grid-column: 1;
  grid-row: 2;
  float: none;
  display: block;
  max-width: 220px;
  margin: 6px 0 12px;
  line-height: 1.35;
  clear: none;
}

#header #nav-header {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  float: none;
}

.home-intro {
  max-width: 760px;
  margin: 8px 0 28px;
}

.home-intro h1 {
  font-size: 34px;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}

.home-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

.entry h2 {
  font-size: 26px;
  letter-spacing: -0.4px;
  margin: 1.3em 0 0.45em;
}

.entry h3 {
  font-size: 20px;
  margin: 1.2em 0 0.4em;
}

.entry li {
  margin: 0 0 8px;
}

.entry ol,
.entry ul {
  margin-bottom: 22px;
}

.page-title .cat-intro {
  font-size: 17px;
  line-height: 1.55;
  color: #444;
  max-width: 720px;
  margin: 8px 0 0;
}

.reach-us p {
  margin: 0 0 10px;
}

.contact-status {
  padding: 12px 14px;
  margin: 0 0 18px;
}

.contact-status.ok {
  background: #eef8ee;
}

.contact-status.err {
  background: #fdecec;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

@media only screen and (max-width: 719px) {
  #header {
    padding-right: 16px;
    padding-left: 16px;
  }

  #header > .group {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  #header #nav-header {
    display: block !important;
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    width: 48px;
    justify-self: end;
  }

  #header #nav-header > .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 44px;
    padding: 0;
    float: none;
  }

  #header #nav-header .menu-toggle-icon {
    float: none;
  }

  #header #nav-header .nav-wrap {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: -16px;
    width: 100vw;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    z-index: 30;
  }

  #header #nav-header.toggled .nav-wrap,
  #header #nav-header.mobile.toggled .nav-wrap,
  #header #nav-header.mobile > .menu-toggle[aria-expanded="true"] ~ .nav-wrap {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  #header #nav-header .menu {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  #header #nav-header .menu > li {
    margin: 0;
    border-bottom: 1px solid #eee;
  }

  #header #nav-header .menu a {
    padding: 14px 20px;
    color: #333;
    font-size: 16px;
    font-weight: 700;
  }

  .home-intro h1 {
    font-size: 28px;
  }
}
