/* =============================================================================
   📖 LAB EDUCATION LAYER — collapsible "How to read this" cards.

   Every Lab panel gets one. Designed to be elegant, gold-on-indigo, and
   completely out-of-the-way until the user clicks to expand.
   ============================================================================= */

.lab-edu {
    margin: 8px 0 16px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 10px;
    background: linear-gradient(
        180deg,
        rgba(212, 175, 55, 0.04),
        rgba(28, 20, 55, 0.50) 80%
    );
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}

.lab-edu[open] {
    border-color: rgba(255, 216, 107, 0.45);
    background: linear-gradient(
        180deg,
        rgba(212, 175, 55, 0.08),
        rgba(10, 8, 24, 0.65) 80%
    );
}

.lab-edu-summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Times New Roman", Georgia, serif;
    color: #ddc88a;
    font-size: 13px;
    user-select: none;
    transition: background .15s ease;
}

.lab-edu-summary::-webkit-details-marker { display: none; }
.lab-edu-summary::marker { display: none; }

.lab-edu-summary:hover {
    background: rgba(255, 216, 107, 0.06);
}

.lab-edu-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 216, 107, 0.55));
}

.lab-edu-title {
    flex: 1;
    font-style: italic;
    letter-spacing: 0.3px;
}

.lab-edu-hint {
    font-size: 10.5px;
    color: #888aa0;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: lowercase;
    opacity: 0.7;
}

.lab-edu[open] .lab-edu-hint::before { content: "▾ "; }
.lab-edu:not([open]) .lab-edu-hint::before { content: "▸ "; }

.lab-edu-body {
    padding: 4px 18px 16px;
    border-top: 1px dashed rgba(212, 175, 55, 0.18);
}

.lab-edu-intro {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 13px;
    line-height: 1.55;
    color: #d4d4e8;
    font-style: italic;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.08);
    margin: 0 0 12px 0;
}

.lab-edu-rows {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lab-edu-row {
    padding: 10px 14px;
    background: rgba(10, 8, 24, 0.40);
    border-left: 2px solid rgba(255, 216, 107, 0.35);
    border-radius: 0 8px 8px 0;
}

.lab-edu-term {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 13.5px;
    color: #ffd86b;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.lab-edu-line {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    padding: 4px 0;
    align-items: baseline;
}

.lab-edu-label {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px;
    color: #b095f5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-align: right;
    font-style: italic;
}

.lab-edu-text {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: #d4d4e8;
}

/* Subtle colour cues per row type */
.lab-edu-what .lab-edu-label { color: #88d8b0; }
.lab-edu-how  .lab-edu-label { color: #b095f5; }
.lab-edu-mean .lab-edu-label { color: #ffd86b; }

.lab-edu-closer {
    margin: 14px 0 0;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(255, 216, 107, 0.05), transparent 80%);
    border-left: 2px solid rgba(255, 216, 107, 0.50);
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic;
    font-size: 12.5px;
    color: #ddc88a;
    letter-spacing: 0.3px;
}

@media (max-width: 720px) {
    .lab-edu-line {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .lab-edu-label {
        text-align: left;
        font-size: 9.5px;
    }
}
