/* The Toothless Law — custom sidebar for OJS Default Theme 3.3.
   Use with jst-sidebar-* HTML. No global layout overrides.
   Standalone sidebar styles; append last when combining stylesheets. */
.pkp_structure_sidebar .jst-sidebar-custom,
.pkp_structure_sidebar .jst-sidebar-custom * {
  box-sizing: border-box;
  font-style: normal !important;
}
.pkp_structure_sidebar .jst-sidebar-custom {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
  transform: none !important;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: #263746;
  text-align: left;
}
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-box {
  display: block;
  position: relative !important;
  inset: auto !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 0 16px !important;
  padding: 16px 12px !important;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2fbff 0%, #ffffff 60%, #f7f8ff 100%);
  box-shadow: none !important;
  transform: none !important;
  rotate: none !important;
  translate: none !important;
  animation: none !important;
  transition: none !important;
}
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: linear-gradient(90deg, #075e9e 0%, #1c75bc 65%, #ffd43b 100%);
  border-radius: 0 0 3px 3px;
}
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-heading {
  margin: 0 0 8px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid #d9e5ee;
  color: #003b66 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links {
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li {
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 4px;
  background: transparent !important;
  color: #075e9e !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  transform: none !important;
  translate: none !important;
  rotate: none !important;
  transition: background-color .15s ease, color .15s ease !important;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a::before,
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a::after {
  content: none !important;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a:hover,
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a:focus,
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a:active {
  background: #075e9e !important;
  color: #ffffff !important;
  transform: none !important;
}
.pkp_structure_sidebar .jst-sidebar-custom a:focus-visible {
  outline: 2px solid #003b66 !important;
  outline-offset: 2px;
}
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-submit {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-submit::before {
  content: none !important;
}
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-submit > a {
  display: block !important;
  position: static !important;
  width: 100%;
  margin: 0 !important;
  padding: 13px 10px !important;
  border: 1px solid #00436b !important;
  border-radius: 6px;
  background: linear-gradient(135deg, #0871ad, #00436b) !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none !important;
  transform: none !important;
  rotate: none !important;
  translate: none !important;
  transition: none !important;
}
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-submit > a:hover,
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-submit > a:focus,
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-submit > a:active {
  background: #ffd43b !important;
  color: #003b66 !important;
  border-color: #c89400 !important;
  transform: none !important;
}
@media (max-width: 767px) {
  .pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a {
    min-height: 44px;
    padding: 12px 10px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pkp_structure_sidebar .jst-sidebar-custom * {
    transition: none !important;
  }
}

/* Reference palette and menu text placement; stationary cards. */
.pkp_structure_sidebar .jst-sidebar-custom {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13.5px;
}
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-box {
  padding: 15px 14px 14px !important;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(0,59,102,.07) !important;
}
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-heading {
  padding: 2px 1px 9px !important;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .35px;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li {
  border-bottom: 1px solid rgba(0,67,107,.075) !important;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li:last-child {
  border-bottom: 0 !important;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a {
  position: relative !important;
  padding: 8px 5px 8px 17px !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a::before {
  content: '\203A' !important;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #e9a400;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a:hover,
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a:focus,
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a:active {
  background: linear-gradient(135deg,#075e9e,#086ca9 55%,#0b78b7) !important;
}
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a:hover::before,
.pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a:focus::before {
  color: #ffd43b;
}
.pkp_structure_sidebar .jst-sidebar-custom .jst-sidebar-submit {
  padding: 0 !important;
  box-shadow: none !important;
}

/* Overview: stacked inside the Default Theme main content column.
   Does not redefine OJS page widths, sidebar widths, or header layout. */
.jst-profile, .jst-profile * { box-sizing: border-box; }
.jst-profile { width: 100%; max-width: 100%; margin: 0; padding: 0; }
.jst-profile .jst-main-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
}
.jst-profile .jst-section-card {
  position: relative;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(0,67,107,.10);
  border-radius: 20px;
  background: linear-gradient(135deg,#eefbff,#ffffff 48%,#f4f5ff);
  box-shadow: 0 8px 22px rgba(0,59,102,.07);
  transform: none !important;
}
.jst-profile .jst-details {
  background: linear-gradient(135deg,#ffffff,#f5fbff 52%,#f7f6ff);
}
.jst-profile .jst-section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg,transparent,#1c75bc 25%,#ffd43b 72%,transparent);
}
.jst-profile .jst-section-heading {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,67,107,.12);
}
.jst-profile .jst-section-kicker {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 6px 14px;
  border-radius: 24px;
  background: linear-gradient(135deg,#dff6fb,#edf7ff);
  color: #006c78;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.jst-profile .jst-section-heading h2 {
  margin: 0;
  color: #071a35;
  font-size: 26px;
  line-height: 1.3;
}
.jst-profile p {
  margin: 0 0 18px;
  background: transparent;
  color: #2a2a2a;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.jst-profile p:last-child { margin-bottom: 0; }
.jst-profile a { color: #005da8; overflow-wrap: anywhere; }
.jst-profile a:hover { color: #003b66; }
.jst-profile .jst-info-box {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid #1c75bc;
  border-radius: 8px;
  background: linear-gradient(135deg,#e8f6fd,#ffffff);
}
.jst-profile .jst-info-title {
  margin-bottom: 12px;
  color: #003b66;
  font-weight: 700;
  font-size: 16px;
}
.jst-profile .jst-info-box ul { list-style: none; margin: 0; padding: 0; }
.jst-profile .jst-info-box li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,67,107,.10);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.jst-profile .jst-info-box li:last-child { border-bottom: 0; }
.jst-profile .jst-label { color: #003b66; font-weight: 700; }
@media (max-width:767px) {
  .jst-profile .jst-section-card { padding: 20px 16px; border-radius: 12px; }
  .jst-profile .jst-section-heading h2 { font-size: 22px; }
  .jst-profile .jst-info-box { padding: 14px; }
  .pkp_structure_sidebar .jst-sidebar-custom ul.jst-sidebar-links > li > a {
    padding: 12px 5px 12px 19px !important;
    min-height: 44px;
  }
}

/* Header banner: fill the Default Theme's centered header container. */
.pkp_site_name_wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.pkp_site_name {
  width: 100%;
  max-width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
}
.pkp_site_name .is_img {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
}
.pkp_site_name .is_img img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
  object-fit: contain;
}
/* Retain Default Theme's desktop columns and centered container. */
.pkp_structure_main,
.pkp_structure_sidebar {
  box-sizing: border-box;
  min-width: 0;
}
.pkp_structure_main img { max-width: 100%; height: auto; }
.pkp_structure_main table { max-width: 100%; }
.jst-profile .jst-section-heading h2 { overflow-wrap: anywhere; }

/* Match the Default Theme's desktop breakpoint. */
@media (max-width: 991px) {
  .pkp_structure_content {
    display: block !important;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .pkp_structure_main,
  .pkp_structure_sidebar {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .pkp_structure_main {
    padding: 24px 20px !important;
    border-left: 0;
    border-right: 0;
  }
  .pkp_structure_sidebar {
    clear: both;
    padding: 0 20px 24px !important;
  }
  .pkp_structure_sidebar .pkp_block {
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 0;
  }
  .pkp_site_name { padding-top: 12px; padding-bottom: 12px; }
  .jst-profile .jst-main-grid { gap: 20px; }
}
@media (max-width: 575px) {
  .pkp_structure_main { padding: 20px 12px !important; }
  .pkp_structure_sidebar { padding: 0 12px 20px !important; }
  .pkp_site_name { padding-top: 10px; padding-bottom: 10px; }
  .jst-profile .jst-section-card { padding: 20px 14px; }
  .jst-profile .jst-section-heading h2 { font-size: 21px; }
  .jst-profile p {
    font-size: 14px;
    line-height: 1.75;
    text-align: left !important;
  }
  .jst-profile .jst-info-box { padding: 12px; }
  .jst-profile .jst-label { display: block; }
}

/* Full-width header: remove centered header limits and black gutters. */
.pkp_structure_head {
  background: #003b66 !important;
  border: 0 !important;
}
.pkp_structure_head .pkp_head_wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}
.pkp_structure_head .pkp_site_name_wrapper {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.pkp_structure_head .pkp_site_name {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}
.pkp_structure_head .pkp_site_name .is_img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pkp_structure_head .pkp_site_name .is_img img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pkp_structure_head .pkp_navigation_primary_row {
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  background: #003b66 !important;
}
/* Account row above the banner remains usable on the Default Theme. */
.pkp_structure_head .pkp_navigation_user_wrapper {
  background: #003b66 !important;
}
.pkp_structure_head .pkp_navigation_user > li > a,
.pkp_structure_head .pkp_navigation_primary > li > a {
  color: #ffffff !important;
}
@media (max-width: 991px) {
  .pkp_structure_head .pkp_site_name_wrapper {
    padding-top: 50px !important;
  }
  .pkp_structure_head .pkp_site_nav_toggle {
    top: 5px;
    left: 10px;
  }
  .pkp_structure_head .pkp_navigation_primary_row {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Mobile correction: keep the banner in document flow.
   Override Default Theme mobile logo offsets and fixed header height. */
@media (max-width: 991px) {
  .pkp_structure_head {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  .pkp_structure_head .pkp_head_wrapper {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    float: none !important;
    padding: 0 !important;
  }
  .pkp_structure_head .pkp_site_name_wrapper {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: both;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 56px 0 0 !important;
    transform: none !important;
  }
  .pkp_structure_head .pkp_site_name {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
  }
  .pkp_structure_head .pkp_site_name .is_img {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    transform: none !important;
  }
  .pkp_structure_head .pkp_site_name .is_img img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  .pkp_structure_head .pkp_site_nav_toggle {
    position: absolute !important;
    top: 6px !important;
    left: 12px !important;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    border: 0;
    border-radius: 6px;
    z-index: 20;
  }
  .pkp_structure_content {
    position: relative !important;
    clear: both !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
  }
  .pkp_structure_main {
    position: relative !important;
    inset: auto !important;
    margin-top: 0 !important;
    padding-top: 20px !important;
    transform: none !important;
  }
  .pkp_structure_main::before,
  .pkp_structure_main::after { display: none !important; }
  .jst-profile {
    margin: 0 !important;
    padding: 0 !important;
  }
  .jst-profile .jst-section-card {
    margin: 0 !important;
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 3px 12px rgba(0,59,102,.05);
  }
  .jst-profile .jst-section-heading {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .jst-profile .jst-section-heading h2 {
    font-size: 23px;
    line-height: 1.3;
  }
  .jst-profile .jst-section-kicker {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 10px;
  }
  .jst-profile p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: left !important;
  }
}
@media (max-width: 575px) {
  .pkp_structure_main { padding: 18px 12px !important; }
  .jst-profile .jst-section-heading h2 { font-size: 21px; }
  .jst-profile p { font-size: 14px; }
}

/* Mobile paragraphs: justified; last line remains left aligned. */
@media (max-width: 991px) {
  .pkp_structure_main .jst-profile p,
  .pkp_structure_main .page p {
    text-align: justify !important;
    text-align-last: left !important;
    text-justify: inter-word;
    word-spacing: normal;
    letter-spacing: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: manual;
  }
}

/* v6: remove Default Theme structural rules below the navigation.
   Keep card borders, heading separators, and sidebar decoration intact. */
.pkp_structure_main {
  border: 0 !important;
}
.pkp_structure_main::before,
.pkp_structure_main::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* v7: Default Theme adds a separate top rule to homepage content. */
.pkp_page_index .page_index_journal .additional_content {
  border-top: 0 !important;
}

/* v8: mobile banner fills the header from its top edge.
   Menu toggle overlays the banner; retain the theme's menu open/close logic. */
@media (max-width: 991px) {
  .pkp_structure_head .pkp_site_name_wrapper {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
  .pkp_structure_head .pkp_site_name,
  .pkp_structure_head .pkp_site_name .is_img {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    line-height: 0 !important;
  }
  .pkp_structure_head .pkp_site_name .is_img img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
  .pkp_structure_head .pkp_site_nav_toggle {
    top: 8px !important;
    left: 8px !important;
    z-index: 20;
    border: 1px solid rgba(255,255,255,.45) !important;
    border-radius: 6px;
    background: rgba(0,59,102,.88) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
  }
  .pkp_structure_head .pkp_site_nav_toggle:focus-visible {
    outline: 2px solid #ffd43b !important;
    outline-offset: 2px;
  }
}

/* Footer blends from the white page into the journal's pale blue palette. */
.pkp_structure_footer_wrapper {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 38%, #eef7fc 100%) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #003b66;
}
.pkp_structure_footer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #003b66;
}
.pkp_footer_content {
  color: #263746;
  line-height: 1.7;
}
.pkp_footer_content a {
  color: #075e9e !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pkp_footer_content a:hover,
.pkp_footer_content a:focus {
  color: #003b66 !important;
}
/* Restore contrast for the original dark OJS/PKP artwork. */
.pkp_brand_footer img {
  filter: none !important;
  max-width: 100%;
  height: auto;
}
.pkp_structure_footer a:focus-visible {
  outline: 2px solid #075e9e;
  outline-offset: 4px;
}

/* Place the journal sidebar on the left on desktop.
   Retain Default Theme column widths and mobile stacking. */
@media (min-width: 992px) {
  .pkp_structure_content.has_sidebar .pkp_structure_main {
    float: right !important;
  }
  .pkp_structure_content.has_sidebar .pkp_structure_sidebar {
    float: left !important;
    clear: none !important;
  }
}

/* Hide the complete OJS/PKP footer branding block. */
.pkp_structure_footer .pkp_brand_footer {
  display: none !important;
}

/* Right-aligned office details; override existing inline left alignment. */
.pkp_structure_footer .pkp_footer_content {
  float: none !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  text-align: right !important;
}
.pkp_structure_footer .pkp_footer_content > div {
  width: 100%;
  max-width: 520px;
  margin-left: auto !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  text-align: right !important;
}
.pkp_structure_footer .pkp_footer_content p,
.pkp_structure_footer .pkp_footer_content address {
  text-align: right !important;
  text-align-last: right !important;
  overflow-wrap: break-word;
}
@media (max-width: 767px) {
  .pkp_structure_footer .pkp_footer_content > div {
    max-width: 100%;
  }
}

/* Journal Summary / About the Journal: all screen sizes. */
.pkp_structure_main .page_index_journal .homepage_about,
.pkp_structure_main .page_index_journal .homepage_about p {
  text-align: justify !important;
  text-align-last: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
