/* Blog article (was inline in single.php) */
.article-share-fixed {
  position: fixed;
  left: max(8px, calc((100vw - 1386px) / 2 + 6px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 9px 7px;
  border: 1px solid #e7e9ec;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(25, 30, 36, .07);
}

.share-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  line-height: 1;
  color: #7a7d81;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 5px 0 4px;
}

.share-fixed-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #edf0f2;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #839647 !important;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.share-fixed-btn svg {
  display: block;
  color: #839647 !important;
}

.share-fixed-btn:hover {
  transform: translateY(-1px);
  border-color: #839647;
  background: #f5f7ec;
  color: #839647 !important;
}

.share-fixed-btn.copied {
  width: auto;
  min-width: 166px;
  padding: 0 14px;
  border-radius: 999px;
  background: #839647 !important;
  border-color: #839647 !important;
  color: #fff !important;
}

.share-fixed-btn.copied svg {
  color: #fff !important;
}

.share-copied-text {
  display: block;
  color: #fff !important;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-toc-open {
  display: none;
  width: 100%;
  margin: 18px 0 24px;
  min-height: 52px;
  border: 1px solid #e3e5e8;
  border-radius: 14px;
  background: #fff;
  color: #202124;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.mobile-toc-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.mobile-toc-popup.active {
  display: block;
}

.mobile-toc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.48);
}

.mobile-toc-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-height: 78vh;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.22);
  animation: mobileTocUp .22s ease;
}

@keyframes mobileTocUp {
  from {
    transform: translateY(28px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #eef0f2;
}

.mobile-toc-head h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: #202124;
}

.mobile-toc-x {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #202124;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  font-family: Arial, sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.mobile-toc-x span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

.mobile-toc-x:hover {
  background: #e9ecef;
}

.mobile-toc-nav {
  display: flex;
  flex-direction: column;
  max-height: calc(78vh - 76px);
  overflow-y: auto;
  padding: 8px 10px 16px;
}

.mobile-toc-nav a,
.toc-nav a {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  color: #202124;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.mobile-toc-nav a:hover,
.toc-nav a:hover {
  background: #f3f4f6;
  color: #839647;
}

body.toc-opened {
  overflow: hidden;
}

@media (max-width: 991px) {
  .mobile-toc-open {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .article-sidebar {
    display: none;
  }

  .article-share-fixed {
    left: 10px;
    padding: 7px 6px;
    gap: 7px;
  }

  .share-label {
    display: none;
  }

  .share-fixed-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .share-fixed-btn.copied {
    width: auto;
    min-width: 150px;
    height: 36px;
    padding: 0 12px;
  }
}

@media (max-width: 575px) {
  .article-share-fixed {
    top: auto;
    bottom: 92px;
    transform: none;
  }
}

@media (min-width: 992px) {
  .mobile-toc-popup {
    display: none !important;
  }
}

/* ---- Glossary term: definition + neighbouring terms ---- */
.glossary-definition h2 { font-size: 22px; margin: 0 0 12px; color: #6f8a2e; }
.glossary-definition p { font-size: 18px; line-height: 1.6; margin: 0; color: #1a1a1a; }
.glossary-more__title { font-size: 24px; margin: 40px 0 16px; }
.article-content .glossary-more, .glossary-more { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 20px; padding: 0; }
.glossary-more li { margin: 0; padding: 0; }
.glossary-more li::before { content: none; }
.glossary-more a { display: inline-block; padding: 10px 16px; border-radius: 16px; background: #f4f4f4; color: #000; text-decoration: none; font-size: 15px; transition: background .2s, color .2s; }
.glossary-more a:hover { background: #8ea24e; color: #fff; }
.glossary-more__all { margin-bottom: 30px; }
@media (max-width: 767px) { .glossary-definition p { font-size: 16px; } .glossary-more__title { font-size: 20px; margin-top: 30px; } .glossary-more a { font-size: 14px; padding: 8px 14px; } }
