/*
 * sabe.ai — shared header menu sizing.
 *
 * Loaded on every route, last in <head>, so the menu behaves the same on the front page
 * and on every inner page. It lives here rather than in home-2026.css because that sheet
 * is only linked on / and /pricing; the header itself is in the shared layout.
 *
 * The menu is seven labels (Home, How it works, What we build, Who we are, Pricing,
 * Questions, Contact Us) plus the theme toggle. With a fixed brand mark at 44px the row
 * needs ~1030px and only has ~830px at the lg breakpoint, so the labels are unwrapped,
 * the marks step down by band, and the link padding tightens. Measured over CDP at
 * 768/850/920/991/992/1024/1100/1199/1200/1280/1366/1400/1600/1800: no wrapped label,
 * no horizontal overflow, brand mark never below 100px wide.
 */

/* The brand mark is not a rubber band: without this the flex row shrinks the logo to
   a sliver instead of the menu, which is the failure the screenshot shows first. */
.landing-layout .banner-section .nav-header-main .header-logo {
    flex: 0 0 auto;
}

/* A label that wraps to two lines doubles the header height and drags the active
   underline with it. */
.nav-header-main .nav-link,
.nav-header-main .nav > .nav-item {
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .landing-layout .banner-section .nav-header-main .nav .nav-item .nav-link {
        font-size: 0.85rem;
        padding-left: 8px;
        padding-right: 8px;
    }
    .landing-layout .banner-section .nav-header-main .header-logo .brand-logo {
        height: 38px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .landing-layout .banner-section .nav-header-main .nav .nav-item .nav-link {
        font-size: 0.8rem;
        padding-left: 6px;
        padding-right: 6px;
    }
    .landing-layout .banner-section .nav-header-main .header-logo .brand-logo {
        height: 34px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .landing-layout .banner-section .nav-header-main .nav .nav-item .nav-link {
        font-size: 0.74rem;
        padding-left: 4px;
        padding-right: 4px;
    }
    .landing-layout .banner-section .nav-header-main .header-logo .brand-logo {
        height: 30px;
    }
    /* The mail icon duplicates the Contact Us item in the same band; the row needs the room. */
    .landing-layout .banner-section .nav-header-main .dropdown-link {
        display: none;
    }
}
