/* === DESKTOP TABLE === */
.cactus-table-wrap {
    width: 100%;
    margin-bottom: 32px;
    border-radius: 32px;
    overflow: hidden;
}

.cactus-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875em;
    line-height: 1.6;
}

.cactus-table thead th {
    background-color: #1a3a5c;
    font-weight: 600;
    color: #ffffff;
    padding: 12px 14px;
    text-align: left;
    border-right: 1px solid #1e4470;
    border-bottom: 1px solid #1e4470;
}

.cactus-table thead th:first-child {
    border-left: 1px solid #1e4470;
    border-top: 1px solid #1e4470;
}

.cactus-table thead th:last-child {
    border-right: 1px solid #1e4470;
    border-top: 1px solid #1e4470;
}

.cactus-table tbody td {
    padding: 12px 14px;
    border-right: 1px solid #1e4470;
    border-bottom: 1px solid #1e4470;
    color: #ccd9e8;
    vertical-align: top;
}

.cactus-table tbody td:first-child {
    border-left: 1px solid #1e4470;
}

.cactus-table tbody tr:nth-child(odd) td {
    background-color: #0a2540;
}

.cactus-table tbody tr:nth-child(even) td {
    background-color: #0f2d4a;
}

.cactus-table thead th:first-child {
    border-top-left-radius: 32px;
}

.cactus-table thead th:last-child {
    border-top-right-radius: 32px;
}

.cactus-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 32px;
}

.cactus-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 32px;
}

.cactus-table a {
    color: var(--e-global-color-secondary);
    text-decoration: underline;
}

.cactus-table a:hover {
    color: #fff;
}

/* === MOBILE CARD === */
@media (max-width: 980px) {
    .cactus-table thead {
        display: none;
    }

    .cactus-table,
    .cactus-table tbody,
    .cactus-table tr,
    .cactus-table td {
        display: block;
        width: 100%;
    }

    .cactus-table tbody tr {
        border: 1px solid #1e4470;
        border-radius: 32px;
        margin-bottom: 16px;
        overflow: hidden;
        background-color: #0f2d4a;
    }

    .cactus-table tbody td {
        border: none;
        border-bottom: 1px solid #1e4470;
        padding: 12px 14px;
        background-color: transparent !important;
    }

    .cactus-table tbody td:last-child {
        border-bottom: none;
    }

    .cactus-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75em;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #3ecf8e;
        margin-bottom: 4px;
    }
}

/* ==========================================================
   Cactus Working Groups — Description block
   ========================================================== */

.cactus-wg-description {
    color: #ccd9e8;
    line-height: 1.7;
    margin-bottom: 32px;
}

.cactus-wg-description a {
    color: var(--e-global-color-secondary);
    text-decoration: underline;
}

.cactus-wg-description a:hover {
    color: #fff;
}

/* ==========================================================
   Cactus Working Groups — Attachments (PDF cards)
   ========================================================== */

.cactus-attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.cactus-attachment-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--e-global-color-secondary);
    text-decoration: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cactus-attachment-card__preview {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--e-global-color-secondary);
    overflow: hidden;
}

.cactus-attachment-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cactus-attachment-card__no-preview {
    color: #ccd9e8;
    opacity: 0.6;
}

.cactus-attachment-card__title {
    padding: 10px 12px;
    font-size: 0.8em;
    font-weight: 600;
    color: #ccd9e8;
    text-align: center;
    line-height: 1.4;
}

.cactus-attachment-card--youtube .cactus-attachment-card__preview {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.cactus-attachment-card--youtube .cactus-attachment-card__preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cactus-attachment-card--span2 {
    grid-column: span 2;
}