/*------------------------------------*\
    PRINTABLE SPEC SHEET

    One A4 page laid over the dealer's own artwork
    (img/spec-sheet-letterhead.png, taken from the supplied template PDF).
    Every box below is positioned in millimetres to sit in the space that
    artwork leaves for it, which is why this file does not use the theme's
    tokens or its rem scale — the page is a fixed physical size, not a
    responsive layout, and main.css is deliberately not loaded here.

    Coordinates come from the filled-in example PDF, converted at
    210mm / 924px.
\*------------------------------------*/

@page {
    size: A4 portrait;
    /* The margins are part of the artwork. */
    margin: 0;
}

.spec-sheet-body {
    margin: 0;
    background-color: #E4E2DD;
    font-family: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Print at the size these millimetres actually mean. */
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

.sheet {
    position: relative;
    box-sizing: border-box;
    width: 210mm;
    height: 297mm;
    margin: 0 auto;
    overflow: hidden;
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 210mm 297mm;
    color: #1D1D1B;
}

/* On screen only — in print the page is the page. */
@media screen {
    .spec-sheet-body {
        padding: 24px 0;
    }
    .sheet {
        box-shadow: 0 18px 50px rgba(21, 24, 27, 0.24);
    }
}


/* Photos — featured image, then the first two gallery shots beneath it */

.sheet__photo {
    position: absolute;
    top: 49.5mm;
    left: 12.5mm;
    width: 92mm;
    height: 57.3mm;
    overflow: hidden;
}

.sheet__thumbs {
    position: absolute;
    top: 113.6mm;
    left: 12.5mm;
    display: flex;
    gap: 1.1mm;
    width: 92mm;
    height: 30.7mm;
}

.sheet__thumb {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

/*
 * cover, so a portrait photo fills its box instead of leaving the artwork
 * showing through beside it.
 */
.sheet__photo-img,
.sheet__thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Title and price — white, over the green band */

.sheet__title {
    position: absolute;
    top: 49mm;
    left: 113.6mm;
    /* Clamped: past three lines it would run into the price. */
    max-height: 26mm;
    width: 82mm;
    margin: 0;
    overflow: hidden;
    font-size: 16pt;
    font-weight: 700;
    line-height: 1.18;
    color: #FFFFFF;
}

.sheet__price {
    position: absolute;
    top: 78mm;
    left: 113.6mm;
    width: 82mm;
    margin: 0;
    font-size: 30pt;
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
}


/* Specification table — label left, value right, as the template has it */

.sheet__spec {
    position: absolute;
    top: 121.6mm;
    left: 111.4mm;
    width: 81.8mm;
    border-collapse: collapse;
    font-size: 10pt;
}

.sheet__spec th,
.sheet__spec td {
    padding: 1.15mm 0;
    vertical-align: top;
    line-height: 1.25;
}

.sheet__spec th {
    width: 40%;
    text-align: left;
    font-weight: 700;
}

.sheet__spec td {
    text-align: right;
    font-weight: 400;
}


/* Key features — two columns under the photos */

.sheet__features {
    position: absolute;
    top: 150mm;
    left: 12.5mm;
    width: 92mm;
    /* Down to the small print, and no further. */
    max-height: 61mm;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /*
     * A grid rather than CSS columns, because the template reads across —
     * "Air Conditioning (Cab)" beside "Alloy Wheels" — and columns would run
     * the list down one side and back up the other.
     */
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4mm;
    align-content: start;
    list-style: none;
    font-size: 7.5pt;
    line-height: 1.35;
    color: #3A3A38;
}

.sheet__feature {
    margin: 0 0 1.6mm;
}


/*
 * Backgrounds and photos are the whole point of this page, so ask the browser
 * not to drop them from the print. Chrome and Safari honour the vendor form.
 */
@media print {
    .spec-sheet-body,
    .sheet {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .sheet {
        box-shadow: none;
    }
}
