/* Blast Switch Releases — minimal, theme-agnostic styles. */

/* ----------------------------------------------------------
   "Other versions" — visual <button> with a native <select>
   layered invisibly on top. Clicks on the button fall through
   to the select, which opens the native dropdown. The button
   is decorative (aria-hidden, tabindex=-1); the select carries
   all interactive + a11y semantics.

   The label and chevron are siblings inside the button so they
   can be targeted independently — e.g. underline the label
   without underlining the chevron:
     .bsr-other-versions__label { text-decoration: underline; }
   ---------------------------------------------------------- */
.bsr-other-versions {
    display: inline-flex;
    align-items: center;
    position: relative;
    line-height: inherit;
    color: inherit;
    cursor: pointer;
}

.bsr-other-versions__button {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    /* Let clicks reach the <select> positioned on top. */
    pointer-events: none;
}

.bsr-other-versions__chevron {
    flex-shrink: 0;
}

.bsr-other-versions__select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.bsr-other-versions__select::-ms-expand {
    display: none;
}

/* Native focus ring lives on the invisible select — surface it on the
   visible button so keyboard users still see a focus indicator. */
.bsr-other-versions:focus-within .bsr-other-versions__button {
    outline: 1px dotted currentColor;
    outline-offset: 2px;
}

/* ----------------------------------------------------------
   Releases list. Wrapper is a <div>; each release is an <article>.
   ---------------------------------------------------------- */
.bsr-releases {
    margin: 0;
    padding: 0;
}
.bsr-release {
    margin: 0 0 2.5rem;
    padding: 0 0 2rem;
}
.bsr-release:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.bsr-release__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #C9D5D8;
    padding-bottom: 0.5rem;
}
.bsr-release__version {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}
.bsr-release__tag {
    display: inline-block;
    margin-left: 0.5em;
    font-size: 0.6em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2em 0.55em;
    border-radius: 0.25em;
    background: rgba(0, 0, 0, 0.06);
    vertical-align: middle;
}
.bsr-release__date {
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.75rem;
}
@media (min-width: 1024px) {
    .bsr-release__date {
        font-size: 0.875rem;
    }
}
.bsr-release__notes {
    margin: 0.5rem 0 1rem;
}
.bsr-release__notes p          { margin: 0.5em 0; }
.bsr-release__notes ul,
.bsr-release__notes ol         { margin: 0.5em 0 0.5em 0; padding: 0 0 0 1rem; }
.bsr-release__notes code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: rgba(0, 0, 0, 0.06);
    padding: 0.05em 0.35em;
    border-radius: 0.25em;
    font-size: 0.9em;
}
.bsr-release__notes pre {
    background: rgba(0, 0, 0, 0.06);
    padding: 0.75em 1em;
    border-radius: 0.25em;
    overflow-x: auto;
}
.bsr-release__downloads {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 1024px) {
    .bsr-release__downloads {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 1rem;
        row-gap: 0.5rem;
    }
}

.bsr-release__download-item {
    margin: 0;
    padding: 0;
}
.bsr-release__download {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    border-radius: 0.25em;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
}

.bsr-release__download-label {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: 0.2s;
}
.bsr-release__download:hover .bsr-release__download-label,
.bsr-release__download:focus-visible .bsr-release__download-label {
    /* text-decoration: underline; */
    text-decoration-color: currentColor;
    /* text-underline-offset: 2px; */
}
.bsr-release__download-icon {
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
}

.bsr-empty {
    color: rgba(0, 0, 0, 0.55);
}
