/* CHM2001 glossary: lightbulb buttons beside key terms, and their definition boxes. */
.gl-term--on {
  text-decoration: underline dotted #a87400;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: help;
}

.gl-bulb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.15em;
  width: 1.3em;
  height: 1.3em;
  margin: 0 0 0 0.1em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
}

.gl-bulb svg,
.gl-pop-icon svg {
  width: 1.15em;
  height: 1.15em;
}

.gl-glass {
  fill: #ffc72c;
  stroke: #6b4e00;
  stroke-width: 1.2;
}

.gl-base {
  fill: #6b6b6b;
}

.gl-shine {
  stroke: #ffffff;
  stroke-width: 1.3;
  stroke-linecap: round;
}

.gl-bulb:hover,
.gl-bulb[aria-expanded="true"] {
  background: #fff1c2;
}

.gl-bulb:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 1px;
}

.gl-pop {
  position: absolute;
  z-index: 1000;
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  padding: 0.65rem 2.1rem 0.7rem 0.85rem;
  border: 2px solid #a87400;
  border-radius: 10px;
  background: #fffbea;
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
}

.gl-pop:focus {
  outline: none;
}

.gl-pop:focus-visible {
  outline: 3px solid #1a1a1a;
}

/* the little pointer towards the bulb */
.gl-pop::before {
  content: "";
  position: absolute;
  top: -8px;
  left: calc(var(--gl-arrow, 24px) - 7px);
  width: 12px;
  height: 12px;
  background: #fffbea;
  border-left: 2px solid #a87400;
  border-top: 2px solid #a87400;
  transform: rotate(45deg);
}

.gl-pop--above::before {
  top: auto;
  bottom: -8px;
  transform: rotate(225deg);
}

.gl-pop-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.3rem;
  font-weight: 800;
  font-size: 1rem;
}

.gl-pop-body {
  margin: 0;
}

.gl-close {
  position: absolute;
  top: 0.3rem;
  right: 0.35rem;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.gl-close:hover {
  background: #f3e4b0;
}

.gl-close:focus-visible {
  outline: 3px solid #1a1a1a;
}

@media (forced-colors: active) {
  .gl-pop,
  .gl-pop::before {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
  }
  .gl-glass {
    fill: ButtonText;
    stroke: ButtonText;
  }
}
