/* OPUS CSS stylesheet for the OJS default theme */
/* default nav bar color #002c40 */


/* ==========================================
   JOURNAL LOGO â€“ HEADER
   ========================================== */

/* Desktop */
@media (min-width: 992px) {
    .pkp_site_name .is_img img {
    height: 200px !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
        object-fit: contain;
    }
}

/* Tablet and mobile */
@media (max-width: 991.98px) {
    .pkp_site_name .is_img img {
        height: 60px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
}

@media (max-width: 767px) {
    .pkp_page_article .main_entry,
    .pkp_page_article .entry_details {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Remove vertical scrolling for mathjax equations */
mjx-container {
    overflow-y: hidden;
}

/* Remove publication date of issue since the date corresponds to when it was opened, not closed */
div .heading .published {
  display: none;
}

/* Make Sign in link bold */
div#navigationUserWrapper > ul > li > a {
	font-weight: bold;
}

/* Stylize the text associated with the issue image */
.description {
  font-style: italics;
}


/* ------------ */
/* Splash image */
/* ------------ */

/* resize splash image based on screen size */
@media (max-width:991.98px) {
    ul#navigationPrimary > li > a {
      font-size: 1em;
    }
    div.pkp_site_name {
      height: 40px;
      margin-bottom: 1em;
      display: flex;
      align-items: center;
    }
    div.pkp_site_name .is_text {
      font-size: 1.8em;
    }
    div.pkp_site_name .is_img img {
      max-height: 30px;
    }
}

@media (min-width:992px) and (max-width:1199.98px) {
    div.pkp_site_name {
      height: 170px;
      margin-bottom: 0.4em;
      display: flex;
      align-items: flex-end;
    }
    div.pkp_site_name .is_img img {
        max-height: 60px;
    }
    ul#navigationPrimary > li > a {
      font-size: 13px;
    }
    div.pkp_site_name .is_text {
      font-size: 1em;
    }
}

@media (min-width:1200px) {
    div.pkp_site_name {
      height: 240px;
      margin-bottom: 0.8em;
      display: flex;
      align-items: flex-end;
    }
    div.pkp_site_name .is_img img {
        max-height: 60px;
    }
    ul#navigationPrimary > li > a {
      font-size: 1.1em;
    }
    div.pkp_site_name .is_text {
      font-size: 1.2em;
    }
}

/* ==========================================
   HOMEPAGE BLOCKS
   ========================================== */

/* Homepage description */
.homepage_about {
    padding: 1.5em;
    background: #f7f8fa;
    border-left: 3px solid #004f73;
    margin-bottom: 2em;
}

/* ==========================================
   PRIMARY NAVIGATION
   ========================================== */

ul#navigationPrimary > li > a {
    font-size: 1.1em;
    font-weight: 600;
    padding: 0.8em 1em;
    transition: color 0.2s ease;
}

/* Hover */
ul#navigationPrimary > li > a:hover {
    text-decoration: none;
}

/* Focus clavier */
ul#navigationPrimary > li > a:focus {
    outline: 2px solid #174B2B;
    outline-offset: 3px;
}

/* ==========================================
   DROPDOWN NAVIGATION
   ========================================== */

ul#navigationPrimary ul li a {
    font-size: 1em;
    font-weight: 500;
    background-color: #fff;
}

/* Hover */
ul#navigationPrimary ul li a:hover {
    background-color: #f2f7f2;
    text-decoration: none;
}

/* ==========================================
   PRIMARY NAVIGATION â€“ TRANSPARENT BACKGROUND
   ========================================== */

.pkp_navigation_primary_wrapper {
    background: transparent !important;
    background-color: transparent !important;
}

.pkp_navigation_primary {
    background: transparent !important;
}

ul#navigationPrimary {
    background: transparent !important;
}

/* --------- */
/* Side menu */
/* --------- */

/* Use sticky scrolling */
.pkp_structure_sidebar.left {
  /* position: sticky; */
  top: 0;
}

div.pkp_block.block_custom p {
  line-height: normal;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}
