/* Site warning strip and dialog. All selectors are namespaced under .sw-site-warning. */

.sw-site-warning,
.sw-site-warning *,
.sw-site-warning *::before,
.sw-site-warning *::after {
    box-sizing: border-box;
}

/* Normal-flow spacer: reserves the strip's height so the fixed strip never covers page content.
   The default matches the one-line strip; site-warning.js keeps it in sync if the text wraps. */
.sw-site-warning__spacer {
    display: block;
    height: 36px;
    margin: 0;
    padding: 0;
}

.sw-site-warning .sw-site-warning__bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Above the page and header, below standard popup overlays (MagnificPopup .mfp-bg/.mfp-wrap use 1042/1043). */
    z-index: 900;
    display: block;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 8px 12px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    border: 0;
    border-radius: 0;
    background: #b3141b;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
    text-shadow: none;
    white-space: normal;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.sw-site-warning .sw-site-warning__bar:hover,
.sw-site-warning .sw-site-warning__bar:active {
    background: #8f0f15;
}

.sw-site-warning .sw-site-warning__bar:focus {
    outline: 3px solid #fff;
    outline-offset: -5px;
}

/* Keyboard focus keeps the outline; pointer/touch focus does not. Browsers without :focus-visible ignore this rule. */
.sw-site-warning .sw-site-warning__bar:focus:not(:focus-visible),
.sw-site-warning .sw-site-warning__dialog:focus:not(:focus-visible) {
    outline: none;
}

.sw-site-warning .sw-site-warning__more {
    text-decoration: underline;
    white-space: nowrap;
}

/* Dialog */

.sw-site-warning .sw-site-warning__overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
}

.sw-site-warning .sw-site-warning__overlay[hidden] {
    display: none;
}

.sw-site-warning .sw-site-warning__dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.sw-site-warning .sw-site-warning__dialog:focus {
    outline: 3px solid #1a56db;
    outline-offset: 2px;
}

/* Close control stays at the top while the content scrolls. */
.sw-site-warning .sw-site-warning__header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    border-bottom: 1px solid #e3e3e3;
    background: #fff;
}

.sw-site-warning .sw-site-warning__close {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #b3b3b3;
    border-radius: 4px;
    background: #fff;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-align: left;
    text-transform: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sw-site-warning .sw-site-warning__close:hover {
    background: #f2f2f2;
}

.sw-site-warning .sw-site-warning__close:focus {
    outline: 3px solid #1a56db;
    outline-offset: 2px;
}

.sw-site-warning .sw-site-warning__close-icon {
    margin-right: 6px;
    font-size: 22px;
    line-height: 20px;
}

/* Trusted warning content: explicit styles so site-wide resets do not flatten headings, lists or tables. */
.sw-site-warning .sw-site-warning__content {
    padding: 8px 20px 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.sw-site-warning .sw-site-warning__content h1,
.sw-site-warning .sw-site-warning__content h2,
.sw-site-warning .sw-site-warning__content h3,
.sw-site-warning .sw-site-warning__content h4 {
    margin: 16px 0 8px;
    padding: 0;
    color: #1a1a1a;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.sw-site-warning .sw-site-warning__content h1 { font-size: 22px; }
.sw-site-warning .sw-site-warning__content h2 { font-size: 20px; }
.sw-site-warning .sw-site-warning__content h3 { font-size: 18px; }
.sw-site-warning .sw-site-warning__content h4 { font-size: 16px; }

.sw-site-warning .sw-site-warning__content p {
    margin: 0 0 12px;
    padding: 0;
}

.sw-site-warning .sw-site-warning__content strong,
.sw-site-warning .sw-site-warning__content b {
    font-weight: 700;
}

.sw-site-warning .sw-site-warning__content ul,
.sw-site-warning .sw-site-warning__content ol {
    margin: 0 0 12px;
    padding: 0 0 0 1.5em;
}

.sw-site-warning .sw-site-warning__content ul { list-style: disc outside; }
.sw-site-warning .sw-site-warning__content ol { list-style: decimal outside; }

.sw-site-warning .sw-site-warning__content li {
    display: list-item;
    margin: 0 0 6px;
    padding: 0;
    float: none;
}

.sw-site-warning .sw-site-warning__content a {
    color: #0b4fb3;
    text-decoration: underline;
}

.sw-site-warning .sw-site-warning__content table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 15px;
}

.sw-site-warning .sw-site-warning__content th,
.sw-site-warning .sw-site-warning__content td {
    padding: 8px;
    border: 1px solid #cfcfcf;
    vertical-align: top;
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.sw-site-warning .sw-site-warning__content th {
    background: #f4f4f4;
    font-weight: 700;
}

.sw-site-warning .sw-site-warning__content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    .sw-site-warning .sw-site-warning__bar {
        font-size: 13px;
    }

    .sw-site-warning .sw-site-warning__overlay {
        padding: 8px;
    }

    .sw-site-warning .sw-site-warning__content {
        padding: 4px 14px 16px;
    }

    .sw-site-warning .sw-site-warning__content table {
        font-size: 14px;
    }

    .sw-site-warning .sw-site-warning__content th,
    .sw-site-warning .sw-site-warning__content td {
        padding: 6px;
    }
}

@media print {
    .sw-site-warning {
        display: none;
    }
}
