/*
 * Politeknik Kaltara — OJS 3.5 Site Stylesheet
 * Adapted from the supplied OJS Politeknik Kaltara prototype.
 * Scope: public-facing OJS pages only. No OJS core files are modified.
 * Version: 1.0 — 2026-09-22
 */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --pk-green: #0b563f;
  --pk-green-dark: #073e34;
  --pk-blue: #0c3f61;
  --pk-gold: #f2c230;
  --pk-gold-soft: #fff0a8;
  --pk-ink: #1d2329;
  --pk-muted: #66717c;
  --pk-line: #d8dde2;
  --pk-panel: #f6f8f9;
  --pk-paper: #ffffff;
}

/* =========================================================
   2. PAGE / TYPOGRAPHY
   ========================================================= */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--pk-ink);
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)),
    radial-gradient(circle, #cfd9d4 1px, transparent 1px) 0 0 / 18px 18px,
    #e7ece9;
}

.pkp_structure_page {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--pk-paper);
  box-shadow: 0 0 28px rgba(0,0,0,.12);
}

a {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.page_title {
  color: var(--pk-ink);
}

/* =========================================================
   3. HEADER / INSTITUTIONAL BRAND
   ========================================================= */
.pkp_structure_head {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 87% 16%, rgba(242,194,48,.28) 0 145px, transparent 147px),
    radial-gradient(circle at 65% 115%, rgba(255,255,255,.07) 0 270px, transparent 272px),
    linear-gradient(115deg, #073d35 0%, #0b563f 45%, #0d4865 100%);
  border-bottom: 0;
}

.pkp_structure_head::after {
  content: "OJS";
  position: absolute;
  right: 18px;
  bottom: -48px;
  z-index: 0;
  color: rgba(255,255,255,.05);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 170px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 6px;
  pointer-events: none;
}

.pkp_head_wrapper {
  position: relative;
  z-index: 1;
  padding-top: 22px;
}

/* Uploaded site logo */
.pkp_site_name {
  padding-top: 0;
  padding-bottom: 18px;
}

.pkp_site_name > a {
  display: inline-flex;
  align-items: center;
  min-height: 100px;
  color: #fff;
  text-decoration: none;
}

.pkp_site_name .is_img img,
.pkp_site_name img {
  width: auto;
  max-width: 105px;
  max-height: 105px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.22));
}

/* When OJS renders the site name as text instead of an image */
.pkp_site_name .is_text {
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: .4px;
  text-shadow: 0 2px 3px rgba(0,0,0,.16);
}

/* =========================================================
   4. PRIMARY NAVIGATION
   ========================================================= */
