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

.mmt-meeting-detail-page {
    position: relative;
}

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

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

.mod-meeting2 main > h1 { /** Hide page title on meeting detail pages */
    position: absolute;
    left: -999em;
}

/**
 * Layout
 */
.mmt-mdp-content {
    margin-bottom: 50px;
}

@media screen and (min-width: 900px) {
    /** Columns */
    .mmt-mdp-main,
    .mmt-mdp-sidebar {
        display: inline-block;
        box-sizing: border-box;
        vertical-align: top;
    }

    .mmt-mdp-main {
        width: calc(66.6667% - 25px);
        margin-right: 50px;
    }

    .mmt-mdp-sidebar {
        width: calc(33.3334% - 25px);
    }
}

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

.mmt-meeting-detail-page a {
    text-decoration: none;
}

.mmt-meeting-detail-page caption {
    padding: 2px 0;
    text-align: left;
}

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

.mmt-meeting-detail-page th {
    font-size: .8em;
}

.mmt-meeting-detail-page thead th {
    padding: .6em 1.4em;
    background: #eef3f9;
}

.mmt-meeting-detail-page td {
    vertical-align: top;
    line-height: 1.2;
    word-break: break-word;
}

.mmt-meeting-detail-page .mmt-mdp-schedule-time,
.mmt-meeting-detail-page .mmt-mdp-ticket-pricing {
    word-break: normal;
}

@media screen and (min-width: 400px) {
    .mmt-meeting-detail-page .mmt-mdp-schedule-time {
        white-space: nowrap;
    }
}

/**
 * Schedule table
 */
.mmt-mdp-full-schedule {
    display: block;
    padding-top: .5em;
    text-align: right;
    font-size: .8em;
    border-top: 1px solid #ccc;
}

.mmt-mdp-full-schedule:after {
    padding-left: .5em;
    font-family: 'icons';
    content: '\27a1';
}

.mmt-mdp-schedule-table td {
    border-top: 1px solid #ccc;
}

/** Day separators */
.mmt-mdp-schedule-separator td {
    padding: .6em 1.4em;
    font-weight: bolder;
    font-size: .8em;
    border-top: 0;
    background: rgba(0,0,0,0.05);
}

/** Extra white space in first and last row */
.mmt-mdp-schedule-separator + tr td {
    padding-top: 1em;
}

.mmt-mdp-schedule-table tr.mmt-mdp-last td {
    padding-bottom: 1em;
}

/** Activity with linked documents */
.mmt-activity-has-documents a:after {
    float: right;
    font-family: 'fjell';
    content: '\1f4c1';
}

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

