/* NU Top-Level Mobile Web */

body {
    background: #f2f1f1;
    color: #040404;
    margin: 0;
    padding: 0;
    min-width: 100%;
}
#m-header {
    height: 4.9em;
    background: -webkit-gradient(linear, left top, left bottom, from(#3a104a), to(#8d4d90));
    background: -webkit-linear-gradient(top, #3a104a, #8d4d90);
    background: -moz-linear-gradient(top, #3a104a, #8d4d90);
    background: -ms-linear-gradient(top, #3a104a, #8d4d90);
    background: -o-linear-gradient(top, #3a104a, #8d4d90);
    background: linear-gradient(top, #3a104a, #8d4d90);
}
#m-nu {
    color: #fff;
    font: 2.1em Arial, Helvetica, sans-serif;
    width: 12em;
    padding: .8em 0 0 .3em;
    float: left;
}
#m-search-button {
    width: 2.1em;
    float: right;
    margin: 1em 0 0 0;
    padding: .5em 1em;
    border-left: 1px solid #a479ad;
}
#m-search {
    background: #8e4d90;
    height: 0;
    border-top: 1px solid #000;
    padding-top: 0;
    overflow: hidden;
}
#m-search form {
    display: -webkit-box;
    display: -moz-box;
    padding: 0 .5em 0 .5em;
}
#s1 {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
}
.s_open {
    height: 3.6em !important;
    padding-top: .4em !important;
    -webkit-transition: all 0.2s ease-in !important;
}
#m-search input[type="text"] {
    height: 2em; 
    border: 1px solid #d3d4d5;
    font-size: 1.2em;
    width: 95%;
    margin-right: 1em;
}
fieldset { border: none; padding: 0; width: 100%; }
 
