/* Fixed header clearance + mobile nav drawer fixes (static site) */

:root {
  --header-h: 5.375rem; /* matches original header line-height */
}

body {
  padding-top: var(--header-h);
}

/* Old theme offset fixed header via banner margin-top; we use body padding-top instead */
.index_banner,
section.index_banner,
.about_banner,
section.about_banner {
  margin-top: 0 !important;
}

/* Desktop nav: make click target match full hover area (tall li via line-height) */
@media screen and (min-width: 1131px) {
  .index_header_right_nav > ul > li > a {
    display: block;
    line-height: 5.375rem;
    padding: 0 0.15rem;
  }
}

@media screen and (max-width: 1130px) {
  :root {
    --header-h: 4.25rem;
  }

  .index_header > .main {
    position: relative;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .index_header_logo {
    position: relative;
    z-index: 100;
    max-width: 8rem;
  }

  .index_header .inner-header-icon {
    position: relative;
    z-index: 100;
    margin-left: auto;
  }

  /* Drawer starts below the bar so it doesn't cover logo / hamburger */
  .index_header_right {
    top: 100% !important;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h)) !important;
    max-height: calc(100vh - var(--header-h));
    padding-top: 1.25rem !important;
    z-index: 98 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  }

  .index_header_right_nav > ul > li a {
    padding: 0.75rem 0;
  }
}

@media screen and (max-width: 900px) {
  :root {
    --header-h: 3.75rem;
  }

  .index_header_logo {
    max-width: 7rem;
  }
}
