/* The live-post metric offers the same explicit toggle as the control below. */
.package-comparison .posts-metric { position:relative; }
.package-comparison .posts-metric-button {
  display:block;width:100%;padding:0;border:0;background:transparent;
  color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:pointer;
  text-decoration:underline dotted #ffffff60;text-underline-offset:4px;
}
.package-comparison .posts-metric-button::after {
  content:"";position:absolute;inset:0;z-index:1;
}
.package-comparison .posts-metric-button:focus-visible {outline:2px solid #ff6370;outline-offset:5px;}
.package-comparison .posts-metric:is(:hover,:focus-within) .posts-metric-button {color:#fff;text-decoration-color:#ff6370;}
.package-comparison .posts-metric:is(:hover,:focus-within) dd {color:#ff9da9;}
.package-comparison .posts-metric-hint {
  position:absolute;top:100%;right:0;z-index:5;width:clamp(200px,22vw,270px);
  padding:12px 14px;border:1px solid #f34c63;background:#251017;
  box-shadow:0 8px 24px #0009;color:#fff;font-size:12px;line-height:1.5;
  white-space:pre-line;opacity:0;visibility:hidden;transform:translateY(4px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
@media (hover:hover) {
  .package-comparison .posts-metric:hover:not(.hint-dismissed) .posts-metric-hint {opacity:1;visibility:visible;transform:none;}
}
.package-comparison .posts-metric:not(.hint-dismissed):has(.posts-metric-button:focus-visible) .posts-metric-hint {opacity:1;visibility:visible;transform:none;}
@media(prefers-reduced-motion:reduce) {
  .package-comparison .posts-metric-hint {transition:none;transform:none;}
}
