/* ========================================
   JESICA OJS - MERGED STYLESHEET
   Custom + Modern Redesign • v3.0
   Brand Color: #ff9600 (Orange)
   ======================================== */

/* ===== CSS VARIABLES - CENTRALIZED THEME ===== */
:root {
  /* Brand Colors */
  --jesica-primary: #ff9600;
  --jesica-primary-dark: #e68900;
  --jesica-primary-light: #ffb347;
  --jesica-primary-gradient: linear-gradient(135deg, #ff9600, #e68900);
  
  /* Text Colors */
  --jesica-text: #0f172a;
  --jesica-text-muted: #475569;
  --jesica-text-light: #64748b;
  
  /* Backgrounds */
  --jesica-bg: #ffffff;
  --jesica-bg-alt: #f8fafc;
  --jesica-bg-card: #ffffff;
  --jesica-bg-footer: #e8ebef;
  
  /* Borders & Shadows */
  --jesica-border: #e2e8f0;
  --jesica-border-strong: #cbd5e1;
  --jesica-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --jesica-shadow-hover: 0 8px 25px rgba(255, 150, 0, 0.15);
  --jesica-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  
  /* Spacing & Layout */
  --jesica-radius: 12px;
  --jesica-radius-sm: 8px;
  --jesica-radius-lg: 16px;
  --jesica-transition: 0.25s ease;
  
  /* Typography */
  --jesica-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Helvetica Neue', sans-serif;
  --jesica-font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ===== GLOBAL RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--jesica-font);
  color: var(--jesica-text);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  line-height: 1.7;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LINKS - UNIFIED STYLING ===== */
a {
  color: var(--jesica-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--jesica-transition), transform var(--jesica-transition);
  position: relative;
}
a:hover {
  color: var(--jesica-primary-dark);
  text-decoration: none;
}
a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--jesica-primary);
  transition: width var(--jesica-transition);
  border-radius: 2px;
}
a:hover::after {
  width: 100%;
}

/* ===== HEADER & NAVIGATION (Your Custom + Enhanced) ===== */
.pkp_site_name .is_img img {
  display: block;
  max-height: none;
  width: auto;
  height: auto;
}

#header, .pkp_structure_header {
  background: var(--jesica-primary-gradient) !important;
  box-shadow: 0 4px 20px rgba(255, 150, 0, 0.25) !important;
  border-bottom: none !important;
}

#header .pkp_site_name,
.pkp_structure_header .pkp_site_name a {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.3px;
}

.pkp_navigation_primary,
.pkp_navigation_user {
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--jesica-radius-sm);
  margin: 8px 0;
  padding: 2px;
}

.pkp_navigation_primary a,
.pkp_navigation_user a,
#navigationPrimary a {
  color: #f2f2f2 !important;
  font-weight: 400;
  font-size: 13.5px;
  text-transform: capitalize;
  padding: 10px 16px !important;
  border-radius: var(--jesica-radius-sm);
  transition: all var(--jesica-transition);
}

.pkp_navigation_primary a:hover,
.pkp_navigation_user a:hover,
#navigationPrimary a:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
  color: #fff !important;
}

.pkp_navigation_primary a::after,
.pkp_navigation_user a::after,
#navigationPrimary a::after {
  display: none !important;
}

.pkp_head_wrapper .pkp_search .search_controls .search_prompt {
  font-size: 13.5px;
  color: #f2f2f2;
  font-weight: 400;
  text-transform: capitalize;
}

.pkp_navigation_user_wrapper a {
  font-size: 15px;
  font-weight: 400;
  color: #fff !important;
}

/* ===== MAIN LAYOUT ===== */
.pkp_structure_page {
  margin-top: 0;
  margin-bottom: 0;
}

