/* ==========================================================================
   JARQF — Journal of Actuarial, Risk, and Quantitative Finance
   Stylesheet v4 — basis Nutrition, hardening robustness & maintainability
   --------------------------------------------------------------------------
   Perubahan v4 dibanding v3:
   - Aset eksternal (jejakdosen.com) DIHAPUS: background pakai path lokal OJS
     + warna fallback; ikon penulis diganti SVG inline (nol dependensi luar)
   - Ditambah blok @media print untuk halaman artikel yang rapi saat dicetak
   - Layout homepage_image dibuat lebih kokoh (hapus margin negatif, max-width)
   - Selektor struktural TIDAK berubah; v3 sudah terbukti bekerja
   --------------------------------------------------------------------------
   CATATAN PEMASANGAN ASET (wajib):
   Unggah motif.jpg & cover ke OJS: Settings > Website > Setup > Files,
   lalu sesuaikan path /public/journals/66/... di bawah bila berbeda.
   --------------------------------------------------------------------------
   Warna brand : #114176 (navy) / #0A2A4E (navy gelap) / #E8EEF5 (navy tint)
   Font        : Lora (body/serif) + Roboto (nav/UI)
   Install     : Settings > Website > Appearance > Setup > Journal Style Sheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Roboto:wght@400;500;700&display=swap');


/* --------------------------------------------------------------------------
   Page structure
   -------------------------------------------------------------------------- */
.pkp_structure_page {
  margin: 0 auto;
  max-width: 1160px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 42, 78, 0.06),
              0 8px 32px rgba(10, 42, 78, 0.10);   /* shadow berlapis, lembut */
  border-radius: 8px;
  overflow: hidden;                                  /* radius rapi di sudut banner */
}

@media (min-width: 1200px) {
  .pkp_structure_page {
    margin-top: 36px;
    margin-bottom: 36px;
  }
}

.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
  position: relative;
  padding-top: 0;
}

html,
body {
  /* Fallback warna brand tint dulu, baru motif lokal. Ganti path bila perlu. */
  background-color: #E8EEF5;
  background-image: url(/public/journals/66/motif.jpg);
  background-repeat: repeat;
  background-attachment: fixed;
}

body {
  font-family: Lora, Georgia, serif !important;
  color: #21262e;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fokus keyboard terlihat jelas — aksesibilitas */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #114176;
  outline-offset: 2px;
}

::selection {
  background: #114176;
  color: #fff;
}


/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.pkp_site_name_wrapper {
  width: 100% !important;
  background: #ffffff;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  margin-bottom: 0px !important;
}

.pkp_screen_reader {
  margin: 0px !important;
}

.pkp_site_name {
  margin: 0 !important;
  padding: 0px;
}

