/* Responsive product header styles.

   @file        product-header.en.css
   @author      marionm
   ========================================================================== */

/* ==========================================================================
   product header
   ========================================================================== */

#_product-header {
    -webkit-transition: all 0.3s ease;
    background: #f0f0f0;
    border-bottom: 1px solid #d2d2d2;
    color: #000;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    height: 142px;
    line-height: 1.2;
    min-width: 320px;
    position: absolute;
    top: 100px;
    transition: all 0.3s ease;
    width: 100%;
    z-index: 999999;
}

#_product-header.fixed {
    -webkit-transition-duration: 0s;
    height: 42px;
    position: fixed;
    transition-duration: 0s;
}

html._header-thin-only #_product-header,
html:not(._header-thick) #_product-header { top: 42px; }

html._product-header-red #_product-header:not(.fixed) {
    -webkit-transition-duration: 0s;
    background: #c5261c;
    border-bottom: none;
    height: 60px;
    position: relative;
    top: 0;
    transition-duration: 0s;
}

#_product-grid {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
}

#_product-header.fixed #_product-grid {
    flex-direction: row;
    justify-content: space-between;
}

html._product-header-red #_product-header:not(.fixed) #_product-grid { max-width: auto; }

#_product-name { padding-right: 1rem; }

html._product-header-red #_product-header:not(.fixed) #_product-name { display: none; }

#_product-name h1 {
    display: inline-block;
    margin: 2rem 0 1.2rem;
    vertical-align: top;
}

#_product-header.fixed #_product-name h1,
html._product-header-red #_product-name h1,
#_product-mobile {
    display: inline-flex;
    height: 42px;
    line-height: 42px;
    margin: 0;
    vertical-align: top;
    align-items: center;
}

#_product-name h1 a {
    -webkit-transition: all 0.3s ease;
    color: #333;
    display: inline-block;
    font-size: 2.375rem;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0;
}

#_product-header.fixed #_product-name h1 a,
html._product-header-red #_product-name h1 a {
    display: inline-block;
    font-size: 1.3rem;
    line-height: 42px;
}

#_product-name h1 span { color: #dd1100; }

html._product-header-red #_product-header:not(.fixed) #_product-name h1 a,
html._product-header-red #_product-header:not(.fixed) #_product-name h1 span { color: #fff; }

#_product-mobile ul {
    left: 0;
    margin-top: 1px;
    padding-bottom: 75px;
    position: absolute;
    right: 0;
    top: auto;
    width: 100%;
    z-index: 999999;
}

#_product-header.fixed #_product-mobile ul,
html._product-header-red #_product-mobile ul { margin-top: 0; }

#_product-backdrop {
    background-color: rgba(0, 0, 0, .5);
    bottom: 0;
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    right: 0;
    top: 100px;
    width: 100%;
    z-index: 99999;
}

html._header-thin-only #_product-backdrop,
html:not(._header-thick) #_product-backdrop { top: 42px; }

html._product-header-red #_product-backdrop { top: auto; }

#_product-placeholder { height: 142px; }

#_product-header.fixed + #_product-backdrop + #_product-placeholder,
html._header-thin-only #_product-placeholder { height: 42px; }

html._product-header-red #_product-placeholder { height: 0; }

/* ==========================================================================
   product nav
   ========================================================================== */

#_product-nav {
    bottom: -1px;
    display: flex;
    position: absolute;
}

#_product-header.fixed #_product-nav {
    height: 42px;
    margin: 0;
    position: static;
}

html._product-header-red #_product-header:not(.fixed) #_product-nav {
    bottom: 0;
    margin: 0 auto;
    position: static;
    width: auto;
}

#_product-header.fixed #_product-nav > ul:first-child {
    overflow: hidden;
    text-align: right;
}

#_product-nav > ul:last-child {
    display: none;
    white-space: nowrap;
}

#_product-header.fixed #_product-nav > ul:last-child { display: block; }

#_product-nav li { display: inline-block; }

#_product-nav a,
#_product-more {
    color: #333;
    display: inline-block;
    font-size: 1rem;
    padding: .4rem 1.25rem;
    text-align: center;
}

