/*
 * Light Lab v2 (idea 4), 30.11.2026: the parts the orchestrator adds (ll-app.js, ll-report.js): the lux read-out
 * on the stage, the "Print / PDF summary" buttons, and the printed summary (#bm-lx-print, printed alone).
 * Lab page only (enqueued by inc/idea-04-light-lab.php with the other assets/css/light-lab/ sheets), outside the
 * part-*.css glob, so the site-wide style sheet is unchanged. Logical properties only.
 */

/* ---------------------------------------------------------------- the panels' line pictograms (ll-ui-room.js K.icon) */
/* The panel kit draws its signs as svg.bm-lx-pico (stroked paths on a 20 x 20 grid); without a size they filled the
   whole width (seen in the harness 30.11). */
body.bm-idea-4.bm-lx .bm-lx-pico {
    inline-size: 20px;
    block-size: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}
body.bm-idea-4.bm-lx .bm-lx-rtype .bm-lx-pico,
body.bm-idea-4.bm-lx .bm-lx-mount .bm-lx-pico {
    inline-size: 24px;
    block-size: 24px;
    stroke-width: 1.3;
}
body.bm-idea-4.bm-lx .bm-lx-search .bm-lx-pico {
    inline-size: 18px;
    block-size: 18px;
}
body.bm-idea-4.bm-lx .bm-lx-thumb .bm-lx-pico {
    inline-size: 22px;
    block-size: 22px;
    color: #4a4036;
}
body.bm-idea-4.bm-lx .bm-lx-pico--beam {
    inline-size: 28px;
    block-size: 22px;
    fill: currentColor;
    fill-opacity: .3;
    stroke-width: 1.2;
}

/* ---------------------------------------------------------------- the picker drawer */
/* The drawer has its own title and close button: the picker's repeated head is hidden there. */
body.bm-idea-4.bm-lx .bm-lx-drawer .bm-lx-pick__head {
    display: none;
}
/* The search pill shows its focus by its border (focus-within); the site's square focus box is not drawn. */
body.bm-idea-4.bm-lx .bm-lx-search__in:focus,
body.bm-idea-4.bm-lx .bm-lx-search__in:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
body.bm-idea-4.bm-lx .bm-lx-search:focus-within {
    outline: 2px solid var(--lx-cream);
    outline-offset: 2px;
}
/* While the 640 px drawer is open on a desktop, the free centre is too narrow for the three top clusters: the
   camera presets and the actions step aside, the view pill stays centred in what is left. */
body.bm-idea-4.bm-lx .bm-lx:not([data-layout="sheet"])[data-drawer="1"] .bm-lx-cams,
body.bm-idea-4.bm-lx .bm-lx:not([data-layout="sheet"])[data-drawer="1"] .bm-lx-acts {
    visibility: hidden;
}

/* ---------------------------------------------------------------- lux read-out (Lux / Isolines views, a tap) */
body.bm-idea-4.bm-lx .bm-lx-readout {
    position: absolute;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border: 1px solid var(--lx-line);
    border-radius: 10px;
    background: var(--lx-glass);
    color: var(--lx-cream);
    font-size: 12px;
    line-height: 1.25;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 12px));
    white-space: nowrap;
}
body.bm-idea-4.bm-lx .bm-lx-readout[hidden] {
    display: none;
}
body.bm-idea-4.bm-lx .bm-lx-readout__k {
    color: var(--lx-mute);
}
body.bm-idea-4.bm-lx .bm-lx-readout__v {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- the "Print / PDF summary" buttons */
body.bm-idea-4.bm-lx .bm-lx-panel--fixtures .bm-lx-panel__foot {
    flex-wrap: wrap;
    row-gap: 4px;
}
body.bm-idea-4.bm-lx .bm-lx-report {
    display: block;
    inline-size: 100%;
    min-block-size: 32px;
    margin: 0;
    padding: 4px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--lx-cream);
    font: inherit;
    font-size: 13px;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: rgba(247, 243, 234, .4);
    text-underline-offset: 3px;
    cursor: pointer;
}
body.bm-idea-4.bm-lx .bm-lx-report:hover {
    text-decoration-color: var(--lx-cream);
}
body.bm-idea-4.bm-lx .bm-lx-report:focus-visible {
    outline: 2px solid var(--lx-cream);
    outline-offset: 2px;
}
body.bm-idea-4.bm-lx .bm-lx-panel--summary .bm-lx-report {
    margin-block-start: 12px;
    border: 1px solid var(--lx-hair);
    text-decoration: none;
}

