/* Latecomer QR + clock.
   Wide screens: pinned just right of the 740px content column, not at the window edge.
   Laptops / enlarged text: sits in the page flow under the header, so it is never cut.
   Phones: hidden. Breakpoints are in em so larger text switches layout earlier. */

.lesson-qr {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    margin: 0.75rem auto 0;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    background: #ffffff;
    border: 1px solid #A9D0DD;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(16, 52, 66, 0.1);
    pointer-events: none;
}

.lesson-qr img {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 0.35rem;
}

.lesson-qr-caption {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #155F7B;
    line-height: 1.2;
}

.lesson-qr-clock {
    margin: 0;
    min-height: 1.15em;
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: #103442;
    line-height: 1.2;
}

/* Room beside the column (740px content + chip on each side): pin it next to the text. */
@media screen and (min-width: 72em) {
    .lesson-qr {
        position: fixed;
        top: calc(76px + 1rem);
        left: calc(50% + 370px + 1.25rem);
        margin: 0;
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.5rem 0.5rem 0.4rem;
        box-shadow: 0 8px 22px rgba(16, 52, 66, 0.14);
        z-index: 80;
    }

    .lesson-qr img {
        width: 108px;
        height: 108px;
    }
}

@media screen and (max-width: 700px) {
    .lesson-qr {
        display: none !important;
    }
}

@media print {
    .lesson-qr {
        display: none !important;
    }
}

.lesson-qr-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

@media screen and (min-width: 72em) {
    .lesson-qr-text { align-items: center; text-align: center; }
}
