/* Glossary and FAQ section styles. Kept out of styles.css so other
   sections can ship without touching the shared stylesheet. */

.az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 1.4rem 0 0.4rem;
  list-style: none;
  padding: 0;
}
.az-nav a,
.az-nav span {
  min-width: 2.15rem;
  text-align: center;
  padding: 0.4rem 0.45rem;
  border-radius: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  line-height: 1;
}
.az-nav a {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line-strong);
}
.az-nav a:hover,
.az-nav a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: #eef6ff;
}
.az-nav span {
  color: var(--muted);
  opacity: 0.4;
  border: 1px solid transparent;
}

.glossary-letter {
  margin-top: 2.4rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.glossary-letter h2 {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.glossary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.glossary-list a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem 1.05rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease, border-color 0.18s ease;
}
.glossary-list a:hover,
.glossary-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 114, 235, 0.28);
  box-shadow: var(--shadow);
  color: inherit;
}
.glossary-list h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 0.3rem;
}
.glossary-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.glossary-list .aka {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
}

.term-def {
  background: var(--ice);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.35rem 1.15rem;
  border-left: 4px solid var(--accent);
  margin: 0 0 1.8rem;
}
.term-def .tldr-label { margin-bottom: 0.35rem; }
.term-def p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink);
}

.aka-line {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.related-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1.4rem;
}
.related-terms a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.related-terms a:hover,
.related-terms a:focus-visible {
  border-color: var(--accent);
  background: #eef6ff;
  color: var(--accent-ink);
}

.faq-groups { margin-top: 0.4rem; }
.faq-groups .article-faq { margin-top: 2rem; }
.faq-groups .article-faq h2 {
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}
.faq-lead {
  max-width: 42rem;
}

@media (max-width: 640px) {
  .glossary-list a { padding: 0.9rem 1rem; }
}