#_product-header.fixed #_product-nav li:not(#_product-try-button) a, 
#_product-header.fixed #_product-more { color: #5e5e5e; }

html:not(._product-nav-1) #_product-nav li:nth-of-type(1) a { padding-left: 0; }

#_product-header.fixed #_product-nav li:not(#_product-try-button) a,
#_product-header.fixed #_product-more,
html._product-header-red #_product-header:not(.fixed) #_product-nav li:not(#_product-try-button) a,
html._product-header-red #_product-header:not(.fixed) #_product-more {
    line-height: 42px;
    padding: 0 .5rem;
}

#_product-more {
    cursor: pointer;
    position: relative;
}

#_product-nav a:hover,
#_product-more:hover { color: #f77700; }

html:not(._product-header-red)._product-nav-1 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(1) > a,
html:not(._product-header-red)._product-nav-2 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(2) > a,
html:not(._product-header-red)._product-nav-3 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(3) > a,
html:not(._product-header-red)._product-nav-4 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(4) > a,
html:not(._product-header-red)._product-nav-5 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(5) > a,
html:not(._product-header-red)._product-nav-6 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(6) > a,
html:not(._product-header-red)._product-nav-7 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(7) > a {
    background: #fff;
    border: 1px solid #d2d2d2;
    border-bottom: none;
    margin: -1px;
}

html:not(._product-header-red)._product-nav-1 #_product-header.fixed #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(1) > a,
html:not(._product-header-red)._product-nav-2 #_product-header.fixed #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(2) > a,
html:not(._product-header-red)._product-nav-3 #_product-header.fixed #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(3) > a,
html:not(._product-header-red)._product-nav-4 #_product-header.fixed #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(4) > a,
html:not(._product-header-red)._product-nav-5 #_product-header.fixed #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(5) > a,
html:not(._product-header-red)._product-nav-6 #_product-header.fixed #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(6) > a,
html:not(._product-header-red)._product-nav-7 #_product-header.fixed #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(7) > a {
    color: #000;
}

#_product-header.fixed #_product-nav li:not(#_product-try-button) a:hover,
#_product-header.fixed #_product-more:hover { color: #f77700; }

#_product-header.fixed #_product-try { display: none; }

#_product-mobile i,
#_product-more i {
    background: url(/mathematica/img/product-nav-icons.en.png) no-repeat;
    background-size: 20px 6px;
    background-position: 0 0;
    cursor: pointer;
    display: inline-block;
    font-size: 0;
    height: 6px;
    line-height: 42px;
    margin: 0 0 2px .4rem;
    min-width: 10px;
    overflow: hidden;
    vertical-align: middle;
    width: 10px;
}

html._product-header-red #_product-header:not(.fixed) #_product-mobile i,
html._product-header-red #_product-header:not(.fixed) #_product-more i { background-position: -10px 0; }

#_product-more ul {
    left: -1.5rem;
    position: absolute;
    top: 40px;
}

#_product-header.fixed #_product-more ul { top:41px; }

#_product-mobile ul,
#_product-more ul { display: none; }

#_product-more:hover ul,
#_product-mobile li,
#_product-more li { display: block; }

#_product-mobile a,
#_product-more a {
    background: #fff;
    color: #222;
    display: block;
    line-height: 1.3 !important;
    padding: .75rem 1.25rem !important;
}

#_product-mobile a { font-size: 1.1rem; }

#_product-mobile a:hover {
    background: #ececec;
    color: #222 !important;
}

#_product-more a {
    border: 1px solid #d2d2d2;
    border-bottom: none;
}

#_product-more a:hover {
    background: #ececec;
    color: #dd1100 !important;
}

#_product-more li:first-child a {
    border-radius: 0;
    /*border-top-left-radius: 0;
    border-top-right-radius: 0;*/
}

#_product-more li:last-child a {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom: 1px solid #d2d2d2;
}

#_product-header #_product-try-button { display: none; }

#_product-header.fixed #_product-try-button,
html._product-header-red #_product-header #_product-try-button { display: inline-block; }

