:root {
  --adir-blue: #173d74;
  --adir-blue-dark: #0f2b53;
  --adir-gold: #ebc545;
  --surface: #f2f2f2;
  --card: #ffffff;
  --line: #e8e8e8;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--surface);
  color: #222;
}

a {
  color: var(--adir-blue);
}

a:hover {
  color: var(--adir-gold);
}

.container {
  max-width: 920px;
}

.header {
  margin-top: 4rem;
  text-align: left;
}

.lab-wordmark {
  background: linear-gradient(135deg, var(--adir-blue-dark), var(--adir-blue));
  border-radius: 10px;
  color: #fff;
  margin: 0 auto 1rem;
  max-width: 290px;
  padding: 1.6rem 1.2rem;
  text-align: center;
}

.lab-acronym {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.24rem;
  line-height: 1;
}

.lab-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.08rem;
  margin-top: 0.4rem;
}

.lab-title {
  margin-bottom: 0.6rem;
}

.lab-intro {
  margin-bottom: 0;
}

.value-prop {
  margin-top: 1rem;
}

.docs-header {
  text-transform: uppercase;
  font-size: 1.9rem;
  letter-spacing: 0.16rem;
  font-weight: 600;
}

.docs-section {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
  margin-bottom: 0;
}

.news-list,
.pub-list {
  margin-bottom: 0;
}

.topic-pub-list {
  margin-bottom: 1rem;
}

.topic-pub-list li {
  margin-bottom: 0.35rem;
}

.pub-list li {
  scroll-margin-top: 90px;
}

.corresponding-note {
  font-size: 1.55rem;
  margin-bottom: 1.2rem;
}

.corresponding-star {
  color: var(--adir-blue);
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1;
  margin-left: 0.02em;
  vertical-align: baseline;
}

.member-subheader {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.06rem;
  margin-top: 1.4rem;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

#members .example {
  margin-top: 1.1rem;
}

.example {
  position: relative;
  margin-top: 3rem;
}

.example-header {
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.example-description {
  margin-bottom: 1.2rem;
}

.example-screenshot-wrapper {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  height: clamp(180px, 36vw, 240px);
}

.example-profile-wrapper {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  height: 100px;
  width: 100px;
  background: var(--card);
}

.member-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--adir-blue-dark), var(--adir-blue));
  border-radius: 12px;
  color: #fff;
  display: flex;
  font-size: 2rem;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  letter-spacing: 0.08rem;
  width: 100%;
}

img.grayscale {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  box-sizing: border-box;
  background: #fff;
}

img.grayscale:hover {
  filter: none;
  -webkit-filter: grayscale(0%);
}

.navbar {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #666;
  padding: 2.5rem 0 4rem;
}

/* Larger than phone */
@media (min-width: 550px) {
  .header {
    margin-top: 8rem;
  }

  .docs-section {
    padding: 5rem 0;
  }

  .example {
    min-height: 250px;
  }

  .example-screenshot-wrapper {
    position: absolute;
    width: 48%;
    height: 100%;
    left: 0;
    min-height: 230px;
    max-height: none;
  }

  .example-profile-wrapper {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 0;
    max-height: none;
  }

  #members .example {
    min-height: 115px;
  }
}

/* Larger than tablet */
@media (min-width: 750px) {
  .navbar + .docs-section {
    border-top-width: 0;
  }

  .navbar,
  .navbar-spacer {
    display: block;
    width: 100%;
    height: 6.5rem;
    background: var(--surface);
    z-index: 99;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .navbar-spacer {
    display: none;
  }

  .navbar > .container {
    width: 100%;
  }

  .navbar-list {
    list-style: none;
    margin-bottom: 0;
  }

  .navbar-item {
    position: relative;
    float: left;
    margin-bottom: 0;
  }

  .navbar-link {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2rem;
    margin-right: 28px;
    text-decoration: none;
    line-height: 6.5rem;
    color: #222;
  }

  .navbar-link.active {
    color: var(--adir-blue);
  }

  .has-docked-nav .navbar {
    position: fixed;
    top: 0;
    left: 0;
  }

  .has-docked-nav .navbar-spacer {
    display: block;
  }

  .has-docked-nav .navbar > .container {
    width: 80%;
  }

  .popover.open {
    display: block;
  }

  .popover {
    display: none;
    position: absolute;
    top: 92%;
    left: -50%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.1));
  }

  .popover-item:first-child .popover-link:after,
  .popover-item:first-child .popover-link:before {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
  }

  .popover-item:first-child .popover-link:after {
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #fff;
    border-width: 10px;
    margin-left: -10px;
  }

  .popover-item:first-child .popover-link:before {
    border-color: rgba(238, 238, 238, 0);
    border-bottom-color: var(--line);
    border-width: 11px;
    margin-left: -11px;
  }

  .popover-list {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .popover-item {
    padding: 0;
    margin: 0;
  }

  .popover-link {
    position: relative;
    color: #222;
    display: block;
    padding: 8px 20px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.1rem;
  }

  .popover-item:first-child .popover-link {
    border-radius: 4px 4px 0 0;
  }

  .popover-item:last-child .popover-link {
    border-radius: 0 0 4px 4px;
    border-bottom-width: 0;
  }

  .popover-link:hover {
    color: #fff;
    background: var(--adir-blue);
  }

  .popover-link:hover,
  .popover-item:first-child .popover-link:hover:after {
    border-bottom-color: var(--adir-blue);
  }
}
