/* Skyline | STALKER RP - Библиотека.
 * Дополнение к действующему main.css. Стили ограничены классом .sl-library-container. */
.sl-library-container {
    color: #c6baaa;
    background: #171514;
    box-sizing: border-box;
}
.sl-library-container *,
.sl-library-container *::before,
.sl-library-container *::after { box-sizing: border-box; }
.sl-library-container .sl-library {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    background: #171514;
}
.sl-library-container .sl-lib-sidebar {
    position: relative;
    left: auto;
    top: auto;
    width: clamp(240px, 27%, 340px);
    min-width: 240px;
    max-width: 340px;
    height: 100%;
    flex: 0 0 clamp(240px, 27%, 340px);
    padding: 14px 10px 12px;
    display: flex;
    flex-direction: column;
    background: #171514 url('/theme_r/img/sep_ver.png') repeat-y right top;
    overflow: hidden;
}
.sl-lib-sidebar-heading {
    flex: none;
    padding: 10px 14px 16px;
    font-size: 21px;
    letter-spacing: 1.4px;
    color: #c8ba9d;
    border-bottom: 1px solid #34302a;
}
.sl-lib-sidebar-heading small {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 1.1px;
    color: #756e66;
}
.sl-lib-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 4px 10px 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #5e5548 transparent;
}
.sl-lib-menu-label {
    padding: 18px 15px 6px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #8a7962;
    margin-top: 10px;
}
.sl-lib-loading {color: #7f776d; padding: 10px; font-size: 14px;}
.sl-library-container .sl-lib-list .sl-lib-link {
    position: relative;
    display: block;
    width: 100%;
    padding: 11px 15px 11px 17px;
    margin: 0 0 3px;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    outline-offset: -2px;
    text-decoration: none;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}
.sl-library-container .sl-lib-list .sl-lib-link:hover,
.sl-library-container .sl-lib-list .sl-lib-link:focus-visible {
    background: #26201a;
    border-left-color: #8a560b;
}
.sl-library-container .sl-lib-list .sl-lib-link.menu_active {
    background: #251c14;
    border-color: #824f08;
    border-left: 3px solid #bc6901;
    border-right: 3px solid #824f08;
}
.sl-library-container .sl-lib-list .sl-lib-link .a_title {
    font-size: 17px;
    line-height: 22px;
    font-weight: 400;
    color: #bcb1a1;
}
.sl-library-container .sl-lib-list .sl-lib-link .a_desc {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 4px;
    color: #797169;
}
.sl-library-container .sl-lib-list .sl-lib-link.menu_active .a_title,
.sl-library-container .sl-lib-list .sl-lib-link:hover .a_title {color: #d59a4c !important;}
.sl-library-container .sl-lib-list .sl-lib-back {margin-bottom: 10px; border-bottom: 1px solid #38332d;}
.sl-library-container .sl-lib-list .sl-lib-back .a_title {color: #c99d61;}
.sl-lib-sidebar-bottom {
    flex: none;
    padding: 12px 14px 5px;
    border-top: 1px solid #34302a;
    color: #655f55;
    font-size: 10px;
    letter-spacing: .8px;
}
.sl-library-container .sl-lib-main {
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #665c4a transparent;
    background: #171514;
}
.sl-lib-content-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 50px) clamp(24px, 4vw, 58px) 65px;
    line-height: 1.65;
    font-size: 15px;
    color: #c6baaa;
}
.sl-lib-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #bd8131;
    margin: 0 0 10px;
}
.sl-lib-content-inner h1 {
    margin: 0 0 20px;
    padding-bottom: 17px;
    font-size: clamp(27px, 2.7vw, 39px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .2px;
    color: #d6c6ac;
    border-bottom: 1px solid #57432b;
}
.sl-lib-content-inner h3 {
    margin: 26px 0 10px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: normal;
    color: #d29b53;
}
.sl-lib-content-inner p {margin: 0 0 14px;}
.sl-lib-content-inner strong {color: #e0c5a0; font-weight: 600;}
.sl-lib-content-inner .sl-lib-lead {font-size: 17px; line-height: 1.7; color: #c6bdae; margin-bottom: 25px;}
.sl-lib-article-subtitle {margin-top: -5px !important; margin-bottom: 25px !important; color: #81796b;}
.sl-lib-article-body ul,
.sl-lib-article-body ol {padding-left: 23px; margin: 12px 0 22px;}
.sl-lib-article-body li {padding: 2px 0 5px 7px;}
.sl-lib-article-body li::marker {color: #bc6901;}
.sl-lib-notice {
    margin: 26px 0;
    padding: 14px 18px;
    border-left: 3px solid #ba7725;
    background: #201c17;
    color: #aea494;
}
.sl-lib-shot {
    position: relative;
    margin: 27px 0 30px;
    padding: 7px;
    border: 1px solid #554334;
    background: #100f0e;
}
.sl-lib-shot img {display: none; width: 100%; height: auto; max-height: 560px; object-fit: contain;}
.sl-lib-shot.sl-lib-shot-loaded img {display: block;}
.sl-lib-shot.sl-lib-shot-loaded .sl-lib-shot-placeholder {display: none;}
/* Превью можно открыть в большем размере; подсказка появляется только при загрузке. */
.sl-lib-shot.sl-lib-shot-loaded {cursor: zoom-in; transition: border-color 160ms ease, box-shadow 160ms ease;}
.sl-lib-shot.sl-lib-shot-loaded:hover,
.sl-lib-shot.sl-lib-shot-loaded:focus-visible {
    border-color: #b97b27;
    box-shadow: 0 0 0 1px rgba(185, 123, 39, .32), 0 0 15px rgba(185, 123, 39, .14);
    outline: none;
}
.sl-lib-shot.sl-lib-shot-loaded::after {
    content: "УВЕЛИЧИТЬ  ↗";
    position: absolute;
    right: 14px;
    bottom: 38px;
    background: rgba(19, 16, 13, .91);
    border: 1px solid #8b5c26;
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 1px;
    color: #e1b879;
    pointer-events: none;
}

.sl-lib-shot-placeholder {
    min-height: 205px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    border: 1px dashed #624d36;
    background: repeating-linear-gradient(-45deg, #1b1916, #1b1916 9px, #201c17 9px, #201c17 18px);
}
.sl-lib-shot-placeholder span {color: #bb813a; font-size: 11px; letter-spacing: 2px;}
.sl-lib-shot-placeholder strong {font-size: 17px; color: #c6bbae; font-weight: 400;}
.sl-lib-shot-placeholder small {color: #82796c; font-size: 12px; max-width: 500px;}
.sl-lib-shot figcaption {padding: 9px 12px 5px; color: #81796b; font-size: 12px;}
.sl-lib-index {list-style: none; padding: 0; margin: 15px 0; display: grid; gap: 2px;}
.sl-lib-index li {padding: 12px 16px; border-bottom: 1px solid #332c25; background: #1b1917;}
.sl-lib-index li:hover {background: #211b16;}
.sl-lib-index a {display: block; font-size: 17px; color: #c69c66; text-decoration: none;}
.sl-lib-index a:hover {color: #e3b778;}
.sl-lib-index span {display: block; margin-top: 4px; font-size: 12px; color: #82796e;}
.sl-lib-welcome-icon {margin: 52px 0 18px; font-size: 27px; letter-spacing: 3px; color: #534334;}
.sl-lib-dim {color: #81796b;}
.sl-lib-article-foot {margin-top: 38px; padding-top: 14px; border-top: 1px solid #33302a; color: #696056; font-size: 10px; letter-spacing: 1.3px;}
.sl-library-container .sl-lib-templates {display: none;}
@media (max-width: 850px) {
    .sl-library-container {width: 100%; max-width: 100%;}
    .sl-library-container .sl-lib-sidebar {width: 230px; min-width: 230px; flex-basis: 230px;}
    .sl-lib-content-inner {padding: 22px 22px 44px;}
}
@media (max-width: 620px) {
    .sl-library-container {min-height: 590px; height: min(85vh, 900px);}
    .sl-library-container .sl-library {flex-direction: column;}
    .sl-library-container .sl-lib-sidebar {flex: none; width: 100%; max-width: none; min-width: 0; height: 39%; padding: 8px; background-image: none; border-bottom: 1px solid #51402c;}
    .sl-lib-sidebar-heading {font-size: 18px; padding: 7px 10px 10px;}
    .sl-lib-sidebar-bottom {display: none;}
    .sl-library-container .sl-lib-main {height: 61%;}
    .sl-lib-content-inner {padding: 22px 16px 30px; font-size: 14px;}
    .sl-lib-shot-placeholder {min-height: 160px;}
}

/* Skyline Library - полноразмерный просмотр скриншотов. Окно вынесено в body,
   поэтому оно не обрезается внутренними скролл-контейнерами сайта. */
.sl-lib-lightbox,
.sl-lib-lightbox * {box-sizing: border-box;}
.sl-lib-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 3vw;
    background: rgba(6, 7, 7, .91);
    backdrop-filter: blur(3px);
}
.sl-lib-lightbox.is-open {display: flex;}
.sl-lib-lightbox-dialog {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    overflow: hidden;
    background: #171514;
    border: 1px solid #745126;
    box-shadow: 0 20px 75px rgba(0,0,0,.8), 0 0 24px rgba(154,94,25,.12);
}
.sl-lib-lightbox-header {
    position: relative;
    flex: none;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 12px 10px 18px;
    border-bottom: 1px solid #463522;
}
.sl-lib-lightbox-title {
    min-width: 0;
    color: #d7ae72;
    font-size: 15px;
    line-height: 1.4;
}
.sl-lib-lightbox-close {
    flex: none;
    position: relative;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #6d4c22;
    background: #282018;
    color: #e1b879;
    cursor: pointer;
    font-size: 17px;
    font-family: inherit;
}
.sl-lib-lightbox-close:hover,
.sl-lib-lightbox-close:focus-visible {background: #3d2a1c; border-color: #d09644; outline: none;}
.sl-lib-lightbox-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 10px;
}
.sl-lib-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(94vw, 1800px);
    max-height: calc(92vh - 75px);
    max-height: calc(92dvh - 75px);
    object-fit: contain;
}
@media (max-width: 620px) {
    .sl-lib-lightbox {padding: 2vh 2vw;}
    .sl-lib-lightbox-title {font-size: 13px;}
    .sl-lib-lightbox-view {padding: 6px;}
    .sl-lib-shot.sl-lib-shot-loaded::after {right: 10px; bottom: 33px; font-size: 10px;}
}
