/* JICC Policy Page - Custom CSS
   Paste this CSS into OJS: Settings > Website > Appearance > Advanced > Journal style sheet.
   The HTML content should be pasted separately into the OJS static page/source editor.
*/

/* =====================================================
   GLOBAL JICC COLOUR STANDARD
   Main journal colour: #004176
   Main text size: 14px
   ===================================================== */


/* =====================================================
   POLICY PAGE WITH LEFT TABLE OF CONTENTS
   ===================================================== */

.jicc-policy-page {
  background: #ffffff;
  color: #333333;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  max-width: 1250px;
  margin: 0 auto;
  padding: 8px 10px 15px 8px;
  box-sizing: border-box;
}

.jicc-policy-page *,
.jicc-policy-page *::before,
.jicc-policy-page *::after {
  box-sizing: border-box;
}

.jicc-policy-layout {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  margin-top: 0 !important;
}

.jicc-policy-sidebar {
  width: 285px;
  vertical-align: top;
  padding: 0 16px 0 0;
  border-right: 1px solid #e5e7eb;
}

.jicc-policy-main {
  vertical-align: top;
  padding: 0 0 0 18px;
}

.jicc-policy-toc {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  background: #ffffff;
}

.jicc-policy-toc h2 {
  color: #004176;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 14px 0;
  font-weight: 700;
}

.jicc-policy-toc ul {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.jicc-policy-toc li {
  margin: 0 0 8px 0;
  padding-left: 2px;
  font-size: 14px;
  line-height: 1.6;
}

.jicc-policy-page a,
.jicc-policy-page a:visited {
  color: #004176;
  text-decoration: none;
}

.jicc-policy-page a:hover,
.jicc-policy-page a:focus {
  color: #004176;
  text-decoration: underline;
}

.jicc-policy-content {
  font-size: 14px;
  color: #333333;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.jicc-policy-content h1,
.jicc-policy-content h2 {
  color: #004176;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  margin: 34px 0 14px 0;
}

.jicc-policy-content h1:first-child,
.jicc-policy-content h2:first-child {
  margin-top: 0;
}

.jicc-policy-content h3 {
  color: #004176;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  margin: 26px 0 10px 0;
}

.jicc-policy-content h4 {
  color: #004176;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  margin: 22px 0 8px 0;
}

.jicc-policy-content p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 15px 0;
}

.jicc-policy-content ul,
.jicc-policy-content ol {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px 24px;
  padding-left: 18px;
}

.jicc-policy-content li {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 7px;
}

.jicc-policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px 0;
  font-size: 14px;
}

.jicc-policy-content th,
.jicc-policy-content td {
  border: 1px solid #cccccc;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
}

.jicc-policy-content thead th {
  background: #f1f5f9;
  font-weight: 700;
}

.jicc-policy-content blockquote {
  background: #f9fafb;
  border-left: 4px solid #004176;
  margin: 20px 0;
  padding: 15px 18px;
  font-size: 14px;
  line-height: 1.7;
}

.jicc-policy-content hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 28px 0;
}

.jicc-back-to-toc {
  font-size: 14px;
  margin: 16px 0 22px 0;
}

.jicc-back-to-toc a,
.jicc-back-to-toc a:visited,
.jicc-back-to-toc a:hover,
.jicc-back-to-toc a:focus {
  color: #004176;
  font-size: 14px;
  font-weight: 600;
}


/* =====================================================
   REMOVE OJS DEFAULT TABLE BORDER FROM POLICY LAYOUT
   This removes unwanted borders from the layout table only.
   It does not affect normal content tables.
   ===================================================== */

.jicc-policy-page table.jicc-policy-layout,
.jicc-policy-page table.jicc-policy-layout > tbody,
.jicc-policy-page table.jicc-policy-layout > tbody > tr,
.jicc-policy-page table.jicc-policy-layout > tbody > tr > td {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  background: transparent !important;
}

.jicc-policy-page table.jicc-policy-layout > tbody > tr > td.jicc-policy-sidebar {
  border-right: 1px solid #e5e7eb !important;
}

.jicc-policy-page table.jicc-policy-layout > tbody > tr > td.jicc-policy-main {
  border: 0 !important;
}


/* =====================================================
   GENERAL JICC ABOUT / POLICY PAGE
   Used for static pages without left sidebar
   ===================================================== */

.jicc-about-page {
  background: #ffffff;
  color: #333333;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.jicc-about-page *,
.jicc-about-page *::before,
.jicc-about-page *::after {
  box-sizing: border-box;
}

.jicc-top-banner {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 0;
  box-sizing: border-box;
  text-align: center;
}

.jicc-top-banner img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 0;
  display: block;
  margin: 0 auto;
}

.jicc-content-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.jicc-about-page p {
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
  margin: 0 0 16px 0;
}

.jicc-about-page .jicc-justify {
  text-align: justify;
}

.jicc-about-page h1,
.jicc-about-page h2 {
  color: #004176;
  font-size: 24px;
  line-height: 1.3;
  margin: 24px 0 12px 0;
  font-weight: 700;
}

.jicc-about-page h1:first-child,
.jicc-about-page h2:first-child {
  margin-top: 0;
}

.jicc-about-page h3 {
  color: #004176;
  font-size: 19px;
  line-height: 1.3;
  margin: 20px 0 10px 0;
  font-weight: 700;
}

.jicc-about-page h4 {
  color: #004176;
  font-size: 17px;
  line-height: 1.35;
  margin: 18px 0 8px 0;
  font-weight: 700;
}

.jicc-about-page a,
.jicc-about-page a:visited {
  color: #004176;
  text-decoration: none;
}

.jicc-about-page a:hover,
.jicc-about-page a:focus {
  color: #004176;
  text-decoration: underline;
}