#_product-try-button a {
    background: #dd1100;
    border-radius: .25rem;
    color: #fff;
    font-size: .98rem;
    line-height: 1.5;
    margin: .35rem 0 0 .5rem;
    padding: .21rem 1rem;
    white-space: nowrap;
}

#_product-try-button a:hover {
    background: #f77700;
    color: #fff;
}

/* red variation
   ========================================================================== */

html._product-header-red #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-try-button) > a,
html._product-header-red #_product-header:not(.fixed) #_product-more {
    color: #fff;
    font-size: 1.125rem;
    line-height: 60px;
    padding: 0 1.25rem;
}

html._product-header-red #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-try-button) > a:hover,
html._product-header-red #_product-header:not(.fixed) #_product-more:hover {
    background: rgba(255, 107, 50, .5);
    color: #fff;
}

html._product-header-red._product-nav-1 #_product-header:not(.fixed) #_product-nav > ul { text-align: center; }

html._product-header-red._product-nav-1 #_product-header:not(.fixed) #_product-nav > ul > li { text-align: left; }

html._product-header-red._product-nav-1 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(1) > a,
html._product-header-red._product-nav-2 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(2) > a,
html._product-header-red._product-nav-3 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(3) > a,
html._product-header-red._product-nav-4 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(4) > a,
html._product-header-red._product-nav-5 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(5) > a,
html._product-header-red._product-nav-6 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(6) > a,
html._product-header-red._product-nav-7 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(7) > a { background: #ff6b32; }

html._product-header-red #_product-mobile a,
html._product-header-red #_product-more a {
    background: #fff;
    color: #222;
    display: block;
    line-height: 1.3;
    padding: .75rem 1.25rem;
}

html._product-header-red #_product-header:not(.fixed) #_product-more ul {
    left: auto;
    right: 0;
}

html._product-header-red #_product-more a {
    border: 1px solid #d2d2d2;
    border-bottom: none;
}

html._product-header-red #_product-mobile a:hover,
html._product-header-red #_product-more a:hover {
    background: #ececec;
    color: #dd1100;
}

html._product-header-red #_product-more li:first-child a {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

html._product-header-red #_product-more li:last-child a {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom: 1px solid #d2d2d2;
}

html._product-header-red #_product-header:not(.fixed) #_product-try-button a {
    background: #f77700;
    font-weight: 600;
}

html._product-header-red #_product-header:not(.fixed) #_product-nav > ul > li#_product-try-button > a:hover {
    background: #fff;
    color: #dd1100;
}

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

/* styles for large screens (1200px)
   ========================================================================== */

@media all and (max-width: 1200px) {
    #_product-try-button a { margin: .45rem 0 0 .5rem; }
}

@media all and (min-width: 901px) {
    html:not(._product-header-red) #_product-header:not(.fixed) { height: 142px;  }
    html:not(._product-header-red) #_product-name h1 { margin: 2.1875rem 0; }
}

/* styles for medium screens (900px)
   ========================================================================== */

