/* =========================================================
   Inżynier Budownictwa — OJS 3.6
   Menu i stopka
   ========================================================= */

/* ---------- Nagłówek ---------- */

.pkp_structure_head {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: none;
}

.pkp_site_name {
    padding-top: 22px;
    padding-bottom: 22px;
}

.pkp_site_name .is_img img {
    max-height: 90px;
    width: auto;
}

/* ---------- Menu główne ---------- */

.pkp_navigation_primary_wrapper {
    background: #fff;
    border-top: 1px solid #eee;
}

.pkp_navigation_primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 24px;
    padding: 0;
}

.pkp_navigation_primary > li {
    margin: 0;
}

.pkp_navigation_primary > li > a {
    display: block;
    padding: 17px 0;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .025em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #a92027;
    border-bottom-color: #a92027;
    text-decoration: none;
}

/* Aktywna pozycja */
.pkp_navigation_primary > li.current > a,
.pkp_navigation_primary > li > a[aria-current="page"] {
    color: #a92027;
    border-bottom-color: #a92027;
}

/* Menu użytkownika */
.pkp_navigation_user > li > a {
    font-size: 12px;
}

/* ---------- Stopka ---------- */

.pkp_structure_footer_wrapper {
    background: #f4f4f4;
    border-top: 1px solid #dedede;
}

.pkp_structure_footer {
    padding-top: 45px;
    padding-bottom: 30px;
}

.pkp_structure_footer .pkp_footer_content {
    color: #444;
    font-size: 14px;
    line-height: 1.75;
}

.pkp_structure_footer .pkp_footer_content p {
    margin: 0 0 7px;
}

.pkp_structure_footer .pkp_footer_content strong {
    color: #222;
    font-size: 15px;
    font-weight: 600;
}

.pkp_structure_footer a {
    color: #333;
    text-decoration: none;
}

.pkp_structure_footer a:hover {
    color: #a92027;
    text-decoration: underline;
}

/* Własna stopka dodana w edytorze */
.ib-footer {
    max-width: 1200px;
    margin: 0 auto;
}

.ib-footer__publisher {
    max-width: 650px;
}

.ib-footer__publisher strong {
    display: block;
    margin-bottom: 12px;
}

.ib-footer__copyright {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 12px;
}

/* ---------- Telefony i tablety ---------- */

@media (max-width: 991px) {
    .pkp_navigation_primary {
        gap: 0 15px;
    }

    .pkp_navigation_primary > li > a {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .pkp_site_name {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .pkp_site_name .is_img img {
        max-height: 65px;
    }

    .pkp_structure_footer {
        padding-top: 30px;
        padding-bottom: 25px;
    }

    .pkp_structure_footer .pkp_footer_content {
        font-size: 13px;
    }

    .ib-footer__publisher {
        max-width: 100%;
    }
}

/* =========================================================
   OJS — logo i menu w jednym wierszu
   ========================================================= */

@media (min-width: 992px) {

    .pkp_structure_head {
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
    }

    .pkp_head_wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    /* Logo po lewej */
    .pkp_site_name_wrapper {
        flex: 0 0 auto;
        width: auto;
    }

    .pkp_site_name {
        position: static;
        padding: 0;
        margin: 0;
    }

    .pkp_site_name .is_img img {
        max-height: 80px;
        width: auto;
    }

    /* Menu po prawej */
    .pkp_navigation_primary_wrapper {
        position: static;
        flex: 1 1 auto;
        width: auto;
        background: transparent;
        border: 0;
    }

    .pkp_navigation_primary {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0 20px;
        padding: 0;
        margin: 0;
    }

    .pkp_navigation_primary > li > a {
        padding: 12px 0;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }
}

@media (min-width: 992px) {

    /* Nagłówek na pełną szerokość */
    .pkp_head_wrapper {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        padding-left: 30px;
        padding-right: 30px;
    }

    /* Logo zajmuje tylko potrzebne miejsce */
    .pkp_site_name_wrapper {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }

    /* Menu wykorzystuje całą pozostałą szerokość */
    .pkp_navigation_primary_wrapper {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
    }

    .pkp_navigation_primary {
        width: 100%;
        max-width: none;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0 18px;
    }

    .pkp_navigation_primary > li {
        flex: 0 0 auto;
    }

    .pkp_navigation_primary > li > a {
        white-space: nowrap;
    }
}
/* =========================================================
   OJS — logo u góry, menu pod logo
   ========================================================= */

@media (min-width: 992px) {

    .pkp_head_wrapper {
        display: block;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        padding: 15px 30px 0;
    }

    /* Logo */
    .pkp_site_name_wrapper {
        display: block;
        width: 100%;
        max-width: none;
    }

    .pkp_site_name {
        position: static;
        display: block;
        padding: 0 0 20px;
        margin: 0;
    }

    .pkp_site_name .is_img img {
        max-height: 80px;
        width: auto;
    }

    /* Menu pod logo */
    .pkp_navigation_primary_wrapper {
        position: static;
        display: block;
        width: 100%;
        max-width: none;
        background: #fff;
        border-top: 1px solid #eee;
    }

    .pkp_navigation_primary {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: none;
        gap: 0 24px;
        padding: 0;
        margin: 0;
    }

    .pkp_navigation_primary > li {
        margin: 0;
    }

    .pkp_navigation_primary > li > a {
        padding: 17px 0;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* Usuń czarne tło aktywnej pozycji menu */
.pkp_navigation_primary > li.current > a,
.pkp_navigation_primary > li > a[aria-current="page"],
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a:active {
    background: transparent !important;
    background-color: transparent !important;
    color: #a92027 !important;
    border-bottom-color: #a92027;
}