/* =====================================================================
   LINGUASPHERE | Academic Pro OJS 3.2.x | Stylesheet v3.0 (layout-safe)
   12 November 2026
   Purpose: banner in normal document flow ABOVE the primary navigation;
   visible navbar; readable homepage; elegant article cards.
   Colors: navy #082653, gold #CDA044, white #FFFFFF.
   NOTE: CSS cannot generate author-country flags or registered DOIs.
   ===================================================================== */

:root {
  --ling-navy: #082653;
  --ling-navy-2: #061b3e;
  --ling-blue: #15549b;
  --ling-gold: #cda044;
  --ling-text: #25344a;
  --ling-muted: #62728a;
  --ling-line: #d8e2ef;
  --ling-panel: #f7f9fc;
  --ling-banner-height: clamp(176px, 23.5vw, 335px);
}

/* ---- Global design (site only; preserve OJS editors and controls) ---- */
body {
  background: #fff !important;
  color: var(--ling-text);
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px;
  line-height: 1.65;
}
body p, body li, body td { line-height: 1.65; }
body a { color: var(--ling-blue); }
body a:hover, body a:focus { color: var(--ling-navy); }
body a:focus-visible, body button:focus-visible { outline: 2px solid var(--ling-gold); outline-offset: 2px; }

/* Remove Academic Pro decorative dotted home background where present. */
body.pkp_page_index,
body.pkp_page_index .pkp_structure_page,
body.pkp_page_index .journal_index,
body.pkp_page_index .pkp_structure_content,
body.pkp_page_index .page_index_journal {
  background-color: #fff !important;
  background-image: none !important;
}
body.pkp_page_index .journal_index::before,
body.pkp_page_index .journal_index::after {
  background-image: none !important;
}