div.pkp_block.block_custom h2 {
  color: #000;
  font-weight: normal;
}
div.pkp_block.block_custom#customblock-about p {
  color: #666;
  font-size: 100%;
}


/* --------------------------------------------- */
/* Increase padding for h1 header at top of page */
/* --------------------------------------------- */

h1.page_title {
  padding-top: 0.9em;
}


/* ----------------------------- */
/* Hide navigational breadcrumbs */
/* ----------------------------- */

nav.cmp_breadcrumbs {
  display: none;
}


/* -------------- */
/* Remove borders */
/* -------------- */

.pkp_structure_main:after, .pkp_structure_main:before {
  background-color: transparent;
}

/*
.pkp_structure_main:after, .obj_issue_toc .galleys:before, .obj_issue_toc .section:before {display:none;}
*/



/* ------ */
/* Footer */
/* ------ */

.footerLink {
  color: inherit;
  text-decoration: none;
  font-weight: normal;
}
.footerLink:hover {
  color: inherit;
  text-decoration: underline;
}

/* Don'y display the default PKP logo */

.pkp_brand_footer {
  display: none;
}



/* ---------------------- */
/* ---- ARTICLE PAGE ---- */
/* ---------------------- */

/* remove "Author" under author name */
.userGroup {
  display: none !important;
}



/* ----------------------------------- */
/* Remove the journal sidebar on right */
/* ----------------------------------- */

.pkp_page_article .pkp_structure_sidebar.left {
  display: none;
}

/* Redimension the principal content block */
.pkp_page_article .pkp_structure_main {
  width: 100%;
}

/* Remove borders */
.pkp_page_article .pkp_structure_main::before,.pkp_page_article .pkp_structure_main::after {
  background-color: transparent;
}

/* Redimension the text block */
.pkp_page_article .main_entry {
  width: 70%;
  padding-left: 2rem;
  padding-right: 2rem;
}
.pkp_page_article .entry_details {
  width: 30%;
  /* position: sticky;*/
  /* position: -webkit-sticky; */
  top: 0;
}

/* Add borders to left and right */
.pkp_page_article .pkp_structure_content {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}


/* ==========================================
   ARTICLE TABLE OF CONTENTS
   ========================================== */

#article-toc {
    margin-top: 2em;
    margin-bottom: 2em;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9fb;
    border-radius: 5px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 100;
}

/* Sommaire fixÃ© pendant le dÃ©filement */
#article-toc.is-fixed {
    position: fixed;
    margin-top: 0;
    margin-bottom: 0;
}

/* Sommaire arrÃªtÃ© Ã  la fin de la zone de lecture */
/* #article-toc.is-bottom {
    position: absolute;
    bottom: 0;
    top: auto;
    margin-top: 0;
    margin-bottom: 0;
} */

#article-toc h3 {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 1em;
}

#article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#article-toc li {
    margin-bottom: 0.6em;
    line-height: 1.4;
}

#article-toc li.toc-level-3 {
    padding-left: 12px;
    font-size: 0.95em;
}

#article-toc li.toc-level-4 {
    padding-left: 24px;
    font-size: 0.9em;
}

#article-toc a {
    color: #444;
    text-decoration: none;
}

#article-toc a:hover {
    color: #004f73;
    text-decoration: underline;
}

#article-toc a.active {
    color: #004f73;
    font-weight: bold;
}

/* Positionnement des titres lors de la navigation */

#jatsParserFullText h2.article-section-title,
#jatsParserFullText h3.article-section-title,
#jatsParserFullText h4.article-section-title {
    scroll-margin-top: 20px;
}

.pkp_page_article .entry_details {
    align-self: stretch;
}



/* -------------------- */
/* Article custom table */
/* -------------------- */

