:root {
  --jks-teal: #00695c;
  --jks-teal-dark: #004d40;
  --jks-mint: #e8f7f2;
  --jks-accent: #2ed1a2;
  --jks-accent-dark: #1fb888;
  --jks-gold: #f5c518;
  --jks-ink: #17332f;
  --jks-muted: #4f6b66;
  --jks-line: #c5e3db;
  --jks-radius: 16px;
  --jks-shadow: 0 18px 44px rgba(0, 77, 64, .10);
  --jks-max: 1200px;
}

html { scroll-behavior: smooth; }

body.jks_theme {
  margin: 0;
  color: var(--jks-ink);
  background: #f3faf8;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

body.jks_theme a { color: #00796b; }

/* Skip links — tersembunyi kecuali saat fokus keyboard */
body.jks_theme .cmp_skip_to_content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
}

body.jks_theme .cmp_skip_to_content a {
  position: absolute;
  left: -9999px;
  top: .5rem;
  padding: .45rem .85rem;
  border-radius: 8px;
  background: var(--jks-gold);
  color: var(--jks-ink) !important;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}

body.jks_theme .cmp_skip_to_content a:focus {
  left: .75rem;
}

body.jks_theme a:focus-visible,
body.jks_theme button:focus-visible {
  outline: 3px solid var(--jks-gold);
  outline-offset: 3px;
}

body.jks_theme .pkp_structure_page {
  max-width: none;
  margin: 0;
  box-shadow: none;
  background: transparent;
}

/* ===== Header ===== */
body.jks_theme .jks_head {
  border-bottom: 4px solid var(--jks-gold);
  background: linear-gradient(135deg, var(--jks-teal-dark) 0%, var(--jks-teal) 55%, #00897b 100%);
}

body.jks_theme .jks_head_wrapper {
  max-width: var(--jks-max);
  margin: 0 auto;
  padding: 1rem 1.25rem .85rem;
}

body.jks_theme .jks_head_brand {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

body.jks_theme .jks_head_identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

body.jks_theme .jks_head_logo img {
  display: block;
  max-height: 76px;
  width: auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, .95);
  padding: .35rem .5rem;
}

body.jks_theme .jks_head_title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

body.jks_theme .jks_head_title a {
  color: #fff;
  text-decoration: none;
}

body.jks_theme .jks_head_issn {
  margin: .35rem 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}

body.jks_theme .jks_head_nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

body.jks_theme .jks_head_nav .pkp_navigation_user_wrapper {
  margin-left: auto;
}

body.jks_theme .jks_quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.jks_theme .jks_quicknav a {
  display: inline-block;
  padding: .42rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff !important;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}

body.jks_theme .jks_quicknav a:hover,
body.jks_theme .jks_quicknav a:focus {
  background: rgba(255, 255, 255, .24);
  color: #fff !important;
}

body.jks_theme .pkp_navigation_user {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.jks_theme .pkp_navigation_user > li > a {
  color: #fff !important;
  font-size: .86rem;
  font-weight: 600;
}

body.jks_theme .pkp_site_nav_toggle {
  flex: 0 0 auto;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

body.jks_theme .pkp_site_name_wrapper,
body.jks_theme .pkp_navigation_primary_row,
body.jks_theme .pkp_navigation_primary_wrapper,
body.jks_theme .pkp_navigation_search_wrapper {
  display: none !important;
}

/* ===== Layout ===== */
body.jks_theme .pkp_structure_content,
body.jks_theme .pkp_structure_content.jks_has_sidebar {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  max-width: var(--jks-max);
  margin: 1.25rem auto 2rem;
  border: 1px solid var(--jks-line);
  border-radius: var(--jks-radius);
  background: #fff;
  box-shadow: var(--jks-shadow);
  overflow: hidden;
}

body.jks_theme .pkp_structure_main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.35rem 1.5rem 2rem;
}

body.jks_theme .pkp_structure_sidebar.jks_sidebar {
  flex: 0 0 290px;
  width: 290px;
  padding: 1rem .85rem 1.25rem;
  background: linear-gradient(180deg, #f7fffc 0%, var(--jks-mint) 100%);
  border-left: 1px solid var(--jks-line);
}

/* ===== Sidebar ===== */
body.jks_theme .jks-sidebar-card {
  margin-bottom: .85rem;
  padding: .75rem;
  border: 1px solid var(--jks-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 77, 64, .05);
}

body.jks_theme .jks-sidebar-card--brand {
  text-align: center;
  padding: .85rem .65rem;
}

body.jks_theme .jks-sidebar-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
}

body.jks_theme .jks-sidebar-badges img {
  max-width: 48%;
  height: auto;
}

/* Blok akreditasi duplikat dari custom block lama */
body.jks_theme .jks-sidebar-blocks .pkp_block.Accreditation,
body.jks_theme .jks-sidebar-blocks .pkp_block.custom {
  display: none;
}

body.jks_theme .jks-sidebar-nav__title {
  margin: 0 0 .5rem;
  padding: .4rem .55rem;
  border-radius: 8px;
  background: var(--jks-teal);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

body.jks_theme .jks-sidebar-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.jks_theme .jks-sidebar-menu li + li {
  margin-top: .28rem;
}

body.jks_theme .jks-sidebar-menu a {
  display: block;
  padding: .48rem .65rem;
  border-radius: 8px;
  background: var(--jks-accent);
  color: #fff !important;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}

body.jks_theme .jks-sidebar-menu a:hover,
body.jks_theme .jks-sidebar-menu a:focus {
  background: var(--jks-accent-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

body.jks_theme .jks-sidebar-blocks .pkp_block:not(.custom) {
  margin-top: .5rem;
  padding: .75rem;
  border: 1px solid var(--jks-line);
  border-radius: 12px;
  background: #fff;
}

body.jks_theme .jks_intro .jks-intro-copy p {
  margin: 0 0 .65rem;
}

body.jks_theme .jks_intro .jks-intro-copy p:last-child {
  margin-bottom: 0;
}

body.jks_theme .jks_intro .jks-intro-copy em {
  color: var(--jks-muted);
  font-size: .9rem;
}

body.jks_theme .jks-sidebar-blocks .pkp_block:not(.custom) .title {
  margin: 0 0 .45rem;
  padding: .35rem .55rem;
  border-radius: 8px;
  background: var(--jks-teal);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

body.jks_theme .jks-sidebar-blocks .pkp_block:not(.custom) .content {
  font-size: .88rem;
  line-height: 1.5;
  text-align: center;
}

body.jks_theme .jks-sidebar-blocks .pkp_block:not(.custom) .content img {
  max-width: 100%;
  height: auto;
}

/* ===== Beranda ===== */
body.jks_theme .jks_intro {
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--jks-line);
  border-radius: 12px;
  background: #fbfefd;
  color: var(--jks-muted);
  font-size: .96rem;
  line-height: 1.65;
}

body.jks_theme .jks_intro h3 {
  margin: .75rem 0 .35rem;
  color: var(--jks-teal-dark);
  font-size: 1.05rem;
}

body.jks_theme .jks_intro table {
  display: none !important;
}

body.jks_theme .jks_current_issue {
  margin-top: .5rem;
}

body.jks_theme .jks_current_issue > h2 {
  margin: 0 0 .65rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--jks-accent);
  color: var(--jks-teal-dark);
  font-size: 1.25rem;
}

body.jks_theme .current_issue_title {
  margin-bottom: .85rem;
  color: var(--jks-teal);
  font-size: 1.02rem;
  font-weight: 700;
}

body.jks_theme .obj_issue_toc .section {
  margin-top: 1rem;
}

body.jks_theme .obj_issue_toc .section h2,
body.jks_theme .obj_issue_toc .section h3 {
  color: var(--jks-teal-dark);
  font-size: 1rem;
}

body.jks_theme .obj_article_summary {
  padding: .85rem 0;
  border-bottom: 1px solid #e6f2ef;
}

body.jks_theme .obj_article_summary .title {
  margin-bottom: .25rem;
  font-size: .98rem;
  line-height: 1.4;
}

body.jks_theme .obj_article_summary .title a {
  color: var(--jks-teal-dark);
  font-weight: 700;
  text-decoration: none;
}

body.jks_theme .obj_article_summary .title a:hover {
  color: #00796b;
  text-decoration: underline;
}

body.jks_theme .obj_article_summary .meta,
body.jks_theme .obj_article_summary .authors {
  color: var(--jks-muted);
  font-size: .86rem;
}

body.jks_theme .obj_article_summary .galleys_links a {
  display: inline-block;
  margin-top: .35rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--jks-mint);
  font-size: .8rem;
  font-weight: 700;
}

body.jks_theme .read_more {
  display: inline-block;
  margin-top: 1rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--jks-teal);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

body.jks_theme .read_more:hover {
  background: var(--jks-teal-dark);
  color: #fff !important;
}

/* ===== Komponen umum ===== */
body.jks_theme .cmp_button,
body.jks_theme .pkp_button,
body.jks_theme button,
body.jks_theme input[type="submit"] {
  border-radius: 999px;
  background: var(--jks-teal);
  border-color: var(--jks-teal);
  color: #fff;
}

body.jks_theme .pkp_structure_footer_wrapper,
body.jks_theme .jks_footer_wrapper {
  margin-top: 0;
  border-top: 4px solid var(--jks-gold);
  background: linear-gradient(180deg, var(--jks-teal-dark) 0%, #00352e 100%);
  color: rgba(255, 255, 255, .92);
}

body.jks_theme .pkp_structure_footer,
body.jks_theme .jks_footer {
  max-width: var(--jks-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.25rem;
}

body.jks_theme .jks_footer_custom {
  margin-bottom: 1.25rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  font-size: .92rem;
  line-height: 1.6;
}

body.jks_theme .jks_footer_grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

body.jks_theme .jks_footer_kicker {
  margin: 0 0 .35rem;
  color: var(--jks-gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.jks_theme .jks_footer_title {
  margin: 0 0 .45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
}

body.jks_theme .jks_footer_meta,
body.jks_theme .jks_footer_publisher,
body.jks_theme .jks_footer_note {
  margin: 0 0 .35rem;
  color: rgba(255, 255, 255, .78);
  font-size: .86rem;
  line-height: 1.55;
}

body.jks_theme .jks_footer_publisher strong {
  color: #fff;
  font-weight: 700;
}

body.jks_theme .jks_footer_heading {
  margin: 0 0 .55rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid rgba(46, 209, 162, .55);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.jks_theme .jks_footer_links {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.jks_theme .jks_footer_links li + li {
  margin-top: .32rem;
}

body.jks_theme .jks_footer_links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255, 255, 255, .88) !important;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

body.jks_theme .jks_footer_links a:hover,
body.jks_theme .jks_footer_links a:focus {
  color: var(--jks-accent) !important;
  transform: translateX(2px);
}

body.jks_theme .jks_footer_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

body.jks_theme .jks_footer_copy {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .8rem;
  line-height: 1.5;
}

body.jks_theme .jks_footer_ojs {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .65rem .35rem .55rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

body.jks_theme .jks_footer_ojs_label {
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.jks_theme .jks_footer_ojs_link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .85) !important;
  text-decoration: none;
  transition: opacity .15s ease;
}

body.jks_theme .jks_footer_ojs_link:hover,
body.jks_theme .jks_footer_ojs_link:focus {
  opacity: .92;
}

body.jks_theme .jks_footer_ojs_link img {
  display: block;
  width: auto;
  height: 22px;
  opacity: .95;
  filter: brightness(1.05);
}

body.jks_theme .jks_footer_ojs_text {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}

body.jks_theme .pkp_brand_footer img {
  opacity: 1;
}

/* ===== Responsif ===== */
@media (max-width: 991px) {
  body.jks_theme .pkp_structure_content,
  body.jks_theme .pkp_structure_content.jks_has_sidebar {
    flex-direction: column;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  body.jks_theme .pkp_structure_sidebar.jks_sidebar {
    width: auto;
    flex: 1 1 auto;
    border-left: 0;
    border-top: 1px solid var(--jks-line);
  }

  body.jks_theme .jks_head_nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  body.jks_theme .jks_head_nav.is-open {
    display: flex;
  }

  body.jks_theme .jks_quicknav {
    flex-direction: column;
  }

  body.jks_theme .jks_head_identity {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 992px) {
  body.jks_theme .pkp_site_nav_toggle {
    display: none;
  }

  body.jks_theme .pkp_structure_sidebar.jks_sidebar {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }
}

@media (max-width: 767px) {
  body.jks_theme .pkp_structure_main {
    padding: 1rem;
  }

  body.jks_theme .jks_head_wrapper {
    padding: .85rem 1rem;
  }

  body.jks_theme .jks_footer_grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  body.jks_theme .jks_footer_bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
