/* Preserve the Ranch title's former H2 line height after promoting it to H1. */
:is(.page-id-514, .page-id-427, .page-id-2079, .page-id-2360) h1.relative {
    line-height: 1.2;
}

/* The Mixologist section was an H1; retain its original wrapper line height. */
.page-id-9629 .tx-totc-cta > div {
    min-width: 0;
}

.page-id-9629 .tx-totc-cta h2 {
    overflow-wrap: anywhere;
}

.page-id-919 h2.relative.text-foreground {
    line-height: 1.15;
}

/* Shared textured headings on the ten pages reviewed in Chrome. */
.tx-a11y-reviewed .apply-heading-bg {
    color: rgba(10, 10, 10, 0.85) !important;
}

.tx-a11y-reviewed .text-secondary .apply-heading-bg {
    color: rgba(255, 244, 231, 0.85) !important;
}

.tx-a11y-reviewed .text-primary .apply-heading-bg {
    color: #795326 !important;
}

.tx-a11y-reviewed .wp-block-getwid-section:has(
    > .wp-block-getwid-section__wrapper
    > .wp-block-getwid-section__inner-wrapper
    > .wp-block-getwid-section__background-holder
    > .has-foreground-background-color
) {
    background-color: #0a0a0a;
}

/* Retain the Ranch typography and texture, with a legible text fill. */
.page-id-514 .apply-heading-bg {
    color: rgba(10, 10, 10, 0.85) !important;
}

.page-id-514 .text-secondary .apply-heading-bg {
    color: rgba(255, 244, 231, 0.85) !important;
}

.page-id-514 .has-secondary-60-color {
    color: #fff4e7 !important;
}

.page-id-514 .info-box,
.page-id-514 .info-box-top p {
    background-color: #1a1a1a;
}

.page-id-514 .info-box-top p {
    color: #fff4e7;
}

.tx-cookie-management {
    font: inherit;
    color: inherit;
    text-align: inherit;
}

.tx-cookie-management:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Match the dark background already assigned to these sections. */
.page-id-514 .wp-block-getwid-section:has(
    > .wp-block-getwid-section__wrapper
    > .wp-block-getwid-section__inner-wrapper
    > .wp-block-getwid-section__background-holder
    > .has-foreground-background-color
) {
    background-color: #0a0a0a;
}

/* Keep the homepage's textured type legible even when a texture fails to load. */
.home :is(h1, h2, h3, h4, h5, h6).font-mammoth,
.home .apply-heading-bg,
.home .is-style-apply-heading-bg {
    color: rgba(10, 10, 10, 0.85);
}

.home .text-secondary .apply-heading-bg,
.home .text-secondary.apply-heading-bg,
.home :is(h1, h2, h3, h4, h5, h6).font-mammoth.has-secondary-color {
    color: rgba(255, 244, 231, 0.85) !important;
}

/* Solid fallbacks sit underneath the existing background artwork. */
.home #featured-whiskey-slider,
.tx-footer {
    background-color: #1a1a1a;
}

/* This image-backed home section contains cream headings and body text. */
.home .wp-block-getwid-section.alignfull:has(
    > .wp-block-getwid-section__wrapper
    > .wp-block-getwid-section__inner-wrapper
    > .wp-block-getwid-section__background-holder
    > .wp-block-getwid-section__background[style*="background-1.jpg"]
) {
    background-color: #1a1a1a;
}

/* Opaque text backgrounds give the same contrast over every cocktail photo. */
@media (min-width: 768px) {
    .featured-items .tx-backdrop::before {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .featured-items .tx-backdrop > div {
        background-color: #1a1a1a;
        padding: 12px;
    }

    .featured-items a:focus-visible .tx-backdrop {
        display: flex !important;
        opacity: 1;
    }
}

.featured-items .swiper-slide > a {
    display: block;
}

.featured-items a:focus-visible {
    outline: 3px solid #795326;
    outline-offset: 6px;
}

.featured-items a:is(:hover, :focus-visible) > div > span,
.featured-items a:is(:hover, :focus-visible) .tx-backdrop > div > span {
    color: #795326 !important;
}

@media (min-width: 768px) {
    .featured-items a:is(:hover, :focus-visible) .tx-backdrop > div > span {
        color: #fff4e7 !important;
    }
}
