/* Isolated Top 100 methodology tooltip + edition stats fixes.
   Keep this file separate from app.css so later app.css patches cannot break it. */

/* The old CSS tooltip used ::before/::after on the flex link and could push the
   logo/name/CUI around. Kill only pseudo tooltips on the link itself; the dot on
   .co-logo.method-ok/.method-bad remains untouched. */
.methodology-tip::before,
.methodology-tip::after,
.methodology-tip:hover::before,
.methodology-tip:hover::after,
.methodology-tip:focus::before,
.methodology-tip:focus::after,
.methodology-tip:focus-within::before,
.methodology-tip:focus-within::after {
  content: none !important;
  display: none !important;
}

/* Keep company cell geometry stable on hover/focus. */
.co-cell.methodology-tip {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 240px;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transform: none !important;
  margin: 0 !important;
}
.co-cell.methodology-tip:hover,
.co-cell.methodology-tip:focus,
.co-cell.methodology-tip:focus-visible,
.co-cell.methodology-tip:focus-within {
  transform: none !important;
  margin: 0 !important;
  outline: none;
}
.co-cell.methodology-tip .co-logo,
.co-cell.methodology-tip .co-meta {
  transform: none !important;
  margin: 0;
}

/* The real tooltip is a single fixed element injected in <body>, independent of
   the sticky table, so it never changes table layout. */
.top-methodology-tooltip-fixed {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483647;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .28), 0 2px 8px rgba(15, 23, 42, .16);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  white-space: pre-line;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity .08s ease;
}
.top-methodology-tooltip-fixed.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Edition dashboard: first stat in each row should align flush left. */
.ed-stats .ed-stat:nth-child(4n+1) {
  padding-left: 0 !important;
}
