/* Layout - Header, Footer, Navigation */

.header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1;

    height: var(--header-height);
    width: 100%;

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

    background: var(--color-surface);
}

.header_container{
    height: 24px;
    width: 100%;
    max-width: var(--page-max-width);
    padding: 0 var(--page-gutter);
    
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.header_icon{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    cursor: pointer;
}

.lab_name{
    color: var(--color-text);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.header_nav{
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.header_nav_desktop{
    display: flex;
    flex-direction: row;
    gap: var(--page-gutter);
}

.nav_mobile_toggle {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header_nav_mobile {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 16px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    z-index: 1000;
}

.header_nav_mobile .nav_item {
    padding: 12px 24px;
    border-bottom: 1px solid var(--color-line);
}

.header_nav_mobile .nav_item:last-child {
    border-bottom: none;
}

.header_nav_mobile.active {
    display: flex;
}

.nav_item{
    display: flex;
    flex-direction: row;
    align-items: center;

    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

.main{
    margin-top: 0;
    z-index: -1;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer{
    bottom: 0;
    position: fixed;

    width: 100vw;
    height: var(--footer-height);

    background: var(--color-footer);

    color: white;
    font-size: var(--font-size-xs);
    font-weight: 400;

    display: flex;
    align-items: center;
    justify-content: center;
}