.pkp_structure_content {
  padding-top: 0;
  background: var(--jesica-bg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.container-fluid {
  overflow: hidden;
  background-color: #ffffff;
}

.header {
  background-color: #ffffff;
}

/* ===== PAGE HEADINGS (Your Style + Enhanced) ===== */
.pkp_structure_main h1,
.pkp_block .title,
.obj_article_details .main_entry .label {
  display: inline-block;
  padding-bottom: 0.5em;
  border-bottom: 3px solid var(--jesica-primary);
  font-weight: 700;
  text-transform: capitalize;
  color: var(--jesica-text);
  margin: 0 0 20px 0;
}

.pkp_page_index .current_issue h2,
.obj_issue_toc .section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5em;
  border-bottom: 3px solid var(--jesica-primary);
  background: transparent;
  text-transform: capitalize;
  font-weight: 700;
  color: var(--jesica-text);
  margin: 0 0 16px 0;
}

.pkp_page_index .current_issue .current_issue_title {
  font-size: 14px;
}

.cmp_breadcrumbs {
  text-transform: capitalize;
}

/* ===== ARTICLE LISTINGS - CARD STYLE (Modern Enhancement) ===== */
.obj_article_summary {
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--jesica-border) !important;
  background: var(--jesica-bg-card);
  border-radius: var(--jesica-radius-sm);
  margin: 12px 0;
  transition: all var(--jesica-transition);
  font-size: 14px;
}

.obj_article_summary:hover {
  transform: translateY(-2px);
  box-shadow: var(--jesica-shadow);
  border-color: var(--jesica-primary) !important;
}

.obj_article_summary > .title {
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 6px;
}

.obj_article_summary > .title a {
  color: var(--jesica-text);
  font-weight: 700;
}

.obj_article_summary > .title a:hover {
  color: var(--jesica-primary-dark);
}

.obj_article_summary .authors {
  color: var(--jesica-text-muted);
  font-size: 13px;
  font-style: italic;
  margin: 4px 0 8px 0;
}

.obj_article_summary .pages {
  display: inline-block;
  background: var(--jesica-bg-alt);
  color: var(--jesica-primary-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
}

.obj_galley_link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--jesica-primary-gradient);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  text-transform: capitalize;
  border: none;
  transition: all var(--jesica-transition);
  box-shadow: 0 2px 8px rgba(255, 150, 0, 0.25);
}

.obj_galley_link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 150, 0, 0.4);
  background: linear-gradient(135deg, var(--jesica-primary-dark), #cc7a00);
  color: #fff !important;
}

.obj_galley_link::after {
  display: none !important;
}

.obj_issue_toc .heading .published .label {
  text-transform: capitalize;
  font-size: 90%;
  color: var(--jesica-text-muted);
}

.pkp_page_index .current_issue .read_more {
  margin: 20px 0;
}

/* ===== ARTICLE DETAILS PAGE ===== */
.obj_article_details .abstract {
  text-align: justify;
  line-height: 1.8;
  font-size: 14px;
  color: var(--jesica-text);
}

/* ===== SIDEBAR / BLOCKS (Your Style + Enhanced) ===== */
.pkp_structure_sidebar {
  background: var(--jesica-bg);
  border: 1px solid var(--jesica-border);
  border-radius: var(--jesica-radius);
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--jesica-shadow-card);
}

.pkp_block {
  font-size: 14px;
  line-height: 1.6;
  clear: both;
  border-bottom: 1.5px solid var(--jesica-border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.pkp_block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pkp_block .title {
  display: inline-block;
  padding-bottom: 0.5em;
  border-bottom: 3px solid var(--jesica-primary);
  font-weight: 700;
  text-transform: capitalize;
  color: var(--jesica-text);
  margin: 0 0 12px 0;
}

.pkp_structure_sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pkp_structure_sidebar li {
  margin: 6px 0;
}

.pkp_structure_sidebar a {
  color: var(--jesica-text);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--jesica-radius-sm);
  display: block;
  transition: all var(--jesica-transition);
}

.pkp_structure_sidebar a:hover {
  background: var(--jesica-bg-alt);
  color: var(--jesica-primary-dark);
  padding-left: 12px;
}

.pkp_structure_sidebar a::after {
  display: none !important;
}

/* ===== TABLES - YOUR HOVERTABLE + MODERN DATA TABLES ===== */
.hoverTable {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--jesica-bg-card);
  border-radius: var(--jesica-radius-sm);
  overflow: hidden;
  box-shadow: var(--jesica-shadow-card);
}

