/* ==========================================================================
   NJPST Theme — Exact port of Next.js React frontend
   Source tokens:
     tailwind.config.ts  darkMode:class fontFamily sans Inter
     src/app/globals.css  Inter + Plus Jakarta Sans, marquee 45s, scrollbar
     src/app/page.tsx     Hero + Ticker + Split-Card + Grid
     src/components/Navigation.tsx  sticky header h-16/20 white/blue-950
     src/components/Footer.tsx      slate-950 grid 1->2->6 ripple
     src/components/PublishedArticlesGrid.tsx  cards + modal
   Compiled vanilla CSS for OJS 3.5.0.5 — no Tailwind build required.
   ========================================================================== */

/* 1. Fonts — mirror globals.css:1 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --blue-950: #172554;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
}

/* 2. Base reset — override OJS default LESS body.less.
   Dark #172554 (React blue-950) is scoped to the journal index only (pkp_page_index)
   so the article/galley PDF viewer and other pages stay light and readable. */
html {
  font-family: var(--font-sans);
  scrollbar-width: thin;
  scrollbar-color: #93c5fd #eff6ff;
  background: #172554; /* dark base so no white gaps at viewport edges */
  margin: 0;
  padding: 0;
}
html.dark { scrollbar-color: #1e40af #172554; }
/* Mobile overflow guard — border-box everywhere + no horizontal pan (2026-08-24) — use clip not hidden to keep position:sticky */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; max-width: 100vw; }
body { overflow-x: clip; max-width: 100vw; }
img { max-width: 100%; height: auto; }
body, .pkp_structure_page {
  font-family: var(--font-sans);
  color: #e0e7ff;
  background: #172554;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100% !important;
}
/* Header + footer reach the viewport edges, no whitespace (2026-08-24) */
.pkp_structure_head {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  left: 0;
  right: 0;
}
.pkp_structure_footer_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  left: 0;
  right: 0;
}
/* Dark canvas ONLY on the journal landing page — page.tsx:50 dark:bg-blue-950
   plus the single-issue view page (pkp_op_view only; /issue/archive stays light) */
