@font-face {
    font-family: "Webly Sleek";
    src: url("youfit/weblysleekuil.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root { --masthead-height: 88px; }
#top .masthead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #646868;
    color: #fff;
    font-family: "Webly Sleek", Arial, sans-serif;
}
#top .masthead .bar {
    width: 93%;
    max-width: 1310px;
    min-height: var(--masthead-height);
    margin-inline: auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.5rem;
}
#top .masthead .brand { display: block; align-self: center; flex: none; }
#top .masthead .brand img { display: block; width: 64px; height: auto; }
#top .masthead nav { display: flex; flex-wrap: wrap; align-items: stretch; }
#top .masthead nav a {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
    text-transform: uppercase;
    text-decoration: none;
}
#top .masthead nav a:hover,
#top .masthead nav a[aria-current="page"] { background: #a1dbe4; }
#top .masthead .bham-menu-toggle { display: none; }

@media (max-width: 1170px) {
    #top .masthead .bar { gap: 12px; }
    #top .masthead nav a { font-size: 13px; padding: 8px; }
}
@media (min-width: 768px) and (max-width: 900px) {
    #top .masthead nav a { font-size: 11px; padding-inline: 6px; }
}
@media (max-width: 767px) {
    :root { --masthead-height: 64px; }
    #top .masthead { position: static; }
    #top .masthead .bar { width: 70%; position: relative; align-items: center; }
    #top .masthead .brand img { width: 44px; }
    #top .masthead .bham-menu-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        cursor: pointer;
    }
    #top .masthead .bham-menu-toggle span { width: 32px; height: 3px; background: currentColor; box-shadow: 0 -10px, 0 10px; }
    #top .masthead nav {
        display: none;
        position: absolute;
        z-index: 1;
        box-sizing: border-box;
        top: 100%;
        right: 0;
        width: min(260px, 85vw);
        padding: 10px;
        background: #646868;
    }
    #top .masthead button[aria-expanded="true"] + nav { display: grid; }
    #top .masthead nav a { box-sizing: border-box; min-height: 44px; padding: 10px; font-size: 14px; }
}
