/* Keep archive titles concise in every viewport. */
.category .c-pageTitle__subTitle,
.author .c-pageTitle__subTitle {
    display: none !important;
}

/* Give text fields a strong keyboard-focus indicator after the theme rules. */
body #seller-form .rmc-form-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus-visible,
body #buyer-form .rmc-form-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus-visible {
    border-color: #075f92 !important;
    outline: 3px solid #ffd166 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 7px #075f92 !important;
}

/* Place breadcrumbs below the measured fixed-header height. */
@media (min-width: 721px) {
    body .p-breadcrumb.-bg-on {
        transform: translateY(var(--rmc-ra-fixed-header-offset, 109px)) !important;
    }
}

/* Prevent the brand link from overlapping the menu button on very small screens. */
@media (max-width: 360px) {
    #body_wrap .rmc2-header__inner > a.rmc2-brand,
    html body.rmc-unified-header-v1.rmc-unified-footer-v1
    header.rmc2-site-header.rmc2-site-header .rmc2-header
    .rmc2-header__inner > a.rmc2-brand.rmc2-brand {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* Restore SWELL's mobile behavior for a long current-page breadcrumb label. */
@media (max-width: 960px) {
    #body_wrap.single .p-breadcrumb__item:last-child > span.p-breadcrumb__text {
        display: none !important;
    }
}

/* Keep long-article table-of-contents links easy to tap on touch-size layouts. */
@media (max-width: 1024px) {
    body .p-toc li > .p-toc__link {
        display: flex !important;
        align-items: center !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
        padding-block: 4px !important;
    }
}

/* The wrapper itself is the horizontal scroll region on narrow screens. */
.rmc-responsive-table-region {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rmc-responsive-table-region:focus-visible {
    outline: 3px solid #0b6b55;
    outline-offset: 3px;
}

.rmc-responsive-table-hint {
    display: flex;
    align-items: center;
    gap: 0.45em;
    margin: 0.75rem 0 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
}

.rmc-responsive-table-hint::before {
    content: "↔";
    flex: 0 0 auto;
    color: #0b6b55;
    font-size: 1.1em;
    font-weight: 700;
}

@media (min-width: 960px) {
    .rmc-responsive-table-hint {
        display: none;
    }
}
