/* =========================
   Legal Definitions – Sticky A–Z Index
========================= */
/* Global anchor offset for sticky headers */
html {
  scroll-behavior: smooth;
}

/* Enable sticky inside Pixelarity layout */
.wrapper,
.wrapper .inner {
  overflow: visible;
}

.az-index{
  position: sticky;
  width: 100%;
  top: 3rem;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 3rem 1rem;
  margin: 0 auto;
  background: #fff;
  border-bottom: 1px solid #e3ded6;
}

/* Letters */
.az-index a,
.az-index span {
  padding: 0.45rem 0.7rem;
  border-radius: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  background: #ebe5dc;
  color: var(--navy);
}

/* Disabled letters */
.az-index span {
  opacity: 0.4;
}

.az-index a.stats-btn {
  margin: 0 auto;
}

/* Hover */
.az-index a:hover {
  background: var(--gold);
  color: #fff;
}

/* Active A–Z letter */
.az-index a.is-active {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.definitions {
  padding-top: 1rem;
}

.definitions article {
  margin: 2rem auto;
  border: 1px solid #969696;
  border-radius: .5rem;
  padding: 2rem 1rem;
  background-color: #fff;
  scroll-margin-top: 300px; /* header + quick-nav + az-index */
}

.definitions h3 {
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #969696;
}

.definitions p {
  max-width: 80ch;
  margin-bottom: 0.5rem;
  border-bottom: .5px solid #969696;
}

.back-top {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 720px){
  :root{
    --anchor-offset: 180px;
  }
}
