/* UNTAN internal shell v106
   Purpose: OPAC + Browse/Contact/native pages only.
   Statistik is the visual reference; Home is intentionally untouched. */
:root{
  --untan-live-header-bottom:85px;
  --untan-internal-gap-tablet:34px;
  --untan-internal-gap-mobile:26px;
  --untan-internal-gutter-tablet:14px;
  --untan-internal-gutter-mobile:9px;
}

@media (max-width:900px){
  html,body{overflow-x:hidden!important}

  /* Runtime JS updates --untan-live-header-bottom from the real fixed header. */
  body>main.opac-v23,
  main.opac-v23,
  body>main.untan-page,
  main.untan-page{
    box-sizing:border-box!important;
    margin-top:var(--untan-live-header-bottom,85px)!important;
    padding-top:var(--untan-internal-gap-tablet,34px)!important;
  }

  main.opac-v23>.repo-global-container,
  main.untan-page>.untan-container{
    box-sizing:border-box!important;
    width:calc(100% - (var(--untan-internal-gutter-tablet,14px) * 2))!important;
    max-width:1240px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
  }
}

@media (max-width:640px){
  body>main.opac-v23,
  main.opac-v23,
  body>main.untan-page,
  main.untan-page{
    padding-top:var(--untan-internal-gap-mobile,26px)!important;
  }

  main.opac-v23>.repo-global-container,
  main.untan-page>.untan-container{
    width:calc(100% - (var(--untan-internal-gutter-mobile,9px) * 2))!important;
  }
}

@media (max-width:360px){
  main.opac-v23>.repo-global-container,
  main.untan-page>.untan-container{
    width:calc(100% - 14px)!important;
  }
}

/* UNTAN TEXT CLARITY UNIFIED V1 — INTERNAL */

/* Teks dasar halaman internal */
body main.untan-page {
  color: #09263a !important;
}

/* Teks konten */
body main.untan-page p,
body main.untan-page li,
body main.untan-page span,
body main.untan-page small,
body main.untan-page td,
body main.untan-page th,
body main.untan-page dd,
body main.untan-page dt,
body main.untan-page .ep_summary_content,
body main.untan-page .ep_citation {
  color: #17364a !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Judul halaman dan bagian konten */
body main.untan-page h1,
body main.untan-page h2,
body main.untan-page h3,
body main.untan-page h4 {
  color: #041b2b !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

/* Semua tautan utama tetap biru */
body main.untan-page a,
body main.untan-page a:link,
body main.untan-page a:visited,
body main.untan-page li a,
body main.untan-page li a:link,
body main.untan-page li a:visited {
  color: #064c91 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/*
 * Penting untuk Browse Author:
 * Nama penulis tetap biru meskipun berada
 * di dalam elemen LI atau SPAN.
 */
body main.untan-page a span,
body main.untan-page a strong,
body main.untan-page a em,
body main.untan-page a i {
  color: inherit !important;
}

/* Jumlah koleksi di luar tautan */
body main.untan-page ul li,
body main.untan-page ol li {
  color: #17364a !important;
  font-weight: 500 !important;
}

/* Teks sekunder */
body main.untan-page .muted,
body main.untan-page .text-muted {
  color: #294559 !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

/* Judul hasil Browse dan metadata */
body main.untan-page .ep_view_page,
body main.untan-page .ep_view_browse_list {
  color: #17364a !important;
  opacity: 1 !important;
}

/* Tautan hasil Browse */
body main.untan-page .ep_view_page a,
body main.untan-page .ep_view_browse_list a {
  color: #064c91 !important;
  font-weight: 600 !important;
}

/* Label tabel detail artikel */
body main.untan-page th {
  font-weight: 700 !important;
}

/* Form dan ekspor Browse */
body main.untan-page label,
body main.untan-page select,
body main.untan-page input {
  color: #09263a !important;
}

/* Hover */
body main.untan-page a:hover,
body main.untan-page li a:hover {
  color: #003b76 !important;
}

/* END UNTAN TEXT CLARITY UNIFIED V1 */
