/* BUWWAZA site-specific styles. Add future design changes here, not in Ollie. */
/* v1.0.1: prevent profile tab labels from breaking into individual characters. */

/* Responsive media should never exceed its containing block. */
.wp-site-blocks img,
.wp-site-blocks video,
.wp-site-blocks iframe {
    max-width: 100%;
}

/* Avoid long words/URLs pushing normal content wider than the viewport. */
.wp-site-blocks,
.wp-site-blocks main,
.wp-site-blocks article,
.wp-site-blocks .entry-content {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 782px) {
    /* Keep block layouts within the mobile viewport without forcing a fixed width. */
    .wp-site-blocks,
    .wp-site-blocks main,
    .wp-site-blocks header,
    .wp-site-blocks footer {
        max-width: 100%;
    }

    .wp-site-blocks .wp-block-columns {
        gap: 1.25rem;
    }

    .wp-site-blocks .wp-block-column {
        min-width: 0;
    }

    /* Keep mobile footer sections readable when stacked. */
    .wp-site-blocks footer .wp-block-group,
    .wp-site-blocks footer .wp-block-column {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}


/* Food Social profile navigation: keep each tab label on one line on mobile.
   The parent page may use overflow-wrap:anywhere for long content; override it
   specifically for these navigation links so the labels remain readable. */
body .fsc-user-profile,
body .fsc-user-tabs {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
body .fsc-user-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
body .fsc-user-tabs a {
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content;
    max-width: none !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-break: auto !important;
}
@media (max-width: 782px) {
    body .fsc-user-profile {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    body .fsc-user-tabs a {
        padding: 10px 12px;
        font-size: 14px;
    }
}
