/* Local overrides to keep the GitHub Pages copy close to the Weebly original
   while removing Weebly-only scripts and footer ads. */

body {
  background: #fff;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.container {
  overflow: visible;
}

.footer-wrap {
  min-height: 24px;
}

.footer {
  padding: 0;
}

.paragraph a {
  text-decoration: none;
}

.paragraph a:hover,
.wsite-menu-item:hover {
  opacity: 0.8;
}

.mobile-nav {
  display: none;
}

/* Keep the top navigation aligned identically across all pages. */
.cento-header {
  box-sizing: border-box;
  padding-top: 40px;
}

.cento-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cento-header .logo {
  width: 100%;
  min-height: 48px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cento-header .logo .wsite-logo,
.cento-header .logo .wsite-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  line-height: 1;
}

.cento-header .logo #wsite-title {
  line-height: 1 !important;
}

.cento-header .nav-wrap {
  overflow: visible;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  min-height: 39px;
  text-align: center;
}

.desktop-nav {
  display: block;
  width: 100%;
  margin: 0;
  min-height: 39px;
  text-align: center;
}

.desktop-nav .wsite-menu-default {
  display: inline-block;
  width: auto;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  min-height: 39px;
  vertical-align: top;
}

.desktop-nav .wsite-menu-item-wrap {
  display: inline-block;
  padding: 0;
}

.desktop-nav .wsite-menu-item-wrap > a.wsite-menu-item {
  padding: 5px 15px;
  display: block;
  line-height: 19px;
}

@media screen and (min-width: 769px) {
  .desktop-nav .wsite-menu-default > li {
    min-width: 92px;
    text-align: center;
  }

  .desktop-nav .wsite-menu-default > li:last-child {
    min-width: 132px;
  }
}

.contact-text {
  color: #000;
}

.accent-link {
  color: #666 !important;
}

.accent-link:hover {
  color: #444 !important;
}

.research-link {
  color: #7b3f61 !important;
}

.research-link:hover {
  color: #63314d !important;
}

.jmp-label {
  color: #000;
}

body.menu-open .mobile-nav {
  display: block;
}

@media screen and (min-width: 993px) {
  .wsite-page-research .paper-inline {
    display: inline-block;
    white-space: nowrap;
    padding-right: 220px;
    margin-right: -220px;
  }
}

@media screen and (max-width: 992px) {
  .mobile-nav {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 0 18px;
  }

  .mobile-nav .wsite-menu-default {
    list-style: none;
    margin: 0 auto;
    max-width: 1040px;
    padding: 0 24px;
  }

  .mobile-nav .wsite-menu-item-wrap {
    margin: 0;
    padding: 10px 0;
  }
}

.creative-section {
  max-width: 900px;
  margin: 46px auto 18px;
  padding: 0 12px 28px;
}

body.wsite-page-creative {
  overflow-x: hidden;
}

.creative-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #2f2f2f;
}

.creative-copy {
  color: #333;
  line-height: 1.78;
  margin-bottom: 140px;
}

.creative-page .creative-copy,
.creative-page .creative-label {
  font-size: 16px;
}

.creative-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 22px;
}

.creative-page .creative-row:first-of-type {
  margin-top: 52px;
}

.creative-label {
  padding-top: 96px;
  color: #6d6d6d;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.creative-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  justify-items: center;
  align-items: center;
}

.creative-card {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creative-card img {
  display: block;
  width: 185px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media screen and (max-width: 900px) {
  .creative-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .creative-label {
    padding-top: 0;
  }
}

@media screen and (max-width: 680px) {
  .creative-gallery {
    grid-template-columns: 1fr;
  }

  .creative-card img {
    width: 195px;
    max-width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 767px) {
  .cento-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: 50px;
    padding: 10px 0;
    border-bottom: 2px solid #f7f7f7;
    background: #fff;
  }

  .cento-header .container {
    display: block;
  }

  .cento-header .logo {
    display: table;
    overflow-y: hidden;
    max-width: calc(100vw - 100px);
    height: 30px;
    min-height: 30px;
    margin: 0 auto;
  }

  .cento-header .logo .wsite-logo {
    display: table-cell;
    vertical-align: middle;
  }

  .cento-header #wsite-title {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .cento-header .hamburger {
    position: absolute;
    top: 0;
    left: 5px;
    margin: 0;
  }

  .mobile-nav {
    position: fixed;
    top: 50px;
    left: 0;
    z-index: 19;
    width: 100%;
    height: calc(100vh - 50px);
    max-height: 0;
    opacity: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    background: #fff;
  }

  body:not(.menu-open) .mobile-nav {
    display: none;
  }

  body.menu-open .mobile-nav {
    display: block;
    max-height: calc(100vh - 50px);
    padding: 10px 0 18px;
    opacity: 1;
  }

  .content-wrap,
  .no-header-page .content-wrap,
  .banner-wrap {
    margin-top: 86px;
  }
}
