/* ── GLOSSARY PAGE ── */

.glossary-main {
  background: var(--grafito);
  min-height: 100vh;
  padding: 80px 24px 120px;
}

.glossary-container {
  max-width: 760px;
  margin: 0 auto;
}

/* Header */
.glossary-header {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247,249,250,0.08);
  margin-bottom: 8px;
}

.glossary-header-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,249,250,0.30);
  margin-bottom: 22px;
}

.glossary-header-h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 500;
  color: rgba(247,249,250,0.90);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.glossary-header-lead {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(247,249,250,0.48);
  max-width: 600px;
  margin: 0;
}

/* Search / filter */
.glossary-search-wrap {
  margin: 28px 0 8px;
  position: relative;
}

.glossary-search {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px 13px 42px;
  font-size: 14.5px;
  font-family: inherit;
  color: rgba(247,249,250,0.92);
  background: rgba(247,249,250,0.04);
  border: 1px solid rgba(247,249,250,0.12);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.16s, background 0.16s;
}

.glossary-search::placeholder { color: rgba(247,249,250,0.30); }

.glossary-search:focus {
  border-color: rgba(247,249,250,0.32);
  background: rgba(247,249,250,0.06);
}

.glossary-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(247,249,250,0.30);
  font-size: 15px;
  pointer-events: none;
}

.glossary-empty {
  display: none;
  font-size: 14px;
  color: rgba(247,249,250,0.35);
  padding: 28px 0 8px;
}

/* Category nav (anchor pills) */
.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
}

.glossary-nav a {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(247,249,250,0.50);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(247,249,250,0.10);
  border-radius: 100px;
  transition: color 0.16s, border-color 0.16s;
}

.glossary-nav a:hover {
  color: rgba(247,249,250,0.92);
  border-color: rgba(247,249,250,0.30);
}

/* Category section */
.glossary-cat {
  margin-top: 56px;
  scroll-margin-top: 24px;
}

.glossary-cat-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ambar, #f0b300);
  margin-bottom: 4px;
  display: block;
}

/* Term entry */
.glossary-term {
  border-bottom: 1px solid rgba(247,249,250,0.06);
  padding: 26px 0;
  scroll-margin-top: 24px;
}

.glossary-term:last-child { border-bottom: none; }

.glossary-term-name {
  font-size: 17px;
  font-weight: 500;
  color: rgba(247,249,250,0.95);
  line-height: 1.35;
  margin: 0 0 4px;
}

.glossary-term-alt {
  font-size: 13px;
  color: rgba(247,249,250,0.40);
  font-style: italic;
  margin: 0 0 12px;
}

.glossary-term-def {
  font-size: 14.5px;
  line-height: 1.74;
  color: rgba(247,249,250,0.56);
  margin: 0 0 8px;
}

.glossary-term-def:last-child { margin-bottom: 0; }

.glossary-term ul {
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
}

.glossary-term ul li {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(247,249,250,0.50);
  padding: 4px 0 4px 18px;
  position: relative;
}

.glossary-term ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(247,249,250,0.18);
  font-size: 11px;
  top: 6px;
}

.glossary-term ul li strong {
  color: rgba(247,249,250,0.72);
  font-weight: 500;
}

.glossary-seealso {
  font-size: 12.5px;
  color: rgba(247,249,250,0.34);
  margin-top: 12px;
}

.glossary-seealso a {
  color: rgba(247,249,250,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(247,249,250,0.18);
  transition: color 0.16s, border-color 0.16s;
}

.glossary-seealso a:hover {
  color: rgba(247,249,250,0.92);
  border-color: rgba(247,249,250,0.45);
}

/* Cross-link to FAQ */
.glossary-cross {
  margin-top: 80px;
  padding: 28px 26px;
  background: rgba(247,249,250,0.03);
  border: 1px solid rgba(247,249,250,0.08);
  border-radius: 10px;
}

.glossary-cross p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(247,249,250,0.55);
  margin: 0 0 14px;
}

.glossary-cross a.glossary-cross-btn {
  display: inline-block;
  font-size: 13.5px;
  color: rgba(247,249,250,0.88);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(247,249,250,0.18);
  border-radius: 8px;
  transition: border-color 0.16s, color 0.16s;
}

.glossary-cross a.glossary-cross-btn:hover {
  border-color: rgba(247,249,250,0.40);
  color: #fff;
}

/* Back link */
.glossary-back {
  display: inline-block;
  margin-top: 48px;
  font-size: 13px;
  color: rgba(247,249,250,0.30);
  text-decoration: none;
  transition: color 0.16s;
}

.glossary-back:hover { color: rgba(247,249,250,0.70); }

@media (max-width: 640px) {
  .glossary-main { padding: 60px 20px 80px; }
  .glossary-term-name { font-size: 16px; }
}
