/* IdentityIQ documentation version switcher.
   Lives in a blue sub-header bar (the band that was previously the header's
   50px bottom border), right-aligned with the page content.
   Opens on click (native <details>); no hover, no JavaScript. */

/* Replace the header's 50px blue bottom border with a real bar so it can hold
   content. The visual result (a 50px blue band under the header) is unchanged. */
.md-header {
  border-bottom: 0;
}

.iiq-subheader {
  height: 50px;
  background: #0033a1;
  display: flex;
  align-items: center;
}

.iiq-subheader__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0 0.2rem;
}

.iiq-version {
  position: relative;
  display: inline-block;
  margin-left: 0.6rem;
}

.iiq-version__button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0.1rem;
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
}

.iiq-version__button::-webkit-details-marker {
  display: none;
}

.iiq-version__button::marker {
  content: "";
}

/* Screen-reader-only context for the summary; keeps the visible label compact
   while giving assistive tech the control's purpose. */
.iiq-version__hint {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus indicators. */
.iiq-version__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.iiq-version__link:focus-visible {
  outline: 2px solid #0033a1;
  outline-offset: -2px;
}

.iiq-version__caret {
  font-size: 0.6rem;
  line-height: 1;
}

.iiq-version__list {
  display: none;
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: auto;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  background: #fff;
  color: #0033a1;
  border: 1px solid rgba(0, 51, 161, 0.25);
  border-radius: 0.1rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.iiq-version[open] .iiq-version__list {
  display: block;
}

.iiq-version__item {
  margin: 0;
}

.iiq-version__link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.3rem 0.8rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 400;
  color: #0033a1;
  white-space: nowrap;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.iiq-version__link:hover {
  background: rgba(0, 51, 161, 0.08);
}

.iiq-version__link--active {
  font-weight: 700;
}
