/* --- Glossary Table Styles --- */
.glossary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-family: system-ui, sans-serif;
}

.glossary-table th,
.glossary-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.glossary-table th {
    background: #f8f8f8;
    font-weight: 600;
}

.glossary-row {
    cursor: pointer;
    transition: background 0.2s;
}
.glossary-row:hover {
    background: #f3f3f3;
}

/* keep tr visible; we will hide the inner block */
.glossary-description td {
    padding: 0; /* remove double padding; inner has padding */
    background: #fafafa;

}

/* the animated block (slide on this) */
.desc-inner {
    display: none; /* start hidden */
    padding: 0.75rem 1rem;
    border-left: 3px solid #0091A7;
}

/* --- Responsive Cards on Mobile --- */
@media (max-width: 700px) {
    .glossary-table, .glossary-table thead, .glossary-table tbody, .glossary-table th, .glossary-table td, .glossary-table tr {
        display: block;
    }

    .glossary-table tr {
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 8px;
        overflow: hidden;
    }

    .glossary-table th {
        display: none;
    }

    .glossary-table td {
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
    }

    .glossary-table td::before {
        content: attr(data-label);
        font-weight: 600;
        flex: 1;
    }

    /* on mobile the desc-inner should be block (it already is) */
    .glossary-description td {
        padding: 0;
        border-left: none;
    }
}