/* Previous / home / next row at the bottom of blog posts.
   Previous and Next match the hashtag pills on /posts (see .tag-bar .tag-btn). */
.post-nav-wrap {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .6rem 1rem;
  width: 100%;
  font-family: 'Manrope', sans-serif;
}

.post-nav-side {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  padding: 4px 12px;
  border: 1px solid #cfdcec;
  border-radius: 999px;
  background: #eef3f9;
  color: #1E90FF;
  font: bold .85rem/1.5 'Manrope', sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

.post-nav-side:hover {
  border-color: #1E90FF;
}

.post-nav-side:focus-visible {
  outline: 2px solid #1E90FF;
  outline-offset: 2px;
}

.post-nav-side:active {
  border-color: #1E90FF;
  background: #1E90FF;
  color: #FFF;
}

.post-nav-prev {
  justify-self: start;
  justify-content: flex-start;
}

.post-nav-next {
  justify-self: end;
  justify-content: flex-end;
  text-align: right;
}

.post-nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  color: #2a2a33;
  text-decoration: none;
}

.post-nav-home:hover {
  color: #1E90FF;
}

.post-nav-home:focus-visible {
  outline: 2px solid #1E90FF;
  outline-offset: 2px;
}

.post-nav-home svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.post-nav-side svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.post-nav-side.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.post-nav-label {
  display: inline;
}

@media (max-width: 650px) {
  .post-nav {
    gap: .4rem .5rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
