/**
 * AC | Glossário do hero.
 * Termo sublinhado (gatilho) + popover com a definição.
 */

/* Gatilho: reseta o <button> pra virar texto inline sublinhado. */
.ac-glossary-term {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: rgba(14, 82, 54, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.ac-glossary-term:hover,
.ac-glossary-term[aria-expanded='true'] {
  color: #0e5236;
  text-decoration-color: #0e5236;
}

.ac-glossary-term:focus-visible {
  outline: 2px solid #0e5236;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Popover compartilhado (fixado no body). */
.ac-glossary-popover {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  max-width: 288px;
  width: max-content;
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 16px -2px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  pointer-events: auto;
}

.ac-glossary-popover[hidden] {
  display: none;
}

.ac-glossary-popover__title {
  margin: 0 0 6px;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #774900;
}

.ac-glossary-popover__body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #404040;
}

/* Seta apontando pro termo. */
.ac-glossary-popover__arrow {
  position: absolute;
  bottom: -7px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  box-shadow: 3px 3px 6px -3px rgba(0, 0, 0, 0.18);
}

.ac-glossary-popover--below .ac-glossary-popover__arrow {
  bottom: auto;
  top: -7px;
  box-shadow: -3px -3px 6px -3px rgba(0, 0, 0, 0.18);
}
