/* ═══════════════════════════════════════════
   Lexique (glossary) — hub + term pages
   ═══════════════════════════════════════════ */

/* ─── Hub ─── */
.lex-intro {
  max-width: 720px;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin: 0 0 32px;
}

.lex-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 40px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.lex-toc-label {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-3);
  margin-right: 8px;
  align-self: center;
}

.lex-toc a {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s;
}

.lex-toc a:hover { background: var(--accent); color: white; border-color: var(--accent); }

.lex-section {
  margin: 48px 0 0;
}

.lex-section-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}

.lex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.lex-card {
  display: block;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.lex-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(2, 132, 199, .08);
}

.lex-card-term {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.lex-card-blurb {
  font-size: .8125rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

/* ─── Term page — answer-first card ─── */
.lex-answer {
  background: linear-gradient(135deg, rgba(2, 132, 199, .06), rgba(2, 132, 199, .02));
  border: 1px solid rgba(2, 132, 199, .22);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 28px;
}

.lex-answer-label {
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 8px;
}

.lex-answer p {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* ─── Term page — related terms ─── */
.lex-related {
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}

.lex-related-label {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-3);
  margin: 0 0 16px;
}

.lex-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.lex-related-list li { margin: 0; }

.lex-related-list a {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s, color .15s;
}

.lex-related-list a:hover { background: var(--accent); color: white; border-color: var(--accent); }

.lex-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  margin: 0 0 24px;
}

.lex-back:hover { color: var(--accent-dark); }

.lex-back svg { width: 14px; height: 14px; }

/* ─── CTA strip ─── */
.lex-cta {
  margin: 56px 0 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}

.lex-cta p {
  font-size: .9375rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 16px;
}

.lex-cta a.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 600;
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.lex-cta a.cta-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