.pkp_page_article .pkp_structure_main table, .jatsParser__modal table {
  border-collapse: collapse;
  word-wrap: break-word;
  table-layout: fixed;
  width: 100%;
}
.pkp_page_article .pkp_structure_main th, .jatsParser__modal th, .pkp_page_article .pkp_structure_main td, .jatsParser__modal td {
  border: solid 1px #aaa;
  vertical-align: top;
  padding: 5px 15px;
}
.pkp_page_article .pkp_structure_main tr:nth-child(odd), .jatsParser__modal tr:nth-child(odd) {
  background: #fff;
}
.pkp_page_article .pkp_structure_main tr:first-child, .jatsParser__modal tr:first-child {
  background: #f2f2f2; /* #004f73; */
  color: #000; /* #ffffff;*/
  padding: 5px 15px;
}
.pkp_page_article .pkp_structure_main table caption {
  text-align: justify;
  padding-bottom: 1em;
  padding-top: 2em;
  font-size: 1em;
  line-height: 1.5;
}

/* ---------------------- */
/* Horizontal scrolling â€“ Tables */
/* ---------------------- */

.pkp_page_article .pkp_structure_main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}


/* ---------------------- */
/* Article figure caption */
/* ---------------------- */

.pkp_page_article .pkp_structure_main figure p {
  font-size: 1em;
  line-height: 1.5;
}

/* Padding above figure */
.pkp_page_article .pkp_structure_main figure div {
  padding-top: 2em;
}

/* abstract */
.pkp_page_article .pkp_structure_main section.abstract {
  background: #f2f2f2;
}

/* ---------------------- */
/* Figures popup / custom header js*/
/* ---------------------- */


#figure-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 30px;
}

#figure-lightbox.active {
    display: flex;
}

#figure-lightbox img {
    max-width: 95%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

figure img,
.figure img {
    cursor: zoom-in;
}

/* ==========================================
   URLs HYPHENATION
   ========================================== */

a {
    overflow-wrap: anywhere;
}

/* ==========================================
   MATHS & SYMBOLS
   ========================================== */

/* MathJax */
mjx-container[display="true"] {
    font-size: 95% !important;
	display: block;
    max-width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* JATS / MathML */
disp-formula {
    font-size: 95% !important;
	display: block;
    max-width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

disp-formula math {
    display: block;
    max-width: none;
}

/* ==========================================
   NAVIGATION â€“ TRANSPARENCE
   ========================================== */

.pkp_site_nav_menu,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary,
ul#navigationPrimary {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Suppression des Ã©ventuels fonds gÃ©nÃ©rÃ©s */

.pkp_site_nav_menu::before,
.pkp_site_nav_menu::after,
.pkp_navigation_primary_row::before,
.pkp_navigation_primary_row::after,
.pkp_navigation_primary_wrapper::before,
.pkp_navigation_primary_wrapper::after {
    background: transparent !important;
}

/* ==========================================
   Latest articles - Homepage
   OJS 3.5 / Default Theme
   ========================================== */

/* Masquer le Current Issue uniquement
   lorsque le chargement des articles a réussi */

body.pkp_page_index.has-latest-articles .current_issue {
    display: none !important;
}

/* Conteneur principal */

#latest-articles {
    margin: 2rem 0 3rem;
}

/* Titre de la rubrique */

#latest-articles .latest-articles__heading {
    margin-bottom: 1.5rem;
}

/* Chaque article */

.latest-articles__item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #ddd;
}

/* Titre de l'article */

/* .latest-articles__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 600;
}

.latest-articles__title a {
    color: inherit;
    text-decoration: none;
}

.latest-articles__title a:hover {
    text-decoration: underline;
} */

/* Titre des articles */

#latest-articles .latest-articles__title,
#latest-articles .latest-articles__title a {
    color: #3558C1 !important;
    text-decoration: none;
}

#latest-articles .latest-articles__title a:hover {
    color: #3558C1 !important;
    text-decoration: underline;
}

/* Auteurs, rubrique et date */

.latest-articles__meta {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
}

/* Résumé : trois lignes maximum */

.latest-articles__summary {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;

    overflow: hidden;
}

/* Espacement et adaptation mobile */

@media (max-width: 767px) {
    #latest-articles {
        margin: 1.5rem 0;
    }

    .latest-articles__item {
        padding: 1rem 0;
    }

    .latest-articles__title {
        font-size: 1.1rem;
    }
}
