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

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

.meeting-full-post .Article--snippet {
    overflow: hidden;
}

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

.mmt-mdp-summary h2 {
    margin-bottom: 0.2em;
}

.meetingPost__inner h3 {
    font-size: 1.3rem;
    margin-top: 0;
}

/**
 * Layout
 */

.meetingPost__inner {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meetingPost__main {
    flex: 1;
}

@media (min-width: 900px) {
    .meetingPost__main,
    .meetingPost__sidebar {
        display: inline-block;
        box-sizing: border-box;
        vertical-align: top;
    }

    .meetingPost__main {
        width: calc(60% - 1.5rem);
        margin-right: 3rem;
    }

    .meetingPost__sidebar {
        width: calc(40% - 1.5rem);
    }
}

/**
 * Tables
 */

.meetingPost table {
    width: 100%;
    border-collapse: collapse;
}

.meetingPost a {
    text-decoration: none;
}

.meetingPost caption {
    padding: 2px 0;
    text-align: left;
}

.meetingPost th,
.meetingPost td {
    padding: .6em 0;
    text-align: left;
}

.meetingPost thead th {
    font-weight: 600;
}

.meetingPost td {
    vertical-align: top;
    line-height: 1.2;
}

.meetingPost td:first-child {
    word-break: break-word;
}

.meetingPost 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-schedule-table td {
    border-top: 1px solid #ccc;
}

/** Day separators */
.mmt-mdp-schedule-separator td {
    padding: .6em 0;
    font-weight: 600;
    border-top: 0;
}

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

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

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

/** Reset 'last' elements */
.meetingPost__lastItem {
    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';
}

/**
 * cta buttons
 */

.mmt-mdp-cta {
    display: block;
    text-align: center;
}

/**
 * .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 {
    margin-right: .3em;
    font-family: "fjell";
    font-size: 16px;
    font-weight: normal;
    content: "\27f5";
}

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

.site--canvasBoxed .mmt-mdp-headerPhoto {
    position: relative;
    overflow: hidden;
    left: 0;
    margin-left: 0;
    width: 100%;
    height: 250px;
    background-image: url(../../../img/snippets/no-cover.jpg);
    background-size: cover;
    background-position: center;
}

.mmt-mdp-headerPhoto {
    position: relative;
    left: 50%;
    width: 100vw;
    height: 250px;
    margin-left: -50vw;
    background-image: url(../../../img/snippets/no-cover.jpg);
    background-position: 50%;
    background-size: cover;
}

.mmt-mdp-title {
    margin-bottom: .7em;
    font-size: 1.7rem;
}

.mmt-mdp-date {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.meetingPost__socialMediaBlock {
    margin: 2rem 0;
}

.meetingPost__socialMediaBlock .socialMedia__button:before {
    font-size: 1.2em;
}

.mmt-mdp-date:first-letter {
    text-transform: uppercase;
}

@media (min-width: 480px) {
    .mmt-mdp-headerPhoto,
    .site--canvasBoxed .mmt-mdp-headerPhoto {
        height: 325px;
    }
}

@media (min-width: 720px) {
    .mmt-mdp-headerPhoto,
    .site--canvasBoxed .mmt-mdp-headerPhoto {
        height: 400px;
    }

    .mmt-mdp-title {
        font-size: 2.5rem;
    }

    .mmt-mdp-dateAndSocialWrapper {
        display: flex;
        justify-content: space-between;
    }

    .meetingPost__socialMediaBlock {
        order: 2;
    }
}

/**
 * .mmt-mdp-categoriesList
 * Tags list
 */

.mmt-mdp-categoriesList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmt-mdp-categoriesItem {
    display: inline-block;
    margin: 0 .5em .6em 0;
    padding: .5em 1em;
    background: rgba(28, 33, 81, .1);
}

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

.meetingPost__sidebar {
    align-self: flex-start;
    padding: 1em;
    border-radius: var(--borderRadius);
    border: 1px solid var(--greenColor500);
}

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

/**
 * List of Attendees
 */

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

/**
 * Tickets block
 */

.meetingPost__ticketsBlock {
    margin-top: 2rem;
}
