/* Marks that carry an explanation, and the box that shows it.
 *
 * Loaded by every page rather than copied into each one's <style>. The dashboard had these
 * rules inline and the marketing pages had none, which is how the site ended up explaining
 * its vocabulary only to people who had already signed in.
 *
 * Two marks, deliberately close in weight. A term worth defining and a feature that needs the
 * app are both "there is more to say here" — the difference is in the tooltip, not in a badge
 * shouting COMING SOON down the page. A quiet mark gets read; a loud one gets ignored, and
 * then gets resented when somebody finds out what it was hiding.
 */

/* The class is doubled to raise specificity to 0,2,0.
 *
 * A mark is a <button>, so every page-level rule shaped like `.wallet button` or `.card button`
 * outranks a bare `.tip-mark` and wins — the dashboard's wallet card was already turning its
 * mark into a 5px rectangle. Doubling beats those without !important, which would win the
 * argument here and then lose it somewhere else, and without editing rules that belong to
 * other components. It is contained entirely in this file. */
.tip-mark.tip-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-left: 5px; vertical-align: middle;
  border: 1px solid var(--line2); border-radius: 50%;
  font-family: var(--fm); font-size: 9px; line-height: 1; color: var(--faint);
  cursor: help; background: transparent; padding: 0;
  transition: color .14s ease, border-color .14s ease;
}
.tip-mark.tip-mark:hover, .tip-mark.tip-mark:focus-visible { color: var(--green); border-color: var(--green2); }
.tip-mark:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* The app mark. Amber rather than green on hover, because it means "not yet" and the site
   uses green for things that are working — a green tick and a green question mark next to
   each other would be saying two different things in one colour. */
.tip-soon.tip-soon:hover, .tip-soon.tip-soon:focus-visible { color: var(--amber); border-color: var(--amber); }
.tip-soon:focus-visible { outline-color: var(--amber); }

/* A dotted underline for a term explained in place, where a floating mark would break the
   line of the sentence. */
.tip-host { border-bottom: 1px dotted var(--faint); cursor: help; }

#rohu-tip {
  position: fixed; z-index: 90; max-width: 270px; padding: 9px 11px;
  background: #101514; border: 1px solid var(--line2); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  color: var(--txt); font-family: var(--fs); font-size: 12.5px; line-height: 1.5;
  opacity: 0; transform: translateY(3px); pointer-events: none;
  transition: opacity .13s ease, transform .13s ease;
}
#rohu-tip.on { opacity: 1; transform: translateY(0); }
/* The app tooltip is marked by a rule down its edge, so the distinction survives for anyone
   who cannot separate the two colours. */
#rohu-tip.is-soon { border-left: 2px solid var(--amber); }

@media (prefers-reduced-motion: reduce) { #rohu-tip { transition: none; } }
