@import "../../../../../styles/base/variables.css";

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


/** 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: .5rem;
    vertical-align: top;
    border-bottom: 1px solid var(--primaryColor200);
}

.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-back {
    width: 100%;
    padding: 5px 0;
}

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

.mmt-mdp-back a::before {
    content: '\e801';
    display: inline-block;
    margin-right: .5em;
    font-family: 'fa-regular', sans-serif;
    text-decoration: none;
}

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


/**
 * .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;
    width: 100%;
}

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

.mmt-mdp-shortDescription {
    max-width: var(--maxTextWidthMedium);
    font-size: 1.3rem;
}

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

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

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

.mmt-mdp-metaData {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: var(--articleMarginBottomSmall);
    color: var(--primaryColor400);
}

.mmt-mdp-metaData > span {
    margin-right: 1em;
}

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

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

@media (min-width: 768px) {
    .mmt-mdp-section.article {
        padding-right: calc(var(--maxContentWidth) - 970px);
    }
}

/** Cover photo enabled */
.mmt-mdp-has-cover .mmt-mdp-summary {
    position: absolute;
    left: 30px;
    bottom: 20px;
    width: 85%; /** Random number which probably fits in container. If we dont care about IE6, use right: 30px; */
    color: #fff;
}

.mmt-mdp-has-cover .mmt-mdp-summary h2 {
    text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 0px 1px rgba(0,0,0,1);
    color: #fff;
}

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

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

.mmt-mdp-has-cover .mmt-mdp-meta-data span {
    background-image: url(../../../img/snippets/icon-calendar-white.png);
}

.mmt-mdp-has-cover .mmt-mdp-meta-data .mmt-mdp-location {
    background-image: url(../../../img/snippets/icon-location-white.png);
}

.mmt-mdp-has-cover .mmt-mdp-meta-data .mmt-mdp-labels {
    background-image: url(../../../img/snippets/icon-labels-white.png);
}

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

.mmt-mdp-nav {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--primaryColor100);
}

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

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

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

.mmt-mdp-nav a:hover {
    border-bottom: 3px solid var(--primaryColor500);
}

.mmt-mdp-active a,
.mmt-mdp-active a:hover {
    font-weight: bold;
    border-bottom: 3px solid var(--primaryColor500);
}

/**
 * .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-inner {
    padding: 10px;
}

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

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

/** Subscribe button */
.mmt-mdp-cta {
    display: block;
    padding: 5px;
    margin-bottom: 5px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid #4792AC;
    background-color: #48ABCF;
    text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.mmt-mdp-cta:hover {
    background-color: #4091bf;
}

.mmt-mdp-cta-secondary {
    background-color: #ddd;
    border-color: #ccc;
    color: #444;
}

.mmt-mdp-cta-secondary:hover {
    background-color: #ccc;
    border-color: #bbb;
    color: #000;
}

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

/**
 * Layout of speaker overview
 */

.mmt-mdp-section-speakers ol,
.mmt-mdp-social-media {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmt-mdp-section-speakers li {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

.mmt-mdp-section-speakers img {
    float: left;
}

.mmt-mdp-has-image .mmt-mdp-speaker-details {
    margin-left: 120px;
}

.mmt-mdp-speaker-details h4 {
    margin: 0;
}

.mmt-mdp-social-media li {
    position: static;
    display: inline;
    margin: 0 5px 0 0;
    border: 0;
}

/**
 * Schedule layout
 */

/** Table that acts as menu */
.mmt-mdp-section-schedule table {
    margin-bottom: 2em;
}

.mmt-mdp-section-schedule table tr:nth-child(even) {
    background-color: var(--primaryColor100);
}

.mmt-mdp-schedule .mmt-mdp-schedule-time {
    width: 100px;
    padding-right: 20px;
    white-space: nowrap;
    font-weight: bold;
}

/** Speakers shouldn't be primary info */
.mmt-mdp-section-schedule td span {
    display: block;
    font-size: .9em;
    color: #999;
}

/** Don't underline schedule items */
.mmt-mdp-section-schedule td a {
    text-decoration: none;
}

/** List with schedule items */
.mmt-mdp-schedule-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmt-meeting-detail-page .mmt-mdp-time-multiple {
    border-bottom-color: #fff;
}

.mmt-mdp-schedule-items li {
    margin-bottom: 1em;
    border-bottom: 1px solid #ddd;
}

.mmt-mdp-item-title p,
.mmt-mdp-item-title h4 {
    margin: 0;
}

.mmt-mdp-item-title h4 {
    font-size: 1.25em;
}

.mmt-mdp-schedule-items h5 {
    margin-bottom: 3px;
}

.mmt-mdp-schedule-items li li {
    margin: 0;
    border: 0;
}

/** Title part of activity */
.mmt-mdp-item-title {
    margin-bottom: 1em;
}

/** Activity with linked documents */
.mmt-activity-has-documents a {
    padding-left: 18px;
    background: transparent url(../../../img/snippets/icon-document.png) no-repeat 1px 0;
}

/**
 * Prices block
 */

.quicklink--largeAlt .quicklink__titleWrapper {
    width: 100%;
    margin-right: 0;
}
