/* ==========================================================================
   Iguazu Noticias — Site header
   Frosted sticky bar, 76px tall. The landing template makes it static instead,
   because there the sticky element is the section nav (see pages/landing.css).
   ========================================================================== */

.ig-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    height: 76px;
    padding-inline: var(--space-10);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-100);
}

.ig-navbar__brand {
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: 20px;
    letter-spacing: var(--tracking-tight);
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    /* The text form survives on nowrap over ~14 characters; an uploaded logo can
       be any width, and without this it would take space from the nav on the
       middle widths where the menu is still horizontal. */
    flex: 0 0 auto;
}

.ig-navbar__brand:hover {
    color: var(--green-700);
}

/* The uploaded logo. The bar is a fixed 76px, so the height is capped here and
   the width follows the file's own proportion: the mark is whatever shape the
   brand is, and the design does not get to crop it. object-fit guards the case
   where the intrinsic ratio and the box disagree. */
.ig-navbar__logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

@media (max-width: 960px) {
    .ig-navbar {
        padding-inline: var(--space-5);
    }

    /* Smaller mark where the bar loses padding and the burger appears, so a wide
       logo cannot crowd the toggle. */
    .ig-navbar__logo {
        height: 32px;
        max-width: 170px;
    }
}
