/* =========================================================
   PrintingMaxx custom single-post template
   ========================================================= */

.pmx-single-post {
    background: #fff;
}

.pmx-single-container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

/* ---------- Hero ---------- */

.pmx-single-hero {
    padding: 44px 0 0;
}

.pmx-single-breadcrumbs {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
}

.pmx-single-title {
    max-width: 900px;
    margin: 0;
    color: #172b43;
    font-size: clamp(36px, 4.2vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.pmx-single-meta {
    margin-top: 18px;
    color: #667688;
    font-size: 15px;
    line-height: 1.5;
}

.pmx-single-featured {
    margin: 34px 0 0;
    overflow: hidden;
    border-radius: 10px;
}

.pmx-single-featured-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ---------- TOC + content ---------- */

.pmx-single-body {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 760px);
    justify-content: space-between;
    align-items: start;
    gap: clamp(42px, 6vw, 78px);
    padding-top: 58px;
    padding-bottom: 80px;
}

.pmx-single-toc {
    position: sticky;
    top: 110px;
    min-width: 0;
}

.pmx-single-content {
    min-width: 0;
    color: #34495e;
    font-size: 18px;
    line-height: 1.75;
}

.pmx-single-content > :first-child {
    margin-top: 0;
}

/*
 * Article 2548 currently contains a manually inserted copy
 * of its featured image. Hide that duplicate while testing.
 * Remove this rule after deleting the body image block.
 */

.pmx-single-content h2 {
    scroll-margin-top: 120px;
    margin-top: 64px;
    margin-bottom: 20px;
    color: #172b43;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.22;
}

.pmx-single-content h3 {
    scroll-margin-top: 120px;
    margin-top: 38px;
    margin-bottom: 14px;
    color: #223b55;
    font-size: clamp(21px, 2.2vw, 26px);
    line-height: 1.3;
}

.pmx-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.pmx-single-content .wp-block-table {
    overflow-x: auto;
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
    .pmx-single-container {
        width: min(100% - 36px, 760px);
    }

    .pmx-single-hero {
        padding-top: 32px;
    }

    .pmx-single-body {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 40px;
    }

    .pmx-single-toc {
        position: static;
        top: auto;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
    .pmx-single-container {
        width: calc(100% - 28px);
    }

    .pmx-single-title {
        font-size: 34px;
    }

    .pmx-single-featured {
        margin-top: 26px;
        border-radius: 8px;
    }

    .pmx-single-body {
        padding-top: 32px;
        padding-bottom: 56px;
    }

    .pmx-single-content {
        font-size: 17px;
        line-height: 1.7;
    }

    .pmx-single-content h2 {
        margin-top: 48px;
        font-size: 28px;
    }
}