/* ---------------------------------------------------------------- the printed summary */
.bm-lx-print {
    display: none;
}
@media print {
    html.bm-lx-printing body > *:not(#bm-lx-print) {
        display: none !important;
    }
    html.bm-lx-printing,
    html.bm-lx-printing body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html.bm-lx-printing #bm-lx-print {
        display: block !important;
    }
    @page {
        size: A4;
        margin: 14mm 13mm;
    }
    .bm-lx-print {
        color: #1b1712;
        font-size: 9.5pt;
        line-height: 1.4;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .bm-lx-print [lang="en"],
    .bm-lx-print:lang(en) {
        font-family: Inter, "Helvetica Neue", Arial, sans-serif;
        font-weight: 300;
    }
    .bm-lx-print__head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding-block-end: 6px;
        border-block-end: 1px solid #8a6545;
    }
    .bm-lx-print__brand {
        display: flex;
        gap: 10px;
        align-items: baseline;
    }
    .bm-lx-print__mark {
        font-size: 13pt;
        letter-spacing: .02em;
    }
    .bm-lx-print__lab,
    .bm-lx-print__date {
        color: #6f4b31;
    }
    .bm-lx-print__title {
        margin: 10px 0 2px;
        font-size: 17pt;
        font-weight: 400;
    }
    .bm-lx-print__sub {
        margin: 0 0 10px;
        color: #4a4036;
    }
    .bm-lx-print h2 {
        margin: 10px 0 4px;
        font-size: 11pt;
        font-weight: 500;
        color: #6f4b31;
    }
    .bm-lx-print__pics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        break-inside: avoid;
    }
    .bm-lx-print figure {
        margin: 0;
    }
    .bm-lx-print figure img {
        display: block;
        inline-size: 100%;
        block-size: auto;
        border: 1px solid #d9cfc2;
    }
    .bm-lx-print figcaption {
        margin-block-start: 3px;
        font-size: 8pt;
        color: #4a4036;
    }
    .bm-lx-print__legend {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 6px;
        margin-block-start: 4px;
        font-size: 7pt;
        font-variant-numeric: tabular-nums;
    }
    .bm-lx-print__legend span {
        display: inline-flex;
        align-items: center;
        gap: 2px;
    }
    .bm-lx-print__legend i {
        display: inline-block;
        inline-size: 10px;
        block-size: 8px;
        border: 1px solid rgba(0, 0, 0, .15);
    }
    .bm-lx-print__cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        break-inside: avoid;
    }
    .bm-lx-print table {
        inline-size: 100%;
        border-collapse: collapse;
    }
    .bm-lx-print th,
    .bm-lx-print td {
        padding: 3px 4px;
        border-block-end: 1px solid #e6ded3;
        text-align: start;
        vertical-align: top;
        font-weight: 400;
    }
    .bm-lx-print th {
        color: #4a4036;
    }
    .bm-lx-print__cols td {
        text-align: end;
        font-variant-numeric: tabular-nums;
    }
    .bm-lx-print__tbl tr:first-child th {
        font-size: 8pt;
        border-block-end: 1px solid #8a6545;
    }
    .bm-lx-print__tbl td {
        font-size: 8.5pt;
    }
    .bm-lx-print__n {
        text-align: center !important;
    }
    .bm-lx-print__brand2 {
        color: #6f4b31;
    }
    .bm-lx-print__url,
    .bm-lx-print__file {
        font-size: 7pt;
        color: #6b6157;
        word-break: break-all;
    }
    .bm-lx-print__reco ul {
        margin: 0;
        padding-inline-start: 16px;
    }
    .bm-lx-print__verdict {
        margin: 4px 0 0;
        padding: 4px 8px;
        border-inline-start: 3px solid #8a6545;
        background: #f7f3ea;
    }
    .bm-lx-print__fix,
    .bm-lx-print__reco,
    .bm-lx-print__foot {
        break-inside: avoid;
    }
    .bm-lx-print__foot p {
        margin: 0 0 4px;
        font-size: 8pt;
        color: #4a4036;
    }
    .bm-lx-print__share bdi {
        word-break: break-all;
        font-size: 7pt;
    }
}
