/* Info box: small uppercase label above a bold value (grade, level, student ID, form, task).
   Markup comes from speaking_meta_strip() in includes/layout.php. */
.meta-strip {
    display: inline-flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    border: 1px solid #cfe3e6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(18, 38, 63, 0.08);
    overflow: hidden;
    text-align: left;
}

.meta-strip .meta-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 9px 20px;
}

.meta-strip .meta-item + .meta-item {
    border-left: 1px solid #e3eef0;
}

.meta-strip dt {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7c8a;
}

.meta-strip dd {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: #12263f;
    white-space: nowrap;
}

/* CEFR level shown as a badge */
.meta-strip .meta-item--level dd {
    align-self: flex-start;
    padding: 1px 11px;
    border-radius: 999px;
    background: #008f8f;
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    .meta-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .meta-strip .meta-item {
        padding: 8px 14px;
    }

    .meta-strip .meta-item + .meta-item {
        border-left: none;
    }

    .meta-strip .meta-item:nth-child(even) {
        border-left: 1px solid #e3eef0;
    }

    .meta-strip .meta-item:nth-child(n + 3) {
        border-top: 1px solid #e3eef0;
    }
}
