/* Keep category headings legible over the existing mobile hero photographs. */
.gub-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.gub-table-scroll:focus-visible {
    outline: 2px solid #219bd3;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    #omt-category-hero .category__hero-content {
        position: relative;
        top: auto;
        bottom: auto;
    }

    #omt-category-hero .category__hero-content-block {
        padding-bottom: 0;
    }

    #omt-category-hero .category__hero-content-block > .flex,
    #omt-category-hero > .relative > .container > .flex {
        flex-direction: column;
        gap: 1rem;
    }

    #omt-category-hero .category__contact-widget {
        position: static;
        width: 100%;
    }

    /* Match the initial closed Alpine state before JavaScript initializes. */
    #omt-category-hero .category__contact-widget:not(.category__contact-widget-open) > [x-show="open"] {
        display: none;
    }

    .category__hero h1 {
        color: #222222 !important;
        background: rgb(255 255 255 / 96%);
        padding: 0.25em 0.4em;
        border-radius: 4px;
        max-width: 100%;
        overflow-wrap: anywhere;
        text-shadow: none;
    }
}

/* The existing newsletter form retains its provider, fields and submit logic. */
.cms-newsletter #maincontent > .columns > .column.main > h2,
.cms-newsletter #maincontent > .columns > .column.main > h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.cms-newsletter #maincontent > .columns > .column.main > p,
.cms-newsletter #maincontent > .columns > .column.main > ul {
    max-width: 980px;
    font-size: 17px;
    line-height: 1.62;
    margin-bottom: 1rem;
}

.cms-newsletter #gub-newsletter-general {
    margin-top: 2rem;
}
