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

:root {
  --tujr-green-900: #064a2b;
  --tujr-green-800: #075e32;
  --tujr-green-700: #087b43;
  --tujr-gold: #e7bd19;
  --tujr-ink: #17241d;
  --tujr-muted: #5d6b63;
  --tujr-line: #dce8df;
  --tujr-paper: #f5f8f3;
  --tujr-shadow: 0 14px 40px rgba(6, 74, 43, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--tujr-ink);
  background-color: var(--tujr-paper);
  background-image: url('../images/legal-pattern.svg?build=2');
  background-position: 0 0;
  background-size: 420px 280px;
  background-attachment: fixed;
  font-family: "Source Serif 4", "Noto Kufi Arabic", serif;
  font-size: 17px;
  line-height: 1.8;
}
html[lang="ar"] body { font-family: "Noto Kufi Arabic", sans-serif; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] a,
html[lang="ar"] label,
html[lang="ar"] strong,
html[lang="ar"] em,
html[lang="ar"] summary,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select,
html[lang="ar"] button {
  font-family: "Noto Kufi Arabic", sans-serif !important;
}
a { color: var(--tujr-green-700); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--tujr-green-900); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--tujr-gold); outline-offset: 3px; }
img, video, canvas, svg { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
table { max-width: 100%; }
.pkp_structure_main, .pkp_structure_main p, .pkp_structure_main li,
.pkp_structure_main a, .obj_article_summary .title { overflow-wrap: anywhere; word-break: normal; }
.tujr-language-switcher {
  position: absolute; top: 10px; left: 18px; z-index: 11; display: block; min-width: 82px;
  padding: 4px 12px; border: 1px solid var(--tujr-green-800); border-radius: 5px;
  background: #fff; color: var(--tujr-green-900); box-shadow: 0 3px 10px rgba(6, 74, 43, .10);
  font: 600 .75rem/1.5 "Noto Kufi Arabic", sans-serif; text-align: center; text-decoration: none;
}
.tujr-language-switcher:hover, .tujr-language-switcher:focus { background: #f0f7ed; color: var(--tujr-green-900); }
html[lang="en"] .tujr-language-switcher { right: 18px; left: auto; }

.pkp_structure_head {
  border: 0; background-color: #fbfdf9; background-image: url('../images/legal-pattern.svg?build=2');
  background-position: center top; background-size: 420px 280px;
  box-shadow: 0 4px 24px rgba(6, 74, 43, .09);
}
.pkp_head_wrapper { width: calc(100% - 48px); max-width: 1600px; padding: 0 28px; }
.pkp_site_name_wrapper {
  position: relative; min-height: 168px; display: flex; align-items: center; justify-content: center;
  padding: 18px 150px 18px 28px;
  background: radial-gradient(circle at 50% 120%, rgba(239, 247, 223, .88) 0, rgba(255, 255, 255, .76) 62%, rgba(255, 255, 255, .58) 100%);
}
.pkp_site_name_wrapper::before, .pkp_site_name_wrapper::after {
  content: ""; position: absolute; top: 18px; width: 112px; height: 128px;
  background-position: center; background-repeat: no-repeat; background-size: contain;
}
.pkp_site_name_wrapper::before { right: 12px; background-image: url('../images/tujr-logo-clean.png'); }
.pkp_site_name_wrapper::after { display: none; }
html[lang="en"] .pkp_site_name_wrapper { padding: 18px 28px 18px 150px; }
html[lang="en"] .pkp_site_name_wrapper::before { right: auto; left: 12px; }
.pkp_site_name { margin: 0; text-align: center; }
.pkp_site_name .is_text {
  display: block; color: var(--tujr-green-900); font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 700; line-height: 1.45; text-decoration: none;
}
html[lang="ar"] .pkp_site_name .is_text::after {
  content: "مجلة علمية قانونية فصلية محكّمة ومفتوحة الوصول"; display: block;
  margin-top: .35rem; color: var(--tujr-muted); font-size: .78rem; font-weight: 500;
}
html[lang="en"] .pkp_site_name .is_text::after {
  content: "Peer-reviewed quarterly journal · Open access"; display: block;
  margin-top: .35rem; color: var(--tujr-muted); font-size: .9rem; font-weight: 500;
}

.pkp_site_nav_menu { background: linear-gradient(100deg, var(--tujr-green-900), var(--tujr-green-700)); }
.pkp_navigation_primary_row, .pkp_navigation_user_wrapper { padding-inline: 10px; }
.pkp_navigation_primary > li > a, .pkp_navigation_user > li > a, .pkp_navigation_search_wrapper a { color: #fff; font-weight: 600; }
.pkp_navigation_primary > li > a { padding-block: 16px; padding-inline: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.pkp_navigation_primary > li > a:hover, .pkp_navigation_primary > li > a:focus { color: #fff; border-color: var(--tujr-gold); }
.pkp_nav_list ul { border-radius: 10px; border: 1px solid var(--tujr-line); box-shadow: var(--tujr-shadow); }
.pkp_nav_list ul a { color: var(--tujr-ink); }

@media (min-width: 992px) {
  html body .pkp_navigation_user_wrapper {
    position: absolute !important; top: 10px !important; right: 18px !important; left: auto !important; z-index: 12;
    width: auto !important; margin: 0 !important; padding: 0 !important; transform: none !important;
    border: 0; background: transparent; box-shadow: none; text-align: initial;
  }
  html[lang="en"] body .pkp_navigation_user_wrapper {
    right: auto !important; left: 18px !important;
  }
  html body .pkp_navigation_user { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
  html[lang="en"] body .pkp_navigation_user { direction: ltr; }
  html[lang="ar"] body .pkp_navigation_user { direction: rtl; }
  .pkp_navigation_user > li > a {
    display: flex; min-width: 82px; min-height: 32px; margin: 0; padding: 4px 11px;
    align-items: center; justify-content: center;
    border: 1px solid var(--tujr-green-800); border-radius: 5px;
    background: var(--tujr-green-900); color: #fff; font-size: .75rem; line-height: 1.5;
    text-align: center; text-decoration: none; box-shadow: 0 3px 10px rgba(6, 74, 43, .12);
  }
  .pkp_navigation_user > li + li { border: 0; }
  .pkp_navigation_user > li > a:hover,
  .pkp_navigation_user > li > a:focus { border-radius: 5px; background: var(--tujr-green-700); color: #fff; }
  .pkp_site_name_wrapper::before { top: 43px; height: 105px; }
  .pkp_navigation_primary_row {
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
    width: 100%; min-height: 62px;
  }
  .pkp_navigation_primary_wrapper {
    display: flex; width: 100%; min-width: 0; flex-wrap: nowrap;
    align-items: center; justify-content: space-between;
  }
  .pkp_navigation_primary {
    display: flex !important; width: auto; max-width: none !important; min-width: 0; flex: 1 1 auto;
    flex-wrap: nowrap; align-items: center; justify-content: flex-start; white-space: nowrap;
  }
  .pkp_navigation_primary > li { flex: 0 0 auto; }
  .pkp_navigation_primary > li > a { margin-inline: 0 !important; font-size: clamp(.82rem, 1vw, 1rem); }
  .pkp_navigation_search_wrapper {
    float: none !important; width: auto; margin-inline-start: 18px; flex: 0 0 auto; white-space: nowrap;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .pkp_navigation_primary > li > a { padding-inline: 8px; font-size: .76rem; }
  .pkp_navigation_search_wrapper { width: auto; margin-inline-start: 8px; font-size: .78rem; }
  .pkp_navigation_primary { width: auto; }
}

.pkp_structure_content { width: calc(100% - 48px); max-width: 1600px; padding: 40px 28px 70px; }
.pkp_structure_main {
  width: 100%; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--tujr-line);
  border-radius: 20px; background: #fff; box-shadow: var(--tujr-shadow);
}
.pkp_structure_main::before, .pkp_structure_main::after { display: none; }
.pkp_structure_sidebar { padding-inline-start: 32px; }
.pkp_structure_main h1, .pkp_structure_main h2, .pkp_structure_main h3 { color: var(--tujr-green-900); line-height: 1.5; }
.pkp_structure_main h1 { margin-top: 0; padding-bottom: .65rem; border-bottom: 3px solid var(--tujr-gold); font-size: clamp(1.7rem, 3vw, 2.35rem); }
.cmp_breadcrumbs { margin-bottom: 24px; color: var(--tujr-muted); font-size: .86rem; }

.page_index_journal .homepage_about {
  position: relative; margin: 0 0 36px; padding: clamp(24px, 4vw, 42px); overflow: hidden;
  border: 1px solid #cfe2d5; border-radius: 18px; background: linear-gradient(135deg, #f4faef, #fffbea);
}
.page_index_journal .homepage_about::after {
  content: ""; position: absolute; inset-inline-end: -35px; bottom: -40px; width: 180px; height: 180px;
  opacity: .07; background: url('../images/tujr-logo-clean.png') center/contain no-repeat;
}
.homepage_about h2, .current_issue > h2 { margin-top: 0; }
.homepage_about p { max-width: 850px; margin-bottom: 0; font-size: 1.05rem; }
.current_issue { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--tujr-line); }
.current_issue_title { color: var(--tujr-green-800); font-size: 1.25rem; font-weight: 700; }

.issues_archive {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  margin: 20px 0 40px; padding: 0;
}
.issues_archive > li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.tujr-archive-tree { display: grid; gap: 16px; margin: 24px 0 40px; }
.tujr-year-group {
  overflow: hidden; border: 1px solid var(--tujr-line); border-radius: 15px;
  background: #fff; box-shadow: 0 7px 24px rgba(6, 74, 43, .07);
}
.tujr-year-group summary {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 74px; padding-block: 16px; padding-inline: 58px 24px; cursor: pointer; list-style: none;
  background: linear-gradient(110deg, #f2f8ed, #fffbea); color: var(--tujr-green-900);
  transition: background .2s ease;
}
.tujr-year-group summary::-webkit-details-marker { display: none; }
.tujr-year-group summary::before {
  content: "+"; position: absolute; inset-inline-start: 21px; top: 50%; width: 27px; height: 27px;
  transform: translateY(-50%); border-radius: 50%; background: var(--tujr-green-800); color: #fff;
  font: 700 20px/27px Arial, sans-serif; text-align: center; transition: transform .2s ease, background .2s ease;
}
.tujr-year-group[open] summary::before { content: "−"; background: var(--tujr-gold); color: var(--tujr-green-900); }
.tujr-year-group summary:hover { background: #edf6e8; }
.tujr-year-title { font-size: 1.45rem; font-weight: 700; }
.tujr-year-count { padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--tujr-muted); font-size: .82rem; }
.tujr-year-issues { margin: 0 !important; padding: 20px !important; border-top: 1px solid var(--tujr-line); animation: archiveReveal .24s ease-out; }
@keyframes archiveReveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.obj_issue_summary {
  position: relative; min-height: 150px; height: 100%; padding: 30px 112px 24px 26px;
  overflow: hidden; border: 1px solid var(--tujr-line); border-radius: 14px; background: #fff;
  box-shadow: 0 7px 22px rgba(6, 74, 43, .07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.obj_issue_summary::before {
  content: ""; position: absolute; inset-inline-start: 20px; top: 24px; width: 76px; height: 96px;
  background: url('../images/tujr-logo-clean.png') center/contain no-repeat;
}
.obj_issue_summary:hover { transform: translateY(-3px); border-color: #a9cfb5; box-shadow: var(--tujr-shadow); }
.obj_issue_summary h2 { margin: 0; font-size: 1rem; }
.obj_issue_summary .title { display: block; text-decoration: none; }
.obj_issue_summary .title::after {
  content: "عرض العدد ←"; display: block; margin-top: .85rem; color: var(--tujr-green-700); font-size: .78rem; font-weight: 600;
}
html[lang="en"] .obj_issue_summary .title::after { content: "View issue →"; }
.obj_issue_summary .description { display: none; }

.obj_article_summary {
  margin-bottom: 16px; padding: 24px; border: 1px solid var(--tujr-line); border-radius: 13px;
  background: #fff; box-shadow: 0 6px 20px rgba(6, 74, 43, .06);
}
.obj_article_summary .title { color: var(--tujr-green-900); font-size: 1.04rem; font-weight: 700; }
.obj_galley_link, .pkp_button, .cmp_button, button.submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .55rem 1.05rem;
  border: 0; border-radius: 8px; background: var(--tujr-green-800); color: #fff; font-weight: 600; text-decoration: none;
}
.obj_galley_link:hover, .pkp_button:hover, .cmp_button:hover, button.submit:hover { background: var(--tujr-green-700); color: #fff; }
.cmp_pagination { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--tujr-line); }
.cmp_pagination a { padding: .55rem .9rem; border-radius: 8px; background: var(--tujr-green-800); color: #fff; text-decoration: none; }

.tujr-policy-page { width: 100%; max-width: none; }
.tujr-policy-page .lead { padding: 18px 22px; border-inline-start: 5px solid var(--tujr-gold); border-radius: 8px; background: #f3f8f1; font-size: 1.08rem; }
.tujr-policy-page h2 { margin-top: 2rem; font-size: 1.25rem; }
.tujr-policy-page li { margin-bottom: .55rem; }
.tujr-policy-page .notice { margin: 24px 0; padding: 18px 20px; border: 1px solid #ead279; border-radius: 10px; background: #fff9df; }
.tujr-policy-page .journal-facts { margin: 26px 0 34px; padding: 0; list-style: none; }
.tujr-policy-page .journal-facts li { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--tujr-line); }
.tujr-policy-page .journal-facts li:nth-child(odd) { background: #f6faf5; }
.tujr-policy-page .journal-facts strong { color: var(--tujr-green-900); }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.policy-grid a { display: flex; min-height: 112px; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid var(--tujr-line); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(6,74,43,.06); text-decoration: none; }
.policy-grid a:hover { border-color: #a9cfb5; transform: translateY(-2px); }
.policy-grid strong { color: var(--tujr-green-900); }
.policy-grid span { margin-top: 5px; color: var(--tujr-muted); font-size: .85rem; }
.editorial-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--tujr-line); border-radius: 14px; }
.editorial-board-table { width: 100%; border-collapse: collapse; background: #fff; }
.editorial-board-table th, .editorial-board-table td { padding: 14px 16px; border-bottom: 1px solid var(--tujr-line); text-align: start; vertical-align: middle; }
.editorial-board-table th { background: var(--tujr-green-900); color: #fff; font-weight: 700; }
.editorial-board-table tbody tr:nth-child(even) { background: #f5f9f3; }
.editorial-board-table tbody tr:hover { background: #fffbea; }
.editorial-board-table tbody tr:last-child td { border-bottom: 0; }
.editorial-board-table td:nth-child(1) { width: 22%; color: var(--tujr-green-800); font-weight: 600; }
.editorial-board-table td:nth-child(2) { width: 34%; font-weight: 600; }

.pkp_structure_footer_wrapper {
  position: relative; padding: 38px 24px; border-top: 5px solid var(--tujr-gold);
  background: linear-gradient(115deg, #043b23, var(--tujr-green-800)); color: #fff;
}
.pkp_structure_footer_wrapper::before {
  content: "Tikrit University Journal for Rights · ISSN 2519-6138 · E-ISSN 2663-8983";
  display: block; max-width: 1180px; margin: 0 auto; text-align: center; font-size: .9rem;
}
.pkp_brand_footer { display: none; }

@media (max-width: 991px) {
  .pkp_site_name_wrapper { min-height: 145px; padding: 18px 110px 18px 24px; }
  html[lang="en"] .pkp_site_name_wrapper { padding: 18px 24px 18px 110px; }
  .pkp_site_name_wrapper::before, .pkp_site_name_wrapper::after { width: 84px; height: 105px; }
  .pkp_structure_content { padding: 24px 18px 50px; }
  .pkp_structure_main { padding: 26px 22px; }
  .pkp_structure_sidebar { padding-inline-start: 0; }
  .pkp_navigation_primary > li, .pkp_navigation_user > li { width: 100%; }
  .pkp_navigation_primary > li > a, .pkp_navigation_user > li > a {
    display: block; width: 100%; margin: 0; padding: 11px 12px; text-align: start;
  }
  .pkp_navigation_search_wrapper { float: none; width: 100%; margin: 8px 0 0; }
  .pkp_navigation_search_wrapper a { display: block; width: 100%; padding: 11px 12px; }
}
@media (max-width: 767px) {
  body { font-size: 15px; }
  body { background-size: 315px 210px; background-attachment: scroll; }
  .tujr-language-switcher { top: 8px; left: 48px; min-width: 68px; padding: 3px 8px; font-size: .68rem; }
  html[lang="en"] .tujr-language-switcher { right: 8px; left: auto; }
  .pkp_head_wrapper { width: 100%; max-width: none; padding: 0; }
  .pkp_site_name_wrapper { min-height: 112px; padding: 14px 74px 14px 14px; }
  html[lang="en"] .pkp_site_name_wrapper { padding: 14px 14px 14px 74px; }
  .pkp_site_name_wrapper::before, .pkp_site_name_wrapper::after { top: 15px; width: 58px; height: 78px; }
  .pkp_site_name .is_text { font-size: 1.1rem; }
  html[lang="ar"] .pkp_site_name .is_text::after, html[lang="en"] .pkp_site_name .is_text::after { font-size: .62rem; }
  .pkp_site_nav_toggle { background: var(--tujr-green-900); }
  .pkp_site_nav_menu { padding: 12px 18px 22px; }
  .pkp_structure_content { width: 100%; max-width: none; padding: 14px 10px 36px; }
  .pkp_structure_main { padding: 22px 16px; border-radius: 13px; }
  .issues_archive { grid-template-columns: 1fr; gap: 12px; }
  .tujr-archive-tree { gap: 11px; margin-top: 18px; }
  .tujr-year-group summary { min-height: 62px; padding-block: 12px; padding-inline: 48px 15px; }
  .tujr-year-group summary::before { inset-inline-start: 14px; }
  .tujr-year-title { font-size: 1.15rem; }
  .tujr-year-count { font-size: .72rem; }
  .tujr-year-issues { padding: 12px !important; }
  .policy-grid { grid-template-columns: 1fr; }
  .obj_issue_summary { min-height: 112px; padding: 20px 76px 18px 18px; }
  .obj_issue_summary::before { width: 46px; height: 60px; }
  .obj_article_summary { padding: 18px 14px; }
  .obj_article_summary .title { font-size: .96rem; line-height: 1.65; }
  .obj_galley_link, .pkp_button, .cmp_button, button.submit { max-width: 100%; white-space: normal; text-align: center; }
  .tujr-policy-page table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .editorial-table-wrap { overflow: visible; border: 0; }
  .editorial-board-table, .editorial-board-table tbody,
  .editorial-board-table tr, .editorial-board-table td { display: block; width: 100% !important; }
  .editorial-board-table thead { display: none; }
  .editorial-board-table tr { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--tujr-line); border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(6,74,43,.06); }
  .editorial-board-table td { position: relative; padding: 10px 42% 10px 12px; border-bottom: 1px solid var(--tujr-line); }
  html[lang="en"] .editorial-board-table td { padding: 10px 12px 10px 42%; }
  .editorial-board-table td::before { content: attr(data-label); position: absolute; inset-inline-start: 12px; width: 36%; color: var(--tujr-green-900); font-weight: 700; }
  .cmp_breadcrumbs { overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 479px) {
  .pkp_site_name_wrapper { min-height: 104px; padding-right: 62px; padding-left: 8px; }
  html[lang="en"] .pkp_site_name_wrapper { padding-right: 8px; padding-left: 62px; }
  .pkp_site_name_wrapper::before { top: 34px; width: 48px; height: 62px; }
  .pkp_site_name .is_text { font-size: .95rem; line-height: 1.45; }
  html[lang="ar"] .pkp_site_name .is_text::after,
  html[lang="en"] .pkp_site_name .is_text::after { font-size: .56rem; line-height: 1.5; }
  .pkp_structure_main { padding: 18px 12px; }
  .homepage_about p { font-size: .95rem; }
  .tujr-year-count { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
