@import url(https://open.lnu.se/_fonts/sourcesanspro_600.css);
@import url(https://open.lnu.se/_fonts/sourcesanspro.css);

/* Specifik SJOVS-funktionalitet */
.item.author_bios {display: none;}
.online_first .notice {
    display: none;
}


/* ANvänd Source Sans Pro-typsnittet */
body,
p,
h1, h2, h3, h4, h5, h6,
li,
a,
.obj_article_summary .subtitle,
.obj_article_summary > .title a,
#navigationPrimary a,
.pkp_site_name,
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3
{
  font-family: 'Source Sans Pro', sans-serif !important;
}

/* Fixa ordningen på elementen */
.page_index_journal {
    display: flex;
    flex-direction: column;
}

.page_index_journal > br {
    display: none;
}

.homepage_image {
    order: 1;
}

.obj_issue_toc.online_first_issue_toc {
    order: 2;
}

.current_issue {
    order: 3;
}

.homepage_about {
    order: 4;
}

.homepage_about h2 {
    display: none;
}

.additional_content {
    order: 5;
}

/* Egen rubrik för current issue */
.current_issue > h2 {
    visibility: hidden;
    position: relative;
    top: -2.143rem;
}

.current_issue > h2::after {
    content: "CURRENT ISSUE";
    visibility: visible;
    display: block;
}

.current_issue .obj_issue_toc .heading {
    display: none;
}

.current_issue_title::before {
    content: "This issue is open, and further articles will be added as they become ready for publication.";
    display: block;
    font-weight: normal;
    margin-bottom: 1em;
    position: relative;
    top: -2rem;
}

/* A lighly coloured background of the area where the published papers will be visible */
.pkp_structure_main {
    background-color: #f4fafe !important;
}



.obj_issue_toc .galleys>h2, .obj_issue_toc .section>h2, .obj_issue_toc .galleys>h3, .obj_issue_toc .section>h3 {
    background: #f4fafe !important;
}

/*.pkp_site_name {
    visibility: hidden;
}*/

.pkp_site_name a.is_img {
    display: inline-block;
    background: none;
}

.pkp_site_nav_menu {
    /*background-color: #0ba6bf;*/
    background-color: #f4fafe; /*#04a8ce;*/
}

.pkp_structure_head {
    border-bottom: 1px solid #ddd;
}

#customblock-why-publish {
    display: none;
}

@media (min-width: 1200px) {
    .pkp_structure_main {
        width: 858px !important;
    }

    .pkp_site_name {
        visibility: visible;
    }
    
    .pkp_site_nav_menu {
        /* position: absolute; */
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        /* background: transparent; */
        border-style: solid none;
        border-width: 1px 0;
        border-color: #fff transparent;
        padding: 0 1rem;
    }


}

@media (min-width: 992px) {
    /* Flytta upp första blocket och main */
    body:not(.pkp_page_index) .pkp_structure_main {
        position: relative;
        top: -2.143rem;
    }
    
    .block_custom:first-child {
        position: relative;
        top: -2.143rem;
    }
    
    .has_site_logo .pkp_head_wrapper {
        position: relative; 
        padding: 0;
        /* height: 291px; */
    }

    .pkp_site_name_wrapper {
        /* position: absolute; */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    .pkp_site_name .is_img {
        margin: 0;
    }

    .pkp_site_name .is_img img {
        max-height: unset;
    }



    .pkp_site_nav_menu a:hover,
    .pkp_site_nav_menu a:focus {
        text-decoration: unset;
    }

    .pkp_navigation_user_wrapper {
        position: fixed;
    }


    .pkp_navigation_primary > li > a {
        color: #000;
        border-bottom: unset;
    }

    .pkp_navigation_primary > li > a:hover {
        color: #000;
        border-color: unset;
    }

    .pkp_navigation_primary > li > a:focus {
        color: #000;
        background: unset;
    }

    .block_custom {
        padding: 1rem;
    }

    .block_custom .block_custom {
        padding: 0;
        position: static;
        top: unset;
        border: unset;
    }
}

@media (max-width: 991px) {
    /* Måste ha samma (eller högre) höjd än a.is_img */
    .pkp_site_name_wrapper {
        height: 240px;
    }

    .pkp_site_nav_menu {
        position: absolute;
        top: 2.857rem;
        left: 0;
        width: 100%;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .pkp_site_name {
        text-align: center;
    }
    
    .pkp_site_name a.is_img img {
        display: none;
    }

    .pkp_site_name a.is_img {
        display: inline-block;
        width: 200px;
        height: 200px;
        background-image: url('https://open.lnu.se/_images/SJOVS_Logo_fylld.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .homepage_image {
        display: none;
    }

    #customblock-why-publish {
        display: block;
    }

    .block_custom {
        border: unset;
        border-top: 1px solid black;
    }

    .block_custom .block_custom {
        padding: 0;
        position: static;
        top: unset;
        border: unset;
    }
                 
}

.pkp_structure_head {
    border-bottom: unset;
}

.pkp_site_nav_menu a {
    color: #000;
}

.pkp_site_name .is_img img {
    max-height: unset;
}

.block_custom .social-icon {
    width: 26px;
    height: 26px;
    vertical-align: middle;
    margin-right: 6px;
}

.block_custom .publisher-icon {
    width: 99px;
    height: 26px;
    vertical-align: middle;
}
               

/* About-blocket */
#customblock-about-the-journal {
/*  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;*/
}

/* Submission-blocket */
.block_make_submission {
    padding: 1px;
}

.block_make_submission .content {
    display: flex;
    justify-content: center;
}

.block_make_submission .content .block_make_submission_link {
    /*width: 100%;*/
    /*display: inline-flex;*/
    /*align-items: center;*/
    text-align: center;
    background-color: #ffffff;
    color: #0077b5;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.block_make_submission .content .block_make_submission_link:hover {
    background-color: #005582;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.block_make_submission_link::before {
    content: "📝";
    margin-right: 8px;
}

.main_entry .item.downloads_chart {
    display: none;
}

.obj_article_details .row {
    display: flex;
}
