/* ========================================================================
   SHARED PUBLIC WEBSITE HEADER
   Used by Home, Firmware, Downloads and OTP Checker only.
   Design controls: header height, logo size and responsive menu behaviour.
   ======================================================================== */

.site-header,
.site-header * {
    box-sizing: border-box;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f7fcf9;
    border-bottom: 1px solid #d9eee3;
    color: #063f35;
    font-family: Outfit, Arial, sans-serif;
    /* Prevent page frameworks (such as Firmware's Tailwind CSS) from
       changing the natural spacing of the two brand text lines. */
    line-height: normal;
    min-height: 72px;
}

/* Keep the shared chrome still while its local fonts/icons initialise. */
html.site-chrome-loading .site-header,
html.site-chrome-loading .site-footer {
    visibility: hidden;
}

.site-header__shell {
    width: min(1480px, calc(100% - 48px));
    margin: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 71px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #063f35;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__brand-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    flex: 0 0 52px;
    border: 2px solid #f5a116;
    border-radius: 14px;
    background: #05332d;
    box-shadow: 4px 4px 0 #f5c568;
    color: #f5a116;
    font-size: 23px;
}

.site-header__brand b {
    display: block;
    font-size: 21px;
    font-weight: 700;
    line-height: 25px;
    letter-spacing: -.55px;
}

.site-header__brand small {
    display: block;
    margin-top: 3px;
    color: #66847a;
    font-size: 10px;
    font-weight: 700;
    line-height: 10px;
    letter-spacing: 1.35px;
}

.site-header__links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
}

.site-header__links a {
    padding: 12px 10px;
    border-radius: 9px;
    color: #37665a;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__links a:hover,
.site-header__links a.is-active {
    background: #e9f8f0;
    box-shadow: inset 0 -2px #078c60;
    color: #078c60;
}

.site-header__actions {
    display: flex;
    gap: 8px;
}

.site-header__actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid #98d4b8;
    border-radius: 10px;
    background: #fff;
    color: #078c60;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    text-decoration: none;
}

.site-header__actions .site-header__register {
    border: 0;
    background: #078c60;
    box-shadow: 0 4px 0 #056648;
    color: #fff;
}

.site-header__menu {
    display: none;
    margin-left: auto;
    padding: 10px;
    border: 1px solid #9fd5ba;
    border-radius: 9px;
    background: #fff;
    color: #078c60;
    font: inherit;
}

.site-header__mobile {
    display: none;
}

.site-header__mobile a {
    color: #37665a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.site-header__mobile a.is-active {
    color: #078c60;
}

/* One shared breakpoint prevents different desktop/mobile headers by page. */
@media (max-width: 1180px) {
    .site-header__links,
    .site-header__actions {
        display: none;
    }

    .site-header__menu {
        display: block;
    }

    .site-header__mobile.is-open {
        display: grid;
        max-height: calc(100vh - 76px);
        gap: 12px;
        overflow-y: auto;
        padding: 16px 0 20px;
        border-top: 1px solid #d9eee3;
    }
}

@media (max-width: 560px) {
    .site-header__shell {
        width: calc(100% - 28px);
    }

    .site-header__nav {
        height: 76px;
    }

    .site-header__brand-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 20px;
    }

    .site-header__brand b {
        font-size: 17px;
    }

    .site-header__brand small {
        font-size: 7px;
    }
}
