/* =============================================================================
   PLACEHOLDER Media Queries for Responsive Design.
   These override the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

/*---------------------------------------------------------------------------------------
MEDIA QUERIES FOR SMALL/MEDIUM SIZE
--------------------------------------------------------------------------------------- */
@media only screen and (min-width:580px) {
    .js nav,
    .js nav ul,
    .js .section-nav,
    .js #search {
        display: block;
    }

    /*---------------------------------------------------------------------------------------
    SEARCH
    --------------------------------------------------------------------------------------- */
    .js #headerSearch {
        position: absolute;
        top: 1.5em;
        right: 5.5em;
    }

    .js form[role=search] {
        background: transparent;
        box-shadow: none;
        border: 0;
        clear: left;
        float: right;
        margin: 0;
        padding: 0;
        width: 26em;
    }

    .js form[role=search] {
        top: 0;
    }

    .js form[role=search] input {
        float: left;
    }

    .js form[role=search] input[type=search] {
        padding: .67em .6em;
    }

    .js form[role=search] input[type=submit] {
        padding: 3.5% 0;
        width: 28.2%;
    }

    /*---------------------------------------------------------------------------------------
    NAVIGATION
    --------------------------------------------------------------------------------------- */
    .skip-links {
        margin-top: -.5em;
        width: 31em;
    }

    .skip-links .menu a {
        background: #ffd900 url(/National_Library/oe_/http://www.aviva.com/library/images/icons/menu-bars.png) 90% center no-repeat;
        padding: .6em 4em .6em 1em;
        text-indent: 0px;
    }

    .skip-links .menu.open a {
        background: white url(/National_Library/oe_/http://www.aviva.com/library/images/icons/menu-close.png) 94% .3em no-repeat;
    }

    .svg .skip-links .menu.open a {
        background-image: url(/National_Library/oe_/http://www.aviva.com/library/images/icons/menu-close.svg);
        background-size: 2em;
    }

    .skip-links a:focus {
        left: 0;
        position: absolute;
    }

    .js nav,
    .js .section-nav,
    .js #country-select {
        display: none;
    }

    .skip-links a,
    .js .skip-links .search a,
    .js .skip-links .search.open a {
        left: -9999px;
        position: absolute;
    }

    .skip-links a,
    .js .skip-links .menu,
    .js .skip-links .menu.open a {
        position: absolute;
    }

    li.selected a {
        background-color: #fff599;
    }

    nav {
        margin: 0 1.4em;
    }

    /*HERO CAROUSEL*/
    .hero-carousel-viewport {
        margin-top: 11.2em;
    }

    .hero-carousel-viewport-1 {
        margin-top: 0;
    }

    /*SHARE PRICE*/
    #share_price.pod h4,
    #share_price.pod h3,
    #share_price.pod h2 {
        font-size: 2em;
        line-height: 1.2em;
    }

    .sharePrice span {
        padding: 0 .8em 0 1.4em;
        font-size: 2em;
        margin-bottom: 0;
    }

    #share_price .details {
        font-size: 1.4em;
    }

    /* SECTION NAV */
    .js .section-nav {
        margin-top: -3.2em;
    }

}

