/*
 * KeyShot info tip v1.0.0 (keyshot-unified child theme)
 * i-in-circle icon after a label; note opens on hover, focus or tap.
 * Usage + deploy: AGENTS/webdev-ops/OUTPUTS/info-tip/README.md
 *
 * Tuning (set on .ks-info-tip, a section, or :root):
 *   --ks-tip-icon        icon colour            (default: currentColor at 55%)
 *   --ks-tip-icon-hover  icon hover/open colour (default #0050E6, KeyShot blue)
 *   --ks-tip-size        icon size              (default 1em, follows the text)
 *   --ks-tip-bg          panel background       (default #0A2540, KeyShot navy)
 *   --ks-tip-fg          panel text             (default #FFFFFF)
 */

.ks-info-tip__keep { white-space: nowrap; }

.ks-info-tip {
  position: relative;
  display: inline;
  white-space: nowrap;
}

/* The icon: an empty button, circle-i drawn with a mask so it takes the text colour. */
.ks-info-tip .ks-info-tip__btn,
.ks-info-tip .ks-info-tip__btn:hover,
.ks-info-tip .ks-info-tip__btn:focus {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  position: relative;
  vertical-align: -0.14em;
  width: var(--ks-tip-size, 1em);
  height: var(--ks-tip-size, 1em);
  min-width: 0;
  min-height: 0;
  margin: 0 0 0 0.35em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--ks-tip-icon, currentColor);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
}
.ks-info-tip .ks-info-tip__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  opacity: var(--ks-tip-icon-opacity, 0.55);
  transition: opacity .15s ease, background-color .15s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21Zm0 2a8.5 8.5 0 1 1 0 17 8.5 8.5 0 0 1 0-17Zm-1.25 6.25h2.5v8h-2.5v-8Zm1.25-4.1a1.55 1.55 0 1 1 0 3.1 1.55 1.55 0 0 1 0-3.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21Zm0 2a8.5 8.5 0 1 1 0 17 8.5 8.5 0 0 1 0-17Zm-1.25 6.25h2.5v8h-2.5v-8Zm1.25-4.1a1.55 1.55 0 1 1 0 3.1 1.55 1.55 0 0 1 0-3.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Bigger tap target than the drawn icon (44px rule on touch). */
.ks-info-tip .ks-info-tip__btn::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}
@media (pointer: coarse) {
  .ks-info-tip .ks-info-tip__btn::after { inset: -14px; }
}
.ks-info-tip .ks-info-tip__btn:hover::before,
.ks-info-tip.is-open .ks-info-tip__btn::before {
  background-color: var(--ks-tip-icon-hover, #0050E6);
  opacity: 1;
}
.ks-info-tip .ks-info-tip__btn:focus { outline: none; }
.ks-info-tip .ks-info-tip__btn:focus-visible {
  outline: 2px solid var(--ks-tip-icon-hover, #0050E6);
  outline-offset: 2px;
}

/* The panel. Hidden until opened; also reset the UA popover box. */
.ks-info-tip .ks-info-tip__panel,
.ks-info-tip__panel[popover] {
  display: none;
  box-sizing: border-box;
  width: max-content;
  max-width: min(300px, calc(100vw - 24px));
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ks-tip-bg, #0A2540);
  color: var(--ks-tip-fg, #FFFFFF);
  box-shadow: 0 8px 24px rgba(10, 37, 64, .22), 0 1px 3px rgba(10, 37, 64, .18);
  font-family: 'Brockmann', 'Neue Haas Grotesk Text Pro', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  overflow: visible;
  z-index: 100000;
}
.ks-info-tip .ks-info-tip__panel a,
.ks-info-tip__panel[popover] a,
.et-db #et-boc .et-l .ks-info-tip .ks-info-tip__panel a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ks-info-tip .ks-info-tip__panel a:hover,
.et-db #et-boc .et-l .ks-info-tip .ks-info-tip__panel a:hover {
  color: inherit;
  text-decoration-thickness: 2px;
}
.ks-info-tip .ks-info-tip__panel a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Arrow */
.ks-info-tip__panel::after {
  content: "";
  position: absolute;
  left: var(--ks-tip-arrow-x, 50%);
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: inherit;
  transform: rotate(45deg);
}
.ks-info-tip__panel[data-side="top"]::after { bottom: -5px; }
.ks-info-tip__panel[data-side="bottom"]::after { top: -5px; }

/* Enhanced (script ran): fixed / top-layer panel placed by the script. */
.ks-info-tip.is-enhanced .ks-info-tip__panel {
  position: fixed;
  inset: auto;
  left: 0;
  top: 0;
}
.ks-info-tip.is-enhanced.is-open .ks-info-tip__panel { display: block; }
.ks-info-tip.is-enhanced.is-open .ks-info-tip__panel:not([data-side]) { visibility: hidden; }

/* No script yet (NitroPack delay) or script blocked: CSS-only fallback above the icon. */
.ks-info-tip:not(.is-enhanced) .ks-info-tip__panel {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
}
.ks-info-tip:not(.is-enhanced) .ks-info-tip__panel::after { bottom: -5px; }
.ks-info-tip:not(.is-enhanced):hover .ks-info-tip__panel,
.ks-info-tip:not(.is-enhanced):focus-within .ks-info-tip__panel { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .ks-info-tip.is-enhanced.is-open .ks-info-tip__panel[data-side] {
    animation: ks-info-tip-in .14s ease-out;
  }
  @keyframes ks-info-tip-in {
    from { opacity: 0; transform: translateY(var(--ks-tip-from, 4px)); }
    to   { opacity: 1; transform: none; }
  }
  .ks-info-tip__panel[data-side="bottom"] { --ks-tip-from: -4px; }
}

@media print {
  .ks-info-tip .ks-info-tip__btn { display: none; }
}