/** Downloads */
.mmt-mdp-downloads {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmt-mdp-downloads a[href*="format=save_to_disk"]:before {
    margin-right: .3em;
    font-family: 'fjell';
    font-size: 14px;
    font-weight: normal;
    content: '\2913';
}

.mmt-mdp-active > a {
    margin-bottom: -1px;
    color: #c40d58;
    font-weight: bold;
    border-bottom: 3px solid #c40d58;
    background: #fff;
}

/**
 * cta buttons
 */

.mmt-mdp-cta:after,
.mmt-mdp-new-account .mmt-mdp-call-to-action:after {
    margin-left: .4em;
    font-family: 'icons';
    font-size: 14px;
    font-weight: normal;
    content: '\27a1';
}

.mmt-mdp-link,
.mmt-mdp-call-to-action {
    display: block;
}

.mmt-mdp-link:before,
.mmt-mdp-call-to-action:before {
    padding-right: .5em;
    font-family: 'fjell';
}

.mmt-mdp-cta--registration:before {
    content: '\1f4c4';
}

.mmt-mdp-cta--home:before {
    content: '\2302';
}

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

.mmt-mdp-back a {
    padding: 5px 0;
    font-size: 0.9em;
    text-decoration: none;
    color: #757575;
}

.mmt-mdp-back a:before {
    content: '\2b05';
    display: inline-block;
    margin-right: .3em;
    vertical-align: middle;
    font-family: 'icons';
    font-size: 11px;
    font-weight: normal;
}

@media screen and (min-width: 400px) {
    .mmt-mdp-back {
        position: absolute;
        top: -30px;
        right: 0;
        z-index: 1;
        padding: 8px 0;
    }
}

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

.mmt-mdp-header {
    position: relative;
    overflow: hidden;
    border-radius: .7rem .7rem 0 0;
}

.mmt-mdp-cover-image {
    position: absolute;
    top: 0;
    display: block;
    width: 100%;
}

.mmt-mdp-headerPhoto {
    display: block;
    width: 100%;
}

.mmt-mdp-title {
    margin: 0.3em 0 0.2em 0;
    max-width: 70%;
}

/** Meetings meta data */

.mmt-mdp-meta-data {
    margin: 1em 0 0.5em;
}

.mmt-mdp-meta-data > span {
    position: relative;
    display: inline-block;
    padding-left: 25px;
    margin-bottom: 0.7em;
}

.mmt-mdp-meta-data span a {
    color: #575757;
}

.mmt-mdp-meta-data span a:hover {
    text-decoration: underline;
}

.mmt-mdp-meta-data span:before {
    position: absolute;
    left: 1px;
    font-family: 'icons';
    font-size: 16px;
    font-weight: normal;
}

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

.mmt-mdp-meta-data .mmt-mdp-location:before { /** .mmt-mdp-meta-data because detailpage wrapper div is also called .mmt-mdp-meta-data */
    content: '\1f5fa';
}

.mmt-mdp-tags:before {
    content: '\1f3f7';
}

.mmt-mdp-hosts:before {
    content: '\1f399';
}

.mmt-meeting-detail-page:not(.mmt-mdp-has-cover) .mmt-mdp-meta-data {
    margin-bottom: 0;
}

@media screen and (min-width: 720px) {
    .mmt-mdp-meta-data {
        display: flex;
        flex-wrap: wrap;
        margin-left: -2em;
    }

    .mmt-mdp-meta-data > span {
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: calc(50% - 2em);
        max-width: calc(50% - 2em);
        margin-left: 2em;
    }
}

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

.mmt-mdp-nav {
    margin: 0.8em 0 1em 0;
}

.mmt-mdp-nav ul {
    white-space: nowrap;
    overflow: auto;
    border-bottom: 1px solid #eaeaea;
    /** background, shadows and shadow covers */
    background-image:   -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0%, white), color-stop(100%, rgba(255, 255, 255, 0))),
    -webkit-gradient(linear, 100% 50%, 0% 50%, color-stop(0%, white), color-stop(100%, rgba(255, 255, 255, 0))),
    -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0%, #e4edf4), color-stop(100%, rgba(195, 195, 197, 0))),
    -webkit-gradient(linear, 100% 50%, 0% 50%, color-stop(0%, #e4edf4), color-stop(100%, rgba(195, 195, 197, 0)));
    background-image:   -webkit-linear-gradient(left, white, rgba(255, 255, 255, 0)),
    -webkit-linear-gradient(right, white, rgba(255, 255, 255, 0)),
    -webkit-linear-gradient(left, #e4edf4, rgba(195, 195, 197, 0)),
    -webkit-linear-gradient(right, #e4edf4, rgba(195, 195, 197, 0));
    background-image:   -moz-linear-gradient(left, white, rgba(255, 255, 255, 0)),
    -moz-linear-gradient(right, white, rgba(255, 255, 255, 0)),
    -moz-linear-gradient(left, #e4edf4, rgba(195, 195, 197, 0)),
    -moz-linear-gradient(right, #e4edf4, rgba(195, 195, 197, 0));
    background-image:   -o-linear-gradient(left, white, rgba(255, 255, 255, 0)),
    -o-linear-gradient(right, white, rgba(255, 255, 255, 0)),
    -o-linear-gradient(left, #e4edf4, rgba(195, 195, 197, 0)),
    -o-linear-gradient(right, #e4edf4, rgba(195, 195, 197, 0));
    background-image:   linear-gradient(left, white, rgba(255, 255, 255, 0)),
    linear-gradient(right, white, rgba(255, 255, 255, 0)),
    linear-gradient(left, #e4edf4, rgba(195, 195, 197, 0)),
    linear-gradient(right, #e4edf4, rgba(195, 195, 197, 0));
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 4em 100%, 4em 100%, 1em 100%, 1em 100%;
    background-attachment: local, local, scroll, scroll; /** Opera doesn't support this in the shorthand */
}

.mmt-mdp-nav li {
    display: inline-block;
    text-align: center;
}

.mmt-mdp-nav .mmt-mdp-first.mmt-mdp-last {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.mmt-mdp-nav a {
    display: block;
    padding: 0.5em 1.2em;
    font-size: 1.1em;
    text-decoration: none;
}

@media screen and (min-width: 720px) {
    .mmt-mdp-nav ul {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
}

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

.mmt-mdp-sidebar {
    margin: 50px 0;
}

@media screen and (min-width: 900px) {
    .mmt-mdp-sidebar {
        margin-top: 0;
    }
}

/** Ticket prices */

/** Block: List of tickets */
.mmt-mdp-ticketsTable td {
    border-top: 1px solid #ccc;

}

.mmt-mdp-ticket-description {
    padding-top: .5em;
    border-top: 1px solid #ccc;
    font-size: .8em;
}

.mmt-mdp-title-price,
td[itemprop='price'] {
    text-align: right !important;
}

/**
 * List of Attendees
 */

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

/**
 * Optimizations login form for meeting
 */

.mod-meeting2 #loginform a[href*='profile/lostpw'] {
    display: inline-block;
    margin-bottom: 1em;
}

.mod-meeting2 .mmt-mdp-new-account {
    margin-top: 2.5em;
}
