﻿/* ---------- Calibration page custom styles ---------- */

/* Page hero spacing */
.calib-hero {
    padding-top: 40px;
    padding-bottom: 40px;
}

    /* Headline tweaks */
    .calib-hero .headline {
        letter-spacing: 0.02em;
    }

/* Make the Bootstrap row stretch its children to equal height */
.row.align-items-stretch {
    align-items: stretch;
}

/* Image wrapper fills its column height, uses min-height to avoid tiny boxes */
.calib-image-wrapper {
    height: 100%;
    min-height: 380px; /* adjust to taste */
    border-radius: .25rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    background-color: #fff;
}

    /* Image fills wrapper and crops using object-fit */
    .calib-image-wrapper img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover; /* crop while keeping aspect */
        -o-object-fit: cover; /* legacy */
    }

/* Text column: padding and vertical centering */
.text-column {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical center the content */
}

/* Feature list spacing */
.feature-list li {
    margin-bottom: .45rem;
    line-height: 1.45;
}

/* Parameter list makes two columns sit side-by-side cleanly */
.param-list {
    display: flex;
    gap: 1.5rem;
}

    .param-list .col-md-6 {
        padding-left: 0;
        padding-right: 0;
    }

/* Minor typographic improvements */
.calib-hero h1.display-5 {
    font-weight: 700;
}

.calib-hero h6 {
    margin-top: 8px;
    letter-spacing: .06em;
}

/* Horizontal rules styling */
.calib-hero hr {
    border-top: 1px solid rgba(0,0,0,0.08);
    margin: 1.25rem 0;
}

/* Buttons margin fix */
.calib-hero .btn {
    min-width: 160px;
}

/* Small utility */
.muted-small {
    font-size: .95rem;
    color: #6c757d;
}

/* ---------- Responsive adjustments ---------- */

/* Large tablets / small desktops */
@media (max-width: 991.98px) {
    .calib-image-wrapper {
        min-height: 300px;
    }

    .text-column {
        padding: 18px;
    }
}

/* Phones / small devices */
@media (max-width: 575.98px) {
    .calib-hero {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .calib-image-wrapper {
        min-height: 220px;
    }

    .text-column {
        padding: 12px;
    }

    /* Make param-list stack vertically on very small screens */
    .param-list {
        display: block;
    }

        .param-list .col-md-6 {
            margin-bottom: .75rem;
        }

    /* Slightly reduce headline size on phones */
    .calib-hero h1.display-5 {
        font-size: 1.625rem; /* approx 26px */
    }
}

/* ---------- Accessibility / minor polish ---------- */

/* Make sure images have a smooth rendering on high-DPI */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Ensure long paragraphs don't stretch too wide on large screens */


.mirror-x {
    transform: scaleX(-1);
}