.hoverTable th {
  height: 30px;
  background: #ffffff;
  color: #105183;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--jesica-border);
}

.hoverTable td {
  height: 30px;
  padding: 10px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--jesica-border);
  text-align: center;
}

.hoverTable td a {
  width: 100%;
  display: block;
  color: #ffffff;
  font-weight: 500;
}

.hoverTable tr {
  background: #105183;
  color: #ffffff;
  transition: background var(--jesica-transition);
}

.hoverTable tr:hover {
  background-color: #0c426b;
  transform: scale(1.01);
}

.hoverTable a:hover {
  color: var(--jesica-primary-light);
}

/* Modern Data Tables (for About page, metadata) */
.jesica-data-table,
.pkp_structure_content table:not(.hoverTable) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--jesica-bg-card);
  border: 2px solid var(--jesica-primary);
  border-radius: var(--jesica-radius);
  overflow: hidden;
  box-shadow: var(--jesica-shadow-card);
}

.jesica-data-table tr,
.pkp_structure_content table:not(.hoverTable) tr {
  border-bottom: 1px solid var(--jesica-border);
  transition: background var(--jesica-transition);
}

.jesica-data-table tr:last-child,
.pkp_structure_content table:not(.hoverTable) tr:last-child {
  border-bottom: none;
}

.jesica-data-table tr:hover,
.pkp_structure_content table:not(.hoverTable) tr:hover {
  background: var(--jesica-bg-alt);
}

.jesica-data-table td,
.pkp_structure_content table:not(.hoverTable) td {
  padding: 14px 16px;
  vertical-align: top;
  font-size: 14px;
  color: var(--jesica-text);
}

.jesica-data-table td:first-child,
.pkp_structure_content table:not(.hoverTable) td:first-child {
  width: 25%;
  font-weight: 600;
  color: var(--jesica-text-muted);
  background: var(--jesica-bg-alt);
  border-right: 1px solid var(--jesica-border);
}

.jesica-data-table td:last-child,
.pkp_structure_content table:not(.hoverTable) td:last-child {
  width: 75%;
}

.jesica-data-table a,
.pkp_structure_content table:not(.hoverTable) a {
  color: var(--jesica-primary);
  font-weight: 600;
  text-decoration: none;
}

.jesica-data-table a:hover,
.pkp_structure_content table:not(.hoverTable) a:hover {
  color: var(--jesica-primary-dark);
  text-decoration: underline;
}

