/* Responsive compatibility layer for the legacy TISA layout. */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

#ar_log_pub {
    /* Reserve the banner's space before the JPEG arrives, preventing mobile layout shifts. */
    aspect-ratio: 955 / 140;
}

#ar_log_pub img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 955 / 140;
}

input,
select,
textarea,
button {
    box-sizing: border-box;
}

#mobile-menu-toggle {
    display: none;
    width: 100%;
    margin: 8px 0 2px;
    padding: 11px 14px;
    border: 1px solid #2d3274;
    border-radius: 3px;
    color: #fff;
    background: #2d3274;
    font: bold 15px Arial, Verdana, Helvetica, sans-serif;
    text-align: left;
    cursor: pointer;
}

.footer-link-button {
    margin: 0;
    padding: 0;
    border: 0;
    color: #1f5f8f;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.footer-link-button:hover,
.footer-link-button:focus {
    color: #0066cc;
    text-decoration: underline;
}

.contact-privacy-notice {
    margin: 0 auto 14px;
    max-width: 570px;
    font-size: 12px;
}

.privacy-page h3 {
    clear: both;
    margin-top: 16px;
    color: #252d68;
    font-size: 16px;
}

.privacy-settings-button,
.analytics-consent button {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #2d3274;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
}

.privacy-settings-button,
#analytics-accept {
    color: #fff;
    background: #2d3274;
}

#analytics-reject {
    color: #2d3274;
    background: #fff;
}

.analytics-consent {
    position: fixed;
    z-index: 9999;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 0;
}

.analytics-consent-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid #2d3274;
    border-radius: 5px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .25);
    color: #222;
    background: #fff;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.analytics-consent-content p {
    margin: 0;
}

.analytics-consent-content a {
    color: #005ea8;
    text-decoration: underline;
}

.analytics-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

@media (max-width: 980px) {
    body {
        margin: 0;
        padding: 0 10px;
        text-align: left;
    }

    #wrap {
        box-sizing: border-box;
        width: 100%;
        max-width: 955px;
        margin: 0 auto;
    }

    #ruta {
        display: block;
        float: none;
        box-sizing: border-box;
        width: 100%;
        padding: 6px 2px 2px;
        line-height: 1.4;
    }

    #mobile-menu-toggle {
        display: block !important;
    }

    body.mobile-menu-ready #left {
        display: none;
    }

    body.mobile-menu-ready #left.is-open {
        display: block;
    }

    #left,
    #cont {
        box-sizing: border-box;
        float: none;
        width: 100%;
        margin: 8px 0 0;
    }

    #left {
        padding: 0;
        font-size: 15px;
    }

    #menu {
        float: none;
        box-sizing: border-box;
        width: 100%;
        font-size: 14px;
    }

    #menu li a:link,
    #menu li a:visited,
    #menu li a:active {
        min-height: 42px;
        padding: 12px 10px;
    }

    #cont {
        min-height: 0;
        padding: 10px 14px 12px;
    }

    #banner,
    #wrapofert {
        display: none;
    }

    #footer {
        float: none;
        clear: both;
        padding: 10px 0 18px;
    }

    .wrapcont,
    .titu,
    div.tumnails,
    div.tumnails ul {
        float: none;
        width: 100%;
    }

    .wrapcont {
        overflow-wrap: anywhere;
    }

    div.tumnails ul li {
        box-sizing: border-box;
        width: calc(33.333% - 6px);
    }

    table {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0 6px;
        font-size: 16px;
    }

    #cont {
        padding: 10px;
    }

    #cont .page-heading {
        font-size: 22px;
    }

    #cont p,
    .wrapcont ul li {
        font-size: 15px;
        line-height: 1.55;
    }

    p.imgrigth,
    p.imgleft,
    p.imgleftp {
        float: none;
        width: auto;
        max-width: 100%;
        margin: 10px auto;
        text-align: center;
    }

    p.imgrigth img,
    p.imgleft img,
    p.imgleftp img,
    .titu img {
        float: none;
        height: auto;
    }

    div.tumnails ul li {
        float: none;
        display: inline-block;
        width: calc(50% - 7px);
        vertical-align: top;
    }

    input,
    select,
    textarea,
    .fbt {
        min-height: 44px;
        font-size: 16px;
    }

    textarea {
        min-height: 120px;
    }

    .contact-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form-actions li,
    .contact-form-actions .fbt {
        width: 100%;
    }

    .analytics-consent {
        right: 6px;
        bottom: 6px;
        left: 6px;
    }

    .analytics-consent-actions {
        flex-direction: column;
    }

    .analytics-consent-actions button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    div.tumnails ul li {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
}
