/* Global site styles

   developer:   rmiske, marionm
   requires:    /common/framework/css/framework.css
   ========================================================================== */

/* ==========================================================================
   framework overrides
   ========================================================================== */
html { border: none; }

#_noscript div { top: 3rem; }



/* ==========================================================================
   site setup
   ========================================================================== */
:root {
    /*blues*/
    --wphys-blue-base: #1f4d80;
    --wphys-blue-dark-universe: #1a132a;
    --wphys-blue-darker: #10345c;
    --wphys-blue-medium: #1e65b4;
    --wphys-blue-lighter: #4297f6;
    --wphys-blue-lighter-alt: #1f5999;
    --wphys-blue-very-light: #9fcdff;
    --wphys-blue-very-very-light: #d2e7ff;
    /*purples*/
    --wphys-purple-base: #b50579;
    --wphys-purple-hover: #d4008b;
    --wphys-purple-qa-border: #bf7ba8;
    --wphys-purple-qa-bg: #fdfbfd;
    /*greys*/
    --wphys-grey-dark: #404040;
    --wphys-grey-light: #b3b3b3;
    --wphys-grey-lightest: #e6e6e6;
    --wphys-grey-medium: #808080;
    --wphys-grey-border-base: #d9d9d9;
}

html {
    color: #535353;
    font-family: 'Fira Sans', Arial, sans-serif;
}

body { 
    font-variant-ligatures: no-common-ligatures;
    min-height: 100vh;
    position: relative; 
}

body:not(.dark) main { padding: 2rem 0 4rem; }

body:not(.dark) section,
body:not(.dark) main header,
body:not(.dark) main footer,
#footer {
    padding-left: 2.875rem;
    padding-right: 2.875rem;
}

.inner {
    margin: 0 auto;
    max-width: 54rem;
    padding: 0;
}

body:not(.dark) main h1 {
    color: #1f4d80;
    font-size: 2.75rem;
    font-weight: 300;
    padding-bottom: 1.5rem;
}

body:not(.dark) main h2 {
    color: #1f4d80;
    font-size: 1.5rem;
    padding: 0.75rem 0 1.5rem 0;
}

body:not(.dark) main a { color: #1f4d80; }
body:not(.dark) main a:hover { color: #b5156e; }

.wash {
    background: linear-gradient(to bottom, #f6f6f6 0%, #fff 2rem);
    padding-top: 2rem;
}



/* ==========================================================================
   header
   ========================================================================== */
#header {
    background: linear-gradient(270deg, #053367 10%, #2b105c 100%);
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);
}

#topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}


/*logo*/
#topnav > a {
    display: flex;
    flex-shrink: 0;
    width: 240px; /*15rem;*/
}
#topnav a h1 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px; /*0.75rem;*/
    font-weight: 500;
    letter-spacing: 1.5pt;
    line-height: 48px; /*3rem;*/
    padding: 0 16px; /*0 1rem;*/
    text-transform: uppercase;
    transition: color 0.15s ease-in-out;
}


/*main*/
#topnav ul#menu-list {
    align-items: center;
    display: flex;
    filter: blur(0rem);
    max-width: calc(100% - 480px);
    transition: opacity 0.15s ease, filter 0.15s ease;
}
#topnav ul#menu-list.nav-hide {
    display: none;
    filter: blur(1rem);
}
#topnav li {
    font-size: 10.4px; /*0.65rem;*/
    letter-spacing: 1pt;
    line-height: 48px; /*3rem;*/
    padding: 0 8px; /*0 0.5rem;*/
    text-transform: uppercase;
}
#topnav li a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    transition: color 0.15s ease-in-out;
}


/*hamburger*/
.nav-toggler {
    background: linear-gradient(270deg, #053367 30%, rgba(5, 51, 103, 0) 100%);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    position: relative;
    width: 240px; /*15rem;*/
    z-index: 115;
}
#topnav button.nav-open { 
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    height: 48px; /*3rem;*/
    justify-content: flex-end;
    width: 128px; /*8rem;*/
}
#topnav .nav-hide + .nav-toggler { opacity: 1; }
#topnav .nav-hide + .nav-toggler button.nav-open { display: flex; }

#topnav button.nav-open .menu-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10.4px; /*0.65rem;*/
    font-weight: 500;
    letter-spacing: 1pt;
    margin-right: 0.75rem;
    text-transform: uppercase;
    transition: color 0.15s ease-in-out;
}
#topnav button.nav-open:hover .menu-label { color: rgba(255, 255, 255, 0.9); }

#topnav button.nav-open .menu-icon {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 16px; /*1rem*/;
    margin-top: -2px; /*-0.125rem;*/
    padding-right: 8px;
    width: 16px; /*1rem*/;
}
#topnav button.nav-open .menu-icon div {
    background-color: #ffffff;
    height: 1px;
    opacity: 0.7;
    position: relative;
    transition: opacity 0.15s ease-in-out;
    width: 12px;
}
#topnav button.nav-open:hover .menu-icon div { opacity: 0.9; }

#topnav button.nav-open .menu-icon div:nth-child(2) { margin: 3px 0; }
#topnav button.nav-open .menu-icon div:nth-child(2):before {
    background-color: #ffffff;
    content: '';
    position: absolute;
    height: 1px;
    margin-left: -6px;
    opacity: 0;
    top: 0;
    transform: rotate(90deg);
    width: 12px;
}