/* ===== FOOTER (Your Custom Layout + Enhanced) ===== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-top: 1px solid var(--jesica-border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
  min-width: 200px;
  text-align: left;
  font-size: 13px;
  color: var(--jesica-text-muted);
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.copyright {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  margin-top: 16px;
  font-size: 13px;
}

.copyright a {
  color: #fff;
  font-weight: 500;
}

.copyright a:hover {
  color: var(--jesica-primary-light);
}

.cc-image {
  vertical-align: middle;
  margin: 0 4px;
}

.pkp_footer_content {
  float: left;
  width: 100%;
  padding: 0;
  clear: both;
}

.pkp_brand_footer {
  float: right;
  width: 30%;
  padding-bottom: 10px;
  padding-top: 50px;
  display: none;
}

.pkp_structure_footer_wrapper {
  background: var(--jesica-bg-footer);
  border-bottom: 2px solid #595959;
  margin-top: 48px;
}

.pkp_structure_footer,
#footer {
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  color: #e2e8f0 !important;
  padding: 32px 24px !important;
  border-radius: var(--jesica-radius-lg) var(--jesica-radius-lg) 0 0;
  font-size: 14px;
}

.pkp_structure_footer a,
#footer a {
  color: var(--jesica-primary-light) !important;
  font-weight: 500;
}

.pkp_structure_footer a:hover,
#footer a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.pkp_structure_footer p,
#footer p {
  margin: 8px 0;
  opacity: 0.95;
}

/* ===== JESICA ABOUT PAGE - SCOPED STYLES (Your High-Contrast Version) ===== */
.jesica-page {
  --jesica-page-primary: #b45309;
  --jesica-page-primary-dark: #92400e;
  --jesica-page-text: #0f172a;
  --jesica-page-text-muted: #334155;
  --jesica-page-bg: #ffffff;
  --jesica-page-bg-alt: #f8fafc;
  --jesica-page-border: #cbd5e1;
  --jesica-page-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  --jesica-page-shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.1);
  --jesica-page-radius: 10px;
  --jesica-page-transition: 0.2s ease;

  font-family: var(--jesica-font);
  line-height: 1.65;
  color: var(--jesica-page-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--jesica-page-bg);
  border: 1px solid var(--jesica-page-border);
  border-radius: var(--jesica-page-radius);
  box-shadow: var(--jesica-page-shadow);
  box-sizing: border-box;
}

.jesica-page *, .jesica-page *::before, .jesica-page *::after { box-sizing: inherit; }

.jesica-page p { margin: 0 0 18px 0; text-align: justify; font-size: 1rem; color: var(--jesica-page-text); }
.jesica-page p:last-child { margin-bottom: 0; }
.jesica-page strong { color: #000000; font-weight: 700; }
.jesica-page a { color: var(--jesica-page-primary); text-decoration: underline; font-weight: 600; transition: color var(--jesica-page-transition); }
.jesica-page a:hover { color: var(--jesica-page-primary-dark); }

.jesica-cover {
  float: right;
  width: 170px;
  margin: 0 0 22px 24px;
  background: var(--jesica-page-bg);
  border: 1px solid var(--jesica-page-border);
  border-radius: var(--jesica-page-radius);
  box-shadow: var(--jesica-page-shadow);
  transition: transform var(--jesica-page-transition), box-shadow var(--jesica-page-transition);
  overflow: hidden;
}
.jesica-cover:hover { transform: translateY(-3px); box-shadow: var(--jesica-page-shadow-hover); }
.jesica-cover img { width: 100%; height: auto; display: block; }
.jesica-caption { padding: 8px 4px; text-align: center; font-size: 0.85rem; color: #475569; background: #f1f5f9; font-weight: 500; }

.jesica-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0;
  background: var(--jesica-page-bg);
  border: 2px solid var(--jesica-page-primary);
  border-radius: var(--jesica-page-radius);
  overflow: hidden;
  box-shadow: var(--jesica-page-shadow);
}
.jesica-data-table tr { border-bottom: 1px solid var(--jesica-page-border); transition: background var(--jesica-page-transition); }
.jesica-data-table tr:last-child { border-bottom: none; }
.jesica-data-table tr:hover { background: var(--jesica-page-bg-alt); }
.jesica-data-table td { padding: 14px 16px; vertical-align: top; font-size: 0.95rem; color: var(--jesica-page-text); }
.jesica-data-table td:first-child { 
  width: 22%; 
  font-weight: 600; 
  color: #1e293b; 
  background: var(--jesica-page-bg-alt); 
  border-right: 1px solid var(--jesica-page-border); 
}
.jesica-data-table td:last-child { width: 78%; }
.jesica-data-table a { color: var(--jesica-page-primary); text-decoration: none; font-weight: 600; }
.jesica-data-table a:hover { text-decoration: underline; color: var(--jesica-page-primary-dark); }

.jesica-timeline {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0;
  border-radius: var(--jesica-page-radius);
  overflow: hidden;
  box-shadow: var(--jesica-page-shadow);
  border: 1px solid var(--jesica-page-border);
}
.jesica-timeline td { padding: 20px 12px; text-align: center; border: none; transition: transform var(--jesica-page-transition); }
.jesica-timeline td:hover { transform: translateY(-2px); }
.jesica-timeline .orange { background: #d97706; color: #ffffff; font-weight: 600; }
.jesica-timeline .white { background: #ffffff; color: var(--jesica-page-primary-dark); font-weight: 700; border-left: 1px solid #fed7aa; border-right: 1px solid #fed7aa; }
.jesica-timeline .label { font-size: 0.9rem; margin-bottom: 6px; font-weight: 500; opacity: 0.9; }
.jesica-timeline .value { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.5px; }

.jesica-index-label {
  margin: 0 0 14px 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--jesica-page-primary);
  display: inline-block;
}

.jesica-logo-grid { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; padding: 12px 0; }
.jesica-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--jesica-page-bg);
  border: 1px solid var(--jesica-page-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--jesica-page-transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-width: 90px;
}
.jesica-logo:hover, .jesica-logo:focus {
  transform: translateY(-3px);
  box-shadow: var(--jesica-page-shadow-hover);
  border-color: var(--jesica-page-primary);
  outline: none;
}
.jesica-logo img {
  height: 40px;
  width: auto;
  max-width: 125px;
  object-fit: contain;
  display: block;
  filter: grayscale(30%);
  transition: filter var(--jesica-page-transition), transform var(--jesica-page-transition);
}
.jesica-logo:hover img { filter: grayscale(0%); transform: scale(1.04); }

.jesica-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff !important;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none !important;
  margin: 10px 0 24px 0;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.35);
  transition: all var(--jesica-page-transition);
  letter-spacing: 0.3px;
}
.jesica-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(180, 83, 9, 0.45);
  background: linear-gradient(135deg, #b45309, #78350f);
  text-decoration: none !important;
}
.jesica-cta:active { transform: translateY(0); }

