/* ==========================================================
   SAMNET SHARED SITE CHROME
   Typography / Header / Navigation / Footer
========================================================== */


/* ==========================================================
   VARIABLES
========================================================== */

:root {
    --samnet-green: #2f8f5b;
    --samnet-green-dark: #246f48;

    --samnet-navy: #071a26;
    --samnet-navy-soft: #12384b;

    --samnet-text: #172b43;
    --samnet-muted: #718096;

    --samnet-border: #dfe6e9;

    --samnet-white: #ffffff;

    --samnet-container: 1180px;
}


/* ==========================================================
   BOX SIZING
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ==========================================================
   GLOBAL FONT
========================================================== */

html,
body {
    font-family:
        "Source Sans 3",
        Arial,
        Helvetica,
        sans-serif !important;
}


body {
    margin: 0;

    color: var(--samnet-text);

    background: #f4f7f8;

    -webkit-font-smoothing:
        antialiased;

    -moz-osx-font-smoothing:
        grayscale;
}


/*
 * Force Source Sans 3 throughout
 * all SAMNET pages.
 */

body *,
button,
input,
select,
textarea {
    font-family:
        "Source Sans 3",
        Arial,
        Helvetica,
        sans-serif !important;
}


/* ==========================================================
   SHARED PAGE CONTAINER
========================================================== */

.page-container {
    width:
        min(
            var(--samnet-container),
            calc(100% - 40px)
        );

    margin-inline: auto;
}


/* ==========================================================
   HEADER
========================================================== */

.site-header {
    position: relative;

    z-index: 10000;

    width: 100%;

    color: #ffffff;

    background:
        #071a26;

    border-bottom:
        1px solid
        rgba(255,255,255,0.08);
}


/* ==========================================================
   HEADER INNER
========================================================== */

.header-inner {
    display: flex;

    width:
        min(
            var(--samnet-container),
            calc(100% - 40px)
        );

    min-height: 92px;

    margin-inline: auto;

    align-items: center;
    justify-content: space-between;

    gap: 34px;
}


/* ==========================================================
   BRAND
========================================================== */

.brand {
    display: flex;

    align-items: center;

    gap: 15px;

    color: #ffffff;

    text-decoration: none;

    flex-shrink: 0;
}


/* ==========================================================
   LOGO
========================================================== */

.site-logo {
    display: block;

    width: 78px;
    height: auto;

    max-width: 78px;

    object-fit: contain;

    flex-shrink: 0;
}


/* ==========================================================
   BRAND TEXT
========================================================== */

.brand-text {
    display: flex;

    flex-direction: column;

    line-height: 1;
}


.brand-text strong {
    display: block;

    margin: 0;

    color: #ffffff;

    font-size: 2rem;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.035em;
}


.brand-text small {
    display: block;

    margin-top: 7px;

    color:
        rgba(
            255,
            255,
            255,
            0.65
        );

    font-size: 0.79rem;
    font-weight: 500;

    line-height: 1.15;

    white-space: nowrap;
}


/* ==========================================================
   MAIN NAVIGATION
========================================================== */

.main-navigation {
    display: flex;

    align-items: center;

    gap: 7px;
}


/* ==========================================================
   NAV BUTTONS
========================================================== */

.main-navigation > a,
.nav-dropdown__button {
    display: inline-flex;

    min-height: 46px;

    padding:
        0
        17px;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border-radius: 9px;

    color:
        rgba(
            255,
            255,
            255,
            0.80
        );

    background: transparent;

    font-size: 1rem;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 150ms ease,
        background 150ms ease;
}


.main-navigation > a:hover,
.nav-dropdown__button:hover {
    color: #ffffff;

    background:
        rgba(
            255,
            255,
            255,
            0.09
        );
}


/* ==========================================================
   ACTIVE NAV
========================================================== */

.main-navigation > a.active,
.nav-dropdown__button.active {
    color: #ffffff;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );
}


/* ==========================================================
   DROPDOWN WRAPPER
========================================================== */

.nav-dropdown {
    position: relative;

    display: flex;

    align-items: center;
}


/*
 * Invisible bridge prevents dropdown
 * from disappearing when mouse moves
 * from button to menu.
 */

.nav-dropdown::after {
    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;
    height: 15px;

    content: "";
}


/* ==========================================================
   DROPDOWN ARROW
========================================================== */

.nav-dropdown__arrow {
    display: inline-block;

    margin-left: 2px;

    font-size: 0.72rem;

    transition:
        transform
        160ms
        ease;
}


.nav-dropdown:hover
.nav-dropdown__arrow,
.nav-dropdown:focus-within
.nav-dropdown__arrow {
    transform:
        rotate(180deg);
}


/* ==========================================================
   DROPDOWN MENU
========================================================== */

.nav-dropdown__menu {
    position: absolute;

    top: calc(100% + 10px);
    left: 50%;

    z-index: 20000;

    width: 280px;

    padding: 9px;

    opacity: 0;

    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(-6px);

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.11
        );

    border-radius: 12px;

    background:
        rgba(
            7,
            26,
            38,
            0.985
        );

    box-shadow:
        0 20px 48px
        rgba(
            0,
            0,
            0,
            0.34
        );

    transition:
        opacity 150ms ease,
        visibility 150ms ease,
        transform 150ms ease;
}


