﻿#breadcrumbs
{
    position: absolute;
    z-index: 4000;
    
    font-size: 1.5em;
    
    /*width: 10em;*/
    height: 2.2em;
    
    top: 0;
    left: 0;
}

    #breadcrumbs a {
        display: block;
        cursor: pointer;
        /*background-color: rgba(255, 0, 0, 0.6);*/
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
    }

#resource-filters {
    position: absolute;
    top: 0;
    right: -2em;
    margin: 0;
    z-index: 4100;
}

    #resource-filters label {
        margin-bottom: 0;
    }

    #resource-filters .resource-filter-label {
        position: absolute;
        background-color: white;
        border-left: solid 1px #ddd;
        border-bottom: solid 1px #ddd;
        padding: 0.25rem;
        padding-right: 2em;
        white-space: nowrap;
        right: -60rem;
        transition: right 1s ease-in-out;
    }

    #resource-filters .resource-filter-label button {
        margin-top: -3px;
    }

#resource-filters .resource-filter-divider {
    padding: 0 12px 0 8px;
}

#resource-filters .subscribe-icon {
    vertical-align: middle;
    padding-right: 2px;
}

#resource-filters .resource-filter-label.visible {
    right: 0;
}

    #resource-filters input[type=checkbox] {
        opacity: 0;
        width: 0;
        height: 0;
    }

    #resource-filters input[type=checkbox]:focus + span.slider-toggle {
        outline: solid 2px #101010;
    }

.slider-toggle {
    display: inline-block;
    width: 1.6rem;
    height: 0.8rem;
    position: relative;
    background-color: #ddd;
    border-radius: 1.6rem;
    z-index: 10;
    transform: translateY(2px);
}

    .slider-toggle::after {
        content: '';
        position: absolute;
        left: 0;
        height: 0.8rem;
        width: 0.8rem;
        background-color: #9C2C98;
        border-radius: 1.6rem;
        z-index: 20;
        transition: left .25s ease-in-out;
    }

    input[type=checkbox]:checked ~ .slider-toggle::after {
        left: auto;
        left: 0.8rem;
    }

div.layer,
div.childItem.tile {
    position: absolute;
    top: 2.2em;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    color: White;
    z-index: 0;
}

    div.layer.not-found {
        color: black;
    }

.show-item-alert div.layer {
    top: 14em;
}

#item-alert {
    display: none;
    padding: 2.6em 0 0 0;
}

    #item-alert div.alert {
        height: calc(13em - 2.4em);
        overflow-y: auto;
        margin-bottom: 0;
    }

@media (min-width: 1266px) {
    .show-item-alert div.layer {
        top: 13em;
    }

    #item-alert div.alert {
        height: calc(12em - 2.4em);
    }
}

@media (min-width: 1748px) {
    .show-item-alert div.layer {
        top: 12em;
    }

    #item-alert div.alert {
        height: calc(11em - 2.4em);
    }
}

.show-item-alert #item-alert {
    display: block;
}

div .layer h2 {
    position: relative;
}

/*div.layer h2 span.top-shadow
{
    position: absolute;
    height: 8px;
    top: 0px;
    left: 0px;
    right: 0px;
    margin-top: -8px;
    margin-left: -2px;
    background-image: url(../images/top-shadow.png);
    background-position: left top;
    background-repeat: repeat-x;
}*/

div.layer h2 span.label
{
    padding-right: 0.1em;
}

div.layer div.blue h2
{
    background-image: none;
}

    div.layer div.itemPanel {
        position: absolute;
        top: 3.2em;
        left: 0px;
        right: 0px;
        bottom: 0px;
        /*bottom: -15px;*/
    }

div.layer.root div.itemPanel
{
    top: 0;
}

    div.layer.root div.layer div.itemPanel {
        top: 2.8em;
    }

    div.layer.root div.layer div.esd-tabs {
        padding-top: 0.3em;
    }



div.childItem {
    position: static;
    padding: 0;
    margin: 0 10px 10px 0;
    background-color: #aaa;
    color: White;
    cursor: pointer;
    overflow: hidden;
}

div.layer h1, div.layer h2
{
    margin: 0;
    padding: 0.4em 15px 0.6em 15px;
    font-weight: normal;
    font-weight: 500;
    white-space: nowrap;
}

/*div.layer div.shadow
{
    /*background-color: rgba(255, 150, 0, 0.6);*******
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3.2em;
    background-image: url(../images/left-shadow-dark.png), url(../images/top-shadow-dark.png);
    background-repeat: repeat-y, repeat-x;
    background-position: right top, left bottom;
}*/