@media all and (max-width: 900px) {
    #_product-header { height: 42px; }

    html._product-header-red #_product-header:not(.fixed) { height: 42px; }

    html._product-header-red #_product-header:not(.fixed) #_product-grid { padding-left: 0; }


    #_product-grid {
        flex-direction: row;
        justify-content: space-between;
    }

    #_product-name h1 {
        margin: 0;
        white-space: nowrap;
    }

    #_product-name h1 a {
        font-size: 1.3rem;
        line-height: 42px;
    }

    #_product-header.fixed #_product-name h1 a {
        font-size: 1.3rem;
        letter-spacing: 0;
    }

    #_product-nav {
        align-self: flex-end;
        justify-content: flex-end;
        margin: 0;
        position: static;
    }

    #_product-nav > ul {
        height: 42px;
        text-align: right;
    }

    #_product-nav > ul:first-child { overflow: hidden; }

    #_product-nav > ul:last-child { display: block; }

    #_product-nav li:not(#_product-try-button) a,
    #_product-more {
        font-size: 1.1rem;
        line-height: 42px;
        padding: 0 .5rem;
        z-index: 99999;
    }

    #_product-more li a { text-align: left; }

    #_product-more-nav li a,
    #_product-more-nav li a:hover { color: #5e5e5e !important; }

    html._product-header-red._product-nav-1 #_product-header:not(.fixed) #_product-nav > ul { text-align: left; }

    html._product-header-red #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-try-button) > a,
    html._product-header-red #_product-header:not(.fixed) #_product-more {
        line-height: 42px;
        padding: 0 .75rem !important;
    }

    html:not(._product-header-red) #_product-header #_product-nav li:not(#_product-try-button) a { color: #5e5e5e; }
    html:not(._product-header-red) #_product-header #_product-nav li:not(#_product-try-button) a:hover { color: #f77700; }

    html:not(._product-header-red)._product-nav-1 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(1) > a,
    html:not(._product-header-red)._product-nav-2 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(2) > a,
    html:not(._product-header-red)._product-nav-3 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(3) > a,
    html:not(._product-header-red)._product-nav-4 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(4) > a,
    html:not(._product-header-red)._product-nav-5 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(5) > a,
    html:not(._product-header-red)._product-nav-6 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(6) > a,
    html:not(._product-header-red)._product-nav-7 #_product-header:not(.fixed) #_product-nav > ul > li:not(#_product-more):not(#_product-try-button):nth-child(7) > a {
        background: none;
        border: none;
        margin: 0;
        color: #000;
    }

    html._product-nav-1 #_product-header #_product-more-nav > li:nth-child(1) > a,
    html._product-nav-2 #_product-header #_product-more-nav > li:nth-child(2) > a,
    html._product-nav-3 #_product-header #_product-more-nav > li:nth-child(3) > a,
    html._product-nav-4 #_product-header #_product-more-nav > li:nth-child(4) > a,
    html._product-nav-5 #_product-header #_product-more-nav > li:nth-child(5) > a,
    html._product-nav-6 #_product-header #_product-more-nav > li:nth-child(6) > a,
    html._product-nav-7 #_product-header #_product-more-nav > li:nth-child(7) > a {
      background: #f4f4f4;
      color: #222 !important;
    }

    #_product-try-button { display: inline-block !important; }

    #_product-try-button a { margin: .6rem 0 0 .5rem; }

    html:not(._product-header-red) #_product-placeholder { height: 42px !important; }
    /*html:not(._product-header-red) #_product-placeholder { height: 120px !important; }*/
}

/* styles for small screens (600px)
   ========================================================================== */

@media all and (max-width: 600px) {
    html:not(._product-header-red) #_product-header { top: 42px !important; }

    #_product-name h1 a,
    #_product-header.fixed #_product-name h1 a,
    html._product-header-red #_product-name h1 a { font-size: 1.25rem; }

    html._product-header-red #_product-header:not(.fixed) #_product-grid { padding-left: 1rem; }

    html._product-header-red #_product-header:not(.fixed) #_product-name { display: inline-block; }

    html._product-header-red #_product-header:not(.fixed) #_product-nav { margin: 0; }

    html._product-nav-1 #_product-header #_product-mobile > ul > li:nth-child(1) > a,
    html._product-nav-2 #_product-header #_product-mobile > ul > li:nth-child(2) > a,
    html._product-nav-3 #_product-header #_product-mobile > ul > li:nth-child(3) > a,
    html._product-nav-4 #_product-header #_product-mobile > ul > li:nth-child(4) > a,
    html._product-nav-5 #_product-header #_product-mobile > ul > li:nth-child(5) > a,
    html._product-nav-6 #_product-header #_product-mobile > ul > li:nth-child(6) > a,
    html._product-nav-7 #_product-header #_product-mobile > ul > li:nth-child(7) > a {
      background: #f4f4f4;
      color: #222;
    }

    #_product-overview,
    #_product-areas,
    #_product-new,
    #_product-stories,
    #_product-resources,
    #_product-pricing,
    #_product-more,
    html._product-header-red #_product-header.fixed #_product-more { display: none !important; }

    #_product-try-button a { margin-left: 0; }
}

/* styles for minimum supported screen width (320px)
   ========================================================================== */

@media all and (max-width: 320px) {
}

/* printer styles
   ========================================================================== */

@media print {
    #_product-header { position: static !important; }
    #_product-placeholder { display: none !important; }
}