/* Small navigation refinements; approved typography and brand images stay intact. */
.av-nav-pill.wp-block-group {
  align-items: center;
}

.av-nav-pill > .wp-block-shortcode {
  display: flex;
  align-items: center;
  margin-block: 0;
  line-height: 0;
}

.av-nav-pill .attunea-brand {
  align-self: center;
  margin-block: 0;
  line-height: 0;
}

/* Centre the visible wordmark within its unchanged transparent 640 × 360 file. */
.av-nav-pill .attunea-brand img {
  top: calc(50% - 79px);
}

.at-back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 15;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #503047;
  border-radius: 50%;
  background: #D0E3C4;
  color: #503047;
  box-shadow: 0 3px 12px #50304714;
  cursor: pointer;
  font: 400 26px/1 Georgia, serif;
  transition: background-color .15s, color .15s;
}

.at-back-to-top[hidden] {
  display: none !important;
}

.at-back-to-top:hover {
  background: #503047;
  color: #fff;
}

.at-back-to-top:focus-visible {
  outline: 3px solid #503047;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #fff;
}

@media (max-width: 900px) {
  .av-nav-pill .attunea-brand img {
    top: calc(50% - 61px);
  }
}

@media (max-width: 600px) {
  .at-back-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .at-back-to-top {
    transition: none;
  }
}

@media print {
  .at-back-to-top {
    display: none !important;
  }
}
