/* BE and FE - do not wrap styles in @media {} for BE use! */

.align-center {
    text-align: center;
}
.align-left {
    text-align: left;
}
.align-justify {
    text-align: justify;
}
.align-right {
    text-align: right;
}

.p-big {
    font-size: 112.5%;
}

@media (min-width: 93.75em) {
    .p-big {
        font-size: 111.1111%;
    }
}

.p-tiny,
.c-tiny {
    font-size: 87.5%;
}

@media (min-width: 93.75em) {
    .p-tiny,
    .c-tiny {
        font-size: 77.7778%;
    }
}

.c-bold {
    font-weight: 600 !important;
}
.c-bold.fa::before {
    font-weight: 600;
}

.contenttable-container {
    max-width: 100%;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contenttable-container.js-table-overflow-x {
    overflow-x: auto;
    border-right: 1px solid rgb(82, 92, 163);
    box-shadow: inset -1em 0 1em -1em rgba(0, 0, 0, 0.5);
}

.contenttable-container table {
    margin-bottom: 0;
}

.contenttable th,
.contenttable td {
    text-align: left;
    vertical-align: top;
    padding: 1.5rem;
}

.contenttable thead th {
    text-align: center;
    color: rgb(255, 255, 255);
    background-color: rgb(82, 92, 163);
}

.contenttable tbody tr + tr {
    border-top: 1px solid rgba(82, 92, 163, 0.07);
}
.contenttable tbody th {
    width: 40%;
}
.contenttable tbody td {
    min-width: 16rem;
}

.contenttable tfoot {
    background-color: rgba(82, 92, 163, 0.07);
}

.contenttable-no-min-width {
    min-width: 100%; /* oh, yeah... */
}

.contenttable-no-min-width tbody th {
    width: auto;
}
.contenttable-no-min-width tbody td {
    min-width: 0;
}

.c-important {
    color: rgb(231, 32, 57);
}

.c-color-footnote {
    color: rgb(144, 144, 144);
}

ul.ul-check {
    padding-left: 2.25em;
}
ul.ul-check > li {
    position: relative;
}
ul.ul-check>li::marker {
    color: rgba(0,0,0,0);
}

ul.ul-check > li::before {
    content: "✓";
    position: absolute;
    left: -2.25em;
    color: rgb(255, 255, 255) !important;
    display: inline-block;
    background-color: rgb(82, 92, 163);
    border-radius: 50%;
    font-size: 85%;
    width: 1.5em;
    height: 1.5em;
    padding-left: 0.375em;
}

.ce-frame-inverted ul.ul-check > li::before {
    background-color: rgb(255, 255, 255);
}

.ce-frame-inverted.ce-bg-green ul.ul-check > li::before {
    color: rgb(0, 188, 159) !important;
}
.ce-frame-inverted.ce-bg-blue ul.ul-check > li::before {
    color: rgb(82, 92, 163) !important;
}

ul.ul-no-bullet {
    list-style: none;
    padding-left: 0;
}

ul.ul-no-bullet li::before {
    content: none;
}

/* icons */
.fa-rotate-45::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    display: inline-block;
}

.fa-rotate-315::before {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    display: inline-block;
}

.fa:not(i) {
    display: inline;
    font-style: inherit;
    font-weight: inherit;
    font-family: inherit;
}

.fa:not(i)::before,
.link-download::before,
.link-internal::before,
.link-mail::before {
    display: inline-block;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-style: normal;
    padding-right: 0.25em;
    text-decoration: none;
}

.link-mail::before {
    content: "\f0e0";
}

.link-download::before {
    content: "\f56d";
}
.link-download[href$="pdf"]::before {
    content: "\f1c1";
}
.link-download[href$="docx"]::before,
.link-download[href$="doc"]::before {
    content: "\f1c2";
}
.link-download[href$="xlsx"]::before,
.link-download[href$="xls"]::before {
    content: "\f1c3";
}
.link-download[href$="pptx"]::before,
.link-download[href$="ppt"]::before {
    content: "\f1c4";
}

.link-download[href$="psd"]::before,
.link-download[href$="tiff"]::before,
.link-download[href$="tif"]::before,
.link-download[href$="bmp"]::before,
.link-download[href$="jpg"]::before,
.link-download[href$="png"]::before {
    content: "\f1c5";
}
.link-download[href$="zip"]::before {
    content: "\f1c6";
}
.link-download[href$="webm"]::before,
.link-download[href$="mov"]::before,
.link-download[href$="mp4"]::before {
    content: "\f1c8";
}

