/*
 * Hasanuddin Notary Journal - gaya kustom untuk OJS 3.5 (tema Default)
 * Palet: navy (dokumen hukum), emas antik (aksen), marun (segel).
 * Pasang di: Settings > Website > Appearance > Advanced > Journal style sheet
 * (unggah file .css ini lalu simpan).
 */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap');

:root {
  --hnj-navy: #14213d;
  --hnj-navy-deep: #0e1830;
  --hnj-gold: #b08d3c;
  --hnj-seal: #7a1f2b;
  --hnj-paper: #f6f4ee;
  --hnj-line: #dcd8cc;
  --hnj-ink: #1c2230;
  --hnj-muted: #5d6370;
  --hnj-link: #1d3f7a;
  --hnj-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --hnj-sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Dasar ---------- */
body {
  font-family: var(--hnj-sans);
  color: var(--hnj-ink);
  background: #fff;
}

a { color: var(--hnj-link); }
a:hover, a:focus { color: var(--hnj-seal); }

h1, h2, h3, h4,
.pkp_structure_main h1,
.pkp_structure_main h2,
.page h1 {
  font-family: var(--hnj-serif);
  color: var(--hnj-ink);
}

.pkp_structure_main p,
.page p,
.homepage_about p {
  font-family: var(--hnj-serif);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- Kepala (header) ---------- */
.pkp_structure_head {
  background: var(--hnj-navy) !important;
  border-bottom: 4px solid var(--hnj-gold) !important;
  box-shadow: none !important;
}

.pkp_head_wrapper {
  padding-top: 8px;
}

.pkp_site_name .is_text,
.pkp_site_name > a {
  font-family: var(--hnj-serif) !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0;
  text-decoration: none;
}

/* Tombol menu mobile */
.pkp_site_nav_toggle { background: transparent; }
.pkp_site_nav_toggle:before,
.pkp_site_nav_toggle:after,
.pkp_site_nav_toggle span:before { background: #fff !important; }

/* ---------- Navigasi ---------- */
.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a {
  font-family: var(--hnj-sans);
  font-weight: 600;
  color: #fff !important;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
  background: transparent !important;
  color: #fff !important;
  border-bottom-color: var(--hnj-gold);
}

/* Submenu (About) */
.pkp_navigation_primary ul {
  background: #fff !important;
  border: 1px solid var(--hnj-line);
  border-top: 3px solid var(--hnj-gold);
  box-shadow: 0 8px 20px rgba(14, 24, 48, .18);
}

.pkp_navigation_primary ul a {
  color: var(--hnj-ink) !important;
  font-weight: 600;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  background: var(--hnj-paper) !important;
  color: var(--hnj-seal) !important;
}

/* Kotak pencarian */
.pkp_navigation_search_wrapper a { color: #fff !important; }

/* ---------- Breadcrumb ---------- */
.cmp_breadcrumbs,
.cmp_breadcrumbs a {
  color: var(--hnj-muted);
  font-size: 13px;
}

/* ---------- Beranda: Tentang Jurnal Ini ---------- */
.homepage_about {
  background: var(--hnj-paper);
  border: 1px solid var(--hnj-line);
  border-top: 4px solid var(--hnj-gold);
  padding: 28px 30px;
  margin-bottom: 32px;
}

.homepage_about h2 {
  margin-top: 0;
  font-size: 26px;
}

.homepage_image img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hnj-line);
}

/* ---------- Terbitan dan artikel ---------- */
.current_issue .current_issue_title,
.obj_issue_toc .heading h1,
.page_issue_archive h1 {
  font-family: var(--hnj-serif);
}

.obj_issue_toc .sections > .section > h2,
.current_issue h2 {
  font-family: var(--hnj-serif);
  border-bottom: 2px solid var(--hnj-gold);
  padding-bottom: 6px;
}

.obj_article_summary {
  border-bottom: 1px solid var(--hnj-line);
  padding: 16px 0;
}

.obj_article_summary .title,
.obj_article_summary .title a {
  font-family: var(--hnj-serif);
  font-weight: 600;
  color: var(--hnj-link);
  text-decoration: none;
}

.obj_article_summary .title a:hover { color: var(--hnj-seal); }

.obj_article_summary .authors,
.obj_article_summary .pages {
  color: var(--hnj-muted);
  font-size: 14px;
}

/* ---------- Tombol ---------- */
.cmp_button, .cmp_button_wire,
.obj_galley_link,
.pkp_button,
button.submit,
input[type="submit"],
a.read_more {
  font-family: var(--hnj-sans);
  font-weight: 700;
}

.obj_galley_link,
.cmp_button,
button.submit,
input[type="submit"] {
  background: var(--hnj-seal);
  border: 0;
  border-bottom: 3px solid var(--hnj-gold);
  color: #fff;
  border-radius: 0;
}

.obj_galley_link:hover, .obj_galley_link:focus,
.cmp_button:hover, .cmp_button:focus,
button.submit:hover, input[type="submit"]:hover {
  background: var(--hnj-navy);
  color: #fff;
}

/* ---------- Sidebar ---------- */
.pkp_structure_sidebar .pkp_block {
  border: 1px solid var(--hnj-line);
  padding: 0 0 12px;
  margin-bottom: 22px;
}

.pkp_structure_sidebar .pkp_block .title {
  display: block;
  margin: 0 0 12px;
  padding: 11px 16px;
  background: var(--hnj-paper);
  border-bottom: 1px solid var(--hnj-line);
  color: var(--hnj-muted);
  font-family: var(--hnj-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pkp_structure_sidebar .pkp_block > *:not(.title) {
  margin-left: 16px;
  margin-right: 16px;
}

/* ---------- Kaki (footer) ---------- */
.pkp_structure_footer_wrapper {
  background: var(--hnj-navy) !important;
  border-top: 4px solid var(--hnj-gold);
  color: #fff;
}

.pkp_structure_footer_wrapper a,
.pkp_structure_footer_wrapper p {
  color: #fff;
}

/* ---------- Fokus keyboard ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--hnj-gold);
  outline-offset: 2px;
}

/* ---------- Layar kecil ---------- */
@media (max-width: 767px) {
  .homepage_about { padding: 20px 18px; }
  .pkp_site_name .is_text { font-size: 22px; }
}

/* ---------- v2: tabel info jurnal + Quick Menu (gaya Legality) ---------- */
.page table {
  width: 100%;
  border-collapse: collapse;
  background: var(--hnj-paper);
  border: 1px solid var(--hnj-line);
  margin: 0 0 24px;
  font-family: var(--hnj-sans);
  font-size: 15px;
}
.page table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--hnj-line);
  vertical-align: top;
}
.page table td:first-child {
  width: 30%;
  color: var(--hnj-muted);
  font-weight: 600;
}

.pkp_structure_sidebar .pkp_block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pkp_structure_sidebar .pkp_block ul li { margin: 0 0 4px; padding: 0; }
.pkp_structure_sidebar .pkp_block ul li a {
  display: block;
  padding: 11px 16px;
  background: var(--hnj-navy);
  border-left: 4px solid var(--hnj-gold);
  color: #fff;
  font-family: var(--hnj-sans);
  font-weight: 600;
  text-decoration: none;
}
.pkp_structure_sidebar .pkp_block ul li a:hover,
.pkp_structure_sidebar .pkp_block ul li a:focus {
  background: var(--hnj-seal);
  color: #fff;
}
