.glossary-hero p {
  max-width: 72ch;
}

.glossary-section {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 38, 59, 0.12);
  border-radius: 16px;
  padding: 12px;
}

.glossary-section h2 {
  margin: 0 0 10px;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 1.24rem;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.term-card {
  border: 1px solid #dce8f3;
  border-radius: 12px;
  background: #fafdff;
  padding: 11px;
}

.term-card.single {
  margin-bottom: 10px;
}

.term-card h3 {
  margin: 0 0 7px;
  font-size: 1.02rem;
  color: #143652;
}

.term-card p {
  margin: 0 0 8px;
  color: #264961;
  line-height: 1.42;
}

.term-card p:last-child {
  margin-bottom: 0;
}

.term-card ul {
  margin: 0;
  padding-left: 20px;
}

.term-card li {
  margin-bottom: 4px;
  color: #264961;
  line-height: 1.35;
}

.term-details {
  border: 1px solid #dce8f3;
  border-radius: 12px;
  background: #fafdff;
  overflow: clip;
}

.term-details summary {
  cursor: pointer;
  list-style: none;
  padding: 11px;
  font-weight: 900;
  color: #103450;
}

.term-details summary::-webkit-details-marker {
  display: none;
}

.term-details summary:hover {
  background: #edf7ff;
}

.details-copy {
  padding: 0 11px 11px;
}

.details-copy p {
  margin: 0;
  color: #264961;
  line-height: 1.42;
}

@media (max-width: 980px) {
  .term-grid {
    grid-template-columns: 1fr;
  }
}