.link-external::after,
.link-external-blank::after {
    display: inline-block;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    font-style: normal;
    padding-left: 0.25em;
    text-decoration: none;
}

.link-external::after,
.link-external-blank::after {
    content: "\f35d";
}

/* (partial) bootstrap btn rules */

a.btn {
    text-decoration: none;
    text-shadow: none !important;
}

.btn {
    display: inline-block;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-transform: uppercase;
    border: 3px solid currentColor;
    padding: 1.25em 1.25em;
    font-size: 1em;
    line-height: 1.25;
    border-bottom-right-radius: 1.25em;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.btn:focus,
.btn:hover {
    text-decoration: none;
}

.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

a.btn.disabled,
fieldset[disabled] a.btn {
    pointer-events: none;
}

.btn-blue,
.btn-primary {
    color: rgb(82, 92, 163);
    background-color: transparent;
    border-color: rgb(82, 92, 163);
    font-weight: 600;
}

.btn-blue:focus,
.btn-blue.focus,
.btn-blue:hover,
.btn-blue.hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:hover,
.btn-primary.hover {
    color: rgb(255, 255, 255);
    background-color: rgb(82, 92, 163);
    border-color: rgb(82, 92, 163);
    outline: none;
}

.btn-blue:active,
.btn-blue.active,
.btn-primary:active,
.btn-primary.active {
    color: rgb(255, 255, 255);
    background-color: rgb(82, 92, 163);
    border-color: rgb(82, 92, 163);
}

.btn-red,
.btn-secondary {
    color: rgb(231, 32, 57);
    background-color: transparent;
    border-color: rgb(231, 32, 57);
    font-weight: 600;
}

.btn-red:focus,
.btn-red.focus,
.btn-red:hover,
.btn-red.hover,
.btn-secondary:focus,
.btn-secondary.focus,
.btn-secondary:hover,
.btn-secondary.hover {
    color: rgb(255, 255, 255);
    background-color: rgb(231, 32, 57);
    border-color: rgb(231, 32, 57);
    outline: none;
}

.btn-red:active,
.btn-red.active,
.btn-secondary:active,
.btn-secondary.active {
    color: rgb(255, 255, 255);
    background-color: rgb(231, 32, 57);
    border-color: rgb(231, 32, 57);
}

.btn-green {
    color: rgb(0, 188, 159);
    background-color: transparent;
    border-color: rgb(0, 188, 159);
    font-weight: 600;
}
.btn-green:focus,
.btn-green.focus,
.btn-green:hover,
.btn-green.hover {
    color: rgb(255, 255, 255);
    background-color: rgb(0, 188, 159);
    border-color: rgb(0, 188, 159);
    outline: none;
}

.btn-green:active,
.btn-green.active {
    color: rgb(255, 255, 255);
    background-color: rgb(0, 188, 159);
    border-color: rgb(0, 188, 159);
}

.btn-black {
    color: #2B2B38;
    background-color: transparent;
    border-color: #2B2B38;
    font-weight: 600;
}
.btn-black:focus,
.btn-black.focus,
.btn-black:hover,
.btn-black.hover {
    color: rgb(255, 255, 255);
    background-color: #2B2B38;
    border-color: #2B2B38;
    outline: none;
}

.btn-black:active,
.btn-black.active {
    color: rgb(255, 255, 255);
    background-color: #2B2B38;
    border-color: #2B2B38;
}

/* should be just .btn-download::before {} - Bug in ckeditor 4.10.1 https://github.com/ckeditor/ckeditor-dev/issues/2578 */
.btn-primary.btn-download::before {
    content: "\f56d";
    padding-right: 0.5em;
}

.btn-link {
    font-weight: normal;
    color: inherit;
    border-radius: 0;
}

.btn-link:hover,
.btn-link.hover {
    color: inherit;
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    background-color: transparent;
}

.btn-link,
.btn-link:active,
.btn-link.active,
.btn-link:disabled,
.btn-link.disabled {
    background-color: transparent;
}

.btn-link,
.btn-link:hover,
.btn-link.hover,
.btn-link:active,
.btn-link.active {
    border-color: transparent !important;
}

.ce-frame-inverted .btn {
    color: currentColor;
    border-color: currentColor;
    background-color: transparent !important;
}

.ce-frame-inverted .btn:focus,
.ce-frame-inverted .btn.focus,
.ce-frame-inverted .btn:hover,
.ce-frame-inverted .btn.hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.btn .fa {
    margin-right: 0.75em;
}

.btn .fa-after {
    margin-left: 0.75em;
    margin-right: 0;
}
