/**
 * @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;
}

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

.mod-meeting2 .mmt-mdp-header .mmt-mdp-summary h1 {
  position: relative;
  left: 0em;
}

/**
 * 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 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: rgba(0,0,0,0.05);
}

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

.mmt-meeting-detail-page td[itemprop="price"] {
    word-break: normal;
}

/**
 * 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 {
    content: '⭢';
    vertical-align: middle;
    padding-left: .5em;
    font-family: 'SS BlackTie-Light';
    font-weight: bold;
    font-style: normal;
    text-decoration: none;
    text-rendering: optimizeLegibility;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.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: 'SS BlackTie-Light';
    font-weight: bold;
    content: '📄';
    font-style: normal;
    text-decoration: none;
    text-rendering: optimizeLegibility;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/**
 * cta buttons
 */

.mmt-mdp-cta:after,
.mmt-mdp-new-account .mmt-mdp-call-to-action:after {
    margin-left: 0.4em;
    content: '⭢';
    font-family: 'SS BlackTie-Light';
    font-style: normal;
    font-weight: bold;
    text-decoration: none;
    text-rendering: optimizeLegibility;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.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: 'SS BlackTie-Light';
    font-weight: bold;
    font-style: normal;
    text-decoration: none;
    text-rendering: optimizeLegibility;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mmt-mdp-cta--registration:before {
    content: '';
}

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

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

.mmt-mdp-back {
    width: 100%;
    padding: 5px 0;
}

.mmt-mdp-back a {
    padding: 5px 0;
    text-decoration: none;
}

.mmt-mdp-back a:before {
    content: '⭠';
    margin-right: 0.4em;
    font-family: 'SS BlackTie-Light';
    font-weight: bold;
    font-style: normal;
    text-decoration: none;
    text-rendering: optimizeLegibility;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.8em;
    color: #090909;
}

/**
 * .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;
}

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

.mmt-mdp-headerPhoto {
    padding-top: 40%;
    background-image: url(../../../img/snippets/no-cover.jpg);
    background-position: 50%;
    background-size: cover;
    background-color: #f1f1f1;
}

/** Meetings meta data */

.mmt-mdp-meta-data span {
    position: relative;
    display: inline-block;
    margin-right: 2em;
}

.mmt-mdp-meta-data span:before,
.mmt-mdp-cta:after {
    line-height: 1.6em;
}

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

.mmt-mdp-meta-data span:before {
    font-family: 'SS BlackTie-Light';
    margin-right: 0.4em;
    font-size: 0.8em;
    font-style: normal;
    font-weight: bold;
    text-decoration: none;
    text-rendering: optimizeLegibility;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mmt-mdp-date:before {
    content: '📅';
}

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

.mmt-mdp-labels:before {
    content: '';
}

.mmt-mdp-summary {
    padding: 20px;
    font-size: 0.8em;
    background: #f1f1f1;
}

.mmt-mdp-meta-data {
    margin-bottom: 0;
}

@media screen and (min-width: 640px) {
    .mmt-mdp-headerPhoto {
        background-color: #222;
    }

    .mmt-mdp-summary {
        font-size: 1em;
    }

    .mmt-mdp-has-cover .mmt-mdp-summary {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        overflow: hidden;
        color: #fff;
        background: linear-gradient(110deg, rgba(0, 0, 0, 0.5) 30%, transparent);
    }

    .mmt-mdp-summary h2 {
        font-weight: 400;
    }

    .mmt-mdp-has-cover .mmt-mdp-summary h2,
    .mmt-mdp-has-cover .mmt-mdp-meta-data span {
        color: #fff;
    }

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

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

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

.mmt-mdp-nav {
    margin: 0 0 20px 0;
    line-height: 3.2;
    font-size: 14px;
}

.mmt-mdp-nav ul {
    white-space: nowrap;
    overflow: auto;
    /** 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 a {
    display: block;
    padding: 0 .5em;
    border-top-width: 4px;
    border-top-style: solid;
    text-decoration: none;
    border-color: #fff;
    color: #757575;
}

.mmt-mdp-nav a:hover {
    color: #000;
}

.mmt-mdp-active a {
    border-color: #2b832e;
    color: #2b832e;
    text-decoration: underline;
}

@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-nav li {
        -webkit-box-flex: 1 1 10%;
        -webkit-flex: 1 1 10%;
        -ms-flex: 1 1 10%;
        flex: 1 1 10%;
    }

    .mmt-mdp-nav a {
        padding: 0 .5em;
    }
}

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

.mmt-mdp-sidebar {
    margin: 2em 0;
    font-size: 0.85em;
    padding: 2em;
    background-color: #f1f1f1;
}

@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;
}