#topnav button.nav-open .menu-icon.icon-open div { opacity: 0; }
#topnav button.nav-open .menu-icon.icon-open div:nth-child(2) {
    margin: 3px 0;
    opacity: 0.9;
    transform: rotate(45deg);
}
#topnav button.nav-open .menu-icon.icon-open div:nth-child(2):before { opacity: 1; }


/*drawer*/
#topnav ul.nav-drawer {
    background: linear-gradient(270deg, #0a3462 0%, rgba(30, 0, 83, 0.8) 100%);
    /*-webkit-backdrop-filter: blur(0.25rem);*/
    backdrop-filter: blur(0.25rem);
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);
    display: flex;
    filter: blur(1rem);
    flex-direction: column;
    height: 100vh;
    opacity: 0;
    padding-top: 48px; /*3rem;*/
    position: fixed;
    right: -256px; /*-16rem*/
    top: 0;
    transition: opacity 0.1s ease, filter 0.2s ease, right 0.2s ease, left 0.2s ease;
    visibility: hidden;
    width: 256px; /*16rem*/
    z-index: 100;
}
#topnav ul.nav-drawer.drawer-open {
    filter: blur(0rem);
    opacity: 1;
    right: 0;
    visibility: visible;
    transition: opacity 0.1s ease, filter 0.2s ease, right 0.2s ease;
}
#topnav ul.nav-drawer li {
    flex-shrink: 0;
    display: flex;
    line-height: 32px; /*2rem*/
    width: 100%;
}


/*hover/active*/
#topnav a:hover { color: rgba(255, 255, 255, 0.9); }
#topnav a:hover h1 { color: #fff; }

#announcement #announcement-menu, #announcement #announcement-drawer, 
#introduction #introduction-menu, #introduction #introduction-drawer, 
#materials #materials-menu, #materials #materials-drawer, 
#q-and-a #q-and-a-menu, #q-and-a #q-and-a-drawer, 
#livestreams #livestreams-menu, #livestreams #livestreams-drawer, 
#registry #registry-menu, #registry #registry-drawer, 
#tools #tools-menu, #tools #tools-drawer, 
#helping #helping-menu, #helping #helping-drawer, 
#gallery #gallery-menu, #gallery #gallery-drawer, 
#archives #archives-menu, #archives #archives-drawer {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}




/* ==========================================================================
   footer
   ========================================================================== */
#footer {
    bottom: 0;
    left: 0;
    padding-bottom: 1rem;
    padding-top: 1rem;
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 2;
}

#footer a { color: #404040; }
#footer a:hover { color: #b50579; }

body.dark #footer a { color: rgba(255, 255, 255, 0.6); }
body.dark #footer a:hover { color: #fff; }

#footer ul {
    display: flex;
    float: left;
    font-size: 11px; /*0.6875rem;*/
}
#footer ul.footer-community {
    padding-right: 8px; /*0.5rem;*/
    width: 65%;
}
#footer ul.footer-contact {
    justify-content: flex-end;
    padding-left: 8px; /*0.5rem;*/
    width: 35%;
}

#footer li { padding-right: 16px; /*1rem;*/; }
#footer li:last-child { padding-right: 0; }



/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for large screens (1200px)
   ========================================================================== */
@media all and (max-width: 1200px) {
    /*header:hamburger*/
    .nav-toggler { opacity: 1; }
    #topnav button.nav-open { display: flex; }

    /*footer*/
    #footer ul { font-size: 11px; }
}


/* styles for medium screens (900px)
   ========================================================================== */
@media all and (max-width: 900px) {
    /*site setup*/
    body:not(.dark):not(#introduction) main { padding-bottom: 6rem; }

    body:not(.dark) section,
    body:not(.dark) main header,
    body:not(.dark) main footer,
    #footer {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }
}


/* styles for small screens (600px)
   ========================================================================== */
@media all and (max-width: 600px) {
    /*site setup*/
    body:not(.dark):not(#introduction) main { padding-bottom: 9rem; }

    body:not(.dark) section,
    body:not(.dark) main header,
    body:not(.dark) main footer,
    #footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /*header*/
    #topnav { flex-direction: row-reverse; } 
    #topnav ul#menu-list { display: none; }
    .nav-toggler {
        background: transparent;
        width: 8rem;
        justify-content: flex-start;
    }
    #topnav button.nav-open {
        width: 100%;
        justify-content: flex-start;
        padding-left: 1rem;
    }
    #topnav button.nav-open .menu-icon div { opacity: 0.9; }
    #topnav button.nav-open .menu-label { color: rgba(255, 255, 255, 0.9); }

    #topnav .nav-drawer {
        right: 0;
        left: -16rem; 
    } 
    #topnav .nav-drawer.drawer-open {
        right: auto;
        left: 0; 
    } 

    /*footer*/
    #footer ul {
        float: none;
        padding: 0rem !important;
        width: 100% !important;
    }
    #footer ul.footer-community { flex-direction: column; }
    #footer ul.footer-contact { justify-content: flex-start; }
    #footer li { padding-top: 1rem; }
}


/* styles for minimum supported screen width (320px)
   ========================================================================== */
@media all and (max-width: 320px) {}


/* printer styles
   ========================================================================== */
@media print {}