.gf-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.gf-mobile-menu { display: none; }

@media (max-width: 767px) {
    .gf-mobile-menu {
        position: absolute;
        z-index: 10;
        inset: 0 0 0 auto;
        display: block;
        width: 62px;
    }
    .gf-mobile-menu > summary {
        display: grid;
        place-items: center;
        height: 100%;
        min-height: 44px;
        color: #fff;
        background: #262626;
        cursor: pointer;
        list-style: none;
    }
    .gf-mobile-menu > summary::-webkit-details-marker { display: none; }
    .gf-menu-glyph, .gf-menu-glyph::before, .gf-menu-glyph::after {
        display: block;
        width: 24px;
        height: 2px;
        background: currentColor;
    }
    .gf-menu-glyph { position: relative; }
    .gf-menu-glyph::before, .gf-menu-glyph::after { position: absolute; content: ''; }
    .gf-menu-glyph::before { transform: translateY(-7px); }
    .gf-menu-glyph::after { transform: translateY(7px); }
    .gf-mobile-menu[open] .gf-menu-glyph { background: transparent; }
    .gf-mobile-menu[open] .gf-menu-glyph::before { transform: rotate(45deg); }
    .gf-mobile-menu[open] .gf-menu-glyph::after { transform: rotate(-45deg); }
    #gf-mobile-links {
        position: absolute;
        top: 100%;
        right: 0;
        box-sizing: border-box;
        width: 100vw;
        height: calc(100vh - 100% - var(--wp-admin--admin-bar--height, 0px));
        height: calc(100dvh - 100% - var(--wp-admin--admin-bar--height, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #292929;
        color: white;
        padding: 20px 12px max(24px, env(safe-area-inset-bottom));
        text-align: center;
    }
    #gf-mobile-links .mobile-menu-items { padding-block: 12px 24px; gap: clamp(6px, 2vh, 20px); }
    #gf-mobile-links .products-menu { gap: 0; }
    #gf-mobile-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; }
    #gf-mobile-links a:focus-visible, .gf-mobile-menu > summary:focus-visible { outline: 3px solid #ffd76c; outline-offset: -3px; }
}

/* Text that sits on white product panels. The exported theme also faded some
   of these labels using opacity, reducing contrast even with darker colors. */
.grid-text-holder, .grid-text-holder h3.white, .grid-text-holder .code,
.table-container .table-subheader, .table-grid .product-class.sbb, .table-grid .product-class.wbb {
    opacity: 1;
    color: #555;
}
.table-grid .product-class.bgg { color: #755817; }

/* Each quotation must use a foreground suited to its own slide background. */
.gold-back ~ .quote-holder, .gold-back ~ .quote-holder .quotation-name,
.gold-back ~ .quote-holder .quotation-subtext,
.red-back ~ .quote-holder, .red-back ~ .quote-holder .quotation-name,
.red-back ~ .quote-holder .quotation-subtext { color: white; }
.grey-back ~ .quote-holder, .grey-back ~ .quote-holder .quotation-name,
.grey-back ~ .quote-holder .quotation-subtext { color: #161616; }
.quote-holder .quotation-subtext, .quote-holder .quote-mark { opacity: 1; }
