summary {
    display: flex;
    line-height: 24px;
    font-weight: 700;
}

summary::after {
    width: 24px;
    height: 24px;
    transition: 0.2s;
    margin-left: 4px;

    transform: rotate(180deg);
}

.blue summary::after {
    content: url('/static/arrows/blue.svg');
}

.green summary::after {
    content: url('/static/arrows/green.svg');
}

.brown summary::after {
    content: url('/static/arrows/brown.svg');
}

details[open]>summary::after {
    transform: rotate(0);
}

details[open]>summary {
    margin-bottom: 8px;
}

details {
    margin-bottom: 8px;
}

details[open] {
    padding-bottom: 24px;
}

main {
    width: 100%;
}

.tiles {
    flex-direction: column;
    overflow-x: auto;
    gap: 16px;
}

.tile {
    display: flex;
    flex-direction: column;
    background-color: #FFDDBA;

    border: 2px solid var(--border-color);
    width: 100%;
    flex-grow: 1;

    box-sizing: border-box;
}

.tiles .row :last-child:first-child {
    flex-grow: 2;
    max-width: 536px;
}

.tile>img {
    max-height: min(256px, calc(100vw - 100px)) !important;
    object-fit: cover;
}

main {
    gap: 8px;
}

.dimmed {
    opacity: 0.7;
    mix-blend-mode: darken;
}

.image-mode .table {
    display: none;
}


.text-mode .tiles {
    display: none;
}







.row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
}

.row > * {
    max-height: max(150vw, 500px);
    object-fit: cover;
    object-position: center;

    flex-grow: 1;
    max-width: calc(50% - 8px) !important;
    width: auto;
}

@media (max-width: 550px) {
    .row {
        flex-direction: column;
    }
    .row > * {
        max-width: 100% !important;
        width: 100%;
        max-height: none;
    }
}

.table>.flex>.left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
