/**
 * @author: Procurios
 * @about:  mmt-meeting-detail-page.css
 *          Layout and structure of the meeting detail page
 */

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

/** Reset lists */
.mmt-mdp-nav ul,
.mmt-mdp-section-attendees ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/** Contain floats / clearfix */
.mmt-clearfix:before,
.mmt-clearfix:after {
    content: "\0020";
    display: block;
    height: 0;
    visibility: hidden;
}

.mmt-clearfix:after {
    clear: both;
}

.mmt-clearfix {
    zoom: 1;
}

/**
 *  mod_meeting2 layout
 */

.mmt-meeting-detail-page {
    margin: 3em auto 0;
}

@media screen and (min-width:1400px) {
    .body--hasSidebarBefore .mmt-meeting-detail-page {
        margin-left: calc(35% - 360px);
    }
}

/** Columns */
@media screen and (min-width: 768px) {
    .mmt-mdp-content {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .mmt-mdp-main {
        float: left;
        width: 60%;/** Float and width for older IE browsers */
        padding-right: 5%;

        -webkit-box-flex: 1 1 65%;
        -webkit-flex: 1 1 65%;
        -ms-flex: 1 1 65%;
        flex: 1 1 65%;
    }

    .mmt-mdp-register .mmt-mdp-main {
        padding-right: 0;
    }

    .mmt-mdp-sidebar {
        float: right;
        width: 31%;/** Float and width for older IE browsers */

        -webkit-box-flex: 0 1 31%;
        -webkit-flex: 0 1 31%;
        -ms-flex: 0 1 31%;
        flex: 0 1 31%;
    }
}

@media screen and (min-width: 980px) {
    .mmt-mdp-main {
        -webkit-box-flex: 1 1 58%;
        -webkit-flex: 1 1 58%;
        -ms-flex: 1 1 58%;
        flex: 1 1 58%;
    }

    .mmt-mdp-sidebar {
        -webkit-box-flex: 0 1 38%;
        -webkit-flex: 0 1 38%;
        -ms-flex: 0 1 38%;
        flex: 0 1 38%;
    }
}

.mmt-mdp-inner {
    padding-top: 20px;
}

/** Tables */
.mmt-meeting-detail-page table {
    width: 100%;
    border-collapse: collapse;
}

.mmt-meeting-detail-page caption {
    padding: 2px 0;
    background-color: #eee;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.mmt-meeting-detail-page th,
.mmt-meeting-detail-page td {
    text-align: left;
    padding: .5em 0;
}

.mmt-meeting-detail-page td {
    padding: 1em 0;
    vertical-align: top;
    border-bottom: 1px solid #dddddd;
}

.mmt-meeting-detail-page tr.mmt-mdp-last td {
    border-bottom: 0;
}

/**
 * Galleries
 */

.mmt-meeting-detail-page .pb-gallery {
    max-width: 100%;
}

/** Reset "last" elements */
.mmt-mdp-last {
    margin: 0;
    padding: 0;
    border: 0;
}

/**
 * .mmt-mdp-back
 * Contains back button (if present)
 */

.mmt-mdp-back a {
    text-decoration: none;
}

.mmt-mdp-back a:before {
    margin-right: .3em;
    font-family: 'icons';
    content: '\2190'
}

/**
 * .mmt-mdp-header
 * Header of the page. Contains a summary of the meeting and it's cover image
 */

.mmt-mdp-header {
    overflow: hidden;
    width: 100%;
}

.mmt-mdp-has-cover .mmt-mdp-header {
    background-color: #b8dff5;
}

.mmt-mdp-labels {
    display: none !important;
}

@media screen and (min-width: 650px) {
    .mmt-mdp-header {
        display: table;
    }

    .meetingCoverPhoto,
    .mmt-mdp-has-cover .mmt-mdp-summary {
        display: table-cell;
        vertical-align: middle;
    }

    .mmt-mdp-has-cover .mmt-mdp-summary {
        width: 51.5%;
    }

    .mmt-mdp-has-cover .mmt-mdp-summary h2,
    .mmt-mdp-has-cover .mmt-mdp-meta-data {
        left: -120px;
        position: relative;
        background: inherit;
        padding: 20px 0px 20px 25px;
        margin-right: -120px;
    }
}

.meetingCoverPhoto {
    background-size: cover;
    background-position: 50% 50%;
    min-height: 10em;
}

/** Meetings meta data */
.mmt-mdp-summary h2,
.mmt-mdp-summary p {
    margin: 0;
}

div.mmt-mdp-summary p.mmt-mdp-meta-data {
    font-size: 1em;
    padding-top: 0;
}

.mmt-mdp-summary h2 {
    font-size: 1.7em;
    font-weight: 400;
    font-family: "battling";
}

.mmt-mdp-meta-data span {
    display: block;
    margin: 0 30px 0 0;
    line-height: 24px;
    opacity: .6;
}

.mmt-mdp-meta-data span:before {
    margin-right: .3em;
    font-family: 'icons';
}

.mmt-mdp-meta-data .mmt-mdp-date:before {
    content: '\1f4c6';
}

.mmt-mdp-meta-data .mmt-mdp-location:before {
    content: '\1f4cc';
}

.mmt-mdp-meta-data .mmt-mdp-labels:before {
    content: '\1f3f7';
}

/** Cover photo enabled */
.mmt-mdp-has-cover .mmt-mdp-summary {
    margin: auto 0 0 auto;
    padding: 3em;
    background: #fbfaf9;
    border: 1px solid #e4e2dc;
}

.mmt-mdp-has-cover .mmt-mdp-summary a {
    color: #4ab3ff;
}

.mmt-mdp-has-cover .mmt-mdp-meta-data span {
    opacity: .9;
    filter: alpha(opacity=90);
}

/**
 * .mmt-mdp-nav
 * Detail page navigation
 */

.mmt-mdp-nav {
    margin-top: 10px;
    background-color: #eee;
    border-top: 1px solid #ddd;
    border-bottom: 2px solid #ddd;
}

.mmt-mdp-has-cover .mmt-mdp-nav {
    margin-top: 0;
    border-top: 0;
    background-color: transparent;
}

.mmt-mdp-nav ul {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.mmt-mdp-nav li {
    float: left; /** Fallback for older browsers */
}

.mmt-mdp-nav a {
    display: block;
    padding: .8em 1em;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media screen and (max-width: 767px) {
    .mmt-mdp-nav a {
        font-size: 12px;
        text-align: center;
    }
}

.mmt-mdp-nav a {
    position: relative;
    margin-bottom: -2px;
}

.mmt-mdp-nav a:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 2px;
    width: 0;
    background: transparent;
    transition: width .5s ease, background-color .5s ease, left .5s ease;
}

.mmt-mdp-active a:after,
.mmt-mdp-nav a:hover:after {
    left: 0;
    width: 100%;
    background: #e7b128;
}

.mmt-mdp-active a {
    font-weight: bold;
    color: #e7b128;
}

/** nav icons */
.mmt-mdp-nav a:before {
    font-family: 'icons';
}

.mmt-mdp--about a:before {
    content: '\2139';
}

.mmt-mdp--location a:before {
    content: '\1f4cc';
}

.mmt-mdp--schedule a:before {
    content: '\1f4c6';
}

.mmt-mdp--speakers a:before {
    content: '\e803';
}

.mmt-mdp--register a:before {
    content: '\2795';
}

.mmt-mdp--attendees a:before {
    content: '\1f46b';
}

.mmt-mdp--materials a:before {
    content: '\1f4c4';
}

@media screen and (max-width: 767px) {
    .mmt-mdp-nav a:before {
        display: block;
        font-size: 1.4em;
    }
}

@media screen and (min-width: 768px) {
    .mmt-mdp-nav a:before {
        padding-right: .5em;
    }
}

/**
 * .mmt-mdp-sidebar
 * Layout of content inside sidebar (same sidebar on every page, hence in generic file)
 */

.mmt-mdp-sidebar .mmt-mdp-section {
    margin-bottom: 1.6em;
    background-color: #fbfaf9;
    padding: 1em 1.5em;
    box-shadow: 0 1px 2px #ddd;
}

/** Ticket prices */
.mmt-mdp-ticket-price {
    width: 100px;
}

/** Subscribe button */
.mmt-mdp-cta {
    display: block;
    text-align: center;
}

.mmt-mdp-cta:after {
    content: ">";
    position: absolute;
    background: #e7b128;
    color: #e7b128;
    width: 30px;
    height: 30px;
    display: inline-block;
    right: -100px;
    top: -15px;
    transform: rotate(45deg) translateX(-15px);
    transition: right .2s ease-out;
    transform-origin: bottom;
}

.mmt-mdp-cta:hover:after {
    right: -15px;
}

/** Block: List of tickets */
.mmt-mdp-sidebar .mmt-mdp-section-tickets th {
    font-weight: bold;
}

.mmt-mdp-sidebar .mmt-has-help {
    margin-bottom: 1em;
}

.mmt-mdp-sidebar .mmt-mdp-section-tickets p:last-child {
    margin: 0;
}

/** Block: Register */
.mmt-mdp-registration-status {
    padding-top: 1em;
    border-top: 1px dotted #ccc;
}

.mmt-mdp-registration-status-message {
    margin-bottom: 10px;
    font-size: 1.2em;
    line-height: 1.4em;
}

.mmt-mdp-registration-status-cta {
    margin: 0;
}

/** Block: List of attendees */
.mmt-mdp-section-attendees-list li {
    padding: 5px 0;
    border-top: 1px solid #ccc;
}

.mmt-mdp-section-attendees-list .mmt-mdp-first {
    padding-top: 0;
    border-top: 0;
}

.mmt-mdp-section-attendees-list span,
.mmt-mdp-section-attendees-list a {
    display: block;
}

.mmt-mdp-attendee-fn {
    font-size: 1.1em;
    font-weight: bold;
}

.mmt-mdp-section-attendees-list p {
    margin-bottom: 0;
    text-align: right;
}