/*---------------------------------------------------------------------------------------
MEDIA QUERIES FOR MEDIUM SIZE
--------------------------------------------------------------------------------------- */
@media only screen and (min-width:752px) {
    header,
    .js header {
        background: #fff;
    }

    /*---------------------------------------------------------------------------------------
    PLACEHOLDER WIDTHS
    --------------------------------------------------------------------------------------- */
    #contentArea,
    #contentHeadHome,
    #supContentHome,
    #contentHome,
    #subContentHome {
        overflow: hidden;
    }

    /*---------------------------------------------------------------------------------------
    SEARCH
    --------------------------------------------------------------------------------------- */
    .js #headerSearch {
        position: relative;
        overflow: auto;
        top: -6.5em;
        right: 5.5em;
    }

    .js form[role=search] {
        background: transparent;
        box-shadow: none;
        border: 0;
        clear: left;
        float: right;
        margin: 0;
        padding: 0;
        width: 26em;
    }

    .js form[role=search] {
        top: 0;
    }

    .js form[role=search] input {
        float: left;
    }

    .js form[role=search] input[type=search] {
        padding: .67em .6em;
    }

    .js form[role=search] input[type=submit] {
        padding: 3.5% 0;
        width: 28.2%;
    }

    /*---------------------------------------------------------------------------------------
    LOGO
    --------------------------------------------------------------------------------------- */
    #logo {
        padding: 1.8em 3.125% 2em 0;
    }

    .logo {
        height: 4em;
        background-size: 12em, auto;
    }

    .logo a.homepageLink {
        height: 4em;
    }

    .logo .home {
        width: 16.5em;
    }

    #logo {
        padding: 2em 1.4em;
    }

    /*---------------------------------------------------------------------------------------
    NAVIGATION
    --------------------------------------------------------------------------------------- */
    .skip-links a,
    .js .skip-links .menu,
    .js .skip-links .menu.open a {
        right: inherit;
        position: absolute;
    }

    .skip-links {
        width: 0;
        margin-top: none;
    }

    .skip-links a,
    .js .skip-links .menu,
    .js .skip-links .menu.open a,
    .js .skip-links .search a,
    .js .skip-links .search.open a {
        left: -9999px;
        position: absolute;
    }

    .skip-links a:focus {
        left: 0;
        position: absolute;
    }

    .js nav,
    .js nav ul,
    .js .section-nav,
    .js #search {
        display: block;
    }

    .js nav,
    .js .section-nav {
        top: 0;
    }

    .js nav {
        top: -3em;
        margin-bottom: -3em;
    }

    /*---------------------------------------------------------------------------------------
    Main nav
    --------------------------------------------------------------------------------------- */
    #siteNav {
        display: none;
    }

    nav > ul,
    .section-nav > ul {
        background: transparent;
        border: 0;
        border-radius: 0 0 .63em .63em;
        box-shadow: none;
        margin: 0;
    }

    .t3 nav > ul,
    .t7 nav > ul,
    .t8 nav > ul {
        border-bottom: 0;
        border-radius: 0;
    }

    nav {
        clear: left;
    }

    nav ul {
        clear: left;
        border: 1px solid #d5d5d5;
        border-bottom: none;
        border-right: none;
        border-radius: 5px;
        margin: 0;
        overflow: hidden;
        padding: 0;
    }

    .js nav ul {
        margin-top: .2em;
    }

    nav li,
    .svg nav li {
        border: 0;
        display: block;
        float: left;
        margin: 0;
        padding: 0;
        text-align: center;
        width: 33.33333%;
    }

    nav li a {
        background: transparent;
        border: none;
        border-right: 1px solid #d5d5d5;
        border-bottom: 1px solid #d5d5d5;
        border-radius: 0;
        box-shadow: none;
        color: #004FB6;
        display: block;
        font-weight: bold;
        margin: 0;
        padding: .85em;
        text-decoration: none;
        width: auto;
        -webkit-transition: background .2s ease;
        -moz-transition: background .2s ease;
        -o-transition: background-color .2s ease;
        transition: background .2s ease;
    }

    nav li.selected a,
    nav li a:hover,
    nav li a:focus {
        border: none;
        border-right: 1px solid #d5d5d5;
        border-bottom: 1px solid #d5d5d5;
    }

    nav li a:hover,
    nav li a:focus,
    nav li.existing a:hover,
    nav li.existing a:focus {
        background: #fff599;
        text-decoration: none;
    }

    nav li.selected a {
        background: #fff599;
        color: #333;
        margin: 0;
        text-decoration: none;
    }

    .section-nav {
        float: left;
        width: 24.0625%;
        background: #fff;
        border: 1px solid #d5d5d5;
        border-radius: .63em;
        box-shadow: 0 0 1em 0 rgba(0, 0, 0, .05);
        margin: 0 1.4em;
        padding: 0;
    }

    .js .section-nav {
        margin-top: 0;
        padding-top: 0;
    }

    .js .section-nav:before {
        display: none;
    }

    .section-nav > p:last-child {
        border-bottom: 0;
        border-radius: 0;
    }

    .section-nav ul {
        border: 0;
        box-shadow: none;
    }

    .section-nav ul ul {
        font-weight: normal;
        margin: 0;
    }

    .section-nav ul li,
    .svg .section-nav ul li {
        border-top: 1px dashed #ccc;
        border-bottom: none;
        padding: 0;
        margin: 0;
    }

    .section-nav ul ul li,
    .svg .section-nav ul ul li {
        padding-left: 7.5%;
    }

    .section-nav ul li:first-child {
        border-top: 1px dashed #ccc;
    }

    .section-nav ul li a,
    .svg .section-nav ul li a {
        -webkit-transition: background .2s ease;
        -moz-transition: background .2s ease;
        -o-transition: background-color .2s ease;
        transition: background .2s ease;
    }

    .section-nav li.selected ul li.descendant a {
        padding: 1em;
    }

    .section-nav li.selected ul li.descendant a:before {
        display: none;
    }

    .section-nav ul ul li {
        width: 100%;
    }

    .section-nav li a.selected,
    .section-nav li a:hover,
    .section-nav li a:focus {
        background: #fff599;
        color: #333;
        text-decoration: none;
    }

    .section-nav li a.selected {
        font-size: 1.1em;
    }

    .section-nav li li {
        float: none;
        width: auto;
    }

    .section-nav li a,
    .section-nav li.selected ul li.descendant a,
    .section-nav ul ul li a {
        background-image: none;
    }

    .section-nav .root-link {
        border: none;
        border-radius: .63em .63em 0 0;
    }

    .section-nav ul li {
        width: 100%;
    }

    /*---------------------------------------------------------------------------------------
    POD WIDTHS
    --------------------------------------------------------------------------------------- */
    div.c100 {
        width: 100%
    }

    div.c75 {
        width: 100%
    }

    div.c66 {
        width: 100%
    }

    div.c50 {
        width: 50%
    }

    div.c33 {
        width: 50%
    }

    div.c25 {
        width: 50%
    }

    .real-c100 {
        width: 100%;
    }

    .real-c75 {
        width: 75%;
    }

    .real-c66 {
        width: 66%;
    }

    .real-c50 {
        width: 50%;
    }

    .real-c33 {
        width: 50%;
    }

    .real-c25 {
        width: 50%;
    }

    /* =============================================================================
         POD HEIGHTS
       ============================================================================= */
    div.podShort {
        min-height: 17em; /*12.407em*/
    }

    div.podShortPlus {
        min-height: 28em; /*14.444em*/
    }

    div.podMid {
        min-height: 35em; /*16.852em*/
    }

    div.podMidPlus {
        min-height: 43em; /*22.407em*/
    }

    div.podTall {
        min-height: 52em; /*27.963em*/
    }

    /*---------------------------------------------------------------------------------------
    POD CLEARING
    --------------------------------------------------------------------------------------- */
    .div-by-two {
        clear: both;
    }

    .div-by-four {
        clear: both;
    }

    /*---------------------------------------------------------------------------------------
    MAIN
    --------------------------------------------------------------------------------------- */
    .main {
        padding: 1.4em;
    }

    /* POD HEIGHTS FOR BACKGROUND CAROUSEL */
    .heroImage.podShort,
    #hero_carousel_viewport.podShort {
        min-height: 17em;
    }

    .heroImage.podShortPlus,
    #hero_carousel_viewport.podShortPlus {
        min-height: 23em;
    }

    .heroImage.podMid,
    #hero_carousel_viewport.podMid {
        min-height: 30em;
    }

    .heroImage.podMidPlus,
    #hero_carousel_viewport.podMidPlus {
        min-height: 38em;
    }

    .heroImage.podTall,
    #hero_carousel_viewport.podTall {
        min-height: 47em;
    }

    /* POD HEIGHTS FOR BACKGROUND CAROUSEL */
    div.podShort-carousel {
        height: 22em;
    }

    div.podShortPlus-carousel {
        height: 28em;
    }

    div.podMid-carousel {
        height: 35em;
    }

    div.podMidPlus-carousel {
        height: 43em;
    }

    div.podTall-carousel {
        height: 52em;
    }

    .heroImage .heading {
        margin: 1.4em;
    }

    .heroImage .heading h2,
    .heroImage .heading h3 {
        font: 2.7em/1.5 Frutiger, Arial, Helvetica, sans-serif;
        padding: 0.4em 0.7em;
        margin: 0em;
    }

    .heroImage .subheading h3,
    .heroImage .subheading p {
        font: 1.8em/1.5 Frutiger, Arial, Helvetica, sans-serif;
        padding: 0.6em;
        padding-left: 1.1em;
        padding-top: 0;
        margin: 0;
    }

    .hero-carousel-viewport {
        margin-top: 12em;
    }

    /*---------------------------------------------------------------------------------------
    ASIDE
    --------------------------------------------------------------------------------------- */
    aside {
        -webkit-align-items: stretch;
        -moz-align-items: stretch;
        align-items: stretch;
        display: -webkit-flex;
        display: -moz-flex;
        display: flex;
        -webkit-flex-flow: row wrap;
        -moz-flex-flow: row wrap;
        flex-flow: row wrap;
        margin: 0 0 0 -2%;
        display: -ms-flexbox;
        -ms-flex-wrap: wrap;
    }

    aside .pod {
        float: left;
        margin-left: 2%;
        overflow: auto;
        width: 48%;
    }

    /*---------------------------------------------------------------------------------------
    RESULTS STYLING
    --------------------------------------------------------------------------------------- */
    .resultsNewsContainer .borderSolidTop {
        border-top: 1px solid #92a8af;
        padding-top: 1.4em;
        clear: both;
    }

    .resultsNewsContainer .borderSolidTop .left-column {
        width: 28%;
        float: left;
        clear: left;
    }

    .resultsNewsContainer .borderSolidTop h2 {
        font-size: 1.8em;
    }

    .resultsNewsContainer .borderSolidTop ul,
    .resultsNewsContainer .borderSolidTop p {
        margin-left: 30%;
        padding-left: 1.4em;
    }

    .resultsNewsContainer .borderSolidTop .table-wrapper {
        margin-left: 30%;
        padding-left: 1.4em;
        width: auto;
    }

    .resultsNewsContainer .borderSolidTop p {
        text-align: justify;
    }

    .resultsNewsContainer .borderSolidTop ul.left-column,
    .resultsNewsContainer .borderSolidTop p.left-column {
        margin-left: 0;
        padding-left: 0;
    }

    .resultsNewsContainer .resultsContacts {
        border-top: 1px solid #92a8af;
        padding-top: .25em;
        overflow: auto;
    }

    .resultsNewsContainer .resultsContacts div {
        float: left;
        width: 50%;
    }

    /* ---------------------------------------------------------------------------------------
    TABBED LIST
    --------------------------------------------------------------------------------------- */
    ul.sitemap .c33 {
        width: 50%;
    }

    /*---------------------------------------------------------------------------------------
    FOOTER
    --------------------------------------------------------------------------------------- */
    footer {
        margin-top: 5em;
    }

    footer .site-info {
        -webkit-align-items: stretch;
        -moz-align-items: stretch;
        align-items: stretch;
        -webkit-flex-flow: row wrap;
        -moz-flex-flow: row wrap;
        flex-flow: row wrap;
        clear: both;
        padding: 1.4em .5em 1.4em 1.4em;
        display: -ms-flexbox;
        -ms-flex-wrap: wrap;
    }

    footer .linkList {
        float: left;
        margin-right: 1.5%;
        width: 48.5%;
    }

    footer .linkList:nth-of-type(2n+1) {
        clear: left;
    }

    /*---------------------------------------------------------------------------------------
    SHOWHIDE
            --------------------------------------------------------------------------------------- */
    .js .showHide > h2 {
        padding: 0 1em;
    }

    .js .showHide > div {
        padding: 1em 1.4em;
    }

    /*---------------------------------------------------------------------------------------
    FORMS
    --------------------------------------------------------------------------------------- */
    .xenForm label.c50 {
        min-width: 40%;
        max-width: 40%;
    }

    .xenForm  input[type=text],
    input.inputField,
    textarea {
        width: 50%;
    }

    .xenForm .inline ul li,
    .svg .xenForm .inline ul li {
        width: 22%;
    }

    .xenForm label {
        text-align: right;
    }

    .ui-datepicker {
        width: 25.5em;
    }

    /*---------------------------------------------------------------------------------------
    SHARES
    --------------------------------------------------------------------------------------- */
    .shareHeader,
    .js .shareHeader {
        padding-left: 1.4em;
        padding-right: 1.4em;
    }

}

/*** Tablist checkbox***/
@media only screen and (max-width:700px) {
    .wcategory {
        clear: both;
    }

    .wcategory ul li {
        width: 100%
    }

}
