/*
 * The resource page on paper (loaded with media="print" on that page only).
 * The browser's own Print is left alone: this only hides the shop's header
 * and footer, menus, buttons, carousels and promo bands, and prints the
 * title, the picture, the key facts, the description and the page address
 * (from the Share button's data-sr-print-url). Downloaded files are not
 * touched, so a PDF prints from its own viewer as before.
 */

@page {
    margin: 15mm;
}

/* The shop's chrome (Bricks), the lab's theme, and anything floating. */
#brx-header,
.xoo-wsc-container,
.xoo-wsc-basket,
#beacon-container,
#brx-footer,
.brx-popup,
#wpadminbar,
#masthead,
#colophon,
.site-header,
.site-footer,
.widget-area,
.sr-lab-header,
.sr-lab-footer,
.sr-modal,
.sr-toasts,
.sr-share-menu,
.sr-share-menu__backdrop {
    display: none !important;
}

/* The toolbox's own controls and bands. */
.sr-detail .sr-crumbs-row,
.sr-detail .sr-save-btn,
.sr-detail .sr-detail__rating a,
.sr-detail .sr-detail__tags,
.sr-detail .sr-detail__promos,
.sr-detail .sr-detail__files,
.sr-detail .sr-detail__dl-note,
.sr-detail .sr-gallery__rail,
.sr-detail .sr-gallery__arrow,
.sr-detail .sr-gallery__count,
.sr-detail #reviews,
.sr-detail .sr-detail__section,
.sr-detail .sr-other,
.sr-detail .sr-band,
.sr-detail .sr-more-ways,
.splide {
    display: none !important;
}

html,
body,
.sr-detail {
    background: #fff !important;
}
.sr-detail,
.sr-detail__inner {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

/* One column: the picture, then the words. */
.sr-detail .sr-detail__top {
    display: block !important;
    margin: 0 !important;
}
.sr-detail .sr-gallery {
    display: block !important;
    margin: 0 0 8mm !important;
}
.sr-detail .sr-gallery__stage {
    width: fit-content !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    break-inside: avoid;
}
.sr-detail .sr-gallery__image:not([hidden]) {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 110mm !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}
.sr-detail .sr-detail__title {
    font-size: 24pt !important;
}

/* Only the page address stays of the buttons, as a line of text. */
.sr-detail .sr-detail__actions {
    display: block !important;
    margin: 4mm 0 !important;
}
.sr-detail .sr-detail__actions > :not([data-sr-share]) {
    display: none !important;
}
.sr-detail .sr-detail__actions > [data-sr-share] {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: #000 !important;
    font-family: var(--sr-x-body-font) !important;
    font-size: 10pt !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: normal !important;
}
.sr-detail .sr-detail__actions > [data-sr-share] > * {
    display: none !important;
}
.sr-detail .sr-detail__actions > [data-sr-share]::after {
    content: "Find this resource at " attr(data-sr-print-url);
    word-break: break-all;
}

/* The description prints open; the accordion's marker does not. */
.sr-detail .sr-accordion::details-content {
    content-visibility: visible;
    display: block;
}
.sr-detail .sr-accordion__icon {
    display: none !important;
}
.sr-detail .sr-accordion,
.sr-detail .sr-detail__specs {
    break-inside: avoid;
}

/* Keep pictures and colour as they are on screen. */
.sr-detail * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
