/* Data term */
[data-term] {
  border-bottom: 1px dotted;
  border-color: #c7a97b;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  background-image: url(/modules/custom/glossary/css/../img/icon-glossary.svg);
  background-position: left center;
  background-repeat: no-repeat;
  padding-left: 17px;
}

[data-term]:hover {
  background-color: #f5f0e6;
}

/* Glossary container */
#glossary {
  background-color: #121a25;
  color: #ffffff;
  position: fixed;
  top: 0;
  width: 320px;
  height: 100vh;
  overflow-y: scroll;
  z-index: 10000;
  padding: 32px;
}

#glossary.glossary_pin_right {
  right: 0;
}

@media (max-width: 480px) {
  #glossary {
    width: 100%;
    height: 100%;
    padding: 16px;
  }
}

#glossary::-webkit-scrollbar {
  width: 8px;
}

#glossary::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

#glossary::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Glossary header */
#glossary h2 {
  font-size: 1.5rem;
  margin: 10px 0 10px 0;
}

#glossary input::placeholder {
  color: #9ca3af; /* Light gray placeholder text */
}

#glossary .glossary_term {
  background: none;
  border: none;
  /*color: #38bdf8; !* Light blue for clickable terms *!*/
  /*font-size: 1rem;*/
  cursor: pointer;
  padding: 5px 0;
  display: inline-flex;
  align-items: center;
}

#glossary .glossary_term:hover {
  text-decoration: underline;
}

/* Glossary definition */
#glossary .glossary_definition {
  color: #d1d5db;
}

.glossary_list {
  list-style: none;
  padding: 0;
}

#glossary .glossary_term {
  border-bottom: 1px solid;
  margin: 0;
  padding-bottom: .5rem;
  padding-top: .5rem;
  padding-left: 0;
  padding-right: 1.5rem;
  font-weight: 700;
  width: 100%;
  background-image: url(data:image/svg+xml;charset=utf8,\ %3Csvg%20%20fill%3D%27%23ffffff%27%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10%2020c5.523%200%2010-4.477%2010-10S15.523%200%2010%200%200%204.477%200%2010s4.477%2010%2010%2010zm4.208-9.063h-3.175v3.126a.945.945%200%200%201-.953.937.945.945%200%200%201-.952-.938v-3.124H5.953A.945.945%200%200%201%205%2010c0-.518.426-.938.953-.938h3.175V5.938c0-.518.426-.938.952-.938s.953.42.953.938v3.125h3.175c.526%200%20.952.42.952.937a.945.945%200%200%201-.952.938z%22%2F%3E%3C%2Fsvg%3E);
  background-repeat: no-repeat;
  background-position: 100% 50%;
  text-align: left;
}

#glossary .glossary_term[aria-expanded="true"] {
  background-image: url(data:image/svg+xml;charset=utf8,\ %3Csvg%20%20fill%3D%27%23ffffff%27%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10%2020c5.523%200%2010-4.477%2010-10S15.523%200%2010%200%200%204.477%200%2010s4.477%2010%2010%2010zm1.033-9.125h-5.08A.945.945%200%200%201%205%209.937C5%209.42%205.426%209%205.953%209H14.208c.526%200%20.952.42.952.938a.945.945%200%200%201-.952.937h-3.175z%22%2F%3E%3C%2Fsvg%3E);
}
.glossary_term[aria-expanded="true"] {
  font-weight: bold;
}
.glossary_definition {
  margin-bottom: 1rem;
  margin-top: 1rem;
}
#glossary * {
  color: white;
}

#glossary #glossary-search {
  color: black;
}

#glossary > div {
  align-items: flex-end;
}
.glossary_close {
  background: none;
  border: none;
  display: flex;
  align-items: center;
}
.glossary_open {
  height: 40px;
  border-radius: 0 !important;
  position: fixed;
  bottom: 0;
  width: 50px;
  z-index: 9999;
  right: 0;
  margin: 0 !important;
}