/*** top navigation ***/
#m-menu {
    background: url("http://m.northwestern.edu/images/mobile/mobile_header.jpg") no-repeat scroll center top #141414;
    position: relative;
    display: none;
}
.m-topmenu {
    margin: auto;
    list-style: none; 
    border: none;
    bottom: 0;
    padding: 7em 0.5em 0;
    display: -webkit-box;
    display: -moz-box;
}
.m-topmenu li {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    margin: 0 0.13em 0 0; 
    padding: 0;
    text-align: center;
}
.m-topmenu li a {
    display: block;
    padding: .4em 1.5em;
    text-decoration: none;
    border: 0.06em solid #000;
    border-bottom: 0;
    font: bold 1.4em/1.8em arial,geneva,helvetica,sans-serif;
    color: #fff;
    background: -webkit-gradient(linear, left top, left bottom, from(#5f5f5f), to(#3e3e3e));
    background: -webkit-linear-gradient(top, #5f5f5f, #3e3e3e);
    background: -moz-linear-gradient(top, #5f5f5f, #3e3e3e);
    background: -ms-linear-gradient(top, #5f5f5f, #3e3e3e);
    background: -o-linear-gradient(top, #5f5f5f, #3e3e3e);
    background: linear-gradient(top, #5f5f5f, #3e3e3e);
    webkit-border-top-right-radius: 0.3em;
    -webkit-border-top-left-radius: 0.3em;
    -moz-border-radius-topright: 0.3em;
    -moz-border-radius-topleft: 0.3em;
    border-top-right-radius: 0.3em;
    border-top-left-radius: 0.3em;
    height: 25px;
}
.m-topmenu li#current a {
    background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f0efef));
    background: -webkit-linear-gradient(top, #f8f8f8, #f0efef);
    background: -moz-linear-gradient(top, #f8f8f8, #f0efef);
    background: -ms-linear-gradient(top, #f8f8f8, #f0efef);
    background: -o-linear-gradient(top, #f8f8f8, #f0efef);
    background: linear-gradient(top, #f8f8f8, #f0efef);
    color: #4f4f4f;
}
.m-topmenu li#current a[href='#h'] {
    background: #f2f1f1 url(http://m.northwestern.edu/images/mobile/home-active.png) center center no-repeat;
}
.m-topmenu li#current a[href='#h'] img {
    display: none;
}

/*** buttons ***/
button::-moz-focus-inner {
    border: 0; 
    -webkit-appearance: none;
}
button.grey {
    background-color: #eeeeee;
    background: -webkit-gradient(linear, left top, left bottom, from(#eeeeee), to(#cccccc));
    background: -webkit-linear-gradient(top, #eeeeee, #cccccc);
    background: -moz-linear-gradient(top, #eeeeee, #cccccc);
    background: -ms-linear-gradient(top, #eeeeee, #cccccc);
    background: -o-linear-gradient(top, #eeeeee, #cccccc);
    background: linear-gradient(top, #eeeeee, #cccccc);
    border: 1px solid #ccc;
    border-bottom: 1px solid #bbb;
    border-radius: .3em;
    -webkit-border-radius: .3em;
    -moz-border-radius: .3em;
    -ms-border-radius: .3em;
    -o-border-radius: .3em;
    color: #525c69;
    font-weight: bold;
    font-size: 1.3em;
    line-height: 1;
    text-align: center;
    text-shadow: 0 .1wm 0 #eee; 
    padding: .7em;
}
#m-search button.grey {
    margin-top: 0;
    padding: .5em;
    font-size: 1.2em;
}
button.grey:hover, #m-search button.grey:hover {
    background-color: #dddddd;
    background: -webkit-gradient(linear, left top, left bottom, from(#dddddd), to(#bbbbbb));
    background: -webkit-linear-gradient(top, #dddddd, #bbbbbb);
    background: -moz-linear-gradient(top, #dddddd, #bbbbbb);
    background: -ms-linear-gradient(top, #dddddd, #bbbbbb);
    background: -o-linear-gradient(top, #dddddd, #bbbbbb);
    background: linear-gradient(top, #dddddd, #bbbbbb);
    border: 1px solid #bbb;
    border-bottom: 1px solid #999;
    cursor: pointer;
    text-shadow: 0 1px 0 #ddd; 
}
button.grey:active {
    border: 1px solid #aaa;
    border-bottom: 1px solid #888;
    -webkit-box-shadow: inset 0 0 .4em .2em #aaaaaa, 0 .1em 0 0 #eeeeee;
    -moz-box-shadow: inset 0 0 .5em .2em #aaaaaa, 0 .1em 0 0 #eeeeee;
    -ms-box-shadow: inset 0 0 .5em .2em #aaaaaa, 0 .1em 0 0 #eeeeee;
    -o-box-shadow: inset 0 0 .5em .2em #aaaaaa, 0 .1em 0 0 #eeeeee;
    box-shadow: inset 0 0 .5em .2em #aaaaaa, 0 .1em 0 0 #eeeeee; 
}

/*** footer ***/
#m-footer {
    background: #141414;
    padding: 1em 0;
    width: 100%;
    display: -webkit-box;
    display: -moz-box;
}
#m-footer span  {
    display: block;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    margin: 0 .75em 0 .75em;
}
#m-footer span button {
    width: 100%;
}
/*** misc ***/
button::-moz-focus-inner {
  border: 0; 
}

/* clean gray
*******************************************************************************/
button.clean-gray {
    background-color: #eeeeee;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#eeeeee), to(#cccccc));
    /* Saf4+, Chrome */
    background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
    background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
    background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
    background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
    background-image: linear-gradient(top, #eeeeee, #cccccc);
    border: 1px solid #ccc;
    border-bottom: 1px solid #bbb;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    color: #525c69;
    font-weight: bold;
    font-size: 1.35em;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 0 #eee; 
    padding: .8em;
}
button.clean-gray:hover {
    background-color: #dddddd;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#dddddd), to(#bbbbbb));
    background-image: -webkit-linear-gradient(top, #dddddd, #bbbbbb);
    background-image: -moz-linear-gradient(top, #dddddd, #bbbbbb);
    background-image: -ms-linear-gradient(top, #dddddd, #bbbbbb);
    background-image: -o-linear-gradient(top, #dddddd, #bbbbbb);
    background-image: linear-gradient(top, #dddddd, #bbbbbb);
    border: 1px solid #bbb;
    border-bottom: 1px solid #999;
    cursor: pointer;
    text-shadow: 0 1px 0 #ddd; 
}
button.clean-gray:active {
    border: 1px solid #aaa;
    border-bottom: 1px solid #888;
    -webkit-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
    -moz-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
    -ms-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
    -o-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
    box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee; 
}

/* Newscenter specific */
.mobile {
    display: block;
    width: 100%;
    margin-bottom: 1em;
}
#page-wrap {
    background: none;
    width: 100%;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    margin: 0 auto;
    padding: 0;     
}
#page-content {
    padding: 0;
    width: 95%;
    margin: 0 auto;
}
#left-nav-wrap, #header-wrap, #footer-wrap, #text-size, .group, #page-content h1 {
    display: none;
}
#content img {
    float: none;
    max-width: 90%;
    height: auto;
}
#interact {
    border: none;
    margin: 1em 0 2em 0;
}
#interact-right, #interact-left {
    float: none;
    display: block;
    text-align: left;
    padding-top: .5em;
    width: 100%;
}
#interact ul li {
    margin-right: 1em;
    padding-right: .3em;
}
#story-top {
    margin-bottom: 1em;
}
#content {
    float: none;
    font-size: 1.2em; 
    width: 100%;
    margin-right: 0;
}
h2 {
    margin-top: .5em;
}
h2+#interact {
    margin-top: -1em;
}
#content h1 {
    line-height: 1.1em;
}
button {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}
button:hover {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;   
}

/* updates */
#navigation-wrap, #tools {
    display: none;
}
#m-header, #m-search {
    background: #401F68;
}
#m-nu {
    background: rgba(0, 0, 0, 0) url("http://common.northwestern.edu/v8/css/images/northwestern.svg") no-repeat scroll 0 center;
    display: block;
    height: 34px;
    font-size: 2px;
    color:  #401F68;
    width: 180px;
    margin-left: .5rem;
    margin-top: .2rem;
}