/* Typography, menus, form controls and spacing use the existing site styles. */
.glossary [hidden] { display: none !important; }
.glossary-filters label { display: block; }

.glossary-alphabet-slot { margin-block-end: 1em; }

.glossary-alphabet {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .125em;
    padding-block: .375em;
    border-block-end: 1px solid #e5e5e5;
    background: #fff;
}

.glossary-alphabet.is-pinned {
    position: fixed;
    top: 0;
    z-index: 2;
}

.glossary-alphabet button {
    min-inline-size: 2em;
    min-block-size: 2em;
    padding: 0 .375em;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.glossary-alphabet button[aria-pressed="true"] {
    background: #e5e5e5;
    font-weight: 600;
}

.glossary-alphabet button:enabled:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.glossary-alphabet button:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: -2px;
}

.glossary-alphabet button:disabled {
    opacity: .32;
    cursor: default;
}

/* The content gutter and this padding leave room for the fixed menu button. */
@media (max-width: 1120px) {
    .glossary-alphabet { padding-inline-end: 52px; }
}

.glossary-links, .glossary-topic-links ul, .glossary-topic-links ol { display: flex; flex-wrap: wrap; gap: .75em 1.5em; padding: 0; list-style: none; }
.glossary-links li, .glossary-topic-links li, .glossary-breadcrumb li { max-width: 100%; overflow-wrap: anywhere; }
.glossary-links a, .glossary-topic-links a, .glossary-breadcrumb a { text-decoration: underline; text-underline-offset: .2em; }
.glossary-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5em; padding: 0; list-style: none; }
.glossary-breadcrumb li + li::before { content: "/"; margin-right: .5em; }
