/* ==========================================================
   Quillstone Journal of Multidisciplinary Research
   Custom stylesheet for the OJS 3.5 Default Theme
   Palette: Ink navy #102a43 | Deep ink #0b1d30 | Gilt #c8963e
            Stone #eef1f4 | Slate text #1f2937 | Rule #d5dbe1
   ========================================================== */

/* ---------- Base ---------- */
body {
  background: #eef1f4;
  color: #1f2937;
}

.pkp_structure_page {
  background: #ffffff;
  box-shadow: 0 0 0 1px #d5dbe1;
}

a {
  color: #1e4e79;
}

a:hover,
a:focus {
  color: #8a6a2f;
}

h1, h2, h3, h4 {
  color: #102a43;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c8963e;
  outline-offset: 2px;
}

/* ---------- Header: the one bold element ---------- */
.pkp_structure_head {
  background: linear-gradient(180deg, #0b1d30 0%, #102a43 100%);
  border-bottom: 4px solid #c8963e;
}

.pkp_site_name_wrapper {
  padding-top: 18px;
  padding-bottom: 18px;
}

.pkp_site_name .is_text,
.pkp_site_name a.is_text {
  color: #ffffff;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.pkp_site_name a:hover,
.pkp_site_name a:focus {
  color: #f3d79a;
}

/* Top-right user menu (Register / Login) */
.pkp_navigation_user_wrapper a,
.pkp_navigation_user > li > a {
  color: #d9e2ec;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
  color: #f3d79a;
}

/* ---------- Primary navigation ---------- */
.pkp_navigation_primary_row {
  background: transparent;
}

.pkp_navigation_primary > li > a {
  color: #ffffff;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  padding-bottom: 6px;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  color: #f3d79a;
  border-bottom-color: #c8963e;
  text-decoration: none;
}

/* Dropdown menus */
.pkp_navigation_primary ul {
  background: #ffffff;
  border-top: 3px solid #c8963e;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.18);
  padding: 6px 0;
}

.pkp_navigation_primary ul a {
  color: #102a43;
  border-left: 3px solid transparent;
  padding: 8px 16px;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  background: #f5f7fa;
  color: #102a43;
  border-left-color: #c8963e;
  text-decoration: none;
}

/* Search link */
.pkp_navigation_search_wrapper a {
  color: #ffffff;
  border-bottom: 3px solid transparent;
}

.pkp_navigation_search_wrapper a:hover,
.pkp_navigation_search_wrapper a:focus {
  color: #f3d79a;
  border-bottom-color: #c8963e;
}

/* ---------- Main content ---------- */
.pkp_structure_main h1,
.pkp_structure_main h2 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
}

.page_index_journal .homepage_about {
  border-left: 5px solid #c8963e;
  background: #f8fafc;
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 28px;
}

.page_index_journal .homepage_about h2 {
  margin-top: 0;
}

/* Current issue heading */
.obj_issue_toc .heading .published,
.obj_issue_toc .heading .pub_id {
  color: #475569;
}

/* Section headings inside an issue */
.obj_issue_toc .sections .section > h2,
.obj_issue_toc .sections .section > h3 {
  color: #102a43;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #c8963e;
  padding-bottom: 6px;
  margin-top: 28px;
}

/* ---------- Article listings ---------- */
.obj_article_summary {
  border-left: 3px solid #d5dbe1;
  padding: 4px 0 4px 16px;
  margin-bottom: 22px;
}

.obj_article_summary:hover {
  border-left-color: #c8963e;
}

.obj_article_summary > .title a,
.obj_article_summary .title a {
  color: #102a43;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}

.obj_article_summary .title a:hover,
.obj_article_summary .title a:focus {
  color: #1e4e79;
  text-decoration: underline;
  text-decoration-color: #c8963e;
}

.obj_article_summary .meta,
.obj_article_summary .authors {
  color: #475569;
}

/* PDF / galley buttons */
.obj_galley_link {
  border: 2px solid #102a43;
  color: #102a43;
  border-radius: 6px;
  font-weight: 600;
  background: #ffffff;
}

.obj_galley_link:hover,
.obj_galley_link:focus {
  background: #102a43;
  color: #ffffff;
  border-color: #102a43;
}

/* ---------- Article page ---------- */
.obj_article_details .page_title {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: #102a43;
  line-height: 1.3;
}

.obj_article_details .main_entry .item .label,
.obj_article_details .entry_details .item .label {
  color: #102a43;
  font-weight: 700;
}

.obj_article_details .entry_details {
  border-left: 1px solid #d5dbe1;
}

.obj_article_details .abstract {
  line-height: 1.75;
}

/* ---------- Buttons ---------- */
.cmp_button,
.pkp_button,
button.submit,
.cmp_form .buttons button {
  background: #102a43;
  color: #ffffff;
  border: 2px solid #102a43;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: none;
}

.cmp_button:hover,
.pkp_button:hover,
button.submit:hover,
.cmp_form .buttons button:hover,
.cmp_button:focus,
.pkp_button:focus {
  background: #c8963e;
  border-color: #c8963e;
  color: #102a43;
}

/* ---------- Sidebar blocks ---------- */
.pkp_structure_sidebar .pkp_block .title {
  color: #102a43;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 700;
  border-bottom: 2px solid #c8963e;
  padding-bottom: 6px;
}

/* ---------- Footer ---------- */
.pkp_structure_footer_wrapper {
  background: #0b1d30;
  border-top: 4px solid #c8963e;
}

.pkp_structure_footer,
.pkp_structure_footer p {
  color: #d9e2ec;
}

.pkp_structure_footer a {
  color: #f3d79a;
}

.pkp_structure_footer a:hover,
.pkp_structure_footer a:focus {
  color: #ffffff;
}

.pkp_brand_footer {
  opacity: 0.85;
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
  .pkp_site_name .is_text,
  .pkp_site_name a.is_text {
    font-size: 1.35rem;
  }

  .pkp_site_nav_toggle {
    background: #c8963e;
    color: #102a43;
  }

  .pkp_navigation_primary ul {
    box-shadow: none;
    border-radius: 0;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Hide the built-in Editorial Masthead menu item ---------- */
/* The journal uses its own Editorial Board page instead */
.pkp_navigation_primary li:has(> a[href*="editorialMasthead"]),
.pkp_navigation_primary li:has(> a[href*="editorialTeam"]) {
  display: none !important;
}

.pkp_navigation_primary a[href*="editorialMasthead"],
.pkp_navigation_primary a[href*="editorialTeam"] {
  display: none !important;
}

/* ==========================================================
   Footer (class-based, keeps the Page Footer HTML short)
   ========================================================== */
.pkp_structure_footer .qf{background:#0b1d30;color:#f8fafc;padding:36px 22px 22px;border-radius:14px;border-top:4px solid #c8963e;box-shadow:0 10px 30px rgba(0,0,0,.45);box-sizing:border-box;font-family:'Open Sans',Arial,sans-serif;font-size:13.5px;line-height:1.7;margin-top:35px;text-align:left}
.pkp_structure_footer .qf p{margin:0 0 12px;color:#e2e8f0;font-size:13px;line-height:1.65}
.pkp_structure_footer .qf-pub{background:#102a43;border:2px solid #c8963e;border-radius:14px;padding:20px 22px;margin-bottom:28px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.pkp_structure_footer .qf-publeft{display:flex;align-items:center;gap:18px;flex:1 1 480px}
.pkp_structure_footer .qf-logo{width:82px;height:82px;border-radius:16px;border:2px solid #c8963e;overflow:hidden;flex-shrink:0;background:#102a43}
.pkp_structure_footer .qf-logo img{display:block;width:82px;height:82px}
.pkp_structure_footer .qf-eyebrow{font-size:12px;font-weight:700;color:#f3d79a;letter-spacing:1px}
.pkp_structure_footer .qf-est{background:#c8963e;color:#0b1d30;font-size:10.5px;font-weight:700;padding:2px 9px;border-radius:12px;margin-left:8px}
.pkp_structure_footer .qf-pubname{font-family:Lora,Georgia,serif;color:#fff;font-size:20px;font-weight:700;margin:4px 0 2px}
.pkp_structure_footer .qf-pubsub{font-size:12.5px;color:#cbd5e1}
.pkp_structure_footer .qf-badges{display:flex;flex-wrap:wrap;gap:8px}
.pkp_structure_footer .qf-badges span{background:#0b1d30;color:#fff;padding:6px 14px;border-radius:6px;font-size:12px;font-weight:700;border:1.5px solid #c8963e}
.pkp_structure_footer .qf-badges .g{border-color:#34d399}
.pkp_structure_footer .qf-badges .b{border-color:#60a5fa}
.pkp_structure_footer .qf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;margin-bottom:28px}
.pkp_structure_footer .qf-h{font-family:Lora,Georgia,serif;color:#f3d79a;font-size:16px;font-weight:700;margin:0 0 14px;border-left:4px solid #c8963e;padding-left:10px}
.pkp_structure_footer .qf-h.red{border-left-color:#ef4444}
.pkp_structure_footer .qf-h.blue{border-left-color:#3b82f6}
.pkp_structure_footer .qf-h.green{border-left-color:#22c55e}
.pkp_structure_footer .qf-box{background:#102a43;border:1px solid #2c4560;border-radius:8px;padding:12px 14px;font-size:12.5px;color:#fff;line-height:1.95}
.pkp_structure_footer .qf-box b{color:#f3d79a}
.pkp_structure_footer .qf-box a{color:#93c5fd;font-weight:700;text-decoration:none;word-break:break-all}
.pkp_structure_footer .qf-office{color:#f3d79a;font-weight:700;font-size:13.5px}
.pkp_structure_footer .qf-addr{color:#e2e8f0;font-size:13px;margin-bottom:12px}
.pkp_structure_footer .qf-links a{display:block;color:#e2e8f0;text-decoration:none;border-left:2px solid #c8963e;padding-left:10px;margin-bottom:6px;font-size:13px;line-height:1.7}
.pkp_structure_footer .qf-links a:hover,.pkp_structure_footer .qf-links a:focus{color:#f3d79a;border-left-color:#f3d79a}
.pkp_structure_footer .qf-list{font-size:12.5px;color:#fff;line-height:1.9;margin-bottom:12px}
.pkp_structure_footer .qf-list b{color:#34d399}
.pkp_structure_footer .qf-cc{background:#0f3a2c;border:1.5px solid #22c55e;border-radius:6px;padding:10px 12px;font-size:12px;color:#fff;font-weight:700}
.pkp_structure_footer .qf-cc a{color:#a7f3d0}
.pkp_structure_footer .qf-strip{background:#102a43;border:1.5px solid #2c4560;border-radius:10px;padding:16px 20px;margin-bottom:22px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:15px}
.pkp_structure_footer .qf-strip-item{display:flex;align-items:center;gap:12px}
.pkp_structure_footer .qf-white{background:#fff;padding:4px 10px;border-radius:6px}
.pkp_structure_footer .qf-white img{display:block;height:30px;width:auto}
.pkp_structure_footer .qf-t1{color:#f3d79a;font-size:13.5px;font-weight:700}
.pkp_structure_footer .qf-t1.g{color:#34d399}
.pkp_structure_footer .qf-t2{color:#9fb3c8;font-size:12px}
.pkp_structure_footer .qf-bottom{border-top:2px solid #c8963e;padding-top:18px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:#cbd5e1}
.pkp_structure_footer .qf-bottom b{color:#f3d79a}
.pkp_structure_footer .qf-bottom a{color:#cbd5e1;text-decoration:none;margin-right:14px}
.pkp_structure_footer .qf-bottom a.ojs{color:#f3d79a;text-decoration:underline;margin-right:0}
.qf-wa{position:fixed;bottom:25px;right:25px;z-index:999999;display:inline-flex;align-items:center;gap:10px;background:#fff;color:#128c4a !important;padding:10px 22px 10px 14px;border-radius:50px;font-size:16px;font-weight:700;text-decoration:none !important;border:2px solid #25d366;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.qf-wa img{display:block;width:24px;height:24px}
@media (max-width:991px){.pkp_structure_footer .qf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.pkp_structure_footer .qf-grid{grid-template-columns:1fr}.qf-wa{padding:10px 14px}}

/* ---------- Hide the built-in About > Contact menu item ---------- */
/* The journal uses its own Contact page (contact-office) instead */
.pkp_navigation_primary li:has(> a[href$="/about/contact"]) {
  display: none !important;
}
.pkp_navigation_primary a[href$="/about/contact"] {
  display: none !important;
}

/* ==========================================================
   HEADER 2.0  (world-class header, desktop + mobile)
   Overrides the earlier header rules above.
   ========================================================== */

/* Masthead background: deep ink with a faint keystone-arch motif */
.pkp_structure_head {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120' viewBox='0 0 220 120'%3E%3Cg fill='none' stroke='%23c8963e' stroke-opacity='0.07' stroke-width='1.2'%3E%3Cpath d='M20 120 A90 90 0 0 1 200 120'/%3E%3Cpath d='M45 120 A65 65 0 0 1 175 120'/%3E%3Cpath d='M98 30 L122 30 L118 56 L102 56 Z'/%3E%3C/g%3E%3C/svg%3E") right -30px top -10px / 440px auto no-repeat,
    radial-gradient(1200px 300px at 85% -40%, rgba(200,150,62,0.18), transparent 60%),
    linear-gradient(135deg, #071421 0%, #0b1d30 40%, #102a43 75%, #16385a 100%);
  border-bottom: 0;
  box-shadow: 0 6px 22px rgba(7, 20, 33, 0.28);
}

/* Gold rule + five subject colours under the header */
.pkp_structure_head::after {
  content: "";
  display: block;
  height: 6px;
  background:
    linear-gradient(90deg, #b91c1c 0 20%, #15803d 20% 40%, #1d4ed8 40% 60%, #7e22ce 60% 80%, #b45309 80% 100%) bottom / 100% 3px no-repeat,
    #c8963e;
}

/* Logo */
.pkp_site_name_wrapper {
  padding-top: 22px;
  padding-bottom: 22px;
}
.pkp_site_name .is_img img {
  max-height: 86px;
  width: auto;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.pkp_site_name a:hover .is_img img,
.pkp_site_name a:focus .is_img img,
.pkp_site_name .is_img:hover img {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 10px rgba(200, 150, 62, 0.35));
}

/* Register / Login: small pill buttons */
.pkp_navigation_user > li > a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e6ecf2;
  border: 1px solid rgba(243, 215, 154, 0.45);
  border-radius: 999px;
  padding: 4px 14px;
  margin-left: 6px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
  background: #c8963e;
  border-color: #c8963e;
  color: #0b1d30;
}
.pkp_navigation_user > li:last-child > a {
  background: rgba(200, 150, 62, 0.16);
}

/* Primary navigation band */
.pkp_navigation_primary_row {
  background: rgba(7, 20, 33, 0.35);
  border-top: 1px solid rgba(243, 215, 154, 0.14);
  backdrop-filter: saturate(140%);
}
.pkp_navigation_primary > li > a {
  position: relative;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.03em;
  padding: 14px 4px 13px;
  margin: 0 10px;
  border-bottom: 0;
  text-decoration: none;
}
.pkp_navigation_primary > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: #c8963e;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li:focus-within > a {
  color: #f3d79a;
  border-bottom: 0;
}
.pkp_navigation_primary > li > a:hover::after,
.pkp_navigation_primary > li > a:focus::after,
.pkp_navigation_primary > li:focus-within > a::after {
  transform: scaleX(1);
}

/* Dropdowns: clean white cards with a gold edge */
.pkp_navigation_primary ul {
  background: #ffffff;
  border: 0;
  border-top: 3px solid #c8963e;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 40px rgba(11, 29, 48, 0.22);
  padding: 8px 0;
  min-width: 250px;
}
.pkp_navigation_primary ul a {
  display: block;
  color: #102a43;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
}
.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  background: #f6f2e8;
  color: #0b1d30;
  border-left-color: #c8963e;
  padding-left: 22px;
}

/* Search */
.pkp_navigation_search_wrapper a {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(243, 215, 154, 0.45);
  border-radius: 999px;
  padding: 6px 16px;
  margin: 8px 0;
  text-decoration: none;
}
.pkp_navigation_search_wrapper a:hover,
.pkp_navigation_search_wrapper a:focus {
  background: #c8963e;
  border-color: #c8963e;
  color: #0b1d30;
}

/* ---------- Mobile and tablet header ---------- */
@media (max-width: 991px) {
  .pkp_site_name_wrapper {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .pkp_site_name .is_img img {
    max-height: 56px;
  }

  /* Menu button */
  .pkp_site_nav_toggle {
    background: #c8963e;
    color: #0b1d30;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
  .pkp_site_nav_toggle:focus-visible {
    outline: 3px solid #f3d79a;
    outline-offset: 2px;
  }

  /* Opened menu panel */
  .pkp_site_nav_menu,
  .pkp_site_nav_menu--isOpen {
    background: linear-gradient(180deg, #0b1d30 0%, #102a43 100%);
    border-top: 3px solid #c8963e;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
  .pkp_navigation_primary_row {
    background: transparent;
    border-top: 0;
  }
  .pkp_navigation_primary > li {
    border-bottom: 1px solid rgba(243, 215, 154, 0.14);
  }
  .pkp_navigation_primary > li > a {
    display: block;
    margin: 0;
    padding: 15px 18px;
    font-size: 1.02rem;
  }
  .pkp_navigation_primary > li > a::after {
    display: none;
  }

  /* Sub-menus shown as an indented list */
  .pkp_navigation_primary ul {
    background: rgba(255, 255, 255, 0.04);
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 8px;
    min-width: 0;
  }
  .pkp_navigation_primary ul a {
    color: #d9e2ec;
    font-weight: 600;
    padding: 11px 18px 11px 30px;
    border-left: 3px solid rgba(200, 150, 62, 0.45);
    margin-left: 18px;
  }
  .pkp_navigation_primary ul a:hover,
  .pkp_navigation_primary ul a:focus {
    background: rgba(200, 150, 62, 0.14);
    color: #f3d79a;
    padding-left: 30px;
  }

  /* Search and account links as full-width buttons */
  .pkp_navigation_search_wrapper {
    padding: 12px 18px 4px;
  }
  .pkp_navigation_search_wrapper a {
    display: block;
    text-align: center;
    padding: 11px 16px;
    font-size: 1rem;
  }
  .pkp_navigation_user_wrapper {
    padding: 8px 18px 18px;
  }
  .pkp_navigation_user > li > a {
    display: block;
    text-align: center;
    margin: 8px 0 0;
    padding: 10px 14px;
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .pkp_site_name .is_img img {
    max-height: 46px;
  }
  .pkp_structure_head::after {
    height: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pkp_navigation_primary > li > a::after,
  .pkp_site_name .is_img img,
  .pkp_navigation_primary ul a {
    transition: none !important;
  }
}

/* ---------- Header 2.0 fixes ---------- */
/* Keep the header and its dropdown menus above the page content */
.pkp_structure_head {
  z-index: 100;
}
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary > li {
  position: relative;
  z-index: 101;
}
.pkp_navigation_primary ul {
  z-index: 1000 !important;
}
/* Use the journal navy for the menu band instead of the theme's default blue */
.pkp_structure_head .pkp_navigation_primary_row,
.pkp_structure_head .pkp_navigation_primary_wrapper {
  background: rgba(7, 20, 33, 0.55) !important;
}
/* First menu item lines up with the logo */
.pkp_navigation_primary > li:first-child > a {
  margin-left: 0;
}
/* Tidy dropdown rows */
.pkp_navigation_primary ul li {
  border: 0 !important;
}

/* ==========================================================
   MOBILE 2.0  (phone + tablet polish, IJSSHP-level)
   Paste-safe: everything below only overrides on small screens.
   ========================================================== */

/* No sideways scrolling on phones (clip keeps the sticky header working) */
html, body { overflow-x: clip; }
.pkp_structure_main img,
.pkp_structure_main iframe,
.pkp_structure_main video,
.pkp_structure_main embed { max-width: 100%; height: auto; }

@media (max-width: 991px) {

  /* ---- Header: sticky, logo left, menu button right ---- */
  .pkp_structure_head {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-size: 300px auto, auto, auto;
  }
  .pkp_structure_head .pkp_site_name_wrapper {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: auto !important;
    min-height: 66px;
    padding: 10px 14px !important;
    box-sizing: border-box;
  }
  .pkp_structure_head .pkp_site_name {
    position: static !important;
    flex: 1 1 auto;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
  }
  .pkp_site_name .is_img { display: block; margin: 0; }
  .pkp_site_name .is_img img {
    max-height: 52px !important;
    max-width: 100%;
    width: auto;
  }
  .pkp_site_name .is_text,
  .pkp_site_name a.is_text {
    display: block;
    font-size: clamp(1rem, 4.6vw, 1.3rem) !important;
    line-height: 1.25;
    white-space: normal;
  }
  .pkp_structure_head .pkp_site_nav_toggle {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    order: 2;
    flex: 0 0 auto;
    margin: 0;
  }

  /* Opened menu: scrolls inside itself if it is taller than the screen */
  .pkp_site_nav_menu--isOpen {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ---- Page body ---- */
  body { background: #ffffff; }
  .pkp_structure_page { box-shadow: none; }
  .pkp_structure_content {
    padding: 18px 16px 10px !important;
    box-sizing: border-box;
  }
  .pkp_structure_main {
    padding: 0 !important;
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  .pkp_structure_main h1,
  .pkp_structure_main .page_title { font-size: 1.55rem; line-height: 1.3; }
  .pkp_structure_main h2 { font-size: 1.3rem; line-height: 1.35; }
  .pkp_structure_main h3 { font-size: 1.12rem; }
  .cmp_breadcrumbs { font-size: 0.85rem; margin-bottom: 10px; }

  /* Custom page content: wide tables scroll inside their own box */
  .pkp_structure_main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pkp_structure_main pre { overflow-x: auto; }

  /* Homepage About box */
  .page_index_journal .homepage_about {
    padding: 14px 16px;
    margin-bottom: 22px;
  }

  /* ---- Article lists ---- */
  .obj_article_summary {
    padding: 2px 0 2px 12px;
    margin-bottom: 20px;
  }
  .obj_article_summary .title a { font-size: 1.04rem; }
  .obj_galley_link {
    display: inline-block;
    min-height: 40px;
    line-height: 36px;
    padding: 0 16px;
    margin: 6px 6px 0 0;
  }

  /* ---- Article page: details stack under the main text ---- */
  .obj_article_details .page_title { font-size: 1.45rem; }
  .obj_article_details .row { display: block; }
  .obj_article_details .main_entry,
  .obj_article_details .entry_details {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .obj_article_details .entry_details {
    border-left: 0;
    border-top: 2px solid #c8963e;
    margin-top: 22px !important;
    padding-top: 16px !important;
  }
  .obj_article_details .entry_details .item {
    padding: 12px 0;
    border-bottom: 1px solid #d5dbe1;
  }
  .obj_article_details .entry_details .cover_image img { margin: 0 auto; display: block; }

  /* ---- Buttons and forms: thumb-friendly ---- */
  .cmp_button,
  .pkp_button,
  button.submit,
  .cmp_form .buttons button {
    min-height: 44px;
    padding: 8px 18px;
  }
  .cmp_form input[type="text"],
  .cmp_form input[type="email"],
  .cmp_form input[type="password"],
  .cmp_form input[type="search"],
  .cmp_form select,
  .cmp_form textarea,
  .pkp_search input[type="text"] {
    width: 100%;
    max-width: 100%;
    font-size: 16px;        /* stops iPhone auto-zoom */
    min-height: 44px;
    box-sizing: border-box;
  }

  /* ---- Sidebar: blocks become tidy cards under the content ---- */
  .pkp_structure_sidebar {
    width: 100% !important;
    padding: 6px 16px 10px !important;
    box-sizing: border-box;
  }
  .pkp_structure_sidebar .pkp_block {
    background: #f8fafc;
    border: 1px solid #d5dbe1;
    border-top: 3px solid #c8963e;
    border-radius: 10px;
    padding: 16px;
    margin: 0 0 16px;
  }
  .pkp_structure_sidebar .pkp_block img { max-width: 100%; height: auto; }

  /* ---- Footer ---- */
  .pkp_structure_footer { padding: 0 12px; box-sizing: border-box; }
  .pkp_structure_footer .qf {
    padding: 26px 16px 90px;     /* room for the WhatsApp button */
    border-radius: 12px;
    margin-top: 24px;
  }
  .pkp_structure_footer .qf-pub { padding: 18px 16px; }
  .pkp_structure_footer .qf-publeft { flex: 1 1 100%; }
  .pkp_structure_footer .qf-badges { width: 100%; }
  .pkp_structure_footer .qf-grid { gap: 22px; }
  .pkp_brand_footer { text-align: center; padding: 18px 0 90px; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {

  /* Inline-styled homepage/page sections: one column on phones */
  .pkp_structure_main [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .pkp_structure_main [style*="display:flex"],
  .pkp_structure_main [style*="display: flex"] {
    flex-wrap: wrap !important;
  }
  .pkp_structure_main [style*="width:"],
  .pkp_structure_main [style*="width: "] {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Footer: centred publisher card */
  .pkp_structure_footer .qf-pub { flex-direction: column; text-align: center; }
  .pkp_structure_footer .qf-publeft {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .pkp_structure_footer .qf-logo,
  .pkp_structure_footer .qf-logo img { width: 70px; height: 70px; }
  .pkp_structure_footer .qf-pubname { font-size: 18px; }
  .pkp_structure_footer .qf-badges { justify-content: center; }
  .pkp_structure_footer .qf-strip { flex-direction: column; align-items: flex-start; }
  .pkp_structure_footer .qf-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .pkp_structure_footer .qf-bottom a { display: inline-block; margin: 4px 7px; }
  .pkp_structure_footer .qf-links a { padding: 6px 0 6px 10px; }

  /* WhatsApp: compact round button that does not cover content */
  .qf-wa {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 54px;
    height: 54px;
    padding: 0 !important;
    justify-content: center;
    font-size: 0 !important;
    gap: 0;
  }
  .qf-wa img { width: 28px; height: 28px; }
}

@media (max-width: 380px) {
  .pkp_site_name .is_img img { max-height: 44px !important; }
  .pkp_structure_content { padding: 14px 12px 8px !important; }
  .pkp_structure_main h1,
  .pkp_structure_main .page_title { font-size: 1.38rem; }
}


/* ==========================================================
   ISSUE PAGE: remove the big empty gap after each section
   (Original Research / Review / Conceptual / Case Studies)
   Paste at the very END of styleSheet.css
   ========================================================== */
.obj_issue_toc .sections .section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 26px !important;
  padding-bottom: 6px !important;
}
.obj_issue_toc .sections .section:before {
  top: 0 !important;                 /* thin grey divider sits on top of each section */
}
.obj_issue_toc .sections .section:first-child {
  padding-top: 8px !important;
}
.obj_issue_toc .sections .section:first-child:before {
  display: none !important;          /* no divider above the first section */
}
.obj_issue_toc .sections .section > h2,
.obj_issue_toc .sections .section > h3 {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}
.obj_issue_toc .sections .section .cmp_article_list > li:last-child,
.obj_issue_toc .sections .section .cmp_article_list > li:last-child .obj_article_summary {
  margin-bottom: 0 !important;       /* no extra space after the last article */
}
.obj_issue_toc .sections .section + .section {
  margin-top: 26px !important;       /* same calm gap between every section */
}