/* ===== UTILITIES & MICRO-INTERACTIONS ===== */
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active {
  background: #8c8c8c;
  border: 0px solid #3c2d61;
}

/* Focus accessibility */
a:focus-visible,
.jesica-logo:focus-visible,
.jesica-cta:focus-visible,
.obj_galley_link:focus-visible {
  outline: 3px solid var(--jesica-primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Subtle animation for new content */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.obj_article_summary {
  animation: fadeInUp 0.3s ease forwards;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .pkp_structure_content {
    padding: 24px 16px;
  }
  .pkp_structure_sidebar {
    margin-top: 32px;
  }
  .footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-left, .footer-center, .footer-right {
    text-align: center;
    margin: 4px 0;
  }
}

@media (max-width: 768px) {
  #header .pkp_site_name a {
    font-size: 1.2rem;
  }
  .pkp_navigation_primary,
  .pkp_navigation_user {
    flex-wrap: wrap;
  }
  .pkp_navigation_primary a,
  .pkp_navigation_user a {
    padding: 8px 12px !important;
    font-size: 13px;
  }
  
  .obj_article_summary {
    padding: 14px 16px !important;
  }
  .obj_article_summary > .title {
    font-size: 14px;
  }
  
  .jesica-cover {
    float: none;
    display: block;
    margin: 0 auto 22px auto;
    width: 200px;
  }
  .jesica-page p { text-align: left; }
  
  .jesica-data-table, .jesica-data-table tbody, .jesica-data-table tr, .jesica-data-table td { display: block; width: 100%; }
  .jesica-data-table tr { border-bottom: 1px solid var(--jesica-page-border); }
  .jesica-data-table td:first-child { width: 100%; background: var(--jesica-page-bg-alt); font-weight: 700; color: #000000; padding-bottom: 8px; border-right: none; border-bottom: 1px dashed var(--jesica-page-border); }
  .jesica-data-table td:last-child { width: 100%; padding-top: 10px; padding-bottom: 16px; }
  
  .jesica-timeline { display: flex; flex-direction: column; }
  .jesica-timeline td { border-bottom: 1px solid #fed7aa !important; border-left: none !important; border-right: none !important; }
  .jesica-timeline td:last-child { border-bottom: none !important; }
  
  .jesica-logo-grid { justify-content: center; gap: 12px 14px; }
  .jesica-logo { min-width: 85px; padding: 6px 10px; }
  .jesica-logo img { height: 34px; max-width: 110px; }
  
  .jesica-cta {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
  
  .pkp_structure_content table:not(.hoverTable) td {
    padding: 12px 14px;
    font-size: 13px;
  }
  .pkp_structure_content table:not(.hoverTable) td:first-child {
    width: 100%;
    background: var(--jesica-bg-alt);
    font-weight: 700;
    color: #000;
    padding-bottom: 6px;
    border-right: none;
    border-bottom: 1px dashed var(--jesica-border);
  }
  .pkp_structure_content table:not(.hoverTable) td:last-child {
    width: 100%;
    padding-top: 8px;
    padding-bottom: 14px;
  }
}

@media (max-width: 480px) {
  body { font-size: 13px; }
  
  .pkp_structure_content > p:first-of-type,
  .pkp_structure_content > .obj_article_summary {
    padding: 16px;
    font-size: 14px;
  }
  
  .jesica-page { padding: 18px 14px; font-size: 14px; }
  .jesica-cover { width: 170px; }
  .jesica-index-label { font-size: 1rem; width: 100%; text-align: center; }
  .jesica-logo-grid { gap: 10px 12px; }
  .jesica-logo { min-width: 80px; padding: 5px 8px; border-radius: 6px; }
  .jesica-logo img { height: 30px; max-width: 95px; }
  .jesica-timeline .value { font-size: 1.35rem; }
  
  .hoverTable td, .hoverTable th {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body { background: #fff; color: #000; }
  
  #header, .pkp_structure_header {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border-bottom: 2px solid #000 !important;
  }
  
  .pkp_navigation_primary,
  .pkp_navigation_user {
    display: none;
  }
  
  .obj_article_summary,
  .pkp_structure_content table,
  .pkp_structure_sidebar,
  .jesica-page {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .jesica-cta,
  .obj_galley_link {
    background: var(--jesica-primary) !important;
    color: #000 !important;
    border: 2px solid #000;
    box-shadow: none;
  }
  
  a { color: #000; text-decoration: underline; }
  a::after { display: none !important; }
  
  .footer { border-top: 1px solid #000; }
  .copyright { background: #000; }
}

/* ===== DARK MODE SUPPORT (Optional) ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --jesica-bg: #0f172a;
    --jesica-bg-alt: #1e293b;
    --jesica-bg-card: #1e293b;
    --jesica-text: #f1f5f9;
    --jesica-text-muted: #cbd5e1;
    --jesica-border: #334151;
    --jesica-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    --jesica-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
    --jesica-bg-footer: #1e293b;
  }
  
  body {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  }
  
  .obj_article_summary,
  .pkp_structure_content table:not(.hoverTable),
  .pkp_structure_sidebar,
  .jesica-page {
    border-color: #334151;
  }
  
  .pkp_structure_content table:not(.hoverTable) td:first-child {
    background: #1e293b;
    color: #f1f5f9;
    border-right-color: #334151;
  }
  
  .jesica-timeline .white {
    background: #1e293b;
    color: #fbbf24;
    border-color: #334151;
  }
  
  .jesica-logo {
    background: #1e293b;
    border-color: #334151;
  }
  .jesica-logo:hover { border-color: #fbbf24; }
  .jesica-logo img { filter: grayscale(40%); }
  .jesica-logo:hover img { filter: grayscale(0%); }
  
  .jesica-caption { background: #1e293b; color: #cbd5e1; }
  
  .footer-left, .footer-center, .footer-right {
    color: #cbd5e1;
  }
}

/* ===== REDUCED MOTION ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}