body.pkp_page_index,
.pkp_page_index .pkp_structure_page,
body.pkp_page_issue.pkp_op_view,
.pkp_page_issue.pkp_op_view .pkp_structure_page {
  background: #172554;
  color: #e0e7ff;
}
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-shadow: 0 2px 6px rgb(85, 125, 245);
  color: #172554;
}
a { color: #2563eb; text-decoration: none; transition: color 0.2s; }
a:hover { color: #1d4ed8; }

/* — Custom scrollbar — globals.css:41 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #1571ea; }
::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 9999px; border: 2px solid #eff6ff; }
::-webkit-scrollbar-thumb:hover { background: #60a5fa; }
::-webkit-scrollbar-corner { background: #1d70db; }
html.dark ::-webkit-scrollbar-track { background: #172554; }
html.dark ::-webkit-scrollbar-thumb { background: #1e40af; border-color: #172554; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #1d4ed8; }
html.dark ::-webkit-scrollbar-corner { background: #172554; }

/* 3. Marquee — single pass from far right edge to far left edge */
@keyframes njpst-marquee {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}
.njpst-marquee {
  display: flex;
  width: max-content;
  animation: njpst-marquee 20s linear infinite;
  align-items: center;
  gap: 2.5rem;
  padding: 0.75rem 0;
  padding-right: 2.5rem;
  will-change: transform;
}
.njpst-marquee:hover { animation-play-state: paused; }

/* 4. Header — Image 2 dark navy, single-line flex per 2026-08-24 — was white per earlier, now dark #0f172a */
/* NOTE: backdrop-filter intentionally omitted — it creates a new containing block for
   position:fixed children (CSS spec §9.7), which clips and blurs the mobile sidebar.
   Use a solid background instead. */
.pkp_structure_head {
  background: #0f172a !important; /* Image 2 dark navy */
  border-bottom: 1px solid #1e293b !important;
  position: sticky !important;
  top: 0;
  z-index: 50;
  /* NO backdrop-filter here — it breaks fixed-position children */
}
html.dark .pkp_structure_head {
  background: #020617 !important;
  border-bottom-color: #1e293b !important;
}
/* Hide skip links (were visible blue text in Image 1) */
.cmp_skip_to_content,
.pkp_screen_reader {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
/* Nav bar row — same line as logo — Image 2 */
.pkp_head_wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 4rem !important;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  background: #0f172a !important;
}
@media (min-width: 640px) { .pkp_head_wrapper { height: 5rem !important; padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .pkp_head_wrapper { padding-left: 2rem; padding-right: 2rem; } }
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_site_nav_menu {
  background: transparent !important;
  flex: 1;
  display: flex !important;
  justify-content: flex-end !important;
}
html.dark .pkp_navigation_primary_row,
html.dark .pkp_navigation_primary_wrapper,
html.dark .pkp_site_nav_menu,
html.dark .pkp_head_wrapper {
  background: #0f172a !important;
}
.pkp_head_wrapper, .pkp_site_name_wrapper, .pkp_navigation_primary_wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .pkp_head_wrapper { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .pkp_head_wrapper { padding-left: 2rem; padding-right: 2rem; } }

.pkp_site_name_wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.pkp_site_name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.pkp_site_name a.is_img img {
  height: 2.5rem;
  width: auto;
}
@media (min-width: 640px) { .pkp_site_name a.is_img img { height: 3rem; } }
.pkp_site_name .is_text {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff; /* Image 2 dark header */
  line-height: 1.25;
  max-width: 200px;
}
@media (min-width: 640px) { .pkp_site_name .is_text { font-size: 12px; max-width: 160px; } }
@media (min-width: 768px) { .pkp_site_name .is_text { font-size: 14px; max-width: none; } }
@media (min-width: 1024px) { .pkp_site_name .is_text { max-width: none !important; white-space: nowrap !important; } }
html.dark .pkp_site_name .is_text { color: #dbeafe; }

/* Primary nav — Navigation.tsx:95 hidden md:flex */
.pkp_navigation_primary {
  display: none !important;
}
@media (min-width: 768px) {
  .pkp_navigation_primary {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 1rem;
    flex-shrink: 0;
  }
}
@media (min-width: 1024px) { .pkp_navigation_primary { gap: 1.5rem; margin-left: 2rem; } }

.pkp_navigation_primary li { position: relative; list-style: none; }
.pkp_navigation_primary > li > a {
  color: #e2e8f0; /* Image 2 white on dark */
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
  text-decoration: none;
}
html.dark .pkp_navigation_primary > li > a { color: #bfdbfe; }
.pkp_navigation_primary > li > a:hover { color: #93c5fd !important; }
html.dark .pkp_navigation_primary > li > a:hover { color: #93c5fd !important; }
.pkp_navigation_primary > li > a.is-active,
.pkp_navigation_primary > li > a.active {
  font-weight: 700;
  color: #1d4ed8 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #3b82f6;
}
html.dark .pkp_navigation_primary > li > a.is-active { color: #93c5fd !important; }

/* Dropdown — Navigation.tsx:106 */
.pkp_navigation_primary li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.75rem;
  width: 13rem;
  z-index: 50;
}
.pkp_navigation_primary li:hover > ul,
.pkp_navigation_primary li:focus-within > ul {
  display: block;
}
.pkp_navigation_primary li ul li a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  background: #0f172a;
  color: #e2e8f0;
  border-left: 1px solid #1e293b;
  border-right: 1px solid #1e293b;
}
.pkp_navigation_primary li ul li:first-child a { border-top: 1px solid #1e293b; border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.pkp_navigation_primary li ul li:last-child a { border-bottom: 1px solid #1e293b; border-bottom-left-radius: 0.75rem; border-bottom-right-radius: 0.75rem; }
.pkp_navigation_primary li ul li a:hover { background: #1e293b; color: #93c5fd; }

/* Search desktop — Navigation.tsx:187 */
.pkp_navigation_search_wrapper {
  position: relative;
  margin-right: -1.75rem;
  display: none;
}
@media (min-width: 768px) { .pkp_navigation_search_wrapper { display: block; } }
.pkp_search.pkp_search_desktop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 9rem;
  border: 1px solid #bfdbfe;
  background: rgba(239,246,255,0.5);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  font-size: 0.875rem;
  color: #1e3a8a;
  position: relative;
}
@media (min-width: 1280px) { .pkp_search.pkp_search_desktop { width: 12rem; } }
html.dark .pkp_search.pkp_search_desktop { background: rgba(30,58,138,0.6); border-color: #1e40af; color: #dbeafe; }
.pkp_search .fa-search {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  color: #93c5fd;
  pointer-events: none;
}

/* User nav + Login pill — Navigation.tsx:181 + user chip */
.pkp_navigation_user {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}
.pkp_navigation_user_wrapper,
.pkp_navigation_user_wrapper * {
  display: none !important;
}
.pkp_navigation_user li a {
  color: #1e3a8a;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid #2563eb;
  color: #2563eb;
  font-weight: 600;
  transition: all 0.2s;
}
/* Dashboard chip — [avatar, Name] — replaces login pill when logged in */
.njpst-user-chip > a:hover { background: rgba(255,255,255,0.18) !important; }
.njpst-user-chip:hover > ul,
.njpst-user-chip:focus-within > ul { display: block !important; }
.njpst-user-chip .njpst-user-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.6);
  background: #dbeafe;
}
.njpst-user-chip .njpst-user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: none;
}
.njpst-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  /* hover bridge — mirror Journal dropdown: padding not margin so gap stays hoverable */
  margin-top: 0;
  padding-top: 0.5rem;
  width: 13rem;
  z-index: 50;
  display: none;
  list-style: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  background: transparent;
}
.njpst-user-dropdown li a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  background: #0f172a;
  color: #e2e8f0;
  border-left: 1px solid #1e293b;
  border-right: 1px solid #1e293b;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.njpst-user-dropdown li:first-child a { border-top: 1px solid #1e293b; border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.njpst-user-dropdown li:last-child a { border-bottom: 1px solid #1e293b; border-bottom-left-radius: 0.75rem; border-bottom-right-radius: 0.75rem; }
.njpst-user-dropdown li + li a { border-top: none; }
.njpst-user-chip ul li a:hover,
.njpst-user-dropdown li a:hover { background: #1e293b !important; color: #93c5fd !important; }

/* Mobile toggle + search — Navigation.tsx:212 + Image 1 fix */
.njpst-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) { .njpst-mobile-actions { display: none !important; } }
.pkp_site_nav_toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) { .pkp_site_nav_toggle { display: none !important; } }
.pkp_site_nav_toggle:hover { background: rgba(255,255,255,0.1); }
.pkp_site_nav_toggle .njpst-icon-hamburger,
.pkp_site_nav_toggle .njpst-icon-close {
  color: #ffffff;
}
.njpst-search-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
}
.njpst-search-mobile-btn:hover { background: rgba(255,255,255,0.1); }
.njpst-search-mobile-btn .fa-search { font-size: 1.25rem; color: #ffffff; }

/* Mobile panel — right sidebar below header (slides from right, 75vw)
   KEY FIX NOTES (2026-08-30):
   1. backdrop-filter removed from .pkp_structure_head (see above) — was creating a new
      CSS containing block for fixed descendants, anchoring sidebar to header, clipping it,
      and applying the blur through inheritance.
   2. backdrop-filter removed from .njpst-menu-backdrop — it was blurring the sidebar
      panel that visually sits on top of the backdrop.
   3. overflow-x:clip on html/body is kept (prevents horizontal pan); it no longer clips
      the sidebar now that backdrop-filter is gone from the header. */
.pkp_site_nav_menu { display: block; }

/* Backdrop — dark scrim that appears behind the sidebar on mobile — full viewport */
.njpst-menu-backdrop,
.njpst-mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 0; /* full 100vh, touches edges */
  background: rgba(15, 23, 42, 0.55);
  /* NO backdrop-filter here — it blurs the sidebar that overlaps the backdrop */
  z-index: 55;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.njpst-menu-backdrop.is-open,
.njpst-mobile-menu-backdrop.is-open { display: block; opacity: 1; pointer-events: auto; }

@media (max-width: 767px) {
  /* The sidebar is fixed to the viewport — no overflow hacks needed now that
     backdrop-filter is gone from the header. Keep overflow-x:clip on html/body
     for the horizontal-pan guard (it's on lines 50-51 of this file). */
  .pkp_site_nav_menu {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
  }
  .pkp_site_nav_menu.is-open {
    visibility: visible;
    pointer-events: auto;
  }
  .pkp_site_nav_menu .pkp_navigation_primary {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 75vw;
    max-width: 360px;
    height: 100dvh; /* 100vh touching top and bottom edges */
    max-height: 100dvh;
    background: #0f172a;
    border-left: 1px solid #1e293b;
    border-radius: 0; /* no rounding, flush to edges */
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    padding: 5rem 1rem 1.5rem; /* 4-5rem top padding to clear header */
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 60;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    visibility: hidden;
    pointer-events: none;
  }
  .pkp_site_nav_menu.is-open .pkp_navigation_primary {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .pkp_site_nav_menu.is-open .pkp_navigation_primary {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Spaced items + gradient dividers */
  .pkp_site_nav_menu.is-open .pkp_navigation_primary > li {
    width: 100%;
    padding: 1.1rem 0.5rem;
    border-bottom: none;
    position: relative;
    display: flex;
    justify-content: center;
  }
  .pkp_site_nav_menu.is-open .pkp_navigation_primary > li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #67e8f9, #0f172a);
    opacity: 0.9;
  }
  /* No divider after last visible item (Login / Dashboard chip) */
  .pkp_site_nav_menu.is-open .pkp_navigation_primary > li:last-child::after,
  .pkp_site_nav_menu.is-open .pkp_navigation_primary > li:has(.njpst-login-pill)::after,
  .pkp_site_nav_menu.is-open .pkp_navigation_primary > li:has(.njpst-user-chip)::after { display: none; }
  .pkp_site_nav_menu.is-open .pkp_navigation_primary > li:has(.njpst-login-pill),
  .pkp_site_nav_menu.is-open .pkp_navigation_primary > li:has(.njpst-user-chip) {
    border-bottom: none;
    padding-bottom: 0.5rem;
  }
  .pkp_site_nav_menu.is-open .pkp_navigation_primary > li > a {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.5rem 0;
    font-size: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
  }
  /* Hide search bar inside the sidebar */
  .pkp_site_nav_menu.is-open .pkp_navigation_search_wrapper {
    display: none !important;
  }
  html.dark .pkp_site_nav_menu.is-open .pkp_navigation_primary { background: #172554; border-color: #1e3a8a; }

  /* user chip dropdown in mobile expanded menu */
  .pkp_site_nav_menu.is-open .njpst-user-chip > ul {
    position: static !important;
    margin-top: 0.5rem;
    display: none !important;
  }
  .pkp_site_nav_menu.is-open .njpst-user-chip.is-open > ul { display: block !important; }

  /* Journal dropdown in mobile — renders inline below the toggle */
  .pkp_site_nav_menu.is-open .njpst-dropdown > ul {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    padding-top: 0 !important;
    display: none;
  }
}

/* sm breakpoint — keep full 100vh even when header is 5rem */
@media (min-width: 640px) and (max-width: 767px) {
  .pkp_site_nav_menu .pkp_navigation_primary {
    top: 0;
    height: 100dvh;
    max-height: 100dvh;
    padding-top: 6rem;
  }
}


/* 5. Structure overrides — single dark theme (royal blue) — no white */
.pkp_structure_content,
.pkp_structure_content.has_sidebar {
  padding-top: 0 !important;
  display: block;
  background: #172554;
}
.pkp_page_index .pkp_structure_content,
.pkp_page_index .pkp_structure_content.has_sidebar,
.pkp_page_index .pkp_structure_main,
.page_index_journal,
.pkp_page_issue.pkp_op_view .pkp_structure_content,
.pkp_page_issue.pkp_op_view .pkp_structure_main {
  background: #172554 !important;
}
.pkp_structure_main {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #172554;
}
.pkp_page_index .pkp_structure_main,
.pkp_page_issue.pkp_op_view .pkp_structure_main {
  background: #172554 !important;
}
.pkp_structure_main:before, .pkp_structure_main:after { display: none !important; }
.pkp_structure_sidebar { display: none !important; }
.pkp_page_index .pkp_structure_content.has_sidebar .pkp_structure_sidebar { display: none !important; }
.page_index_journal { max-width: none; padding: 0; }

/* 6. Hero — fluid image; fallback #172554 matches page canvas */
.njpst-hero {
  position: relative;
  width: 100%;
  background-color: #172554;
  background-size: cover;
  background-position: center;
  padding: 4rem 1rem;
}
@media (min-width: 640px) { .njpst-hero { padding: 6rem 1.5rem; } }
.njpst-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(23, 37, 84, 0.70);
  z-index: 0;
}
html.dark .njpst-hero::before { background: rgba(23, 37, 84, 0.80); }
.njpst-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.njpst-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgb(85,125,245);
}
@media (min-width: 640px) { .njpst-hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .njpst-hero h1 { font-size: 3.75rem; } }
.njpst-hero p.njpst-hero-sub {
  font-size: 1rem;
  color: rgba(219,234,254,0.9);
  max-width: 42rem;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}
@media (min-width: 640px) { .njpst-hero p.njpst-hero-sub { font-size: 1.125rem; } }
.njpst-hero-search {
  margin-top: 2rem;
  display: flex;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 6px -1px rgba(23,37,84,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}
.njpst-hero-search input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  background: #e8edff;
  color: #1e293b;
  border: 1px solid #93c5fd;
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  outline: none;
}
@media (min-width: 640px) { .njpst-hero-search input { padding: 1rem 1.25rem; font-size: 1rem; } }
.njpst-hero-search input::placeholder { color: #64748b; }
.njpst-hero-search button {
  padding: 0.875rem 1.5rem;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
@media (min-width: 640px) { .njpst-hero-search button { padding: 1rem 2rem; font-size: 1rem; } }
.njpst-hero-search button:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.njpst-hero-search button:active { transform: scale(0.98); }
html.dark .njpst-hero-search button { background: #60a5fa; color: #172554; }
html.dark .njpst-hero-search button:hover { background: #93c5fd; }

/* 7. Ticker — page.tsx:103 — dark royal blue only */
.njpst-ticker {
  width: 100%;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.njpst-ticker-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: #2563eb;
  padding: 0 1rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}
@media (min-width: 640px) { .njpst-ticker-label { padding: 0 1.5rem; font-size: 0.75rem; } }
html.dark .njpst-ticker-label { background: #3b82f6; }
.njpst-ticker-track {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.njpst-ticker a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
  font-size: 0.75rem;
  color: #93c5fd;
  transition: color 0.2s;
}
@media (min-width: 640px) { .njpst-ticker a { font-size: 0.875rem; } }
.njpst-ticker a:hover { color: #bfdbfe; text-decoration: underline; }
.njpst-ticker-badge {
  border-radius: 9999px;
  background: #1e3a8a;
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
}

/* 8. Featured Volume — page.tsx:134 dark:bg-blue-950 */
.njpst-featured {
  width: 100%;
  background: #172554;
  padding: 3rem 1rem;
}
@media (min-width: 640px) { .njpst-featured { padding: 4rem 1.5rem; } }
html.dark .njpst-featured { background: #172554; }
.njpst-featured-inner { max-width: 80rem; margin: 0 auto; }
.njpst-featured h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgb(85,125,245);
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .njpst-featured h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .njpst-featured h2 { font-size: 3.75rem; } }
.njpst-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 1024px) { .njpst-featured-grid { grid-template-columns: 1fr 1fr; } }
.njpst-cover-card {
  position: relative;
  background: linear-gradient(to bottom right, #2563eb, #172554);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .njpst-cover-card { flex-direction: row; } }
html.dark .njpst-cover-card { background: linear-gradient(to bottom right, #1e40af, #0f172a); }
.njpst-cover-img {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
@media (min-width: 640px) { .njpst-cover-img { width: 50%; } }
.njpst-cover-img img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.njpst-cover-img img:hover { transform: scale(1.05); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3); }
.njpst-cover-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
}
@media (min-width: 640px) { .njpst-cover-info { width: 50%; padding: 2.5rem; } }
.njpst-cover-info p.journal-name { color: #bfdbfe; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.njpst-cover-info p.volume { color: #ffffff; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 640px) { .njpst-cover-info p.volume { font-size: 3rem; } }
.njpst-cover-info p.issue { color: #bfdbfe; font-size: 1.125rem; font-weight: 500; }
.njpst-cover-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
}
.njpst-cover-card a.njpst-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-decoration: none;
}
.njpst-cover-card a.njpst-download:hover { background: #eff6ff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.njpst-cover-card a.njpst-download:active { transform: scale(0.98); }
.njpst-volume-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #1e293b;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  border: 1px solid #1e40af;
}
@media (min-width: 640px) { .njpst-volume-list { padding: 2.5rem; } }
.njpst-volume-list .eyebrow { font-size: 0.875rem; font-weight: 600; color: #60a5fa; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.njpst-volume-list h3 { font-size: 1.25rem; font-weight: 700; color: #dbeafe; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .njpst-volume-list h3 { font-size: 1.5rem; } }
.njpst-volume-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.njpst-volume-list li { display: flex; gap: 1rem; align-items: flex-start; }
.njpst-volume-list .num {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  background: #1e3a8a;
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.njpst-volume-list a.article-title { font-size: 0.875rem; font-weight: 600; color: #dbeafe; line-height: 1.4; transition: color 0.2s; }
@media (min-width: 640px) { .njpst-volume-list a.article-title { font-size: 1rem; } }
.njpst-volume-list a.article-title:hover { color: #60a5fa; }
.njpst-volume-list .author { font-size: 0.75rem; color: #60a5fa; margin-top: 0.125rem; }
.njpst-volume-list .cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-decoration: none;
}
.njpst-volume-list .cta:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.njpst-volume-list .cta:active { transform: scale(0.98); }
html.dark .njpst-volume-list .cta { background: #60a5fa; color: #172554; }
html.dark .njpst-volume-list .cta:hover { background: #93c5fd; }

/* 9. Published Feed — page.tsx:240 dark:bg-blue-950 — distinct from footer #020617 */
.njpst-feed {
  width: 100%;
  background: #172554;
  padding: 3rem 1rem;
  flex: 1;
}
@media (min-width: 640px) { .njpst-feed { padding: 4rem 1.5rem; } }
html.dark .njpst-feed { background: #172554; }
.njpst-feed-inner { max-width: 80rem; margin: 0 auto; }
.njpst-feed h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgb(85,125,245);
}
@media (min-width: 640px) { .njpst-feed h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .njpst-feed h2 { font-size: 3.75rem; } }
.njpst-feed .subtitle { font-size: 0.875rem; color: #dbeafe; margin-bottom: 0; margin-top: 0.5rem; }
.njpst-feed-header { display: flex; justify-content: space-between; align-items: flex-start; gap:1rem; }
.njpst-articles-controls {
  position: sticky;
  top: 4rem;
  z-index: 5;
  background: #172554;
  padding: 0.75rem 0;
  margin: 1.5rem 0;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid #1e40af;
}
@media (min-width: 640px) { .njpst-articles-controls { top: 5rem; } }
.njpst-view-toggle {
  display: flex;
  gap: 0.25rem;
  background: #1e293b;
  border: 1px solid #1e40af;
  border-radius: 0.5rem;
  padding: 0.25rem;
}
.njpst-view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: #93c5fd;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.njpst-view-toggle button:hover { color: #dbeafe; background: rgba(37,99,235,0.2); }
.njpst-view-toggle button.active { background: #2563eb; color: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
/* Light variant for archive/issues pages — .njpst-arch-page is #eff6ff, not dark #172554 */
.njpst-arch-page .njpst-articles-controls { background: #eff6ff; border-bottom-color: #dbeafe; top: 4rem; }
.njpst-arch-page .njpst-view-toggle { background: #ffffff; border-color: #bfdbfe; }
.njpst-arch-page .njpst-view-toggle button { color: #1d4ed8; }
.njpst-arch-page .njpst-view-toggle button:hover { color: #1e40af; background: #eff6ff; }
.njpst-arch-page .njpst-view-toggle button.active { background: #2563eb; color: #ffffff; }
.njpst-list {
  display: flex !important;
  flex-direction: column;
  gap: 0;
}
.njpst-list .njpst-card {
  flex-direction: row;
  align-items: stretch;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #1e40af;
  background: transparent;
  box-shadow: none;
  transform: none !important;
}
.njpst-list .njpst-card:hover { background: rgba(30,41,59,0.5); transform: none !important; box-shadow: none; }
.njpst-list .njpst-card-header { display: none !important; }
.njpst-list .njpst-card-body { padding: 1rem 0.75rem; }
.njpst-list .njpst-card .keywords,
.njpst-list .njpst-card-abstract,
.njpst-list .njpst-card .meta-row { display: none !important; }
.njpst-list .njpst-card .actions { padding-top: 0.75rem; }
html.dark .njpst-feed .subtitle { color: #dbeafe; }
.njpst-feed-footer { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
@media (max-width: 640px) { .njpst-feed-footer { flex-direction: column; align-items: flex-start; } }
.njpst-perpage { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #93c5fd; }
.njpst-pagination { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; flex-wrap: wrap; }
.njpst-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .njpst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .njpst-grid { grid-template-columns: repeat(3, 1fr); } }
.njpst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #1e40af;
  background: #1e293b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.3s;
}
.njpst-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3); transform: translateY(-4px); }
.njpst-card-header {
  position: relative;
  display: flex;
  height: 9rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #1e40af;
  background-size: cover;
  background-position: center;
}
.njpst-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(23,37,84,0.4);
}
html.dark .njpst-card-header::before { background: rgba(23,37,84,0.6); }
.njpst-card-icon {
  position: relative;
  z-index: 10;
  display: flex;
  height: 5rem; width: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(23,37,84,0.2);
  border: 4px solid rgba(255,255,255,0.7);
}
.njpst-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.njpst-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; color: #dbeafe; }
.njpst-card h3 a { color: inherit; transition: color 0.2s; }
.njpst-card h3 a:hover { color: #60a5fa; }
.njpst-card .meta-author { margin-top: 0.5rem; font-size: 0.875rem; color: #93c5fd; }
.njpst-card .meta-author .aff { color: #60a5fa; }
.njpst-card .meta-row { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: #60a5fa; }
.njpst-card .keywords { margin-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.45rem; font-size: 0.75rem; }
.njpst-card .keywords span {
  color: #93c5fd;
  font-weight: 500;
}
.njpst-card .keywords span + span::before { content: "\00b7"; margin-right: 0.45rem; color: #60a5fa; }
.njpst-card .actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
}
.njpst-card .btn-abstract,
.njpst-card .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid #1e40af;
  background: rgba(30,58,138,0.4);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #bfdbfe;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.njpst-card .btn-abstract:hover, .njpst-card .btn-download:hover { background: #1e3a8a; color:#dbeafe; }
.njpst-card .btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  background: #1d4ed8;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s;
  text-decoration: none;
}
.njpst-card .btn-read:hover { background: #2563eb; }
html.dark .njpst-card .btn-read { background: #3b82f6; }
html.dark .njpst-card .btn-read:hover { background: #60a5fa; }

/* Abstract — dark royal blue theme */
.njpst-card-abstract {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #cbd5e1;
}
.njpst-card p[style*="color:#334155"],
.njpst-card p[style*="color: #334155"] { color: #cbd5e1 !important; }

/* Empty state — PublishedArticlesGrid.tsx:27 dashed */
.njpst-empty {
  border: 1px dashed #bfdbfe;
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
}
html.dark .njpst-empty { border-color: #1e40af; }

/* 10. Modal — PublishedArticlesGrid.tsx:135 — always white for readability */
.njpst-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23,37,84,0.70);
  padding: 1rem;
}
.njpst-modal-box {
  position: relative;
  width: 100%;
  max-width: 42rem;
  border-radius: 1rem;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border: 1px solid #dbeafe;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .njpst-modal-box { max-width: 32rem; } }
@media (min-width: 768px) { .njpst-modal-box { max-width: 42rem; } }
.njpst-modal-x {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.njpst-modal-x:hover { background: rgba(255,255,255,0.32); }
.njpst-modal-head {
  padding: 1rem 3.5rem 1rem 1.5rem;
  background: #2563eb;
  color: #ffffff;
}
.njpst-modal-head .eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(219,234,254,0.9); }
.njpst-modal-head h3 { margin-top: 0.25rem; font-size: 1.125rem; font-weight: 800; line-height: 1.3; color: #ffffff; text-shadow: none; }
.njpst-modal-head p.authors { margin-top: 0.25rem; font-size: 0.875rem; opacity: 0.9; }
.njpst-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1.5rem; background: #ffffff; }
.njpst-modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.njpst-modal-label { font-family: monospace; font-weight: 700; color: #3b82f6; }
.njpst-modal-value { margin-top: 0.25rem; color: #0f172a; word-break: break-word; }
.njpst-modal-abstract { font-size: 0.875rem; line-height: 1.6; color: #0f172a; }
.njpst-modal-foot {
  flex-shrink: 0;
  border-top: 1px solid #dbeafe;
  background: #ffffff;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.njpst-modal-btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  background: #1d4ed8;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}
.njpst-modal-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
}
.njpst-modal-close {
  margin-left: auto;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  background: none;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}
.njpst-modal-close:hover { background: #eff6ff; color: #0f172a; }

/* 11. Footer — Footer.tsx:62 slate-950 */
.pkp_structure_footer_wrapper {
  background: #020617 !important;
  color: #93c5fd;
  margin-top: auto;
  width: 100% !important;
}
.pkp_structure_footer {
  background: transparent !important;
  color: #93c5fd;
  border-top: none !important;
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem !important;
}
@media (min-width: 640px) { .pkp_structure_footer { padding: 4rem 1.5rem !important; } }
.pkp_footer_content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: left;
}
@media (min-width: 640px) { .pkp_footer_content { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pkp_footer_content { grid-template-columns: repeat(6, 1fr); } }
.pkp_footer_content h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.pkp_footer_content h4::after {
  content: '';
  display: block;
  height: 4px;
  width: 6rem;
  margin-top: 0.5rem;
  background: linear-gradient(to right, #67e8f9, #020617);
}
.pkp_footer_content p, .pkp_footer_content li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #93c5fd;
}
.pkp_footer_content a {
  font-family: monospace;
  font-weight: 700;
  color: #93c5fd;
  position: relative;
  display: inline-block;
  transition: color 0.2s;
}
.pkp_footer_content a:hover { color: #ffffff; }
.pkp_footer_content a::before, .pkp_footer_content a::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 1px;
  background: #ffffff;
  width: 50%;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.pkp_footer_content a::before { left: 50%; transform-origin: right; }
.pkp_footer_content a::after { right: 50%; transform-origin: left; }
.pkp_footer_content a:hover::before, .pkp_footer_content a:hover::after { transform: scaleX(1); }
.pkp_brand_footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1e293b !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: #60a5fa;
}
@media (min-width: 640px) { .pkp_brand_footer { flex-direction: row; } }
.pkp_brand_footer a { color: #93c5fd; }
.pkp_brand_footer a:hover { text-decoration: underline; }
.pkp_brand_footer img { display: none; } /* hide OJS brand */

/* 12. Page helpers */
.njpst-container { max-width: 80rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .njpst-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .njpst-container { padding-left: 2rem; padding-right: 2rem; } }
.njpst-hidden { display: none !important; }

/* 13. Archive / other pages minimal polish to inherit theme */
.pkp_page_search .search_controls, .pkp_page_issue .obj_issue_toc {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  padding: 1.5rem;
}
html.dark .pkp_page_search .search_controls { background: #1e3a8a; border-color: #1e40af; }

/* — Search modal overlay — SearchModal.tsx — */
.njpst-search-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(23,37,84,0.60);
  padding-top: 15vh;
  padding-left: 1rem;
  padding-right: 1rem;
}
.njpst-search-box {
  max-width: 36rem;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border: 1px solid #dbeafe;
  overflow: hidden;
}
html.dark .njpst-search-box { background: #172554; border-color: #1e40af; }

/* 14. Archive — archive/page.tsx + ArchiveFilters.tsx (light theme) */
.njpst-arch-page { background: #eff6ff; min-height: 100vh; padding: 2rem 1rem; }
@media (min-width: 640px) { .njpst-arch-page { padding: 2rem 1.5rem; } }
@media (min-width: 1024px) { .njpst-arch-page { padding: 2rem 2rem; } }
.njpst-arch-inner { max-width: 80rem; margin: 0 auto; }
.njpst-arch-head h1 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: #172554; text-shadow: none; margin: 0; }
@media (min-width: 640px) { .njpst-arch-head h1 { font-size: 1.875rem; } }
.njpst-arch-head p { font-size: 0.875rem; color: #1d4ed8; margin: 0.25rem 0 0; }
.njpst-arch-layout { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
@media (min-width: 1024px) { .njpst-arch-layout { flex-direction: row; } }
.njpst-arch-side { width: 100%; flex-shrink: 0; }
@media (min-width: 1024px) { .njpst-arch-side { width: 18rem; } .njpst-arch-side-inner { position: sticky; top: 6rem; } }
.njpst-arch-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(23,37,84,0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.njpst-arch-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #1e40af; margin: 0 0 0.5rem; }
.njpst-arch-search { display: flex; gap: 0.5rem; }
.njpst-arch-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #bfdbfe;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: #172554;
  outline: none;
}
.njpst-arch-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; }
.njpst-arch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.njpst-arch-btn:hover { background: #1d4ed8; }
.njpst-arch-browse, .njpst-arch-clear {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
}
.njpst-arch-browse { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.njpst-arch-browse:hover { background: #dbeafe; }
.njpst-arch-clear { border: 1px solid #bfdbfe; background: #ffffff; color: #1d4ed8; justify-content: center; }
.njpst-arch-clear:hover { background: #eff6ff; }
.njpst-arch-results { flex: 1; min-width: 0; }
.njpst-arch-count { font-size: 0.875rem; color: #1e3a8a; margin: 0 0 1rem; }
.njpst-arch-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #dbeafe; }
.njpst-arch-row { padding: 1.5rem 0; border-bottom: 1px solid #dbeafe; }
.njpst-arch-row h2 { font-size: 1.125rem; font-weight: 700; color: #172554; text-shadow: none; line-height: 1.4; margin: 0; }
.njpst-arch-row h2 a { color: inherit; }
.njpst-arch-row h2 a:hover { color: #2563eb; }
.njpst-arch-meta { margin-top: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: #1d4ed8; }
.njpst-arch-meta .fa-user { color: #60a5fa; font-size: 0.75rem; }
.njpst-arch-meta strong { font-weight: 600; }
.njpst-arch-meta .aff { color: #3b82f6; }
.njpst-arch-date { margin-top: 0.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; color: #3b82f6; }
.njpst-arch-row .keywords { margin-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.45rem; font-size: 0.75rem; }
.njpst-arch-row .keywords span { color: #1d4ed8; }
.njpst-arch-row .keywords span + span::before { content: "\00b7"; margin-right: 0.45rem; color: #64748b; }
.njpst-arch-abs { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.6; color: #334155; }
html.dark .njpst-arch-abs { color: #cbd5e1; }
.njpst-arch-dl {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: #1e40af;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
}
.njpst-arch-dl:hover { background: #eff6ff; }
/* Search rows 3-button actions — matches .njpst-card .actions (njpst_article_card.tpl) — Abstract | Read | PDF */
.njpst-arch-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.njpst-arch-actions .btn-abstract,
.njpst-arch-actions .btn-download {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border-radius: 0.5rem; border: 1px solid #bfdbfe; background: #ffffff;
  padding: 0.4rem 0.75rem; font-size: 0.75rem; font-weight: 600; color: #1e40af;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.njpst-arch-actions .btn-abstract:hover,
.njpst-arch-actions .btn-download:hover { background: #eff6ff; color: #1e40af; border-color: #93c5fd; }
.njpst-arch-actions .btn-read {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border-radius: 0.5rem; background: #2563eb; color: #ffffff;
  padding: 0.4rem 0.75rem; font-size: 0.75rem; font-weight: 600;
  text-decoration: none; border: none; transition: background 0.2s;
}
.njpst-arch-actions .btn-read:hover { background: #1d4ed8; color: #ffffff; }
/* Advanced filters — search.tpl fieldset (dateFrom/dateTo via html_select_date_a11y) */
.njpst-arch-advanced { margin-top: 1rem; border: none; padding: 0; }
.njpst-arch-advanced legend.njpst-arch-label { margin-bottom: 0.75rem; }
.njpst-arch-date-range { display: flex; flex-direction: column; gap: 1rem; }
.njpst-arch-date-group { display: flex; flex-direction: column; gap: 0.375rem; }
.njpst-arch-sublabel { font-size: 0.75rem; font-weight: 500; color: #334155; margin: 0; }
.njpst-arch-date-group select {
  border: 1px solid #bfdbfe; border-radius: 0.5rem; background: #ffffff; color: #172554;
  padding: 0.4rem 0.5rem; font-size: 0.8rem; outline: none;
}
.njpst-arch-date-group select:focus { border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; }
.njpst-arch-date-group .html_select_date_a11y { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.njpst-arch-date-group label { font-size: 0.7rem; color: #475569; }
.njpst-arch-advanced-header { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; gap: 0.5rem; }
.njpst-arch-advanced-toggle { background: #2563eb; color: #ffffff; border: none; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.375rem; transition: background 0.2s; }
.njpst-arch-advanced-toggle:hover { background: #1d4ed8; }
.njpst-arch-collapsible { border: 1px solid #bfdbfe; border-radius: 0.5rem; margin-top: 0.75rem; background: #ffffff; overflow: hidden; }
.njpst-arch-collapsible-summary { padding: 0.6rem 0.75rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #1e40af; font-size: 0.875rem; list-style: none; background: #f8fafc; }
.njpst-arch-collapsible-summary::-webkit-details-marker { display: none; }
.njpst-arch-collapsible[open] .njpst-arch-collapsible-summary { background: #eff6ff; border-bottom: 1px solid #dbeafe; }
.njpst-arch-collapsible-content { padding: 0.75rem; }
.njpst-arch-empty {
  border: 1px dashed #bfdbfe;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.4);
  padding: 4rem 1.5rem;
  text-align: center;
}
.njpst-arch-empty h3 { font-size: 1.125rem; font-weight: 600; color: #1e3a8a; text-shadow: none; margin: 0; }
.njpst-arch-empty p { max-width: 24rem; margin: 0.5rem auto 0; font-size: 0.875rem; color: #2563eb; }
/* Archive issue cards — issueArchive.tpl */
.njpst-issues-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .njpst-issues-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .njpst-issues-grid { grid-template-columns: repeat(3, 1fr); } }
.njpst-issue-card {
  border: 1px solid #bfdbfe;
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(23,37,84,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.njpst-issue-card:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(23,37,84,0.1); }
.njpst-issue-cover { height: 16rem; background: #eff6ff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.njpst-issue-cover img { width: 100%; height: 100%; object-fit: contain; }
.njpst-issue-body { padding: 1.25rem; }
.njpst-issue-vol { margin: 0; font-weight: 700; color: #172554; }
.njpst-issue-date { margin: 0.25rem 0 0; font-size: 0.75rem; color: #3b82f6; }
.njpst-issue-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #2563eb;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.njpst-issue-cta:hover { background: #1d4ed8; }
/* Issues grid list view — toggled via njpst.js .njpst-list (like article cards) — ascending oldest Vol12 2017 first */
.njpst-issues-grid.njpst-list { display: flex !important; flex-direction: column; gap: 0; }
.njpst-issues-grid.njpst-list .njpst-issue-card {
  display: flex; flex-direction: row; align-items: stretch;
  border-radius: 0; border: none; border-bottom: 1px solid #dbeafe;
  background: #ffffff; box-shadow: none; transform: none !important;
}
.njpst-issues-grid.njpst-list .njpst-issue-card:hover { background: #f8fafc; transform: none !important; box-shadow: none; }
.njpst-issues-grid.njpst-list .njpst-issue-cover { width: 160px; min-width: 160px; height: auto; min-height: 120px; flex-shrink: 0; border-right: 1px solid #dbeafe; background: #eff6ff; }
@media (max-width: 640px) { .njpst-issues-grid.njpst-list .njpst-issue-cover { width: 110px; min-width: 110px; min-height: 100px; } }
.njpst-issues-grid.njpst-list .njpst-issue-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1rem 1.25rem; }
.njpst-issues-grid.njpst-list .njpst-issue-vol { font-size: 0.95rem; }
.njpst-issues-grid.njpst-list .njpst-issue-cta { margin-top: 0.75rem; align-self: flex-start; }
.njpst-arch-page .cmp_pagination { margin-top: 2rem; }
.njpst-arch-page .cmp_pagination a { color: #1d4ed8; }

/* 15. Issue view page — issue.tpl (dark canvas, two cards, section titles) */
.njpst-issue-page { max-width: none; margin: 0; padding: 0 0 3rem; }
/* Cover-only card — full image visible (contain), centered, no crop */
.njpst-cover-card.is-cover-only { flex-direction: column; justify-content: center; align-items: center; }
.njpst-cover-card.is-cover-only .njpst-cover-img { width: 100%; padding: 2rem; display: flex; justify-content: center; }
.njpst-cover-card.is-cover-only .njpst-cover-img img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}
/* Details card info lines (white .njpst-volume-list card) */
.njpst-volume-list .issue-date-line { margin: 0.5rem 0 0; font-size: 0.875rem; color: #3b82f6; }
.njpst-volume-list .issue-doi-line { margin: 0.375rem 0 0; font-size: 0.8125rem; color: #1e40af; word-break: break-all; }
.njpst-volume-list .issue-pin-line {
  display: inline-block;
  margin-top: 0.75rem;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 9999px;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.njpst-volume-list .issue-desc { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; color: #1e40af; }
.njpst-volume-list .njpst-issue-galley { margin-top: 1.25rem; }
.njpst-issue-section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgb(85,125,245);
  margin: 0 0 1.5rem;
}
@media (min-width: 640px) { .njpst-issue-section-title { font-size: 3rem; } }
.njpst-issue-galley .obj_galley_link,
.njpst-issue-galley a.obj_galley_link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem !important;
  border-radius: 0.5rem !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.2s;
}
.njpst-issue-galley .obj_galley_link:hover,
.njpst-issue-galley a.obj_galley_link:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3) !important;
}

/* 16. Auth pages — userLogin / userRegister / userLostPassword (dark canvas + split-screen) */
body.pkp_page_login,
body.pkp_page_user,
.pkp_page_login .pkp_structure_page,
.pkp_page_user .pkp_structure_page {
  background: #172554;
  color: #e0e7ff;
}
.pkp_page_login .pkp_structure_content,
.pkp_page_login .pkp_structure_main,
.pkp_page_user .pkp_structure_content,
.pkp_page_user .pkp_structure_main {
  background: #172554 !important;
}
.njpst-auth-page {
  min-height: 100vh;
  padding: 0;
  display: block;
  background: #172554;
}
.njpst-auth-page .page_login,
.njpst-auth-page .page_register {
  max-width: none !important;
  padding: 0 !important;
}
.njpst-auth-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}
.njpst-auth-image {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}
.njpst-auth-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.njpst-auth-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 37, 84, 0.35) 0%, rgba(15, 23, 42, 0.75) 100%);
  z-index: 1;
}
.njpst-auth-typewriter {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem;
  color: #ffffff;
  text-align: left;
}
.njpst-auth-typewriter h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  margin: 0 0 0.75rem;
  max-width: 28rem;
}
.njpst-type-line {
  font-size: 1.125rem;
  font-weight: 600;
  color: #bfdbfe;
  margin: 0;
  min-height: 1.75rem;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .njpst-auth-typewriter h2 {
    font-size: 2.75rem;
    line-height: 1.1;
    max-width: 32rem;
  }
  .njpst-type-line {
    font-size: 1.5rem;
    min-height: 2.25rem;
  }
  .njpst-type-sub {
    font-size: 1.125rem;
    max-width: 32rem;
  }
}
@media (min-width: 1024px) {
  .njpst-auth-typewriter h2 {
    font-size: 3.25rem;
    max-width: 36rem;
  }
  .njpst-type-line {
    font-size: 1.75rem;
  }
  .njpst-type-sub {
    font-size: 1.25rem;
  }
}
.njpst-type-text {
  color: #f8fafc;
}
.njpst-type-cursor {
  display: inline-block;
  margin-left: 2px;
  color: #60a5fa;
  font-weight: 700;
  animation: njpst-blink 1s step-end infinite;
}
.njpst-type-sub {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: #e0e7ff;
  opacity: 0.9;
  max-width: 28rem;
  line-height: 1.5;
}
@keyframes njpst-typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes njpst-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes njpst-flowUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.njpst-auth-card-wrap {
  background: #1e293b;
  border: 1px solid #1e40af;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.45);
  padding: 1.5rem 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.njpst-auth-logo { display: flex; justify-content: center; margin-bottom: 1rem; }
.njpst-auth-logo img { height: 3rem; width: auto; }
.njpst-auth-page h1 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: #dbeafe !important;
  text-shadow: none;
  text-align: center;
  margin: 0 0 0.25rem;
}
.njpst-auth-required, .njpst-auth-page > .page > p {
  text-align: center;
  font-size: 0.8125rem;
  color: #93c5fd;
  margin: 0 0 1rem;
}
.njpst-auth-page .njpst-auth-required { color: #93c5fd; }
.njpst-auth-page .njpst-auth-message {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  margin: 0 0 1rem;
}
.njpst-auth-page .cmp_form .fields > div,
.njpst-auth-page .cmp_form fieldset.fields > div { margin-bottom: 1rem; }
.njpst-auth-page label { color: #cbd5e1; }
.njpst-auth-page label .label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 0.375rem;
}
.njpst-auth-page label .required { color: #f87171; }
.njpst-auth-page input[type="text"],
.njpst-auth-page input[type="password"],
.njpst-auth-page input[type="email"],
.njpst-auth-page input[type="tel"],
.njpst-auth-page select {
  width: 100%;
  border: 1px solid #1e40af;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.njpst-auth-page input:focus,
.njpst-auth-page select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.25);
}
.njpst-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.njpst-password-wrap input {
  padding-right: 2.75rem !important;
  flex: 1;
}
.njpst-password-toggle {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.375rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  border-radius: 0.375rem;
  transition: color 0.2s, background 0.2s;
}
.njpst-password-toggle:hover { color: #1e40af; background: #f1f5f9; }
.njpst-password-toggle:focus { outline: none; box-shadow: 0 0 0 2px rgba(37,99,235,0.25); }
.njpst-auth-page .remember label,
.njpst-auth-page .optin label,
.njpst-auth-page .checkbox label,
.njpst-auth-page .reviewer_interests label,
.njpst-auth-page .reviewer_nocontext_interests label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #1e40af;
  cursor: pointer;
}
.njpst-auth-page .optin label .label,
.njpst-auth-page .remember label .label { display: inline; margin: 0; }
.njpst-auth-page input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: #2563eb;
  margin-top: 0.125rem;
}
.njpst-auth-page .cmp_form legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e40af;
  padding: 0;
  margin-bottom: 0.75rem;
  border: none;
}
.njpst-auth-page .pkp_form_error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}
.njpst-auth-page .buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.njpst-auth-page button.submit,
.njpst-auth-page .buttons button.submit {
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s;
}
.njpst-auth-page button.submit:hover { background: #1d4ed8; }
.njpst-auth-page .buttons a.register,
.njpst-auth-page .buttons a.login {
  display: block;
  text-align: center;
  color: #1d4ed8;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.njpst-auth-page .buttons a.register:hover,
.njpst-auth-page .buttons a.login:hover { text-decoration: underline; }
.njpst-auth-page .password a[href*="lostPassword"] {
  display: inline-block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #3b82f6;
}
.njpst-auth-page .password a[href*="lostPassword"]:hover { color: #1d4ed8; text-decoration: underline; }
.njpst-auth-page #connect-orcid-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.njpst-auth-page #connect-orcid-button:hover { background: #eff6ff; }
.njpst-auth-page .orcid_button_container svg.orcid_icon { height: 1rem; width: auto; }
.njpst-auth-page a[href*="orcid/about"] { font-size: 0.75rem; color: #3b82f6; }

/* Stepper */
.njpst-stepper { width: 100%; }
.njpst-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding: 0 0.25rem;
}
.njpst-stepper-progress {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  background: #1e3a8a;
  border-radius: 9999px;
  z-index: 0;
}
.njpst-stepper-progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 9999px;
  width: 25%;
  transition: width 0.35s ease;
}
.njpst-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
  cursor: pointer;
  flex: 1;
}
.njpst-stepper-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #1e3a8a;
  color: #93c5fd;
  border: 2px solid #1e293b;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.njpst-stepper-step.active .njpst-stepper-dot {
  background: #2563eb;
  color: #ffffff;
  border-color: #bfdbfe;
  transform: scale(1.05);
}
.njpst-stepper-step.completed .njpst-stepper-dot {
  background: #16a34a;
  color: #ffffff;
  border-color: #bbf7d0;
}
.njpst-stepper-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}
.njpst-stepper-step.active .njpst-stepper-label {
  color: #1e40af;
}
.njpst-stepper-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}
.njpst-stepper-nav .njpst-stepper-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: background 0.2s, opacity 0.2s;
}
.njpst-stepper-prev {
  background: #e2e8f0;
  color: #475569;
}
.njpst-stepper-prev:hover { background: #cbd5e1; }
.njpst-stepper-next {
  background: #2563eb;
  color: #ffffff;
}
.njpst-stepper-next:hover { background: #1d4ed8; }
.njpst-stepper-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.njpst-step {
  display: none;
  animation: njpst-flowUp 0.35s ease;
}
.njpst-step.active {
  display: block;
}

/* Desktop: typewriter visible, side-by-side */
@media (min-width: 768px) {
  .njpst-auth-layout {
    flex-direction: row;
    min-height: calc(100vh - 0px);
  }
  .njpst-auth-image {
    width: 48%;
    height: auto;
    min-height: calc(100vh - 0px);
    position: sticky;
    top: 0;
  }
  .njpst-auth-typewriter {
    display: flex;
  }
  .njpst-auth-card-wrap {
    width: 52%;
    padding: 2rem 2.5rem;
    justify-content: center;
    overflow-y: auto;
    max-height: 100vh;
  }
  .njpst-auth-logo { justify-content: flex-start; margin-bottom: 1.25rem; }
  .njpst-auth-logo img { height: 3.25rem; }
  .njpst-auth-page h1 {
    font-size: 1.5rem;
    text-align: left;
  }
  .njpst-auth-required { text-align: left; }
  /* Desktop: one-form-at-a-time like mobile (progress bar visible) */
  .njpst-auth-card-wrap {
    justify-content: flex-start;
  }
}
@media (min-width: 1024px) {
  .njpst-auth-image { width: 50%; }
  .njpst-auth-card-wrap { width: 50%; padding: 2.5rem 3rem; }
  .njpst-auth-typewriter h2 { font-size: 3.25rem; }
  .njpst-type-line { font-size: 1.75rem; }
  .njpst-type-sub { font-size: 1.25rem; }
}
@media (min-width: 640px) and (max-width: 767px) {
  .njpst-auth-card-wrap { padding: 2rem 1.5rem; }
}
/* Mobile: flow-up card with stepper visible + page background — centered both axes */
@media (max-width: 767px) {
  .njpst-auth-page {
    background: url('/plugins/themes/njpst/templates/images/sign-in-up.jpg') center/cover no-repeat fixed !important;
    position: relative;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: calc(100dvh - 4rem) !important;
    padding: 1.5rem 1rem !important;
  }
  .njpst-auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    z-index: 0;
    pointer-events: none;
  }
  .njpst-auth-layout {
    position: relative;
    z-index: 1;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
  }
  .njpst-auth-image {
    display: none !important;
  }
  .njpst-auth-card-wrap {
    overflow-y: visible;
    max-height: none;
    margin: 0 auto !important;
    max-width: 420px;
    width: 100%;
    border-radius: 1rem;
    background: rgba(30,41,59,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.5);
  }
  /* register is wider but still centered on mobile */
  .njpst-auth-wide .njpst-auth-card-wrap {
    max-width: 480px;
  }
  .njpst-step {
    display: none;
  }
  .njpst-step.active {
    display: block;
  }
  .njpst-auth-typewriter { display: none !important; }
}

/* 17. Editorial Board — editorialMasthead.tpl (dark canvas, hero, featured + grid cards) */
body.pkp_page_about.pkp_op_editorialMasthead,
.pkp_page_about.pkp_op_editorialMasthead .pkp_structure_page {
  background: #172554;
  color: #e0e7ff;
}
.pkp_page_about.pkp_op_editorialMasthead .pkp_structure_content,
.pkp_page_about.pkp_op_editorialMasthead .pkp_structure_main {
  background: #172554 !important;
}
.njpst-board-page { background: #172554; min-height: 100vh; padding-bottom: 3rem; }
/* Hero */
.njpst-board-hero {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: #172554;
  padding: 4rem 1rem;
}
@media (min-width: 640px) { .njpst-board-hero { padding: 5rem 1.5rem; } }
.njpst-board-hero-overlay { position: absolute; inset: 0; background: rgba(23, 37, 84, 0.72); }
.njpst-board-hero-inner { position: relative; z-index: 10; max-width: 56rem; margin: 0 auto; text-align: center; }
.njpst-board-hero-inner h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgb(85, 125, 245);
  margin: 0;
}
@media (min-width: 640px) { .njpst-board-hero-inner h1 { font-size: 3rem; } }
.njpst-board-hero-inner p {
  font-size: 1rem;
  color: rgba(219, 234, 254, 0.9);
  max-width: 42rem;
  margin: 1rem auto 0;
  line-height: 1.6;
}
@media (min-width: 640px) { .njpst-board-hero-inner p { font-size: 1.125rem; } }
/* Content */
.njpst-board-content { max-width: 80rem; margin: 0 auto; padding: 3rem 1rem 0; }
@media (min-width: 640px) { .njpst-board-content { padding: 4rem 1.5rem 0; } }
.njpst-board-section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgb(85, 125, 245);
  border-bottom: 1px solid #1e40af;
  padding-bottom: 0.75rem;
  margin: 3rem 0 2rem;
}
.njpst-board-content .njpst-board-section-title:first-child { margin-top: 0; }
@media (min-width: 640px) { .njpst-board-section-title { font-size: 1.875rem; } }
/* Featured card (first role) */
.njpst-board-featured { max-width: 56rem; margin: 0 auto; }
.njpst-board-featured-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .njpst-board-featured-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 2.5rem;
  }
  .njpst-board-featured-info { text-align: left; }
}
.njpst-board-featured-info { flex: 1; }
.njpst-board-avatar-square {
  width: 8rem;
  height: 8rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
@media (min-width: 640px) { .njpst-board-avatar-square { width: 10rem; height: 10rem; } }
.njpst-board-avatar-square img { width: 100%; height: 100%; object-fit: cover; }
.njpst-board-featured-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #172554;
  text-shadow: none;
  margin: 0;
}
@media (min-width: 640px) { .njpst-board-featured-card h3 { font-size: 1.5rem; } }
.njpst-board-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.25rem 0 0;
}
.njpst-board-aff { font-size: 0.875rem; color: #1e40af; line-height: 1.6; margin: 0.75rem 0 0; }
.njpst-board-orcid {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}
.njpst-board-orcid:hover { text-decoration: underline; }
/* Grid cards (remaining roles + reviewers) */
.njpst-board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .njpst-board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .njpst-board-grid { grid-template-columns: repeat(3, 1fr); } }
.njpst-board-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}
.njpst-board-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15); transform: translateY(-2px); }
.njpst-board-avatar-round {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  overflow: hidden;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.njpst-board-avatar-round img { width: 100%; height: 100%; object-fit: cover; }
.njpst-board-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #172554;
  text-shadow: none;
  line-height: 1.35;
  margin: 0;
}
.njpst-board-card .njpst-board-role { font-size: 0.6875rem; margin-top: 0.25rem; }
.njpst-board-card .njpst-board-aff {
  font-size: 0.75rem;
  margin-top: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.njpst-board-reviewers-note { font-size: 0.875rem; color: #93c5fd; margin: -1rem 0 2rem; }
.njpst-board-history { text-align: center; margin-top: 3rem; font-size: 0.875rem; }
.njpst-board-history a { color: #93c5fd; text-decoration: none; }
.njpst-board-history a:hover { color: #ffffff; text-decoration: underline; }

/* 18.5 Submissions — aboutSubmissions.tpl (dark hero + tabs like guidelines) */
body.pkp_page_about.pkp_op_submissions,
.pkp_page_about.pkp_op_submissions .pkp_structure_page {
  background: #172554;
  color: #e0e7ff;
}
.pkp_page_about.pkp_op_submissions .pkp_structure_content,
.pkp_page_about.pkp_op_submissions .pkp_structure_main {
  background: #172554 !important;
}
.njpst-submissions-page { background: #172554; min-height: 100vh; padding-bottom: 3rem; }
.njpst-submissions-hero {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: #172554;
  padding: 4rem 1rem;
}
@media (min-width: 640px) { .njpst-submissions-hero { padding: 5rem 1.5rem; } }
.njpst-submissions-hero-overlay { position: absolute; inset: 0; background: rgba(23, 37, 84, 0.72); }
.njpst-submissions-hero-inner { position: relative; z-index: 10; max-width: 56rem; margin: 0 auto; text-align: center; }
.njpst-submissions-hero-inner h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgb(85, 125, 245);
  margin: 0;
}
@media (min-width: 640px) { .njpst-submissions-hero-inner h1 { font-size: 3rem; } }
.njpst-submissions-hero-inner p { font-size: 1rem; color: rgba(219, 234, 254, 0.9); max-width: 42rem; margin: 1rem auto 0; line-height: 1.6; }
@media (min-width: 640px) { .njpst-submissions-hero-inner p { font-size: 1.125rem; } }
.njpst-submissions-content { max-width: 80rem; margin: 0 auto; padding: 2rem 1rem 0; }
@media (min-width: 640px) { .njpst-submissions-content { padding: 2rem 1.5rem 0; } }
.njpst-submissions-tabs { margin-bottom: 1.5rem; }
.njpst-submissions-tabs-bar { border-bottom: 1px solid rgba(30, 58, 138, 0.8); }
.njpst-submissions-tabs-bar ul { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: -1px; list-style: none; padding: 0; }
.njpst-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 2px solid transparent;
  color: #93c5fd;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.njpst-tab:hover { color: #ffffff; background: rgba(30, 58, 138, 0.5); }
.njpst-tab.active { background: #ffffff; color: #172554; border-bottom-color: #2563eb; }
.njpst-submissions-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #1e3a8a;
  line-height: 1.7;
}
@media (min-width: 640px) { .njpst-submissions-card { padding: 2.5rem; } }
.njpst-submissions-card h2 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: #172554; margin: 1.5rem 0 0.75rem; border-bottom: 1px solid #dbeafe; padding-bottom: 0.5rem; }
.njpst-submissions-card h2:first-child { margin-top: 0; }
.njpst-submissions-prose p { margin: 0.75rem 0; font-size: 1rem; line-height: 1.7; color: #334155; }
.njpst-submissions-prose ul { margin: 0.75rem 0; padding-left: 1.25rem; list-style: disc; }
.njpst-submissions-prose li { margin: 0.5rem 0; }
.njpst-submissions-prose a { color: #2563eb; text-decoration: underline; }
.njpst-submissions-prose a:hover { color: #1d4ed8; }
.njpst-checklist { list-style: none !important; padding-left: 0 !important; }
.njpst-checklist li { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; }
.njpst-checklist li:last-child { border-bottom: none; }
.njpst-checklist .fa-check { color: #16a34a; margin-top: 0.25rem; flex-shrink: 0; }
.njpst-submissions-empty { color: #64748b; font-style: italic; }
.njpst-submissions-publisher { margin-top: 1rem; font-size: 0.875rem; color: #475569; border-top: 1px solid #f1f5f9; padding-top: 1rem; }
.njpst-tab-panel[hidden] { display: none !important; }

/* 18. Article landing — article.tpl (dark canvas, React article/[id]/page.tsx) */
body.pkp_page_article,
.pkp_page_article .pkp_structure_page {
  background: #172554;
  color: #e0e7ff;
}
.pkp_page_article .pkp_structure_content,
.pkp_page_article .pkp_structure_main {
  background: #172554 !important;
}
.njpst-article-page { max-width: 56rem; margin: 0 auto; padding: 3rem 1rem 4rem; }
@media (min-width: 640px) { .njpst-article-page { padding: 3rem 1.5rem 4rem; } }
.njpst-article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s;
}
.njpst-article-back:hover { color: #ffffff; }
.njpst-article-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgb(85, 125, 245);
  margin: 1.5rem 0 0;
}
@media (min-width: 640px) { .njpst-article-title { font-size: 2.25rem; } }
.njpst-article-doi {
  display: inline-block;
  margin-top: 0.75rem;
  border: 1px solid #1e40af;
  background: rgba(30, 58, 138, 0.45);
  color: #93c5fd;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}
.njpst-article-card {
  margin-top: 1.5rem;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.njpst-article-author-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #172554;
}
.njpst-article-author-aff { margin: 0.125rem 0 0; font-size: 0.875rem; color: #1e40af; }
.njpst-article-author-extra { margin: 0.25rem 0 0; font-size: 0.75rem; color: #3b82f6; }
.njpst-article-publine { margin: 0.5rem 0 0; font-size: 0.875rem; color: #2563eb; }
.njpst-article-abstract { margin-top: 2rem; border-top: 1px solid #1e40af; padding-top: 1.5rem; }
.njpst-article-abstract h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgb(85, 125, 245);
  margin: 0;
}
.njpst-article-abstract p { margin: 0.75rem 0 0; font-size: 1rem; line-height: 1.7; color: #dbeafe; }
.njpst-article-keywords { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; font-size: 0.75rem; }
.njpst-article-keywords span { color: #93c5fd; }
.njpst-article-keywords span + span::before { content: "\00b7"; margin-right: 0.5rem; color: #60a5fa; }
.njpst-article-cta { margin-top: 2.5rem; border-top: 1px solid #1e40af; padding-top: 2rem; }
.njpst-article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.njpst-article-actions .btn-abstract,
.njpst-article-actions .btn-download {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border-radius: 0.5rem; border: 1px solid #1e40af; background: rgba(30,58,138,0.4);
  padding: 0.6rem 1rem; font-size: 0.8125rem; font-weight: 600; color: #bfdbfe;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.njpst-article-actions .btn-abstract:hover,
.njpst-article-actions .btn-download:hover { background: #1e3a8a; color: #dbeafe; }
.njpst-article-actions .btn-read {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border-radius: 0.5rem; background: #2563eb; color: #ffffff;
  padding: 0.6rem 1rem; font-size: 0.8125rem; font-weight: 600;
  text-decoration: none; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2); transition: background 0.2s;
}
.njpst-article-actions .btn-read:hover { background: #1d4ed8; }
/* legacy single-CTA kept for backwards compat */
.njpst-article-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2563eb;
  color: #ffffff;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.1s;
}
.njpst-article-download:hover { background: #1d4ed8; }

/* 19. Announcements — announcements.tpl + announcement.tpl */
body.pkp_page_announcement,
.pkp_page_announcement .pkp_structure_page {
  background: #172554;
  color: #e0e7ff;
}
.pkp_page_announcement .pkp_structure_content,
.pkp_page_announcement .pkp_structure_main {
  background: #172554 !important;
}
.njpst-announcements-page { background: #172554; min-height: 100vh; }
.njpst-announcement-page { background: #172554; min-height: 100vh; }

/* Hero (shared) */
.njpst-announcements-hero,
.njpst-announcement-hero {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: #172554;
  padding: 4rem 1rem;
}
@media (min-width: 640px) {
  .njpst-announcements-hero,
  .njpst-announcement-hero { padding: 5rem 1.5rem; }
}
.njpst-announcements-hero-overlay,
.njpst-announcement-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 37, 84, 0.72);
}
.njpst-announcements-hero-inner,
.njpst-announcement-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.njpst-announcements-hero-inner h1,
.njpst-announcement-hero-inner h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgb(85, 125, 245);
  margin: 0;
}
@media (min-width: 640px) {
  .njpst-announcements-hero-inner h1,
  .njpst-announcement-hero-inner h1 { font-size: 3rem; }
}
.njpst-announcements-hero-inner p,
.njpst-announcement-hero-inner p {
  font-size: 1rem;
  color: rgba(219, 234, 254, 0.9);
  max-width: 42rem;
  margin: 1rem auto 0;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .njpst-announcements-hero-inner p,
  .njpst-announcement-hero-inner p { font-size: 1.125rem; }
}

/* Content area */
.njpst-announcements-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
@media (min-width: 640px) { .njpst-announcements-content { padding: 2rem 1.5rem 3rem; } }
.njpst-announcements-intro {
  font-size: 1rem;
  color: #93c5fd;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Grid — events stacked vertically, news in responsive grid */
.njpst-announcements-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Shared badge styles */
.njpst-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.njpst-badge-type-1 { background: #dbeafe; color: #1d4ed8; }       /* News */
.njpst-badge-type-2 { background: #fef3c7; color: #b45309; }       /* Announcement */
.njpst-badge-type-3 { background: #dcfce7; color: #166534; }       /* Publication */
.njpst-badge-type-4 { background: #f3e8ff; color: #7e22ce; }       /* Conference */
.njpst-badge-type-5 { background: #ffedd5; color: #c2410c; }       /* Workshop */
.njpst-badge-type-6 { background: #ccfbf1; color: #0f766e; }       /* Webinar */
.njpst-badge-type-7 { background: #f1f5f9; color: #475569; }       /* Meeting */

/* ---- Event Card ---- */
.njpst-event-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #1e293b;
  border: 1px solid #1e40af;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s, transform 0.3s;
}
.njpst-event-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .njpst-event-card {
    flex-direction: row;
    align-items: center;
  }
}

/* Date block */
.njpst-event-dateblock {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, #2563eb, #1e40af);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}
.njpst-event-dateblock-day {
  font-size: 1.5rem;
  line-height: 1;
  z-index: 1;
}
.njpst-event-dateblock-month {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 0;
}

/* Event body */
.njpst-event-body { flex: 1; min-width: 0; }
.njpst-event-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}
.njpst-event-date-text {
  font-size: 0.875rem;
  color: #2563eb;
  font-weight: 500;
}
.njpst-event-time-text {
  font-size: 0.875rem;
  color: #64748b;
}
.njpst-event-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #dbeafe;
  text-shadow: none;
}
@media (min-width: 768px) { .njpst-event-title { font-size: 1.25rem; } }
.njpst-event-title a { color: inherit; transition: color 0.2s; }
.njpst-event-title a:hover { color: #60a5fa; }
.njpst-event-summary {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #cbd5e1;
}
.njpst-event-venue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #93c5fd;
}
.njpst-event-venue .fa { font-size: 0.75rem; }
.njpst-event-cta {
  flex-shrink: 0;
}
.njpst-event-register {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.njpst-event-register:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.njpst-event-register:active { transform: scale(0.98); }

/* ---- News Card ---- */
.njpst-news-card {
  background: #1e293b;
  border: 1px solid #1e40af;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.njpst-news-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.njpst-news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.njpst-news-date {
  font-size: 0.75rem;
  color: #3b82f6;
}
.njpst-news-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #dbeafe;
  text-shadow: none;
}
.njpst-news-title a { color: inherit; transition: color 0.2s; }
.njpst-news-title a:hover { color: #60a5fa; }
.njpst-news-summary {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #cbd5e1;
  flex: 1;
}
.njpst-news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
  align-self: flex-start;
}
.njpst-news-readmore:hover { color: #1d4ed8; text-decoration: underline; }

/* Empty state */
.njpst-announcements-empty {
  border: 1px dashed #1e40af;
  border-radius: 1rem;
  background: rgba(30, 58, 138, 0.3);
  padding: 3rem;
  text-align: center;
  color: #93c5fd;
}

/* ---- Announcement detail page ---- */
.njpst-announcement-content {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
@media (min-width: 640px) { .njpst-announcement-content { padding: 2rem 1.5rem 3rem; } }
.njpst-announcement-full-card {
  background: #1e293b;
  border: 1px solid #1e40af;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.njpst-announcement-full-image {
  width: 100%;
  max-height: 24rem;
  overflow: hidden;
}
.njpst-announcement-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.njpst-announcement-full-body { padding: 2rem; }
@media (min-width: 640px) { .njpst-announcement-full-body { padding: 2.5rem; } }
.njpst-announcement-full-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.njpst-announcement-date {
  font-size: 0.875rem;
  color: #2563eb;
  font-weight: 500;
}
.njpst-announcement-expire {
  font-size: 0.75rem;
  color: #64748b;
}

/* Event meta card in detail */
.njpst-event-meta-card {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #1e40af;
  border-radius: 0.75rem;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.njpst-event-meta-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #93c5fd;
  font-weight: 600;
}
.njpst-event-meta-dates .fa { color: #60a5fa; }

/* Description */
.njpst-announcement-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.njpst-announcement-description p { margin: 0.75rem 0; }

/* Back link */
.njpst-announcement-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dbeafe;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}
.njpst-announcement-back:hover { color: #1d4ed8; text-decoration: underline; }

/* ==========================================================================
   19. Books Loader — recreated from Books.mp4 (1.333s loop, 1500x1500)
   No video — pure SVG+CSS, no watermark. Used on all OJS pages.
   ========================================================================== */
.njpst-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.njpst-loader.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.njpst-loader .books-loader-svg {
  width: 140px;
  height: 140px;
  overflow: visible;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}
.njpst-loader .loader-text {
  color: #cbd5e1;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: njpst-loader-pulse 1.2s ease-in-out infinite;
}
@keyframes njpst-loader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.njpst-loader .book-group { animation: bookShift 1.333s linear infinite; }
.njpst-loader .cover-top { transform-origin: 12% 50%; animation: coverTop 1.333s linear infinite; }
.njpst-loader .cover-bottom { transform-origin: 12% 50%; animation: coverBottom 1.333s linear infinite; }
.njpst-loader .spine { animation: spineFlip 1.333s linear infinite; transform-origin: 50% 50%; }
.njpst-loader .pages line { stroke: #cbd5e1; stroke-width: 1; opacity: 0.9; }
.njpst-loader .bookmark { animation: bookmarkAnim 1.333s linear infinite; }
@keyframes bookShift {
  0% { transform: translateX(0px); }
  25% { transform: translateX(8px); }
  50% { transform: translateX(0px); }
  75% { transform: translateX(-8px); }
  100% { transform: translateX(0px); }
}
@keyframes coverTop {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(-6deg); }
  30% { transform: rotate(4deg); }
  50% { transform: rotate(0deg); }
  65% { transform: rotate(8deg); }
  85% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}
@keyframes coverBottom {
  0% { transform: rotate(0deg) translateX(0px); }
  15% { transform: rotate(8deg) translateX(4px); }
  30% { transform: rotate(-6deg) translateX(-2px); }
  50% { transform: rotate(0deg) translateX(0px); }
  65% { transform: rotate(-12deg) translateX(-4px); }
  85% { transform: rotate(6deg) translateX(2px); }
  100% { transform: rotate(0deg) translateX(0px); }
}
@keyframes spineFlip {
  0%, 100% { transform: scaleX(1); }
  49% { transform: scaleX(1); }
  50% { transform: scaleX(-1); }
  99% { transform: scaleX(-1); }
}
@keyframes bookmarkAnim {
  0%, 90% { opacity: 1; transform: translateY(0); }
  25% { opacity: 1; }
  50% { opacity: 0; transform: translateY(2px); }
  75% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .njpst-loader { transition: none; }
  .njpst-loader .book-group, .njpst-loader .cover-top, .njpst-loader .cover-bottom, .njpst-loader .spine, .njpst-loader .bookmark { animation: none !important; }
  .njpst-loader .loader-text { animation: none !important; }
}
/* Inline button loader — 18-20px variant for forms */
.njpst-btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.njpst-btn-loader .books-loader-svg {
  width: 18px;
  height: 18px;
}
.njpst-btn-loader .books-loader-svg .pages line { stroke-width: 2; }
/* PDF viewer specific overlay — keep 4px scroll progress, add center loader */
#njpstPdfLoader {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #172554;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 300ms ease, visibility 300ms ease;
}
#njpstPdfLoader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#njpstPdfLoader .books-loader-svg { width: 160px; height: 160px; }
#njpstPdfLoader .loader-text { color: #cbd5e1; font-size: 0.9375rem; font-weight: 600; }

/* ==========================================================================
   20. 404 — NJPST branded not-found (Option B full 9-col footer)
   Research: header+footer must stay (CMS/SEO/a11y). Light-weight, no JS auto-redirect.
   Background #172554 matches index/issue/article; footer #020617 intact.
   ========================================================================== */
body.pkp_page_404,
.pkp_page_404 .pkp_structure_page { background: #172554; color: #e0e7ff; }
.pkp_page_404 .pkp_structure_content,
.pkp_page_404 .pkp_structure_main { background: #172554 !important; }

.njpst-404-page {
  background: #172554;
  min-height: 60vh;
  padding: 0 0 3rem;
  display: flex;
  justify-content: center;
}
.njpst-404-inner {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
@media (min-width: 640px) { .njpst-404-inner { padding: 3rem 1.5rem 0; } }
@media (min-width: 1024px) { .njpst-404-inner { padding: 3.5rem 2rem 0; } }
.njpst-404-code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(8rem, 18vw, 18rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  width: 100%;
  margin: 0;
  text-align: center;
  overflow: visible;
  white-space: nowrap;
  user-select: none;
  color: #1e40af;
}
.njpst-404-code.font-effect-emboss {
  color: #1e40af;
  text-shadow:
    1px 1px 0 rgba(255,255,255,0.55),
    -1px -1px 0 rgba(0,0,0,0.65),
    0 1px 1px rgba(255,255,255,0.2),
    0 4px 12px rgba(37,99,235,0.35),
    0 2px 24px rgba(85,125,245,0.25);
}
.njpst-404-title {
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff !important;
}
.njpst-404-title.font-effect-emboss {
  color: #ffffff !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.35),
    0 -1px 0 rgba(0,0,0,0.5),
    0 1px 1px rgba(255,255,255,0.15),
    0 2px 6px rgba(85,125,245,1),
    0 4px 12px rgba(37,99,235,0.4);
}
.njpst-404-message {
  max-width: 42rem;
  margin: 0.9rem auto 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #dbeafe;
  text-align: center;
}
@media (min-width: 640px) { .njpst-404-message { font-size: 1.0625rem; } }

.njpst-404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  width: 100%;
}
.njpst-404-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  line-height: 1;
}
.njpst-404-btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.njpst-404-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; transform: translateY(-1px); }
.njpst-404-btn-secondary {
  background: transparent;
  color: #93c5fd;
  border-color: #1e40af;
}
.njpst-404-btn-secondary:hover { background: rgba(30,58,138,0.4); color: #dbeafe; border-color: #3b82f6; }
@media (max-width: 412px) {
  .njpst-404-actions { flex-direction: column; width: 100%; max-width: 22rem; }
  .njpst-404-btn { width: 100%; justify-content: center; }
}

/* Search row — centered, max 40rem */
.njpst-404-search { width: 100%; max-width: 40rem; margin: 1.75rem auto 0; text-align: center; }
.njpst-404-search-row {
  display: flex;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid #1e40af;
}
.njpst-404-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  background: #ffffff;
  color: #1e293b;
  border: none;
  outline: none;
}
.njpst-404-search-input::placeholder { color: #64748b; }
.njpst-404-search-input:focus { box-shadow: inset 0 0 0 2px #3b82f6; }
.njpst-404-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 1.25rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.njpst-404-search-btn:hover { background: #1d4ed8; }

/* Helpful links — centered, max 40rem */
.njpst-404-links { width: 100%; max-width: 40rem; margin: 2.25rem auto 0; text-align: center; }
.njpst-404-links-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  text-shadow: none;
  margin: 0 0 0.75rem;
  text-align: center;
}
.njpst-404-links-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) { .njpst-404-links-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 412px) { .njpst-404-links-grid { grid-template-columns: 1fr; } }
.njpst-404-links-grid a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: rgba(30,41,59,0.7);
  border: 1px solid #1e40af;
  border-radius: 0.5rem;
  color: #dbeafe;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.njpst-404-links-grid a:hover { background: #1e293b; color: #ffffff; border-color: #3b82f6; transform: translateY(-1px); }
.njpst-404-links-grid .fa { color: #60a5fa; font-size: 0.875rem; flex-shrink: 0; }

/* Recent articles — centered, max 40rem, 2-col keep */
.njpst-404-recent { width: 100%; max-width: 40rem; margin: 2rem auto 0; text-align: center; }
.njpst-404-recent-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  text-shadow: none;
  margin: 0 0 0.75rem;
  text-align: center;
}
.njpst-404-recent-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .njpst-404-recent-grid { grid-template-columns: repeat(2, 1fr); } }
.njpst-404-recent-card {
  background: #1e293b;
  border: 1px solid #1e40af;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.njpst-404-recent-card:hover { border-color: #3b82f6; transform: translateY(-1px); }
.njpst-404-recent-card h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: none;
  color: #dbeafe;
}
.njpst-404-recent-card h3 a { color: inherit; }
.njpst-404-recent-card h3 a:hover { color: #60a5fa; }
.njpst-404-recent-meta { margin: 0.4rem 0 0; font-size: 0.8125rem; color: #93c5fd; display: flex; align-items: center; gap: 0.35rem; }
.njpst-404-recent-meta .fa { font-size: 0.75rem; color: #60a5fa; }

.njpst-404-report {
  margin: 1.75rem auto 0;
  font-size: 0.8125rem;
  color: #64748b;
  max-width: 36rem;
  text-align: center;
}
.njpst-404-report a { color: #60a5fa; text-decoration: underline; }
.njpst-404-report a:hover { color: #93c5fd; }
