/* SPDX-FileCopyrightText: 2026 Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
   SPDX-License-Identifier: CC0-1.0 */

table > thead:has(> tr > th:empty):not(:has(> tr > th:not(:empty))) {
    display: none;
}
.libo-tech-container {
    display: grid;
    justify-content: center;
    color: #2c2c2c;
    border: 4px solid var(--main-brand);
    border-radius: 2px;
    padding: var(--scale-00);
}
.libo-tech-open-platform {
    margin: 0 auto;
    font-size: var(--scale-5);
    font-weight: bold;
    text-align: center;
}
.libo-tech-apps {
    display: grid;
    grid-template-columns: repeat(4, 50px);
    grid-template-rows: auto;
    margin: 0 auto;
}
.libo-tech-apps:nth-of-type(-n + 2) {
    margin-block-end: var(--scale-4);
}
.libo-tech-apps p {
    writing-mode: vertical-rl;
    text-orientation: sideways;
    transform: rotate(180deg);
    background: #d1ffb1;
    border: 2px solid var(--darkest-gray);
    margin: 0;
    padding: var(--scale-0);
    text-align: center;
}
.libo-tech-apps:last-of-type p {
    border-inline-start: none;
}
.libo-tech-apps p + p {
    border-block-start: none;
}
.libo-tech-open-format {
    text-align: center;
    background: #46c230;
    color: #fff;
    border: 2px solid var(--darkest-gray);
    margin: 0;
    padding: var(--scale-0);
    font-size: var(--scale-5);
    font-weight: bold;
}
.libo-tech-open-engine {
    text-align: center;
    background: var(--main-brand);
    color: #fff;
    border: 2px solid var(--darkest-gray);
    border-block-start: none;
    margin: 0;
    padding: var(--scale-0);
    font-size: var(--scale-5);
    font-weight: bold;
}
.libo-tech-container img {
    padding: var(--scale-0);
    max-width: 200px;
    margin: 0 auto;
}
.proprietary-container {
    display: grid;
    justify-content: center;
    color: #2c2c2c;
    border: 4px solid #222;
    border-radius: 2px;
    padding: var(--scale-00);
    margin-block-start: var(--scale-4);
}
.proprietary-apps {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: auto;
    margin: 0 auto;
}
.proprietary-apps:nth-of-type(1n + 2) {
    margin-block-start: var(--scale-4);
}
.proprietary-apps p {
    /* Using outline to collapse borders is simplest here */
    outline: 2px solid var(--darkest-gray);
    margin: 0;
    padding: var(--scale-0);
    text-align: center;
}
.proprietary-apps:nth-of-type(1) p:nth-child(-n + 3) {
    background: #aadcf7;
}
.proprietary-apps:nth-of-type(1) p:nth-child(n+4):nth-child(-n+6) {
    background: #64bcee;
}
.proprietary-apps:nth-of-type(1) p:nth-child(n+7):nth-child(-n+9) {
    background: #1d99e1;
}
.proprietary-apps:nth-of-type(2) p:nth-child(-n + 3) {
    background: #f9cfb6;
}
.proprietary-apps:nth-of-type(2) p:nth-child(n+4):nth-child(-n+6) {
    background: #f09e6f;
}
.proprietary-apps:nth-of-type(2) p:nth-child(n+7):nth-child(-n+9) {
    background: #d36118;
}
.proprietary-apps:nth-of-type(3) p:nth-child(-n + 3) {
    background: #fde9aa;
}
.proprietary-apps:nth-of-type(3) p:nth-child(n+4):nth-child(-n+6) {
    background: #f5cd53;
}
.proprietary-apps:nth-of-type(3) p:nth-child(n+7):nth-child(-n+9) {
    background: #e8b913;
}
.proprietary-platform {
    margin: 0 auto;
    font-size: var(--scale-5);
    font-weight: bold;
    text-align: center;
}
.proprietary-suites {
    text-align: center;
    margin: 0;
    padding: var(--scale-0) 0 0 0;
    font-size: var(--scale-5);
    font-weight: bold;
}
@media (min-width:768px) {
    .libo-tech-container {
        grid-template-columns: repeat(3, 200px);
        grid-template-rows: repeat(5, minmax(1rem, auto));
        column-gap: 20px;
        max-width: 760px;
        padding: var(--scale-4);
    }
    .libo-tech-open-platform {
        grid-row: 1;
        margin-block-end: var(--scale-00);
    }
    .libo-tech-apps {
        grid-row: 2;
    }
    .libo-tech-apps:nth-of-type(-n + 2) {
        margin-block-end: 0;
    }
    .libo-tech-apps p {
        border-inline-start: none;
    }
    .libo-tech-apps p + p {
        border-block-start: none;
    }
    .libo-tech-open-format {
        grid-row: 3;
        grid-column: 1 / span 3;
    }
    .libo-tech-open-engine {
        grid-row: 4;
        grid-column: 1 / span 3;
    }
    .libo-tech-container img {
        grid-row: 5;
        grid-column: 1 / span 3;
        max-width: 260px;
    }
    .proprietary-container {
        grid-template-columns: repeat(3, auto);
        grid-template-rows: repeat(3, minmax(1rem, auto));
        column-gap: 20px;
        max-width: 760px;
        padding: var(--scale-4);
    }
    .proprietary-apps {
        grid-row: 1;
    }
    .proprietary-apps:nth-of-type(1n + 2) {
        margin-block-start: 0;
    }
    .proprietary-platform {
        grid-row: 2;
        margin-block-start: var(--scale-00);
    }
    .proprietary-suites {
        grid-row: 3;
        grid-column: 1 / span 3;
        font-size: var(--scale-7);
    }
}
