/* modules/glossary/glossary.css */

.glossary-head{
  margin: 0 0 16px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.glossary-title{
  margin: 4px 0 0;
}

.glossary-tools{ margin-top: 10px; }
.glossary-search{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
}

.alphabet-nav{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alphabet-nav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-weight: 900;
  text-decoration: none;
}
.alphabet-nav a:hover{ border-color: var(--accent); }

.glossary-groups{ display: flex; flex-direction: column; gap: 14px; }

.glossary-letter{
  margin: 6px 0 0;
  padding-top: 8px;
  font-size: 16px;
  color: var(--text-muted);
}

.term-list{ display:flex; flex-direction: column; gap: 10px; }


.glossary-list{ display:flex; flex-direction:column; }
.glossary-list > .term-card + .term-card{ margin-top: 10px; }

.term-card{
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.term-card__meta{ margin-bottom: 6px; }

.term-date{
  display:inline-flex;
  align-items:center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.term-card__title{
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
}

.term-card__title:hover{ text-decoration: underline; }

.term-card__short{
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.55;
}

.term-full{
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.term-meta{
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.term-content{ line-height: 1.75; }
.term-content p{ margin: 0 0 12px; }
.term-content ul, .term-content ol{ margin: 0 0 12px 18px; }

/* Accordion inside term content */
.term-acc{
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px dashed var(--border-color);
  background: var(--bg-body);
}

.term-acc > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-weight: 900;
  color: var(--text-main);
}

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

.term-acc > summary::after{
  content: "▾";
  font-size: 14px;
  opacity: .8;
  transition: transform .15s ease;
}

.term-acc[open] > summary::after{ transform: rotate(180deg); }

.term-acc__body{ margin-top: 10px; color: var(--text-main); line-height: 1.65; }

.term-acc:not([open]) .term-acc__body{
  max-height: 70px;
  overflow: hidden;
  position: relative;
}

.term-acc:not([open]) .term-acc__body::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 44px;
  pointer-events:none;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg-body));
}

.term-acc__body ul, .term-acc__body ol{ list-style-position: inside; }

.glossary-back{ margin-top: 14px; }
.glossary-back a{ color: var(--text-muted); }

/* Breadcrumbs (если уже определены глобально — ок; если нет, это не мешает) */
.breadcrumbs{ margin: 0 0 10px; color: var(--text-muted); font-size: 13px; }
.breadcrumbs__list{ list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs__item a{ color: var(--text-muted); }
.breadcrumbs__item a:hover{ color: var(--link-hover); text-decoration: underline; }
.breadcrumbs__sep{ opacity: .6; }
.breadcrumbs__current{ color: var(--text-main); opacity: .85; }