.pkp_site_name > a {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pkp_site_name a {
  margin: auto !important;
}

.pkp_site_name .is_img img {
  max-height: 100% !important;
  max-width: 100% !important;
}


/* --------------------------------------------------------------------------
   Primary navigation bar
   -------------------------------------------------------------------------- */
.pkp_navigation_primary_row {
  background-image: linear-gradient(to top right, #0A2A4E, #114176);  /* gradient halus gelap→terang */
  font-weight: bold;
  padding-left: 30px;
  padding-right: 30px;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.08);
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li {
  padding: 0 !important;
  margin: 0 !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
  margin: 0 !important;
  padding: 0 16px !important;
  line-height: 44px !important;          /* touch target lebih lega (44px standar) */
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li,
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
  font-family: Roboto, system-ui, sans-serif;
  color: #ffffff !important;
  font-weight: 500 !important;            /* medium, lebih elegan dari bold penuh */
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #114176 !important;
  border-radius: 6px !important;           /* radius kecil, modern; bukan pil 20px */
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul,
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li a:hover {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul {
  background-image: linear-gradient(to bottom, #114176, #0A2A4E) !important;
  box-shadow: 0 10px 28px rgba(10, 42, 78, 0.30);
  border-radius: 0 0 8px 8px !important;
  overflow: hidden;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li {
  border-bottom: solid 1px rgba(255, 255, 255, 0.14) !important;   /* hairline subtle, bukan putih solid */
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li:last-child {
  border-bottom: none !important;
}


/* --------------------------------------------------------------------------
   User navigation (login, register, username)
   -------------------------------------------------------------------------- */
.pkp_navigation_user_wrapper {
  padding-left: 0;
  padding-right: 30px;
  padding-top: 10px;
}

.pkp_navigation_user.pkp_nav_list .profile a {
  border-radius: 15px !important;
  padding-left: 12px;
  padding-right: 12px;
}

.profile a {
  background: #114176;
  color: #fff !important;
  transition: background 0.18s ease;
}

.profile a:hover {
  background: #0A2A4E;
}

.dropdown-menu {
  background: #114176 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(10, 42, 78, 0.30);
  overflow: hidden;
}

.dropdown-menu li a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

.pkp_site_nav_toggle {
  background: #114176 !important;
}


/* --------------------------------------------------------------------------
   Search box di nav
   -------------------------------------------------------------------------- */
.pkp_navigation_search_wrapper {
  background: rgba(255, 255, 255, 0.12);     /* glassy di atas nav navy */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.pkp_navigation_search_wrapper a {
  color: #ffffff;
}

.pkp_navigation_search_wrapper a:hover {
  color: #ffffff;
}

.pkp_navigation_search_wrapper:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  border-radius: 20px;                        /* tetap pil saat hover — tidak melompat jadi kotak */
}


/* --------------------------------------------------------------------------
   Sidebar — image menu
   -------------------------------------------------------------------------- */
.pkp_block.block_custom {
  padding-left: 15px;
  padding-right: 15px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-menu-item {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(10, 42, 78, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sidebar-menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(17, 65, 118, 0.22);
}

.sidebar-menu-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Judul block sidebar standar OJS (mis. "Information", "Keywords") */
.pkp_block .title {
  font-family: Roboto, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #114176;
  border-bottom: 2px solid #114176;
  padding-bottom: 6px;
}


/* --------------------------------------------------------------------------
   Main content — article summary, headings, link
   -------------------------------------------------------------------------- */
.pkp_structure_main h1 {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
  color: #1a1f27;
}

.pkp_structure_main h2 {
  font-weight: 600;
  color: #1a1f27;
}

.pkp_structure_main a {
  color: #114176 !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pkp_structure_main a:hover {
  color: #0A2A4E !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Kartu artikel: putih + aksen kiri navy; shadow lembut berwarna; lift saat hover */
.obj_article_summary {
  background: #ffffff;
  border: 1px solid #e6e9ee;
  border-left: 4px solid #114176;
  border-bottom: 1px solid #e6e9ee !important;   /* override border tebal versi lama */
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(10, 42, 78, 0.07);
  padding: 20px 22px !important;
  font-size: 14px;                                /* naik dari 12px — keterbacaan */
  line-height: 1.6;
  margin-bottom: 18px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.obj_article_summary:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(10, 42, 78, 0.13);
  transform: translateY(-2px);
}

.obj_article_summary .title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.obj_article_summary .meta,
.obj_article_summary .authors {
  color: #5c6470;
  font-size: 13px;
}

/* Tombol galley (PDF dll.): teks SELALU terbaca — fix bug invisible text */
.obj_galley_link {
  font-weight: 600;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 12px;
  text-transform: uppercase !important;
  letter-spacing: 0.05em;
  background: #114176 !important;
  color: #ffffff !important;                       /* FIX: dulu #fcfef3 di atas #f1f1f1 = invisible */
  border: solid 1px #114176 !important;
  border-radius: 6px;
  padding: 5px 14px;
  transition: background 0.18s ease, color 0.18s ease;
}

.obj_galley_link:hover {
  background: #ffffff !important;
  color: #114176 !important;
}


/* --------------------------------------------------------------------------
   Article detail page
   -------------------------------------------------------------------------- */
.main_entry .item.abstract {
  text-align: justify;
  hyphens: auto;
  line-height: 1.75;
}

.obj_article_details .page_title {
  background: linear-gradient(135deg, #f5f8fc 0%, #eef3f9 100%);   /* tint navy pucat, bukan krem */
  padding: 20px 24px;
  border-radius: 10px;
  border-left: 4px solid #114176;
  box-shadow: 0 2px 8px rgba(10, 42, 78, 0.08);     /* FIX: shadow hitam kasar → lembut berwarna */
  font-size: 24px;
  line-height: 1.35;
}

.meta .authors {
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='%23114176'%3E%3Cpath%20d='M16%2011c1.66%200%202.99-1.34%202.99-3S17.66%205%2016%205c-1.66%200-3%201.34-3%203s1.34%203%203%203zm-8%200c1.66%200%202.99-1.34%202.99-3S9.66%205%208%205C6.34%205%205%206.34%205%208s1.34%203%203%203zm0%202c-2.33%200-7%201.17-7%203.5V19h14v-2.5C15%2014.17%2010.33%2013%208%2013zm8%200c-.29%200-.62.02-.97.05%201.16.84%201.97%201.97%201.97%203.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") 6px center / 18px no-repeat #f5f7fa;
  font-weight: bold;
  margin-top: 4px;
  padding: 5px 10px 5px 32px;
  border-radius: 6px;
}

.description {
  text-align: justify;
}

.obj_issue_toc .heading .cover img {
  box-shadow: 0 6px 20px rgba(10, 42, 78, 0.18);    /* FIX: `4px 2px 5px gray` → modern */
  border-radius: 6px;
}


/* --------------------------------------------------------------------------
   Homepage — about + cover image
   -------------------------------------------------------------------------- */
.homepage_about {
  display: inline-block;
  width: 70%;
  text-align: justify;
  hyphens: auto;
}

.homepage_image {
  display: inline-block;
  width: 28%;
  margin-left: 0px;
  float: right;
  margin-top: 0px !important;
}

.homepage_image img {
  margin: 40px 15px 0 0;        /* hapus margin negatif yang rapuh */
  width: 100%;
  max-width: 300px;             /* tidak overflow di lebar menengah */
  height: auto;
  display: block;
  box-shadow: 0 8px 24px rgba(10, 42, 78, 0.18);
  border-radius: 8px;
}

.pkp_structure_content.has_sidebar {
  padding-top: 0px;
}

.pkp_structure_main .page {
  padding-top: 20px;
}

.deskripsi {
  border: none;
  border-left: 4px solid #114176;
  padding: 16px 20px;
  background-color: #0A2A4E;
  color: #eef3f9;
  border-radius: 8px;
  text-align: left;
}

.cmp_announcements.highlight_first {
  background-color: #f5f8fc;
  border-radius: 8px;
}


/* --------------------------------------------------------------------------
   Footer — 3 kolom
   -------------------------------------------------------------------------- */
.pkp_structure_footer_wrapper {
  background: #f6f7f9;
  border-top: 4px solid #114176;
  border-bottom: 20px solid #114176;
}

.pkp_structure_footer {
  clear: both !important;
  display: block !important;
  width: 100%;
  background-color: transparent;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.pkp_footer_content {
  float: none !important;
  width: 100% !important;
  background: transparent !important;
  padding: 44px 30px !important;
}

.pkp_footer_content p {
  margin: 0 0 8px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-col h4,
.footer-col h3 {
  color: #114176;
  font-family: Lora, Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(17, 65, 118, 0.18);   /* underline aksen tipis */
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  padding: 4px 0;
}

.footer-col a {
  color: #3a4250;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-col a:hover {
  color: #114176;
  text-decoration: none;
  padding-left: 3px;                                   /* micro-shift saat hover */
}

.footer-col--right {
  text-align: right;
}

.footer-col--right img {
  display: inline-block;
  margin-top: 8px;
  max-width: 88px;
  height: auto;
}

.pkp_structure_footer .pkp_brand_footer {
  background: transparent !important;
  height: auto !important;
  padding: 14px 30px !important;
  text-align: right;
  border-top: 1px solid #e2e5ea;
  max-width: 1100px;
  margin: 0 auto;
}

.pkp_structure_footer .pkp_brand_footer img {
  width: auto !important;
  max-height: 30px;
  height: auto;
  vertical-align: middle;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.pkp_structure_footer .pkp_brand_footer img:hover {
  opacity: 1;
}


/* --------------------------------------------------------------------------
   Sidebar cleanup
   -------------------------------------------------------------------------- */
.pkp_structure_sidebar.left,
.pkp_structure_sidebar.right {
  background: none !important;
}


/* --------------------------------------------------------------------------
   Print — halaman artikel bersih saat dicetak / Save as PDF
   -------------------------------------------------------------------------- */
@media print {
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  .pkp_structure_page {
    max-width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  /* Sembunyikan kerangka situs, sisakan konten artikel */
  .pkp_navigation_primary_row,
  .pkp_navigation_user_wrapper,
  .pkp_navigation_search_wrapper,
  .pkp_site_name_wrapper,
  .pkp_structure_sidebar,
  .pkp_block,
  .pkp_structure_footer_wrapper,
  .pkp_brand_footer,
  .obj_galley_link,
  .item.citation_display,
  .pkp_site_nav_toggle {
    display: none !important;
  }
  .pkp_structure_content.has_sidebar,
  .pkp_structure_main {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .obj_article_details .page_title {
    background: none !important;
    box-shadow: none !important;
    border-left: none !important;
    padding: 0 0 8pt 0 !important;
    font-size: 18pt;
  }
  .main_entry .item.abstract { line-height: 1.5; }
  a { color: #000 !important; text-decoration: none !important; }
  /* Tampilkan URL tautan penting agar terbaca di kertas */
  .main_entry a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555;
  }
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .homepage_about {
    margin-top: 30px;
  }
  .pkp_structure_main {
    margin-top: 0px !important;
    padding-top: 100px;
  }
  .pkp_site_name_wrapper {
    padding-bottom: 0px;
  }
  .pkp_navigation_search_wrapper {
    margin: 0 auto !important;
    padding: 10px !important;
  }
  .pkp_structure_page {
    border-radius: 0;                /* di tablet/mobile container full width, radius tidak perlu */
  }
}

@media (max-width: 768px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col--right {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .homepage_about {
    width: 100%;
  }
  .pkp_structure_main {
    padding-top: 20px !important;
  }
  .obj_article_summary {
    padding: 16px !important;
  }
}

@media (max-width: 360px) {
  .homepage_image {
    width: 90%;
    margin: 0;
  }
  .homepage_about {
    margin-top: 0px;
  }
  .pkp_structure_main {
    padding-top: 0px !important;
  }
}

/* Hormati preferensi pengguna yang sensitif gerakan */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
