.navbar-brand,
main {
    min-width: 0;
}

main {
    overflow-wrap: anywhere;
}

code,
pre,
.badge {
    white-space: normal;
}

.changelog {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
}

.platform-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.channel-switch {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #e9ecef;
    border-radius: 999px;
}

.channel-switch-btn {
    flex: 1;
    border: 0;
    background: transparent;
    color: #495057;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.channel-switch-btn:hover {
    color: #212529;
}

.channel-switch-btn.active {
    background: #fff;
    color: #212529;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.12);
}

.changelog-compact {
    font-size: 0.8rem;
    max-height: 6rem;
    overflow: hidden;
}

.changelog-toggle {
    cursor: pointer;
    user-select: none;
}

.changelog-toggle::after {
    content: '▾';
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 1.15em;
    font-weight: 700;
    color: #495057;
    line-height: 1;
    vertical-align: middle;
}

.changelog-toggle:hover::after {
    color: #0d6efd;
}

.changelog-toggle[aria-expanded='true']::after {
    content: '▴';
}

.release-list-item + .release-list-item {
    border-top: 1px solid #dee2e6;
}

.release-files .release-file-link {
    gap: 0.75rem;
}

.release-files .release-file-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.release-files .download-icon {
    color: #0d6efd;
}

.release-files .release-file-link:hover .download-icon {
    color: #0a58ca;
}

.release-block + .release-block {
    margin-top: 2rem;
}

@media (max-width: 575.98px) {
    .navbar .container {
        align-items: flex-start;
    }

    .navbar-collapse {
        width: 100%;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    .channel-switch {
        border-radius: 1rem;
        flex-direction: column;
    }

    .channel-switch-btn {
        width: 100%;
    }

    .release-files .release-file-link {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .release-files .release-file-link > span:first-child {
        width: 100%;
    }

    .release-files .release-file-name {
        white-space: normal !important;
    }

    .release-files .release-file-link .badge {
        margin-left: 1.75rem !important;
    }
}
