/* Artrel mobile landing-page specification rows */
@media (max-width: 575.98px) {
    .page-cms .landing-page-headerless #specyfikacja,
    .page-cms .landing-page-headerless #specyfikacja .container,
    .page-cms .landing-page-headerless #specyfikacja .table-responsive {
        min-width: 0;
        max-width: 100%;
    }

    .page-cms .landing-page-headerless #specyfikacja .table-responsive {
        overflow: visible;
    }

    .page-cms .landing-page-headerless #specyfikacja table,
    .page-cms .landing-page-headerless #specyfikacja tbody,
    .page-cms .landing-page-headerless #specyfikacja tr,
    .page-cms .landing-page-headerless #specyfikacja th,
    .page-cms .landing-page-headerless #specyfikacja td {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-cms .landing-page-headerless #specyfikacja table,
    .page-cms .landing-page-headerless #specyfikacja tbody {
        table-layout: fixed;
        margin-bottom: 0;
        background-color: transparent !important;
    }

    .page-cms .landing-page-headerless #specyfikacja tr {
        padding: 0.75rem 0.875rem;
        border-bottom: 1px solid var(--bs-border-color);
        background-color: var(--bs-body-bg);
    }

    .page-cms .landing-page-headerless #specyfikacja tr:nth-child(odd) {
        background-color: var(--bs-tertiary-bg);
    }

    .page-cms .landing-page-headerless #specyfikacja th,
    .page-cms .landing-page-headerless #specyfikacja td {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .page-cms .landing-page-headerless #specyfikacja tr > :first-child {
        margin-bottom: 0.25rem;
        color: var(--bs-secondary-color);
        font-size: 0.75rem;
        line-height: 1.25;
        font-weight: 600;
    }

    .page-cms .landing-page-headerless #specyfikacja tr > :last-child {
        color: inherit;
        font-size: 0.9375rem;
        line-height: 1.4;
    }
}

/* Match Bootstrap utility priority for CMS-authored helper classes. */
@layer utilities {
    @media (max-width: 575.98px) {
        .page-cms .landing-page-headerless #specyfikacja table,
        .page-cms .landing-page-headerless #specyfikacja tbody {
            background-color: transparent !important;
        }

        .page-cms .landing-page-headerless #specyfikacja th,
        .page-cms .landing-page-headerless #specyfikacja td {
            background: transparent !important;
            white-space: normal !important;
        }
    }
}

/* Five-column cooling comparisons become labeled two-column cards on phones. */
@media (max-width: 575.98px) {
    .page-cms:is(.cms-id-16, .cms-id-17) .landing-page-headerless #specyfikacja thead tr {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .page-cms:is(.cms-id-16, .cms-id-17) .landing-page-headerless #specyfikacja tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.875rem;
        row-gap: 0.625rem;
    }

    .page-cms:is(.cms-id-16, .cms-id-17) .landing-page-headerless #specyfikacja tbody tr > :first-child {
        grid-column: 1 / -1;
        margin-bottom: 0;
        padding-bottom: 0.5rem !important;
        border-bottom: 1px solid var(--bs-border-color) !important;
    }

    .page-cms:is(.cms-id-16, .cms-id-17) .landing-page-headerless #specyfikacja tbody tr > td {
        min-width: 0;
    }

    .page-cms:is(.cms-id-16, .cms-id-17) .landing-page-headerless #specyfikacja tbody tr > td::before {
        display: block;
        margin-bottom: 0.125rem;
        color: var(--bs-secondary-color);
        font-size: 0.6875rem;
        line-height: 1.25;
        font-weight: 600;
    }

    .page-cms.cms-id-16 .landing-page-headerless #specyfikacja tbody tr > td:nth-child(2)::before {
        content: "90 mm";
    }

    .page-cms.cms-id-16 .landing-page-headerless #specyfikacja tbody tr > td:nth-child(3)::before {
        content: "90 mm ARGB";
    }

    .page-cms.cms-id-16 .landing-page-headerless #specyfikacja tbody tr > td:nth-child(4)::before {
        content: "120 mm";
    }

    .page-cms.cms-id-16 .landing-page-headerless #specyfikacja tbody tr > td:nth-child(5)::before {
        content: "120 mm ARGB";
    }

    .page-cms.cms-id-17 .landing-page-headerless #specyfikacja tbody tr > td:nth-child(2)::before {
        content: "240 mm";
    }

    .page-cms.cms-id-17 .landing-page-headerless #specyfikacja tbody tr > td:nth-child(3)::before {
        content: "240 mm ARGB";
    }

    .page-cms.cms-id-17 .landing-page-headerless #specyfikacja tbody tr > td:nth-child(4)::before {
        content: "360 mm";
    }

    .page-cms.cms-id-17 .landing-page-headerless #specyfikacja tbody tr > td:nth-child(5)::before {
        content: "360 mm ARGB";
    }
}
