/* Filter-link affordances injected by static/swagger-filter-links.js.
   The icon is always visible at low emphasis. On hover, the wrapper plus
   its absolutely-positioned overlay both flip to a flush white background,
   appearing as one continuous box that holds the icon, the label, and a
   small "what is this?" button. The overlay covers neighboring content to
   the right rather than reflowing the row. */

.t3-filter-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.05rem 0.2rem;
  vertical-align: middle;
  background: transparent;
  transition: background 0.12s ease-in-out;
  flex: 0 !important;
}

.t3-filter-link:hover {
  background: #fff;
}

.t3-filter-link-anchor {
  display: inline-flex;
  align-items: center;
  color: #663f74;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.12s ease-in-out;
}

.t3-filter-link-anchor:hover {
  text-decoration: none;
}

.t3-filter-link:hover .t3-filter-link-anchor {
  opacity: 1;
}

.t3-filter-link-anchor svg {
  height: 1.2em;
  width: auto;
  flex-shrink: 0;
}

/* Overlay holding the label and help button. Shares the wrapper's white
   background and sits flush against its right edge so the two read as one
   unified rectangle on hover. */
.t3-filter-link-extras {
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.4rem 0 0;
  background: #fff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease-in-out;
  z-index: 10;
}

.t3-filter-link:hover .t3-filter-link-extras {
  opacity: 1;
  pointer-events: auto;
}

.t3-filter-link-label {
  color: #663f74;
  font-size: 0.85em;
  font-weight: 600;
  font-family: sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.t3-filter-link-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  padding: 0;
  background: transparent;
  border: 1px solid #663f74;
  border-radius: 50%;
  color: #663f74;
  font-size: 0.85em;
  font-weight: 700;
  font-family: sans-serif;
  text-transform: none;
  text-decoration: none;
  letter-spacing: 0;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
}

.t3-filter-link-help:hover {
  background: #663f74;
  color: #fff;
  text-decoration: none;
}
