/* home_v1/css/overrides.css
 *
 * Hand-written for this page only — NOT ported from v1's own assets.
 * The only job of this file is to size and position the markup that
 * components/language_selector.html renders (.lang-flag / .lang-flag__img)
 * inside v1's navbar. Those classes used to be defined in the retired
 * stack-1 stylesheet (assets/css/components/navigation.css, deleted by
 * issue #115), so this file is now their only definition; without it the
 * reused language-selector markup would render as an unstyled, unsized
 * <img>. Loaded last, after style.css and site.css.
 */

.navbar .lang-flag {
    /* height: 100% resolves against the <li>'s flex-stretched height (its
       ul.navbar-nav parent is display:flex, default align-items:stretch),
       so the flag centers against the full row height instead of sitting
       at its own ~16px intrinsic height near the top of a much taller
       .top-button sibling. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-left: 14px;
    padding: 0 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.navbar .lang-flag:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.06);
}

.navbar .lang-flag:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.navbar .lang-flag__img {
    display: block;
    width: 40px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* With the templates dropdown the Spanish navbar has six items and overflows
   .container-fluid between the xl expand point and ~1440px, squeezing the
   search input to ~85px. Tighten the item gutters, the search box chrome and
   the language flag only in that band; wider screens keep the site.css
   spacing. */
@media (min-width: 1200px) and (max-width: 1499.98px) {
    .navbar-nav.mr-auto .nav-item {
        margin: 0 0.25rem;
    }

    .navbar .top-search {
        margin-left: 12px;
        padding: 4px 12px;
    }

    .navbar .lang-flag {
        margin-left: 6px;
        padding: 0 8px;
    }
}
