/* YSAN ORIGINAL ADIRE V25 */

.pkp_structure_footer_wrapper {
    position: relative !important;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(
        115deg,
        #0d1830 0%,
        #14233f 48%,
        #0e5b5f 100%
    ) !important;
    border-top: 4px solid #2fa3c4 !important;
}

/*
 * Original Adire artwork is now drawn into this canvas,
 * instead of being imitated with diagonal CSS lines.
 */
.pkp_structure_footer_wrapper
.ysan-original-adire {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.pkp_structure_footer_wrapper > :not(.ysan-original-adire) {
    position: relative;
    z-index: 1;
}

/* Keep the existing single OJS/YSAN footer readable. */
.pkp_structure_footer_wrapper .yj-rich-footer,
.pkp_structure_footer_wrapper .pkp_structure_footer {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.pkp_structure_footer_wrapper h2,
.pkp_structure_footer_wrapper h3,
.pkp_structure_footer_wrapper strong {
    color: #ffffff;
}

.pkp_structure_footer_wrapper p,
.pkp_structure_footer_wrapper a {
    color: #e9f4f8;
}

/* Reintroduce the original multicolour textile strip. */
.pkp_structure_footer_wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 3;
    background: repeating-linear-gradient(
        90deg,
        #1d3257 0 22px,
        #2fa3c4 22px 38px,
        #ffffff 38px 42px,
        #e0562a 42px 50px,
        #ffffff 50px 54px,
        #2fa3c4 54px 70px
    );
}

/* Remove the generic substitute, if still present. */
.ysan-direct-footer::before {
    background-image: none !important;
}

@media (max-width: 767px) {
    .pkp_structure_footer_wrapper
    .ysan-original-adire {
        opacity: .6;
    }
}

/* =====================================================
   YSAN_COMPACT_HEADER_20261030
   Public-facing OJS navigation and spacing correction.
   No changes to the Adire canvas or footer animation.
   ===================================================== */

.pkp_structure_head {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Reduce excessive masthead whitespace. */
.pkp_structure_head .pkp_site_name_wrapper {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

.pkp_structure_head .pkp_site_name {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

.pkp_structure_head .pkp_site_name a {
    min-height: 58px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 10px !important;
}

.pkp_structure_head .pkp_site_name a::before {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 54px !important;
    background-size: contain !important;
}

.pkp_structure_head .pkp_site_name a::after {
    font-size: clamp(15px,1.45vw,21px) !important;
    line-height: 1.23 !important;
}

/* Single compact teal navigation bar. */
.pkp_structure_head .yj-nav22 {
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_structure_head .yj-nav22-links a {
    min-height: 43px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

/* On logged-out public pages, the custom nav supplies
   Home, Search, Login, Issues, Archives and submission links.
   Remove the redundant pale native navigation row.
   Logged-in editorial users retain their native controls. */
body.ysan-compact-public-header
.pkp_structure_head .pkp_site_nav_menu {
    display: none !important;
}

/* Keep the masthead compact on tablets and phones. */
@media (max-width: 900px) {
    .pkp_structure_head .pkp_site_name_wrapper {
        padding: 5px 10px !important;
    }

    .pkp_structure_head .pkp_site_name a {
        min-height: 49px !important;
    }

    .pkp_structure_head .pkp_site_name a::before {
        width: 38px !important;
        height: 44px !important;
        flex-basis: 38px !important;
    }

    .pkp_structure_head .pkp_site_name a::after {
        font-size: 14px !important;
    }
}

/* YSAN_COMPACT_HEADER_END */