/* ---- Banner first, followed by the ORIGINAL navbar ----
   The banner URL is the journal's own publicly served OJS logo.
   The pseudo-element is an ordinary in-flow child of the main page wrapper,
   so no absolute positioning, navbar offset, or overlays are required.
   These rules affect ONLY the journal homepage with Academic Pro logo.
*/
body.pkp_page_index.pkp_op_index .pkp_structure_page,
body:has(.journal_index .site_logo) .pkp_structure_page {
  position: static !important;
}
body.pkp_page_index.pkp_op_index .pkp_structure_page::before,
body:has(.journal_index .site_logo) .pkp_structure_page::before {
  content: "" !important;
  display: block !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: clamp(145px, 25vw, 340px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background-color: #082653 !important;
  background-image: url("https://journal.unesa.ac.id/public/journals/137/pageHeaderLogoImage_en_US.png") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
  float: none !important;
  clear: both !important;
  z-index: auto !important;
}
/* Restore regular flow of the header: the menu must remain visible. */
body.pkp_page_index.pkp_op_index .pkp_structure_page > header.navbar,
body:has(.journal_index .site_logo) .pkp_structure_page > header.navbar {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  z-index: 30 !important;
  width: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}
/* Only hide the duplicated homepage logo, not logos on other pages. */
body.pkp_page_index.pkp_op_index .journal_index .site_logo,
body:has(.journal_index .site_logo) .journal_index .site_logo {
  display: none !important;
}
/* Ensure original summary/content is visible immediately after navigation. */
body.pkp_page_index.pkp_op_index .pkp_structure_content,
body:has(.journal_index .site_logo) .pkp_structure_content {
  position: relative !important;
  top: auto !important;
  transform: none !important;
  margin-top: 0 !important;
  z-index: 1 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ---- Primary navigation: stays directly below banner ---- */
.pkp_structure_page > header.navbar,
header.navbar.navbar-default {
  background: var(--ling-navy-2) !important;
  border-color: var(--ling-gold) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
header.navbar .navbar-brand,
header.navbar .navbar-nav > li > a,
header.navbar .navbar-header a { color: #fff !important; }
header.navbar .navbar-nav > li > a:hover,
header.navbar .navbar-nav > li > a:focus,
header.navbar .navbar-nav > .active > a,
header.navbar .navbar-nav > .open > a {
  background: #153968 !important;
  color: #fff !important;
}
header.navbar .dropdown-menu {
  background: #fff !important;
  border: 1px solid var(--ling-line);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(6,27,62,.12);
}
header.navbar .dropdown-menu a { color: var(--ling-navy) !important; }
header.navbar .dropdown-menu a:hover { background: var(--ling-panel); }

/* ---- Content typography: readable and uncluttered ---- */
.journal_index,
.pkp_structure_content,
.pkp_structure_main { font-size: 15px; }
.journal_index p, .journal_index li, .journal_index td {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.78 !important;
}
.journal_index h1, .journal_index h2, .journal_index h3,
.pkp_structure_main h1, .pkp_structure_main h2,
.pkp_structure_main h3 {
  color: var(--ling-navy) !important;
  line-height: 1.36;
}
.journal_index h1, .journal_index h2 { font-family: Georgia, 'Times New Roman', serif; }

/* ---- Article cards: OJS standard + Academic Pro common containers ----
   Cards style the current HTML; cannot produce new information by CSS.
   Broad .article or .obj_article_summary are scoped inside article lists.
*/
.pkp_page_issue .sections .articles > li,
.pkp_page_issue .sections .article,
.pkp_page_issue .cmp_article_list > li,
.pkp_page_issue .obj_article_summary,
.pkp_page_index .current_issue .articles > li,
.pkp_page_index .current_issue .article,
.pkp_page_index .current_issue .obj_article_summary,
.pkp_page_issue .article-summary,
.pkp_page_index .article-summary {
  background: #fff !important;
  border: 1px solid var(--ling-line) !important;
  border-left: 4px solid var(--ling-navy) !important;
  border-radius: 8px !important;
  padding: 17px 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 3px 10px rgba(8,38,83,.06) !important;
  overflow-wrap: anywhere;
}
/* Suppress accidental nested card frames. */
.pkp_page_issue .article .obj_article_summary,
.pkp_page_issue .articles > li .obj_article_summary,
.pkp_page_index .current_issue .article .obj_article_summary {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pkp_page_issue .sections .articles > li:hover,
.pkp_page_issue .obj_article_summary:hover,
.pkp_page_index .current_issue .obj_article_summary:hover {
  border-left-color: var(--ling-gold) !important;
  box-shadow: 0 6px 18px rgba(8,38,83,.11) !important;
}
.pkp_page_issue .obj_article_summary .title,
.pkp_page_issue .obj_article_summary .title a,
.pkp_page_index .current_issue .title,
.pkp_page_index .current_issue .title a,
.pkp_page_issue .articles .title a {
  color: var(--ling-navy) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}
.pkp_page_issue .obj_article_summary .authors,
.pkp_page_issue .obj_article_summary .pages,
.pkp_page_index .current_issue .authors {
  color: var(--ling-muted) !important;
  font-size: 13px !important;
}
.pkp_page_issue .obj_article_summary .galleys a,
.pkp_page_issue .obj_article_summary .galley_link,
.pkp_page_issue .articles .galley_link,
.pkp_page_index .current_issue .galleys a,
.pkp_page_index .current_issue .galley_link {
  display: inline-block;
  color: #fff !important;
  background: var(--ling-navy) !important;
  border: 1px solid var(--ling-navy) !important;
  padding: 7px 14px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
}
.pkp_page_issue .obj_article_summary .galleys a:hover,
.pkp_page_index .current_issue .galleys a:hover { background: #17487e !important; }

/* ---- Sidebar/quick links: preserve existing image links ---- */
.pkp_structure_sidebar .pkp_block,
.pkp_structure_sidebar .block,
#sidebar .pkp_block,
#sidebar .block {
  border: 1px solid var(--ling-line);
  border-radius: 7px;
  background: #fff !important;
  padding: 15px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 2px 7px rgba(8,38,83,.035);
}
.pkp_structure_sidebar img, #sidebar img { max-width: 100% !important; height: auto !important; }
.pkp_structure_sidebar .title, #sidebar .title {
  color: var(--ling-navy) !important;
  border-bottom: 2px solid var(--ling-gold);
  font-weight: 700;
  padding-bottom: 7px;
}

/* ---- Journal information tables, if editor inserts such a table ---- */
.ling-journal-information, .linguasphere-info-table {
  width: 100%; border-collapse: collapse; background: #fff;
}
.ling-journal-information td, .ling-journal-information th,
.linguasphere-info-table td, .linguasphere-info-table th {
  border: 1px solid var(--ling-line); padding: 10px 12px; vertical-align: top;
}
.ling-journal-information tr:nth-child(odd),
.linguasphere-info-table tr:nth-child(odd) { background: var(--ling-panel); }

/* Style existing flags only; do not infer author nationality/country. */
.ling-author-flag img, .linguasphere-author-flag img {
  width: 19px; height: 13px; object-fit: cover; margin-right: 4px;
  border-radius: 2px; vertical-align: -1px;
}

/* ---- Mobile/tablet: avoid giant header and horizontal overflow ---- */
@media (max-width: 767px) {
  body:has(.journal_index .site_logo) .pkp_structure_page::before,
  body.pkp_page_index.pkp_op_index .pkp_structure_page::before {
    height: clamp(100px, 28vw, 180px) !important;
  }
  body { font-size: 14px; }
  .journal_index p, .journal_index li { font-size: 14px !important; }
  .pkp_page_issue .obj_article_summary,
  .pkp_page_issue .sections .articles > li,
  .pkp_page_index .current_issue .obj_article_summary { padding: 12px 13px !important; }
  .pkp_page_issue .obj_article_summary .title a,
  .pkp_page_index .current_issue .title a { font-size: 15px !important; }
  header.navbar .navbar-brand { font-size: 13px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* --- Compact navigation and content protections --- */
header.navbar .navbar-collapse,
header.navbar .navbar-nav,
header.navbar .navbar-header {
  visibility: visible !important;
  opacity: 1 !important;
}
header.navbar .navbar-brand { max-width: 100%; }
header.navbar .navbar-nav > li > a { font-size: 14px; }
@media (min-width: 768px) {
  header.navbar .navbar-collapse { display: block !important; }
}
@media (max-width: 767px) {
  header.navbar .navbar-collapse:not(.in) { display: none; }
  header.navbar .navbar-toggle { display: block; }
}


/* =====================================================================
   v4 PATCH | Show the journal synopsis on HOME only
   Academic Pro may render the homepage's journal-index block ahead of
   inner pages. Keep the original banner/navigation, remove only its
   duplicate synopsis on Editorial Team, Reviewers, Articles, Archives,
   static pages, submissions, and other non-home page views.
   Scoped to non-index routes using standard OJS body classes.
   No changes to journal content/metadata or page templates.
   ===================================================================== */

/* Common OJS home-summary elements, when they occur on non-home pages. */
body:not(.pkp_page_index) .homepage_about,
body:not(.pkp_page_index) #homepageAbout,
body:not(.pkp_page_index) .homepage_about_section,
body:not(.pkp_page_index) .journal_description,
body:not(.pkp_page_index) #journalDescription,
body:not(.pkp_page_index) .journal_index .journal_summary,
body:not(.pkp_page_index) .journal_index .about_journal,
body:not(.pkp_page_index) .journal_index .about-journal {
  display: none !important;
}

/* Academic Pro's homepage introduction/logo block, if repeated before
   the actual page content. Require the logo inside it to avoid hiding
   a regular article or policy page container accidentally. */
body:not(.pkp_page_index) .journal_index:has(.site_logo) {
  display: none !important;
}

/* Other common template placements of the standalone home synopsis.
   Constrain to content positioned directly inside the site-wide wrapper;
   leave real editorial, article, issue, and submission content intact. */
body:not(.pkp_page_index) .pkp_structure_page > .homepage_about,
body:not(.pkp_page_index) .pkp_structure_page > #homepageAbout,
body:not(.pkp_page_index) .pkp_structure_content > .homepage_about {
  display: none !important;
}

/* Don't use fixed/absolute positioning for inner-page main content. */
body:not(.pkp_page_index) .pkp_structure_main {
  top: auto !important;
  transform: none !important;
}

/* LINGUASPHERE: scoped homepage layout cleanup. Append to working v4 CSS, not to old v5-v11 rules. */
body.pkp_page_index.pkp_op_index .lingu-home-final,
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-intro-final,
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  position: static !important;
  transform: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-intro-final {
  display: flex !important;
  align-items: flex-start !important;
  gap: 18px !important;
  margin: 0 0 14px !important;
}
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final {margin-top:0 !important;}
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final > h2 {margin:0 !important;}
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final table,
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final tbody,
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final tr,
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final td {
  height:auto !important; min-height:0 !important; position:static !important;
}
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final table {display:table !important;margin:0 !important;}
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final tbody {display:table-row-group !important;}
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final tr {display:table-row !important;}
body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final td {display:table-cell !important;vertical-align:top !important;}
/* Keep official metadata in OJS; hide duplicate summary only if our new home content is present. */
/* The homepage-only duplicate-summary fix is defined at the very end of this file. */
@media(max-width:650px) {
  body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-intro-final {flex-direction:column !important;}
  body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-cover-final {flex-basis:auto !important;max-width:160px !important;}
  body.pkp_page_index.pkp_op_index .lingu-home-final .lingu-info-final td {padding:8px 6px !important;font-size:12px !important;overflow-wrap:anywhere !important;}
}

/* =====================================================================
   LINGUASPHERE | HOME SUMMARY VISIBILITY FIX
   The homepage's legacy About Journal block is .journal_index.
   No :has() dependency on editor-preserved custom HTML classes.
   Scoped to the actual journal homepage; inner pages are unchanged.
   ===================================================================== */
body.pkp_page_index.pkp_op_index .journal_index {
  display: none !important;
}


/* =====================================================================
   LINGUASPHERE | FOOTER REFINEMENT | 12 November 2026
   Append-only update to the LAST WORKING homepage CSS.
   Scope: footer only. No navbar, banner, article, or metadata changes.
   ===================================================================== */

/* Use a calmer academic blue instead of near-black / patterned footer. */
body .pkp_structure_footer,
body footer.footer,
body footer#footer,
body .pkp_structure_page > footer {
  background-color: #234B69 !important;
  background-image: none !important;
  color: #ECF3F8 !important;
  border-top: 3px solid #CDA044 !important;
  box-shadow: none !important;
}

/* Keep nested theme wrappers from restoring the black pattern. */
body .pkp_structure_footer .pkp_footer_content,
body .pkp_structure_footer .pkp_structure_content,
body footer.footer .container,
body footer#footer .container {
  background: transparent !important;
  box-shadow: none !important;
}

/* Clean, readable information without changing any wording. */
body .pkp_structure_footer p,
body .pkp_structure_footer li,
body .pkp_structure_footer span,
body .pkp_structure_footer address,
body footer.footer p,
body footer.footer li,
body footer.footer span,
body footer.footer address,
body footer#footer p,
body footer#footer li,
body footer#footer span,
body footer#footer address {
  color: #ECF3F8 !important;
  line-height: 1.75 !important;
}

/* Warm, accessible accents for the existing URLs. */
body .pkp_structure_footer a,
body footer.footer a,
body footer#footer a {
  color: #F0D39C !important;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body .pkp_structure_footer a:hover,
body .pkp_structure_footer a:focus,
body footer.footer a:hover,
body footer.footer a:focus,
body footer#footer a:hover,
body footer#footer a:focus {
  color: #FFFFFF !important;
  text-decoration: underline;
}

/* Reduce visual clutter for conventional OJS footer text containers. */
body .pkp_structure_footer .pkp_footer_content,
body footer.footer .container,
body footer#footer .container {
  padding-top: 18px;
  padding-bottom: 18px;
}

/* =====================================================================
   LINGUASPHERE | FOOTER CONSISTENCY PATCH | 2026-11-12
   Included after original, working journal stylesheet.
   Only footer containers and their children. No banner/navbar modifications.
   ===================================================================== */
:root {
  --ling-footer-bg: #234b69;
  --ling-footer-text: #ecf3f8;
  --ling-footer-link: #f0d39c;
  --ling-footer-gold: #cda044;
}

/* Different OJS Academic Pro page templates may place the footer inside
   a differently named wrapper. Cover semantic footer and common containers. */
html body footer,
html body footer.footer,
html body footer#footer,
html body .pkp_structure_footer,
html body .pkp_structure_page > .footer,
html body .pkp_structure_page > #footer,
html body .pkp_structure_page .site-footer,
html body .pkp_structure_page .footer-area,
html body .pkp_structure_page .footer-wrapper {
  background: var(--ling-footer-bg) !important;
  background-color: var(--ling-footer-bg) !important;
  background-image: none !important;
  color: var(--ling-footer-text) !important;
  border-top: 3px solid var(--ling-footer-gold) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Neutralize dark pattern backgrounds on theme-specific inner wrappers. */
html body footer .container,
html body footer .container-fluid,
html body footer .row,
html body footer .pkp_footer_content,
html body footer .pkp_structure_content,
html body .pkp_structure_footer .container,
html body .pkp_structure_footer .container-fluid,
html body .pkp_structure_footer .row,
html body .pkp_structure_footer .pkp_footer_content,
html body .pkp_structure_page > .footer .container,
html body .pkp_structure_page .site-footer .container,
html body .pkp_structure_page .footer-area .container,
html body .pkp_structure_page .footer-wrapper .container {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body footer :is(p, li, span, address, small, strong, em, i, h1, h2, h3, h4, h5, h6),
html body .pkp_structure_footer :is(p, li, span, address, small, strong, em, i, h1, h2, h3, h4, h5, h6),
html body .pkp_structure_page > .footer :is(p, li, span, address, small, strong, em, i),
html body .pkp_structure_page .site-footer :is(p, li, span, address, small, strong, em, i),
html body .pkp_structure_page .footer-area :is(p, li, span, address, small, strong, em, i) {
  color: var(--ling-footer-text) !important;
  text-shadow: none !important;
}

html body footer a,
html body .pkp_structure_footer a,
html body .pkp_structure_page > .footer a,
html body .pkp_structure_page .site-footer a,
html body .pkp_structure_page .footer-area a,
html body .pkp_structure_page .footer-wrapper a {
  color: var(--ling-footer-link) !important;
  text-decoration: none;
  overflow-wrap: anywhere;
}
html body footer a:hover,
html body footer a:focus,
html body .pkp_structure_footer a:hover,
html body .pkp_structure_footer a:focus,
html body .pkp_structure_page > .footer a:hover,
html body .pkp_structure_page > .footer a:focus,
html body .pkp_structure_page .site-footer a:hover,
html body .pkp_structure_page .site-footer a:focus,
html body .pkp_structure_page .footer-area a:hover,
html body .pkp_structure_page .footer-area a:focus {
  color: #ffffff !important;
  text-decoration: underline;
}
