.glossary-layout {
  padding: 80px 0;
}

.glossary-sidebar {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 24px;
  position: sticky;
  top: 110px;
}

.glossary-sidebar h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.glossary-sidebar h4 {
  font-size: 16px;
  margin: 16px 0 8px;
}

.glossary-sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
}

.glossary-sidebar li {
  margin-bottom: 6px;
}

.glossary-sidebar a {
  color: #0b0c1a;
  text-decoration: none;
}

.glossary-sidebar a.active {
  color: #ff6b00;
  font-weight: 600;
}

.glossary-content h1 {
  margin-bottom: 12px;
}

.glossary-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.glossary-content h3 {
  margin-top: 22px;
  margin-bottom: 10px;
}

.glossary-content p {
  margin-bottom: 12px;
}

.glossary-content ul,
.glossary-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.glossary-content li {
  margin-bottom: 6px;
}

.glossary-content hr {
  border-top: 1px solid #eef1f5;
  margin: 24px 0;
}

.glossary-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.glossary-module-card {
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  height: 100%;
}

.glossary-module-card h3 {
  margin-top: 0;
}

.glossary-module-card p {
  margin-bottom: 16px;
}

.glossary-intro {
  margin-bottom: 32px;
}

.glossary-markdown a {
  color: inherit;
}

@media (max-width: 991px) {
  .glossary-sidebar {
    position: static;
    margin-bottom: 24px;
  }
}
