
.vot-glossary-page {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --border: #d8d2c4;
  --accent: #69696b;
  --accent2: #8b7a9d;
  --text: #1c1c1c;
  --muted: #6b6457;
  --hover-bg: #d1d1eb;
  --open-bg: #f0f4f8;

  background: var(--bg);
  color: var(--text);
  font-family:  var(--vot-font-body);
  font-weight: 300;
  padding: 0 0 80px;
}

.vot-glossary-page *,
.vot-glossary-page *::before,
.vot-glossary-page *::after {
  box-sizing: border-box;
}

.vot-glossary-page .vot-glossary-header {
   /*background: var(--accent);*/
  color: #fff;
  padding: 48px 40px 36px;
  position: relative;
  overflow: hidden;
}

.vot-glossary-page .vot-glossary-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  /*background: linear-gradient(90deg, var(--accent2), transparent 70%);*/
}

.vot-glossary-page .header-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.vot-glossary-page .h1 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}

.vot-glossary-page h1 {
  font-family: var(--vot-font-body);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.vot-glossary-page .vot-glossary-header p {
  font-size: 15px;
  color: #000;
  max-width: 80%;
  line-height: 1.65;
  margin: 0;
}

.vot-glossary-page .toolbar {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.vot-glossary-page .search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.vot-glossary-page .search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.vot-glossary-page .vot-glossary-search {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.vot-glossary-page .vot-glossary-search:focus {
  border-color: var(--accent);
}

.vot-glossary-page .vot-glossary-search::placeholder {
  color: var(--muted);
}

.vot-glossary-page .count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.vot-glossary-page .count span {
  font-weight: 600;
  color: var(--accent);
}

.vot-glossary-page .alpha-index {
  max-width: 1280px;
  margin: 20px auto 0;
  padding: 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vot-glossary-page .alpha-index a {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 12px;
  font-family: var(--vot-font-body);
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.vot-glossary-page .alpha-index a:hover {
  background: var(--accent);
  color: #fff;
}

.vot-glossary-page .alpha-index a.inactive {
  color: var(--border);
  border-color: var(--border);
  pointer-events: none;
}

.vot-glossary-page .glossary {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 40px;
}

.vot-glossary-page .letter-group {
  margin-bottom: 8px;
}

.vot-glossary-page .letter-anchor {
  font-family: var(--vot-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  padding: 18px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.vot-glossary-page .term {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

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

.vot-glossary-page .term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.vot-glossary-page .term-header:hover {
  background: var(--hover-bg);
  padding-left: 8px;
  border-radius: 4px;
}

.vot-glossary-page .term-title {
  font-family: var(--vot-font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.vot-glossary-page .term-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
  color: var(--muted);
}

.vot-glossary-page .term.open .term-icon {
  border-color: #933f3f;
 color: #933f3f;
  transform: rotate(45deg);
}

.vot-glossary-page .term-body {
  display: none;
  padding: 0 4px 20px;
  animation: votGlossaryFadeIn 0.2s ease;
}

.vot-glossary-page .term.open .term-body {
  display: block;
}

.vot-glossary-page .term.open {
  /*background: var(--open-bg);*/
  border-radius: 6px;
  padding: 0 8px;
  margin: 2px 0;
  border-bottom: none;
}

.vot-glossary-page .term-body p {
  font-size: 15px;
  line-height: 1.75;
  color: #2d2d2d;
  font-weight: 300;
  margin: 0 0 10px;
}

.vot-glossary-page .term-body p:last-child {
  margin-bottom: 0;
}

@keyframes votGlossaryFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vot-glossary-page .no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 15px;
}

.vot-glossary-page .vot-glossary-footer {
  max-width: 1280px;
  margin: 60px auto 0;
  padding: 24px 40px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 600px) {
  .vot-glossary-page .vot-glossary-header {
    padding: 36px 20px 28px;
  }

  .vot-glossary-page .toolbar,
  .vot-glossary-page .alpha-index,
  .vot-glossary-page .glossary {
    padding: 0 20px;
  }

  .vot-glossary-page .vot-glossary-footer {
    padding: 20px 20px 0;
  }
}