/*body.esd div.layer div.shadow
{
    background-image: url(../images/left-shadow.png), url(../images/top-shadow.png);
}*/

/*html.ie7 div.layer div.shadow,
html.ie8 div.layer div.shadow
{
    background-image: url(../images/left-shadow-dark.png);
    background-repeat: repeat-y;
    background-position: right top;
}*/

html.ie7 body.esd div.layer div.shadow,
html.ie8 body.esd div.layer div.shadow
{
    background-image: url(../images/left-shadow.png);
}

#home-button
{
    /*background-color: #9C2C98;*/
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    height: 3.3em;
    width: 100%;
    /* http://stackoverflow.com/questions/3680429/click-through-a-div-to-underlying-elements */
    pointer-events: none;
    display: none;
}

#home-button div
{
    width: 24px;
    height: 24px;
    margin-left: 15px;
    background-image: url('https://resources.esd.org.uk/images/common/home.purple.png');
    background-repeat: no-repeat;
    margin-top: calc((3em - 24px)/2);
}

div#permalinkPlaceholder {
    display: none;
}

html.ie8 div#permalinkPlaceholder,
html.ie9 div#permalinkPlaceholder
{
    display: block;
}

a#permalink
{
    color: White;
    text-decoration: none;
}

a#permalink:hover
{
    text-decoration: underline;
}

div.layer div.childItem h2
{
    position: relative;
    top: 0;
    margin-left: 0;
    white-space: normal;
    z-index: 1;
    /*background-color: blue !important;*/
}

@media (max-width: 1024px) {
    div.layer :not(.entries) > div.childItem h2 {
        font-size: 1rem;
    }

        div.layer :not(.entries) > div.childItem h2 img {
            height: 1rem;
        }

    div.layer :not(.entries) > div.childItem .itemDescription {
        font-size: .8rem;
    }
}



div.layer .entries div.childItem h2 {
    position: static;   
}

div.layer h1 a, div.layer h2 a, div.childItem h2 a
{
    text-decoration: none;
    color: White;
    width: 100%;
    display: inline-block;
}

div.layer h1 img, div.layer h2 img, div.childItem h2 img
{
    vertical-align: bottom;
    margin-bottom: 3px;
}

div.childItem.tile {
    display: flex;
    flex-flow: column;
}

    div.childItem.tile .content-main {
    }

    div.childItem.tile .content-optional {
        flex: 1;
        display: flex;
        flex-flow: column;
    }

        div.childItem.tile .content-optional .alternative-labels {
            flex: 1;
        }

        div.childItem .content-optional {
            margin: 10px 15px;
            margin-top: 0;
        }

    div .layer ul.alternative-labels, div.childItem.tile ul.alternative-labels {
        display: block;
        line-height: 1.5em;
        overflow: hidden;
        list-style: none;
        padding: 0;
    }

    div.layer p.itemDescription, div.childItem.tile p.itemDescription {
        /*position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 15px;
    display: block;*/

        line-height: 1.5em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        /*background-color: red;*/
    }

div.childItem.tile.group p.itemDescription, div.childItem.tile.list p.itemDescription {
    overflow: auto;
    text-overflow: clip;
    white-space: normal;
}

div.childItem p.itemDescription
{
    position: static;
    padding-top: 10px;
}

span.itemType
{
    /*display: inline-block;*/
    text-transform: lowercase;
    color: #fff;
    font-weight: normal;
    margin-right: .5rem
}

    span.itemType::before {
        content: " | ";
    }

span.itemType.hasTools
{
    display: inline-block;
    padding-right: 26px;
    background-image: url(../images/icons/tools.trans.16x16.png);
    background-repeat: no-repeat;
    background-position: right;
}

h2 span.itemType {
    font-size: 80%;
}

    h2 span.itemType::before {
        font-size: 80%;
        position: relative;
        bottom: 2px;
        padding-right: 2px;
    }




        @media only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
            div .layer h2, div.childItem.tile, div.layer div.itemPanel, #home-button {
                background-size: 73px 197px;
            }

                #home-button div {
                    background-image: url('../../images/common/home.purple@2x.png');
                    background-size: 24px 24px;
                }




            span.itemType.hasTools {
                background-image: url(../images/icons/tools.trans.32x32.png);
                background-size: 16px 16px;
            }
        }