/* ==========================================================
   OPEN DROPDOWN
========================================================== */

.nav-dropdown:hover
.nav-dropdown__menu,
.nav-dropdown:focus-within
.nav-dropdown__menu {
    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* ==========================================================
   DROPDOWN LINKS
========================================================== */

.nav-dropdown__menu a {
    display: block;

    width: 100%;

    padding:
        11px
        13px;

    border-radius: 8px;

    color: #ffffff;

    text-decoration: none;

    transition:
        background
        140ms
        ease;
}


.nav-dropdown__menu a:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.09
        );
}


.nav-dropdown__menu > a:first-child {
    font-size: 0.82rem;
    font-weight: 700;
}


.nav-dropdown__menu strong {
    display: block;

    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 800;

    line-height: 1.2;
}


.nav-dropdown__menu span {
    display: block;

    margin-top: 3px;

    color:
        rgba(
            255,
            255,
            255,
            0.58
        );

    font-size: 0.71rem;
    font-weight: 500;

    line-height: 1.25;
}


/* ==========================================================
   DROPDOWN DIVIDER
========================================================== */

.nav-dropdown__divider {
    height: 1px;

    margin:
        5px
        8px;

    background:
        rgba(
            255,
            255,
            255,
            0.11
        );
}


/* ==========================================================
   HIGHCHARTS FONT
========================================================== */

.highcharts-container,
.highcharts-container *,
.highcharts-root,
.highcharts-root *,
.highcharts-axis-labels text,
.highcharts-axis-title,
.highcharts-legend-item text,
.highcharts-tooltip text {
    font-family:
        "Source Sans 3",
        Arial,
        Helvetica,
        sans-serif !important;
}


/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
    width: 100%;

    padding:
        28px
        0;

    color:
        rgba(
            255,
            255,
            255,
            0.62
        );

    background:
        var(--samnet-navy);

    font-size: 0.76rem;
}


.footer-inner {
    display: flex;

    justify-content: space-between;

    gap: 25px;
}


.footer-inner p {
    margin: 0;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 960px) {

    .header-inner {
        min-height: 84px;

        gap: 20px;
    }


    .site-logo {
        width: 68px;

        max-width: 68px;
    }


    .brand-text strong {
        font-size: 1.75rem;
    }


    .brand-text small {
        font-size: 0.7rem;
    }


    .main-navigation {
        gap: 3px;
    }


    .main-navigation > a,
    .nav-dropdown__button {
        padding:
            0
            12px;

        font-size: 0.9rem;
    }

}


/* ==========================================================
   SMALL TABLET
========================================================== */

@media (max-width: 780px) {

    .header-inner {
        width:
            min(
                100% - 28px,
                var(--samnet-container)
            );

        min-height: 76px;

        gap: 14px;
    }


    .site-logo {
        width: 58px;

        max-width: 58px;
    }


    .brand-text strong {
        font-size: 1.45rem;
    }


    .brand-text small {
        display: none;
    }


    .main-navigation {
        gap: 0;
    }


    .main-navigation > a,
    .nav-dropdown__button {
        min-height: 40px;

        padding:
            0
            9px;

        font-size: 0.82rem;
    }


    .nav-dropdown__menu {
        left: auto;
        right: 0;

        transform:
            translateY(-6px);
    }


    .nav-dropdown:hover
    .nav-dropdown__menu,
    .nav-dropdown:focus-within
    .nav-dropdown__menu {
        transform:
            translateY(0);
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 620px) {

    .header-inner {
        display: block;

        padding:
            10px
            0
            8px;
    }


    .brand {
        justify-content: center;

        margin-bottom: 8px;
    }


    .site-logo {
        width: 55px;

        max-width: 55px;
    }


    .brand-text strong {
        font-size: 1.5rem;
    }


    .brand-text small {
        display: block;

        margin-top: 4px;

        font-size: 0.64rem;
    }


    .main-navigation {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 2px;
    }


    .main-navigation > a,
    .nav-dropdown__button {
        min-height: 37px;

        padding:
            0
            9px;

        font-size: 0.78rem;
    }


    .nav-dropdown__menu {
        left: 50%;
        right: auto;

        width:
            min(
                280px,
                calc(100vw - 28px)
            );

        transform:
            translateX(-50%)
            translateY(-6px);
    }


    .nav-dropdown:hover
    .nav-dropdown__menu,
    .nav-dropdown:focus-within
    .nav-dropdown__menu {
        transform:
            translateX(-50%)
            translateY(0);
    }


    .footer-inner {
        flex-direction: column;

        gap: 7px;

        text-align: center;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 400px) {

    .site-logo {
        width: 48px;

        max-width: 48px;
    }


    .brand-text strong {
        font-size: 1.35rem;
    }


    .brand-text small {
        font-size: 0.58rem;
    }


    .main-navigation > a,
    .nav-dropdown__button {
        padding:
            0
            7px;

        font-size: 0.73rem;
    }

}