/**
 * Reset
 */

.MainPage form {
    padding: 0;
    border: none;
    background: inherit;
}

h1 { /** Hide the default page title so we can use our community snippet page title*/
    display: none !important;
    font-size: 0 !important;
    position: absolute !important;
    left: -999em !important;
}

.MainPage {
    flex-basis: 100%;
    justify-content: space-between;
    font-size: 16px !important;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .MainPage--navigationLeft {
        display: flex;
        flex-direction: row;
    }

    .MainPage--navigationLeft .MainPage__navigation {
        flex-basis: 250px;
        min-width: 250px;
    }
}

/**
 * Generic mod_community classes for page layout
 */

.u-MainPageWrapper {
    display: grid;
    width: 100%;
}

.u-MainPageContent {
    order: 1;
    margin-bottom: 1.4em;
}

.u-MainPageSidebar {
    order: 0;
    width: 100%;
    margin-bottom: 0.7em;
}

.u-MainPageSearch,
.u-MainPageFilter {
    order: 1;
}

.u-MainPageSearch {
    margin-block: 0;
}

@media (min-width: 520px) {
    .u-MainPageContent {
        margin: 0 1.4em 1.4em;
    }
}

@media (min-width: 768px) {
    .u-MainPageWrapper {
        align-self: self-start;
    }
}

@media (min-width: 1200px) {
    .u-MainPageWrapper {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        margin: 0 auto;
        flex: 0 1 1200px;
    }

    .u-MainPageSearch {
        grid-column-start: 1;
        grid-column-end: -1;
    }

    .u-MainPageContent {
        order: 0;
    }

    .u-MainPageSidebar,
    .u-MainPageFilter {
        order: 1;
        margin: .7em 1.4em 0 auto;
        width: auto;
    }

    .u-MainPageSidebar--empty {
        margin: 0;
    }

    .u-MainPageFilter {
        order: 0;
        margin: 1.4em auto 0 1.4em
    }

    .u-MainPageSearch {
        order: 0;
    }
}

/**
 * Generic mod_community2 elements
 */

.u-mcm-button {
    height: auto;
    margin: 0;
    padding: .6em !important;
    border: 0 !important;
    border-radius: .2em;
    vertical-align: middle;
    font-size: 1em;
    line-height: 1.2em;
    white-space: nowrap;
    text-decoration: none !important;
    color: #333 !important;
    background: transparent !important;
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    transition: box-shadow .05s linear;
}

.u-mcm-button:hover,
.u-mcm-button--active {
    text-decoration: none !important;
    color: #333;
    background-color: rgba(0,0,0,.03) !important;
    box-shadow: none;
}

.u-mcm-button:focus {
    background-color: rgba(0,0,0,.03) !important;
}

.u-mcm-button--pri {
    background: rgba(255,255,255,.9) !important;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.2), 0 4px 7px -5px rgba(0,0,0,.3);
    transition: box-shadow 0.3s;
}

.u-mcm-button--pri:hover {
    background: rgba(255,255,255,1) !important;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,.1), 0 5px 7px -5px rgba(0,0,0,.4);
}

.u-mcm-button::before,
.u-mcm-button::after {
    content: none !important;
}

.u-mcm-button__text {
    display: inline-block;
    white-space: nowrap;
}

.u-mcm-button__text--hidden {
    position: absolute;
    left: -999em;
}

.u-mcm-button__icon {
    display: inline-block;
    width: 1.2em !important;
    height: 1.2em !important;
    margin: 2px;
    vertical-align: middle;
    fill: currentColor;
    pointer-events: none; /** So we allways hit (js) the button instead of the icon */
}

.u-mcm-smallButton {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 3px;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: normal;
    font-family: unset;
    text-align: center;
    opacity: 0.9;
    line-height: 1;
    box-shadow: 0 0 1px rgba(0,0,0,0.5), 0 2px 3px -2px rgba(0,0,0,0.2);
}

.u-mcm-smallButton:hover {
    text-decoration: none;
    opacity: 1;
}

.u-mcm-popupMenu {
    border-radius: .3em;
    font-size: 14px;
    line-height: 1.2;
    color: #000;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.3), 0 6px 5px rgba(0,0,0,.2);
}

.u-mcm-authorAnon {
    font-style: italic;
    color: rgba(0,0,0,.54);
}

.u-mcm-hiddenText {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/**
 * Removal form
 */

.u-mcmForm--hiddenLegend legend {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.u-mcm-removalReason {
    padding-top: 1em !important;
    border-top: 1px solid #e6e6e6;
}

/**
 * Info box
 */

.u-mcm-infoBox {
    width: calc(100% - 4em);
    max-width: 40em;
    margin: auto;
    padding: 2em;
    text-align: center;
    background: rgba(0, 0, 0, .05) !important;
}

/**
 * Moderator badge
 */

.u-mcm-moderator {
    display: inline-block;
    margin: 0 0.5em 0 0.2em;
    padding: 0 0.4em;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.54);
    background-color: rgba(0, 0, 0, 0.05);
}

/**
 * Responsiveness Show/Hide
 */

@media (max-width: 1199px) {
    .u-mcm-displayL-up {
        display: none;
    }
}

@media (min-width: 1200px) {
    .u-mcm-displayL-down {
        display: none;
    }
}
