.tli-badge {
    border: 1px solid #d3d3d3;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tli-badge:hover {
    background-color: #f8f9fa;
}

.tli-badge img {
    width: 48px !important;
}

.tli-article-main-content {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

#tli-article-body, .ck.ck-content.ck-editor__editable {
    font-size: 20px;
    line-height: 1.5;
    color: black;
}

.tli-article-main-content .alert.alert-warning {
    margin-top: 10px;
}

.tli-article-main-content .alert.alert-warning div:not(:first-child) {
    margin-top: 10px;
}

.tli-file-download {
    font-size: medium;
    font-weight: 600;
}

.tli-article-main-content img {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    cursor: zoom-in;
}

/* Istruzioni (<code>) */
.tli-article-main-content code {
    background-color: hsla(0, 0%, 78%, .3);
    border-radius: 2px;
    padding: .15em;
}

/* Update (<ins>) */
.tli-article-main-content ins {
    display: block;
    padding: 0.5em 0.75em;
    margin: 0.75em 0;
    background: #e8f8ec;
    border-left: 4px solid #28a745;
    color: inherit;
    font-style: normal;
    text-decoration: none;
    border-radius: 2px;
}

/* reset links to default look... */
.alert a, .tli-file-download a, #tli-article-body a, .ck.ck-content.ck-editor__editable a {
    all: revert;
}

/* ...no purple! */
.alert a:visited {
    color: blue;
}

#tli-article-body iframe, .ck.ck-content.ck-editor__editable iframe {
    width:100%;
    aspect-ratio: 16/9
}


.tli-prev-next-article {
    min-height: 350px;
}

.tli-prev-next-article img {
    height: 200px;
}

.tli-prev-next-article-title {
    color: #222 !important;

    /* ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-layout-top-content .post-content h1.title {
    font-size: 2.5rem;
    line-height: normal;
    font-weight: 500;
}

.tli-tags-strip ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 0;
}

.tli-tag-label {
    background: #E4E5E6;
    border-color: #E4E5E6;
}

.tli-tags-strip ul li {
    border: 1px solid #C2C5C7;
    display: inline-block;
    line-height: 40px;
    padding: 0 15px;
    font-weight: 500;
    color: black;
    margin-bottom: 5px;
}


/* Lightbox gallery */
.tli-lightbox-close {
    z-index: 10;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
}

.tli-lightbox-close:hover {
    opacity: 1;
    color: #ff4d5e;
}

.tli-lightbox-img {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

.tli-lightbox-thumbs {
    overflow-x: auto;
    flex-shrink: 0;
}

.tli-lightbox-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
}

.tli-lightbox-thumb:hover {
    opacity: 0.8;
}

.tli-lightbox-thumb.active {
    opacity: 1;
    border-color: white;
}

#tli-comments-box .tli-forum-thread-link a {
    color: #6c757d;
    font-size: 15px;
    font-weight: 500;
}

.tli-comments-loader {
    font-size: 22px;
    font-weight: bold;
    color: #555;
    text-align: center;
    padding: 40px 0;
}

.tli-comment-reply {
    width: fit-content;
    border-top: lightgrey dashed 1px;
    margin-top: 15px;
}

.post-comments-list hr {
    margin-top: 0px;
}

.tli-comment-main-content {
    font-size: 20px;
    line-height: 1.5;
    color: black;
}

.post-comments-list .post-comments-item .post {
    border-bottom: none;
}

.post-comments-list .post-comments-item .post {
    border-bottom: none;
}

.post-comments-list .post-comments-item .post h5.title {
    font-size: 14px;
    color: grey;
}

.post-comments-list .post-comments-item .post h5 img {
    margin-left: 5px;
    margin-right: 5px;
}

.post-comments-list .post-comments-item .post a {
    position: revert;
}


.tli-comment-main-content .icon,
.tli-comment-main-content .button .icon,
.tli-comment-main-content blockquote cite:before,
.tli-comment-main-content .uncited:before {
    display: inline-block;
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    font-size: 14px;
    line-height: 1;
    text-rendering: auto;
}


.tli-comment-main-content blockquote {
    /* phpBB originals
    background-color: #EBEADD;
    border-color: #DBDBCE;
     */
    background-color: #F8F8F8;
    border: 1px solid transparent;
    font-size: 0.95em;
    margin: 1em 1px 1em 25px;
    overflow: hidden;
    padding: 5px;
}


.tli-comment-main-content .emoji {
    min-height: 18px;
    min-width: 18px;
    height: 1em;
    width: 1em;
}


.tli-comment-main-content ul, .tli-comment-main-content ol {
    margin: 0.8em 0 0.9em 3em;
}

.tli-comment-main-content blockquote cite:before, .tli-comment-main-content .uncited:before {
    content: '❝';
    padding-right: 2px;
    font-size: 22px;
}


.tli-comment-main-content blockquote cite {
    font-style: normal;
    /*font-weight: bold;*/
    display: block;
    font-size: 0.9em;
}


.tli-comment-main-content blockquote cite > span {
    float: right;
    font-weight: normal;
}


.tli-comment-main-content .codebox {
    /* phpBB originals
    background-color: #FFFFFF;
     */
    background-color: #F8F8F8;
    border-color: #C9D2D8;
    border: 1px solid transparent;
    font-size: 1em;
    margin: 1em 0 1.2em 0;
    word-wrap: normal;
}

.tli-comment-main-content .codebox p {
    border-bottom: 1px solid;
    border-bottom-color: #CCCCCC;
    text-transform: uppercase;
    margin-bottom: 0;
    padding: 3px;
    font-size: 0.8em !important;
    font-weight: bold;
    display: block;
}

.codebox code {
    color: #2E8B57;
    overflow: auto;
    display: block;
    height: auto;
    max-height: 200px;
    padding: 5px 3px;
    font: 0.9em Monaco, "Andale Mono", "Courier New", Courier, monospace;
    line-height: 1.3em;
}


.tli-comment-main-content a {
    font-size: 20px !important;
    line-height: 1.5;
}


.tli-comment-main-content dl.file dd,
.tli-comment-main-content dl.thumbnail dd,
.tli-comment-attachments dl.file dd,
.tli-comment-attachments dl.thumbnail dd {
    font-size: 13px;
    color: #aaa;
}

.tli-comment-main-content dl.file dd a,
.tli-comment-main-content dl.thumbnail dd a,
.tli-comment-attachments dl.file dd a,
.tli-comment-attachments dl.thumbnail dd a {
    font-size: 13px !important;
    color: #aaa;
}

.spoiler_container {width: 100%;}

.spoiler_button {
    background: /* webpackIgnore: true */ url('/images/forum/buttons/spoiler.png') no-repeat left top;
    display: block;
    width: 96px;
    height: 25px;
    margin: 3px 0;
    display: none;
}

.spoiler_button:hover {cursor: pointer;}

.spoiler_content {
    padding: 3px 0px 7px 0px;
    display: none;
    width: 100%;
    border-bottom: 1px solid #888;
    margin-bottom: 10px;
}

.spoiler_failsafe div div {display: none;}

.spoiler_failsafe div:hover div {display: block;}

