/* Cambodian Journal of English Language Teaching (CJELT)
   Public OJS journal stylesheet
   Upload in: Settings > Website > Appearance > Advanced > Journal style sheet
*/

:root {
  --cjelt-blue: #003B7A;
  --cjelt-blue-dark: #002B59;
  --cjelt-blue-light: #EAF2FB;
  --cjelt-teal: #1FAFBA;
  --cjelt-header-blue: #124FCE;
  --cjelt-nav-teal: #147C9E;
  --cjelt-nav-blue: #0F57B7;
  --cjelt-red: #B21F2D;
  --cjelt-gold: #C69A2D;
  --cjelt-text: #222222;
  --cjelt-muted: #666666;
  --cjelt-border: #D9E1EA;
  --cjelt-bg: #FFFFFF;
  --cjelt-soft-bg: #F7F9FC;
}

html,
body {
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  color: var(--cjelt-text);
  background: var(--cjelt-bg);
  font-size: 16px;
  line-height: 1.6;
}

body {
  letter-spacing: 0;
}

a,
a:visited {
  color: var(--cjelt-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--cjelt-red);
}

h1,
h2,
h3,
h4,
h5,
h6,
.page_title,
.obj_article_details .page_title,
.cmp_breadcrumbs,
.pkp_block .title {
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  color: var(--cjelt-blue-dark);
  letter-spacing: 0;
}

h1,
.page_title,
.obj_article_details .page_title {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.35;
  margin-top: 1.8rem;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-top: 1.4rem;
}

