/* Figure Alignment Styles */
.figure-left {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.figure-right {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.figure-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.figure-text-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.figure-text-row .figure-left {
    float: none;
    margin: 0;
    flex-shrink: 0;
}

.figure-text-row .figure-right {
    float: none;
    margin: 0;
    flex-shrink: 0;
    order: 2;
}

.figure-text-row figcaption {
    text-align: center;
}

.figure-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6.0rem;
    margin-bottom: 1rem;
}

.figure-row .figure-left,
.figure-row .figure-right {
    float: none;
    margin: 0;
    flex-shrink: 0;
}

/* Consistent table layout for context menu tables */
.context-menu-table {
    table-layout: fixed;
    width: 100%;
}

.context-menu-table td,
.context-menu-table th {
    min-height: 60px;
    vertical-align: middle;
}

.context-menu-table td:nth-child(1),
.context-menu-table th:nth-child(1) {
    width: 12%;
}

.context-menu-table td:nth-child(2),
.context-menu-table th:nth-child(2) {
    width: 22%;
}

.context-menu-table td:nth-child(3),
.context-menu-table th:nth-child(3) {
    width: 66%;
}

/* Release notes */
.release-card {
    margin: 0 0 2rem;
    padding: 1.5rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--INTERNAL-MAIN-TEXT-color);
    border-color: color-mix(in srgb, var(--INTERNAL-MAIN-TEXT-color) 25%, var(--INTERNAL-MAIN-BG-color));
    border-radius: 0.65rem;
    background: var(--INTERNAL-MAIN-BG-color);
    background: color-mix(in srgb, var(--INTERNAL-MAIN-TEXT-color) 2%, var(--INTERNAL-MAIN-BG-color));
    overflow-wrap: anywhere;
}

.release-card--current {
    border: 2px solid var(--INTERNAL-MAIN-LINK-color);
    border-top-width: 6px;
    background: var(--INTERNAL-MAIN-BG-color);
    background: color-mix(in srgb, var(--INTERNAL-MAIN-LINK-color) 5%, var(--INTERNAL-MAIN-BG-color));
}

.release-card > h3 {
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--INTERNAL-MAIN-TEXT-color);
    border-bottom: 1px solid color-mix(in srgb, var(--INTERNAL-MAIN-TEXT-color) 18%, var(--INTERNAL-MAIN-BG-color));
}

.release-card > :last-child {
    margin-bottom: 0;
}

.release-group-title--current {
    color: var(--INTERNAL-MAIN-LINK-color);
}

.release-group-title--previous {
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
    border-top: 3px solid var(--INTERNAL-MAIN-TEXT-color);
    border-top: 3px solid color-mix(in srgb, var(--INTERNAL-MAIN-TEXT-color) 30%, var(--INTERNAL-MAIN-BG-color));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .figure-text-row {
        flex-direction: column;
        align-items: center;
    }

    .figure-left,
    .figure-right {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}
