/*
 * Public "Currently On Tap" menu.
 *
 * Long names used to sit on one line (nowrap), which pushed the board wider
 * than a phone. The first wrap pass set overflow-wrap: anywhere on every
 * cell, including ABV. That shrinks the percent column to about the width of
 * "ABV", so "5.5%" breaks and the percent sign sits on its own line.
 *
 * Let the board grow with its content up to the page width, and wrap the
 * name and style on spaces. Keep the percent with its number. On a phone the
 * ABV column is already hidden; split the row evenly and allow a single
 * unbroken token to break so it cannot widen the screen.
 *
 * New object key: CloudFront caches the previous stylesheet immutably.
 */

#on-tap #taplist_web table {
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#taplist_web th:not(.collapseonmobile),
#taplist_web td:not(.collapseonmobile) {
    white-space: normal;
    /* anywhere lets one long token shrink inside the board. ABV is excluded. */
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
}

#taplist_web th.collapseonmobile,
#taplist_web td.collapseonmobile {
    /* Shrink to the percent itself so the other columns keep the leftover width. */
    width: 1%;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    vertical-align: top;
}

@media screen and (max-width: 550px) {
    /* ABV is hidden here; give name and style equal room to wrap. */
    #taplist_web table {
        table-layout: fixed;
        width: 100%;
    }

    #taplist_web th:not(.collapseonmobile),
    #taplist_web td:not(.collapseonmobile) {
        width: 50%;
        overflow-wrap: anywhere;
    }

    #taplist_web td:not(.collapseonmobile) {
        padding-bottom: 8px;
    }
}
