/* ==========================================================================
   THE hover balloon (components-rules: "One hover balloon for everything").
   Every hover text on the platform (MeloCore, Melobil, Regional, Shop, Store) is this balloon and
   nothing else. It is built by public/assets/js/components/balloon.js from `data-tip="..."`
   (a native `title="..."` is adopted by the script automatically). Change the look HERE and it
   changes everywhere: colour, radius, size, distance, tail.
   ========================================================================== */
:root{
  --tip-bg:#3a3a3a;           /* charcoal */
  --tip-fg:#fff;
  --tip-radius:8px;
  --tip-pad:7px 12px;
  --tip-size:.88rem;
  --tip-max:260px;
  --tip-gap:8px;              /* distance between the element and the balloon (used by the script) */
  --tip-tail:6px;             /* tail triangle size */
  --tip-tail-left:14px;       /* tail distance from the balloon's left edge (script: balloon left = element centre - 20px) */
}
.tip.mc-balloon{
  position:fixed;z-index:2147483647;
  background:var(--tip-bg);color:var(--tip-fg);
  border-radius:var(--tip-radius);padding:var(--tip-pad);
  font-family:var(--font-table,inherit);font-size:var(--tip-size);font-weight:400;
  line-height:1.45;letter-spacing:var(--font-table-spacing,.03em);text-transform:none;text-align:left;
  white-space:pre-line;max-width:var(--tip-max);width:max-content;
  pointer-events:none;box-sizing:border-box;margin:0;
}
/* the tail: overlaps the bubble by 1px (top:-5px with a 6px triangle) so no hairline gap ever shows */
.tip.mc-balloon::before{
  content:"";position:absolute;left:var(--tip-tail-left);top:calc(1px - var(--tip-tail));
  border:var(--tip-tail) solid transparent;border-top:0;border-bottom-color:var(--tip-bg);
}
.tip.mc-balloon.tip-left::before{left:auto;top:50%;right:calc(1px - var(--tip-tail));margin-top:calc(var(--tip-tail) * -1);border:var(--tip-tail) solid transparent;border-right:0;border-left-color:var(--tip-bg);border-bottom-color:transparent}
.tip.mc-balloon.tip-top::before{top:auto;bottom:calc(1px - var(--tip-tail));border:var(--tip-tail) solid transparent;border-bottom:0;border-top-color:var(--tip-bg)}
.tip.mc-balloon.wide{--tip-max:none;white-space:nowrap}
.tip.mc-balloon b,.tip.mc-balloon strong{font-weight:700}
.tip.mc-balloon .you{font-weight:700;font-family:'Avenir Next B','Avenir Next',sans-serif}
.tip.mc-balloon .echo{font-weight:300;font-family:'Avenir Next L','Avenir Next',sans-serif}
.tip.mc-balloon .pipe{font-weight:300;color:#8a8a8a;white-space:pre}
.tip.mc-balloon.motto{white-space:nowrap;max-width:none;letter-spacing:1px}
