html {
    scroll-behavior: smooth;
    scroll-padding-block-start: 120px;
}
html::after {
    z-index: 0;
}

/*  */

.tm-header .uk-sticky-below,
.tm-header-mobile .uk-sticky-below {
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.08);
}

/*  */

.uk-nav li a {
    display: inline-block;
}
.tm-footer .uk-nav a,
.tm-footer .uk-nav-default .uk-active a {
    color: inherit;
}
.tm-footer .uk-nav a:hover,
.tm-footer .uk-nav a:focus {
    color: inherit;
    text-decoration: underline;
}

/* Buttons */

.uk-button:not(.uk-button-text),
.uk-button:not(.uk-button-link),
.uk-button:not(.uk-button-small) {
    padding-top: 8px;
    padding-bottom: 8px;
}

.uk-button.uk-button-large {
    padding-top: 18px;
    padding-bottom: 18px;
}

.uk-button:not(.uk-button-default):not(.uk-button-text):not(.uk-button-link),
.uk-icon-button {
    box-shadow: 0 6px 2px 0 rgb(0 0 0 / 0.08), 0 2px 0 -2px rgb(0 0 0 / 0.1);
}

.uk-button:not(.uk-button-default):not(.uk-button-text):not(.uk-button-link):hover, 
.uk-button:not(.uk-button-default):not(.uk-button-text):not(.uk-button-link):focus,
.uk-icon-button:hover, .uk-icon-button:focus {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
[class*='uk-tile-'] {
    border-radius: 1em;
}
.uk-card:has(.uk-position-cover),
[class*='uk-tile-']:has(.uk-position-cover) {
    overflow: hidden;
}

/* Article */

article * + h3, article * + h4, article * + h5, article * + h6 {
    margin-top: 30px;
}
article * + h2 + h3,
article * + h3 + h4 {
    margin-top: 0;
}
article ul li,
article ol li {
    margin-bottom: 10px;
}
.uk-text-small {
    letter-spacing: -0.005rem;
}
.uk-text-small li {
    margin-bottom: 8px;
}

/* Fancy list */

.fancy-list ul {
    list-style: none;
}
.fancy-list li {
    position: relative;
    margin-bottom: 10px;
}
.fancy-list li:before {
    position: absolute;
    content: '';
    left: -34px;
    width: 24px;
    height: 24px;
    background-image: url(../../../images/icons/check-circle.svg);
    background-repeat: no-repeat;
    background-size: 24px;
    background-position: 0 1px;
}

/*  */

.toc .el-title {
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 600;
    font-size: 1rem;
    color: #fd6b35;
    position: relative;
    z-index: 2;
    background-color: #fff;
}
.toc .card-body {
    padding-top: 0;
    padding-bottom: 0;
}
.toc .rl_quickindex.card {
    border: 0;
    border-radius: 1em;
}
.toc .index {
    padding: 0 1rem;
    margin-top: -1px;
    position: relative;
    z-index: 1;
}
.toc .index-level-3 {
    padding-left: 1em;
    list-style: disc;
}
.toc .index-link {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 0.9375rem;
    display: block;
    box-shadow: 0 -1px 0 rgba(196, 28, 28, 0.2);
}
.toc .index-item a {
    color: #6f7277;
    text-decoration: none;
}
.toc .index-item a:hover,
.toc .index-item a:focus {
    text-decoration: underline;
    color: inherit;
}
.toc .index-level-2 {
    list-style: none;
}
.toc .uk-card-default {
    overflow: hidden;
}
.toc .uk-column-divider {
    column-gap: 0;
    column-rule-color: rgba(253, 107, 53, 0.2);
}
.toc .card {
    background-color: transparent;
}
.toc .uk-accordion-content li {
    margin-top: 0;
    margin-bottom: 0;
}

/*  */

.blog-post p > img {
    position: relative;
    z-index: 1;
    background-color: #fff;
    border-radius: 1em;
    box-shadow: 2px 8px 16px -4px rgba(0, 0, 0, 0.08);
}
blockquote {
    display: inline-block;
    position: relative;
    z-index: 1;
    background-image: url(../../../images/bg/contours.svg);
    background-repeat: repeat-x;
    background-position: 0 3em;
    background-size: 50%;
}

/* Bootstrap legacy */

.mx-auto {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Scroll to top custom Yootheme */

#btnBacktoTop {
    animation: scrollToTop 300ms backwards ease-in-out;
}

@keyframes scrollToTop {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}