/* ── Botanical reference hover-preview ─────────────────────────────────
   For plants/compounds named in an article that we DON'T stock: a small
   preview card that teases a respected outside source (MSKCC About Herbs,
   etc.) and links out. Driven by js/botref.js off <a class="an-botref">
   with data-source / data-teaser attributes. Card is built in JS and
   appended to <body>, so the "Listen to this page" reader never speaks it. */

a.an-botref {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #7a8a4a;
  cursor: help;
  transition: border-color 0.15s ease;
}
a.an-botref::after {
  content: "\2197"; /* ↗ */
  font-size: 0.68em;
  line-height: 0;
  vertical-align: super;
  color: #7a8a4a;
  margin-left: 1px;
}
a.an-botref:hover,
a.an-botref:focus-visible {
  border-bottom-color: #2c4526;
  outline: none;
}

.an-botref-pop {
  position: absolute;
  z-index: 10000;
  max-width: 300px;
  background: #fffdf7;
  border: 1px solid #e2dcc7;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(38, 48, 18, 0.20);
  padding: 13px 16px 14px;
  font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  color: #3a4230;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.an-botref-pop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.an-botref-pop .bp-source {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #6a7d3f;
  margin-bottom: 6px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.an-botref-pop .bp-teaser {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0 0 10px;
}
.an-botref-pop .bp-more {
  font-size: 0.8rem;
  font-weight: 800;
  color: #2c4526;
  text-decoration: none;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.an-botref-pop .bp-more:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  .an-botref-pop {
    background: #23271d;
    border-color: #3c412f;
    color: #e6e9dc;
  }
  .an-botref-pop .bp-more { color: #cfe0a6; }
}

/* ── "No products yet" note on ingredient profile pages ──────────────── */
.ingredient-no-products {
  background: #f4f6ec;
  border: 1px solid #e2e6dd;
  border-left: 4px solid #7a8a4a;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 22px;
  color: #3a4230;
  font-size: 0.95rem;
  line-height: 1.55;
}
.ingredient-no-products a {
  color: #2c4526;
  font-weight: 700;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  .ingredient-no-products { background: #23271d; border-color: #3c412f; color: #e6e9dc; }
  .ingredient-no-products a { color: #cfe0a6; }
}