.pkp_navigation_primary_wrapper {
  position: relative;
  z-index: 2;
  margin-left: calc(-1 * max(0px, (100vw - 1440px) / 2));
  margin-right: calc(-1 * max(0px, (100vw - 1440px) / 2));
  background: linear-gradient(#fff1aa, #f0df7e);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid #d6c65d;
}

.pkp_navigation_primary {
  justify-content: center;
}

.pkp_navigation_primary > li > a {
  padding: 17px 18px;
  color: #252819;
  border-bottom: 0;
  font-weight: 700;
  letter-spacing: .25px;
  text-transform: uppercase;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  color: #073e34;
  background: rgba(255,255,255,.52);
  border-bottom: 0;
}

.pkp_navigation_primary ul {
  border: 1px solid #d7d1a2;
  background: #fffdf1;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.pkp_navigation_primary ul a {
  color: var(--pk-ink);
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  color: var(--pk-green);
  background: #fff8d2;
}

/* User navigation / search in header */
.pkp_navigation_user > li > a,
.pkp_navigation_search_wrapper a {
  color: #fff;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_search_wrapper a:hover {
  color: var(--pk-gold-soft);
}

/* =========================================================
   5. MAIN CONTENT
   ========================================================= */
.pkp_structure_content {
  background: #fff;
}

.pkp_structure_main {
  padding-top: 30px;
  padding-bottom: 46px;
}

.pkp_structure_main::before {
  border-left-color: var(--pk-line);
}

.pkp_page_index .homepage_about,
.pkp_page_index .journals,
.pkp_page_index .cmp_announcements,
.pkp_page_index .additional_content {
  margin-top: 24px;
}

/* Intro / about panel */
.pkp_page_index .homepage_about,
.pkp_page_index .additional_content {
  padding: 22px;
  border: 1px solid var(--pk-line);
  border-left: 5px solid var(--pk-green);
  background: linear-gradient(135deg, #f7faf9, #fffaf0);
  line-height: 1.65;
}

/* Section headings */
.pkp_structure_main .title,
.pkp_structure_main .cmp_announcements > .title,
.pkp_structure_main .journals > h2 {
  padding-bottom: 9px;
  border-bottom: 2px solid #e7ebee;
  font-weight: 800;
}

/* Journal listing */
.pkp_page_index .journals > ul {
  padding-left: 0;
}

.pkp_page_index .journals .has_thumb,
.pkp_page_index .journals > ul > li {
  padding: 22px 0 28px;
  border-bottom: 1px solid #e3e6e8;
}

.pkp_page_index .journals .thumb img {
  border: 1px solid #d7dde1;
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
}

.pkp_page_index .journals h3 a,
.pkp_page_index .journals .title a {
  color: var(--pk-green-dark);
  font-weight: 800;
  text-decoration: none;
}

.pkp_page_index .journals h3 a:hover,
.pkp_page_index .journals .title a:hover {
  color: var(--pk-blue);
}

/* Announcements */
.cmp_announcements .obj_announcement_summary {
  padding: 16px 18px;
  border-left: 4px solid var(--pk-gold);
  background: #fff9dc;
}

/* Breadcrumb */
.cmp_breadcrumbs {
  color: #746b14;
}

.cmp_breadcrumbs a {
  color: #655d0e;
}

/* Buttons */
.cmp_button,
.cmp_form .buttons button,
.pkp_structure_main button,
.pkp_structure_main input[type="submit"] {
  border-color: var(--pk-green);
  border-radius: 4px;
}

.cmp_button:hover,
.cmp_form .buttons button:hover,
.pkp_structure_main button:hover,
.pkp_structure_main input[type="submit"]:hover {
  border-color: var(--pk-green-dark);
}

/* =========================================================
   6. SIDEBAR
   ========================================================= */
.pkp_structure_sidebar {
  padding-top: 22px;
  background: #fbfbfb;
  border-left: 1px solid var(--pk-line);
}

.pkp_structure_sidebar .pkp_block {
  margin-bottom: 20px;
}

.pkp_structure_sidebar .pkp_block .title {
  margin-bottom: 10px;
  padding: 9px 12px;
  background: repeating-linear-gradient(
    -45deg,
    #e4e4e4,
    #e4e4e4 4px,
    #ececec 4px,
    #ececec 8px
  );
  color: var(--pk-ink);
  font-size: 13px;
  font-weight: 800;
}

.pkp_structure_sidebar .pkp_block a {
  color: #625b10;
  text-decoration: none;
}

.pkp_structure_sidebar .pkp_block a:hover {
  color: var(--pk-green);
  text-decoration: underline;
}

/* =========================================================
   7. FOOTER
   The Page Footer content entered in OJS is styled here.
   ========================================================= */
.pkp_structure_footer {
  margin-top: 0;
  color: #e7f3ee;
  background: var(--pk-green-dark);
  border-top: 0;
}

.pkp_structure_footer .pkp_footer_content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 34px 26px;
  color: #e7f3ee;
  font-size: 13px;
  line-height: 1.65;
}

/* Remove default paragraph spacing without flattening the editor content */
.pkp_structure_footer .pkp_footer_content p {
  margin: 0 0 9px;
  color: #dcebe6;
}

.pkp_structure_footer .pkp_footer_content strong {
  color: #fff;
  font-weight: 800;
  letter-spacing: .35px;
}

.pkp_structure_footer .pkp_footer_content a {
  color: #fff2ad;
  text-decoration: none;
}

.pkp_structure_footer .pkp_footer_content a:hover,
.pkp_structure_footer .pkp_footer_content a:focus {
  color: #fff;
  text-decoration: underline;
}

/* Make the manually entered contact/social symbols align neatly */
.pkp_structure_footer .pkp_footer_content br + a,
.pkp_structure_footer .pkp_footer_content p a {
  vertical-align: middle;
}

/* PKP branding area */
.pkp_brand_footer {
  padding: 14px 34px;
  border-top: 1px solid rgba(255,255,255,.15);
  background: #06372f;
}

.pkp_brand_footer a {
  opacity: .86;
}

.pkp_brand_footer a:hover {
  opacity: 1;
}

/* =========================================================
   8. FORMS / TABLES / ARTICLE OBJECTS
   ========================================================= */
table {
  border-color: var(--pk-line);
}

th {
  background: #eef3f1;
}

.obj_article_summary,
.obj_issue_summary {
  border-bottom-color: #e3e6e8;
}

.obj_article_summary .title a,
.obj_issue_summary .title a {
  color: var(--pk-green-dark);
}

.obj_article_summary .title a:hover,
.obj_issue_summary .title a:hover {
  color: var(--pk-blue);
}

/* =========================================================
   9. RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
  .pkp_structure_page {
    width: 100%;
    box-shadow: none;
  }

  .pkp_structure_head::after {
    font-size: 125px;
    bottom: -34px;
  }

  .pkp_site_name .is_img img,
  .pkp_site_name img {
    max-width: 86px;
    max-height: 86px;
  }

  .pkp_navigation_primary_wrapper {
    margin-left: 0;
    margin-right: 0;
  }

  .pkp_structure_sidebar {
    border-left: 0;
    border-top: 1px solid var(--pk-line);
  }
}

@media (max-width: 767px) {
  .pkp_head_wrapper {
    padding-top: 14px;
  }

  .pkp_site_name {
    padding-bottom: 12px;
  }

  .pkp_site_name > a {
    min-height: 76px;
  }

  .pkp_site_name .is_img img,
  .pkp_site_name img {
    max-width: 72px;
    max-height: 72px;
  }

  .pkp_site_name .is_text {
    font-size: 21px;
  }

  .pkp_structure_head::after {
    font-size: 92px;
    right: 8px;
    bottom: -22px;
  }

  .pkp_structure_main {
    padding-top: 22px;
    padding-bottom: 32px;
  }

  .pkp_page_index .homepage_about,
  .pkp_page_index .additional_content {
    padding: 17px;
  }

  .pkp_structure_footer .pkp_footer_content {
    padding: 26px 20px 20px;
  }

  .pkp_brand_footer {
    padding: 12px 20px;
  }
}

/* =========================================================
   10. ACCESSIBILITY / MOTION
   ========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--pk-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
