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

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

/** Max font size */
.mmt-meeting-detail-page {
    font-size: 14px;
}

.mod-meeting2 main h2 {
    font-size: 1.5rem;
}

.mmt-meeting-detail-page .Form {
    max-width: none;
}

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

/** Columns */
@media (min-width: 800px) {
    .mmt-mdp-section.mmt-mdp-content {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .mmt-mdp-main {
        -ms-flex-preferred-size: calc(100% - 25em);
        flex-basis: calc(100% - 25em);
        margin-right: 2em;
    }

    .mmt-mdp-sidebar {
        -ms-flex-preferred-size: 23em;
        flex-basis: 23em;
    }
}

.mmt-mdp-inner {
    padding-top: 1.6em;
}

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

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

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

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

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

.mmt-mdp-section.mmt-mdp-back {
    margin-bottom: 1em;
}

.mmt-mdp-section.mmt-mdp-back a {
    text-decoration: none;
    font-weight: 700;
}

.mmt-mdp-section.mmt-mdp-back a::before {
    position: relative;
    left: 0;
    display: inline-block;
    margin-right: 1em;
    font-family: 'icons', sans-serif;
    content: '\e806';
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
    transition: left .2s ease-out;
}

.mmt-mdp-section.mmt-mdp-back a:hover::before {
    left: -0.5em;
}

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

.mmt-mdp-header {
    width: 100%;
    border-radius: 1em 0 1em 1em;
    background: #f2f2f2;
}

.mmt-mdp-summary {
    padding: 0.5em;
}

/** Meetings meta data */
.mmt-mdp-title {
    margin-bottom: 0.2em;
    font-size: 2.25em;
    line-height: 1.3;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

.mmt-mdp-date {
    display: inline-block;
    margin-top: 0.5em;
    vertical-align: middle;
}

.mmt-mdp-date::before {
    content: url('../../../img/snippets/icon-calendar.svg');
    width: 1em;
    height: 1.6em;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5em;
}

.mmt-mdp-incompanyStatus {
    display: block;
}

.mmt-mdp-incompanyStatus:before {
    margin: 0;
    font-size: 1.2em;
}

.mmt-mdp-meta-data .mmt-mdp-location {
    padding-left: 15px;
}

.mmt-mdp-has-cover .mmt-mdp-summary h2 {
    color: var(--baseDark900);
}

.mmt-mdp-has-cover .mmt-mdp-summary a {
    color: var(--purple);
}

.mmt-mdp-has-cover .mmt-mdp-meta-data span {
    text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,1);
    opacity: .9;
    filter: alpha(opacity=90);
}

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

.mmt-mdp-nav {
    margin-top: 2em;
    box-shadow: inset 0 -1px 0 #ddd;
}

.mmt-mdp-nav ul {
    display: block;
}

.mmt-mdp-nav li {
    float: left;
}

.mmt-mdp-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #505050;
}

.mmt-mdp-nav a:hover {
    color: var(--purple);
}

.mmt-mdp-active::after {
    position: relative;
    left: 0;
    bottom: 0;
    display: block;
    content: '';
    height: 1px;
    width: calc(100% - 1px);
    background: #fff;
}

.mmt-mdp-active a,
.mmt-mdp-active a:hover {
    font-weight: bold;
    color: var(--purple);
    border: 1px solid #ddd;
    border-radius: 1em 1em 0 0;
    border-bottom: 0;
}

/**
 * .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;
    border: 1px solid #ccc;
    background-color: #eee;
}

.mmt-mdp-sidebar .mmt-mdp-section a {
    width: 100%;
}

.mmt-mdp-sidebar .mmt-mdp-section-inner {
    width: 100%;
    padding: 10px;
}


.mmt-mdp-sidebar .mmt-mdp-section-inner p {
    margin: 0;
}

.mmt-mdp-sidebar .mmt-mdp-section-inner p + p {
    margin-top: 1em;
}

.mmt-mdp-sidebar .mmt-mdp-section-registration {
    margin-bottom: 0;
}

.mmt-mdp-sidebar h3 {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
}

.mmt-mdp-section.mmt-mdp-section-sidebar-right h3 {
    width: auto;
    margin: -10px -10px 10px -10px;
}

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

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

/**
 *  .mmt-mdp-location-address
 */

.mmt-mdp-location-address {
    display: none;
}

/**
 *  .mmt-mdp-schedule-items
 */

.mmt-mdp-schedule-items .mmt-mdp-last {
    padding-bottom: 1em;
}

@media (min-width: 600px) {
    .mmt-mdp-header {
        position: relative;
        overflow: hidden;
        width: 100%;
        border-radius: 1em 0 1em 1em;
        background: #f2f2f2;
    }

    .mmt-mdp-header::before,
    .mmt-mdp-header::after {
        position: absolute;
        content: '';
        display: block;
    }

    .mmt-mdp-header::before {
        top: 0;
        left: -1.5em;
        width: 3em;
        height: 100%;
        background-color: #f8dc03;
    }

    .mmt-mdp-header::after {
        top: 0;
        right: 0;
        width: 5em;
        height: 100%;
        background: url('../../../img/snippets/logo-part.svg') no-repeat;
        background-size: cover;
    }

    .mmt-mdp-summary {
        padding: 0.5em 6em 0.5em 2.5em;
    }
}

/**
 * Hide title
 */

.mmt-mdp-section.mmt-mdp-section-speakers > h3 {
    display: none;
}

/**
 * Hide date if meeting is tagged with 'A - inCompany'
 */

.--inCompany .mmt-mdp-date,
.--inCompany .mmt-mdp-schedule-separator td {
    display: none;
}