p,
li {
  font-size: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header and site identity */
.pkp_structure_head {
  background: linear-gradient(105deg, var(--cjelt-teal) 0%, #1D83D8 52%, var(--cjelt-header-blue) 100%);
}

.pkp_head_wrapper {
  background: transparent;
}

.pkp_site_name,
.pkp_site_name_wrapper {
  padding-top: 2rem;
  padding-bottom: 2rem;
  overflow: visible;
}

.pkp_site_name,
.pkp_site_name a,
.pkp_site_name .is_img img {
  color: #FFFFFF;
}

.pkp_site_name a {
  text-decoration: none;
}

.pkp_site_name .is_img,
.pkp_site_name a.is_img {
  display: inline-flex !important;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
}

.pkp_site_name .is_img img,
.pkp_site_name a.is_img img {
  display: block !important;
  width: auto;
  max-width: min(860px, 92vw);
  max-height: 104px;
  visibility: visible !important;
  opacity: 1 !important;
}

.pkp_site_name .is_text {
  font-weight: 700;
  color: #FFFFFF;
}

/* Primary navigation */
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper {
  background: transparent !important;
  border-top: 0;
  border-bottom: 0;
}

.pkp_site_nav_menu,
.pkp_site_nav_menu .pkp_navigation_primary,
.pkp_navigation_primary,
.pkp_navigation_user {
  background: transparent !important;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:visited,
.pkp_navigation_primary ul a,
.pkp_navigation_user > li > a {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a[aria-expanded="true"],
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.pkp_navigation_primary ul {
  background: #FFFFFF;
  border: 1px solid var(--cjelt-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.pkp_navigation_primary ul a,
.pkp_navigation_primary ul a:visited {
  color: var(--cjelt-blue-dark);
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  color: #FFFFFF;
  background: var(--cjelt-nav-blue);
}

/* Layout */
.pkp_structure_content,
.pkp_structure_footer,
.pkp_head_wrapper,
.pkp_navigation_primary_wrapper {
  box-sizing: border-box;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.pkp_structure_content {
  width: calc(100% - 48px);
}

.pkp_structure_page,
.pkp_structure_body,
.pkp_structure_content,
.pkp_structure_main {
  border: 0 !important;
  box-shadow: none !important;
}

.pkp_structure_page:before,
.pkp_structure_page:after,
.pkp_structure_body:before,
.pkp_structure_body:after,
.pkp_structure_content:before,
.pkp_structure_content:after,
.pkp_structure_main:before,
.pkp_structure_main:after {
  display: none !important;
  content: none !important;
}

.pkp_structure_main {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding-top: 0.85rem;
  padding-bottom: 2.5rem;
}

.pkp_structure_content {
  background: #FFFFFF;
}

.pkp_structure_content > *:first-child,
.pkp_structure_main > *:first-child {
  margin-top: 0 !important;
}

.pkp_structure_content hr,
.pkp_structure_main hr {
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.pkp_structure_sidebar {
  font-size: 0.95rem;
}

.pkp_block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--cjelt-border);
}

.pkp_block .title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cjelt-blue);
  margin-bottom: 0.65rem;
}

.pkp_block ul {
  padding-left: 1.2rem;
}

/* Buttons and calls to action */
.cmp_button,
.cmp_form .buttons button,
.page_search .submit button,
.obj_galley_link,
.block_make_submission a,
.pkp_page_index .cmp_button,
button.submit,
input[type="submit"] {
  display: inline-block;
  border: 1px solid var(--cjelt-blue);
  border-radius: 6px;
  background: var(--cjelt-blue);
  color: #FFFFFF !important;
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  line-height: 1.25;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cmp_button:hover,
.cmp_button:focus,
.cmp_form .buttons button:hover,
.cmp_form .buttons button:focus,
.page_search .submit button:hover,
.page_search .submit button:focus,
.obj_galley_link:hover,
.obj_galley_link:focus,
.block_make_submission a:hover,
.block_make_submission a:focus,
button.submit:hover,
button.submit:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--cjelt-blue-dark);
  border-color: var(--cjelt-blue-dark);
  color: #FFFFFF !important;
}

.obj_galley_link {
  border-radius: 5px;
  padding: 0.4rem 0.7rem;
}

/* Announcements and issue/article lists */
.cmp_announcements,
.obj_announcement_summary,
.obj_issue_summary,
.obj_article_summary {
  border-bottom: 1px solid var(--cjelt-border);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.obj_announcement_summary .title,
.obj_issue_summary .title,
.obj_article_summary .title {
  color: var(--cjelt-blue-dark);
  font-weight: 700;
}

.obj_announcement_summary .date,
.obj_article_summary .authors,
.obj_article_summary .pages,
.obj_issue_summary .series {
  color: var(--cjelt-muted);
}

.current_issue,
.additional_content,
.page_index_journal .homepage_image {
  margin-bottom: 2rem;
}

.current_issue h2 {
  border-bottom: 3px solid var(--cjelt-blue);
  padding-bottom: 0.45rem;
}

/* Article details */
.obj_article_details .authors,
.obj_article_details .item.doi,
.obj_article_details .item.keywords,
.obj_article_details .item.abstract {
  margin-bottom: 1.3rem;
}

.obj_article_details .label {
  color: var(--cjelt-blue);
  font-weight: 700;
}

.obj_article_details .abstract {
  line-height: 1.65;
}

.obj_article_details .item.references {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
  border: 1px solid var(--cjelt-border);
  border-radius: 5px;
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cjelt-blue);
  outline: 2px solid var(--cjelt-blue-light);
}

/* Footer */
.pkp_structure_footer_wrapper {
  background: #FFFFFF;
  color: var(--cjelt-text);
  border-top: 1px solid var(--cjelt-border);
}

.pkp_structure_footer,
.pkp_structure_footer p,
.pkp_structure_footer li {
  color: var(--cjelt-text);
}

.pkp_structure_footer a,
.pkp_structure_footer a:visited {
  color: var(--cjelt-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pkp_structure_footer a:hover,
.pkp_structure_footer a:focus {
  color: var(--cjelt-red);
}

.pkp_structure_footer h1,
.pkp_structure_footer h2,
.pkp_structure_footer h3,
.pkp_structure_footer h4,
.pkp_structure_footer .title {
  color: var(--cjelt-blue);
}

/* Custom CJELT content blocks */
.cjelt-card,
.cjelt-callout,
.cjelt-sidebar-box {
  border: 1px solid var(--cjelt-border);
  border-radius: 8px;
  background: var(--cjelt-soft-bg);
  padding: 1rem;
  margin: 1rem 0;
}

.cjelt-callout {
  border-left: 5px solid var(--cjelt-blue);
  background: var(--cjelt-blue-light);
}

.cjelt-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.cjelt-button,
.cjelt-button:visited {
  display: inline-block;
  border-radius: 6px;
  background: var(--cjelt-blue);
  color: #FFFFFF !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1rem;
}

.cjelt-button:hover,
.cjelt-button:focus {
  background: var(--cjelt-blue-dark);
  color: #FFFFFF !important;
}

.cjelt-button.secondary {
  background: #FFFFFF;
  color: var(--cjelt-blue) !important;
  border: 1px solid var(--cjelt-blue);
}

.cjelt-button.secondary:hover,
.cjelt-button.secondary:focus {
  background: var(--cjelt-blue-light);
  color: var(--cjelt-blue-dark) !important;
}

/* Existing custom class from your uploaded file */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0 26px;
}

/* Mobile */
@media (max-width: 850px) {
  .pkp_structure_head {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    min-height: auto;
  }

  .pkp_head_wrapper {
    order: 2;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(105deg, var(--cjelt-teal) 0%, #1D83D8 52%, var(--cjelt-header-blue) 100%);
    min-height: auto;
  }

  .pkp_navigation_primary_row {
    order: 1;
    width: 100%;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--cjelt-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .pkp_navigation_primary_wrapper,
  .pkp_site_nav_menu {
    background: #FFFFFF !important;
  }

  .pkp_site_name_wrapper {
    display: block !important;
    width: 100%;
  }

  .pkp_site_name,
  .pkp_site_name a.is_text,
  .pkp_site_name .is_text,
  .pkp_site_name a.is_img,
  .pkp_site_name .is_img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .pkp_site_name,
  .pkp_site_name_wrapper {
    padding: 2.25rem 1.25rem 2.4rem;
    text-align: left;
    height: auto !important;
    min-height: 0;
    max-height: none !important;
    overflow: visible !important;
  }

  .pkp_site_name .is_text,
  .pkp_site_name a.is_text {
    color: #FFFFFF !important;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    word-break: normal;
    text-decoration: none;
  }

  .pkp_site_name .is_img img,
  .pkp_site_name a.is_img img {
    display: block !important;
    width: auto !important;
    max-width: 92vw !important;
    max-height: 92px !important;
  }

  .pkp_site_nav_menu {
    background: #FFFFFF !important;
  }

  .pkp_site_nav_menu .pkp_navigation_primary_row {
    background: #FFFFFF !important;
  }

  .pkp_navigation_primary,
  .pkp_navigation_user {
    margin: 0;
    padding: 0.65rem 1rem;
    background: #FFFFFF !important;
  }

  .pkp_navigation_primary > li > a,
  .pkp_navigation_user > li > a {
    display: block;
    padding: 0.35rem 0;
    color: var(--cjelt-blue-dark) !important;
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .pkp_navigation_primary ul {
    margin: 0.35rem 0 0.5rem;
    padding: 0.55rem 0.75rem;
    background: #FFFFFF;
    border-radius: 4px;
  }

  .pkp_navigation_primary ul a,
  .pkp_navigation_primary ul a:visited {
    color: var(--cjelt-blue-dark) !important;
    padding: 0.35rem 0;
  }

  .pkp_navigation_primary ul a:hover,
  .pkp_navigation_primary ul a:focus {
    color: var(--cjelt-blue) !important;
    background: transparent;
  }

  .pkp_site_nav_toggle,
  .pkp_site_nav_toggle:before,
  .pkp_site_nav_toggle:after,
  .pkp_site_nav_toggle span {
    max-width: 44px;
    max-height: 44px;
    color: var(--cjelt-blue-dark);
  }

  h1,
  .page_title,
  .obj_article_details .page_title {
    font-size: 1.55rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .pkp_structure_main {
    padding-top: 1.25rem;
  }

  .pkp_structure_content,
  .pkp_structure_footer,
  .pkp_head_wrapper,
  .pkp_navigation_primary_wrapper {
    width: 100%;
    max-width: 100%;
  }

  .cjelt-button-row {
    flex-direction: column;
  }

  .cjelt-button,
  .cjelt-button.secondary {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* CJELT footer: white link area + dark bottom bar */
.pkp_structure_footer_wrapper {
  background: #FFFFFF !important;
  border-top: 1px solid #E6EDF5 !important;
  padding: 0 !important;
  margin-top: 2.5rem;
}

.pkp_structure_footer {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--cjelt-blue-dark);
}

.pkp_structure_footer .pkp_brand_footer,
.pkp_brand_footer {
  display: none !important;
}

.cjelt-footer {
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  background: #FFFFFF;
  color: var(--cjelt-blue-dark);
}

.cjelt-footer-main {
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.8rem 1.5rem 2.6rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cjelt-footer-logo {
  display: inline-flex;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #147C9E 0%, #126DB8 52%, #0F57B7 100%);
  color: #FFFFFF;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(15, 87, 183, 0.18);
}

.cjelt-footer-logo span {
  display: block;
  text-align: center;
}

.cjelt-footer-title {
  margin-top: 0.8rem;
  max-width: 220px;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--cjelt-blue-dark);
}

.cjelt-footer-col h3 {
  margin: 0 0 0.75rem;
  color: var(--cjelt-blue-dark);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
}

.cjelt-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cjelt-footer-col li {
  margin: 0 0 0.45rem;
  padding: 0;
  color: var(--cjelt-blue-dark);
  font-size: 0.9rem;
  line-height: 1.4;
}

.cjelt-footer a,
.cjelt-footer a:visited {
  color: var(--cjelt-blue-dark) !important;
  text-decoration: none !important;
}

.cjelt-footer a:hover,
.cjelt-footer a:focus {
  color: var(--cjelt-nav-blue) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.cjelt-footer-bottom {
  background: #43525E;
  color: #FFFFFF;
  text-align: center;
  padding: 0.9rem 1rem;
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 700;
}

.cjelt-footer-bottom a,
.cjelt-footer-bottom a:visited {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.cjelt-footer-bottom a:hover,
.cjelt-footer-bottom a:focus {
  color: #FFFFFF !important;
  text-decoration: underline !important;
}

@media (max-width: 850px) {
  .cjelt-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    padding: 2rem 1.25rem;
  }

  .cjelt-footer-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    font-size: 1.15rem;
  }
}

@media (max-width: 560px) {
  .cjelt-footer-main {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 1.8rem 1.15rem;
  }

  .cjelt-footer-title {
    max-width: 100%;
  }

  .cjelt-footer-col h3 {
    margin-bottom: 0.45rem;
  }
}

/* =========================================================
   CJELT compact header + reliable mobile journal title
   Added July 2026
   ========================================================= */

/* Desktop/tablet: reduce the colored header height by about 35% */
@media (min-width: 851px) {
  .pkp_structure_head {
    min-height: 0 !important;
  }

  .pkp_head_wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .pkp_site_name_wrapper,
  .pkp_site_name {
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding-top: 1.05rem !important;
    padding-bottom: 0.55rem !important;
  }

  .pkp_site_name .is_text,
  .pkp_site_name a.is_text {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 1.52rem !important;
    line-height: 1.2 !important;
  }

  .pkp_site_name .is_img img,
  .pkp_site_name a.is_img img {
    max-height: 70px !important;
  }

  .pkp_navigation_primary_row,
  .pkp_navigation_primary_wrapper {
    min-height: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0.35rem !important;
  }

  .pkp_navigation_primary > li > a,
  .pkp_navigation_user > li > a {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    line-height: 1.2 !important;
  }
}

/* Mobile: keep the journal title visible and make the header compact */
@media (max-width: 850px) {
  .pkp_structure_head,
  .pkp_head_wrapper {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .pkp_head_wrapper {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
  }

  .pkp_site_name_wrapper {
    order: 1 !important;
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 3;
  }

  .pkp_site_name {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 1rem 1.1rem 0.9rem !important;
    text-align: left !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
  }

  .pkp_site_name a,
  .pkp_site_name a.is_text,
  .pkp_site_name .is_text {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #FFFFFF !important;
    font-size: clamp(1.05rem, 5vw, 1.38rem) !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .pkp_site_name a.is_img,
  .pkp_site_name .is_img {
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .pkp_site_name a.is_img img,
  .pkp_site_name .is_img img {
    display: block !important;
    width: auto !important;
    max-width: 94% !important;
    max-height: 58px !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .pkp_navigation_primary_row {
    order: 2 !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .pkp_site_nav_toggle {
    top: 0.55rem !important;
    right: 0.75rem !important;
  }
}

/* Extra-small phones */
@media (max-width: 480px) {
  .pkp_site_name {
    padding: 0.85rem 3.6rem 0.8rem 0.9rem !important;
  }

  .pkp_site_name a,
  .pkp_site_name a.is_text,
  .pkp_site_name .is_text {
    font-size: 1.02rem !important;
    line-height: 1.25 !important;
  }
}

/* =========================================================
   Mobile header spacing fix: keep the title clear of controls
   Added July 2026
   ========================================================= */
@media (max-width: 850px) {
  /* Reserve a dedicated left gutter for the hamburger/menu control. */
  .pkp_site_name_wrapper {
    box-sizing: border-box !important;
  }

  .pkp_site_name {
    box-sizing: border-box !important;
    min-height: 70px !important;
    padding: 0.78rem 1rem 0.78rem 4.35rem !important;
    display: flex !important;
    align-items: center !important;
  }

  .pkp_site_name a,
  .pkp_site_name a.is_text,
  .pkp_site_name .is_text {
    max-width: 100% !important;
    font-size: clamp(0.98rem, 4.35vw, 1.24rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  /* Keep the mobile menu button fully inside its own gutter. */
  .pkp_site_nav_toggle {
    position: absolute !important;
    top: 50% !important;
    left: 0.8rem !important;
    right: auto !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
  }
}

@media (max-width: 480px) {
  .pkp_site_name {
    min-height: 66px !important;
    padding: 0.68rem 0.75rem 0.68rem 4rem !important;
  }

  .pkp_site_name a,
  .pkp_site_name a.is_text,
  .pkp_site_name .is_text {
    font-size: 0.96rem !important;
    line-height: 1.16 !important;
  }

  .pkp_site_nav_toggle {
    left: 0.55rem !important;
    width: 40px !important;
    height: 40px !important;
  }
}

/* =========================================================
   CJELT HOMEPAGE REFRESH
   Append-only overrides for the OJS journal homepage
   Added July 2026
   ========================================================= */

/* Keep these changes limited to the journal homepage. */
.page_index_journal {
  --cjelt-home-ink: #12324D;
  --cjelt-home-muted: #607386;
  --cjelt-home-line: #DDE7F0;
  --cjelt-home-surface: #FFFFFF;
  --cjelt-home-soft: #F5F8FC;
  --cjelt-home-teal: #128A9D;
  --cjelt-home-blue: #0B5EA8;
  --cjelt-home-shadow: 0 16px 42px rgba(16, 61, 94, 0.10);
  box-sizing: border-box;
  padding-top: 2rem;
  padding-bottom: 3.25rem;
}

/* A little more breathing room and a calmer page background. */
body:has(.page_index_journal) {
  background: var(--cjelt-home-soft);
}

body:has(.page_index_journal) .pkp_structure_content,
body:has(.page_index_journal) .pkp_structure_main {
  background: transparent !important;
}

body:has(.page_index_journal) .pkp_structure_main {
  padding-top: 0 !important;
}

/* Give the masthead a more finished edge without making it taller. */
body:has(.page_index_journal) .pkp_structure_head {
  box-shadow: 0 5px 20px rgba(11, 64, 113, 0.12);
}

@media (min-width: 851px) {
  body:has(.page_index_journal) .pkp_navigation_primary > li > a,
  body:has(.page_index_journal) .pkp_navigation_user > li > a {
    border-radius: 7px;
  }

  body:has(.page_index_journal) .pkp_navigation_primary > li > a:hover,
  body:has(.page_index_journal) .pkp_navigation_primary > li > a:focus,
  body:has(.page_index_journal) .pkp_navigation_user > li > a:hover,
  body:has(.page_index_journal) .pkp_navigation_user > li > a:focus {
    background: rgba(255, 255, 255, 0.14) !important;
  }
}

/* ---------------------------------------------------------
   Current issue: turn the sparse OJS block into an intentional
   issue spotlight card. This will still work once articles appear.
   --------------------------------------------------------- */
.page_index_journal .current_issue {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 0 2.25rem !important;
  padding: 1.55rem 1.75rem 1.45rem !important;
  border: 1px solid var(--cjelt-home-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 93% 12%, rgba(31, 175, 186, 0.14), transparent 26%),
    linear-gradient(135deg, #FFFFFF 0%, #F8FBFF 68%, #F1FAFB 100%);
  box-shadow: var(--cjelt-home-shadow);
}

.page_index_journal .current_issue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--cjelt-home-blue), var(--cjelt-home-teal));
}

.page_index_journal .current_issue h2 {
  margin: 0 0 0.9rem !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--cjelt-home-teal) !important;
  font-size: 0.8rem !important;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page_index_journal .current_issue .obj_issue_toc,
.page_index_journal .current_issue .heading {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.page_index_journal .current_issue .title,
.page_index_journal .current_issue .heading .title,
.page_index_journal .current_issue .heading a {
  max-width: 760px;
  margin: 0 !important;
  color: var(--cjelt-home-ink) !important;
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.page_index_journal .current_issue .description {
  max-width: 760px;
  margin-top: 0.7rem;
  color: var(--cjelt-home-muted);
}

.page_index_journal .current_issue .published {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 1rem 0 0 !important;
  padding: 0.36rem 0.65rem;
  border: 1px solid #D8E6F1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--cjelt-home-muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.page_index_journal .current_issue .published::before {
  content: "●";
  color: var(--cjelt-home-teal);
  font-size: 0.65rem;
}

.page_index_journal .current_issue .sections {
  margin-top: 1.5rem;
}

.page_index_journal .current_issue .read_more,
.page_index_journal .current_issue > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem !important;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--cjelt-home-blue);
  border-radius: 8px;
  background: var(--cjelt-home-blue);
  color: #FFFFFF !important;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(11, 94, 168, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.page_index_journal .current_issue .read_more:hover,
.page_index_journal .current_issue .read_more:focus,
.page_index_journal .current_issue > a:last-child:hover,
.page_index_journal .current_issue > a:last-child:focus {
  background: #084C89;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(11, 94, 168, 0.22);
}

/* Remove the long separator line that makes the homepage feel skeletal. */
.page_index_journal .current_issue + .additional_content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* ---------------------------------------------------------
   Submission hero: retain the existing HTML, but make the card
   slightly tighter, richer, and less like a large flat rectangle.
   The !important rules are intentional because the current block
   contains inline presentation styles.
   --------------------------------------------------------- */
.page_index_journal .additional_content > div:first-child {
  position: relative;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
  padding: 2rem 2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #0A4E83 0%, #0E7899 58%, #23A4AE 100%) !important;
  box-shadow: 0 18px 42px rgba(9, 73, 113, 0.18) !important;
}

.page_index_journal .additional_content > div:first-child::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -90px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page_index_journal .additional_content > div:first-child h2 {
  margin-top: 0.2rem !important;
  font-size: clamp(1.65rem, 3vw, 2.2rem) !important;
  line-height: 1.15 !important;
}

.page_index_journal .additional_content > div:first-child p {
  line-height: 1.55 !important;
}

.page_index_journal .additional_content img {
  border-radius: 14px;
}

/* General homepage cards and headings below the hero. */
.page_index_journal .additional_content h2,
.page_index_journal .additional_content h3 {
  text-wrap: balance;
}

.page_index_journal .additional_content > section,
.page_index_journal .additional_content > .cjelt-card,
.page_index_journal .additional_content > div:not(:first-child) {
  border-color: var(--cjelt-home-line);
}

.page_index_journal .cjelt-card,
.page_index_journal .cjelt-callout,
.page_index_journal .cjelt-sidebar-box {
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 9px 28px rgba(16, 61, 94, 0.07);
}

.page_index_journal .cjelt-button,
.page_index_journal .cmp_button,
.page_index_journal .block_make_submission a {
  border-radius: 8px;
}

/* Keep the homepage comfortable on tablets and phones. */
@media (max-width: 850px) {
  .page_index_journal {
    padding-top: 1.25rem;
    padding-bottom: 2.25rem;
  }

  .page_index_journal .current_issue {
    padding: 1.3rem 1.2rem 1.25rem !important;
    border-radius: 15px;
  }

  .page_index_journal .additional_content > div:first-child {
    padding: 1.5rem 1.2rem !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 560px) {
  .page_index_journal .current_issue .published {
    display: flex;
    width: fit-content;
  }

  .page_index_journal .current_issue .read_more,
  .page_index_journal .current_issue > a:last-child {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* =========================================================
   CJELT CURRENT ISSUE CLEANUP
   Hide redundant homepage metadata and archive link
   Added July 2026
   ========================================================= */
.page_index_journal .current_issue .published,
.page_index_journal .current_issue .read_more {
  display: none !important;
}

/* Keep the simplified issue spotlight compact and balanced. */
.page_index_journal .current_issue {
  padding-bottom: 1.6rem !important;
}

.page_index_journal .current_issue .title,
.page_index_journal .current_issue .heading .title,
.page_index_journal .current_issue .heading a {
  margin-bottom: 0 !important;
}

/* =========================================================
   CJELT HOMEPAGE FOOTER SPACING
   Remove the oversized blank area between the final homepage
   content block and the footer divider.
   Added July 2026
   ========================================================= */

/* Remove stacked bottom spacing from the homepage containers. */
.page_index_journal {
  padding-bottom: 0.75rem !important;
}

.page_index_journal .additional_content {
  margin-bottom: 0 !important;
}

.page_index_journal .additional_content > div:first-child {
  margin-bottom: 0.75rem !important;
}

/* The footer is outside .page_index_journal, so target it through body. */
body:has(.page_index_journal) .pkp_structure_main {
  padding-bottom: 0 !important;
}

body:has(.page_index_journal) .pkp_structure_footer_wrapper {
  margin-top: 0 !important;
}

@media (max-width: 850px) {
  .page_index_journal {
    padding-bottom: 0.5rem !important;
  }

  .page_index_journal .additional_content > div:first-child {
    margin-bottom: 0.5rem !important;
  }
}

/* =========================================================
   CJELT COMPACT COPYRIGHT BAR
   Reduce excessive height in the colored footer strip while
   preserving comfortable spacing and mobile readability.
   Added July 2026
   ========================================================= */
.cjelt-footer-bottom {
  box-sizing: border-box;
  padding: 0.58rem 1rem !important;
  line-height: 1.32 !important;
}

/* OJS/global paragraph margins were making the strip look much taller. */
.cjelt-footer-bottom p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

@media (max-width: 560px) {
  .cjelt-footer-bottom {
    padding: 0.68rem 0.85rem !important;
    font-size: 0.8rem;
  }
}

/* =========================================================
   CJELT EXTRA-COMPACT COPYRIGHT BAR
   Final override: keep the colored footer strip slim on
   desktop while allowing safe wrapping on smaller screens.
   Added July 2026
   ========================================================= */
.cjelt-footer-bottom {
  box-sizing: border-box !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0.38rem 1rem !important;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Remove spacing or width limits from any nested footer content. */
.cjelt-footer-bottom > *,
.cjelt-footer-bottom p,
.cjelt-footer-bottom div {
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

/* Keep the copyright statement on one slim line when space allows. */
@media (min-width: 851px) {
  .cjelt-footer-bottom,
  .cjelt-footer-bottom > *,
  .cjelt-footer-bottom p,
  .cjelt-footer-bottom div {
    white-space: nowrap !important;
  }
}

/* Permit wrapping on tablets and phones without restoring excess height. */
@media (max-width: 850px) {
  .cjelt-footer-bottom {
    padding: 0.48rem 0.75rem !important;
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
  }

  .cjelt-footer-bottom,
  .cjelt-footer-bottom > *,
  .cjelt-footer-bottom p,
  .cjelt-footer-bottom div {
    white-space: normal !important;
  }
}

/* =========================================================
   CJELT HEADER REFINEMENT — AUGUST 2026
   Preserve the existing gradient, deepen the light left side,
   and replace boxed menu states with clean underlines.
   Keep this final in the stylesheet.
   ========================================================= */

/* Richer blue-teal start and saturated blue center prevent the
   gradient sweep from appearing pale or washed out. */
.pkp_structure_head,
body:has(.page_index_journal) .pkp_structure_head {
  background: linear-gradient(
    105deg,
    #126F8C 0%,
    #176FBE 52%,
    var(--cjelt-header-blue) 100%
  ) !important;
}

@media (min-width: 851px) {
  /* All top-level menu states remain transparent and square. */
  .pkp_navigation_primary > li > a,
  .pkp_navigation_primary > li > a:visited,
  .pkp_navigation_user > li > a,
  .pkp_navigation_user > li > a:visited,
  .pkp_search .search_prompt,
  .pkp_search .search_prompt:visited {
    position: relative !important;
    box-sizing: border-box !important;
    color: #FFFFFF !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  /* Remove every former hover/focus box, including homepage overrides. */
  .pkp_navigation_primary > li > a:hover,
  .pkp_navigation_primary > li > a:focus,
  .pkp_navigation_primary > li > a[aria-expanded="true"],
  .pkp_navigation_user > li > a:hover,
  .pkp_navigation_user > li > a:focus,
  .pkp_search .search_prompt:hover,
  .pkp_search .search_prompt:focus,
  body:has(.page_index_journal) .pkp_navigation_primary > li > a:hover,
  body:has(.page_index_journal) .pkp_navigation_primary > li > a:focus,
  body:has(.page_index_journal) .pkp_navigation_user > li > a:hover,
  body:has(.page_index_journal) .pkp_navigation_user > li > a:focus {
    color: #FFFFFF !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.96) !important;
  }

  /* Keep the current page underlined after the pointer moves away. */
  .pkp_navigation_primary > li.current > a,
  .pkp_navigation_primary > li.active > a,
  .pkp_navigation_primary > li > a[aria-current="page"],
  .pkp_navigation_primary > li > a.is_active,
  .pkp_navigation_user > li.current > a,
  .pkp_navigation_user > li.active > a,
  .pkp_navigation_user > li > a[aria-current="page"] {
    color: #FFFFFF !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.96) !important;
  }
}

/* Mobile keeps the existing reliable menu layout, but uses the
   slightly deeper gradient in the title area as well. */
@media (max-width: 850px) {
  .pkp_head_wrapper {
    background: linear-gradient(
      105deg,
      #126F8C 0%,
      #176FBE 52%,
      var(--cjelt-header-blue) 100%
    ) !important;
  }
}

/* =========================================================
   CJELT SHORT-PAGE FOOTER FIX — AUGUST 2026
   Keep the footer at the bottom of the viewport on short
   Current/Archive issue pages without fixing it on screen.
   ========================================================= */
html,
body {
  min-height: 100%;
}

.pkp_structure_page {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
}

.pkp_structure_head,
.pkp_structure_footer_wrapper {
  flex: 0 0 auto;
}

.pkp_structure_content {
  flex: 1 0 auto;
}
