/* Словарь (plugins/carnews-glossary): термины в тексте, блок «Термины в новости», подсказка, страница словаря */
.entry-content a.cn-term,
.entry-content a.cn-term:visited {
    color: inherit;
    text-decoration: underline dotted var(--c-main, #ef2626);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    cursor: help;
}
.entry-content a.cn-term:hover,
.entry-content a.cn-term--open {
    color: inherit;
    background: rgba(239, 38, 38, .08);
}
.cn-terms {
    margin: 2em 0 1.5em;
    padding: 14px 18px;
    border-left: 4px solid var(--c-main, #ef2626);
    background: rgba(127, 127, 127, .07);
}
.cn-terms__title {
    margin: 0 0 .4em !important;
    font-weight: 700;
}
.cn-terms dl {
    margin: 0;
}
.cn-terms dt {
    font-weight: 700;
    margin-top: .6em;
}
.cn-terms dt a {
    color: inherit;
}
.cn-terms dd {
    margin: .15em 0 0;
}
.cn-terms__more {
    margin: .9em 0 0 !important;
    font-size: .9em;
}
.cn-tip {
    position: absolute;
    z-index: 9999;
    max-width: min(340px, calc(100vw - 16px));
    padding: 10px 12px;
    border-radius: 6px;
    background: #1f2328;
    color: #f2f2f2;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.cn-tip[hidden] {
    display: none;
}
.cn-tip__title {
    display: block;
    margin-bottom: 3px;
    color: #fff;
}
.cn-tip a {
    color: #ff9b9b;
}
.cn-tip__more {
    display: block;
    margin-top: 6px;
    font-weight: 700;
}
.cn-glossary__updated {
    font-size: .9em;
    opacity: .75;
}
.cn-glossary__nav {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 0 1.5em;
    padding: 8px 0;
    background: var(--c-main-bg, #fff);
    border-bottom: 1px solid rgba(127, 127, 127, .25);
    line-height: 2;
}
.s-dark .cn-glossary__nav {
    background: #151516;
}
.cn-glossary__nav a {
    display: inline-block;
    min-width: 1.6em;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}
.cn-glossary__list dt {
    font-weight: 700;
    margin-top: 1em;
    scroll-margin-top: 70px;
}
.cn-glossary__list dd {
    margin: .2em 0 0;
}
.cn-glossary__list dt:target,
.cn-glossary__list dt:target + dd {
    background: rgba(239, 38, 38, .08);
}
