/* =======================================================================
   JMIAS — PURPLE & CORAL ACADEMIC THEME | CARE JOURNALS | FINAL 2026
   Journal of Multidisciplinary Inquiry and Applied Studies
   Target: OJS 3.5.x Default Theme (frontend, journal stylesheet only)
   Header: Original JMIAS masthead enlarged slightly with full E-ISSN clearance
   Palette: deep plum / amethyst / lilac / coral / ivory
   Use ONLY in JMIAS journal Appearance > Journal Style Sheet.
   ======================================================================= */

:root {
  --jmias-plum: #32114e;
  --jmias-deep: #230c3a;
  --jmias-purple-dark: #642896;
  --jmias-purple: #924ac4;
  --jmias-coral: #f68492;
  --jmias-blush: #fbc1c5;
  --jmias-lavender: #f7edfd;
  --jmias-lilac-ice: #fcf8ff;
  --jmias-paper: #ffffff;
  --jmias-text: #352742;
  --jmias-muted: #796b88;
  --jmias-line: #e8d9f0;
  --jmias-shadow: 0 10px 28px rgba(74, 27, 103, 0.11);
  --jmias-focus: #a757d7;
}

/* 01. FOUNDATIONS — elegant lavender page with deep plum text */
html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

body {
  color: var(--jmias-text);
  background: #f7f0fc !important;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.pkp_structure_page {
  min-height: 100vh;
  background: linear-gradient(180deg, #fdf9ff 0%, #f9f0fd 60%, #f0e3fa 100%) !important;
}

/* 02. JMIAS MASTHEAD: wider artwork; ISSN not covered by account strip */
.pkp_structure_head {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: linear-gradient(90deg, #f5e7fe 0%, #fff8ff 52%, #f4e5fb 100%) !important;
  box-shadow: none !important;
}

.pkp_structure_head .pkp_head_wrapper,
.pkp_structure_head .pkp_site_name_wrapper {
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Keep a small safe space between the account bar and the ISSN printed
   near the top edge of the actual banner image. */
.pkp_structure_head .pkp_site_name_wrapper {
  padding-top: 18px !important;
}

.pkp_structure_head .pkp_site_name,
.pkp_structure_head .pkp_site_name .is_img,
.pkp_structure_head .pkp_site_name a.is_img {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: 0 !important;
  background: transparent !important;
}

.pkp_structure_head .pkp_site_name img,
.pkp_structure_head .pkp_site_name .is_img img,
.pkp_structure_head .pkp_site_name a.is_img img {
  display: block !important;
  box-sizing: border-box !important;
  width: min(100%, 1240px) !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

/* Fallback when OJS has no journal masthead image. */
.pkp_structure_head .pkp_site_name .is_text {
  padding: 26px 5% !important;
  line-height: 1.3 !important;
  background: linear-gradient(110deg, #f7eafa, #ffffff) !important;
}
.pkp_structure_head .pkp_site_name .is_text a {
  color: var(--jmias-plum) !important;
  text-decoration: none !important;
}

/* 03. TOP ACCOUNT STRIP — matches deep purple in JMIAS wordmark */
.pkp_navigation_user_wrapper {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: clamp(14px, 3.5vw, 58px) !important;
  padding-right: clamp(14px, 3.5vw, 58px) !important;
  background: var(--jmias-deep) !important;
  border-bottom: 1px solid #7d4ea8 !important;
}

.pkp_navigation_user > li > a,
.pkp_navigation_user > li > a:visited,
.pkp_navigation_user_wrapper a {
  color: #fffaff !important;
  font-weight: 600;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
  background: rgba(238, 174, 238, 0.15) !important;
  color: #ffe6eb !important;
}

/* 04. NAV BAR — JMIAS plum -> orchid purple, restrained coral accents */
.pkp_site_nav_menu {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: linear-gradient(105deg, #32114e 0%, #56227e 54%, #924ac4 100%) !important;
  border-top: 2px solid var(--jmias-coral) !important;
  border-bottom: 3px solid #f68692 !important;
  box-shadow: 0 6px 18px rgba(58, 18, 85, .18) !important;
}

.pkp_navigation_primary_wrapper,
.pkp_navigation_primary_row {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  border: 0 !important;
  background: transparent !important;
}

.pkp_navigation_primary_wrapper {
  padding-left: clamp(12px, 2.7vw, 50px) !important;
  padding-right: clamp(12px, 2.7vw, 50px) !important;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:visited,
.pkp_site_nav_menu .pkp_search a {
  color: #ffffff !important;
  font-weight: 650 !important;
  letter-spacing: .12px;
  text-decoration: none !important;
  transition: background-color .17s ease, color .17s ease;
}

.pkp_navigation_primary > li:hover > a,
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a:active {
  color: #fff0ee !important;
  background: rgba(35, 10, 61, .43) !important;
  box-shadow: inset 0 -3px 0 var(--jmias-coral) !important;
}

/* OJS dropdowns (About, profile, editorial navigation). */
.pkp_navigation_primary ul,
.pkp_navigation_primary li ul,
.pkp_navigation_primary .dropdown-menu,
.pkp_site_nav_menu .dropdown-menu,
.pkp_nav_list ul ul,
.pkp_navigation_user ul {
  background: #43196b !important;
  border: 1px solid #a570cf !important;
  border-top: 3px solid var(--jmias-coral) !important;
  border-radius: 0 0 9px 9px !important;
  box-shadow: 0 12px 26px rgba(41, 10, 62, .23) !important;
}

.pkp_navigation_primary li ul li,
.pkp_navigation_primary .dropdown-menu li,
.pkp_navigation_user ul li {
  background: transparent !important;
}

.pkp_navigation_primary li ul li a,
.pkp_navigation_primary .dropdown-menu li a,
.pkp_site_nav_menu .dropdown-menu a,
.pkp_nav_list ul ul li a,
.pkp_navigation_user ul li a {
  display: block;
  background: #43196b !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(171, 218, 255, .18) !important;
  text-decoration: none !important;
}

.pkp_navigation_primary li ul li a:hover,
.pkp_navigation_primary li ul li a:focus,
.pkp_navigation_primary .dropdown-menu li a:hover,
.pkp_navigation_primary .dropdown-menu li a:focus,
.pkp_site_nav_menu .dropdown-menu a:hover,
.pkp_site_nav_menu .dropdown-menu a:focus,
.pkp_nav_list ul ul li a:hover,
.pkp_nav_list ul ul li a:focus,
.pkp_navigation_user ul li a:hover,
.pkp_navigation_user ul li a:focus {
  background: #7739ab !important;
  color: #ffe8f5 !important;
}

.pkp_site_nav_menu .pkp_search,
.pkp_site_nav_menu .pkp_search a:hover,
.pkp_site_nav_menu .pkp_search a:focus { color: #fbe8f8 !important; }

.pkp_site_nav_menu .pkp_search input[type="text"],
.pkp_site_nav_menu .pkp_search input[type="search"] {
  background: #ffffff !important;
  color: var(--jmias-plum) !important;
  border: 1px solid #d2b0e8 !important;
  border-radius: 6px;
}

/* 05. MAIN LAYOUT — white reading area on pale lavender */
.pkp_structure_content {
  box-sizing: border-box;
  width: min(100%, 1540px) !important;
  max-width: 1540px !important;
  margin: 0 auto !important;
  padding: 30px clamp(16px, 2.5vw, 38px) 54px !important;
  background: linear-gradient(165deg, #f8f0ff 0%, #fdf9ff 52%, #f6eafd 100%) !important;
  border-left: 1px solid #ebd9f7;
  border-right: 1px solid #ebd9f7;
  box-shadow: 0 12px 35px rgba(62, 23, 92, .07);
  overflow: visible;
}

.pkp_structure_main,
.pkp_structure_sidebar {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.pkp_structure_main {
  padding: clamp(18px, 2.2vw, 32px) !important;
  background: var(--jmias-paper) !important;
  color: var(--jmias-text) !important;
  border: 1px solid var(--jmias-line) !important;
  border-top: 4px solid var(--jmias-purple) !important;
  border-radius: 11px !important;
  box-shadow: var(--jmias-shadow) !important;
}

.pkp_structure_main p,
.pkp_structure_main li,
.pkp_structure_main .abstract,
.pkp_structure_main .description,
.pkp_structure_main .page {
  color: var(--jmias-text);
  line-height: 1.72;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4,
.pkp_structure_main .page_title,
.pkp_structure_main .current_issue_title,
.pkp_structure_main .cmp_headings h1,
.pkp_structure_main .cmp_headings h2 {
  color: var(--jmias-plum) !important;
  font-weight: 700;
}

.pkp_structure_main .page_title,
.pkp_structure_main h2 { border-bottom-color: #efdbfa; }

/* Main article links only: do not override custom sidebar widget colors. */
.pkp_structure_main a:not(.cmp_button):not(.obj_galley_link):not(.pkp_button),
.pkp_structure_main a:not(.cmp_button):not(.obj_galley_link):not(.pkp_button):visited {
  color: #683098;
  text-underline-offset: 3px;
}

.pkp_structure_main a:not(.cmp_button):not(.obj_galley_link):not(.pkp_button):hover {
  color: #471b76;
}

/* 06. CURRENT ISSUE, ANNOUNCEMENTS, ARTICLE LISTS */
.page_index_journal .additional_content,
.page_index_journal .homepage_about,
.page_index_journal .current_issue,
.pkp_structure_main .cmp_announcements,
.pkp_structure_main .obj_issue_toc {
  border-color: #e9d9f2 !important;
}

.obj_article_summary,
.obj_issue_summary,
.obj_announcement_summary {
  border-bottom: 1px solid #e7d9ef !important;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.obj_article_summary .title,
.obj_article_summary .title a,
.obj_issue_summary .title,
.obj_issue_summary .title a,
.obj_announcement_summary .title a,
.current_issue .current_issue_title {
  color: #4a2075 !important;
  font-weight: 700 !important;
}

.obj_article_summary .authors,
.obj_article_summary .meta,
.obj_article_details .authors,
.obj_issue_summary .description,
.obj_article_details .published {
  color: var(--jmias-muted) !important;
}

.obj_issue_toc .sections,
.obj_article_details .main_entry,
.obj_article_details .entry_details {
  border-color: #e8d9f0 !important;
}

.obj_issue_summary .cover img,
.obj_issue_toc .cover img,
.current_issue .cover img,
.obj_article_details .cover img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0c9f0;
  border-radius: 5px;
  box-shadow: 0 6px 17px rgba(11, 52, 108, .12);
}

/* 07. PDF / GALLEY / DOWNLOAD / SUBMISSION BUTTONS */
.obj_galley_link,
.obj_galley_link.pdf,
.cmp_button,
.cmp_button_wire,
.pkp_button,
.block_make_submission a,
.pkp_structure_main button[type="submit"],
.pkp_structure_main input[type="submit"],
.cmp_form .buttons button {
  display: inline-block;
  box-sizing: border-box;
  background: linear-gradient(112deg, #924ac4, #6e349e) !important;
  color: #ffffff !important;
  border: 1px solid #8145aa !important;
  border-radius: 6px !important;
  font-weight: 650;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(71, 27, 111, .15);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.obj_galley_link:hover,
.obj_galley_link:focus,
.cmp_button:hover,
.cmp_button:focus,
.cmp_button_wire:hover,
.cmp_button_wire:focus,
.pkp_button:hover,
.pkp_button:focus,
.block_make_submission a:hover,
.block_make_submission a:focus,
.pkp_structure_main button[type="submit"]:hover,
.pkp_structure_main input[type="submit"]:hover,
.cmp_form .buttons button:hover {
  background: linear-gradient(112deg, #7731ad, #32114e) !important;
  color: #ffffff !important;
  border-color: #f68b98 !important;
  box-shadow: 0 6px 15px rgba(71, 27, 111, .23);
}

/* 08. SIDEBAR: one card per custom HTML widget, no double frames */
.pkp_structure_sidebar {
  color: var(--jmias-text);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}

.pkp_structure_sidebar .pkp_block,
.pkp_structure_sidebar .pkp_block.block_custom,
.pkp_structure_sidebar .pkp_block.block_make_submission {
  display: block;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.pkp_structure_sidebar .pkp_block .content,
.pkp_structure_sidebar .pkp_block.block_custom .content,
.pkp_structure_sidebar .pkp_block.block_make_submission .content {
  display: block;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* TinyMCE introduces extra p wrappers around pasted HTML; remove outer gap. */
.pkp_structure_sidebar .pkp_block .content > p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.pkp_structure_sidebar .pkp_block .content > div,
.pkp_structure_sidebar .pkp_block .content > section,
.pkp_structure_sidebar .pkp_block .content > p > div,
.pkp_structure_sidebar .pkp_block .content > p > section {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Keep customized HTML cards' own plum/purple backgrounds and button colors. */
.pkp_structure_sidebar .pkp_block .content > div[style*="border"],
.pkp_structure_sidebar .pkp_block .content > p > div[style*="border"] {
  display: block;
  border-radius: 11px !important;
  background-clip: padding-box;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(67, 23, 94, .13) !important;
}

.pkp_structure_sidebar img,
.pkp_structure_sidebar iframe {
  max-width: 100% !important;
  vertical-align: middle;
}
.pkp_structure_sidebar img { height: auto; }

.pkp_structure_sidebar .pkp_block .content a,
.pkp_structure_sidebar .pkp_block .content span,
.pkp_structure_sidebar .pkp_block .content div {
  overflow-wrap: break-word;
}

/* OJS native blocks (Browse, Information, Web Feed, Language) need a card. */
.pkp_structure_sidebar .block_browse,
.pkp_structure_sidebar .block_information,
.pkp_structure_sidebar .block_web_feed,
.pkp_structure_sidebar .block_language,
.pkp_structure_sidebar .block_make_submission {
  background: #ffffff !important;
  border: 1px solid #e5d2f0 !important;
  border-radius: 11px !important;
  box-shadow: 0 8px 21px rgba(67, 23, 94, .09) !important;
  overflow: hidden !important;
}

.pkp_structure_sidebar .block_browse > .title,
.pkp_structure_sidebar .block_information > .title,
.pkp_structure_sidebar .block_web_feed > .title,
.pkp_structure_sidebar .block_language > .title,
.pkp_structure_sidebar .block_make_submission > .title {
  display: block;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 14px 17px !important;
  background: linear-gradient(110deg, #32114e, #75369d) !important;
  border: 0 !important;
  border-bottom: 3px solid var(--jmias-coral) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.pkp_structure_sidebar .block_browse .content,
.pkp_structure_sidebar .block_information .content,
.pkp_structure_sidebar .block_web_feed .content,
.pkp_structure_sidebar .block_language .content,
.pkp_structure_sidebar .block_make_submission .content {
  padding: 16px !important;
  background: #ffffff !important;
  color: var(--jmias-text) !important;
}

/* Style links in native OJS widgets only; custom HTML may specify its own. */
.pkp_structure_sidebar .block_browse .content a,
.pkp_structure_sidebar .block_information .content a,
.pkp_structure_sidebar .block_web_feed .content a,
.pkp_structure_sidebar .block_language .content a {
  color: #6d359c !important;
  text-decoration: none;
}
.pkp_structure_sidebar .block_browse .content a:hover,
.pkp_structure_sidebar .block_information .content a:hover,
.pkp_structure_sidebar .block_web_feed .content a:hover,
.pkp_structure_sidebar .block_language .content a:hover {
  color: #47206c !important;
  text-decoration: underline;
}

/* Preserve contrast on the Make a Submission button. */
.pkp_structure_sidebar .block_make_submission .content a,
.pkp_structure_sidebar .pkp_block.block_make_submission a {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Keep original WhatsApp-green button, a familiar functional affordance. */
.pkp_structure_sidebar .block_custom a[href*="wa.me/"][style*="background"] {
  background: #25d366 !important;
  color: #073b25 !important;
  border-radius: 36px !important;
  box-sizing: border-box;
  max-width: 100%;
}
.pkp_structure_sidebar .block_custom a[href*="wa.me/"][style*="background"]:hover {
  background: #19bc57 !important;
}

.pkp_structure_sidebar .pkp_block:last-child { margin-bottom: 0 !important; }

/* 09. INPUTS, TABLES, NOTICES */
.pkp_structure_main input[type="text"],
.pkp_structure_main input[type="email"],
.pkp_structure_main input[type="search"],
.pkp_structure_main input[type="password"],
.pkp_structure_main select,
.pkp_structure_main textarea {
  box-sizing: border-box;
  max-width: 100%;
  background: #fffaff !important;
  color: var(--jmias-text) !important;
  border: 1px solid #d6bfe6 !important;
  border-radius: 6px;
}

.pkp_structure_main input:focus,
.pkp_structure_main textarea:focus,
.pkp_structure_main select:focus {
  outline: 2px solid #cc85e7;
  outline-offset: 1px;
  border-color: #924ac4 !important;
}

.pkp_structure_main table,
.pkp_structure_main .cmp_table,
.cmp_table {
  max-width: 100%;
  background: #ffffff;
  border-collapse: collapse;
}

.pkp_structure_main th,
.cmp_table thead th {
  color: #421e66;
  background: #f4e7fb;
  border-bottom: 2px solid #ed97aa;
}

.pkp_structure_main td,
.pkp_structure_main th,
.cmp_table td { border-color: #eadcf3; }

.pkp_structure_main tr:nth-child(even) td { background: #fcf8ff; }

.cmp_notification,
.cmp_message,
.pkp_structure_main blockquote {
  background: #f8f0ff;
  color: var(--jmias-text);
  border-left: 4px solid var(--jmias-purple);
  border-radius: 0 7px 7px 0;
  padding: 12px 16px;
}

/* 10. FOOTER — plum and orchid purple with coral */
.pkp_structure_footer_wrapper {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 27px clamp(16px, 4vw, 64px) !important;
  color: #fffaff !important;
  background: linear-gradient(115deg, #230c3a 0%, #482070 60%, #7e3fb0 100%) !important;
  border-top: 4px solid #fa8491 !important;
  box-shadow: 0 -5px 16px rgba(61, 19, 86, .11);
}

.pkp_structure_footer,
.pkp_footer_content {
  box-sizing: border-box;
  max-width: 1460px;
  margin-left: auto;
  margin-right: auto;
  color: #fffaff !important;
}

.pkp_structure_footer p,
.pkp_footer_content p,
.pkp_footer_content li,
.pkp_structure_footer h1,
.pkp_structure_footer h2,
.pkp_structure_footer h3 {
  color: #fffaff !important;
}

.pkp_structure_footer a,
.pkp_footer_content a {
  color: #ffdce7 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pkp_structure_footer a:hover,
.pkp_footer_content a:hover { color: #ffffff !important; }

/* 11. ACCESSIBILITY */
.pkp_structure_page a:focus-visible,
.pkp_structure_page button:focus-visible {
  outline: 3px solid var(--jmias-focus) !important;
  outline-offset: 2px;
}

/* 12. RESPONSIVE. Never force OJS dropdown/mobile menu open or closed. */
@media (max-width: 991px) {
  .pkp_structure_content { padding: 21px 14px 38px !important; }
  .pkp_structure_main { padding: 22px 18px !important; }
  .pkp_structure_sidebar { margin-top: 20px; }
  .pkp_structure_sidebar .pkp_block { margin-bottom: 16px !important; }
}

@media (max-width: 767px) {
  .pkp_structure_head .pkp_site_name_wrapper {
    padding-top: 10px !important;
  }
  .pkp_structure_head .pkp_site_name img,
  .pkp_structure_head .pkp_site_name .is_img img {
    width: 100% !important;
    height: auto !important;
  }
  .pkp_site_nav_toggle {
    background: #6e349e !important;
    color: #ffffff !important;
    border: 1px solid #f28e9a !important;
  }
  .pkp_navigation_primary_wrapper {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .pkp_structure_main { padding: 17px 14px !important; border-radius: 8px !important; }
  .pkp_structure_sidebar { padding: 0 !important; margin-top: 18px; }
  .pkp_structure_sidebar .pkp_block .content > div[style*="border"] {
    border-radius: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pkp_structure_page *,
  .pkp_structure_page *::before,
  .pkp_structure_page *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media print {
  body,
  .pkp_structure_page,
  .pkp_structure_content,
  .pkp_structure_main,
  .pkp_structure_sidebar,
  .pkp_structure_footer_wrapper {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border-color: #cccccc !important;
  }
  .pkp_site_nav_menu,
  .pkp_navigation_user_wrapper { display: none !important; }
}


/* =======================================================================
   13. JMIAS COVER / BOOK SIZE — FINAL FIX
   - Homepage image and OJS issue covers: book-size, left aligned desktop.
   - Does NOT target the masthead in .pkp_structure_head or sidebar logos.
   - The source image remains unchanged; only browser display size changes.
   ======================================================================= */

/* The large visual below the navbar may be OJS's Homepage Image. */
.page_index_journal .homepage_image,
.pkp_structure_main .homepage_image {
  box-sizing: border-box !important;
  max-width: 100% !important;
  margin: 0 auto 24px !important;
  text-align: center !important;
}

/* Standard OJS homepage and current/archived issue covers. */
.page_index_journal .homepage_image img,
.pkp_structure_main .homepage_image img,
.page_index_journal .current_issue .cover img,
.pkp_structure_main .current_issue .cover img,
.pkp_structure_main .obj_issue_summary .cover img,
.pkp_structure_main .obj_issue_toc .cover img,
.pkp_structure_main .obj_article_details .cover img,
/* When the book is placed in Homepage Additional Content HTML. */
.page_index_journal .additional_content img[alt*="cover" i],
.page_index_journal .additional_content img[alt*="book" i],
.page_index_journal .additional_content img[src*="cover" i],
.page_index_journal .additional_content img[src*="book" i] {
  display: block !important;
  box-sizing: border-box !important;
  width: 240px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 380px !important;
  object-fit: contain !important;
  margin: 8px auto 20px !important;
  padding: 0 !important;
  border: 1px solid #e0c5ef !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(68, 22, 92, .15) !important;
}

/* In case OJS sets the cover image on the image link or its wrapper. */
.page_index_journal .current_issue .cover,
.pkp_structure_main .obj_issue_summary .cover,
.pkp_structure_main .obj_issue_toc .cover {
  max-width: 100% !important;
  text-align: center !important;
}

/* Narrow screens: smaller book cover, retain readable columns. */
@media (max-width: 767px) {
  .page_index_journal .homepage_image img,
  .pkp_structure_main .homepage_image img,
  .page_index_journal .current_issue .cover img,
  .pkp_structure_main .current_issue .cover img,
  .pkp_structure_main .obj_issue_summary .cover img,
  .pkp_structure_main .obj_issue_toc .cover img,
  .pkp_structure_main .obj_article_details .cover img,
  .page_index_journal .additional_content img[alt*="cover" i],
  .page_index_journal .additional_content img[alt*="book" i],
  .page_index_journal .additional_content img[src*="cover" i],
  .page_index_journal .additional_content img[src*="book" i] {
    width: 200px !important;
    max-height: 320px !important;
  }
}

/* =======================================================================
   14. JMIAS COVER POSITION — ALIGN WITH MAIN ARTICLE CONTENT (LEFT)
   - Keep book width unchanged: 240px desktop / 200px mobile.
   - Do not affect site masthead, menu, or sidebar blocks.
   ======================================================================= */
@media (min-width: 768px) {
  .page_index_journal .homepage_image,
  .pkp_structure_main .homepage_image {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page_index_journal .current_issue .cover,
  .pkp_structure_main .obj_issue_summary .cover,
  .pkp_structure_main .obj_issue_toc .cover {
    text-align: left !important;
  }

  .page_index_journal .homepage_image img,
  .pkp_structure_main .homepage_image img,
  .page_index_journal .current_issue .cover img,
  .pkp_structure_main .current_issue .cover img,
  .pkp_structure_main .obj_issue_summary .cover img,
  .pkp_structure_main .obj_issue_toc .cover img,
  .pkp_structure_main .obj_article_details .cover img,
  .page_index_journal .additional_content img[alt*="cover" i],
  .page_index_journal .additional_content img[alt*="book" i],
  .page_index_journal .additional_content img[src*="cover" i],
  .page_index_journal .additional_content img[src*="book" i] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* 15. JMIAS CUSTOM SIDEBAR WIDGETS
   Override only the first and last colored bars inside a custom widget.
   This harmonizes old blue inline backgrounds with JMIAS purple.
   It does NOT alter the wording/URLs in pasted JESI HTML blocks.
   For permanent correct journal labels and links, edit each Custom Block.
*/
.pkp_structure_sidebar .block_custom .content > div > div:first-child[style*="background"],
.pkp_structure_sidebar .block_custom .content > section > div:first-child[style*="background"],
.pkp_structure_sidebar .block_custom .content > p > div > div:first-child[style*="background"] {
  background: linear-gradient(115deg, #32114e, #6a2c9e 65%, #a45acc) !important;
  border-bottom-color: #f58a99 !important;
  color: #ffffff !important;
}
.pkp_structure_sidebar .block_custom .content > div > div:last-child[style*="letter-spacing"][style*="background"],
.pkp_structure_sidebar .block_custom .content > section > div:last-child[style*="letter-spacing"][style*="background"] {
  background: #32114e !important;
  border-top-color: #f58a99 !important;
  color: #ffe6ef !important;
}
/* Avoid recoloring inline WhatsApp branding or embedded logos. */
.pkp_structure_sidebar .block_custom a[href*="wa.me/"] {
  background: #25d366 !important;
  color: #073b25 !important;
}
/* Soft violet focus for custom links without changing their destination. */
.pkp_structure_sidebar .block_custom a:focus-visible {
  outline: 3px solid #f58a99 !important;
  outline-offset: 3px;
}


/* =====================================================================
   16. JMIAS — FINAL HORIZONTAL MASTHEAD FILL (2026-10-09)
   Add just ~1% on each side. Keep original vertical sizing and E-ISSN.
   The slight horizontal transform has no effect on document flow height.
   Applies only to JMIAS masthead image, never homepage cover/sidebar.
   ===================================================================== */
@media (min-width: 768px) {
  .pkp_structure_head .pkp_site_name img,
  .pkp_structure_head .pkp_site_name .is_img img,
  .pkp_structure_head .pkp_site_name a.is_img img {
    transform: scaleX(1.02) !important;
    transform-origin: center center !important;
  }
}


/* JMIAS: HILANGKAN GARIS VERTIKAL KANAN BAWAAN OJS */
.pkp_structure_main::after {
    content: none !important;
    display: none !important;
}



/* =======================================================================
   JMIAS ACTUAL COMPACT FIX — typography, ROW CONTAINERS and dividers
   2026-11-14: styles the inline-HTML custom widget, not only its links.
   Original purple/coral masthead and book artwork remain unchanged.
   ======================================================================= */
@media (min-width: 992px) {
  .pkp_structure_content {
    padding: 22px 22px 42px !important;
  }
  /* Preserve OJS float columns: do not transform or relatively offset sidebar */
  .pkp_structure_content > .pkp_structure_main {
    width: 66% !important;
    margin-right: 0 !important;
    padding: 22px !important;
  }
  .pkp_structure_content > .pkp_structure_sidebar {
    width: 32% !important;
    margin-left: 2% !important;
    padding: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
  /* Default theme nested structure fallback */
  .pkp_structure_main { padding: 22px !important; }
}

/* Reading area standard size, even when OJS or pasted HTML uses inline font sizes */
.pkp_structure_main .homepage_about,
.pkp_structure_main .additional_content,
.pkp_structure_main .homepage_about :is(p,span,strong,b,li,td),
.pkp_structure_main .additional_content :is(p,span,strong,b,li,td) {
  font-size: 14px !important;
  line-height: 1.65 !important;
}
.pkp_structure_main .homepage_about :is(h1,h2,h3),
.pkp_structure_main .page_title {
  font-size: 22px !important;
  line-height: 1.3 !important;
}

/* Reduce default spaces between widgets */
.pkp_structure_sidebar .pkp_block,
.pkp_structure_sidebar .pkp_block.block_custom {
  margin-bottom: 14px !important;
}

/* All small text inside custom sidebar blocks incl. inline font-size spans.
   Exclude SVG/canvas/images and buttons from forced resizing. */
.pkp_structure_sidebar .block_custom .content {
  font-size: 13px !important;
  line-height: 1.38 !important;
}
.pkp_structure_sidebar .block_custom .content :is(a,p,span,strong,b,em,small,li) {
  font-size: 13px !important;
  line-height: 1.38 !important;
}

/* CRITICAL: HTML widget lines usually belong to DIV row wrappers, not anchors.
   Shrink the wrapper padding, so the separators move up together with text. */
.pkp_structure_sidebar .block_custom .content div[style*="border-bottom"]:has(a),
.pkp_structure_sidebar .block_custom .content div[style*="border-top"]:has(a),
.pkp_structure_sidebar .block_custom .content li:has(a) {
  box-sizing: border-box !important;
  min-height: 0 !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.38 !important;
  border-bottom-width: 1px !important;
}
/* Handles row wrappers with inline padding but no inline border style. */
.pkp_structure_sidebar .block_custom .content div[style*="padding"]:has(> a[href]):not(:has(> div)) {
  box-sizing: border-box !important;
  min-height: 0 !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* When anchor is the row itself */
.pkp_structure_sidebar .block_custom .content a[href]:not([style*="background"]):not([class*="button"]) {
  font-size: 13px !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}
/* The row separator itself remains thin, and follows the shorter row. */
.pkp_structure_sidebar .block_custom .content div[style*="border-bottom"]:has(a) {
  border-bottom-width: 1px !important;
}

/* Widget panel title: match first colored bar of the JMIAS embedded HTML. */
.pkp_structure_sidebar .block_custom .content > div > div:first-child[style*="background"],
.pkp_structure_sidebar .block_custom .content > section > div:first-child[style*="background"],
.pkp_structure_sidebar .block_custom .content > div > header {
  padding: 12px 11px !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
  border-bottom-width: 2px !important;
}
.pkp_structure_sidebar .block_custom .content > div > div:first-child[style*="background"] :is(h1,h2,h3,h4,strong,b),
.pkp_structure_sidebar .block_custom .content > section > div:first-child[style*="background"] :is(h1,h2,h3,h4,strong,b),
.pkp_structure_sidebar .block_custom .content > div > header :is(h1,h2,h3,h4,strong,b) {
  font-size: 17px !important;
  line-height: 1.25 !important;
}
.pkp_structure_sidebar .block_custom .content > div > div:first-child[style*="background"] :is(p,small),
.pkp_structure_sidebar .block_custom .content > section > div:first-child[style*="background"] :is(p,small) {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

/* Specific native OJS titles and buttons */
.pkp_structure_sidebar .pkp_block > .title,
.pkp_structure_sidebar .block_browse > .title,
.pkp_structure_sidebar .block_information > .title,
.pkp_structure_sidebar .block_language > .title {
  font-size: 16px !important;
  line-height: 1.3 !important;
  padding: 9px 12px !important;
  border-bottom-width: 2px !important;
}
.pkp_structure_sidebar .block_browse .content,
.pkp_structure_sidebar .block_information .content,
.pkp_structure_sidebar .block_language .content {
  padding: 10px 12px !important;
  font-size: 13px !important;
}
.pkp_structure_sidebar .block_make_submission .content a,
.pkp_structure_sidebar .block_make_submission a {
  font-size: 14px !important;
  line-height: 1.35 !important;
  padding: 9px 12px !important;
}
@media (max-width: 991px) {
  .pkp_structure_content > .pkp_structure_sidebar {
    margin-left: 0 !important;
    width: auto !important;
    transform: none !important;
  }
}
