/* Архивный режим сайта: водяной знак по всему сайту + верхняя плашка-предупреждение */

/* Водяной знак.
   Лежит поверх контента, а не под ним: у тем портала непрозрачный фон на body,
   и нижний слой был бы не виден. Кликам не мешает - pointer-events: none.
   Наклон задаётся поворотом всего слоя, а не текста внутри SVG-плитки:
   так плитка стыкуется без швов и надписи не обрезаются по её краям.
   Слой берётся с запасом (200% со сдвигом на -50%), чтобы после поворота
   он всё равно перекрывал вьюпорт по углам.
   Сам фон подставляется в _ArchiveMode.cshtml - текст зависит от языка. */
.archive-watermark {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 99999;
    pointer-events: none;
    background-repeat: repeat;
    background-position: 0 0;
    transform: rotate(-20deg);
    -ms-transform: rotate(-20deg);
    -webkit-transform: rotate(-20deg);
    transform-origin: center center;
}

/* Плашка-предупреждение.
   Зафиксирована сверху, а страницу сдвигаем вниз скриптом (см. _ArchiveMode.cshtml):
   стартовая страница собрана на fullpage.js, секции там жёстко по 100vh, поэтому
   одного отступа мало - секции надо ещё и ужать на высоту плашки.
   Поверх водяного знака (99999). */
.archive-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    box-sizing: border-box;
    padding: 12px 48px 12px 20px;
    background: #fdf6e3;
    border-bottom: 1px solid #ece0c0;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

    /* display: flex перебивает браузерное [hidden] { display: none } */
    .archive-notice[hidden] {
        display: none;
    }

.archive-notice__label {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    padding-right: 30px;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a1a;
    white-space: nowrap;
}

.archive-notice__text {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    text-align: center;
}

    .archive-notice__text a {
        color: #0a5f8a;
        text-decoration: underline;
    }

        .archive-notice__text a:hover {
            color: #0fabee;
        }

.archive-notice__close {
    position: absolute;
    top: 50%;
    right: 14px;
    margin-top: -13px;
    padding: 4px 8px;
    border: none;
    background: none;
    color: #8a8578;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

    .archive-notice__close:hover {
        color: #1a1a1a;
    }

@media print {
    .archive-watermark,
    .archive-notice {
        display: none;
    }
}

@media (max-width: 767px) {
    .archive-notice {
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-align: start;
        align-items: flex-start;
        padding: 12px 42px 12px 15px;
        font-size: 13px;
    }

    .archive-notice__label {
        padding: 0 0 6px 0;
    }

    .archive-notice__text {
        text-align: left;
    }

    .archive-notice__close {
        top: 8px;
        margin-top: 0;
    }
}
