.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;
}

/* Codice (<pre>) */
#tli-article-body pre,
.ck.ck-content.ck-editor__editable pre {
    background-color: hsla(0, 0%, 78%, .3);
    border: 1px solid #C2C5C7;
    border-radius: 2px;
    margin: 1em 0;
    padding: 0.75em 1em;
    font-size: 17px;
    line-height: 1.45;
    tab-size: 4;
    white-space: pre-wrap;
    overflow-x: auto;
}

#tli-article-body pre code,
.ck.ck-content.ck-editor__editable pre code {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

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

/* Tables */
#tli-article-body table,
.ck.ck-content.ck-editor__editable table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 17px;
}

#tli-article-body th,
#tli-article-body td,
.ck.ck-content.ck-editor__editable th,
.ck.ck-content.ck-editor__editable td {
    border: 1px solid #C2C5C7;
    padding: 0.4em 0.6em;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

#tli-article-body th,
.ck.ck-content.ck-editor__editable th {
    background: #E4E5E6;
    font-weight: 600;
}

#tli-article-body caption,
.ck.ck-content.ck-editor__editable caption {
    padding-bottom: 0.4em;
    font-size: 16px;
    color: #6c757d;
    text-align: left;
}

#tli-article-body td img,
#tli-article-body th img,
.ck.ck-content.ck-editor__editable td img,
.ck.ck-content.ck-editor__editable th img {
    max-width: 100%;
}

@media (max-width: 767.98px) {

    #tli-article-body table {
        display: block;
        width: 100%;
        overflow-x: auto;
        background:
            linear-gradient(to right, #fff 40%, rgba(255, 255, 255, 0)) left center,
            linear-gradient(to left, #fff 40%, rgba(255, 255, 255, 0)) right center,
            linear-gradient(to right, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0)) left center,
            linear-gradient(to left, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0)) right center;
        background-repeat: no-repeat;
        background-size: 44px 100%, 44px 100%, 22px 100%, 22px 100%;
        background-attachment: local, local, scroll, scroll;
    }

    #tli-article-body th,
    #tli-article-body td {
        overflow-wrap: normal;
        min-width: 5em;
    }

    #tli-article-body th {
        background: rgba(228, 229, 230, 0.55);
    }
}

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

pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em
}
code.hljs {
  padding: 3px 5px
}
/*!
  Theme: GitHub
  Description: Light theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-light
  Current colors taken from GitHub's CSS
*/
.hljs {
  color: #24292e;
  background: #ffffff
}
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  /* prettylights-syntax-keyword */
  color: #d73a49
}
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  /* prettylights-syntax-entity */
  color: #6f42c1
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
  /* prettylights-syntax-constant */
  color: #005cc5
}
.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
  /* prettylights-syntax-string */
  color: #032f62
}
.hljs-built_in,
.hljs-symbol {
  /* prettylights-syntax-variable */
  color: #e36209
}
.hljs-comment,
.hljs-code,
.hljs-formula {
  /* prettylights-syntax-comment */
  color: #6a737d
}
.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
  /* prettylights-syntax-entity-tag */
  color: #22863a
}
.hljs-subst {
  /* prettylights-syntax-storage-modifier-import */
  color: #24292e
}
.hljs-section {
  /* prettylights-syntax-markup-heading */
  color: #005cc5;
  font-weight: bold
}
.hljs-bullet {
  /* prettylights-syntax-markup-list */
  color: #735c0f
}
.hljs-emphasis {
  /* prettylights-syntax-markup-italic */
  color: #24292e;
  font-style: italic
}
.hljs-strong {
  /* prettylights-syntax-markup-bold */
  color: #24292e;
  font-weight: bold
}
.hljs-addition {
  /* prettylights-syntax-markup-inserted */
  color: #22863a;
  background-color: #f0fff4
}
.hljs-deletion {
  /* prettylights-syntax-markup-deleted */
  color: #b31d28;
  background-color: #ffeef0
}
.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
  /* purposely ignored */
  
}
