/**
 * Glossary styles (archive + single enhancements)
 */

.glossary-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 10px;
}

.glossary-search {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 620px;
}

.glossary-search input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.95rem;
}

.glossary-search button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.glossary-search button:hover {
  filter: brightness(0.98);
}

.glossary-az {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.glossary-letter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.glossary-letter-chip:hover {
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.glossary-letter-chip.active {
  background: rgba(25, 118, 210, 0.10);
  border-color: rgba(25, 118, 210, 0.25);
  color: #1976d2;
}

.glossary-group-title {
  margin: 18px 0 10px 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}

.glossary-term-card .directory-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.glossary-term-pill {
  font-weight: 900;
  color: #64748b;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Breadcrumb spacing on glossary pages:
   move breadcrumbs down ~20px (more space above, less below). */
body.single-aof_glossary .breadcrumbs,
body.post-type-archive-aof_glossary .breadcrumbs {
  margin-top: calc(-1rem + 20px);
  margin-bottom: 0.3rem; /* halve space under breadcrumbs */
}

/* The global two-column layout uses margin-top: 2rem; that's too much under breadcrumbs for glossary. */
body.single-aof_glossary .content-layout {
  margin-top: 1rem;
}

/* On glossary singles, use same size for ingress and body to avoid "two sizes" feeling. */
body.single-aof_glossary .article-ingress {
  font-size: 1rem;
  line-height: 1.7;
}

/* Single term: subtle "definition" hint */
.glossary-definition-hint {
  color: #0f172a; /* match headings; avoid looking disabled */
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.glossary-definition {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

/* Normalize legacy HTML that may contain mixed font sizes */
.glossary-definition :where(p, li, span) {
  font-size: 1rem !important;
  line-height: 1.7;
}

.glossary-definition :where(h2, h3) {
  font-size: 1.15rem;
  margin-top: 1.25rem;
}

.glossary-related {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.glossary-related a {
  text-decoration: none;
}


