/* Keep submenu links visible when navigating with Tab. */
.nav-primary .catchresponsive-nav-menu .menu-item:focus-within > .sub-menu {
    left: auto;
    opacity: 1;
}
.nav-primary .catchresponsive-nav-menu a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}
/* Keep the nine links and search on one row before the mobile breakpoint. */
@media screen and (min-width: 991px) and (max-width: 1152px) {
    .nav-primary .catchresponsive-nav-menu > li > a {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* A single footer row, wrapping naturally on smaller screens and when zoomed. */
#colophon #site-generator.esb-site-footer {
    padding: 24px 20px 48px;
    background: #000080;
    color: #fdf5e6;
    font-family: inherit;
    font-size: 15px;
    font-style: normal;
    line-height: 1.6;
    text-align: center;
}
#site-generator.esb-site-footer .wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    margin: 0 auto;
}
#site-generator.esb-site-footer a {
    display: inline-block;
    padding: 5px 0;
    color: inherit;
    font-weight: 400;
    text-decoration: none;
    text-underline-offset: 4px;
}
#site-generator.esb-site-footer a:hover,
#site-generator.esb-site-footer a:focus-visible {
    text-decoration: underline;
}
#site-generator.esb-site-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 2px;
}
/* The booking page also styles nav elements, so set this explicitly. */
#site-generator.esb-site-footer nav {
    display: block;
}
#site-generator.esb-site-footer .esb-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#site-generator.esb-site-footer .esb-footer-links li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    white-space: nowrap;
}
#site-generator.esb-site-footer .esb-footer-links li + li::before {
    content: "·";
}
@media screen and (max-width: 600px) {
    #colophon #site-generator.esb-site-footer {
        padding-bottom: 64px;
    }
    #site-generator.esb-site-footer .esb-footer-copyright {
        flex-basis: 100%;
        justify-content: center;
        white-space: normal;
    }
    #site-generator.esb-site-footer .esb-footer-links li + li::before {
        content: none;
    }
}

/* Centre mobile branding independently of the menu and language buttons.
 * Keep the theme's widths and total 10px inset, shared equally on both sides.
 */
@media screen and (max-width: 990px) {
    #masthead > .wrapper {
        position: relative;
    }
    #masthead #mobile-header-left-menu {
        position: absolute;
        top: 0;
        left: 10px;
    }
    #masthead #site-branding {
        display: block;
        float: none;
        margin-inline: auto;
        padding-inline: 5px;
    }
    #masthead .site-description {
        margin-inline: 0;
    }
}

/* Match Catch Responsive's single-column breakpoint. Keep the theme's colours,
 * vertical spacing and media sizing; give mobile reading one 25px inner gutter.
 * No viewport units: 100% also accounts for a visible browser scrollbar.
 */
@media screen and (max-width: 990px) {
    #page.site {
        width: 100%;
    }
    #page #content > .wrapper {
        padding-left: 25px;
        padding-right: 25px;
    }
    #page #main > .hentry,
    #page #main > .page-header,
    #page #main > .no-results,
    #page #main > .not-found,
    #page #main > #comments,
    #page #main > #nav-below,
    #page #main > .post-navigation,
    #page #main > #infinite-handle,
    #page #content .sidebar-primary > .widget {
        padding-left: 0;
        padding-right: 0;
    }
    /* Enlarge inherited reading text without changing heading rules or the
     * explicit type sizes of embedded components such as the booking form.
     */
    #page #main .entry-content,
    #page #main .entry-summary {
        font-size: 18px;
        line-height: 1.6;
    }
    /* AddToAny labels stay accessible without extending beyond their buttons. */
    #page #main .a2a_kit .a2a_label {
        width: 1px;
        height: 1px;
    }
}

/* The standard hCaptcha widget is 302px wide. On very narrow screens, centre it
 * across the reading gutters without shrinking or clipping its controls.
 */
@media screen and (max-width: 350px) {
    #page #main .h-captcha {
        margin-inline: calc((100% - 302px) / 2);
    }
}
