/**
 * @author: Procurios
 * @about:  mmt-meeting-list.css
 *          Layout and structure settings of the meeting list snippet of mod_meeting2.
 */

/**
 * Generic settings, resets, defaults
 */

/** Reset lists */
.mmt-ml-meetings {
    max-width: 66em;
    margin: 0;
    padding: 0;
    list-style: none;
}

/**
 * Search form
 */

.mmt-meeting-list form {
    margin: 0 2%;
}

.mmt-meeting-list label {
    position: absolute;
    left: -999em;
    top: -999em;
}

.mmt-meeting-list div.fieldinput input {
    width: 100%;
}

/**
 * .mmt-meeting-list
 * Parent element; acts as container of all snippet related elements
 */

.mmt-ml-title:hover {
    color: #375fc3;
}

.mmt-ml-block {
    padding: 1.5em 25px 4em;
    background-position: 50% 50%;
    background-size: cover;
}

.mmt-ml-block--first {
    background-color: silver;
    min-height: 16em;
}

.mmt-ml-header {
    padding-bottom: 0;
    font-size: 1.1em;
}

@media screen and (min-width: 768px) {
    .mmt-ml-block {
        display: table-cell;
        vertical-align: top;
    }

    .mmt-ml-block--first {
        width: 33%;
    }

    .mmt-ml-block--last {
        padding-bottom: 0;
    }
}

@media screen and (min-width: 1024px) {
    .mmt-ml-block--first {
        display: table-cell;
        width: 39%;
    }

    .mmt-ml-block--descriptionInner {
        position: relative;
        left: -58px;
        margin-right: -58px;
        margin-bottom: -1px;
        padding: 20px 0px 20px 25px;
        background: #fff;
        overflow: auto;
    }
}

.mmt-ml-block p {
    margin-bottom: .8em;
}

.mmt-ml-block p:last-child {
    margin-bottom: 0;
}

.mmt-ml-registrations + .mmt-ml-more {
    margin-top: .5em;
}

.mmt-ml-registrations,
.mmt-ml-register {
    display: none;
}

/**
 * Detailed list
 * .mmt-meeting-list-detailed
 */

.mmt-meeting-list-detailed {
    margin: 4.5em 0 auto;
}

.contentWrapper--pageTitleVisible .mmt-meeting-list-detailed {
    margin-top: 2em;
}

.mmt-meeting-list-detailed .mmt-ml-meeting {
    display: table;
    width: 100%;
    border-bottom: 1px solid transparent;
}

@media screen and (max-width: 768px) {
    .mmt-meeting-list-detailed .mmt-ml-meeting {
        margin-bottom: 4em;
    }
}

.mmt-meeting-list-detailed .mmt-ml-description {
    padding-top: 1em;
}

.mmt-meeting-list-detailed .mmt-ml-block--noImage .mmt-ml-description {
    padding-top: 0;
}

.mmt-ml-block--descriptionInner {
    background: url(meetingBackground.svg) no-repeat 0 0;
}

.mmt-meeting-list-detailed .mmt-ml-title {
    font-size: 1.4em;
    line-height: 1.4;
    cursor: pointer;
}

.mmt-meeting-list-detailed .mmt-ml-date-location {
    font-size: .9em;
    color: #666;
}

/**
 * Detailed list simplified
 */

.mmt-meeting-list-detailed .mmt-ml-block--noImage:first-child {
    border-top: 1px solid #ddd;
}

.mmt-meeting-list-detailed .mmt-ml-block--noImage {
    border-bottom: 1px solid #ddd;
}

.mmt-meeting-list-detailed .mmt-ml-block--noImage.mmt-ml-block--first {
    display: none;
}

.mmt-meeting-list-detailed .mmt-ml-block--noImage .mmt-ml-block--descriptionInner {
    margin-right: 0;
    background: none;
}

@media screen and  (min-width: 768px) {
    .mmt-meeting-list-detailed .mmt-ml-block--noImage:first-child {
        margin-top: 3em;
        border-top: 0;
    }

    .mmt-meeting-list-detailed .mmt-ml-block--noImage.mmt-ml-block--description,
    .mmt-meeting-list-detailed .mmt-ml-block--noImage .mmt-ml-block--descriptionInner {
        padding-left: 0;
        position: relative;
        padding-bottom: 1.5em;
    }

    .mmt-meeting-list-detailed .mmt-ml-block--noImage .mmt-ml-block--descriptionInner {
        padding-left: 36.5%;
        position: static;
    }

    .mmt-meeting-list-detailed .mmt-ml-block--noImage .mmt-ml-date-location {
        position: absolute;
        left: 0;
        top: 1em;
        max-width: 33%;
        line-height: 1.5;
        font-size: 1.3em;
        font-weight: bold;
        color: #999;
    }

    .mmt-meeting-list-detailed .mmt-ml-block--noImage .mmt-ml-date {
        white-space: nowrap;
    }
}

@media screen and (min-width: 1024px) {
    .mmt-meeting-list-detailed .mmt-ml-block--noImage .mmt-ml-date-location {
        top: calc(20px + 1em);
    }
}

/**
 * Simple list
 * mmt-meeting-list-simple
 */

.mmt-meeting-list-simple a {
    position: relative;
    margin: 3em 0;
    text-decoration: none;
    color: inherit;
    padding-left: 5.5em;
    display: block;
}

.mmt-meeting-list-simple .mmt-ml-date,
.mmt-meeting-list-simple .mmt-ml-title {
    font-size: 1.2em;
    line-height: 1.2;
}

.mmt-meeting-list-simple .mmt-ml-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 4em;
    color: #999;
    overflow: hidden;
}

.mm-ml-content {
    display: inline-block;
    vertical-align: top;
}

.mmt-meeting-list-simple .mmt-ml-location {
    display: block;
    text-transform: uppercase;
    color: #666;
}

.mmt-meeting-list-simple .mmt-ml-description {
    display: none;
    color: #656565;
}

@media screen and (min-width: 1200px) {
    .mmt-meeting-list-simple .mmt-ml-date,
    .mmt-meeting-list-simple .mmt-ml-title {
        font-size: 1.6em;
    }

    .mmt-meeting-list-simple .mmt-ml-date {
        width: 3.1em;
    }

    .mmt-meeting-list-simple .mmt-ml-description {
        display: block;
    }
}