.jicc-about-page ul,
.jicc-about-page ol {
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
  padding-left: 22px;
  margin: 0 0 18px 0;
}

.jicc-about-page li {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.jicc-about-page blockquote {
  background: #f9fafb;
  border-left: 4px solid #004176;
  margin: 20px 0;
  padding: 15px 18px;
  font-size: 14px;
  line-height: 1.7;
}

.jicc-about-page hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 28px 0;
}


/* =====================================================
   TABLES
   Default table text is left aligned.
   Use .jicc-center-table only when a table should be centered.
   ===================================================== */

.jicc-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 22px 0;
}

.jicc-about-page table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  margin: 18px 0 28px 0;
}

.jicc-about-page thead {
  background-color: #f1f5f9;
}

.jicc-about-page th,
.jicc-about-page td {
  padding: 10px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
}

.jicc-about-page thead th {
  font-weight: 700;
}

.jicc-about-page tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.jicc-about-page table.jicc-center-table,
.jicc-about-page table.jicc-center-table th,
.jicc-about-page table.jicc-center-table td {
  text-align: center;
}

.jicc-about-page table.jicc-left-table,
.jicc-about-page table.jicc-left-table tr,
.jicc-about-page table.jicc-left-table th,
.jicc-about-page table.jicc-left-table td,
.jicc-about-page table.jicc-left-table p,
.jicc-about-page table.jicc-left-table ul,
.jicc-about-page table.jicc-left-table ol,
.jicc-about-page table.jicc-left-table li {
  text-align: left !important;
}

.jicc-about-page table.jicc-left-table th,
.jicc-about-page table.jicc-left-table td {
  vertical-align: top !important;
}

.jicc-about-page table.jicc-left-table td:first-child {
  width: 30%;
  font-weight: 700;
}


/* =====================================================
   EDITORIAL POLICIES / SIMPLE LINK LIST BOX
   ===================================================== */

.jicc-editorial-policies {
  margin-top: 10px;
  background: #ffffff;
  padding: 15px;
  border-radius: 1px;
  box-sizing: border-box;
}

.jicc-editorial-policies h2,
.jicc-editorial-policies h3 {
  color: #004176;
  font-weight: 700;
}

.jicc-editorial-policies ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 14px;
}

.jicc-editorial-policies li {
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.6;
}

.jicc-editorial-policies a,
.jicc-editorial-policies a:visited {
  color: #004176;
  text-decoration: none;
  font-size: 14px;
}

.jicc-editorial-policies a:hover,
.jicc-editorial-policies a:focus {
  color: #004176;
  text-decoration: underline;
}


/* =====================================================
   APC BUTTON
   ===================================================== */

.jicc-apc-button-wrap {
  margin: 18px 0 20px 0;
}

.jicc-about-page .jicc-apc-button,
.jicc-about-page .jicc-apc-button:visited {
  display: inline-block;
  background: #f8b739;
  color: #222222;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 120%;
  margin: 0;
  text-decoration: none;
  text-transform: none;
  padding: 10px 25px;
  border-radius: 6px;
}

.jicc-about-page .jicc-apc-button:hover,
.jicc-about-page .jicc-apc-button:focus {
  color: #222222;
  text-decoration: none;
  background: #e9a928;
}


/* =====================================================
   QUICK LINKS SIDEBAR MENU
   Separate CSS for sidebar/menu only.
   This prevents the normal policy page CSS from making links too large.
   ===================================================== */

.jicc-sidebar-menu {
  background: #ffffff;
  padding: 18px 16px;
  border-radius: 8px;
  box-sizing: border-box;
}

.jicc-sidebar-menu h3 {
  color: #004176 !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
}

.jicc-sidebar-menu ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.jicc-sidebar-menu li {
  list-style: none !important;
  margin: 0 0 9px 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

.jicc-sidebar-menu a,
.jicc-sidebar-menu a:visited {
  display: block !important;
  color: #004176 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  padding: 3px 0 !important;
  margin: 0 !important;
  white-space: normal !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
}

.jicc-sidebar-menu a:hover,
.jicc-sidebar-menu a:focus {
  color: #004176 !important;
  text-decoration: underline !important;
}


/* =====================================================
   MOBILE AND TABLET ADJUSTMENTS
   ===================================================== */

@media (max-width: 900px) {
  .jicc-policy-page {
    padding: 20px 12px;
  }

  .jicc-policy-layout,
  .jicc-policy-layout tbody,
  .jicc-policy-layout tr,
  .jicc-policy-sidebar,
  .jicc-policy-main {
    display: block;
    width: 100%;
  }

  .jicc-policy-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0 22px 0;
    margin-bottom: 26px;
  }

  .jicc-policy-main {
    padding: 0;
  }

  .jicc-policy-toc {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .jicc-policy-page table.jicc-policy-layout > tbody > tr > td.jicc-policy-sidebar {
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
  }
}

@media (max-width: 768px) {
  .jicc-about-page {
    padding: 12px;
  }

  .jicc-top-banner {
    padding: 10px;
  }

  .jicc-content-box {
    padding: 18px;
  }

  .jicc-about-page h1,
  .jicc-about-page h2 {
    font-size: 21px;
  }

  .jicc-about-page h3 {
    font-size: 17px;
  }

  .jicc-about-page h4 {
    font-size: 16px;
  }

  .jicc-table-wrapper table {
    min-width: 700px;
  }

  .jicc-sidebar-menu {
    padding: 14px 12px;
  }

  .jicc-sidebar-menu h3 {
    font-size: 17px !important;
  }

  .jicc-sidebar-menu a,
  .jicc-sidebar-menu a:visited {
    font-size: 14px !important;
  }
}